/* ── UniversalCart storefront theme — Deep Teal & Coral ─────────── */
:root{
  --store-primary:#0F766E;
  --store-primary-dark:#0B5750;
  --store-primary-light:#F0FDFA;
  --store-accent:#F97316;
  --store-accent-light:#FFF1E6;
  --store-bg:#FFFFFF;
  --store-bg-alt:#F7FBFA;
  --store-text:#12312B;
  --store-muted:#5B7E78;
  --store-border:#DCEEEA;
  --store-radius:14px;
  --store-shadow:0 8px 28px rgba(15,118,110,.08);
  --store-heading:'Poppins',sans-serif;
  --store-body:'Inter',sans-serif;
}

body.store-body{margin:0;padding:0;font-family:var(--store-body),sans-serif;background:var(--store-bg-alt);color:var(--store-text);line-height:1.6}
.store-body a{color:var(--store-primary);text-decoration:none}

/* ── Nav ──────────────────────────────────────────────────────── */
.store-nav{background:var(--store-bg);border-bottom:1px solid var(--store-border);position:sticky;top:0;z-index:50}
/* Page width + left/right margin come from Store Settings → Layout (rendered by _StoreLayout).
   On phones the margin is capped so a wide desktop margin doesn't squeeze the content. */
:root{--store-gutter-x:var(--store-gutter,1.5rem)}
@media (max-width:767.98px){:root{--store-gutter-x:min(var(--store-gutter,1.5rem),16px)}}
.store-nav-inner{max-width:var(--store-page-width,1240px);margin:0 auto;padding:.9rem var(--store-gutter-x);display:flex;align-items:center;gap:1.25rem}
.store-brand{font-family:var(--store-heading);font-weight:800;font-size:1.35rem;color:var(--store-primary);display:flex;align-items:center;gap:.4rem;white-space:nowrap}
.store-brand .dot{color:var(--store-accent)}
.store-brand-logo{max-height:40px;max-width:180px;object-fit:contain}
.store-search{flex:1;max-width:480px}
.store-search input{width:100%;border:1px solid var(--store-border);border-radius:50px;padding:.55rem 1.1rem;font-size:.9rem;background:var(--store-bg-alt)}
.store-search input:focus{outline:none;border-color:var(--store-primary)}
.store-nav-links{display:flex;align-items:center;gap:1rem;margin-left:auto}
.store-icon-link{position:relative;color:var(--store-text);font-size:1.15rem;display:flex;align-items:center}
.store-icon-link:hover{color:var(--store-primary)}

/* On narrow screens the brand + icons alone fill the row, squeezing the search box down to
   almost nothing — wrap it onto its own full-width row instead. */
@media (max-width: 768px){
  .store-nav-inner{flex-wrap:wrap;row-gap:.6rem}
  .store-search{order:3;flex:1 1 100%;max-width:100%}
}
.store-cart-count{position:absolute;top:-8px;right:-10px;background:var(--store-accent);color:#fff;font-size:.65rem;font-weight:700;border-radius:50%;width:18px;height:18px;display:flex;align-items:center;justify-content:center}
.store-nav-text-link{font-size:.85rem;font-weight:600;color:var(--store-text)}
.store-nav-text-link:hover{color:var(--store-primary)}

/* ── Layout wrap ──────────────────────────────────────────────── */
.store-wrap{max-width:var(--store-page-width,1240px);margin:0 auto;padding:2rem var(--store-gutter-x) 4rem}

/* Reuse admin-card component but restyle it with the storefront palette */
.store-wrap .admin-card{background:var(--store-bg);border:1px solid var(--store-border);border-radius:var(--store-radius);box-shadow:var(--store-shadow)}
.store-wrap .btn-primary{background:var(--store-primary);border-color:var(--store-primary);color:#fff}
.store-wrap .btn-primary:hover{background:var(--store-primary-dark);border-color:var(--store-primary-dark);color:#fff}
.store-wrap .btn-success{background:var(--store-accent);border-color:var(--store-accent);color:#fff}
.store-wrap .btn-success:hover{filter:brightness(1.08);color:#fff}
.store-wrap .btn-outline-primary{color:var(--store-primary);border-color:var(--store-primary)}
.store-wrap .btn-outline-primary:hover{background:var(--store-primary);border-color:var(--store-primary);color:#fff}
.store-wrap .text-primary{color:var(--store-primary) !important}
.store-wrap .text-success{color:var(--store-accent) !important}
.store-wrap a.fw-700,.store-wrap a.fw-600{color:var(--store-text)}

/* Tulips reserves red strictly for sale badges/pricing — real action buttons (Proceed to
   Checkout, Add to Cart, Buy It Now) are dark/primary-colored, not accent-red. */
.store-modern-layout .store-wrap .btn-success{background:var(--store-primary);border-color:var(--store-primary);color:#fff}
.store-modern-layout .store-wrap .btn-success:hover{background:var(--store-primary-dark);border-color:var(--store-primary-dark);color:#fff;filter:none}

/* ── Big homepage hero carousel (optional, admin-managed) ────────── */
.store-hero-carousel{border-radius:var(--store-radius);overflow:hidden;box-shadow:var(--store-shadow)}
.store-hero-carousel .carousel-item img{width:100%;height:320px;object-fit:cover}
@media (min-width:768px){.store-hero-carousel .carousel-item img{height:440px}}
@media (min-width:1200px){.store-hero-carousel .carousel-item img{height:560px}}
.store-hero-carousel .carousel-item::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,0) 40%,rgba(0,0,0,.55) 100%)}
.store-hero-caption{left:5%;right:5%;bottom:8%;text-align:left;padding:0}
.store-hero-caption h2{font-family:var(--store-heading);font-weight:800;font-size:1.8rem;margin-bottom:.4rem;text-shadow:0 2px 10px rgba(0,0,0,.4)}
@media (min-width:768px){.store-hero-caption h2{font-size:2.6rem}}
.store-hero-caption p{font-size:1rem;opacity:.95;margin-bottom:1rem;text-shadow:0 2px 8px rgba(0,0,0,.4)}
.store-hero-caption .btn{background:var(--store-primary);color:#fff;border:0}
.store-hero-caption .btn:hover{background:var(--store-primary-dark);color:#fff}
.store-hero-carousel .carousel-indicators [data-bs-target]{background-color:#fff;width:8px;height:8px;border-radius:50%;opacity:.6}
.store-hero-carousel .carousel-indicators .active{opacity:1}
.store-hero-carousel .carousel-control-prev,.store-hero-carousel .carousel-control-next{width:48px}
.store-hero-carousel .carousel-control-prev-icon,.store-hero-carousel .carousel-control-next-icon{background-color:rgba(255,255,255,.85);border-radius:50%;padding:14px;background-size:50%}

/* ── Circular "Shop by Category" tiles ───────────────────────── */
.store-category-rail{display:flex;flex-wrap:wrap;justify-content:center;gap:1.5rem 1rem;padding:.25rem .25rem 1rem}
.store-category-tile{flex:0 0 auto;width:96px;text-decoration:none;text-align:center;display:flex;flex-direction:column;align-items:center;gap:.5rem}
.store-category-tile__img{width:96px;height:96px;border-radius:50%;overflow:hidden;background:var(--store-bg-alt);box-shadow:0 4px 14px rgba(0,0,0,.08)}
.store-category-tile__img img{width:100%;height:100%;object-fit:cover;transition:transform .25s ease}
.store-category-tile:hover .store-category-tile__img img{transform:scale(1.06)}
.store-category-tile__name{font-family:var(--store-heading);font-weight:600;font-size:.82rem;color:var(--store-text)}

/* ── Product cards (image + floating wishlist/quick-actions, centered body) ─── */
/* Columns per row and image shape/fit come from Store Settings → Layout. */
.store-product-grid{display:grid;grid-template-columns:repeat(var(--store-cols-xs,2),minmax(0,1fr));gap:1rem}
@media (min-width:576px){.store-product-grid{grid-template-columns:repeat(var(--store-cols-sm,3),minmax(0,1fr))}}
@media (min-width:992px){.store-product-grid{grid-template-columns:repeat(var(--store-cols-lg,4),minmax(0,1fr))}}
.store-product-card{position:relative}
.store-product-card__media{position:relative;aspect-ratio:1/1.05;border-radius:var(--store-radius);overflow:hidden;background:var(--store-bg-alt)}
.store-fixed-img-ratio .store-product-card__media{aspect-ratio:var(--store-img-ratio)}
.store-product-card__media img{width:100%;height:100%;object-fit:var(--store-img-fit,cover);display:block;transition:transform .3s ease}

/* Classic (non-modern) card rows — same column settings, applied to Bootstrap .row children. */
.store-classic-grid>*{flex:0 0 auto;width:calc(100% / var(--store-cols-xs,1))}
@media (min-width:576px){.store-classic-grid>*{width:calc(100% / var(--store-cols-sm,2))}}
@media (min-width:992px){.store-classic-grid>*{width:calc(100% / var(--store-cols-lg,3))}}

/* Product images outside the modern card (classic cards, wishlist, related, product page).
   Each keeps its original fixed height until the store picks an image shape. */
.store-img{width:100%;height:var(--store-img-h,200px);object-fit:var(--store-img-fit,cover);background:var(--store-bg-alt);display:block}
.store-fixed-img-ratio .store-img{height:auto;aspect-ratio:var(--store-img-ratio)}
.store-main-img{width:100%;max-height:480px;object-fit:var(--store-img-fit,cover);background:var(--store-bg-alt)}
.store-fixed-img-ratio .store-main-img{max-height:80vh;aspect-ratio:var(--store-img-ratio)}
.store-product-card__media:hover img{transform:scale(1.04)}
.store-product-card__placeholder{width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:var(--store-muted);font-size:2rem}

.store-product-card__badge{position:absolute;top:10px;left:10px;background:var(--store-primary);color:#fff;font-size:.65rem;font-weight:700;letter-spacing:.02em;text-transform:uppercase;padding:.25rem .55rem;border-radius:999px;z-index:2}
.store-product-card__badge--sale{background:var(--store-accent)}
.store-product-card__badge--soldout{background:var(--store-muted)}

.store-product-card__wishlist{position:absolute;top:10px;left:10px;width:32px;height:32px;border-radius:50%;background:rgba(255,255,255,.92);box-shadow:0 2px 8px rgba(0,0,0,.15);display:flex;align-items:center;justify-content:center;color:var(--store-text);border:0;z-index:2}
.store-product-card__badge ~ .store-product-card__wishlist{top:48px}
.store-product-card__wishlist:hover{color:var(--store-accent)}

.store-product-card__actions{position:absolute;top:10px;right:10px;display:flex;flex-direction:column;gap:6px;background:rgba(255,255,255,.95);border-radius:24px;padding:8px 7px;box-shadow:0 3px 10px rgba(0,0,0,.15);z-index:2}
.store-product-card__actions a,.store-product-card__actions button{width:26px;height:26px;border:0;background:transparent;display:flex;align-items:center;justify-content:center;color:var(--store-text);padding:0;font-size:1rem}
.store-product-card__actions a:hover,.store-product-card__actions button:hover{color:var(--store-primary)}

.store-product-card__body{padding:.75rem .25rem;text-align:center}
.store-product-card__name{display:block;font-family:var(--store-heading);font-weight:600;font-size:.92rem;color:var(--store-text);text-decoration:none;margin-bottom:.3rem;line-height:1.35}
.store-product-card__price{font-size:.88rem}
.store-product-card__price-original{color:var(--store-muted);text-decoration:line-through;margin-right:.4rem}
.store-product-card__price-sale{color:var(--store-accent);font-weight:700}

/* ── Cart item row — wraps onto multiple lines instead of squeezing everything into one
   unbreakable flex row (name/qty-form/price/remove-button fought for space and overflowed
   off-screen on narrow phones). ─────────────────────────────────────────────────────── */
.store-cart-item{display:flex;flex-wrap:wrap;align-items:center;gap:1rem;padding:1rem}
.store-cart-item__media{width:72px;height:72px;object-fit:cover;flex-shrink:0}
.store-cart-item__info{flex:1 1 180px;min-width:0}
.store-cart-item__info .fw-700{overflow-wrap:break-word}
.store-cart-item__controls{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;margin-left:auto}
.store-cart-item__total{min-width:70px;text-align:right}
@media (max-width:480px){
  .store-cart-item{flex-direction:column;align-items:stretch;text-align:center}
  .store-cart-item__media{align-self:center;width:140px;height:140px}
  .store-cart-item__info{flex:0 0 auto}
  .store-cart-item__controls{justify-content:space-between;width:100%;margin-left:0}
}

/* ── Floating WhatsApp button ─────────────────────────────────── */
.store-whatsapp-fab{position:fixed;bottom:24px;right:24px;width:56px;height:56px;background:#25D366;color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:1.7rem;box-shadow:0 6px 20px rgba(0,0,0,.25);z-index:100;transition:transform .15s ease}
.store-whatsapp-fab:hover{transform:scale(1.08);color:#fff}

/* ── Quick-view modal (modern layout only) ───────────────────────── */
.store-quickview-overlay{position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:200;display:flex;align-items:center;justify-content:center;padding:1rem}
.store-quickview-dialog{position:relative;background:var(--store-bg);border-radius:var(--store-radius);max-width:900px;width:100%;max-height:90vh;overflow:auto;display:grid;grid-template-columns:1fr;box-shadow:0 20px 60px rgba(0,0,0,.35)}
@media (min-width:768px){.store-quickview-dialog{grid-template-columns:1fr 1fr;max-height:80vh}}
.store-quickview-close{position:absolute;top:12px;right:12px;width:34px;height:34px;border-radius:50%;border:0;background:var(--store-bg);box-shadow:0 2px 8px rgba(0,0,0,.15);font-size:1.4rem;line-height:1;color:var(--store-text);z-index:2;cursor:pointer}
.store-quickview-media{position:relative;background:var(--store-bg-alt);min-height:280px;display:flex;align-items:center;justify-content:center}
.store-quickview-media img{width:100%;height:100%;object-fit:var(--store-img-fit,cover);max-height:80vh}
.store-quickview-nav{position:absolute;top:50%;transform:translateY(-50%);width:34px;height:34px;border-radius:50%;border:0;background:rgba(255,255,255,.9);box-shadow:0 2px 8px rgba(0,0,0,.15);font-size:1.3rem;line-height:1;cursor:pointer;color:var(--store-text)}
.store-quickview-nav--prev{left:12px}
.store-quickview-nav--next{right:12px}
.store-quickview-info{padding:1.75rem}
.store-quickview-info h3{font-family:var(--store-heading);font-weight:700;font-size:1.4rem;margin:0 0 .5rem}
.store-quickview-price{font-size:1.15rem;margin-bottom:1rem}
.store-quickview-price-original{color:var(--store-muted);text-decoration:line-through;margin-right:.5rem}
.store-quickview-price-sale{color:var(--store-accent);font-weight:700}
.store-quickview-variants{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1rem}
.store-quickview-variant-btn{border:1px solid var(--store-border);background:var(--store-bg);border-radius:999px;padding:.4rem 1rem;font-size:.85rem;font-weight:600;color:var(--store-text);cursor:pointer}
.store-quickview-variant-btn.is-selected{background:var(--store-primary);border-color:var(--store-primary);color:#fff}
.store-quickview-variant-btn.is-outofstock{opacity:.45;text-decoration:line-through}
.store-quickview-stock-msg{font-size:.8rem;color:var(--store-accent);font-weight:600;min-height:1.1em;margin-bottom:.5rem}
.store-quickview-qty{display:inline-flex;align-items:center;border:1px solid var(--store-border);border-radius:999px;overflow:hidden;margin-bottom:1rem}
.store-quickview-qty button{width:34px;height:34px;border:0;background:var(--store-bg);font-size:1.1rem;cursor:pointer;color:var(--store-text)}
.store-quickview-qty input{width:44px;text-align:center;border:0;border-left:1px solid var(--store-border);border-right:1px solid var(--store-border);height:34px;font-size:.9rem}
.store-quickview-addbtn,.store-quickview-buybtn{display:block;width:100%;border-radius:999px;border:0;padding:.75rem;font-weight:700;font-size:.9rem;letter-spacing:.02em;text-transform:uppercase;cursor:pointer;margin-bottom:.6rem}
.store-quickview-addbtn{background:var(--store-bg);color:var(--store-primary);border:1.5px solid var(--store-primary)}
.store-quickview-addbtn:hover{background:var(--store-primary-light)}
.store-quickview-buybtn{background:var(--store-primary);color:#fff}
.store-quickview-buybtn:hover{background:var(--store-primary-dark)}
.store-quickview-addbtn:disabled,.store-quickview-buybtn:disabled{opacity:.5;cursor:not-allowed}
.store-quickview-share{display:flex;gap:.75rem;margin-top:1rem}
.store-quickview-share a{width:34px;height:34px;border-radius:50%;border:1px solid var(--store-border);display:flex;align-items:center;justify-content:center;color:var(--store-text)}
.store-quickview-share a:hover{background:var(--store-bg-alt)}

/* ── Fixed bottom mobile tab bar (modern layout only) ────────────── */
.store-modern-layout .store-mobile-tabbar{position:fixed;left:0;right:0;bottom:0;display:flex;background:var(--store-bg);border-top:1px solid var(--store-border);box-shadow:0 -4px 16px rgba(0,0,0,.06);z-index:90}
.store-modern-layout .store-mobile-tab{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;padding:.55rem 0 .5rem;color:var(--store-text);text-decoration:none;font-size:.7rem;font-weight:600}
.store-modern-layout .store-mobile-tab i{font-size:1.25rem}
.store-modern-layout .store-mobile-tab__icon-wrap{position:relative}
.store-modern-layout .store-mobile-tab__badge{position:absolute;top:-6px;right:-10px;background:var(--store-accent);color:#fff;font-size:.6rem;font-weight:700;border-radius:50%;width:16px;height:16px;display:flex;align-items:center;justify-content:center}
.store-modern-layout .store-whatsapp-fab{bottom:80px}
@media (min-width:768px){.store-modern-layout .store-whatsapp-fab{bottom:24px}}
.store-modern-layout .store-wrap{padding-bottom:5.5rem}
@media (min-width:768px){.store-modern-layout .store-wrap{padding-bottom:4rem}}

/* ── Footer ───────────────────────────────────────────────────── */
.store-footer{background:var(--store-primary-dark);color:rgba(255,255,255,.75);padding:2.5rem var(--store-gutter-x);margin-top:2rem}
.store-footer-inner{max-width:var(--store-page-width,1240px);margin:0 auto;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem}
.store-footer a{color:rgba(255,255,255,.75)}
.store-footer a:hover{color:#fff}
