.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 950px;
    margin: 0 auto;
    padding: 3rem 2rem 3rem;
    position: relative;
    z-index: 2;
    background: var(--light);
    border-radius: 0 0 30px 30px;
}

.feature-card {
    background: var(--white);
    padding: 2rem 1.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    text-align: center;
    position: relative;
    transition: all 0.4s ease;
    border: 1px solid rgba(184, 134, 11, 0.1);
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.feature-card:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        transparent 100%);
    transition: left 0.6s ease;
    pointer-events: none;
}

.feature-card:hover::after {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    border-color: var(--primary);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, #daa520 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.feature-card:hover i {
    transform: scale(1.1);
}

.feature-card h3 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--secondary);
    margin-bottom: 0.8rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.feature-card p {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
}

.products {
    max-width: 1200px;
    margin: 2rem auto 0 auto;
    padding: 2.5rem 2rem 2rem;
    scroll-margin-top: 110px;
    text-align: center;
}

.products h2 {
    text-align: center;
    margin: 3rem 0 2rem 0;
    color: var(--primary);
    font-family: sans-serif;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    font-size: 2.2rem;
}

.products-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
    width: 100%;
}

.category-title {
    color: var(--primary);
    font-family: sans-serif;
    font-weight: 600;
    font-size: 1.8rem;
    margin: 0 0 1.5rem 0;
    text-align: center;
    position: relative;
    padding-bottom: 0.5rem;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 2px;
}

.category-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    justify-content: center;
    align-items: start;
    margin: 0 auto;
    max-width: 100%;
    place-items: center;
    width: 100%;
}

.product {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
    max-width: 280px;
    min-height: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.product-image {
    height: 220px;
    min-height: 220px;
    background-color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

.product-img-real {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.product:hover .product-img-real {
    transform: scale(1.05);
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.product-controls {
    margin-top: auto;
}

.product-info h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-family: sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.3;
    min-height: 2.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-info p {
    font-family: sans-serif;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 0.5rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.9rem;
    min-height: 3.9rem;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0.5rem 0;
    font-family: sans-serif;
}

.product-quantity {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0;
    gap: 8px;
}

.quantity-btn {
    background: linear-gradient(135deg, var(--white) 0%, rgba(247, 242, 232, 0.9) 100%);
    border: 1px solid rgba(184, 134, 11, 0.2);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(184, 134, 11, 0.1);
    position: relative;
    overflow: hidden;
}

.quantity-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(184, 134, 11, 0.1), transparent);
    transition: left 0.5s ease;
}

.quantity-btn:hover::before {
    left: 100%;
}

.quantity-btn:hover {
    background: linear-gradient(135deg, var(--primary) 0%, #daa520 100%);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.3);
    border-color: var(--primary);
}

.quantity-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(184, 134, 11, 0.2);
}

.quantity-input {
    width: 50px;
    height: 36px;
    text-align: center;
    margin: 0;
    border: 1px solid rgba(184, 134, 11, 0.2);
    border-radius: 8px;
    padding: 0;
    background: var(--white);
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
    font-family: sans-serif;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(184, 134, 11, 0.1);
}

.quantity-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1), inset 0 1px 3px rgba(184, 134, 11, 0.1);
    transform: scale(1.02);
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-input[type=number] {
    -moz-appearance: textfield;
}

.add-to-cart {
    background: linear-gradient(135deg, var(--primary) 0%, #daa520 100%);
    color: var(--white);
    border: 1px solid rgba(184, 134, 11, 0.3);
    padding: 0.7rem 1rem;
    border-radius: 8px;
    width: 100%;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: none;
    letter-spacing: 0.2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: sans-serif;
    z-index: 1000;
    min-height: 44px;
    box-shadow: 0 2px 6px rgba(184, 134, 11, 0.15);
    position: relative;
    overflow: hidden;
}

.add-to-cart::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.add-to-cart:hover::before {
    left: 100%;
}

.add-to-cart:hover {
    background: linear-gradient(135deg, var(--secondary) 0%, #2A2A2A 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.25);
    border-color: var(--secondary);
}

.add-to-cart:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(184, 134, 11, 0.2);
}

/* Description Modal Styles */
.description-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    box-sizing: border-box;
}

.description-modal.active {
    display: flex;
}

.description-modal-content {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 70vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    animation: slideInUp 0.3s ease;
    margin: 1rem;
}

.close-description-modal {
    color: #aaa;
    float: right;
    font-size: 24px;
    font-weight: bold;
    position: absolute;
    top: 0.8rem;
    right: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
    z-index: 10001;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-description-modal:hover,
.close-description-modal:focus {
    color: var(--primary);
    text-decoration: none;
}

.description-modal-content h3 {
    color: var(--primary);
    font-family: sans-serif;
    font-weight: 600;
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    margin-top: 0;
    padding-right: 2rem;
    line-height: 1.3;
}

.description-modal-content p {
    color: var(--text);
    font-family: sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    text-align: justify;
}

/* Product description clickable style */
.product-content p {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.clickable-description {
    cursor: pointer !important;
    transition: all 0.3s ease;
    position: relative;
}

.product-content p:hover,
.clickable-description:hover {
    color: var(--primary);
    transform: scale(1.02);
}



@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from { 
        opacity: 0;
        transform: translateY(50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
} 