/* ========== PRODUCTS PAGE STYLES ========== */

/* PAGE WRAPPER */
.products-page-wrapper {
    background: #ffffff;
}

/* PRODUCTS HERO SECTION */
.products-hero {
    background: linear-gradient(135deg, rgba(29, 106, 89, 0.88) 0%, rgba(45, 138, 112, 0.88) 100%),
                url('images/Cow BG.jpg.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    padding: 120px 0;
    text-align: center;
    margin-top: 90px;
    position: relative;
    overflow: hidden;
}

.products-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" fill-opacity="1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,128C672,128,768,160,864,165.3C960,171,1056,149,1152,149.3C1248,149,1344,171,1392,181.3L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat;
    background-size: cover;
    background-position: bottom;
    opacity: 0.2;
    z-index: 0;
}

.products-hero .container {
    position: relative;
    z-index: 1;
}

.products-hero h1 {
    font-size: 56px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.products-hero p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}

/* PRODUCTS GRID SECTION  */
.products-grid-section {
    padding: 80px 0;
    background: #ffffff;
}

.products-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 30px;
}

.products-filter-bar h2 {
    font-size: 32px;
    color: #1d6a59;
    margin: 0;
    font-weight: 800;
}

.filter-options {
    display: flex;
    gap: 20px;
}

.filter-select {
    padding: 12px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #333333;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:hover {
    border-color: #1d6a59;
    box-shadow: 0 2px 8px rgba(29, 106, 89, 0.1);
}

.filter-select:focus {
    outline: none;
    border-color: #1d6a59;
    box-shadow: 0 0 0 3px rgba(29, 106, 89, 0.1);
}

/* PRODUCTS GRID */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

/* PRODUCT LINK */
.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.product-link:hover .product-card {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.product-link:hover .product-image {
    transform: scale(1.08);
}

/* PRODUCT CARD */
.product-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* PRODUCT IMAGE WRAPPER */
.product-image-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #f5f5f5;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

/* DISCOUNT BADGE */
.discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ffc107;
    color: #1d6a59;
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 20px;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

/* WISHLIST ICON */
.wishlist {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.wishlist i {
    color: #ccc;
    font-size: 18px;
    transition: all 0.3s ease;
}

.wishlist:hover i {
    color: #ff6b7a;
}

.wishlist.active i {
    color: #ff6b7a;
}

/* PRODUCT INFO */
.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.rating {
    font-size: 13px;
    color: #666666;
    margin-bottom: 5px;
}

.product-info h3 {
    font-size: 16px;
    color: #1d6a59;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    min-height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* PRICE */
.price {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 8px 0;
}

.old-price {
    text-decoration: line-through;
    color: #999999;
    font-size: 13px;
    font-weight: 400;
}

.new-price {
    color: #1d6a59;
    font-weight: 700;
    font-size: 18px;
}

/* VARIANT DROPDOWN */
.variant {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1.5px solid #e0e0e0;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #333333;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 8px 0;
}

.variant:hover {
    border-color: #1d6a59;
}

.variant:focus {
    outline: none;
    border-color: #1d6a59;
    box-shadow: 0 0 0 3px rgba(29, 106, 89, 0.1);
}

.btn-cart {
    width: 100%;
    background: #ffc107;
    color: #1d6a59;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: block;
    text-align: center;
    margin-bottom: 8px;
}

.btn-cart:hover {
    background: #ffb84d;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 193, 7, 0.3);
}

.btn-buy {
    width: 100%;
    background: rgba(29, 106, 89, 0.08);
    color: #1d6a59;
    border: 1.5px solid #1d6a59;
    padding: 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    display: block;
    text-align: center;
}

.btn-buy:hover {
    background: #1d6a59;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(29, 106, 89, 0.3);
}

/* NOTIFICATION MODAL BACKGROUND */
.notification-modal-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 10000;
    transition: background 0.3s ease;
}

.notification-modal-bg.show {
    background: rgba(0, 0, 0, 0);
}

/* NOTIFICATIONS */
.notification {
    position: fixed;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    padding: 16px 24px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    font-weight: 600;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    max-width: 90%;
    text-align: center;
}

.notification.show {
    opacity: 1;
}

.notification-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.notification-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* ========== RESPONSIVE DESIGN ========== */

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 30px;
    }

    .products-hero h1 {
        font-size: 42px;
    }

    .products-filter-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .products-page-wrapper {
        padding: 0;
    }

    .products-hero {
        padding: 80px 0;
        margin-top: 90px;
    }

    .products-hero h1 {
        font-size: 36px;
    }

    .products-hero p {
        font-size: 16px;
    }

    .products-grid-section {
        padding: 60px 0;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }

    .product-image-wrapper {
        height: 220px;
    }

    .product-info {
        padding: 16px;
        gap: 10px;
    }

    .product-info h3 {
        font-size: 14px;
        min-height: 36px;
    }

    .new-price {
        font-size: 16px;
    }

    .btn-cart,
    .btn-buy {
        padding: 10px;
        font-size: 13px;
    }

    .products-filter-bar h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }

    .product-image-wrapper {
        height: 180px;
    }

    .product-card {
        border-radius: 8px;
    }

    .discount-badge {
        font-size: 10px;
        padding: 4px 10px;
    }

    .wishlist {
        width: 36px;
        height: 36px;
    }

    .product-info h3 {
        font-size: 13px;
    }

    .price {
        font-size: 12px;
    }

    .new-price {
        font-size: 14px;
    }
}