/* ZEKARA — Phase 1 + Phase 2 design preview. Original brand, data and photos stay unchanged. */
.zk-preview-ribbon{
  background:#f0eee9;color:#26221f;text-align:center;letter-spacing:.04em;
  font:600 11px/1.4 Arial,sans-serif;padding:10px 14px;border-bottom:1px solid #dfdad4
}
#zkPreviewNotice{
  position:fixed;left:50%;bottom:100px;transform:translate(-50%,14px);
  z-index:10010;background:#171513;color:#fff;padding:13px 18px;border-radius:9px;
  box-shadow:0 12px 40px #0004;font:600 12px/1.4 Arial,sans-serif;
  width:max-content;max-width:calc(100vw - 30px);text-align:center;
  opacity:0;pointer-events:none;transition:opacity .2s,transform .2s
}
#zkPreviewNotice.show{opacity:1;transform:translate(-50%,0)}
/* Phase 1 — gentle refinement of the existing ZEKARA look */
.home-section-title h2{letter-spacing:-.02em}
.home-section-title a{display:inline-flex;align-items:center;min-height:32px}
.home-products,.home-categories{scroll-margin-top:110px}
.product-card{min-width:0}
.product-media{border-radius:7px;overflow:hidden;background:#f5f0eb}
.product-media img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .3s ease}
@media(hover:hover){.product-card:hover .product-media img{transform:scale(1.035)}}
.product-card .product-media:focus-visible,.home-cat-card:focus-visible{
  outline:3px solid #b89a67;outline-offset:3px
}
.product-card .wish{border-radius:50%;box-shadow:0 3px 9px #0001}
.product-card .badge{border-radius:3px;padding:5px 8px}
.product-card-title{display:block}
.product-card-title b{line-height:1.42!important;display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-height:2.7em}
.product-info .price span{font-variant-numeric:tabular-nums}
.home-rail-wrap{isolation:isolate}
.home-product-rail{padding-bottom:8px!important}
.home-cat-card{transition:box-shadow .2s ease}
@media(hover:hover){.home-cat-card:hover{box-shadow:0 9px 28px #0001}}
/* Phase 2 — photos and options */
.locked-pdp .gallery-main{
  position:relative;overflow:hidden;border-radius:7px;background:#f7f3ef
}
.locked-pdp .gallery-main img#mainImg{display:block;object-fit:contain}
.zk-gallery-tip{
  display:block;position:absolute;left:50%;bottom:13px;transform:translateX(-50%);
  padding:7px 12px;background:#171513cc;color:#fff;border-radius:100px;
  font-size:10px;letter-spacing:.01em;white-space:nowrap;pointer-events:none
}
.pdp-thumb{border-radius:5px;overflow:hidden;cursor:pointer;transition:border-color .15s}
.pdp-thumb.active{outline:1px solid #171513;outline-offset:1px}
.pdp-mobile-dots i.active{background:#171513!important}
.locked-pdp .option{transition:background .15s,border-color .15s}
.locked-pdp .option.zk-option-out:not(.active){opacity:.45;text-decoration:line-through;text-decoration-thickness:1px}
#variantStock{min-height:22px}
#variantStock .text-link{margin-left:8px}
.pdp-page button:disabled{opacity:.48;cursor:not-allowed}
.locked-pdp .pdp-price b{font-variant-numeric:tabular-nums}
.pdp-page .pdp-option-head{display:flex;align-items:center;gap:7px}
.pdp-page .pdp-size-guide{margin-left:auto}
/* Accessible full-size gallery — closed unless user explicitly taps product photo */
.zk-zoom-dialog{
  box-sizing:border-box;border:0;border-radius:12px;
  padding:0;background:#fff;color:#171513;overflow:hidden;
  max-width:min(94vw,1120px);width:min(94vw,1120px);
  height:min(92dvh,900px);max-height:92dvh;
  box-shadow:0 30px 90px #0007
}
.zk-zoom-dialog::backdrop{background:rgba(0,0,0,.86)}
.zk-zoom-top{
  height:58px;display:flex;align-items:center;justify-content:space-between;
  padding:0 20px;border-bottom:1px solid #eee8e2;gap:16px
}
.zk-zoom-name{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.zk-zoom-close{
  border:0;background:#f5f1ed;border-radius:100px;padding:10px 14px;cursor:pointer;
  color:#171513;font-size:12px;white-space:nowrap
}
.zk-zoom-frame{
  display:grid;grid-template-columns:52px minmax(0,1fr) 52px;
  align-items:center;height:calc(100% - 112px);padding:10px;gap:4px
}
.zk-zoom-stage{
  width:100%;height:100%;min-height:0;overflow:hidden;
  display:grid;place-items:center;background:#f9f7f5;touch-action:none
}
.zk-zoom-stage img{
  display:block;width:100%;height:100%;max-height:100%;object-fit:contain;
  transform-origin:center center;transition:transform .1s ease;user-select:none
}
.zk-zoom-prev,.zk-zoom-next{
  background:#fff;border:1px solid #e8e3dd;border-radius:50%;
  width:44px;height:44px;cursor:pointer;font-size:29px;line-height:1
}
.zk-zoom-footer{
  height:54px;display:flex;align-items:center;justify-content:center;gap:18px;
  color:#777;font-size:12px;border-top:1px solid #eee8e2
}
.zk-zoom-count{color:#171513;font-weight:700}
@media(max-width:760px){
  /* Keep actual brand colors, navigation and banner graphics. */
  .site-header{padding-left:10px!important;padding-right:10px!important}
  .header-actions #searchBtn{display:grid!important;width:38px!important;min-width:38px!important}
  .header-actions #wishBtn{display:none!important}
  .header-actions{gap:0!important}
  .home-categories{display:block!important;padding:26px 12px 18px!important}
  .home-category-grid{
    display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
    overflow:visible!important;gap:9px!important;padding:0!important
  }
  .home-cat-card{
    min-width:0!important;flex:none!important;border-radius:10px!important;
    box-shadow:none!important;border:1px solid #eee8e2!important;background:#fff!important
  }
  .home-cat-card img{
    display:block;width:100%!important;height:auto!important;
    aspect-ratio:4/5!important;object-fit:cover!important;border-radius:9px 9px 0 0!important
  }
  .home-cat-card>div{min-height:45px!important;padding:8px 4px!important}
  .home-cat-card b{font-size:10px!important;letter-spacing:.025em!important}
  .home-section-title h2{font-size:24px!important}
  .home-products{padding:24px 12px 20px!important}
  .home-product-rail{gap:10px!important;scroll-padding-left:2px}
  .home-product-rail>.product-card{
    flex:0 0 calc((100vw - 34px)/2)!important;
    width:calc((100vw - 34px)/2)!important;
    max-width:calc((100vw - 34px)/2)!important
  }
  .product-info{padding:10px 2px 0!important}
  .product-descriptor{font-size:10px!important}
  .product-card-title b{font-size:13px!important;min-height:2.8em}
  .product-info .price span{font-size:15px!important}
  .product-info .price del{font-size:12px!important}
  .product-media{border-radius:5px}
  /* Gallery first, then dots and thumbnails. */
  .pdp-page{padding-left:12px!important;padding-right:12px!important}
  .pdp-gallery-wrap{
    display:flex!important;flex-direction:column!important;
    gap:7px!important
  }
  .locked-pdp .gallery-main{order:0!important;margin:0 -12px!important;aspect-ratio:4/4.5}
  .pdp-mobile-dots{order:1!important}
  .pdp-thumbs{order:2!important;display:flex;gap:7px;overflow-x:auto;scroll-snap-type:x mandatory;padding:4px 0 9px!important}
  .pdp-thumb{min-width:64px!important;width:64px!important;height:79px!important;scroll-snap-align:start}
  .zk-gallery-tip{bottom:11px;padding:7px 10px;font-size:9px}
  .locked-pdp .product-detail{padding-top:14px!important}
  .locked-pdp .product-detail h1{font-size:24px!important;line-height:1.32}
  .locked-pdp .option{min-height:44px;font-size:12px}
  /* Existing CSS intentionally hides the sticky CTA; restore without covering bottom navigation. */
  .pdp-page .product-sticky-cta{
    display:grid!important;position:fixed!important;left:0;right:0;
    bottom:66px!important;z-index:56;background:#fff;border-top:1px solid #e8e2da;
    padding:8px 12px!important;grid-template-columns:1fr 1fr!important;
    gap:9px!important;box-shadow:0 -7px 20px #00000010
  }
  .pdp-page .product-sticky-cta button{min-height:48px!important;font-size:11px!important;letter-spacing:.04em}
  .pdp-page .product-sticky-cta .primary{background:#171513;color:#fff}
  .pdp-page .product-sticky-cta .secondary{background:#fff;color:#171513;border-color:#171513}
  .pdp-page .locked-pdp .buy-stack{display:none!important}
  body:has(.pdp-page){padding-bottom:168px!important}
  body:has(.pdp-page) .zk-product-float{bottom:164px!important}
  .zk-zoom-dialog{width:100vw;max-width:100vw;height:94dvh;max-height:94dvh;border-radius:14px 14px 0 0;margin:auto auto 0}
  .zk-zoom-top{padding:0 14px;height:54px}
  .zk-zoom-frame{grid-template-columns:32px minmax(0,1fr) 32px;padding:3px;gap:0;height:calc(100% - 110px)}
  .zk-zoom-prev,.zk-zoom-next{width:30px;height:36px;border-radius:4px;font-size:24px}
  .zk-zoom-footer{gap:10px;font-size:10px}
}
@media(prefers-reduced-motion:reduce){
  .product-media img,.home-cat-card,.zk-zoom-stage img{transition:none!important}
}


/* ZEKARA Phase 3 + 4 / original design retained. Preview-only CSS. */
.zk-search-caption{font-size:11px;color:#79736c;letter-spacing:.07em;text-transform:uppercase;padding:15px 3px 9px;font-weight:700}
.zk-search-message{margin:0;padding:24px 8px;color:#6f6963;font-size:13px;line-height:1.6}
.search-result.zk-search-item{grid-template-columns:58px minmax(0,1fr);gap:13px;align-items:center;padding:12px 3px;min-height:94px;border-bottom:1px solid #ebe7e2}
.search-result.zk-search-item img{width:58px;height:74px;object-fit:cover;background:#f4f0eb;border-radius:4px}
.search-result.zk-search-item span{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:2px}
.search-result.zk-search-item b{font-weight:650;font-size:12px;line-height:1.4;color:#24211f;white-space:normal}
.search-result.zk-search-item small{color:#908b85;font-size:10px}
.search-result.zk-search-item strong{color:#161515;font-size:13px;font-weight:750}
.search-result.zk-search-item:hover,.search-result.zk-search-item:focus-visible{background:#f8f5f1;outline:2px solid #e5ded4}
.zk-filter-summary{display:flex;flex-wrap:wrap;align-items:center;gap:7px 9px;padding:8px 0 15px;min-height:39px}
.zk-filter-caption{font-size:11px;color:#817b74;margin-right:4px}
.zk-active-chip{display:inline-flex;align-items:center;gap:9px;border:1px solid #dbd5ce;background:#fbf8f5;color:#1e1a17;padding:7px 10px;border-radius:100px;font-size:11px;cursor:pointer}
.zk-active-chip:hover{border-color:#555}
.zk-filter-clear{background:none;border:0;color:#171513;font-size:11px;padding:7px 4px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.collection-product-grid .empty{grid-column:1/-1;padding:25px 16px;min-height:160px}
.collection-topbar select{min-height:38px;cursor:pointer}
#zkSortPanel{position:fixed;z-index:90;left:50%;bottom:15px;transform:translateX(-50%);width:min(460px,calc(100vw - 24px));background:#fff;border-radius:15px;box-shadow:0 15px 65px #0003;padding:10px 18px 16px}
.zk-sort-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #eae5df;padding:10px 0 13px;font-size:16px}
.zk-sort-head button{width:37px;height:37px;background:#f6f2ed;border-radius:50%;border:0;font-size:23px;cursor:pointer}
.zk-sort-option{width:100%;display:flex;justify-content:space-between;align-items:center;min-height:49px;background:#fff;border:0;border-bottom:1px solid #f0ece8;text-align:left;font-size:13px;color:#312d29;padding:8px 5px;cursor:pointer}
.zk-sort-option.active{font-weight:750;color:#111}
.zk-sort-option span{font-size:15px}
.zk-preview-checkout-hint{max-width:1050px;margin:22px auto 0;background:#f5f1ea;border:1px solid #e6ddcd;border-radius:8px;color:#3d342a;padding:13px 18px;font-size:12px;line-height:1.6}
.cart-item .cart-qty button{min-width:32px;min-height:32px}
.cart-item .cart-remove{min-width:34px;min-height:34px}
.cart-items-wrap img{background:#f7f2ec;object-fit:cover}
.checkout-field input:focus-visible,.checkout-field textarea:focus-visible,.cart-note textarea:focus-visible{outline:2px solid #9f8566;outline-offset:2px}
.checkout-section{box-shadow:none!important}
.checkout-form .checkout-submit{background:#171513!important;color:#fff!important;max-width:100%}
.product-media,.home-cat-card img,.editorial-product img{background:#f5f1ec}
.product-media img:not([src]),.home-cat-card img:not([src]){opacity:0}
.product-media img,.home-cat-card img{color:transparent}
@media(max-width:760px){
  .zk-preview-checkout-hint{margin:12px 12px 0;padding:12px;font-size:11px}
  #zkSortPanel{left:0;bottom:0;transform:none;width:100%;border-radius:18px 18px 0 0;padding-bottom:max(16px,env(safe-area-inset-bottom))}
  .search-result.zk-search-item{min-height:86px}
  .search-result.zk-search-item b{font-size:12px}
  .zk-filter-summary{padding:8px 0 13px;gap:6px}
  .zk-active-chip{font-size:10px;min-height:33px}
  .collection-mobile-tools button{min-height:44px;touch-action:manipulation}
  .collection-title h1,.collection-banner h1{line-height:1.2}
  .collection-product-grid{gap:20px 9px}
  .collection-product-grid .product-card-title b{font-size:13px!important}
  .collection-product-grid .product-info .price span{font-size:14px!important}
  .cart-drawer .drawer-title{position:sticky;top:0;background:#fff;z-index:2}
  .cart-item .cart-item-main b{font-size:12px;line-height:1.45}
  .checkout-summary .checkout-item{gap:10px}
  .checkout-field input,.checkout-field textarea{font-size:16px}
  .checkout-form .checkout-submit{width:100%;min-height:52px}
}
@media(max-width:360px){
  .home-product-rail>.product-card{flex-basis:calc((100vw - 32px)/2)!important}
  .search-result.zk-search-item{grid-template-columns:52px minmax(0,1fr);gap:9px}
}
@media(prefers-reduced-motion:reduce){
  #zkSortPanel,.search-result.zk-search-item,.zk-active-chip{animation:none!important;transition:none!important}
}
/* Avoid hidden overlay swallowing the next tap after drawers close. */
.overlay:not(.show){pointer-events:none!important}
.overlay.show{pointer-events:auto}
/* Focused checkout: prevent the bottom navigation from covering form actions. */
body:has(.checkout-shell) #bottomNav{display:none!important}
body:has(.checkout-shell) .site-header{display:none!important}
body:has(.checkout-shell){padding-bottom:30px!important}
body:has(.checkout-shell) .checkout-submit{position:static!important;bottom:auto!important;z-index:auto!important}
body:has(.checkout-shell) .checkout-brand-row{position:sticky;top:0;z-index:8;background:#fff}
/* Phase 4: reserve the first viewport until async catalog renders, avoiding footer CLS. */
#app:empty{min-height:calc(100vh - 150px);background:#f8f6f3}
@media(max-width:760px){#app:empty{min-height:calc(100svh - 132px)}}

/* Production checkout polish — works with existing ZEKARA theme */
.zk-instructions{margin-top:16px}
.zk-instructions small,.zk-field-hint{display:block;color:#79736e;font-size:11px;line-height:1.4}
.checkout-payments .payment-card:focus-within{outline:2px solid #b69a7b;outline-offset:2px}
.checkout-payments .payment-card{cursor:pointer}
.checkout-section h2{letter-spacing:-.02em}
.checkout-brand-row{border-bottom:1px solid #e8e4df}
.zk-checkout-feedback{padding:12px 14px;background:#fff0ef;border:1px solid #d6aaa5;color:#93372f;border-radius:8px;font-size:12px;line-height:1.55;margin:10px 0}
.zk-checkout-feedback[hidden],#checkoutDiscountRow[hidden]{display:none!important}
#checkoutDiscountValue{color:#357b51}
.checkout-form .checkout-submit{letter-spacing:.05em!important}
body:has(.checkout-shell) .zk-product-float{display:none!important}
@media(max-width:760px){
 .checkout-shell .checkout-section{border-radius:10px!important;box-shadow:none!important}
 .checkout-shell .checkout-section-title h2{font-size:17px!important}
 .checkout-shell .payment-card{min-height:64px}
 .checkout-shell .checkout-brand-row{height:58px}
 .checkout-shell .checkout-safe{padding-bottom:15px}
 .checkout-shell .checkout-items{max-height:300px;overflow-y:auto}
 .checkout-shell .checkout-submit{min-height:54px!important}
}

.zk-wa-consent{display:flex;align-items:start;gap:10px;font-size:12px;line-height:1.55;color:#4c4843;padding:13px 15px;margin:16px 0;background:#faf8f5;border:1px solid #e9e1d9;border-radius:7px}.zk-wa-consent input{flex-shrink:0;width:18px;height:18px;margin-top:1px;accent-color:#141414}.zk-wa-consent span{max-width:600px}
