/* =========================
   GLOBAL RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: #fafafa;
    color: #222;
    width: 100%;
    overflow-x: hidden;
}

/* =========================
   HEADER
========================= */
.header {
    background: #fff;
    border-bottom: 1px solid #eaeaea;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 10;
}

.navbar {
    max-width: 1400px;
    margin: auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: -10px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 74px;          /* adjust if needed */
    width: auto;
    display: block;
}

@media (max-width: 576px) {
    .logo-img {
        height: 58px;
    }
}



.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    font-size: 18px;
    color: #333;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #e60023;
}

.cart-icon{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  
}

/* the bag svg */
.bag-icon{
  width: 31px;
  height: 31px;
  color: #111;
  display: block;
}

/* the number bubble */
.cart-icon .cart-count{
  position: absolute;
  top: -3px;
  right: -5px;
  min-width: 16px;
  height: 16px;
  padding: 0 5px;
  border-radius: 999px;
  background: #e60023;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  
}




/* HEADER BANNER */
.header-banner{
  width: 100%;
  background: #fff;     /* so empty space looks clean */
}

.header-banner img{
  width: 100%;
  height: auto;         /* ✅ responsive height */
  display: block;
  object-fit: contain;  /* ✅ no crop */
}


/* =========================
   PRODUCTS SECTION
========================= */
.products-section {
    width: 100%;
    padding: 40px 0;
}

.section-title {
    max-width: 1400px;
    margin: 0 auto 25px;
    padding: 0 20px;
    font-size: 26px;
    font-weight: bold;
}

/* =========================
   PRODUCT GRID
========================= */
.product-grid {
    max-width: 1400px;
    margin: auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

/* =========================
   PRODUCT CARD
========================= */
.product-card {
    background: #ffffff;
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease;
}

.product-card:hover {
    transform: translateY(-3px);
}

/* =========================
   BADGES
========================= */

/* SALE badge - top left */
.sale-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e60023;
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    text-transform: uppercase;
    z-index: 3;
}

/* SOLD OUT badge - top right */
.soldout-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #000;
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    text-transform: uppercase;
    z-index: 3;

    /* FLASH black ⇄ yellow with glow */
    animation: soldoutFlash 1s infinite ease-in-out;
}



@keyframes soldoutFlash {
  0% {
    background-color: #000;
    box-shadow: none;
  }
  50% {
    background-color: #f1c40f; /* YELLOW */
    box-shadow: 0 0 10px rgba(241, 196, 15, 0.85);
  }
  100% {
    background-color: #000;
    box-shadow: none;
  }
}




/* Optional sold-out effect */
.product-card.sold-out img {
    opacity: 1.0;
    color: #777;
}

.product-card.sold-out {
    pointer-events: none;
}

/* IMAGE & TEXT */
.product-card img {
    width: 100%;
    height: 430px;
    object-fit: cover;
    display: block;
}

.product-info {
    padding: 12px;
    text-align: center;
}

.product-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    line-height: 1.4;
}

.price {
    font-size: 15px;
    font-weight: bold;
    color: #e60023;
}

.price del {
    font-size: 13px;
    color: #777;
    margin-left: 6px;
}

/* VIEW ALL BUTTON */
.view-all {
    display: block;
    margin: 35px auto 0;
    padding: 12px 28px;
    background: #111;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease;
}

.view-all:hover {
    background: #333;
}

/* =========================
   FOOTER
========================= */
.site-footer{
  background:#000000;
  border-top:1px solid #e9e9e9;
  padding:40px 0;
  margin-top:40px;
}

.footer-inner{
  max-width:1200px;
  margin:0 auto;
  padding:0 18px;
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:30px;
}

.footer-title{
  font-size:16px;
  font-weight:700;
  margin:0 0 12px;
  color:#ffffff;
}

.footer-text{
  margin:0 0 10px;
  font-size:14px;
  line-height:1.6;
  color:#ffffff;
}

.footer-list{
  list-style:none;
  padding:0;
  margin:0;
}

.footer-list li{
  margin:10px 0;
}

.footer-link{
  color:#ffffff;
  text-decoration:none;
  font-size:12px;
}

.footer-link:hover{
  text-decoration:underline;
}

.footer-form{
  margin-top:6px;
}

.footer-label{
  display:block;
  font-size:13px;
  color:#fffcfc;
  margin:0 0 8px;
}

.footer-input-row{
  display:flex;
  gap:10px;
}

.footer-input{
  flex:1;
  border:1px solid #cfcfcf;
  padding:10px 12px;
  border-radius:6px;
  font-size:14px;
  outline:none;
}

.footer-btn{
  border:none;
  padding:10px 14px;
  border-radius:6px;
  background:#ffffff;
  color:#000000;
  font-weight:600;
  cursor:pointer;
  font-size:14px;
}

.footer-btn:hover{
  opacity:.92;
}

.footer-bottom{
  margin-top:18px;
  font-size:13px;
  color:#ffffff;
  border-top:1px solid #eee;
  padding-top:14px;
}

/* Responsive */
@media (max-width: 992px){
  .footer-inner{ grid-template-columns: 1fr 1fr; }
  
}
@media (max-width: 560px){
  .footer-inner{ grid-template-columns: 1fr; }
  .footer-link{
  color:#ffffff;
  text-decoration:none;
  font-size:12px;
}
}


/* =========================
   RESPONSIVE DESIGN
========================= */

/* Laptop */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet */
@media (max-width: 992px) {
    .nav-links {
        display: none; /* hamburger menu later */
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================
   PRODUCT PAGE
========================= */

.product-page {
    max-width: 1400px;
    margin: auto;
    padding: 40px 20px;
}

.product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 20px;
}

.product-image img {
    width: 100%;
    object-fit: cover;
    margin-left: 70px;
}

.product-details h1 {
    font-size: 26px;
    margin-bottom: 15px;
    margin-left: 70px;
}

.product-price {
    font-size: 22px;
    color: #e60023;
    margin-bottom: 20px;
    margin-left: 70px;
}

.product-price del {
    font-size: 16px;
    color: #777;
    margin-left: 10px;
    
}

.product-description {
    list-style: disc;
    padding-left: 20px;
    font-size: 20px;
    line-height: 2.8;
    margin-left: 70px;
}

/* =========================
   PRODUCT PAGE ACTIONS (FemaleChoice style)
========================= */

.product-actions {
    margin: 24px 0;
    display: flex;
    flex-direction: column; /* vertical layout */
    gap: 12px; /* vertical gap between elements */
    margin-left: 70px;
}

.quantity-wrapper {
    display: flex;
    flex-direction: column;
    font-size: 18px;
}

.quantity-controls {
    display: inline-flex;
    align-items: center;
    margin-top: 6px;
}

.quantity-controls button {
    width: 56px;      /* slightly wider */
    height: 56px;     /* slightly taller */
    background: #f2f2f2;
    border: 1px solid #ccc;
    font-size: 18px;
    cursor: pointer;
}

.quantity-controls input {
    width: 130px;       /* wider input */
    height: 56px;      /* taller input */
    text-align: center;
    border: 1px solid #ccc;
    margin: 0 4px;
    font-size: 16px;
    border-radius: 2px;
}

.btn {
    cursor: pointer;
    font-size: 16px;
    padding: 10px 18px;
    border: none;
    color: #fff;
    text-transform: uppercase;
    font-weight: 600;
    transition: background 0.2s ease;
    border-radius: 2px;

    /* FIX BUTTON WIDTH */
    width: 440px;        /* fixed width, slightly wider than quantity input */
    height: 60px;
    text-align: center;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.add-to-cart {
    background: none;
    color: #070707; 
    font-weight: 300;
    text-transform: capitalize;
    border: 1.5px solid #0c0c0c;
}

.add-to-cart:hover {
    background: #ffffff;
}

#buyNowBtn{
    margin-bottom: 40px;
}
.buy-now {
    background: #c40000;
    
}

.buy-now:hover {
    background: #333;
}

/* PRODUCT IMAGE THUMBNAILS */
.product-thumbnails {
    margin-top: 30px;
    display: flex;
    gap: 0.1px; /* small, tight gap */
}

.product-thumbnails img {
    width: 100px;       /* slightly smaller so less visual gap */
    height: 150px;     /* maintain aspect ratio */
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease, transform 0.2s ease;
    box-sizing: content-box;
}

.product-thumbnails img:hover {
    transform: scale(1.05); /* subtle hover effect */
}

.product-thumbnails img.active {
    border-color: #000;
    padding-left: 15px;
    padding-right: 15px;
}

/* ================= CART PAGE ================= */

.cart-page {
    padding: 40px 0;
}

.cart-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* CART ITEM ROW */
.cart-item {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e5e5e5;
    padding: 20px 0;
    gap: 20px;
}

/* IMAGE */
.cart-image img {
    width: 120px;
    height: 160px;
    object-fit: cover;
}

/* PRODUCT NAME */
.cart-name {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
}

/* QUANTITY */
.cart-qty {
    width: 80px;
    text-align: center;
    font-size: 16px;
}

/* PRICE */
.cart-price {
    width: 120px;
    text-align: right;
    font-size: 16px;
    font-weight: 600;
}

/* COMPLETE ORDER */
.cart-actions {
    margin-top: 30px;
    text-align: center;
}

.complete-order {
    padding: 14px 32px;
    font-size: 14px;
    font-weight: 600;
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
}

/* Total Amount in Cart */
.total-amount {
    font-size: 18px;
    font-weight: bold;
    color: #222;           /* dark text */
    margin-bottom: 25px;   /* space above button */
    text-align: right;     /* align to right side */
    margin-right: 100px;
}

/* Optional: Highlight the total with a background */
.total-amount.highlight {
    background-color: #f9f9f9;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
}
/* Section header row */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 30px;
}

/* Force title to left */
.section-header .section-title {
    margin: 0;
    text-align: left;
}

/* Keep sort on right */
.sort-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 20px;
    white-space: nowrap;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .product-container {
        grid-template-columns: 1fr;
    }
}

/* STOCK STATUS */
.stock-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 500;
}

.stock-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

/* IN STOCK */
.stock-status.in-stock .stock-dot {
    background-color: #2ecc71; /* green */
}

.stock-status.in-stock .stock-text {
    color: #2ecc71;
}

/* OUT OF STOCK */
.stock-status.out-of-stock .stock-dot {
    background-color: #e74c3c; /* red */
}

.stock-status.out-of-stock .stock-text {
    color: #e74c3c;
}

/* Disabled buttons (Out of Stock) */
button:disabled,
.btn:disabled {
    background-color: #ccc !important;
    color: #666 !important;
    cursor: not-allowed !important;
    opacity: 0.6;
    pointer-events: none;
}

/* Optional: remove hover effect when disabled */
button:disabled:hover,
.btn:disabled:hover {
    background-color: #ccc;
}

/* Clickable product cards (in stock) */
.product-card:not(.sold-out) {
    cursor: pointer;
}

/* Product description blocks (like screenshot) */
.product-description {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1;
}

.desc-section {
  margin-bottom: 26px;
}

.desc-title {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 8px;
}

.desc-line {
  margin: 2px 0;
}

.desc-meta {
  margin-top: 6px;
  font-size: 16px;
}

.desc-meta strong {
  font-weight: 700;
}


/* =========================
   MOBILE HAMBURGER MENU
========================= */
.hamburger {
    display: none; /* desktop hidden */
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #111;
    margin: 2px 0;
}

/* Overlay behind the menu */
.mobile-menu-overlay {
    display: none;
}

/* Mobile layout */
@media (max-width: 992px) {

    /* show hamburger */
    .hamburger {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
    }

    /* hide desktop nav by default */
    .nav-links {
        display: none;
    }

    /* overlay */
    .mobile-menu-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.45);
        z-index: 999;
        display: none;
    }
    .mobile-menu-overlay.open {
        display: block;
    }

    /* slide-in menu (uses your existing UL) */
    .nav-links.open {
        display: flex;
        flex-direction: column;
        gap: 0;
        position: fixed;
        top: 0;
        left: 0;
        width: 78%;
        max-width: 320px;
        height: 100vh;
        background: #fff;
        z-index: 1000;
        padding: 70px 18px 18px;
        box-shadow: 0 12px 30px rgba(0,0,0,0.18);
    }

    .nav-links.open li {
        border-bottom: 1px solid #eee;
        padding: 14px 0;
    }

    .nav-links.open a {
        font-size: 16px;
        display: block;
        width: 100%;
    }
}

/* FLASH SALE BAR (STATIC) */
.flash-bar{
  width: 100%;
  background: #000;
  padding: 8px 0;
  overflow: hidden;
  margin-bottom: 7px;
}

.flash-track{
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;

  /* key part: fill nicely on all widths */
  text-align: center;
  white-space: nowrap;

  line-height: 1.2;
  padding: 0 12px;
}


/* Mobile */
@media (max-width: 576px) {
  .product-card img {
    height: 260px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr); /* ✅ 2 products per row */
    gap: 12px;                             /* optional: slightly smaller gap */
  }

  .section-title {
    font-size: 22px;
  }

  /* remove the big side margins that break mobile */
  .product-image img,
  .product-details h1,
  .product-price,
  .product-description,
  .product-actions {
    margin-left: 0 !important;
  }

  /* single column layout */
  .product-container {
    grid-template-columns: 1fr !important;
    gap: 18px;
    margin-bottom: -10px;
  }

  /* image should never overflow */
  .product-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
  }

  /* thumbnails: wrap + scroll safety */
  .product-thumbnails {
    display: flex;
    flex-wrap: wrap;           /* ✅ wrap instead of overflow */
    gap: 8px;
    margin-top: 12px;
    justify-content: flex-start;
  }

  .product-thumbnails img {
    width: 64px;               /* smaller thumbs for mobile */
    height: 88px;
    object-fit: cover;
  }

  /* remove padding that can push thumbnails wider */
  .product-thumbnails img.active {
    padding-left: 0;
    padding-right: 0;
    border-color: #000;
  }

  /* description should not overflow */
  .product-description {
    font-size: 16px;
    line-height: 1.8;
    padding-left: 18px;
    word-break: break-word;
  }

  /* buttons must be responsive */
  .btn {
    width: 100% !important;   /* ✅ instead of fixed 440px */
    max-width: 100%;
    box-shadow: none;         /* optional: looks cleaner on mobile */

  }

  /* quantity controls should fit screen */
  .quantity-controls {
    width: 100%;
  }

  .quantity-controls input {
    width: 100%;
    max-width: 140px;
  }

  /* keep normal page padding for text, but make main image full width */
  .product-page {
    padding-left: 20px;
    padding-right: 20px;
    margin-top: -10px;
  }
  
   .product-image {
    margin-left: -20px;   /* matches .product-page padding */
    margin-right: -20px;
  }

  /* main image full width */
  #productImage {
    width: 100%;
    margin-top: -5px;
    height: auto;
    display: block;
    object-fit: cover;
  }

  /* thumbnails should NOT become huge */
  .product-thumbnails {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 10px 12px;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
  }

  .product-thumbnails img {
    width: 72px;
    height: 96px;
    flex: 0 0 auto;
    object-fit: cover;
    border: 2px solid transparent;
  }

  .product-thumbnails img.active {
    border-color: #000;
    padding-left: 0;
    padding-right: 0;
  }

  /* product title smaller */
  .product-details h1 {
    font-size: 20px;
    line-height: 1.35;
  }


.product-description {
  margin-top: 23px;
  font-size: 16px;
  line-height: 1;
}

.desc-section {
  margin-bottom: 26px;
}

.desc-title {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 8px;
}

.desc-line {
  margin: 2px 0;
}

.desc-meta {
  margin-top: 6px;
  font-size: 16px;
}

.desc-meta strong {
  font-weight: 700;
}

#buyNowBtn {
    margin-bottom: 40px;
}

.cart-item{
    display: grid;
    grid-template-columns: 92px 1fr auto;  /* image | content | remove */
    grid-template-rows: auto auto;         /* title row | qty+price row */
    column-gap: 12px;
    row-gap: 6px;
    align-items: start;
  }

  /* Image stays left */
  .cart-image{
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .cart-image img{
    width: 92px;
    height: 120px;
    object-fit: cover;
  }

  /* Title on its own line (right side) */
  .cart-name{
    grid-column: 2;
    grid-row: 1;
    font-size: 16px;
    line-height: 1.35;
    margin: 0;
    width: 100%;
  }

  /* Qty row (right side, same line as price) */
  .cart-qty{
    grid-column: 2;
    grid-row: 2;
    width: auto;
    text-align: left;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  /* Price on same line as qty, aligned right */
  .cart-price{
    grid-column: 3;
    grid-row: 2;
    width: auto;
    text-align: right;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
  }

  /* Remove button top-right next to title */
  .cart-remove{
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  /* Optional: make remove button look cleaner on mobile */
  .cart-remove .remove-btn{
    background: transparent;
    border: none;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
  }

  .cart-actions .btn.complete-order {
    width: auto;            /* remove fixed 440px */
    max-width: 320px;       /* optional: nice size */
    height: 52px;           /* slightly smaller on mobile */
    box-shadow: none;       /* optional: cleaner on cart */
  }

/* =========================
   PUSH FOOTER TO BOTTOM (CART PAGE FIX)
========================= */

html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

/* main content should expand */
main {
  flex: 1;
}

/* specifically ensure cart page grows */
.cart-page {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* =========================
   PUSH FOOTER TO BOTTOM (CART PAGE FIX)
========================= */

html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

/* main content should expand */
main {
  flex: 1;
}

/* specifically ensure cart page grows */
.cart-page {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* keep cart content from collapsing */
.cart-container {
  flex: 1;
}




}

