/* Varashree — unified product card component. Enqueued via functions.php (cacheable). */
:root{
  --obsidian:#050505;--obsidian-2:#0b0a08;--panel:#0e0c08;--gold:#d4af37;--gold-deep:#a9842a;
  --champagne:#e8d7a5;--ivory:#f5f0e6;--muted:#b9a36b;--line:rgba(212,175,55,.22);
  --glass:rgba(20,17,11,.55);--ease:cubic-bezier(.22,.61,.36,1);
}
.prod-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:36px}
.lot{position:relative;transition:transform .3s var(--ease);display:flex;flex-direction:column;height:100%}
.lot:hover{transform:translateY(-4px)}
.lot-link{text-decoration:none;color:inherit;display:block}
.frame{position:relative;aspect-ratio:4/5;overflow:hidden;background:var(--panel);border-radius:10px}
.art{position:relative;width:100%;height:100%;overflow:hidden;transition:transform .5s var(--ease)}
.lot:hover .art{transform:scale(1.05)}
.art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:opacity .45s ease}
.art img.product-image-back{opacity:0}
.lot:hover .art img.product-image-front{opacity:0}
.lot:hover .art img.product-image-back{opacity:1}
@media (max-width:1023px){
  .lot.lot-show-back .art img.product-image-front{opacity:0}
  .lot.lot-show-back .art img.product-image-back{opacity:1}
}
.shine{position:absolute;top:0;left:-100%;width:100%;height:100%;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.15),transparent);animation:shine 3.5s infinite}
@keyframes shine{to{left:100%}}

/* ═══════════════════════════════════════════════════════════════════════
   VS BADGE — luxury silk-ribbon product status banners
   Replaces the old flat .badge/.badge-sale/.badge-new/.badge-oos system.
   Deliberately kept as a plain inset rectangle (not rotated/diagonal) —
   the corner-badge comment this replaced explicitly noted a rotated
   ribbon with negative offset was a past overflow bug; the "3D silk"
   read here comes entirely from gradient/light/texture layering, never
   from geometry that could push the badge outside its clipped .frame.
   Two layered motions, matching the brief: a constant slow background
   drift (gentle, always-on, like fabric catching ambient light) and a
   separate periodic bright sweep (occasional, more pronounced). Both
   drop out under prefers-reduced-motion, leaving the static gradient/
   texture/depth intact.
   ═══════════════════════════════════════════════════════════════════════ */
.vs-badge{
  position:absolute;top:10px;left:10px;z-index:3;
  padding:6px 13px;
  border-radius:5px;
  max-width:calc(100% - 20px);
  box-sizing:border-box;
  background-size:220% 220%;
  box-shadow:
    0 3px 10px rgba(0,0,0,.5),
    0 1px 2px rgba(0,0,0,.4),
    inset 0 1px 0 rgba(255,255,255,.32),
    inset 0 -2px 3px rgba(0,0,0,.4);
  overflow:hidden;
  isolation:isolate;
}
@media (prefers-reduced-motion:no-preference){
  .vs-badge{animation:vsBadgeDrift 9s ease-in-out infinite}
}
@keyframes vsBadgeDrift{
  0%,100%{background-position:0% 30%}
  50%{background-position:100% 70%}
}
/* Woven-fabric grain — a very fine diagonal repeat at low opacity, purely
   textural, not part of the animated layers. */
.vs-badge::before{
  content:'';position:absolute;inset:0;
  background:repeating-linear-gradient(115deg,rgba(255,255,255,.07) 0 1px,transparent 1px 3px);
  mix-blend-mode:overlay;pointer-events:none;
}
/* Bright sheen sweep — one occasional pass, not a constant loop. */
.vs-badge::after{
  content:'';position:absolute;top:0;left:-60%;width:36%;height:100%;
  background:linear-gradient(115deg,transparent 0%,rgba(255,255,255,.55) 50%,transparent 100%);
  transform:skewX(-20deg);pointer-events:none;
}
@media (prefers-reduced-motion:no-preference){
  .vs-badge::after{animation:vsBadgeSheen 5.2s ease-in-out infinite}
}
@keyframes vsBadgeSheen{
  0%{left:-60%}
  30%{left:130%}
  100%{left:130%}
}
.vs-badge-text{
  position:relative;z-index:1;
  display:block;
  font-size:.64rem;font-weight:800;letter-spacing:.09em;text-transform:uppercase;
  line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}

/* ---- per-status colorways — one shared silk treatment, distinct tones ---- */
.vs-badge--sold-out{
  background-image:linear-gradient(120deg,#2c2924 0%,#171410 45%,#050403 100%);
  border-top:1px solid rgba(212,175,55,.28);border-bottom:1px solid rgba(0,0,0,.5);
}
.vs-badge--sold-out .vs-badge-text{color:var(--gold);text-shadow:0 0 6px rgba(212,175,55,.25)}

.vs-badge--sale{
  background-image:linear-gradient(120deg,#f5da8a 0%,var(--gold) 45%,var(--gold-deep) 100%);
  border-top:1px solid rgba(255,255,255,.55);border-bottom:1px solid rgba(0,0,0,.35);
}
.vs-badge--sale .vs-badge-text{color:#1a1408}

.vs-badge--new{
  background-image:linear-gradient(135deg,#C9A84C 0%,#e8d7a5 40%,#C9A84C 70%,#a9842a 100%);
  border:1px solid rgba(255,241,199,.6);
  box-shadow:
    0 3px 12px rgba(201,168,76,.45),
    0 0 20px rgba(201,168,76,.15),
    inset 0 1px 0 rgba(255,255,255,.5),
    inset 0 -1px 2px rgba(0,0,0,.2);
}
.vs-badge--new .vs-badge-text{color:#12100b;font-weight:900;text-shadow:0 1px 0 rgba(255,241,199,.4)}

.vs-badge--featured{
  background-image:linear-gradient(120deg,#c9a24c 0%,#8f6f2a 55%,#5e4718 100%);
  border-top:1px solid rgba(255,241,199,.5);border-bottom:1px solid rgba(0,0,0,.45);
}
.vs-badge--featured .vs-badge-text{color:#fbf3de}

.vs-badge--bestseller{
  background-image:linear-gradient(120deg,#e8d7a5 0%,#b8933a 50%,#6b4e17 100%);
  border-top:1px solid rgba(255,255,255,.45);border-bottom:1px solid rgba(0,0,0,.45);
}
.vs-badge--bestseller .vs-badge-text{color:#241a08}

.vs-badge--limited{
  background-image:linear-gradient(120deg,#3a2f18 0%,#1c150a 55%,#0a0700 100%);
  border-top:1px solid rgba(212,175,55,.45);border-bottom:1px solid rgba(0,0,0,.5);
}
.vs-badge--limited .vs-badge-text{color:var(--gold)}

@media (max-width:560px){
  .vs-badge{top:8px;left:8px;padding:5px 10px;max-width:calc(100% - 16px)}
  .vs-badge-text{font-size:.58rem;letter-spacing:.06em}
}
/* Lower-power phones: keep the occasional sheen (cheap, brief) but drop
   the constant background-position drift — the "reduce animation
   intensity" the brief asks for on mobile. */
@media (max-width:480px){
  .vs-badge{animation:none;background-position:20% 40%}
}

.lot-wishlist{position:absolute!important;top:12px;right:12px;width:36px;height:36px;border-radius:50%;
  background:rgba(5,5,5,.55);border:1px solid var(--line);color:var(--ivory);display:flex;align-items:center;
  justify-content:center;cursor:pointer;z-index:2;transition:background .25s,color .25s,border-color .25s,transform .25s cubic-bezier(.22,.61,.36,1);padding:0!important}
.lot-wishlist svg{width:17px;height:17px}
.lot-wishlist:hover,.lot-wishlist.active{color:var(--gold);border-color:var(--gold);transform:scale(1.1)}
.lot-wishlist.active{animation:lotWishlistPop .4s cubic-bezier(.22,.61,.36,1)}
@keyframes lotWishlistPop{
  0%{transform:scale(1)}
  40%{transform:scale(1.28)}
  100%{transform:scale(1.1)}
}
@media (prefers-reduced-motion:reduce){
  .lot-wishlist{transition:background .2s,color .2s}
  .lot-wishlist:hover,.lot-wishlist.active{transform:none}
  .lot-wishlist.active{animation:none}
}
.lot-remove{position:absolute!important;top:12px;right:12px;width:36px;height:36px;border-radius:50%;
  background:rgba(5,5,5,.55);border:1px solid var(--line);color:var(--ivory);display:flex;align-items:center;
  justify-content:center;cursor:pointer;z-index:2;font-size:1.05rem;line-height:1;transition:background .2s,color .2s;padding:0!important}
.lot-remove:hover{color:#e07b7b;border-color:#e07b7b}
.meta{padding:16px 0 0;display:flex;flex-direction:column;flex:1 1 auto}
.nm{font-size:1.02rem;font-weight:500;color:var(--ivory);margin:0 0 6px}

/* Price box — WooCommerce's default markup (<del>/<ins>) is unstyled by
   itself and renders both prices the same size with no hierarchy. Give the
   sale price clear priority and shrink/mute the struck-through price. */
.pr{font-size:1rem;margin:0;display:flex;align-items:baseline;flex-wrap:wrap;gap:8px 10px}
.pr .woocommerce-Price-amount{font-family:inherit}
.pr ins{order:1;text-decoration:none;font-size:1.05rem;font-weight:700;color:var(--gold)}
.pr del{order:2;font-size:.8rem;font-weight:400;color:var(--muted);opacity:.85}
.pr del .woocommerce-Price-amount{text-decoration:line-through}
.pr > .woocommerce-Price-amount{font-weight:700;color:var(--gold)}
.pr .quote-price-label{font-size:.88rem;font-style:italic;color:var(--champagne,#e8d7a5);
  font-family:'Cormorant Garamond',serif;letter-spacing:.02em}
.pr .pr-off{order:3;font-size:.68rem;font-weight:700;color:#1f7a5c;background:rgba(31,122,92,.14);
  border:1px solid rgba(31,122,92,.35);border-radius:4px;padding:2px 6px;letter-spacing:.02em}

.lot-add-to-cart{margin-top:auto;width:100%;background:transparent;border:1px solid var(--line);color:var(--ivory);
  padding:10px;border-radius:30px;font-size:.75rem;letter-spacing:.08em;text-transform:uppercase;cursor:pointer;
  transition:background .2s,color .2s,border-color .2s}
.lot-add-to-cart:hover{background:var(--gold);color:var(--obsidian);border-color:var(--gold)}
.lot-add-to-cart.added{background:#7fbf7f;color:#0a1a0a;border-color:#7fbf7f}
.lot-quote-btn{background:#25D366!important;color:#fff!important;border-color:#25D366!important;
  display:inline-flex!important;gap:8px;text-decoration:none}
.lot-quote-btn:hover{background:#1ebe5a!important;border-color:#1ebe5a!important;color:#fff!important}
@media (max-width:560px){.prod-grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:20px}}

/* Minimum 44x44px pointer targets (WCAG 2.5.5) */
.lot-wishlist,.lot-remove{min-width:44px;min-height:44px;width:44px;height:44px}
.lot-add-to-cart{min-height:44px}


/* ── Sold-out card: WhatsApp commission enquiry ──────────────────────
   Lives here (not in the shop-grid stylesheet) because product cards also
   render on the single-product "You May Also Like" row, wishlist and
   search — pages that don't load the shop grid CSS, which is why this
   previously fell back to an unstyled blue link. */
.lot-commission{
  display:flex!important;align-items:center;justify-content:center;gap:7px;
  margin-top:8px;padding:9px 10px;box-sizing:border-box;width:100%;
  font-size:.66rem;letter-spacing:.08em;text-transform:uppercase;font-weight:600;
  color:#0b3d24!important;text-decoration:none!important;
  background:linear-gradient(135deg,#4ee08a 0%,#25D366 55%,#128C7E 100%);
  border:none;border-radius:50px;
  transition:transform .3s cubic-bezier(.22,1,.36,1),box-shadow .3s ease,filter .3s ease;
}
.lot-commission svg{flex-shrink:0}
.lot-commission:hover{
  transform:translateY(-2px);filter:brightness(1.06);
  box-shadow:0 6px 18px -6px rgba(37,211,102,.55);
}
.lot-commission:active{transform:translateY(0)}
.lot-commission:focus-visible{outline:2px solid #25D366;outline-offset:3px}
@media (max-width:560px){
  .lot-commission{font-size:.58rem;padding:8px 6px;gap:5px;letter-spacing:.04em}
  .lot-commission svg{width:12px;height:12px}
}


/* ═══════════════════════════════════════════════════════════════════════
   RECOMMENDATION CARD ALIGNMENT
   Sold-out cards carry two CTAs (Notify Me + WhatsApp) while available
   cards carry one, so rows fell out of alignment. Reserving a consistent
   CTA area keeps names, prices and buttons on the same lines across a row
   without hiding or padding out any actual control.
   ═══════════════════════════════════════════════════════════════════════ */
.prod-grid{align-items:stretch}
.prod-grid .lot{display:flex;flex-direction:column;height:100%}
.prod-grid .lot .frame{aspect-ratio:4/5;flex:0 0 auto}
/* Text block takes the slack so CTAs sit on a shared baseline. */
.prod-grid .lot .nm{margin-top:12px}
.prod-grid .lot .pr{margin-bottom:auto}
.prod-grid .lot-add-to-cart{margin-top:12px}
.prod-grid .lot-commission{margin-top:8px}

/* Consistent badge and wishlist placement across every card. */
.prod-grid .vs-badge{top:10px;left:10px}
.prod-grid .lot-wishlist{top:10px;right:10px}

@media (max-width:1024px) and (min-width:601px){
  .prod-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
}
@media (max-width:600px){
  .prod-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
}
@media (max-width:360px){
  .prod-grid{gap:11px}
}
