/* ============================================================
   MARKETPLACE CLONE — style.css
   ============================================================ */
   :root{
    --navy: #131921;
    --navy-light: #232F3E;
    --navy-lighter: #37475A;
    --orange: #FF9900;
    --yellow: #FFD814;
    --yellow-dark: #F7CA00;
    --link: #007185;
    --price-red: #B12704;
    --success: #007600;
    --bg: #EAEDED;
    --white: #fff;
    --text: #0F1111;
    --text-muted: #565959;
    --border: #D5D9D9;
    --ease: cubic-bezier(.4,0,.2,1);
    --font: "Inter", Arial, sans-serif;
  }
  
  *,*::before,*::after{ box-sizing: border-box; }
  html{ scroll-behavior: smooth; }
  body{
    margin:0; font-family: var(--font); color: var(--text); background: var(--bg); font-size: 14px;
    -webkit-font-smoothing: antialiased;
  }
  img{ max-width:100%; display:block; }
  a{ color:inherit; text-decoration:none; }
  button{ font-family: inherit; cursor:pointer; }
  h1,h2,h3,h4{ margin:0; font-weight:700; }
  p{ margin:0; }
  hr{ border:none; border-top: 1px solid var(--border); margin: 14px 0; }
  
  .btn{ border:none; border-radius: 8px; font-weight:600; padding: 10px 16px; font-size: 13px; transition: filter .2s var(--ease), transform .15s var(--ease); }
  .btn:active{ transform: scale(.97); }
  .btn--yellow{ background: linear-gradient(180deg, var(--yellow), var(--yellow-dark)); color: var(--text); }
  .btn--yellow:hover{ filter: brightness(1.05); }
  .btn--orange{ background: linear-gradient(180deg, #FFB84D, #FFA724); color: var(--text); }
  .btn--orange:hover{ filter: brightness(1.05); }
  .btn--full{ width:100%; }
  
  /* ============================================================
     TOAST
     ============================================================ */
  .toast{
    position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px);
    background: var(--navy); color:#fff; padding: 13px 22px; border-radius: 6px; font-size: 14px;
    opacity:0; pointer-events:none; transition: opacity .3s var(--ease), transform .3s var(--ease);
    z-index: 500; box-shadow: 0 8px 24px rgba(0,0,0,.3); display:flex; align-items:center; gap:10px;
  }
  .toast.is-visible{ opacity:1; transform: translateX(-50%) translateY(0); }
  .toast::before{ content:"✓"; background: var(--success); border-radius:50%; width:20px; height:20px; display:flex; align-items:center; justify-content:center; font-size:12px; flex-shrink:0; }
  
  /* ============================================================
     HEADER
     ============================================================ */
  .site-header{ position: sticky; top:0; z-index: 60; }
  .header-row{ display:flex; align-items:center; }
  .header-row--main{
    background: var(--navy); color:#fff; padding: 10px 14px; gap: 14px;
  }
  .icon-btn{ background:none; border:none; color:#fff; }
  
  .menu-toggle{ display:none; flex-direction:column; gap:4px; width:22px; }
  .menu-toggle span{ display:block; height:2px; background:#fff; }
  
  .logo{ display:flex; flex-direction:column; align-items:center; padding: 6px 10px; border: 1px solid transparent; border-radius:3px; flex-shrink:0; }
  .logo:hover{ border-color:#fff; }
  .logo__text{ font-size: 24px; font-weight:800; color:#fff; letter-spacing:-.5px; }
  .logo__arrow{ width: 60px; margin-top:-4px; }
  
  .deliver{ display:flex; align-items:center; gap:6px; background:none; border:1px solid transparent; border-radius:3px; padding:6px 10px; color:#fff; flex-shrink:0; }
  .deliver:hover{ border-color:#fff; }
  .deliver__pin{ font-size: 18px; }
  .deliver__text{ display:flex; flex-direction:column; text-align:left; line-height:1.2; }
  .deliver__text small{ color:#ccc; font-size:12px; }
  .deliver__text strong{ font-size:14px; }
  @media (max-width: 900px){ .deliver{ display:none; } }
  
  .search{ flex:1; display:flex; height: 40px; border-radius:4px; overflow:hidden; min-width: 120px; }
  .search__category{ background:#f3f3f3; border:none; color:#111; font-size:12px; padding: 0 8px; border-right:1px solid #ccc; }
  .search input{ flex:1; border:none; padding: 0 10px; font-size:15px; min-width:0; }
  .search input:focus{ outline: 3px solid #f0c14b; outline-offset:-1px; }
  .search__btn{ background: var(--orange); border:none; width: 45px; font-size:16px; }
  .search__btn:hover{ background:#e88a00; }
  @media (max-width: 700px){ .search__category{ display:none; } }
  
  .header-flag{ display:flex; align-items:center; gap:4px; background:none; border:1px solid transparent; border-radius:3px; padding:6px 8px; color:#fff; flex-shrink:0; }
  .header-flag:hover{ border-color:#fff; }
  @media (max-width: 1000px){ .header-flag{ display:none; } }
  
  .header-account{ position:relative; display:flex; flex-direction:column; padding:6px 10px; border:1px solid transparent; border-radius:3px; color:#fff; line-height:1.2; flex-shrink:0; }
  .header-account:hover{ border-color:#fff; }
  .header-account small{ color:#ccc; font-size:12px; }
  .header-account strong{ font-size:14px; white-space:nowrap; }
  @media (max-width: 800px){ .header-account strong span{ display:none; } }
  @media (max-width: 600px){ .header-account{ display:none; } }
  
  .account-dropdown{
    position:absolute; top: 46px; right:-20px; width: 300px; background:#fff; color:#111; border-radius:4px;
    box-shadow: 0 4px 20px rgba(0,0,0,.3); padding: 18px; opacity:0; visibility:hidden; transform: translateY(-8px);
    transition: all .2s var(--ease); z-index: 70;
  }
  .header-account:hover .account-dropdown, .header-account:focus-within .account-dropdown{ opacity:1; visibility:visible; transform:translateY(0); }
  .account-dropdown::before{ content:""; position:absolute; top:-8px; right: 34px; border: 8px solid transparent; border-bottom-color:#fff; }
  .account-dropdown__top p{ text-align:center; font-size:12px; margin-top:10px; }
  .account-dropdown__top a{ color: var(--link); }
  .account-dropdown__cols{ display:flex; gap: 20px; }
  .account-dropdown__cols h4{ font-size:13px; margin-bottom:8px; }
  .account-dropdown__cols a{ display:block; font-size:12.5px; color: var(--text); padding: 3px 0; }
  .account-dropdown__cols a:hover{ color: var(--price-red); text-decoration:underline; }
  
  .header-orders{ display:flex; flex-direction:column; padding: 6px 10px; border:1px solid transparent; border-radius:3px; color:#fff; line-height:1.2; flex-shrink:0; }
  .header-orders:hover{ border-color:#fff; }
  .header-orders small{ color:#ccc; font-size:12px; }
  .header-orders strong{ font-size:14px; }
  @media (max-width: 750px){ .header-orders{ display:none; } }
  
  .header-cart{ display:flex; align-items:flex-end; gap:4px; background:none; border:1px solid transparent; border-radius:3px; padding:6px 8px; color:#fff; flex-shrink:0; }
  .header-cart:hover{ border-color:#fff; }
  .header-cart__icon{ position:relative; font-size: 26px; }
  .header-cart__count{ position:absolute; top:-8px; left:14px; background: var(--orange); color: var(--navy); font-weight:800; font-size:12px; border-radius:50%; width:20px; height:20px; display:flex; align-items:center; justify-content:center; transition: transform .2s var(--ease); }
  .header-cart__count.is-bump{ transform: scale(1.4); }
  .header-cart strong{ font-size:14px; padding-bottom:3px; }
  
  .header-row--sub{
    background: var(--navy-light); color:#fff; padding: 8px 14px; gap: 18px; font-size: 13px; overflow-x:auto; white-space:nowrap;
  }
  .header-row--sub a{ padding: 4px 2px; border:1px solid transparent; border-radius:3px; }
  .header-row--sub a:hover{ border-color:#fff; }
  .header-row--sub .sub-nav__prime{ color: #7fd6ee; font-weight:700; }
  .all-menu-toggle{ display:flex; align-items:center; gap:6px; background:none; border:1px solid transparent; color:#fff; padding:4px 6px; border-radius:3px; font-weight:700; }
  .all-menu-toggle:hover{ border-color:#fff; }
  .all-menu-toggle span{ display:block; width:16px; height:2px; background:#fff; margin:2px 0; }
  
  /* ============================================================
     SIDE MENU
     ============================================================ */
  .side-menu-backdrop{ position:fixed; inset:0; background: rgba(0,0,0,.5); z-index: 150; opacity:0; visibility:hidden; transition: opacity .3s var(--ease), visibility .3s var(--ease); }
  .side-menu-backdrop.is-open{ opacity:1; visibility:visible; }
  .side-menu{
    position: fixed; top:0; left:0; bottom:0; width: 300px; background:#fff; z-index: 160;
    transform: translateX(-100%); transition: transform .3s var(--ease); overflow-y:auto;
  }
  .side-menu.is-open{ transform: translateX(0); }
  .side-menu__head{ background: var(--navy); color:#fff; padding: 16px; display:flex; justify-content:space-between; align-items:center; font-weight:700; }
  .side-menu__head button{ background:none; border:none; color:#fff; font-size:22px; }
  .side-menu__section{ padding: 14px 16px; border-bottom: 8px solid #f0f0f0; }
  .side-menu__section h4{ font-size:16px; margin-bottom:10px; }
  .side-menu__section a{ display:block; padding: 8px 0; font-size:14px; color: var(--text); }
  .side-menu__section a:hover{ color: var(--price-red); }
  
  /* ============================================================
     HERO CAROUSEL
     ============================================================ */
  .hero{ position:relative; overflow:hidden; background:#dedede; }
  .hero__track{ display:flex; transition: transform .6s var(--ease); }
  .hero__slide{ flex: 0 0 100%; height: clamp(240px, 40vw, 480px); background-size:cover; background-position:center; display:flex; align-items:center; }
  .hero__slide-inner{ padding: 0 6%; color:#fff; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
  .hero__eyebrow{ font-size: 14px; text-transform:uppercase; letter-spacing:.1em; margin-bottom:10px; }
  .hero__slide-inner h1{ font-size: clamp(26px,4.5vw,48px); max-width: 520px; line-height:1.2; margin-bottom: 22px; }
  .hero__fade{ position:absolute; left:0; right:0; bottom:0; height: 35%; background: linear-gradient(180deg, transparent, var(--bg)); pointer-events:none; }
  .hero__arrow{
    position:absolute; top:40%; transform: translateY(-50%); background: rgba(255,255,255,.4); border:none; width: 44px; height: 70px;
    font-size: 22px; display:flex; align-items:center; justify-content:center; opacity:0; transition: opacity .2s var(--ease), background .2s var(--ease);
  }
  .hero:hover .hero__arrow{ opacity:1; }
  .hero__arrow:hover{ background: rgba(255,255,255,.7); }
  .hero__arrow--left{ left:0; border-radius: 0 6px 6px 0; }
  .hero__arrow--right{ right:0; border-radius: 6px 0 0 6px; }
  .hero__dots{ position:absolute; bottom: 14%; left:50%; transform: translateX(-50%); display:flex; gap: 8px; z-index:2; }
  .hero__dots span{ width: 9px; height:9px; border-radius:50%; background: rgba(255,255,255,.5); cursor:pointer; transition: background .2s var(--ease); }
  .hero__dots span.is-active{ background:#fff; }
  
  /* ============================================================
     CATEGORY GRID
     ============================================================ */
  .cat-grid{
    max-width: 1500px; margin: -60px auto 0; position:relative; z-index: 2; padding: 0 20px;
    display:grid; grid-template-columns: repeat(4,1fr); gap: 18px;
  }
  @media (max-width: 900px){ .cat-grid{ grid-template-columns: repeat(2,1fr); } }
  .cat-card{ background:#fff; padding: 18px; cursor:pointer; }
  .cat-card h3{ font-size: 17px; margin-bottom: 14px; }
  .cat-card img{ width:100%; aspect-ratio: 1/1; object-fit:cover; margin-bottom: 12px; }
  .cat-card a{ color: var(--link); font-size:13px; font-weight:600; }
  .cat-card a:hover{ color: var(--price-red); text-decoration:underline; }
  
  .reveal{ opacity:0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .reveal.is-visible{ opacity:1; transform:translateY(0); }
  
  /* ============================================================
     SECTION HEAD (shared)
     ============================================================ */
  .section-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom: 14px; }
  .section-head h2{ font-size: 21px; }
  .see-all{ color: var(--link); font-size:13px; font-weight:600; }
  .see-all:hover{ color: var(--price-red); text-decoration:underline; }
  
  /* ============================================================
     DEALS STRIP
     ============================================================ */
  .deals{ max-width: 1500px; margin: 40px auto 0; padding: 0 20px; }
  .deals__viewport{ position:relative; }
  .deals__track{ display:flex; gap: 14px; overflow-x:auto; scroll-behavior:smooth; scrollbar-width:none; padding: 4px 2px 10px; }
  .deals__track::-webkit-scrollbar{ display:none; }
  .row__arrow{
    position:absolute; top:0; bottom:10px; width: 36px; background: rgba(255,255,255,.85); border: 1px solid var(--border);
    font-size: 16px; opacity:0; transition: opacity .2s var(--ease); z-index:2;
  }
  .deals__viewport:hover .row__arrow{ opacity:1; }
  .row__arrow--left{ left:-6px; border-radius:50%; }
  .row__arrow--right{ right:-6px; border-radius:50%; }
  
  .deal-card{ flex: 0 0 200px; background:#fff; padding: 12px; position:relative; cursor:pointer; transition: box-shadow .2s var(--ease); }
  .deal-card:hover{ box-shadow: 0 4px 16px rgba(0,0,0,.15); }
  .deal-card__badge{ position:absolute; top:10px; left:10px; background: var(--price-red); color:#fff; font-size:11px; font-weight:700; padding: 3px 8px; border-radius:2px; }
  .deal-card img{ width:100%; aspect-ratio:1/1; object-fit:cover; margin-bottom:10px; }
  .deal-card__price{ font-size: 18px; font-weight:700; color: var(--price-red); }
  .deal-card__mrp{ font-size:12px; color: var(--text-muted); text-decoration:line-through; margin-left:6px; }
  .deal-card__title{ font-size:12.5px; margin-top:4px; color: var(--text-muted); }
  
  /* ============================================================
     CATALOG (filters + grid)
     ============================================================ */
  .catalog{ max-width: 1500px; margin: 44px auto 0; padding: 0 20px 60px; }
  .section-head--catalog{ flex-wrap:wrap; gap: 10px; }
  .catalog__controls{ display:flex; align-items:center; gap: 14px; }
  .catalog__count{ color: var(--text-muted); font-size:13px; }
  #sortSelect{ padding: 8px 10px; border:1px solid var(--border); border-radius:6px; background:#fff; font-size:13px; }
  
  .catalog__body{ display:grid; grid-template-columns: 220px 1fr; gap: 26px; align-items:start; }
  @media (max-width: 800px){ .catalog__body{ grid-template-columns: 1fr; } .filters{ display:flex; flex-wrap:wrap; gap: 20px; } }
  
  .filters{ background:#fff; padding: 18px; border-radius: 8px; position:sticky; top: 120px; }
  .filters h4{ font-size:14px; margin: 14px 0 8px; }
  .filters h4:first-child{ margin-top:0; }
  .filters label{ display:flex; align-items:center; gap:8px; font-size:13.5px; padding: 4px 0; cursor:pointer; color: var(--text); }
  .filters input{ accent-color: var(--orange); }
  
  .product-grid{ display:grid; grid-template-columns: repeat(auto-fill, minmax(210px,1fr)); gap: 18px; }
  .no-results{ text-align:center; padding: 40px; color: var(--text-muted); }
  
  .product-card{
    background:#fff; border-radius: 8px; padding: 16px; display:flex; flex-direction:column; position:relative;
    transition: box-shadow .25s var(--ease), transform .25s var(--ease);
  }
  .product-card:hover{ box-shadow: 0 10px 26px rgba(0,0,0,.14); transform: translateY(-3px); }
  .product-card__badge{ position:absolute; top:14px; left:14px; background: var(--success); color:#fff; font-size:10.5px; font-weight:700; padding:3px 8px; border-radius:2px; z-index:1; }
  .product-card__wishlist{
    position:absolute; top:12px; right:12px; background:#fff; border:1px solid var(--border); border-radius:50%; width: 34px; height:34px;
    font-size: 16px; z-index:1; transition: transform .2s var(--ease), color .2s var(--ease);
  }
  .product-card__wishlist:hover{ transform: scale(1.1); }
  .product-card__wishlist.is-active{ color: var(--price-red); }
  .product-card__media{ aspect-ratio: 1/1; overflow:hidden; margin-bottom: 12px; border-radius: 6px; cursor:pointer; }
  .product-card__media img{ width:100%; height:100%; object-fit:cover; transition: transform .4s var(--ease); }
  .product-card:hover .product-card__media img{ transform: scale(1.06); }
  .product-card__title{ font-size: 14px; font-weight:500; line-height:1.4; cursor:pointer; margin-bottom: 6px; max-height: 2.8em; overflow:hidden; }
  .product-card__title:hover{ color: var(--price-red); }
  .product-card__rating{ display:flex; align-items:center; gap: 6px; margin-bottom: 6px; }
  .stars{ color: var(--orange); font-size:14px; letter-spacing:1px; white-space:nowrap; }
  .product-card__reviews{ color: var(--link); font-size:12px; }
  .product-card__price{ display:flex; align-items:baseline; gap:8px; margin-bottom: 4px; }
  .product-card__price-current{ font-size: 19px; font-weight:700; }
  .product-card__price-current small{ font-size:12px; vertical-align: top; }
  .product-card__mrp{ font-size:12.5px; color: var(--text-muted); text-decoration:line-through; }
  .product-card__off{ font-size:12.5px; color: var(--price-red); font-weight:600; }
  .product-card__delivery{ font-size:12px; color: var(--text-muted); margin-bottom: 12px; }
  .product-card__delivery strong{ color: var(--text); }
  .product-card__actions{ margin-top:auto; display:flex; gap: 8px; }
  .product-card__actions .btn{ flex:1; font-size:12.5px; padding: 9px 6px; }
  
  /* ============================================================
     BACK TO TOP
     ============================================================ */
  .back-to-top{
    display:block; width:100%; background: var(--navy-lighter); color:#fff; border:none; padding: 18px; font-size: 13px;
    transition: background .2s var(--ease);
  }
  .back-to-top:hover{ background:#455a75; }
  
  /* ============================================================
     FOOTER
     ============================================================ */
  .site-footer{ background: var(--navy-light); color:#ddd; padding: 40px 6% 0; }
  .footer-cols{ display:grid; grid-template-columns: repeat(4,1fr); gap: 20px; max-width: 1200px; margin: 0 auto; padding-bottom: 30px; }
  @media (max-width: 700px){ .footer-cols{ grid-template-columns: repeat(2,1fr); } }
  .footer-cols h4{ font-size: 14px; margin-bottom: 12px; }
  .footer-cols a{ display:block; font-size:12.5px; color:#ddd; padding: 4px 0; }
  .footer-cols a:hover{ text-decoration:underline; }
  .footer-logo{ text-align:center; padding: 26px 0 10px; border-top: 1px solid #3a4553; }
  .footer-note, .footer-copy{ text-align:center; font-size:11.5px; color:#a7b0bb; max-width: 720px; margin: 0 auto; padding: 6px 0; line-height:1.6; }
  .footer-copy{ padding-bottom: 22px; }
  
  /* ============================================================
     CART DRAWER
     ============================================================ */
  .cart-backdrop{ position:fixed; inset:0; background: rgba(0,0,0,.5); z-index: 200; opacity:0; visibility:hidden; transition: opacity .3s var(--ease), visibility .3s var(--ease); }
  .cart-backdrop.is-open{ opacity:1; visibility:visible; }
  .cart-drawer{
    position: fixed; top:0; right:0; bottom:0; width: 400px; max-width: 92vw; background:#fff; z-index: 210;
    display:flex; flex-direction:column; transform: translateX(100%); transition: transform .35s var(--ease);
  }
  .cart-drawer.is-open{ transform: translateX(0); }
  .cart-drawer__head{ display:flex; justify-content:space-between; align-items:center; padding: 18px 20px; border-bottom: 1px solid var(--border); }
  .cart-drawer__head button{ background:none; border:none; font-size:26px; }
  .cart-drawer__items{ flex:1; overflow-y:auto; padding: 10px 20px; }
  .cart-item{ display:flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--border); }
  .cart-item img{ width: 70px; height:70px; object-fit:cover; border-radius:6px; }
  .cart-item__info{ flex:1; }
  .cart-item__title{ font-size:13.5px; margin-bottom: 6px; }
  .cart-item__price{ font-weight:700; margin-bottom: 8px; }
  .cart-item__row{ display:flex; align-items:center; justify-content:space-between; }
  .cart-item__remove{ color: var(--link); font-size:12px; background:none; border:none; }
  .cart-item__remove:hover{ color: var(--price-red); text-decoration:underline; }
  .cart-empty{ text-align:center; color: var(--text-muted); padding: 60px 20px; }
  
  .qty-stepper{ display:flex; align-items:center; border:1px solid var(--border); border-radius: 20px; overflow:hidden; }
  .qty-stepper button{ background:#f0f2f2; border:none; width: 28px; height: 28px; font-size:15px; }
  .qty-stepper span{ width: 30px; text-align:center; font-size:13px; }
  
  .cart-drawer__foot{ border-top: 1px solid var(--border); padding: 18px 20px; }
  .cart-drawer__subtotal{ display:flex; justify-content:space-between; align-items:center; margin-bottom: 14px; font-size: 15px; }
  
  /* ============================================================
     QUICK VIEW MODAL
     ============================================================ */
  .modal-backdrop{ position:fixed; inset:0; background: rgba(0,0,0,.6); z-index: 300; display:flex; align-items:center; justify-content:center; opacity:0; visibility:hidden; transition: opacity .3s var(--ease), visibility .3s var(--ease); padding: 20px; }
  .modal-backdrop.is-open{ opacity:1; visibility:visible; }
  .modal{ background:#fff; border-radius: 10px; width: 880px; max-width: 100%; max-height: 90vh; overflow-y:auto; position:relative; transform: scale(.94); transition: transform .3s var(--ease); }
  .modal-backdrop.is-open .modal{ transform: scale(1); }
  .modal__close{ position:absolute; top: 14px; right: 14px; background:#f0f2f2; border:none; border-radius:50%; width: 34px; height:34px; font-size: 20px; z-index:2; }
  .modal__body{ display:grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 40px; }
  @media (max-width: 640px){ .modal__body{ grid-template-columns:1fr; padding: 60px 20px 30px; } }
  .modal__media img{ width:100%; border-radius: 8px; aspect-ratio:1/1; object-fit:cover; }
  .qv-brand{ color: var(--link); font-size: 13px; margin: 8px 0 10px; }
  .qv-rating{ display:flex; align-items:center; gap: 8px; margin-bottom: 10px; }
  .qv-reviews{ color: var(--link); font-size:12.5px; }
  .qv-price{ display:flex; align-items:baseline; gap:10px; margin-bottom: 8px; }
  .qv-price__current{ font-size: 26px; font-weight:700; }
  .qv-price__mrp{ font-size:14px; color: var(--text-muted); text-decoration:line-through; }
  .qv-price__off{ color: var(--price-red); font-weight:600; }
  .qv-delivery{ font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
  .qv-desc{ font-size: 14px; color: var(--text); line-height:1.7; margin-bottom: 20px; }
  .qv-actions{ display:flex; align-items:center; gap: 12px; flex-wrap:wrap; }