:root{
  --bg:#fff;
  --text:#111;
  --muted:#666;
  --line:#eee;
  --card:#fff;
  --radius:14px;
  --wrap:1500px; /* container width */
  --accent:#ff6a3d;
  --shadow:0 10px 30px rgba(0,0,0,.06);
  --font-ui:"Mulish", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color-scheme: light;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: var(--font-ui);
  background:var(--bg);
  color:var(--text);
  line-height:1.5;
  overflow-x:hidden; /* safety net for iOS focus quirks */
}

a{color:inherit;text-decoration:none}
img{max-width: auto;
    max-width: 100%;display:block}

/* =========================
   SINGLE PRODUCT (Woo)
   ========================= */

.product-shell{padding-top:22px;padding-bottom:40px}

.h2m-product{margin:0}

.product-breadcrumbs{margin:2px 0 18px}
.woocommerce-breadcrumb{font-size:13px;color:var(--muted)}
.woocommerce-breadcrumb a{color:#111;font-weight:600}
.woocommerce-breadcrumb .bc-sep{margin:0 8px;color:#aaa}

.product-main{
  display:grid;
  grid-template-columns: minmax(380px, 1.05fr) minmax(360px, 1fr) minmax(240px, .65fr);
  gap:18px;
  align-items:start;
}

.product-media,
.product-summary,
.product-related .related-card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

.product-media{padding:14px}
.product-media .woocommerce-product-gallery{margin:0}
.product-media .woocommerce-product-gallery__wrapper{border-radius:0;overflow:hidden}
.product-media .woocommerce-product-gallery__image img{width:100%;height:auto;border-radius:12px}
.product-media .flex-control-thumbs{margin:12px 0 0;padding:0;display:flex;gap:10px;overflow:auto}
.product-media .flex-control-thumbs li{list-style:none;flex:0 0 70px}
.product-media .flex-control-thumbs img{border-radius:0;border:1px solid var(--line)}

.product-summary{padding:18px}
.product-title{margin:0 0 10px;font-size:26px;line-height:1.2;letter-spacing:.2px}
.product-rating .star-rating{margin:0 0 10px}
.product-price .price{font-size:28px;font-weight:800;color:#111;margin:0 0 10px}
.product-price .price del{opacity:.55;font-weight:700}
.product-price .price ins{text-decoration:none}
.product-excerpt{color:var(--muted);font-size:14px;margin:0 0 16px}

.product-cta{display:flex;flex-direction:column;gap:14px}

/* Bigger CTA using the same mini stepper logic */
.product-mini-controls .mini-plus{
  width:100%;
  height:54px;
  border-radius:10px;
  font-size:16px;
  font-weight:800;
  background:#acadb1;
  border:1px solid rgba(0,0,0,.05);
  color:#fff;
}
.product-mini-controls .mini-plus:hover{filter:brightness(.98)}
.product-mini-controls .mini-stepper{
  width:100%;
  height:54px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:0 12px;
  background:#acadb1;
  border:1px solid var(--line);
}
.product-mini-controls .mini-stepper .mini-btn{
  width:44px;height:44px;border-radius:5;
  border:1px solid #acadb1;
  background:#fff;
  font-size:22px;
  display:grid;place-items:center;
}
.product-mini-controls .mini-qty{font-weight:800;font-size:18px}

/* Default Woo add-to-cart form in our card */
.product-addform form.cart{margin:0}
.product-addform .quantity{margin:0 12px 0 0}
.product-addform button.single_add_to_cart_button{
  height:54px;
  border-radius:14px;
  background:var(--accent);
  border:0;
  font-weight:800;
  padding:0 18px;
}

.product-meta{font-size:13px;color:var(--muted)}
.product-meta a{font-weight:700;color:#111}

/* Share actions (Copy link + WhatsApp) - reusable UI (matches Scholars Book) */
.aq-share-actions{
  display:flex;
  gap:12px;
  align-items:center;
  margin-top:10px;
  font-size:11px;
  line-height:1.2;
  flex-wrap:wrap;
  justify-content:flex-start;
}

/* Hard reset to avoid button/link styles bleeding into these tiny actions */
.aq-share-actions .aq-copy-link,
.aq-share-actions .aq-share-whatsapp{
  all:unset;
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:11px;
  line-height:1.2;
  cursor:pointer;
  text-decoration:none;
}

.aq-share-actions .aq-copy-link{color:#0073aa}
.aq-share-actions .aq-share-whatsapp{color:#25D366}

.aq-share-actions .aq-link-icon{
  width:14px;
  height:14px;
  fill:currentColor;
  flex-shrink:0;
  display:inline-block;
}
.aq-share-actions .aq-wa-icon{
  width:14px;
  height:14px;
  fill:#25D366;
  flex-shrink:0;
  display:inline-block;
}

.aq-share-actions a:hover{text-decoration:underline}
.aq-share-actions .aq-copy-link.is-copied{color:#2e7d32}

/* Related sidebar */
.product-related{position:relative}
.product-related .related-card{padding:14px}
.product-related .related-title{font-weight:900;font-size:14px;margin:0 0 10px}
.product-related .related > h2{display:none}
.product-related .products{margin:0;padding:0;display:grid;gap:12px}
.product-related .products li{list-style:none;margin:0}

/* Make our (home) product cards compact when used in the sidebar */
.product-related .deals-item{
  display:grid;
  grid-template-columns:76px 1fr;
  gap:12px;
  align-items:center;
  padding:12px;
  border:1px solid var(--line);
  border-radius:14px;
  box-shadow:none;
}
.product-related .deals-media{margin:0}
.product-related .deals-img{
  width:76px;
  height:76px;
  border-radius:0;
  overflow:hidden; /* keep rounded corners */
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff;
}
.product-related .deals-img img{
  width:100%;
  height:100%;
  object-fit:contain; /* show full image (no crop) */
  border-radius:0;
}
.product-related .deals-body{padding:0}
.product-related .mini-cart-controls{display:none} /* keep sidebar clean */
.product-related .price{font-size:14px;font-weight:800;margin-top:6px}
.product-related h3{font-size:14px;margin:6px 0 0;line-height:1.2}

/* Reviews area */
.product-reviews{margin-top:18px}
.product-reviews #reviews,
.product-reviews .woocommerce-Reviews{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px;
}
.product-reviews h2,
.product-reviews .woocommerce-Reviews-title{margin:0 0 12px;font-size:18px}
.product-reviews .commentlist{margin:0;padding:0;display:grid;gap:12px}
.product-reviews .commentlist li{list-style:none;margin:0;padding:14px;border:1px solid var(--line);border-radius:14px}

/* Long description (replaces reviews) */
.product-longdesc{margin-top:18px}
.product-longdesc-card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px;
}
.product-longdesc-title{margin:0 0 12px;font-size:18px}
.product-longdesc-content{color:var(--text);line-height:1.7}
.product-longdesc-content p{margin:0 0 12px}
.product-longdesc-content p:last-child{margin-bottom:0}

/* Responsive */
@media (max-width: 980px){
  .product-main{grid-template-columns:1fr;}
  .product-related .related-card{padding:14px}
}

@media (max-width: 700px){
  .product-shell{padding-top:14px}
  .product-media{padding:12px}
  .product-summary{padding:14px}
  .product-title{font-size:22px}
  .product-price .price{font-size:24px}
}

.wrap{max-width:var(--wrap);margin:0 auto;padding:0 18px}
.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

/* =========================
   HEADER
   ========================= */
   
   
   
   
/* Top bar (social + customer entry) */
.aq-topbar{
  width:100%;
  background:#acadb1;
  height:40px;
}
.aq-topbar__inner{
  max-width:1920px;
  margin:0 auto;
  height:40px;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  padding:0 18px;
}
.aq-topbar__right{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:14px;
}
.aq-topbar__icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  border-radius:8px;
  color:#fff;
  transition: transform .12s ease, background-color .12s ease;
}
.aq-topbar__icon:hover{
  background:rgba(255,255,255,.25);
  transform: translateY(-1px);
}
.aq-topbar__icon:focus-visible{
  outline:2px solid rgba(0,0,0,.6);
  outline-offset:2px;
}
.aq-topbar__account{
  color:#fff;
  text-decoration:none;
  font-weight:700;
  font-size:14px;
  line-height:1;
}
.aq-topbar__account:hover{ text-decoration:underline; }

.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:#fff;
  border-bottom:1px solid var(--line);
}

.header-row{
  display:flex;
  align-items:center;
  gap:18px;
  min-height:88px;
  /* Default: one line on wide desktop */
  flex-wrap:nowrap;
}

/* Brand / Logo */
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  flex:0 0 auto;
}
.brand .custom-logo-link{display:flex;align-items:center}
.brand img.custom-logo{max-height:56px;width:auto;height:auto;display:block}
.brand-name{letter-spacing:.2px}

/* Search */
.header-search{
  flex:0 1 520px;
  max-width:560px;
  min-width:260px;
  margin-left:24px; /* space after logo */
}
.searchbox{
  display:flex;
  align-items:center;
  gap:10px;
  border:0.5px solid #000;
  border-radius:10px;
  padding:10px 12px;
  background:#fff;
}
.searchbox input{
  border:0;
  outline:none;
  width:100%;
  font-size:14px;
  background:transparent;
  -webkit-appearance:none;
  appearance:none;
}
.searchbox input::placeholder{color:#999}

/* keep 16px on iOS to prevent zoom */
@supports (-webkit-touch-callout: none){
  .searchbox input{font-size:16px;}
}

.searchbox button{
  background:#fff;
  border:1px solid #ddd;
  border-radius:999px;
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  cursor:pointer;
  padding:0;
}
.searchbox button:hover{border-color:#111}
.searchbox svg{color:#111}

/* Instant search (Algolia-like) */
.searchbox{position:relative}
.aq-search-panel{
  position:absolute;
  left:0;
  right:0;
  top:calc(100% + 10px);
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:0 10px 30px rgba(0,0,0,.08);
  overflow:hidden;
  z-index:80;
}
.aq-search-panel__inner{max-height:420px; overflow:auto}
.aq-search-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 14px;
  border-bottom:1px solid var(--line);
  font-weight:700;
}
.aq-search-head__count{font-weight:600; color:#666}
.aq-search-list{padding:6px}
.aq-search-item{
  display:flex;
  gap:12px;
  padding:10px;
  border-radius:14px;
  color:inherit;
  text-decoration:none;
}
.aq-search-item:hover, .aq-search-item.is-active{background:#f5f7fa}
.aq-search-item__img{
  width:54px;
  height:54px;
  border-radius:12px;
  object-fit:cover;
  flex:0 0 auto;
  background:#f2f2f2;
}
.aq-search-item__img--ph{display:block}
.aq-search-item__img--icon{display:grid; place-items:center; font-size:22px; line-height:1}
.aq-search-item__meta{min-width:0}
.aq-search-item__title{
  font-weight:700;
  font-size:14px;
  line-height:1.2;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.aq-search-item__price{margin-top:4px; font-size:13px; color:#444}
.aq-search-item__sub{margin-top:4px; font-size:12px; color:#666; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.aq-search-viewall{
  display:block;
  padding:12px 14px;
  border-top:1px solid var(--line);
  font-weight:700;
  text-decoration:none;
  color:var(--brand);
}
.aq-search-loading{display:flex; gap:8px; padding:18px; justify-content:center}
.aq-search-loading__dot{width:8px; height:8px; border-radius:999px; background:#d8dde6; animation:aqDot 1s infinite ease-in-out}
.aq-search-loading__dot:nth-child(2){animation-delay:.15s}
.aq-search-loading__dot:nth-child(3){animation-delay:.3s}
@keyframes aqDot{0%,100%{transform:translateY(0); opacity:.6}50%{transform:translateY(-4px); opacity:1}}
.aq-search-empty{padding:18px; color:#666; text-align:center; font-weight:600}
.aq-search-empty__term{color:#111}

/* Nav */
.header-nav{
  flex:1 1 auto;
  min-width:0;
  display:flex;
  justify-content: flex-start;
  white-space:nowrap;
  margin-left:24px; /* space after search */
}
.header-nav .menu{
  list-style:none;
  display:flex;
  gap:20px; /* space between items */
  margin:0;
  padding:0;
  align-items:center;
  flex-wrap:nowrap;
}
.header-nav .menu > li > a{
  padding:6px 2px;
  font-weight:500;
}

/* Actions (burger + cart) */
.header-actions{
  flex:0 0 auto;
  display:flex;
  gap:12px;
  align-items:center;
  margin-left:auto;
}

.icon-btn, .menu-toggle{
  position:relative;
  width:40px;
  height:40px;
  border:1px solid var(--line);
  border-radius:0;
  display:grid;
  place-items:center;
  background:#fff;
}
.icon-btn{cursor:pointer}
.menu-toggle{cursor:pointer}

/* Cart button with total (wider) */
.icon-btn-cart{
  width:auto;
  grid-auto-flow:column;
  display:flex;
  align-items:center;
  justify-content: flex-start;
  gap:10px;
  padding:0 12px;
}

.icon-btn-cart .cart-total{
  font-size:13px;
  font-weight:700;
  color:#111;
  white-space:nowrap;
  line-height:1;
}

@media (max-width: 220px){
  /* On small screens, keep it clean: hide total, show icon + badge only */
  .icon-btn-cart .cart-total{display:none;}
  .icon-btn-cart{padding:0;width:40px;display:grid;place-items:center;}
}

/* Burger hidden on desktop by default */
.menu-toggle{display:none}

/* Lucide icons */
.icon-btn svg,
.menu-toggle svg{
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  color:#111;
}

/* Scholar Books = exclusive mode UI lock (front-end UX only; server enforces rules) */
body.aq-scholar-mode .aq-locked{
  opacity:.45;
  pointer-events:none;
  cursor:not-allowed;
}
body.aq-scholar-mode .aq-locked svg{opacity:.65}



/* Cart badge: outline, white fill */
.icon-badge{
  position:absolute;
  top:-6px;
  right:-6px;
  min-width:18px;
  height:18px;
  padding:0 5px;
  background:#fff;
  color:#111;
  border:1px solid #ccc;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content: flex-start;
  font-size:12px;
  font-weight:600;
  z-index:2;
  pointer-events:none;
}

/* Main */
.site-main{padding:22px 0 5px}

/* =========================
   HOME PAGE SECTIONS
   ========================= */
.hero{padding:22px;text-align:center}
.hero-frame{position:relative;border-radius:16px;overflow:hidden;border:2px solid #3332}
.hero-img{width:100%;height:420px;object-fit:cover;background:#f3f3f3}
.hero-stickers .sticker{position:absolute;font-size:44px}
.hero-stickers .s1{left:24px;top:50%;transform:translateY(-50%)}
.hero-stickers .s2{right:24px;top:26px}
.hero-stickers .s3{right:18px;bottom:18px}
.hero-title{margin:18px 0 12px;font-size:34px;line-height:1.15}
.btn{
  display:inline-block;
  background:var(--accent);
  color:#fff;
  padding:12px 18px;
  border-radius:999px;
  font-weight:800;
}
.btn.sm{padding:10px 14px;font-size:13px}
.hero-dots{display:flex;gap:8px;justify-content: flex-start;margin-top:18px}
.hero-dots span{width:8px;height:8px;border-radius:999px;background:#ddd}
.hero-dots .on{background:var(--accent)}

.section{margin-top:24px}
.section-head{display:flex;align-items:center;gap:14px}
.section-head h3{margin:0;font-size:18px}
.deal-meta{display:flex;gap:8px;align-items:center;margin-left:10px}
.pill{font-size:12px;color:var(--accent);font-weight:800}
.view-all{margin-left:auto;color:var(--muted);font-size:13px}

.product-grid .woocommerce{margin-top:14px}
.woocommerce ul.products{
  margin:14px 0 0;
  padding:0;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}
.woocommerce ul.products li.product{
  list-style:none;
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px;
  background:#fff;
}

/* Product card title: clamp long names so all cards keep the same height */
.woocommerce ul.products li.product .woocommerce-loop-product__title{
  margin:10px 0 0;
  font-size:14px;
  line-height:1.2;
  font-weight:800;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2; /* show 2 lines then truncate */
  overflow:hidden;
  min-height:calc(1.2em * 2);
}
.woocommerce ul.products li.product .price{color:var(--accent);font-weight:800}
.woocommerce ul.products li.product .button{
  background:var(--accent);
  color:#fff;
  border-radius:999px;
  border:0;
}

.promo-2{margin-top:22px;display:grid;grid-template-columns:1fr 1fr;gap:14px}
.promo{position:relative;overflow:hidden}
.promo img{height:260px;object-fit:cover}
.promo-text{padding:14px}
.promo-text h4{margin:0 0 6px}
.promo-text p{margin:0 0 10px;color:var(--muted)}

.cat-tiles{margin-top:22px;display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.cat{overflow:hidden;text-align:center;padding:10px}
.cat img{height:190px;object-fit:cover;border-radius:12px}
.cat span{display:block;margin-top:10px;font-weight:800}

.tabs{margin-top:20px;display:flex;gap:18px;justify-content:center}
.tab-btn{background:transparent;border:0;font-weight:800;color:#888;cursor:pointer}
.tab-btn.is-active{color:#111}
.tab-panel{display:none;margin-top:16px}
.tab-panel.is-active{display:block}

/* =========================
   FOOTER
   ========================= */
.site-footer{border-top:1px solid var(--line);padding:0}

/* Footer main row: logo + address + menu */
.footer-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
  padding:6px 0;
}

.footer-brand{display:flex;flex-direction:column;gap:8px;min-width:220px}
.footer-logo .custom-logo-link{display:inline-flex;align-items:center}
.footer-logo img{max-height:60px;width:auto;height:auto;display:block}
.footer-address{font-size:13px;color:var(--muted);line-height:1.35}

.footer-nav{flex:1;display:flex;justify-content:center}
.footer-menu{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:22px;
  background:transparent;
  border-radius:0;
}

.footer-menu a{color:#333;text-decoration:none;font-weight:700;font-size:14px;white-space:nowrap}
.footer-menu a:hover{color:var(--accent)}

.footer-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  border-top:1px solid var(--line);
  margin-top:18px;
  padding-top:14px;
  color:var(--muted);
}
.footer-links{display:flex;gap:14px;font-size:13px}

/* =========================
   RESPONSIVE
   ========================= */

/* Drawer menu (Burger) for <=1499px (menu only) */
@media (max-width: 1499px){
  /* show burger */
  .menu-toggle{display:grid;}

  /* Off-canvas nav drawer (menu only) */
  .header-nav{
    position:fixed;
    top:0;
    right:0;
    height:100vh;
    width:min(86vw, 360px);
    background:#fff;
    border-left:1px solid var(--line);
    box-shadow:-20px 0 50px rgba(0,0,0,.08);
    padding:18px 16px;

    display:flex !important;
    flex-direction:column;
    justify-content:flex-start;

    transform:translateX(100%);
    transition:transform .22s ease;
    z-index:9999;

    margin-left:0;
    margin-right:0;
    white-space:normal;
  }
  .header-nav.is-open{transform:translateX(0);}

  .nav-drawer-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding-bottom:12px;
    border-bottom:1px solid var(--line);
  }
  .nav-drawer-title{font-weight:800;font-size:16px;}
  .nav-close{
    width:40px;
    height:40px;
    border:1px solid var(--line);
    border-radius:0;
    background:#fff;
    display:grid;
    place-items:center;
    cursor:pointer;
  }
  .nav-close svg{width:20px;height:20px;stroke:currentColor;fill:none;}

  .header-nav .menu{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:6px;
    margin:14px 0 0;
    padding:0;
    width:100%;
  }
  .header-nav .menu a{
    width:100%;
    display:block;
    padding:14px 14px;
    border-radius:0;
  }
  .header-nav .menu a:hover{background:#f6f6f6;}

  /* Overlay */
  .nav-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.25);
    opacity:0;
    pointer-events:none;
    transition:opacity .22s ease;
    z-index:9998;
  }
  .nav-overlay.is-open{opacity:1;pointer-events:auto;}

  body.nav-open{overflow:hidden;}
}

/* Footer responsive */
@media (max-width: 900px){
  .footer-top{flex-direction:column;gap:16px;text-align:center}
  .footer-brand{min-width:0;align-items:center}
  .footer-nav{justify-content:center;width:100%}
  .footer-menu{flex-wrap:wrap;gap:14px}
}

/* Desktop-tablet range (1025px–1499px): burger menu active, keep header row spacing like mobile (actions to the right) */
@media (min-width: 1025px) and (max-width: 1499px){
  .site-header .wrap.header-row{
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 30px;
    padding-right: 30px;
    gap: 18px;
    justify-content: flex-start;
  }

  /* Ensure logo doesn't reserve extra space */
  .site-header .wrap.header-row .brand{
    flex: 0 0 auto;
  }

  /* Menu is off-canvas in this range; keep it out of the flex flow */
  .site-header .wrap.header-row .header-nav{
    flex: 0 0 auto;
  }

  /* Actions must sit at the far right (cart + burger) */
  .site-header .wrap.header-row .header-actions{
    margin-left: auto !important;
    padding-right: 0;
  }

  /* Give actions a little breathing room from the edge */
  .site-header .wrap.header-row .header-actions > *{
    margin-left: 0;
  }
}



/* Mobile/tablet layout tweaks (<=1024px) */
@media (max-width: 1024px){
  .header-row{
    flex-wrap:wrap;
    align-items:center;
    gap:12px;
    min-height:auto;
    padding:10px 0;
  }

  /* Search becomes full width */
  .header-search{
    flex:0 0 100%;
    width:100%;
    max-width:none;
    min-width:0;
    margin:0;
    order:3;
    padding:0 8px; /* breathing space from edges */
  }

  /* actions breathe from right edge */
  .header-actions{padding-right:14px;}

  /* Content responsive */
  .promo-2{grid-template-columns:1fr}
  .cat-tiles{grid-template-columns:repeat(2,1fr)}
  .woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}
  .shop-archive .woocommerce ul.products,
  .shop-archive ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}

  /* Footer stacks nicely on tablet */
  .footer-top{flex-direction:column;align-items:center;text-align:center;gap:18px}
  .footer-nav{justify-content:center}
  .footer-menu{flex-wrap:wrap}
}

@media (max-width: 520px){
  .woocommerce ul.products{grid-template-columns:1fr}
  .shop-archive .woocommerce ul.products,
  .shop-archive ul.products{grid-template-columns:1fr}

  /* Footer menu wraps without squeezing */
  .footer-menu{padding:12px 14px;gap:14px}
}

/* Desktop (1500px+): ensure drawer helpers hidden */
@media (min-width: 1500px){
  .nav-overlay{display:none !important;}
  .nav-drawer-head{display:none;}
  .header-nav{
    position:static !important;
    height:auto !important;
    width:auto !important;
    transform:none !important;
    box-shadow:none !important;
    border-left:0 !important;
    padding:0 !important;
    display:flex !important;
  }
}


/* =========================
   HERO SLIDER (image only)
   ========================= */
.hero{padding:22px;text-align:center}
.hero-frame{position:relative;border-radius:16px;overflow:hidden;border:2px solid #3332}
.hero-frame.hero-slider{padding:0}
.hero-slides{position:relative;isolation:isolate;height:100%;width:100%}
.hero-slide{position:absolute;inset:0;opacity:0;transition:opacity .6s ease;pointer-events:none}
.hero-slide.is-active{opacity:1;pointer-events:auto}
.hero-img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  background:#f3f3f3;
}

/* Aspect ratios: desktop vs mobile portrait */
.hero-slider{aspect-ratio:15/7}
@media (max-width: 640px){
  .hero-slider{aspect-ratio:2/3}
}

/* Dots */
.hero-dots{
  position:absolute;
  left:50%;
  bottom:14px;
  transform:translateX(-50%);
  display:flex;
  gap:8px;
  padding:8px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.65);
  backdrop-filter:saturate(140%) blur(8px);
}
.hero-dot{
  width:10px;
  height:10px;
  border-radius:999px;
  border:0;
  background:rgba(0,0,0,.22);
  cursor:pointer;
  padding:0;
}
.hero-dot.is-active{background:rgba(0,0,0,.6)}
@media (prefers-reduced-motion: reduce){
  .hero-slide{transition:none}
}


/* =========================
   Home: Shop Now Section
   ========================= */
.home-shopnow__title{
  display:flex;
  align-items:center;
  gap:14px;
  margin: 0 0 18px;
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -0.02em;
}

.home-shopnow__rule{
  flex:1;
  height:2px;
  background: currentColor;
  opacity: .12;
  border-radius: 999px;
}

/* Featured 2 boxes */
.home-shopnow__featured{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 26px;
}

.shopnow-feature{
  display:block;
  text-decoration:none;
  color: inherit;
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(0,0,0,.06);
  background: transparent; /* no background */
}

.shopnow-feature__media img{
  width:100%;
  height:auto;
  display:block;
}

.shopnow-feature__body{
  padding: 16px 16px 18px;
}

.shopnow-feature__title{
  font-weight: 800;
  font-size: 18px;
  margin: 0 0 6px;
}

.shopnow-feature__desc{
  font-size: 13px;
  opacity: .75;
  margin-bottom: 12px;
}

.shopnow-feature__btn{
  display:inline-flex;
  align-items:center;
  justify-content: flex-start;
  padding: 10px 18px;
  border-radius: 5px;
  background: #acadb1;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}

/* Category tiles */
.home-shopnow__cats{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.shopnow-cat{
  display:block;
  text-decoration:none;
  color: inherit;
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(0,0,0,.06);
  background: transparent; /* no background */
}

.shopnow-cat__media img{
  width:100%;
  height:auto;
  display:block;
}

.shopnow-cat__ph{
  width:100%;
  aspect-ratio: 18 / 10;
  background: rgba(0,0,0,.03);
}

.shopnow-cat__name{
  padding: 12px 10px 14px;
  text-align:center;
  font-weight: 800;
  background: #acadb1;
  color: #fff;
}

/* Subcategory tiles on category pages (same as home tiles, but with fixed media height) */
.h2m-subcats{margin-top:18px}
.h2m-subcats .shopnow-cat__media img{
  width:100%;
  height: 170px;
  object-fit: cover;
  display:block;
}
@media (max-width: 900px){
  .h2m-subcats .shopnow-cat__media img{height: 140px;}
}

/* Grouped child categories on nested category pages */
.h2m-cat-sections{
  margin-top:18px;
  display:flex;
  flex-direction:column;
  gap:24px;
}
.h2m-cat-section__title{
  font-size: 22px;
  font-weight: 900;
  margin: 0 0 12px;
}
.h2m-cat-section__more{
  margin-top: 10px;
}
.h2m-cat-section__more .button{
  border-radius: 10px;
  padding: 10px 14px;
}
.h2m-cat-section__empty{
  margin: 0;
  opacity: .75;
}

@media (max-width: 900px){
  .home-shopnow__featured{ grid-template-columns: 1fr; }
  .home-shopnow__cats{ grid-template-columns: repeat(2, 1fr); }
  .home-shopnow__title{ font-size: 28px; }
}




/* =========================
   DEALS / PROMOTIONS (Carousel Tabs)
   ========================= */
.deals-wrap{margin-top:28px}
.deals-carousel{position:relative; overflow:visible}
.deals-track{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns: 260px; /* fixed card width */
  gap:18px;
  overflow:auto;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  padding:8px 44px;
}
.deals-track::-webkit-scrollbar{height:8px}
.deals-track::-webkit-scrollbar-thumb{border-radius:999px;background:rgba(0,0,0,.18)}
.deals-item{
  scroll-snap-align:start;
  border:1px solid rgba(0,0,0,.08);
  border-radius:14px;
  overflow:hidden;
  background:#fff;
  display:flex;
  flex-direction:column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.deals-item:hover{transform:translateY(-2px); box-shadow:0 10px 26px rgba(0,0,0,.10); border-color:rgba(0,0,0,.10)}
.deals-media{position:relative}
.deals-item a{color:inherit;text-decoration:none;display:block}
.deals-item .deals-img img{width:100%;height:220px;object-fit:cover;display:block}
.deals-item .deals-body{
  padding:12px;
  position:relative;
  display:flex;
  flex-direction:column;
  gap:8px;
}
/* thin divider between image and text */
.deals-item .deals-body::before{
  content:"";
  position:absolute;
  top:0;
  left:12px;
  right:12px;
  height:1px;
  background:rgba(0,0,0,.08);
}
.deals-item .deals-body h3{
  margin:0;
  font-size:14px;
  font-weight:800;
  line-height:1.25;
  /* Desktop: keep card heights consistent and avoid tiny leftover text at the bottom */
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
  min-height:calc(1.25em * 2);
}
/* Always show the 55-char truncated title (generated in PHP) */
.deals-item .woocommerce-loop-product__title .aq-title-short{display:inline}
.deals-item .woocommerce-loop-product__title .aq-title-full{display:none}
.deals-item .price{font-weight:800; margin:0; font-size:14px;}
.deals-item .woocommerce-Price-amount{font-weight:800}
.deals-item .star-rating{margin-top:6px}
.deals-item .button{margin-top:10px}

/* mini + / quantity stepper */
.mini-cart-controls{
  position:relative;
  z-index:5;
  display:flex;
  justify-content:stretch;
  width:100%;
  margin-top:6px; /* sits just under the image */
}
.mini-btn{
  width:34px;height:34px;border-radius:999px;
  border:1px solid rgba(0,0,0,.08);
  background:#fff;
  display:grid;place-items:center;
  cursor:pointer;
  font-weight:800;
  line-height:1;
  box-shadow:0 6px 18px rgba(0,0,0,.10);
}

/* "Add" button (Option 3): text button shown before stepper */
.mini-plus{
  width:100%;
  height:44px;
  padding:0 14px;
  border-radius:10px;
  border:1px solid transparent;
  box-shadow:none;
  background:#acadb1;
  color:#fff;
  font-weight:800;
  font-size:14px;
  line-height:44px;
  transition:filter .15s ease, transform .08s ease;
}

/* Ensure loop "Customize" anchor button matches the theme "Add" button.
   The more specific rule `.deals-item a{color:inherit;display:block;}` would otherwise override.
*/
.deals-item a.mini-plus{
  display:grid;
  place-items:center;
  color:#fff;
  text-align:center;
  text-decoration:none;
}
.deals-item a.mini-plus:hover,
.deals-item a.mini-plus:visited{color:#fff;}
.mini-plus:hover{filter:brightness(1.06)}
.mini-plus:active{transform:translateY(1px)}
.mini-plus:focus-visible{outline:3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset:2px;}
.mini-stepper{
  width:100%;
  height:44px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:6px;
  border-radius:10px;
  background:#acadb1;
  box-shadow:none;
  transition:opacity .14s ease, transform .14s ease;
}
/* Ensure the HTML hidden attribute always wins */
.mini-stepper[hidden]{display:none !important;}

/* Hard UX rule: ONLY one control visible at a time */
.mini-cart-controls.is-stepper .mini-plus{display:none !important;}
.mini-cart-controls:not(.is-stepper) .mini-stepper{display:none !important;}
.mini-stepper .mini-btn{
  width:34px;height:34px;
  border:0;
  border-radius:10px;
  box-shadow:none;
  background:#fff;
  transition:filter .15s ease, transform .08s ease;
}
.mini-stepper .mini-btn:hover{filter:brightness(.97)}
.mini-stepper .mini-btn:active{transform:translateY(1px)}
.mini-qty{min-width:18px;text-align:center;font-weight:800;color:#fff}

/* Smooth swap: Add -> stepper */
.mini-stepper{opacity:0; transform:translateY(4px)}
.mini-cart-controls.is-stepper .mini-stepper{opacity:1; transform:translateY(0)}
.deals-nav{
  position:absolute;top:50%;transform:translateY(-50%);
  width:40px;height:40px;border-radius:999px;
  border:1px solid rgba(0,0,0,.08);background:#fff;
  display:grid;place-items:center;cursor:pointer;
  z-index:30;
  box-shadow:0 10px 24px rgba(0,0,0,.12);
}
.deals-nav.prev{left:0}
.deals-nav.next{right:0}

@media (max-width: 700px){
  /* Mobile UX: centered 250px card, arrows outside */
  .deals-carousel{
    position: relative;
    padding: 0 46px; /* reserve space for arrows */
  }
  .deals-track{
    grid-auto-columns: 250px;
    gap: 16px;
    padding: 10px 0;
    /* center cards within the visible track area */
    /* center cards within the visible track area */
    padding-left: max(12px, calc((100% - 250px)/2));
    padding-right: max(12px, calc((100% - 250px)/2));
    scroll-padding-left: max(12px, calc((100% - 250px)/2));
    scroll-padding-right: max(12px, calc((100% - 250px)/2));
    scrollbar-width: none;
  }
  .deals-track::-webkit-scrollbar{display:none}
  .deals-item{scroll-snap-align: center;}

  .deals-nav{width:36px;height:36px;}
  .deals-nav.prev{left:6px}
  .deals-nav.next{right:6px}
}

/* ==========================================================
   WOOCOMMERCE: CART (Exact UI/UX layout override)
   ========================================================== */

.woocommerce-cart .h2m-cart-page{max-width:1200px;margin:40px auto;padding:0 16px}
.woocommerce-cart .h2m-cart-header{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:16px}
.woocommerce-cart .h2m-cart-title{margin:0;font-size:40px;letter-spacing:.5px}
.woocommerce-cart .h2m-cart-count{opacity:.7;font-weight:600}

.woocommerce-cart .woocommerce-cart-form{margin:0}

.woocommerce-cart .h2m-cart-grid{display:grid;grid-template-columns:1fr 360px;gap:28px;align-items:start}

.woocommerce-cart .h2m-cart-head-row,
.woocommerce-cart .h2m-cart-row{display:grid;grid-template-columns:1fr 120px 140px 120px 40px;gap:16px;align-items:center}

.woocommerce-cart .h2m-cart-head-row{padding:12px 16px;background:#fff;border:1px solid #eee;border-bottom:0;font-weight:700;opacity:.7;border-top-left-radius:12px;border-top-right-radius:12px}

.woocommerce-cart .h2m-cart-items{border:1px solid #eee;background:#fff;border-bottom-left-radius:12px;border-bottom-right-radius:12px}
.woocommerce-cart .h2m-cart-row{padding:14px 16px;border-top:1px solid #eee}
.woocommerce-cart .h2m-cart-row:first-child{border-top:0}

.woocommerce-cart .h2m-item-media{display:flex;gap:14px;align-items:center}
.woocommerce-cart .h2m-thumb img{width:64px;height:64px;object-fit:contain;border:1px solid #eee;background:#fff}
.woocommerce-cart .h2m-name a{font-weight:700;text-decoration:none}
.woocommerce-cart .h2m-submeta{font-size:13px;opacity:.75;margin-top:4px}

.woocommerce-cart .h2m-remove{display:inline-flex;align-items:center;justify-content: flex-start;width:28px;height:28px;text-decoration:none;font-size:18px;line-height:1;color:inherit;opacity:.7}
.woocommerce-cart .h2m-remove:hover{opacity:1}

.woocommerce-cart .h2m-cart-actions{display:flex;justify-content:space-between;align-items:center;margin-top:14px}
.woocommerce-cart .h2m-continue{border:1px solid #ccc;padding:10px 14px;border-radius:4px;text-decoration:none;font-weight:600}
.woocommerce-cart .h2m-update{padding:10px 14px;border-radius:4px}

/* Right summary panel */
.woocommerce-cart .h2m-cart-right{position:sticky;top:18px}
.woocommerce-cart .h2m-summary{border:1px solid #eee;padding:16px;background:#f7f7f7}
.woocommerce-cart .h2m-summary-title{font-weight:800;margin-bottom:12px;text-transform:uppercase;letter-spacing:.4px;opacity:.8}

.woocommerce-cart .h2m-promo{margin-bottom:14px}
.woocommerce-cart .h2m-promo-title{font-weight:700;margin:6px 0}
.woocommerce-cart .h2m-promo-row{display:grid;grid-template-columns:1fr 120px;gap:10px}
.woocommerce-cart .h2m-coupon{height:40px;padding:0 10px;border:1px solid #ddd;background:#fff;border-radius:4px}
.woocommerce-cart .h2m-coupon-btn{height:40px;border:0;background:#111;color:#fff;font-weight:800;border-radius:4px}

.woocommerce-cart .h2m-totals table{width:100%;border-collapse:collapse}
.woocommerce-cart .h2m-totals th,
.woocommerce-cart .h2m-totals td{padding:10px 0;border-top:1px solid #e6e6e6;font-size:14px}
.woocommerce-cart .h2m-totals th{font-weight:700;opacity:.75;text-align:left}
.woocommerce-cart .h2m-totals td{text-align:right}

.woocommerce-cart .h2m-checkout{display:block;margin-top:14px;text-align:center;padding:14px 12px;background:#000;color:#fff;text-decoration:none;font-weight:900;letter-spacing:.5px;text-transform:uppercase;border-radius:4px}

/* Woo default “Proceed to checkout” (if any) hidden to avoid duplicates */
.woocommerce-cart .wc-proceed-to-checkout{display:none !important}

/* Quantity field styling */
.woocommerce-cart .h2m-col-qty .quantity{display:inline-flex;align-items:center}
.woocommerce-cart .h2m-col-qty input.qty{width:72px;min-height:38px;border:1px solid #ddd;border-radius:4px;padding:0 8px;text-align:center}

@media (max-width: 980px){
  .woocommerce-cart .h2m-cart-grid{grid-template-columns:1fr}
  .woocommerce-cart .h2m-cart-right{position:static}

  .woocommerce-cart .h2m-cart-head-row{display:none}
  .woocommerce-cart .h2m-cart-row{grid-template-columns:1fr;gap:10px}
  .woocommerce-cart .h2m-cart-row > div{display:flex;justify-content:space-between;align-items:center}
  .woocommerce-cart .h2m-col-item{justify-content:flex-start}
  .woocommerce-cart .h2m-item-media{align-items:flex-start}
}



/* === HEADER: SEARCH UNDER MENU (DESKTOP + MOBILE) === */
.header-search-row{
  padding:12px 0 14px;
  border-top:1px solid var(--line);
}
.header-search-row .header-search{
  flex:1 1 auto;
  max-width:none;
  min-width:0;
  margin:0;
}
.header-search-row .searchbox{
  width:100%;
  max-width:100%;
}
.header-search-row .searchbox input{
  width:100%;
}

/* On large screens, slightly tighten the top row since search moved out */
/* Wide desktop (1500px–1859px): 30px gutters + centered menu between logo/cart */
@media (min-width: 1500px) and (max-width: 1859px){
  .site-header .wrap.header-row{
    padding-left: 30px;
    padding-right: 30px;
  }
  .site-header .wrap.header-row .header-nav{
    margin-left: 0;
    margin-right: 0;
    padding-left: 35px; /* gap between logo and menu */
    padding-right: 55px; /* gap between menu and cart */
    justify-content: center;
  }
  .site-header .wrap.header-row .header-nav .menu{
    justify-content: center;
  }
}

/* Extra-wide desktop (1860px+): 215px gutters + TRUE centered menu */ @media (min-width: 1860px){ .site-header .wrap.header-row{ padding-left: 0px; padding-right: 0px; } .site-header{ position:sticky; top:0; z-index:50; background:#fff; border-bottom:1px solid var(--line); } .header-row{ display:flex; align-items:center; gap:18px; min-height:88px; /* Default: one line on wide desktop */ flex-wrap:nowrap; } /* Brand / Logo */ .brand{ display:flex; align-items:center; gap:10px; font-weight:800; flex:0 0 auto; } .brand .custom-logo-link{display:flex;align-items:center} .brand img.custom-logo{max-height:56px;width:auto;height:auto;display:block} .brand-name{letter-spacing:.2px} } }



/* =========================
   SHOP ARCHIVE (Category/Shop)
   ========================= */
.shop-archive-head{margin-top:8px}
.shop-archive-title{margin:0;font-size:32px;letter-spacing:-0.02em}

.shop-toolbar{
  margin-top:14px;
  display:flex;
  align-items:center;
  gap:12px;
}
.shop-toolbar-left{color:var(--muted);font-size:13px}
.shop-toolbar-right{margin-left:auto}
.shop-toolbar .woocommerce-ordering{margin:0}
.shop-toolbar select{
  border:1px solid var(--line);
  border-radius:0;
  padding:10px 12px;
  background:#fff;
  font-weight:700;
}

/* Make archive cards match Deals cards (remove default li.product padding) */
.shop-archive .woocommerce ul.products li.product.deals-item{
  padding:0;
  border:1px solid rgba(0,0,0,.08);
  background:#fff;
}

/* WooCommerce still outputs legacy float/width rules on li.product.
   When we switch the list to CSS grid, those rules can shrink cards (cropped look).
   Force grid to own sizing on shop/category archives.
*/
/* IMPORTANT: depending on Woo wrapper markup, `.woocommerce` may not always wrap `ul.products`.
   So we target both `.woocommerce ul.products` and plain `ul.products` under `.shop-archive`.
   This prevents narrow/collapsed cards on category pages.
*/
.shop-archive .woocommerce ul.products,
.shop-archive ul.products{
  display:grid !important;
  /* Match home/deals card sizing: 260w x 360h */
  grid-template-columns:repeat(auto-fill, 260px);
  gap:16px;
  margin:14px 0 0;
  padding:0;
  justify-content:flex-start !important; /* start under category title */
  justify-items:start;
  align-content:start;
}

.shop-archive .woocommerce ul.products li.product,
.shop-archive ul.products li.product{
  float:none !important;
  width:260px !important;
  max-width:260px !important;
  height:auto !important;
  margin:0 !important;
}

/* Ensure the internal card layout fits the fixed 260x360 size */
.shop-archive ul.products li.product.deals-item,
.shop-archive .woocommerce ul.products li.product.deals-item{
  border-radius:5px;
  overflow:hidden;
}
.shop-archive .deals-item .deals-img img{
  width:260px;
  height:215px;
  object-fit:contain;
  background:#fff;
}
.shop-archive .deals-item .deals-body{
  padding:10px;
  gap:6px;
  flex:1;
}
.shop-archive .deals-item .price{font-size:14px; margin-top:4px}
.shop-archive .deals-item .deals-body h3{
  font-size:12.5px;
  line-height:1.2;
  margin:2px 0 0;
  font-weight:800;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:calc(1.2em * 2); /* reserve room so titles don't vanish */
}

/* keep rating compact so title fits inside 360px card */
.shop-archive .deals-item .star-rating{margin:0; transform:scale(.92); transform-origin:left top;}

/* Button/stepper sizing so it doesn't overflow the 360px card */
.shop-archive .mini-plus,
.shop-archive .mini-stepper{
  height:42px;
}
.shop-archive .mini-plus{line-height:42px; margin-top:8px;}
.shop-archive .mini-stepper{padding:4px;}
.shop-archive .mini-stepper .mini-btn{width:34px;height:34px;}

/* Center the compact grid on small screens */
@media (max-width: 520px){
  .shop-archive .woocommerce ul.products,
  .shop-archive ul.products{justify-content:center;}
}

/* (moved above) */

/* Result count spacing on very small screens */
@media (max-width: 520px){
  .shop-toolbar{flex-direction:column;align-items:stretch}
  .shop-toolbar-right{margin-left:0}
  .shop-toolbar select{width:100%}
}

/* ==============================
   SINGLE PRODUCT: Related sidebar thumbnails
   (Override home/deals image crop rules)
============================== */
.single-product .product-related .deals-img{
  width:76px;
  height:76px;
}
.single-product .product-related .deals-item .deals-img img{
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
  display:block;
}


/* ==============================
   HOTFIX: Related Products sidebar card layout
   Ensures deals-item rules from home carousel do not override sidebar
============================== */
.single-product .product-related ul.products li.product.deals-item{
  display:grid !important;
  grid-template-columns:76px 1fr !important;
  gap:12px !important;
  align-items:center !important;
  padding:12px !important;
  border:1px solid var(--line) !important;
  border-radius:14px !important;
  background:#acadb1 !important;
  box-shadow:none !important;
  overflow:visible !important;
}
.single-product .product-related ul.products li.product.deals-item .deals-media{margin:0 !important;}
.single-product .product-related ul.products li.product.deals-item .deals-img{
  width:76px !important;
  height:76px !important;
  border-radius:12px !important;
  overflow:hidden !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:#acadb1 !important;
  border:1px solid var(--line) !important;
}
.single-product .product-related ul.products li.product.deals-item .deals-img img{
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
  display:block !important;
}
.single-product .product-related ul.products li.product.deals-item .deals-body{
  padding:0 !important;
  gap:6px !important;
}
.single-product .product-related ul.products li.product.deals-item .deals-body::before{display:none !important;}
.single-product .product-related ul.products li.product.deals-item .mini-cart-controls{display:none !important;}

/* =========================================================
   Single Product: Related Products sidebar (mockup layout)
   ========================================================= */

.single-product .product-related .h2m-related-list{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.single-product .product-related .h2m-related-item{
  display:flex;
  align-items:center;
  gap:18px;
  padding:16px;
  border:1px solid var(--line);
  background:#fff;
  border-radius:14px;
}

.single-product .product-related .h2m-related-thumb{
  flex:0 0 auto;
  width:120px;
  height:120px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:10px;
}

.single-product .product-related .h2m-related-thumb img{
  width:100% !important;
  height:100% !important;
  object-fit:contain !important; /* never crop */
  display:block;
}

.single-product .product-related .h2m-related-info{
  flex:1 1 auto;
  min-width:0;
}

.single-product .product-related .h2m-related-name{
  display:block;
  font-weight:900;
  font-size:14px;
  line-height:1.2;
  color:var(--text);
  text-transform:uppercase;
  text-decoration:none;
  margin:0 0 6px;
}

.single-product .product-related .h2m-related-price{
  font-weight:800;
  margin:0 0 12px;
}

.single-product .product-related .h2m-related-cta .button,
.single-product .product-related .h2m-related-atc{
  width:100%;
  max-width:220px;
  background:#acadb1 !important;
  color:#fff !important;
  border:5 !important;
  border-radius:5 !important; /* mockup is square */
  padding:12px 16px !important;
  font-weight:800;
  text-align:center;
}

.single-product .product-related .h2m-related-cta .button:hover{
  filter:brightness(0.95);
}

@media (max-width: 900px){
  .single-product .product-related .h2m-related-item{padding:14px;gap:14px}
  .single-product .product-related .h2m-related-thumb{width:96px;height:96px}
}


/* ==============================
   HOTFIX: Related Products sidebar
   Prevent home 'deals' styles from cropping thumbnails
============================== */
.single-product .product-related ul.products{
  display:grid !important;
  gap:12px;
}

.single-product .product-related ul.products li.product.deals-item{
  display:grid !important;
  grid-template-columns:76px 1fr !important;
  gap:12px !important;
  align-items:center !important;
  padding:12px !important;
  border:1px solid var(--line) !important;
  border-radius:14px !important;
  box-shadow:none !important;
  overflow:visible !important; /* avoid clipping text */
  background:#fff !important;
}

.single-product .product-related ul.products li.product.deals-item .deals-media{margin:0 !important;}
.single-product .product-related ul.products li.product.deals-item .deals-body{
  padding:0 !important;
  gap:6px !important;
}
.single-product .product-related ul.products li.product.deals-item .deals-body::before{display:none !important;}

.single-product .product-related ul.products li.product.deals-item .deals-img{
  width:76px !important;
  height:76px !important;
  border-radius:12px !important;
  overflow:hidden !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:#fff !important;
}

.single-product .product-related ul.products li.product.deals-item .deals-img img{
  width:100% !important;
  height:100% !important;
  max-width:100% !important;
  max-height:100% !important;
  object-fit:contain !important;
  display:block !important;
}

/* sidebar: keep it clean */
.single-product .product-related ul.products li.product.deals-item .mini-cart-controls,
.single-product .product-related ul.products li.product.deals-item .button{
  display:none !important;
}

.single-product .product-related ul.products li.product.deals-item h3{
  margin:0 !important;
  font-size:14px !important;
  line-height:1.2 !important;
}
.single-product .product-related ul.products li.product.deals-item .price{
  margin:0 !important;
  font-size:14px !important;
  font-weight:800 !important;
}

/* ==============================
   HOTFIX: Related Products sidebar
   Prevent home 'deals' styles from affecting related cards
============================== */
.single-product .product-related ul.products{
  display:grid !important;
  gap:12px;
}

.single-product .product-related ul.products li.product.deals-item{
  display:grid !important;
  grid-template-columns:76px 1fr !important;
  gap:12px !important;
  align-items:center !important;
  padding:12px !important;
  border:1px solid var(--line) !important;
  border-radius:14px !important;
  box-shadow:none !important;
  overflow:visible !important;
}

.single-product .product-related ul.products li.product.deals-item .deals-media{
  margin:0 !important;
}

.single-product .product-related ul.products li.product.deals-item .deals-img{
  width:76px !important;
  height:76px !important;
  border-radius:12px !important;
  overflow:hidden !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:#fff !important;
  border:1px solid var(--line) !important;
}

.single-product .product-related ul.products li.product.deals-item .deals-img img{
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
  display:block !important;
}

/* keep sidebar clean */
.single-product .product-related ul.products li.product.deals-item .mini-cart-controls{display:none !important;}

/* ===============================
   UI/UX TUNING (Jan 2026)
   ===============================
   Requested:
   - Product image column: 350px (height auto)
   - Gap image ↔ description: 20px
   - Gap description ↔ related: 20px
   - Related column: 500px
*/

.single-product .product-main{
  display:grid;
  grid-template-columns: 350px minmax(360px, 1fr) 500px;
  gap:20px;
  align-items:start;
}

/* Responsive: stack columns on tablets/mobiles */
@media (max-width: 980px){
  .single-product .product-main{
    grid-template-columns: 1fr;
    gap:16px;
  }
  .single-product .product-media,
  .single-product .product-summary,
  .single-product .product-related{
    width:100% !important;
    max-width:100% !important;
  }
  .single-product .product-media{order:1;}
  .single-product .product-summary{order:2;}
  .single-product .product-related{order:3;}
}

@media (max-width: 600px){
  .single-product .product-main{gap:14px;}
  /* Make gallery feel roomy */
  .single-product .product-media .woocommerce-product-gallery__image img{
    max-height: 420px;
  }
  /* CTA buttons full-width, comfy */
  .single-product .product-cta .mini-cart-controls .mini-btn{width:100%;}
}


.single-product .product-media{
  width:350px;
  max-width:100%;
}
@media (max-width: 980px){
  .single-product .product-media{width:100%;}
}


.single-product .product-media .woocommerce-product-gallery__image img{
  width:100%;
  height:auto;
  object-fit:contain;
}

.single-product .product-related{
  width:500px;
}

/* ===============================
   PRODUCT GALLERY UI/UX
   - thumbnail strip
   - better zoom/lightbox affordance
   - consistent frame (no awkward empty space)
   - mobile friendly horizontal swipe
================================ */

.single-product .product-media .woocommerce-product-gallery{
  margin:0;
}

/* Main image frame */
.single-product .product-media .woocommerce-product-gallery__wrapper{
  border:1px solid var(--line);
  background:#fff;
  border-radius:16px;
  overflow:hidden;
}

.single-product .product-media .woocommerce-product-gallery__image a{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:14px;
  cursor: zoom-in;
}

.single-product .product-media .woocommerce-product-gallery__image img{
  width:100%;
  height:auto;
  max-height:420px;
  object-fit:contain;
  border-radius:0;
}

/* Thumbnails strip */
.single-product .product-media .flex-control-thumbs{
  margin:12px 0 0;
  padding:0;
  display:flex;
  gap:10px;
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type:x mandatory;
  scrollbar-width: none; /* Firefox */
}

.single-product .product-media .flex-control-thumbs::-webkit-scrollbar{display:none;}

.single-product .product-media .flex-control-thumbs li{
  list-style:none;
  flex:0 0 64px;
  scroll-snap-align:start;
}

.single-product .product-media .flex-control-thumbs img{
  width:64px;
  height:64px;
  object-fit:contain;
  background:#fff;
  border-radius:0;
  border:1px solid var(--line);
  padding:6px;
  opacity:.9;
  transition: transform .15s ease, opacity .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.single-product .product-media .flex-control-thumbs img:hover{
  opacity:1;
  transform: translateY(-1px);
}

/* Active thumbnail (Flexslider adds .flex-active to the active img) */
.single-product .product-media .flex-control-thumbs img.flex-active{
  border-color: color-mix(in srgb, var(--accent) 65%, var(--line));
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
  opacity:1;
}

/* Mobile polish */
@media (max-width: 700px){
  .single-product .product-media .woocommerce-product-gallery__image a{padding:12px;}
  .single-product .product-media .woocommerce-product-gallery__image img{max-height:360px;}
  .single-product .product-media .flex-control-thumbs li{flex-basis:56px;}
  .single-product .product-media .flex-control-thumbs img{width:56px;height:56px;}
}


/* ===============================
   RELATED PRODUCTS – Stepper Add-to-Cart (sidebar)
   Uses same JS logic as Deals cards (.mini-cart-controls)
=============================== */

/* IMPORTANT:
   Earlier in main.css we intentionally hid mini-cart-controls inside .product-related
   for the old Woo loop cards. Now that Related Products uses the custom sidebar layout,
   we must re-enable the controls here.
*/
.single-product .product-related .h2m-related-item .mini-cart-controls{
  display: flex !important;
}

.single-product .h2m-related .h2m-related-cta{
  margin-top: 10px;
}

.single-product .h2m-related .mini-cart-controls{
  width: 100%;
}

.single-product .h2m-related .mini-plus.h2m-related-atc{
  width: 100%;
  height: 44px;
  border-radius: 5px;
  background: #111;
  color: #fff;
  font-weight: 700;
  border: 0;
}

/* Stepper style (matches sidebar card) */
.single-product .h2m-related .mini-stepper{
  width: 100%;
  height: 44px;
  border-radius: 10px;
  background: #111;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}

.single-product .h2m-related .mini-stepper .mini-btn{
  width: 44px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,.10);
  color: #fff;
  border: 0;
  font-weight: 800;
}

.single-product .h2m-related .mini-stepper .mini-qty{
  font-weight: 800;
  min-width: 24px;
  text-align: center;
}

/* Make sure any legacy "deals" image rules do not affect related thumbs */
.single-product .h2m-related .h2m-related-thumb img{
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}


/* --- FIX: Related products CTA bottom spacing (keep padding without hugging card edge) --- */
.single-product .product-related .h2m-related-cta .button,
.single-product .product-related .h2m-related-atc{
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  margin-bottom: 8px !important; /* breathing space from card border */
}


/* Related sidebar cards: allow comfortable wrapping on small screens */
@media (max-width: 600px){
  .single-product .product-related .h2m-related-item{
    padding: 12px;
  }
  .single-product .product-related .h2m-related-thumb{flex:0 0 72px;}
  .single-product .product-related .h2m-related-thumb img{width:72px;height:72px;}
}
/* ===============================
   MOBILE – CENTER PRODUCT GALLERY
=============================== */

@media (max-width: 768px) {

  /* Main product layout stack */
  .single-product .product-main {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Gallery wrapper */
  .single-product .product-gallery {
    width: 350px;
    max-width: 100%;
    margin: 0 auto 16px auto;
  }

  /* Main image frame */
  .single-product .product-gallery img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
  }

  /* Thumbnails strip */
  .single-product .woocommerce-product-gallery__wrapper {
    justify-content: center;
  }

  .single-product .flex-control-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
  }
}


/* ===============================
   SHOP/CATEGORY GRID ALIGNMENT
   - Start cards under the title (no centered "empty columns")
=============================== */
.shop-archive ul.products,
.shop-archive .woocommerce ul.products{
  /* Match Home/Deals cards: 260w x 360h */
  grid-template-columns:repeat(auto-fill, 260px);
  gap:16px;
  justify-content:flex-start;
}


/* === SHOP ARCHIVE: hard left-align grid (fixes centered look with few products) === */
.shop-archive ul.products,
.shop-archive .woocommerce ul.products{
  width:100% !important;
  max-width:none !important;
  margin-left:0 !important;
  margin-right:0 !important;
  justify-content:flex-start !important;
  justify-items:start !important;
  /* Fixed columns to avoid huge cards */
  grid-template-columns:repeat(auto-fill, 260px) !important;
}

/* WooCommerce adds clearfix pseudo-elements (::before/::after) to ul.products.
   When ul.products is display:grid, those pseudo-elements can become grid items
   and visually shift the first product to the right. */
.shop-archive ul.products::before,
.shop-archive ul.products::after,
.shop-archive .woocommerce ul.products::before,
.shop-archive .woocommerce ul.products::after{
  content:none !important;
  display:none !important;
}


/* ===============================
   CATEGORY HUB: SUBCATEGORIES GRID
=============================== */
.h2m-subcats ul.products{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 260px));
  gap: 18px;
  justify-content: flex-start;
  margin: 18px 0 0;
}
.h2m-subcats li.product-category{
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}
.h2m-subcats li.product-category a{
  text-decoration: none;
  color: inherit;
  display: block;
}
.h2m-subcats li.product-category img{
  width: 100%;
  height: 180px;
  object-fit: contain;
  display: block;
}
.h2m-subcats li.product-category h2{
  font-size: 16px;
  font-weight: 800;
  margin: 10px 0 0;
}
.h2m-subcats li.product-category mark.count{
  background: transparent;
  color: #777;
  font-weight: 600;
}

/* Subcategory CTA button ("Shop")
   Subcategory cards reuse the product-card markup (deals-item + mini-plus).
   The global rule `.deals-item a{display:block;}` would override `.mini-btn{display:grid;}`
   and push the label to the left. Force proper centering + white text here. */
.h2m-subcats li.product-category a.h2m-cat-btn{
  display:flex !important;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:#fff !important;
  background:#000;
}

@media (max-width: 768px){
  .h2m-subcats ul.products{
    grid-template-columns: 1fr 1fr;
  }
  .h2m-subcats li.product-category img{
    height: 140px;
  }
}
@media (max-width: 420px){
  .h2m-subcats ul.products{
    grid-template-columns: 1fr;
  }
}



/* ===============================
   SUBCATEGORY CARDS (match products)
=============================== */
.h2m-subcats ul.products{
  /* use same grid rules as products */
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 320px)) !important;
  gap: 18px !important;
  justify-content: flex-start !important;
  margin: 16px 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

/* Kill Woo clearfix that can create a phantom first grid item */
.h2m-subcats ul.products::before,
.h2m-subcats ul.products::after{
  content: none !important;
  display: none !important;
}

.h2m-subcats li.product-category.deals-item{
  width: auto !important;
  margin: 0 !important;
}

/* Ensure category thumbnails never crop */
.h2m-subcats .deals-img img{
  width: 100% !important;
  height: 220px !important;
  object-fit: contain !important;
  display: block;
}

/* Category title spacing */
.h2m-subcats .woocommerce-loop-category__title{
  margin: 10px 0 0 !important;
  font-size: 16px;
  font-weight: 800;
}

/* Button matches Add button style */
.h2m-subcats .h2m-cat-btn{
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 768px){
  .h2m-subcats ul.products{
    grid-template-columns: 1fr 1fr !important;
  }
  .h2m-subcats .deals-img img{
    height: 180px !important;
  }
}

@media (max-width: 420px){
  .h2m-subcats ul.products{
    grid-template-columns: 1fr !important;
  }
}



/* === Aquatre: Cart polish for Scholars Book lamination + thumbnail === */
.woocommerce-cart .h2m-name a{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  max-width: 100%;
}

/* Bigger, centered thumbnail box */
.woocommerce-cart .h2m-thumb{
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -6px;
}
.woocommerce-cart .h2m-thumb img{
  width: 84px;
  height: 84px;
  display: block;
  object-fit: contain;
  border: 1px solid #eee;
  background: #fff;
}

/* Keep variations/meta (including Lamination) on a single line */
.woocommerce-cart .h2m-submeta dl.variation{
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 0;
}
.woocommerce-cart .h2m-submeta dl.variation dt,
.woocommerce-cart .h2m-submeta dl.variation dd{
  margin: 0;
  padding: 0;
  display: inline;
}
.woocommerce-cart .h2m-submeta dl.variation dd p{
  margin: 0;
  display: inline;
}
.woocommerce-cart .aq-lamination-inline{
  font-weight: 400;
  color: #666;
}


/* Cart: Lamination quantity stepper */
.woocommerce-cart .aq-lam-qty{
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.woocommerce-cart .aq-lam-qty-label{
  font-size: 13px;
  color: #666;
  display:flex;
  align-items: center;
  gap: 6px;
}
.woocommerce-cart .aq-lam-qty-note{
  font-size: 12px;
  color:#888;
}
.woocommerce-cart .aq-lam-qty-controls{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.woocommerce-cart .aq-lam-btn{
  width: 38px;
  height: 36px;
  border: 1px solid var(--line, #e6e6e6);
  background: #fff;
  border-radius: 10px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.woocommerce-cart .aq-lam-input{
  width: 64px;
  height: 36px;
  border: 1px solid var(--line, #e6e6e6);
  border-radius: 10px;
  text-align: center;
  padding: 0 8px;
}
.woocommerce-cart .aq-lam-input::-webkit-outer-spin-button,
.woocommerce-cart .aq-lam-input::-webkit-inner-spin-button{
  -webkit-appearance: none;
  margin: 0;
}

/* ======================
   Policies (Refund/Return/Privacy...)
   ====================== */
.aq-policy{padding: 34px 0 64px;}
.aq-policy__header{margin-bottom: 18px;}
.aq-policy__title{
  margin: 0;
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: -0.02em;
}
.aq-policy__content{
  max-width: 820px;
}
.aq-policy__content p,
.aq-policy__content li{
  font-size: 16px;
  line-height: 1.8;
}
.aq-policy__content h2{margin-top: 26px;}
.aq-policy__back{margin-top: 26px;}
.aq-policy__back a{
  text-decoration: none;
  font-weight: 700;
}
.aq-policy__back a:hover{text-decoration: underline;}


/* Search dropdown: keep PRODUCT rows top-aligned (title + price line),
   but make CATEGORY rows visually balanced without forcing vertical centering. */
.aq-search-item.category{
  display:flex;
  align-items:flex-start;
  padding-top:12px;
  padding-bottom:12px;
}

.aq-search-item.category .aq-search-thumb{
  margin-top:2px;
}

.aq-search-item.category .aq-search-title{
  margin-top:6px; /* nudges down so it sits closer to product title baseline */
  line-height:1.35;
}

/* Ensure we do NOT affect product items layout */
.aq-search-item.product{
  align-items:flex-start;
}

/* --------------------------------------------------------------------------
   Custom Breadcrumbs (theme UI)
   -------------------------------------------------------------------------- */
.aq-breadcrumbs{margin:14px 0 10px;}
.aq-breadcrumbs .wrap{display:block;}
.aq-breadcrumbs__list{
  list-style:none;
  margin:0;
  padding:10px 12px;
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
  background:rgba(245,247,255,.9);
  border:1px solid rgba(0,0,0,.06);
  border-radius:14px;
  box-shadow:0 6px 18px rgba(0,0,0,.04);
}
.aq-breadcrumbs__item{display:flex;align-items:center;gap:6px;min-width:0;}
.aq-breadcrumbs__sep{display:flex;align-items:center;color:rgba(0,0,0,.28);}
.aq-breadcrumbs__link,
.aq-breadcrumbs__current{
  font-size:13px;
  line-height:1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:40vw;
}
.aq-breadcrumbs__link{color:rgba(0,0,0,.65);font-weight:600;}
.aq-breadcrumbs__link:hover{color:rgba(0,0,0,.88);}
.aq-breadcrumbs__current{color:#2f6df6;font-weight:700;}

.aq-breadcrumbs__home{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:30px;
  height:30px;
  border-radius:10px;
  background:rgba(93, 77, 255, .12);
  color:#5d4dff;
}
.aq-breadcrumbs__home:hover{filter:brightness(0.95);}
.aq-breadcrumbs__homeIcon{display:inline-flex;}

@media (max-width: 768px){
  .aq-breadcrumbs{margin:12px 0 8px;}
  .aq-breadcrumbs__list{padding:10px 10px;}
  .aq-breadcrumbs__link,
  .aq-breadcrumbs__current{max-width:55vw;}
}

.woocommerce-breadcrumb {
    display:none !important; }

/* Deals carousel: mobile shows exactly 1 centered item (no peeking edges) */
@media (max-width: 768px){
  .deals-carousel{position:relative;padding:0 48px;}
  .deals-viewport{width:250px;margin:0 auto;overflow:hidden;}
  .deals-track{
    display:flex;
    gap:16px;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    scroll-behavior:smooth;
    scrollbar-width:none;
  }
  .deals-track::-webkit-scrollbar{display:none;}
  .deals-item{flex:0 0 235px;scroll-snap-align:center;}
  .deals-nav{position:absolute;top:45%;transform:translateY(-50%);width:36px;height:36px;border-radius:50%;background:#fff;box-shadow:0 4px 12px rgba(0,0,0,.15);z-index:10;}
  .deals-nav.prev{left:0;}
  .deals-nav.next{right:0;}
  
   .deals-viewport {
    margin-left: calc(55% - 15px - 1px); /* 👈 shift left 15px */
    transform: translateX(-50%);
  }
}
  
}

/* Product image contain fix (desktop + mobile) */
.woocommerce ul.products li.product .woocommerce-product-thumbnail{
    height:220px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#fff;
    overflow:hidden;
}
.woocommerce ul.products li.product img{
    max-width:100%;
    max-height:100%;
    width:auto;
    height:auto;
    object-fit:contain;
    padding:8px;
}

/* =============================
   Single Product: ISBN under title
   ============================= */
.single-product.woocommerce .product-title-row{display:block;}
.single-product.woocommerce .product-title-block{display:flex;flex-direction:column;align-items:flex-start;gap:4px;}
.single-product.woocommerce .aquatre-isbn{margin-top:2px;font-size:13px;color:#9aa0a6;font-weight:400;letter-spacing:.3px;}



/* Aquatre: cart table actions (outside table, aligned to the right) */
.woocommerce-cart .h2m-cart-table-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin:0 0 14px 0}
