/* ================= GLOBAL STYLES, VARIABLES, & RESETS ================= */
:root {
  --primary: #1f2937;
  --accent: #facc15;
  --text: #333333;
  --bg: #ffffff;
  --light-bg: #f8fafc;
  --border: #e2e8f0;
  --success: #10b981;
  --danger: #ef4444;
  --radius: 12px;
  --transition: all 0.3s ease;
}

* { margin:0; padding:0; box-sizing:border-box; }
body { font-family: 'Segoe UI', system-ui, sans-serif; background:var(--light-bg); color:var(--text); line-height:1.6; }
.container { max-width:1200px; margin:0 auto; padding:0 1rem; }
a { color: var(--accent); text-decoration:none; }
img { max-width:100%; display:block; }

/* ================= HEADER & NAVIGATION ================= */
.site-header {
  background: linear-gradient(135deg, #091a4c 0%, #3a254c 100%);;
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: padding 0.3s ease, height 0.3s ease;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a { font-size:1.8rem; font-weight:800; color:white; }

.mobile-menu-toggle { 
  display:none; 
  background:none; 
  border:none; 
  font-size:2rem; 
  color:white; 
  cursor:pointer; 
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 1.1rem;
}

.main-nav a { 
  color:white; 
  font-weight:500; 
  transition:var(--transition); 
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.main-nav a:hover { color:var(--accent); }

.cart-icon { 
  position:relative; 
  font-size: 1.4rem;
}

#cart-counter {
  position:absolute; 
  top:-8px; 
  right:-10px; 
  background:var(--danger);
  color:white; 
  font-size:0.7rem; 
  width:18px; 
  height:18px; 
  border-radius:50%; 
  display:grid; 
  place-items:center;
}

.mobile-menu-close {
  display: none;
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 2.5rem;
  color: white;
  cursor: pointer;
  z-index: 10;
}

.cart-icon a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.4rem;
}

@media (max-width: 768px) {
/* ================= Header Sticky Scroll Fix (Mobile Only) ================= */

    .site-header {
        padding: 1rem 0; 
        position: sticky; 
        transition: padding 0.3s ease, height 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
    }
    
    .site-header.scrolled {
        position: fixed; 
        top: 0;
        left: 0;
        width: 100%; 
        padding: 0.5rem 0; 
    }

    .site-header.scrolled .logo,
    .site-header.scrolled .site-title { 
        font-size: 1.2rem; 
        transition: font-size 0.3s ease;
    }
    
    .site-header.scrolled .cart-icon,
    .site-header.scrolled .mobile-menu-toggle {
        transform: scale(0.9);
        transition: transform 0.3s ease;
    }

  .mobile-menu-toggle, .mobile-menu-close { display:block; }
  .main-nav {
    position:fixed; top:0; right:-100%; width:280px; height:100vh;
    background: linear-gradient(135deg, #091a4c 0%, #3a254c 100%); flex-direction:column; padding:5rem 2rem;
    align-items: flex-start;
    transition:right 0.4s ease; justify-content:flex-start; font-size:1.3rem;
    overflow-y: auto;
    gap: 0;
  }
  .main-nav.active { right:0; }
  .main-nav a {
    width: 100%;
    padding: 1rem 0;
    gap: 1rem;
    justify-content: flex-start;
  }
  .main-nav .cart-icon {
        width: 100%;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255,255,255,0.1);
        display: flex; 
        justify-content: flex-start; 
    }

    .main-nav .cart-icon a {
        background: var(--accent);
        color: var(--primary);
        padding: 0.8rem;
        border-radius: var(--radius);
        font-weight: bold;
        transition: all 0.3s ease;
        width: 80px; 
        justify-content: center;
        /*display: flex;*/
        position: relative;
    }
    .main-nav .cart-icon a:hover {
        background: var(--accent);
        color: var(--primary);
    }
    #cart-counter {
      position: absolute;
        /*position: static; */
        top: -10px;
        /*right: auto;*/
        right: -10px;
        background: var(--danger);
        color: white; 
        font-size: 0.9rem; 
        /*padding: 0.6rem 0.8rem; */
        border-radius: 50%;
        width: 30px;
       height: 30px;
        text-align: center;
       /* margin-right: 1.5rem;*/
        line-height: 1;
    }
}

@media (min-width: 769px) {
  .header-container {
    flex-wrap: wrap;
    gap: 1rem;
  }
  .main-nav {
    gap: 1.5rem;
  }
  .desktop-cart {
    margin-left: auto;
  }
}

/* ================= HOME PAGE STYLES ================= */

/* Hero Section */
.hero-section {
  text-align:center; 
  padding:5rem 1rem; 
  background:linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color:white; 
  margin-bottom:3rem;
  border-radius: 0 0 var(--radius) var(--radius) !important;
}

.hero-section h1 { font-size:2.8rem; margin-bottom:0.5rem; }
.hero-section p { font-size:1.3rem; opacity:0.9; margin-bottom:1.5rem; }

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  line-height: 1;
  background: var(--accent);
  color: #000;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: var(--transition), transform 0.3s ease;
  cursor: pointer;
}

.cta-button i {
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.cta-button:hover i {
  transform: translateX(6px);
}

/* Products Grid */
.products-section h2 { text-align:center; margin:3rem 0 2rem; font-size:2.2rem; }
.products-grid {
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
  padding: 0 1rem;
}

.product-card {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: var(--transition);
  position: relative;
}

.product-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.15); }

.product-image-wrapper img {
  width:100%; height:240px; object-fit:cover; loading: lazy;
}

.card-content { padding:1rem; }
.card-content h3 { font-size:1.1rem; margin-bottom:0.5rem; }
.price-row { display:flex; align-items:center; gap:0.5rem; flex-wrap:wrap; font-size:1.2rem; font-weight:bold; color:var(--danger); }
.original-price { text-decoration:line-through; color:#94a3b8; font-weight:normal; font-size:1rem; }

.sale-badge {
  position:absolute; top:10px; left:10px; background:var(--danger); color:white;
  padding:4px 10px; border-radius:4px; font-size:0.8rem; font-weight:bold; z-index:2;
}

/* Product Card Badges */
.product-rating-value {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    padding: 2px 6px;
    border-radius: 4px;
    background-color: #fef08a; 
}

.product-rating-value .fa-star {
    color: #f59e0b;
    font-size: 0.8rem;
}

.shipping-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--success);
    background-color: #d1fae5;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

.shipping-badge .fa-shipping-fast {
    color: var(--success);
    font-size: 0.8rem;
}

.category-rating-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 5px 0 8px 0;
}

.category-rating-row .category-badge,
.category-rating-row .product-rating-value,
.category-rating-row .shipping-badge {
    margin: 0.5rem 0; 
    display: inline-flex; 
}

.category-filters {
  text-align: center;
  margin: 2rem 0;
  padding: 1rem;
  background: #f1f5f9;
  border-radius: 12px;
}

.category-btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  margin: 0.4rem;
  background: white;
  color: var(--primary);
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.category-btn:hover, .category-btn.active {
  background: var(--accent);
  color: #000;
  transform: translateY(-3px);
}

.category-badge {
  font-size: 0.8rem;
  color: var(--success);
  font-weight: bold;
  margin: 0.5rem 0;
  display: flex;
    align-items: center;
    gap: 4px;
   
}
.category-badge .fa-tag {
    font-size: 0.85rem; 
    line-height: 1; 
}

/* ================= PRODUCT PAGE STYLES ================= */

/* Product Page Layout */
.product-page .container {
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:4rem;
  margin:3rem auto;
  max-width:1100px;
  align-items: start;
}

@media (min-width: 769px) {
  .product-page #product-images {
    position: sticky;
    top: 5%;
    align-self: start;
    padding-right: 1rem;
  }
}

/* Product Gallery */
.gallery-main {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.main-image-wrapper {
    width: 100%;
    padding-top: 100%;
    height: 0;
    position: relative;
    overflow: hidden;
    background-color: #e2e8f0; 
    animation: pulse-bg 1.5s infinite ease-in-out;
}

.main-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    border-radius: var(--radius);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-thumbs {
    display: flex;
   /* grid-template-columns: repeat(4, 1fr);*/
    gap: 0.8rem;
    margin-top: 1rem;
    padding: 0.5rem 0;
    overflow-x: auto;
}
.thumbnail-wrapper {
  /* width: 100%; 
    padding-top: 100%; */
    height: 80px;
    width: 80px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    /*border: 3px solid transparent;*/
    transition: var(--transition);
    background-color: #e2e8f0;
    animation: pulse-bg 1.5s infinite ease-in-out;
}

.thumbnail-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    opacity: 0.6;
    transition: var(--transition);
    border: 3px solid transparent;
}
.thumbnail-wrapper img[data-loaded="true"]{opacity: 0.6;}
.thumbnail-wrapper.active-thumb img, .thumbnail-wrapper img:hover{
    opacity: 1;
    border-color: var(--accent);
}

/* Product Info */
.product-info {
    overflow-x: hidden; 
}
.product-info h1 { font-size:2.5rem; margin-bottom:0.5rem; }
#product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

#product-rating .fa-rating-icons {
    line-height: 1;
}

#product-rating .fa-rating-icons i {
    font-size: 1.25rem;
    margin-right: 1px;
}

#product-rating .count {
    color: #666;
    font-size: 1rem;
    font-weight: 500;
}
.category { color:#64748b; text-transform:uppercase; font-size:0.9rem; letter-spacing:1px; margin-bottom:1rem; }

.price-container { margin:1.5rem 0; display:flex; align-items:center; gap:1rem; flex-wrap:wrap; }
.price { font-size:1.5rem; font-weight:bold; color:var(--danger); }
.original-price { text-decoration:line-through; color:#94a3b8; }
.discount-badge { background:var(--success); color:white; padding:4px 10px; border-radius:4px; font-weight:bold; }

.product-stock {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  margin: 1rem 0;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  width: fit-content;
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.product-stock.out-of-stock {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.stock-icon { font-size: 1rem; }

.detail-badge {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.shipping-free-badge {
    background-color: var(--color-success, #28a745);
    color: white;
}

.shipping-paid-badge {
    background-color: var(--color-info, #17a2cc);
    color: white;
}

/* Options & Quantity */
.options { 
  display:grid; 
  grid-template-columns:repeat(auto-fit, minmax(140px,1fr)); 
  gap:1rem; 
  margin:2rem 0; 
}

.option-group label { display:block; margin-bottom:0.5rem; font-weight:600; }
.option-group select, .option-group input { width:100%; padding:0.8rem; border-radius:8px; border:1px solid var(--border); }

.color-options { display:flex; gap:0.8rem; }
.color-swatch {
  width:40px; height:40px; border-radius:50%; border:3px solid #fff;
  box-shadow:0 0 0 1px #ddd; cursor:pointer;
}
.color-swatch.active { box-shadow:0 0 0 3px var(--accent); }

.quantity-group { position: relative; }
.quantity-controls {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  width: fit-content;
  background: white;
}
.quantity-controls input {
  width: 60px;
  height: 50px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  font-size: 1.2rem;
  font-weight: bold;
  background: white;
  pointer-events: none;
}
.qty-btn {
  width: 50px;
  height: 50px;
  background: var(--light-bg);
  border: none;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}
.qty-btn:hover { background: var(--accent); color: #000; }
.qty-btn:disabled { background: #e2e8f0; color: #94a3b8; cursor: not-allowed; }
.qty-note { display: block; margin-top: 0.5rem; font-size: 0.8rem; color: #64748b; }

.add-to-cart-btn {
  display: block;
  width: 100%;
  margin: 1rem 0;
  padding: 1.2rem 2rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.3rem;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.add-to-cart-btn:hover {
  background: var(--accent);
  color: #000;
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.22);
}

.add-to-cart-btn:active {
  transform: translateY(-1px);
}

.buy-now-btn {
  width: 100%;
  margin: 0.8rem 0 0;
  padding: 1.2rem;
  background: #f97316;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.3rem;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 6px 20px rgba(249,115,22,0.3);
}

.buy-now-btn:hover {
  background: #ea580c;
  transform: translateY(-4px);
}

#add-to-cart:disabled,
#buy-now:disabled {
  background: #94a3b8 !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Product Description */
.description-blocks { margin-top:3rem; line-height:1.8; }
.description-blocks img { border-radius:var(--radius); margin:2rem 0; }

.description-blocks ul,
.description-blocks ol {
  margin: 1.8rem 0;
  padding-left: 0;
  line-height: 1.8;
  font-size: 1.05rem;
}

.description-blocks ul {
  list-style: none;
}

.description-blocks ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.9rem;
}

.description-blocks ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
  font-size: 1.4rem;
  top: -0.1rem;
}

.description-blocks ol {
  counter-reset: item;
  padding-left: 0;
}

.description-blocks ol li {
  position: relative;
  padding-left: 2.2rem;
  margin-bottom: 0.9rem;
  counter-increment: item;
}

.description-blocks ol li::before {
  content: counter(item) ".";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
  font-size: 1.1rem;
}

.description-blocks h1 + ul,
.description-blocks h2 + ul,
.description-blocks h1 + ol,
.description-blocks h2 + ol {
  background: rgba(250, 204, 21, 0.08);
  padding: 1.5rem 2rem;
  border-radius: 12px;
  border-left: 5px solid var(--accent);
  margin: 1.5rem 0;
}

/* Related Products */
.more-products-section {
    padding-top: 2rem;
}

.more-products-section .products-section-title { 
    font-size: 1.4rem;
    margin: 0 0 1rem; 
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    color: var(--primary);
}

.related-products-carousel {
    display: flex; 
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 10px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.related-products-carousel::-webkit-scrollbar {
    display: none;
}

.related-product-card {
    min-width: 150px;
    width: 150px; 
    flex-shrink: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    padding-bottom: 10px;
    transition: box-shadow 0.3s ease;
}

.related-product-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.related-product-card .sale-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--danger);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 10;
    display: inline-block;
    width: auto;
}

.related-product-card .product-image-wrapper {
    height: 150px;
    overflow: hidden;
    margin-bottom: 5px;
}
.related-product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-product-card .card-content {
    padding: 0 10px;
}

.related-product-card .related-card-title {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--primary);
}

.related-product-card .price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
}

.related-product-card .price {
    font-size: 1rem;
    color: var(--primary);
    font-weight: bold;
}

.related-product-card .original-price {
    font-size: 0.8rem;
    color: #94a3b8;
    text-decoration: line-through;
}

/* ================= STATIC PAGES STYLES (CHECKOUT, ABOUT, CONTACT) ================= */

/* Checkout Page */
.checkout-page { padding: 2rem 0; }
.checkout-page h1 { text-align:center; font-size:2.5rem; margin-bottom:0.5rem; }
.cod-note { text-align:center; font-size:1.1rem; color:var(--success); margin-bottom:2rem; }

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.order-summary, .delivery-form { background:var(--bg); padding:2rem; border-radius:var(--radius); box-shadow:0 4px 15px rgba(0,0,0,0.08); }
.order-summary h2, .delivery-form h2 { margin-bottom:1.5rem; color:var(--primary); }

.cart-item {
  display:flex; gap:1rem; padding:1rem 0; border-bottom:1px solid var(--border);
  position: relative;
  align-items: center;
}
.cart-item img { width:60px; height:60px; object-fit:cover; border-radius:8px; }
.cart-item-details { flex:1; }
.cart-item-details h4 { margin:0; font-size:1rem; }
.cart-item-details p { margin:5px 0 0; color:#666; font-size:0.9rem; }

.total-price {
  font-size:1.4rem; text-align:right; margin-top:1.5rem; padding-top:1rem; border-top:2px solid var(--accent);
}

.delivery-form .form-group { margin-bottom:1.2rem; }
.delivery-form label { display:block; margin-bottom:0.5rem; font-weight:600; }
.delivery-form input, .delivery-form textarea {
  width:100%; padding:0.9rem; border-radius:8px; border:1px solid var(--border); font-size:1rem;
}
.place-order-btn {
  width:100%; padding:1.2rem; background:var(--primary); color:white; border:none; border-radius:12px;
  font-size:1.3rem; font-weight:bold; cursor:pointer; margin-top:1rem; transition:var(--transition);
}
.place-order-btn:hover { background:var(--accent); color:#000; transform:translateY(-3px); }

.remove-item-btn {
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition);
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

.remove-item-btn:hover {
  background: #dc2626;
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .checkout-grid { grid-template-columns:1fr; }
  .checkout-page h1 { font-size:2rem; }
}

/* General Static Page */
.static-page {
  padding: 3rem 0;
  min-height: 70vh;
}

.static-page {
    padding: 3rem 0 5rem 0;
    max-width: 800px; /* Make the content narrower than the main container */
    margin: 0 auto;
}

.static-page h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
    border-bottom: 3px solid var(--accent);
    padding-bottom: 0.5rem;
    text-align: center;
}

.static-page h2 {
    font-size: 1.5rem;
    color: var(--text);
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.static-page p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.static-page ul {
    list-style: disc;
    margin-left: 1.5rem;
    padding-left: 0;
    margin-bottom: 1rem;
}

.static-page ul li {
    margin-bottom: 0.5rem;
}

.highlight-box {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 12px;
  margin: 1.5rem 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.highlight-box i {
  font-size: 2.5rem;
  color: var(--accent);
}

.highlight-box h3 {
  margin: 0 0 0.5rem;
  color: var(--primary);
}

.highlight-box.big { font-size: 1.3rem; padding: 2rem; text-align: center; }
.highlight-box.big i { font-size: 4rem; margin-bottom: 1rem; display: block; }
.highlight-box.success { background: rgba(16, 185, 129, 0.1); border: 2px solid var(--success); }

.delivery-list { font-size: 1.15rem; line-height: 2; margin: 1.5rem 0; }
.delivery-list li { margin-bottom: 0.8rem; }

.numbered-list { font-size: 1.15rem; line-height: 2; margin: 1.5rem 0; padding-left: 1rem; }
.numbered-list li { margin-bottom: 1rem; }

.important {
  background: var(--accent);
  color: #000;
  padding: 1.5rem;
  border-radius: 12px;
  font-weight: bold;
  text-align: center;
  margin: 2rem 0;
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 2rem;
}

.contact-info h2,
.contact-form-wrapper h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin: 1.5rem 0;
  font-size: 1.1rem;
}

.contact-item i {
  font-size: 1.8rem;
  color: var(--accent);
  margin-top: 0.2rem;
}

.response-time {
  background: rgba(250, 204, 21, 0.15);
  padding: 1rem;
  border-radius: 12px;
  margin-top: 2rem;
  text-align: center;
  font-size: 1.1rem;
}

.contact-form-wrapper {
  background: var(--bg);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

#contact-form .form-group {
  margin-bottom: 1.5rem;
}

#contact-form label {
  display: block;
  margin-bottom: 0.6rem;
  font-weight: 600;
  color: var(--primary);
}

#contact-form input,
#contact-form textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  transition: border 0.3s;
}

#contact-form input:focus,
#contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.send-message-btn {
  width: 100%;
  padding: 1.2rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.3rem;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
}

.send-message-btn:hover {
  background: var(--accent);
  color: #000;
  transform: translateY(-3px);
}

.success-message {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: bold;
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .highlight-box {
    flex-direction: column;
    text-align: center;
  }
  .static-page h1 { font-size: 2.2rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact-info, .contact-form-wrapper { text-align: center; }
  .contact-item { justify-content: center; }
  .social-icons a { width: 50px; height: 50px; font-size: 1.5rem; }
}

/* Form & Utility Selects */
.select-wrapper {
  position: relative;
}

#city {
  width: 100%;
  padding: 1rem 1rem 1rem 1rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  background: white;
  appearance: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

#city:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.2);
}

.select-arrow {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  pointer-events: none;
  font-size: 1.2rem;
}

.select-wrapper:hover #city {
  border-color: var(--accent);
}
.error-msg {
  color: #ef4444;
  font-size: 0.9rem;
  margin-top: 0.4rem;
  display: block;
}
/* privacy */
.privacy-section .updated-date {
    font-size: 0.9rem;
    color: #6b7280; /* A darker gray */
    margin-bottom: 2rem;
    text-align: center;
}

/* faq page */

.faq-section {
    margin-top: 3rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden; /* Important for border-radius */
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    background-color: var(--bg);
    color: var(--text);
    cursor: pointer;
    padding: 1.2rem 1.5rem;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 500;
}

.faq-question:hover {
    background-color: var(--light-bg);
}

/* Style for the active question */
.faq-item.active .faq-question {
    background-color: var(--light-bg);
    color: var(--primary);
    font-weight: 600;
}

/* Plus/Minus Icon Styling */
.faq-question i {
    font-size: 1rem;
    transition: transform 0.3s ease;
    color: var(--accent);
}

.faq-item.active .faq-question i {
    transform: rotate(45deg); /* Rotates the plus to look like an X/minus */
    color: var(--primary);
}

/* Answer Content */
.faq-answer {
    padding: 0 1.5rem;
    background-color: #fcfcfd; /* Very light background for contrast */
    max-height: 0; /* Hidden by default */
    overflow: hidden;
    transition: max-height 0.3s ease-out; /* Smooth slide transition */
}

.faq-answer p {
    padding: 1rem 0 1.5rem 0;
    margin-bottom: 0;
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    .static-page {
        padding: 2rem 1rem 4rem 1rem;
    }

    .static-page h1 {
        font-size: 2rem;
    }
    
    .faq-question {
        padding: 1rem;
        font-size: 1rem;
    }
}
/* ================= LOADER & TOAST ================= */
.loader { display:grid; place-items:center; height:60vh; }
.spinner {
  width:50px; height:50px; border:5px solid #f3f3f3; border-top:5px solid var(--accent);
  border-radius:50%; animation:spin 0.8s linear infinite;
}
@keyframes spin { to { transform:rotate(360deg); } }

@keyframes pulse-bg {
    0% {
        opacity: 0.8;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 0.8;
    }
}

#toast {
    visibility: hidden;
    min-width: 220px;
    max-width: 320;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 6px;
    position: fixed;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.4s ease, bottom 0.4s ease;
    z-index: 9999;
    box-sizing: border-box;
}

#toast.show {
    visibility: visible;
    opacity: 1;
    bottom: 60px;
}

.toast-success {
    background-color: #28a745 !important;
}

.toast-error {
    background-color: #dc3545 !important;
}

#toast span {
    flex: 1;
    word-break: break-word;
}

#toast i {
    font-size: 18px;
    flex-shrink: 0;
}

/* Image Placeholders */
.image-placeholder, 
.main-image-wrapper, 
.thumbnail-wrapper {
    background-color: #f8fafc;
    background-image: url('https://i.ibb.co/YFTYgSMY/shopping-cart-icon-shopping-basket-on-transparent-background-free-png-1.png'); 
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 45%; 
    position: relative;
    overflow: hidden; 
    animation: pulse-bg 1.5s infinite ease-in-out; 
}

.image-placeholder:has(img[data-loaded="true"]),
.main-image-wrapper:has(img[data-loaded="true"]),
.thumbnail-wrapper:has(img[data-loaded="true"]) {
    animation: none;
    background-image: none;
    background-color: transparent;
}

.image-placeholder img,
.main-image-wrapper img,
.thumbnail-wrapper img {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.image-placeholder img[data-loaded="true"],
.main-image-wrapper img[data-loaded="true"] {
    opacity: 1;
}

/* ================= FOOTER ================= */

.site-footer {
    background: linear-gradient(135deg, #091a4c 0%, #3a254c 100%);
    color: #fff;
    padding: 60px 24px 24px;
    margin-top: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: 48px;
    margin-bottom: 48px;
}

/* Brand */
.brand h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.brand p {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.6;
}

/* Navigation Groups */
.nav-group h3,
.contact h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.nav-group h3::after,.contact h3::after{
    position: absolute;
    content: "";
    bottom: -5px;
    left: 0px;
    height: 3px;
    width: 44px;
    background: #9c92c7;
}
.nav-group a {
    display: block;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 12px;
    opacity: 0.8;
    transition: all 0.2s;
}

.nav-group a:hover {
    opacity: 1;
    transform: translateX(4px);
}

/* Contact */
.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 12px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.contact-link:hover {
    opacity: 1;
}

.contact-link i {
    font-size: 16px;
}

/* Social */
.social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.social a:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

/* Footer Bottom */
.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 968px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 640px) {
    .site-footer {
        padding: 40px 20px 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
        margin-bottom: 32px;
    }
    .brand,.contact{grid-column:1/3}
    .nav-group,.contact {
        text-align: center;
    }

    .contact-link,.social {
        justify-content: center;
    }
.nav-group h3::after ,.contact h3::after{left: 50%;transform: translate(-50%, -50%);}
.brand h2,.brand p,.nav-group a,.nav-group h3,.contact h3,.contact a,.social a{text-align: center;}
    .brand h2 {
        font-size: 24px;
    }
.contact-link{text-align: center;}
}
/* ================= RESPONSIVE UTILITY ================= */
@media (max-width: 768px) {
  .product-page .container { grid-template-columns:1fr; gap:2rem; }
  .hero-section h1 { font-size:2.2rem; }
}