/* Storefront custom overrides (loaded after the theme's main.css). */

/* Header logo size */
.logo img { max-height: 72px; width: auto; }

/* Lift the scroll-to-top button so it doesn't cover the footer credit line */
.progress-wrap { bottom: 90px !important; }
@media (max-width: 575px) { .progress-wrap { bottom: 110px !important; } }

/* Keep shop product images inside their card (real photos vs theme's small PNGs) */
.list-grid-wrapper .product-card__thumb { min-height: 220px; }
.list-grid-wrapper .product-card__thumb img { max-height: 220px; width: auto; max-width: 100%; object-fit: contain; }

/* ── Product detail gallery (modern, hover inner-zoom) ──────────────────── */
.pd-gallery__main {
  position: relative; overflow: hidden; border: 1px solid #ececec; border-radius: 16px;
  background: #fff; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  cursor: zoom-in;
}
.pd-gallery__main img {
  width: 100%; height: 100%; object-fit: contain; transition: transform .25s ease; will-change: transform;
}
.pd-gallery__main.is-zoom img { transform: scale(2.2); transition: transform .08s ease-out; }
.pd-gallery__hint {
  position: absolute; left: 12px; bottom: 12px; background: rgba(20,20,18,.72); color: #fff;
  font-size: 11px; padding: 5px 10px; border-radius: 999px; display: inline-flex; align-items: center;
  gap: 5px; pointer-events: none; transition: opacity .2s; z-index: 2;
}
.pd-gallery__main.is-zoom .pd-gallery__hint { opacity: 0; }
.pd-gallery__thumbs { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.pd-gallery__thumb {
  width: 84px; height: 84px; border: 1.5px solid #ececec; border-radius: 12px; overflow: hidden;
  background: #fff; padding: 6px; cursor: pointer; transition: border-color .2s, transform .2s; flex: none;
}
.pd-gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }
.pd-gallery__thumb:hover { transform: translateY(-2px); }
.pd-gallery__thumb.active { border-color: var(--main-600); }
@media (max-width: 575px) { .pd-gallery__thumb { width: 64px; height: 64px; } .pd-gallery__main { cursor: default; } }

/* Smaller footer bottom-bar text */
.bottom-footer__text, .bottom-footer .text-sm, .bottom-footer span { font-size: 11px !important; }
.bottom-footer__inner { gap: 10px !important; }

/* ── Product card actions (qty + 3 buttons) ─────────────────────────────── */
.pd-actions { margin-top: 14px; width: 100%; align-self: stretch; }
.pd-qty { display: flex; width: fit-content; margin: 0 auto 10px; align-items: center;
  border: 1.5px solid #e6e6e3 !important; border-radius: 999px; overflow: hidden; background: #fff; height: 38px; }
.pd-qty button { width: 36px; height: 100%; border: 0 !important; background: #f4f5f3 !important;
  color: #1a1a18 !important; cursor: pointer; display: inline-flex !important; align-items: center;
  justify-content: center; font-size: 14px; line-height: 1; transition: background .15s, color .15s; padding: 0; }
.pd-qty button:hover { background: var(--main-600) !important; color: #fff !important; }
.pd-qty input { width: 44px; height: 100%; text-align: center; border: 0 !important; outline: none;
  font-weight: 700; font-size: 14px; background: #fff !important; color: #1a1a18; -moz-appearance: textfield; }
.pd-qty input::-webkit-outer-spin-button, .pd-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pd-btn-row { display: flex; gap: 6px; width: 100%; flex-wrap: nowrap; }
.pd-btn { border: 0 !important; border-radius: 10px; padding: 11px 6px; font-size: 12.5px; font-weight: 600;
  cursor: pointer; display: inline-flex !important; align-items: center; justify-content: center; gap: 6px;
  transition: background .18s, color .18s, box-shadow .18s, transform .12s; white-space: nowrap; line-height: 1;
  text-decoration: none; overflow: hidden; appearance: none; -webkit-appearance: none; }
.pd-btn:active { transform: translateY(1px); }
.pd-btn--cart { flex: 5 1 0; min-width: 0; background: var(--main-50) !important; color: var(--main-600) !important; }
.pd-btn--cart:hover { background: var(--main-600) !important; color: #fff !important; }
.pd-btn--buy { flex: 5 1 0; min-width: 0; background: var(--main-600) !important; color: #fff !important; box-shadow: 0 5px 14px hsla(var(--main-h),var(--main-s),var(--main-l),.30); }
.pd-btn--buy:hover { background: var(--main-700) !important; box-shadow: 0 7px 18px hsla(var(--main-h),var(--main-s),var(--main-l),.38); }
.pd-btn--view { flex: 2 1 0; min-width: 0; background: #f4f5f3 !important; color: #1a1a18 !important; font-size: 17px; }
.pd-btn--view:hover { background: #1a1a18 !important; color: #fff !important; }

/* ── Quick view modal (modern) ──────────────────────────────────────────── */
#quickViewModal .modal-content { border: 0; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 70px rgba(20,20,18,.28); }
#quickViewModal .btn-close { background-color: rgba(255,255,255,.9); border-radius: 50%; padding: 9px; opacity: 1; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.qv { display: flex; flex-wrap: wrap; }
.qv__media { flex: 1 1 44%; min-width: 280px; padding: 24px; position: relative; background: linear-gradient(160deg, var(--main-50) 0%, #fff 70%); }
.qv__badge { position: absolute; top: 18px; left: 18px; z-index: 2; background: var(--main-600); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; box-shadow: 0 4px 12px hsla(var(--main-h),var(--main-s),var(--main-l),.35); }
.qv__main { aspect-ratio: 1/1; border-radius: 16px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: 0 6px 22px rgba(20,20,18,.06); }
.qv__main img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform .4s ease; }
.qv__main:hover img { transform: scale(1.06); }
.qv__thumbs { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.qv__thumb { width: 58px; height: 58px; border: 2px solid #ececec; border-radius: 12px; overflow: hidden; padding: 4px; background: #fff; cursor: pointer; transition: .15s; }
.qv__thumb:hover { transform: translateY(-2px); }
.qv__thumb.active { border-color: var(--main-600); }
.qv__thumb img { width: 100%; height: 100%; object-fit: contain; }
.qv__info { flex: 1 1 50%; min-width: 300px; padding: 34px 34px 30px; display: flex; flex-direction: column; }
.qv__eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 11px; font-weight: 700; color: var(--main-600); margin-bottom: 8px; }
.qv__title { font-size: 23px; font-weight: 700; line-height: 1.25; color: #1a1a18; margin: 0 0 6px; }
.qv__brand { color: #8a8a86; font-size: 14px; margin-bottom: 16px; }
.qv__brand strong { color: #1a1a18; font-weight: 600; }
.qv__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.qv__now { font-size: 28px; font-weight: 800; color: var(--main-600); line-height: 1; }
.qv__was { font-size: 16px; color: #b6b6b2; text-decoration: line-through; }
.qv__save { font-size: 12px; font-weight: 700; color: var(--main-700); background: var(--main-50); padding: 3px 10px; border-radius: 999px; }
.qv__stock { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; margin-bottom: 16px; }
.qv__dot { width: 8px; height: 8px; border-radius: 50%; }
.qv__stock.is-in { color: #1a8a52; } .qv__stock.is-in .qv__dot { background: #1a8a52; box-shadow: 0 0 0 3px rgba(26,138,82,.18); }
.qv__stock.is-out { color: #c0392b; } .qv__stock.is-out .qv__dot { background: #c0392b; }
.qv__desc { color: #6f6f6b; font-size: 14px; line-height: 1.6; margin-bottom: 18px; }
.qv__actions { display: flex; align-items: stretch; gap: 10px; margin-bottom: 12px; }
.qv__actions .pd-qty { margin: 0; height: 50px; flex: none; }
.qv-btn { border: 0; border-radius: 12px; font-weight: 700; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: .18s; height: 50px; }
.qv-btn--cart { flex: 1; background: var(--main-600); color: #fff; box-shadow: 0 6px 18px hsla(var(--main-h),var(--main-s),var(--main-l),.32); }
.qv-btn--cart:hover { background: var(--main-700); transform: translateY(-1px); }
.qv-btn--wish { width: 50px; flex: none; background: #f4f5f3; color: #1a1a18; font-size: 19px; }
.qv-btn--wish:hover { background: #1a1a18; color: #fff; }
.qv-btn--wish.is-wished, .qv-btn--wish.is-wished i { color: #e4002b !important; background: #fdeaec; }
.qv-btn--buy { background: var(--main-50); color: var(--main-700); margin-bottom: 16px; }
.qv-btn--buy:hover { background: var(--main-600); color: #fff; }
.qv__details { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; color: #1a1a18; font-weight: 600; font-size: 14px; text-decoration: none; border-bottom: 2px solid transparent; transition: .15s; }
.qv__details:hover { color: var(--main-600); border-color: var(--main-600); }
@media (max-width: 575px) { .qv__info { padding: 22px; } .qv__media { padding: 18px; } .qv__now { font-size: 24px; } }

/* ── Pack-family size selector (cards + product detail) ─────────────────── */
.pd-sizes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pd-size { border: 1.5px solid #e6e6e3; background: #fff; color: #1a1a18; border-radius: 999px;
  padding: 5px 13px; font-size: 12px; font-weight: 600; line-height: 1.3; cursor: pointer;
  transition: .15s; text-decoration: none; display: inline-block; }
.pd-size:hover { border-color: var(--main-600); color: var(--main-600); }
.pd-size.active { background: var(--main-600); border-color: var(--main-600); color: #fff; }

/* ── Wishlist heart active state ────────────────────────────────────────── */
.wishlist-btn-two.is-wished, .wishlist-btn-two.is-wished i,
a.is-wished, a.is-wished i { color: #e4002b !important; }
.common-input { width: 100%; border: 1px solid #e6e6e3; padding: 12px 16px; border-radius: 8px; outline: none; }
.common-input:focus { border-color: var(--main-600); }

/* Make the product-card content (and the action row) span the FULL card width.
   The theme sets `.product-card{align-items:start}` which otherwise shrinks the
   content column to its text width, leaving the buttons bunched on the left. */
.product-card__content { width: 100%; }
.list-view .product-card__content { width: auto; }

/* ── Account area (dashboard, orders, support) ──────────────────────────── */
.account-card { background:#fff; border:1px solid #f0f0ee; border-radius:16px; }
.account-nav { list-style:none; margin:0; padding:0; }
.account-nav__link { display:flex; align-items:center; gap:10px; padding:11px 12px; border-radius:10px;
  color:#33312e; font-weight:500; text-decoration:none; transition:.15s; }
.account-nav__link i { font-size:18px; }
.account-nav__link:hover { background:#f4f5f3; color:var(--main-600); }
.account-nav__link.active { background:var(--main-50); color:var(--main-600); font-weight:600; }
.account-nav__link--danger { color:#e4002b; }
.account-nav__link--danger:hover { background:#fdeaec; color:#e4002b; }
.account-stat { display:flex; flex-direction:column; align-items:flex-start; gap:6px; padding:18px;
  border:1px solid #f0f0ee; border-radius:14px; text-decoration:none; transition:.15s; height:100%; }
.account-stat:hover { border-color:var(--main-600); box-shadow:0 6px 18px rgba(0,0,0,.05); }
.account-stat__icon { width:42px; height:42px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:20px; }
.account-stat__num { font-size:26px; font-weight:700; color:#1a1a18; line-height:1; }
.account-stat__label { color:#8a8a86; font-size:13px; }
.ticket-thread { display:flex; flex-direction:column; gap:14px; }
.ticket-msg { max-width:78%; padding:12px 16px; border-radius:14px; }
.ticket-msg__who { font-size:11px; color:#8a8a86; margin-bottom:4px; }
.ticket-msg--me { align-self:flex-end; background:var(--main-50); }
.ticket-msg--staff { align-self:flex-start; background:#f4f5f3; }

/* Header account dropdown */
.store-account-menu .store-account-dropdown { position:absolute; top:100%; right:0; min-width:210px;
  background:#fff; border:1px solid #eee; border-radius:12px; box-shadow:0 12px 30px rgba(0,0,0,.12);
  padding:8px; opacity:0; visibility:hidden; transform:translateY(8px); transition:.18s; z-index:200; }
.store-account-menu:hover .store-account-dropdown { opacity:1; visibility:visible; transform:translateY(4px); }
.store-account-dropdown a { display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:8px;
  color:#33312e; font-size:14px; text-decoration:none; }
.store-account-dropdown a:hover { background:#f4f5f3; color:var(--main-600); }
.store-account-dropdown__head { display:block; padding:8px 12px 4px; font-size:12px; color:#8a8a86; }
.store-account-dropdown__danger { color:#e4002b !important; }

/* ── Checkout radio cards (delivery & payment) ──────────────────────────── */
.co-radio { display:flex; align-items:flex-start; gap:12px; border:1.5px solid #ececec; border-radius:12px;
  padding:14px 16px; cursor:pointer; margin:0; transition:.15s; }
.co-radio:hover { border-color:var(--main-200); }
.co-radio input { margin-top:3px; accent-color:var(--main-600); width:18px; height:18px; flex:none; }
.co-radio:has(input:checked) { border-color:var(--main-600); background:var(--main-50); }
.co-radio__body { display:flex; flex-direction:column; gap:2px; flex:1; }
.co-radio__title { font-weight:600; color:#1a1a18; display:flex; justify-content:space-between; gap:8px; }
.co-radio__price { color:var(--main-600); font-weight:700; }
.co-radio__desc { color:#8a8a86; font-size:13px; }

/* ── Order tracking timeline ────────────────────────────────────────────── */
.order-timeline { display:flex; gap:0; }
.order-timeline__step { flex:1; text-align:center; position:relative; padding-top:34px; }
.order-timeline__step::before { content:""; position:absolute; top:14px; left:-50%; width:100%; height:3px; background:#e6e6e3; z-index:0; }
.order-timeline__step:first-child::before { display:none; }
.order-timeline__step.is-done::before { background:var(--main-600); }
.order-timeline__dot { position:absolute; top:0; left:50%; transform:translateX(-50%); width:30px; height:30px; border-radius:50%;
  background:#fff; border:3px solid #e6e6e3; display:flex; align-items:center; justify-content:center; color:#fff; font-size:13px; z-index:1; }
.order-timeline__step.is-done .order-timeline__dot { background:var(--main-600); border-color:var(--main-600); }
.order-timeline__step.is-current .order-timeline__dot { box-shadow:0 0 0 4px hsla(var(--main-h),var(--main-s),var(--main-l),.18); }
.order-timeline__label { display:block; font-size:12px; color:#8a8a86; }
.order-timeline__step.is-done .order-timeline__label { color:#1a1a18; font-weight:600; }
@media (max-width:575px){ .order-timeline__label{ font-size:10px; } }


/* ── Storefront colour schemes (recolour the whole theme via 3 HSL vars) ──── */
:root[data-scheme="emerald"] { --main-h: 152; --main-s: 68%; --main-l: 32%; }
:root[data-scheme="ocean"]   { --main-h: 196; --main-s: 69%; --main-l: 36%; }
:root[data-scheme="indigo"]  { --main-h: 243; --main-s: 50%; --main-l: 48%; }
:root[data-scheme="amber"]   { --main-h: 22;  --main-s: 82%; --main-l: 45%; }
:root[data-scheme="orange"]  { --main-h: 26;  --main-s: 92%; --main-l: 47%; }
:root[data-scheme="yellow"]  { --main-h: 45;  --main-s: 90%; --main-l: 44%; }
:root[data-scheme="apple"]   { --main-h: 82;  --main-s: 62%; --main-l: 38%; }
:root[data-scheme="lightgreen"] { --main-h: 110; --main-s: 52%; --main-l: 40%; }
:root[data-scheme="sky"]        { --main-h: 205; --main-s: 78%; --main-l: 47%; }

/* ── Modern header navigation (clear active + animated underline) ────────── */
.header-menu .nav-menu__link { color: #2b2b29 !important; font-weight: 600; position: relative; transition: color .2s ease; }
.header-menu .nav-menu__link::after {
  content: ""; position: absolute; left: 0; bottom: 12px; width: 100%; height: 2px; border-radius: 2px;
  background: var(--main-600); transform: scaleX(0); transform-origin: left;
  transition: transform .28s cubic-bezier(.4, 0, .2, 1);
}
.header-menu .nav-menu__item:hover > .nav-menu__link,
.header-menu .nav-menu__item.activePage > .nav-menu__link { color: var(--main-600) !important; }
.header-menu .nav-menu__item:hover > .nav-menu__link::after,
.header-menu .nav-menu__item.activePage > .nav-menu__link::after { transform: scaleX(1); }
.header-menu .nav-menu__item.activePage > .nav-menu__link { font-weight: 700; }
/* Mobile menu active pill */
.nav-menu--mobile .nav-menu__item.activePage > .nav-menu__link { color: var(--main-600) !important; font-weight: 700; }

/* Keep the sticky header above page content so pagination doesn't paint over it */
.header.fixed-header, .header-sticky-style .header.fixed-header { z-index: 999 !important; }
.pagination .page-link, .pagination .page-link:hover, .pagination .page-link:focus,
.pagination .page-item.active .page-link { z-index: auto !important; }

/* Home menu icon — larger, bottom-aligned to the word, with spacing */
.nav-menu__link .ph-house-simple { font-size: 1.4em; vertical-align: text-bottom; margin-right: 5px !important; line-height: 1; }

/* ── Modern product-card image (hover swap + smooth zoom + lift + sheen) ─── */
.product-card { transition: transform .28s ease, box-shadow .28s ease, border-color .25s ease; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(20,20,18,.12); }
.product-card__thumb { position: relative; overflow: hidden; border-radius: 14px !important;
  background: linear-gradient(155deg, #f6f7f5 0%, #ffffff 72%) !important; }
/* diagonal light sweep on hover */
.product-card__thumb::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,.45) 50%, transparent 58%);
  transform: translateX(-130%); transition: transform .7s ease; }
.product-card:hover .product-card__thumb::after { transform: translateX(130%); }
/* images */
.product-card__thumb .pc-img { transition: opacity .45s ease, transform .55s cubic-bezier(.2,.6,.2,1) !important; }
.pc-img--hover { position: absolute; inset: 0; margin: auto; height: auto; object-fit: contain; opacity: 0; z-index: 1; }
.product-card:hover .pc-img--hover { opacity: 1; }
/* smoother zoom than the theme's harsh 1.2 */
.product-card:hover .product-card__thumb img { transform: scale(1.07) !important; }

/* ── Mobile responsiveness (storefront) ─────────────────────────────────── */
@media (max-width: 575px) {
  /* 2 products per row on phones */
  .list-grid-wrapper:not(.list-view) { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
  .list-grid-wrapper .product-card__thumb, .list-grid-wrapper .product-card__thumb img { min-height: 140px; max-height: 150px; }
  .product-card { padding: 10px !important; }
  .product-card .title, .product-card__content h6 { font-size: 13px !important; line-height: 1.3; }
  /* compact action buttons so 5/5/2 fits on small cards */
  .pd-btn { font-size: 11px; padding: 9px 3px; gap: 4px; }
  .pd-btn--view { font-size: 14px; }
  .pd-actions { margin-top: 10px; }
  .pd-qty { height: 34px; margin-bottom: 8px; }
  .pd-qty button { width: 30px; font-size: 12px; }
  .pd-qty input { width: 34px; font-size: 13px; }
  .pd-size { padding: 4px 10px; font-size: 11px; }
  /* quick view stacks cleanly */
  .qv__media, .qv__info { flex: 1 1 100%; }
  .qv__now { font-size: 22px; }
  /* account / dashboard cards full width spacing */
  .account-card { border-radius: 12px; }
  .account-stat { padding: 14px; }
  /* contact map shorter on phones */
  .contact iframe { height: 300px !important; }
  /* keep section headings from overflowing */
  h5.mb-0, .section-heading h5 { font-size: 18px; }
}
@media (max-width: 991px) {
  /* lighter card hover (no big lift) on touch screens */
  .product-card:hover { transform: none; box-shadow: 0 8px 22px rgba(20,20,18,.08); }
}
