/* 🎨 Background & Theme */
body {
    font-family: 'Playfair Display', serif;
    color: #333;
    background-color: #FFE6EC; /* Soft pastel pink */
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    padding-top: 90px;
}

body.loaded {
    opacity: 1;
}

/* 📌 Category Title */
#category-title {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FF85A2, #FF4081);
    font-size: 36px; /* ⬆️ Increased font size */
    font-weight: 800; /* ⬆️ Bolder text */
    text-transform: capitalize; /* 🔤 Capitalizes first letter */
    padding: 25px;
    width: 100%;
    text-align: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

#category-title.loaded {
    opacity: 1;
}

.sorting-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px; /* Reduce the gap */
    margin: 15px auto;
    padding: 10px 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    flex-wrap: nowrap; /* Prevents wrapping */
}


/* 🔄 Dropdowns */
.sorting-container select {
    padding: 8px 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    background: #fff;
    transition: border 0.3s ease;
}

.sorting-container select:focus {
    border-color: #FF4081;
}

/* 📌 Labels */
.sorting-container label {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.sorting-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap; /* Prevents wrapping */
}


/* 📦 Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 🛍️ Product Card */
.product-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 2px solid #FF85A2; 
    position: relative;
    overflow: hidden;
}

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

/* 🖼️ Product Image */
.product-card img {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    border-radius: 5px;
}

/* 🏷️ Product Title */
.product-title {
    font-size: 18px;
    font-weight: bold;
    margin: 10px 0;
    color: #FF4081; /* Vibrant pink */
}

/* 💰 Product Price */
.product-price {
    font-size: 20px;
    font-weight: bold;
    color: #D50000; /* Deep red for contrast */
    margin-bottom: 10px;
}

/* 📖 Product Description */
.product-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    padding: 0 10px;
}

/* 🛒 View Product Button */
.product-card .view-product-btn {
    display: block;
    padding: 12px;
    background: #FF4081;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 10px;
    transition: background 0.3s;
}

.product-card .view-product-btn:hover {
    background: #C2185B;
}

/* 📑 Pagination Controls */
.pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    margin: 15px auto;
    max-width: 1200px;
}

/* 🛑 Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.pagination button {
    padding: 10px 15px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    background: #FF4081;
    color: white;
    border-radius: 5px;
    font-weight: bold;
    min-width: 80px;
    text-align: center;
    transition: 0.3s ease;
}

.pagination button:hover {
    background: #C2185B;
}

.pagination button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 🔍 Search Bar */
.search-container {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    margin-bottom: 15px;
}

#product-search {
    width: 100%;
    max-width: 300px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    outline: none;
    transition: 0.3s ease;
}

#product-search:focus {
    border-color: #FF4081;
    box-shadow: 0 0 5px rgba(255, 64, 129, 0.3);
}

/* 🎯 Search Button */
#search-button {
    padding: 8px 15px;
    border: none;
    background: #FF4081;
    color: white;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

#search-button:hover {
    background: #C2185B;
}

@media (max-width: 600px) {
    .sorting-container {
        flex-direction: column; /* Stack elements on small screens */
        align-items: center;
        gap: 10px;
    }

    .sorting-group {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }
}
.rating-stars {
    display: inline-block;
    font-size: 1.1rem;
    color: #ffb400; /* Gold stars */
    line-height: 1.2;
    margin: 8px 0 0;
    min-height: 24px; /* Ensures consistent height */
}

.rating-stars span {
    color: #000; /* Black review count */
    font-size: 1rem;
    margin-left: 4px;
}
.variant-display {
    margin: 4px 0 8px;
  }
  
  .variant {
    display: inline-block;
    font-size: 13px;
    padding: 2px 6px;
    margin-right: 4px;
    border-radius: 3px;
  }
  
  .variant.in-stock {
    background-color: #e0f8e9;
    color: #1a7f37;
    font-weight: 600;
  }
  
  .variant.out-of-stock {
    background-color: #fce4e4;
    color: #b3261e;
    opacity: 0.7;
  }
  .clearance-ribbon {
    position: absolute;
    top: 30px;
    left: -110px;
    width: 350px;
    background: #c62828;
    color: white;
    text-align: center;
    font-size: 11px;
    font-weight: bold;
    font-family: Arial, sans-serif;
    padding: 5px 0;
    transform: rotate(-45deg);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    pointer-events: none;
    z-index: 5;
}
.promo-card {
    background: white;
    padding: 0;
    border-radius: 8px;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 2px solid #FF85A2;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.promo-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
}
@media (max-width: 600px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* 🎨 Background & Theme */
body {
    color: #f8f0ff !important;
    background: linear-gradient(120deg, #16001E 0%, #32004A 100%) !important;
}

/* 📌 Category Title */
#category-title {
    background: linear-gradient(90deg, #ee0077 50%, #e10097 100%) !important;
    color: #fff !important;
}

/* 🔄 Sorting Container */
.sorting-container {
    background: rgba(30,8,45,0.96) !important;
    color: #f8f0ff !important;
}
.sorting-container select {
    background: rgba(255,255,255,0.07) !important;
    color: #f8f0ff !important;
    border: 1px solid #ee0077 !important;
}
.sorting-container select:focus {
    border-color: #ee0077 !important;
}

/* 📦 Product Card */
.product-card {
    background: rgba(255,255,255,0.07) !important;
    border: 2px solid #ee0077 !important;
}

/* 🏷️ Product Title */
.product-title {
    color: #ffd6fa !important;
}

/* 💰 Product Price */
.product-price {
    color: #e10097 !important;
}

/* 🛒 View Product Button */
.product-card .view-product-btn {
    background: linear-gradient(90deg, #ee0077 50%, #e10097 100%) !important;
    color: #fff !important;
}
.product-card .view-product-btn:hover {
    background: linear-gradient(90deg, #e10097 0%, #fa22ba 100%) !important;
}

/* 📑 Pagination Controls */
.pagination-controls {
    background: rgba(30,8,45,0.96) !important;
    color: #f8f0ff !important;
}

/* 🛑 Pagination Buttons */
.pagination button {
    background: linear-gradient(90deg, #ee0077 50%, #e10097 100%) !important;
    color: #fff !important;
}
.pagination button:hover {
    background: linear-gradient(90deg, #e10097 0%, #fa22ba 100%) !important;
}

/* 🔎 Search Focus */
#product-search:focus {
    border-color: #ee0077 !important;
    box-shadow: 0 0 5px rgba(238,0,119,0.3) !important;
}

/* 🎯 Search Button */
#search-button {
    background: linear-gradient(90deg, #ee0077 50%, #e10097 100%) !important;
    color: #fff !important;
}
#search-button:hover {
    background: linear-gradient(90deg, #e10097 0%, #fa22ba 100%) !important;
}

/* 🔍 Active Thumbnail */
.thumbnail.active {
    border: 2px solid #ee0077 !important;
}

/* ❌ Close Modal */
.close-modal {
    background: linear-gradient(90deg, #ee0077 50%, #e10097 100%) !important;
    color: #fff !important;
}
.close-modal:hover {
    background: linear-gradient(90deg, #e10097 0%, #fa22ba 100%) !important;
}

/* ⬅️➡️ Prev/Next Arrows */
.prev-btn, .next-btn {
    background: rgba(225,0,151,0.8) !important;
    color: #fff !important;
}
.prev-btn:hover, .next-btn:hover {
    background: #fa22ba !important;
}

/* 📦 Promo-Card */
.promo-card {
    border: 2px solid #ee0077 !important;
}
/* ========== SCROLLBAR OVERRIDES ========== */

/* WebKit Browsers */
::-webkit-scrollbar {
    width: 14px !important;
    background: #2c0044 !important;
  }
  ::-webkit-scrollbar-thumb {
    border-radius: 7px !important;
    background: linear-gradient(135deg, #e10097 40%, #2efbe8 100%) !important;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #f677fa 0%, #8000ff 100%) !important;
  }
  
  /* Firefox */
  html {
    scrollbar-width: thin !important;
    scrollbar-color: #e10097 #2c0044 !important;
  }
  
  /* ========== HEADER & FOOTER GLASS OVERRIDE ========== */
  #header-container,
  #footer-container {
    box-shadow: 0 12px 32px -18px #32003a66, 0 -12px 32px -18px #48005588 !important;
    background: rgba(30,8,45,0.96) !important;
    border-radius: 0 0 32px 32px !important;
    margin-bottom: 1.3rem !important;
  }
/* ========== SORTING BOX OVERRIDES ========== */

/* Container background (if needed) */
.sorting-container {
    background: rgba(30,8,45,0.96) !important;
    position: center !important;
  }
  
  /* “Sort By:” label in white */
  .sorting-container label {
    color: #fff !important;
  }
  
  /* Dropdown text in black */
  .sorting-container select {
    color: #000 !important;
    background: #fff !important;
    border-color: #ee0077 !important;
  }
  
  /* Options (when open) in black on white */
  .sorting-container select option {
    color: #000 !important;
    background: #fff !important;
  }
    