/* ==========================================================================
    ONLINE PRODUCTS SECTION - Using Seasonal Collection Styles
    ========================================================================== */

/* Import seasonal styles as base */
.products--online {
    background-color: #F4EDE5;
    position: relative;
}

/* Header Section */
.products--online .products__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 99px;
}

.products--online .products__title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 40px;
    line-height: 1.219;
    letter-spacing: -0.08em;
    color: #343434;
    margin: 0;
    width: 388px;
    height: 49px;
}

/* Navigation Buttons */
.products--online .products__nav {
    display: flex;
    gap: 10px;
}

.products--online .products__nav-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #2A5B55;
    border-radius: 50%;
    background: transparent;
    color: #A35A63;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.products--online .products__nav-btn:hover {
    background-color: #2A5B55;
    color: white;
}

.products--online .products__nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Products Grid */
.products--online .products__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Product Cards - Using exact same styles as seasonal */
.products--online .product-card {
    all: initial;
    font-family: 'Montserrat', sans-serif;
    background: #2A5B55;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    width: 318px;
    height: auto;
    min-height: 440px;
    transition: box-shadow 0.3s ease;
    position: relative;
    box-sizing: border-box;
}

.products--online .product-card:hover {
    box-shadow: 0 4px 16px rgba(42, 91, 85, 0.2);
}

.products--online .product-card__image {
    position: relative;
    width: calc(100% - 6px);
    height: 260px;
    margin: 3px 3px 0 3px;
    overflow: hidden;
    border-radius: 20px;
    z-index: 1;
    flex-shrink: 0;
}

.products--online .product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
    border-radius: 15px;
}

.products--online .product-card__image a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.products--online .product-card__image,
.products--online .product-card__image a,
.products--online .product-card__image img {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.products--online .product-card:hover .product-card__image img { 
    transform: none !important; 
}

.products--online .product-card__content {
    position: relative;
    z-index: 2;
    padding: 0 20px 20px 20px;
    display: flex;
    flex-direction: column;
    text-align: left;
    box-sizing: border-box;
    background: transparent;
    border-radius: 0 0 24px 24px;
    flex: 1;
}

.products--online .product-card__content-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.products--online .product-card__content-bottom {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-top: 8px;
}

.products--online .product-card__code {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(244, 237, 229, 0.9);
    margin: 0 0 6px 0;
    height: 21px;
}

.products--online .product-card__title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.219;
    letter-spacing: -0.06875em;
    color: #F4EDE5;
    margin: 0 0 8px 0;
    height: 20px;
}

.products--online .product-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.products--online .product-card__title a:hover {
    color: rgba(244, 237, 229, 0.8);
}

.products--online .product-card__rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.219;
    letter-spacing: -0.06875em;
    color: #F4EDE5;
    margin: 0 0 10px 0;
    height: 20px;
}

.products--online .product-card__rating svg {
    width: 20px;
    height: 20px;
    color: #FFFFFF;
    flex-shrink: 0;
}

.products--online .product-card__price {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.219;
    letter-spacing: -0.06667em;
    color: #F4EDE5;
    margin: 0 0 12px 0;
    height: 22px;
    text-align: left;
    justify-self: flex-start;
    align-self: flex-start;
}

/* Buttons */
.products--online .btn,
.products--online .btn--white,
.products--online .btn--unavailable {
    all: initial;
    font-family: 'Montserrat', sans-serif;
    width: 100%;
    height: 36px;
    border: none;
    border-radius: 18px;
    padding: 0 16px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    position: relative;
    text-align: center;
    line-height: 1;
}

.products--online .btn--white,
.products--online .btn {
    background: #FFFFFF;
    color: #2A5B55;
}

.products--online .btn--white:hover,
.products--online .btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

.products--online .btn--unavailable {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .products--online .products__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .products--online .products__title {
        font-size: 36px;
        width: auto;
    }
    
    .products--online .product-card { 
        border-radius: 20px; 
        height: auto; 
        min-height: 450px; 
    }
    
    .products--online .product-card__image { 
        border-radius: 16px; 
        height: 220px; 
    }
    
    .products--online .product-card__content {
        padding: 20px;
    }
}

@media (max-width: 768px) {
.products--online .products__header {
    margin-top: 40px;
    flex-direction: row!important;
}
    .products--online {
        padding: 60px 0;
    }
    
    .products--online .products__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .products--online .products__header {
        margin-bottom: 40px;
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .products--online .products__title {
        font-size: 32px;
        width: auto;
        height: auto;
    }
    
    .products--online .product-card { 
        border-radius: 18px; 
        height: auto; 
        min-height: 420px; 
    }
    
    .products--online .product-card__image { 
        height: 210px; 
        border-radius: 14px; 
    }
    
    .products--online .product-card__content {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .products--online {
        padding: 0;
    }
    
    .products--online .products__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .products--online .products__header {
        margin-bottom: 32px;
    }
    
    .products--online .products__title {
        font-size: 28px;
    }
    
    .products--online .product-card { 
        border-radius: 16px; 
        width: 100%; 
        height: auto; 
        min-height: 400px; 
    }
    
    .products--online .product-card__image { 
        height: 200px; 
        border-radius: 12px; 
    }
    
    .products--online .product-card__content {
        padding: 14px;
    }
    
    .products--online .btn,
    .products--online .btn--white,
    .products--online .btn--unavailable {
        width: 100%;
        height: 36px;
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .products--online .product-card,
    .products--online .btn,
    .products--online .btn--white,
    .products--online .products__nav-btn {
        transition: none;
        animation: none;
    }
}
