/* =========================================================
   AFNAN WATCH - main stylesheet
   ========================================================= */
:root {
  --black: #000;
  --text: #111;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --grey: #f5f5f5;
  --red: #da3f3f;
  --sale: #e5484d;
  --gold: #d4af37;
  --green: #25d366;
  --radius: 8px;
  --container: 1440px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 96px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: 'Jost', system-ui, sans-serif; font-size: 15px; line-height: 1.6;
  color: var(--text); background: #fff; overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; color: inherit; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3, h4 { font-weight: 500; line-height: 1.25; margin: 0 0 .6em; }
[hidden] { display: none !important; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.container.narrow { max-width: 900px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.u-link { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Page loader ---------- */
#page-loader { position: fixed; inset: 0; background: #fff; z-index: 9999; display: grid; place-items: center; transition: opacity .5s, visibility .5s; }
#page-loader span { width: 46px; height: 46px; border-radius: 50%; border: 3px solid #eee; border-top-color: var(--black); animation: spin .8s linear infinite; }
body.loaded #page-loader { opacity: 0; visibility: hidden; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: 6px; border: 1px solid var(--black);
  font-size: 15px; font-weight: 500; position: relative; overflow: hidden; z-index: 0;
  transition: color .35s var(--ease), background .35s, border-color .35s, transform .2s;
}
.btn:active { transform: scale(.97); }
.btn-dark { background: var(--black); color: #fff; }
.btn-outline { background: #fff; color: var(--black); }
/* fill animation on hover */
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.btn-outline::before { background: var(--black); }
.btn-dark::before { background: #333; }
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn-outline:hover { color: #fff; }
.btn-wa { background: var(--green); border-color: var(--green); color: #fff; }
.btn-wa::before { background: #1ebe5b; }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn.loading { pointer-events: none; color: transparent !important; }
.btn.loading::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #999; border-top-color: transparent; animation: spin .7s linear infinite; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.link-btn { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }

/* ---------- Announcement ---------- */
.announcement { background: var(--red); color: #fff; height: 32px; display: flex; align-items: center; justify-content: center; position: relative; font-size: 14px; font-weight: 500; }
.ann-track { position: relative; width: min(560px, 70vw); height: 32px; overflow: hidden; }
.ann-item { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(100%); transition: transform .5s var(--ease), opacity .5s; white-space: nowrap; }
.ann-item.active { opacity: 1; transform: none; }
.ann-item.leave { opacity: 0; transform: translateY(-100%); }
.ann-arrow, .ann-close { background: none; border: 0; color: #fff; font-size: 22px; line-height: 1; padding: 0 12px; }
.ann-close { position: absolute; right: 8px; }
.announcement.closed { display: none; }
.topbar { text-align: center; font-size: 14px; padding: 6px 16px; border-bottom: 1px solid var(--line); }
.topbar a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Header ---------- */
.site-header { background: var(--black); color: #fff; position: sticky; top: 0; z-index: 100; transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.25); }
.header-inner { display: flex; align-items: center; gap: 22px; min-height: var(--header-h); }
.logo img { height: 62px; width: auto; transition: transform .4s var(--ease); }
.logo:hover img { transform: scale(1.04); }
.main-nav { flex: 1; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; column-gap: 26px; row-gap: 4px; }
.main-nav li { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 4px; padding: 12px 0; font-size: 15px; font-weight: 500; position: relative; }
/* Chalti line - hover par left se right */
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 8px; width: 100%; height: 2px; background: #fff;
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav-link:hover::after, .nav-link.active::after, .has-drop:hover > .nav-link::after { transform: scaleX(1); transform-origin: left; }
.chev { width: 14px; height: 14px; transition: transform .3s; }
.has-drop:hover .chev { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: 100%; left: -18px; min-width: 230px; background: #fff; color: var(--text);
  padding: 12px 0; border-radius: 6px; box-shadow: 0 12px 40px rgba(0,0,0,.15);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .3s var(--ease);
}
.has-drop:hover .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: block; padding: 8px 22px; font-size: 15px; transition: padding .25s, color .25s; }
.dropdown a:hover { padding-left: 28px; color: var(--muted); }
.header-icons { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.icon-btn { background: none; border: 0; padding: 8px; position: relative; display: inline-flex; color: inherit; transition: transform .25s; }
.icon-btn:hover { transform: translateY(-2px); }
.badge { position: absolute; top: 0; right: 0; min-width: 18px; height: 18px; border-radius: 9px; background: #fff; color: #000; font-size: 11px; font-weight: 600; display: grid; place-items: center; padding: 0 4px; }
.badge.bump { animation: bump .5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.5); } }
.menu-toggle { display: none; }

/* ---------- Drawers ---------- */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 190; opacity: 0; visibility: hidden; transition: .35s; }
.overlay.show { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; bottom: 0; width: min(420px, 92vw); background: #fff; z-index: 200; display: flex; flex-direction: column; transition: transform .45s var(--ease); }
.drawer-right { right: 0; transform: translateX(100%); }
.drawer-left { left: 0; transform: translateX(-100%); }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; font-size: 20px; }
.drawer-head .icon-btn { font-size: 28px; line-height: 1; }
.drawer-logo { height: 46px; }
.mobile-nav { display: flex; flex-direction: column; padding: 8px 0; overflow: auto; }
.mobile-nav a, .mobile-nav summary { padding: 13px 20px; border-bottom: 1px solid var(--line); font-weight: 500; cursor: pointer; }
.mobile-nav details a { padding-left: 36px; font-weight: 400; background: var(--grey); }

/* Cart drawer */
.cart-drawer-body { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.cart-notice { margin: 16px 18px 0; padding: 10px 14px; background: #dff3e4; color: #1f7a3a; border-radius: 6px; display: flex; gap: 8px; align-items: center; font-size: 14px; animation: slideDown .4s var(--ease); }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } }
.cart-lines { flex: 1; overflow: auto; padding: 8px 18px; }
.cart-line { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); animation: fadeUp .4s var(--ease) both; }
.cart-line-img { width: 86px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.cart-line-title { font-size: 14px; display: block; }
.cart-line-price { font-size: 14px; margin: 2px 0 8px; }
.cart-line-actions { display: flex; align-items: center; gap: 16px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 4px; }
.qty-btn { background: none; border: 0; width: 32px; height: 32px; font-size: 16px; }
.qty span, .qty input { width: 34px; text-align: center; border: 0; font: inherit; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-lg .qty-btn { width: 44px; height: 46px; }
.cart-foot { padding: 16px 18px 20px; border-top: 1px solid var(--line); background: #fff; }
.cart-subtotal { display: flex; justify-content: space-between; font-size: 18px; margin-bottom: 4px; }
.cart-ship-note { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.view-cart { display: block; text-align: center; margin-top: 10px; text-decoration: underline; font-size: 14px; }
.cart-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 30px; color: var(--muted); }
.cart-empty svg { width: 54px; height: 54px; }
.cart-empty.big { padding: 60px 0; }
.drawer.loading .cart-drawer-body { opacity: .5; pointer-events: none; }

/* ---------- Search overlay ---------- */
.search-overlay { position: fixed; inset: 0 0 auto; z-index: 210; background: #fff; padding: 26px 0 30px; transform: translateY(-100%); transition: transform .45s var(--ease); box-shadow: 0 10px 40px rgba(0,0,0,.15); }
.search-overlay.open { transform: none; }
.search-box { position: relative; }
.search-box form { display: flex; border-bottom: 2px solid var(--black); margin-right: 50px; }
.search-box input { flex: 1; border: 0; font: inherit; font-size: 20px; padding: 10px 0; outline: 0; }
.search-box form button { background: none; border: 0; }
.search-box .close-drawer { position: absolute; right: 16px; top: 4px; font-size: 32px; }
.search-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; margin-top: 20px; max-height: 60vh; overflow: auto; }
.sr-item { font-size: 13px; animation: fadeUp .35s var(--ease) both; }
.sr-item img { aspect-ratio: 1; object-fit: cover; border-radius: 6px; background: var(--grey); margin-bottom: 6px; }

/* ---------- Sections ---------- */
.section { padding: 50px 0; }
.section.pt-0 { padding-top: 0; }
.section-grey { background: var(--grey); }
.section-title { text-align: center; font-size: 22px; margin-bottom: 30px; }
.section-title.left { text-align: left; }

/* Shop by categories */
.big-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.big-cat { position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 1 / 1; display: block; }
.big-cat img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.big-cat:hover img { transform: scale(1.08); }
.big-cat-label { position: absolute; left: 24px; right: 24px; bottom: 22px; display: flex; justify-content: space-between; align-items: center; font-size: 22px; color: #111; }
.round-arrow { width: 36px; height: 36px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-style: normal; transition: background .3s, color .3s, transform .3s; }
.big-cat:hover .round-arrow { background: #000; color: #fff; transform: rotate(-45deg); }

/* Explore circles */
.circle-cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.circle-cat { text-align: center; font-size: 14px; font-weight: 500; }
.circle-img { display: block; aspect-ratio: 1; border-radius: 50%; overflow: hidden; margin: 0 auto 8px; max-width: 180px; transition: box-shadow .4s; }
.circle-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.circle-cat:hover .circle-img img { transform: scale(1.1) rotate(3deg); }
.circle-cat:hover .circle-img { box-shadow: 0 10px 30px rgba(0,0,0,.18); }

/* Brands */
.brands-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.brand-card { background: #dcdcdc; border-radius: 8px; padding: 10px 8px 8px; text-align: center; font-weight: 600; font-size: 14px; transition: transform .4s var(--ease), box-shadow .4s; overflow: hidden; }
.brand-card img { aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; transition: transform .6s var(--ease); }
.brand-card:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(0,0,0,.12); }
.brand-card:hover img { transform: scale(1.08); }

/* Marquee */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 4px 0; white-space: nowrap; }
.marquee-track { display: inline-flex; animation: marquee 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: inline-flex; }
.marquee span { font-size: clamp(26px, 4vw, 34px); font-weight: 500; padding-right: 12px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Tabs dropdown */
.tab-select { position: relative; width: max-content; margin: 0 auto 30px; border-bottom: 2px solid var(--black); }
.tab-select select { appearance: none; border: 0; background: none; font: inherit; font-size: 20px; padding: 2px 36px 2px 0; cursor: pointer; outline: 0; }
.tab-select svg { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); pointer-events: none; }

/* ---------- Product grid & cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 30px 20px; transition: opacity .3s; }
.product-grid.fading { opacity: .3; }
.product-card { position: relative; }
.pc-media { position: relative; border-radius: 6px; overflow: hidden; background: var(--grey); aspect-ratio: 1; }
.pc-img-link { display: block; height: 100%; }
.pc-img { width: 100%; height: 100%; object-fit: cover; transition: opacity .6s var(--ease), transform 1s var(--ease); }
.pc-img-2 { position: absolute; inset: 0; opacity: 0; }
.product-card:hover .pc-img-1 { transform: scale(1.06); }
.product-card:hover .pc-img-2 { opacity: 1; transform: scale(1.06); }
.pc-badge { position: absolute; top: 10px; left: 10px; background: var(--sale); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 3px; font-weight: 500; }
.pc-sold { background: #555; left: auto; right: 10px; }
.pc-actions { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 8px; }
.pc-act { width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 0; display: grid; place-items: center; box-shadow: 0 2px 10px rgba(0,0,0,.1); opacity: 0; transform: translateX(20px); transition: all .35s var(--ease); }
.pc-act svg { width: 18px; height: 18px; }
.pc-act:nth-child(2) { transition-delay: .06s; }
.product-card:hover .pc-act { opacity: 1; transform: none; }
.pc-act:hover { background: #000; color: #fff; }
.wish-btn.active svg { fill: var(--sale); stroke: var(--sale); }
.wish-btn.active { opacity: 1; transform: none; }
.pc-add { position: absolute; left: 10px; right: 10px; bottom: 10px; background: #fff; border: 0; border-radius: 6px; padding: 10px; font-weight: 500; opacity: 0; transform: translateY(20px); transition: all .35s var(--ease); }
.pc-add:hover { background: #000; color: #fff; }
.product-card:hover .pc-add { opacity: 1; transform: none; }
.pc-add.loading { color: transparent; }
.pc-info { padding-top: 12px; }
.pc-title { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s; }
.pc-title:hover { color: var(--muted); }
.price { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 4px; font-size: 14px; }
.price-sale { color: var(--sale); font-weight: 500; }
.price-compare { color: var(--muted); font-size: 13px; }
.price-lg { font-size: 22px; }
.price-lg .price-compare { font-size: 14px; }
.sale-pill { background: var(--sale); color: #fff; font-size: 11px; font-weight: 600; padding: 2px 10px; border-radius: 20px; }

/* Reveal on scroll (products neeche se upar aate hain) */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } }

/* Reviews */
.reviews-slider { overflow: hidden; }
.reviews-track { display: flex; gap: 24px; transition: transform .6s var(--ease); }
.review-card { flex: 0 0 calc((100% - 24px) / 2); background: #fff; padding: 18px 22px; border-radius: 4px; }
.review-card .stars { color: #f5a623; font-size: 16px; }
.review-card .stars span { color: var(--text); font-size: 14px; }
.review-card h4 { font-size: 15px; margin: 2px 0 8px; }
.review-card p { margin: 0; color: #444; font-size: 14px; }
.slider-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 22px; }
.slider-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #ccc; background: #fff; font-size: 22px; line-height: 1; transition: background .3s, color .3s; }
.slider-btn:hover { background: #000; color: #fff; }

/* Policies */
.policies { padding: 26px 0; border-top: 1px solid var(--line); }
.policies-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.policy { display: flex; gap: 16px; align-items: flex-start; }
.policy svg { width: 46px; height: 46px; flex-shrink: 0; stroke-width: 2; }
.policy h4 { font-size: 18px; margin: 0 0 4px; }
.policy p { margin: 0; color: var(--muted); font-size: 14px; }

/* Footer */
.site-footer { background: #000; color: #fff; padding-top: 50px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 40px; }
.footer-logo { height: 64px; margin-bottom: 14px; }
.footer-col h4 { font-size: 16px; margin-bottom: 14px; }
.footer-col > a { display: block; margin-bottom: 9px; font-size: 14px; position: relative; width: max-content; }
.footer-col > a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: #fff; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.footer-col > a:hover::after { transform: scaleX(1); transform-origin: left; }
.footer-about p { margin: 0 0 8px; font-size: 14px; }
.footer-addr { display: flex; gap: 8px; }
.footer-addr svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 3px; }
.socials { display: flex; flex-wrap: wrap; gap: 12px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; background: #e9e9e9; color: #000; display: grid; place-items: center; transition: transform .3s, background .3s; }
.socials a:hover { transform: translateY(-4px); background: var(--gold); }
.socials svg { width: 20px; height: 20px; }
.footer-bottom { border-top: 1px solid #222; text-align: center; padding: 16px; font-size: 13px; color: #aaa; }

/* WhatsApp floating */
.wa-float { position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; background: var(--green); display: grid; place-items: center; z-index: 150; box-shadow: 0 6px 20px rgba(37,211,102,.4); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; z-index: -1; }
.wa-float svg { width: 30px; height: 30px; stroke: none; }
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- Collection page ---------- */
.collection-hero { padding: 36px 0 26px; text-align: center; }
.collection-hero h1 { font-size: 30px; margin-bottom: 4px; }
.crumbs { color: var(--muted); font-size: 14px; margin: 0; }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; gap: 12px; }
.toolbar-left { display: flex; gap: 18px; align-items: center; }
.tool-btn { background: none; border: 0; display: inline-flex; align-items: center; gap: 4px; }
.tool-btn svg { width: 14px; height: 14px; }
.sort-wrap select { border: 0; font: inherit; background: none; cursor: pointer; }
.grid-switch { display: flex; gap: 8px; }
.grid-btn { width: 34px; height: 34px; border: 1px solid var(--line); background: #fff; border-radius: 4px; display: flex; align-items: center; justify-content: center; gap: 2px; flex-direction: row; }
.grid-btn[data-cols="1"] { flex-direction: column; }
.grid-btn i { display: block; background: #999; }
.grid-btn i.v { width: 2px; height: 12px; }
.grid-btn i.h { width: 12px; height: 2px; }
.grid-btn.active { background: #000; border-color: #000; }
.grid-btn.active i { background: #fff; }
.product-grid.list-view { grid-template-columns: 1fr; }
.product-grid.list-view .product-card { display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: center; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span { min-width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 4px; display: grid; place-items: center; padding: 0 6px; }
.pagination a.active, .pagination a:hover { background: #000; color: #fff; border-color: #000; }
.empty-msg { text-align: center; padding: 40px 0; color: var(--muted); }
.filter-form { padding: 18px; overflow: auto; flex: 1; }
.filter-form h4 { margin: 18px 0 10px; }
.check { display: flex; gap: 8px; align-items: center; }
.price-range { display: flex; gap: 10px; }
.price-range input { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 4px; font: inherit; }
.filter-cats a { display: block; padding: 5px 0; font-size: 14px; }
.filter-cats a.active { font-weight: 600; }
.filter-cats span { color: var(--muted); }
.filter-btns { display: flex; gap: 10px; margin-top: 24px; }
.filter-btns .btn { flex: 1; }

/* ---------- Product page ---------- */
.product-page { padding-top: 20px; }
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.gallery { position: sticky; top: calc(var(--header-h) + 16px); }
.gallery-main { position: relative; aspect-ratio: 1; background: var(--grey); border-radius: 6px; overflow: hidden; cursor: zoom-in; }
.gallery-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transform: scale(1.04); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.gallery-main img.active { opacity: 1; transform: none; }
.gallery-main.zoom img.active { transform: scale(2); }
.g-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 0; font-size: 24px; line-height: 1; z-index: 2; box-shadow: 0 2px 10px rgba(0,0,0,.12); opacity: 0; transition: opacity .3s; }
.gallery-main:hover .g-arrow { opacity: 1; }
.g-prev { left: 12px; } .g-next { right: 12px; }
.gallery-thumbs { display: flex; gap: 12px; margin-top: 14px; overflow-x: auto; padding-bottom: 4px; }
.thumb { flex: 0 0 72px; height: 72px; padding: 0; border: 1px solid transparent; border-radius: 4px; overflow: hidden; background: var(--grey); opacity: .65; transition: opacity .3s, border-color .3s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active, .thumb:hover { opacity: 1; border-color: #000; }
.product-title { font-size: 30px; font-weight: 400; }
.viewing { display: flex; gap: 8px; align-items: center; font-size: 14px; margin: 22px 0 8px; }
.viewing svg { width: 18px; }
.refund { font-size: 14px; color: var(--muted); margin: 0 0 18px; }
.add-form { display: flex; gap: 12px; margin-bottom: 12px; }
.btn-add { flex: 1; }
.btn-buy, .btn-wa.btn-block { margin-bottom: 12px; padding: 14px; }
.product-meta { list-style: none; padding: 0; margin: 20px 0; }
.product-meta li { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 6px 0; }
.wish-inline { background: none; border: 0; display: inline-flex; gap: 8px; align-items: center; padding: 0; font-size: 14px; }
.wish-inline svg { width: 18px; }
.accordions { margin-top: 50px; border-top: 1px solid var(--line); }
.acc { border-bottom: 1px solid var(--line); }
.acc summary { padding: 18px 0; font-size: 18px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.acc summary::after { content: "+"; font-size: 22px; transition: transform .3s; }
.acc[open] summary::after { transform: rotate(45deg); }
.acc-body { padding-bottom: 20px; animation: fadeUp .4s var(--ease); }
.rte { font-size: 15px; color: #333; }
.rte img { height: auto; }
.rte table { width: 100%; border-collapse: collapse; }
.rte td, .rte th { border: 1px solid var(--line); padding: 6px 10px; }

/* Cart page */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 13px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.cart-table td { padding: 16px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-table .r { text-align: right; }
.cart-table tr.cart-line { display: table-row; animation: none; }
.cart-table .qty { margin-right: 10px; }
.ct-prod { display: flex; gap: 14px; align-items: center; }
.ct-prod img { width: 80px; border-radius: 4px; }
.cart-summary { max-width: 360px; margin: 24px 0 0 auto; }

/* Checkout */
.checkout-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: start; }
.checkout-form h2 { font-size: 22px; margin-top: 10px; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 14px; margin-bottom: 5px; }
.field em { color: var(--muted); font-style: normal; font-size: 13px; }
.field input, .field textarea, .track-form input, .search-page-form input {
  width: 100%; padding: 13px 14px; border: 1px solid #d6d6d6; border-radius: 6px; font: inherit; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .track-form input:focus { outline: 0; border-color: #000; box-shadow: 0 0 0 3px rgba(0,0,0,.06); }
.pay-option { display: flex; gap: 12px; align-items: flex-start; border: 1px solid #000; border-radius: 6px; padding: 14px; margin-bottom: 20px; background: #fafafa; }
.order-summary { background: var(--grey); padding: 24px; border-radius: 8px; position: sticky; top: calc(var(--header-h) + 16px); }
.order-summary.left { text-align: left; position: static; margin: 24px 0; }
.os-line { display: flex; align-items: center; gap: 14px; padding: 8px 0; font-size: 14px; }
.os-img { position: relative; width: 64px; height: 64px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.os-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.os-img i { position: absolute; top: -8px; right: -8px; background: #666; color: #fff; font-style: normal; font-size: 12px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; }
.os-title { flex: 1; }
.os-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.os-total { font-size: 18px; font-weight: 600; border-top: 1px solid #ddd; margin-top: 8px; padding-top: 12px; }
.alert { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; font-size: 14px; }
.alert-error { background: #fdecec; color: #b42318; }
.alert-ok { background: #dff3e4; color: #1f7a3a; }

/* Thank you */
.thank-you h1 { font-size: 30px; }
.tick svg { width: 84px; height: 84px; stroke: #1f9d55; stroke-width: 3; margin: 0 auto 16px; }
.tick circle { stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw .8s .2s var(--ease) forwards; }
.tick path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s .9s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Track */
.track-form, .search-page-form { display: flex; gap: 12px; margin: 0 auto 24px; max-width: 700px; }
.track-result { background: var(--grey); padding: 24px; border-radius: 8px; }
.steps { list-style: none; padding: 0; margin: 20px 0; display: flex; justify-content: space-between; position: relative; }
.steps::before { content: ""; position: absolute; top: 9px; left: 8%; right: 8%; height: 2px; background: #ccc; }
.steps li { position: relative; text-align: center; font-size: 13px; flex: 1; color: var(--muted); }
.steps li span { display: block; width: 20px; height: 20px; border-radius: 50%; background: #ccc; margin: 0 auto 6px; position: relative; }
.steps li.done { color: var(--text); font-weight: 500; }
.steps li.done span { background: #1f9d55; }

/* Contact */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 24px; }
.contact-card { background: var(--grey); padding: 20px; border-radius: 8px; }
.map { width: 100%; height: 360px; border: 0; border-radius: 8px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 30px); background: #111; color: #fff; padding: 12px 20px; border-radius: 6px; z-index: 300; opacity: 0; transition: .35s var(--ease); font-size: 14px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-inner { justify-content: space-between; min-height: 70px; }
  :root { --header-h: 70px; }
  .logo img { height: 48px; }
  .header-icons { margin-left: 0; }
  .brands-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { --cols: 3 !important; }
}
@media (max-width: 768px) {
  body { font-size: 14px; }
  .hide-sm { display: none; }
  .topbar { font-size: 12px; }
  .section { padding: 36px 0; }
  .big-cats { gap: 12px; }
  .big-cat-label { font-size: 16px; left: 12px; right: 12px; bottom: 12px; }
  .round-arrow { width: 30px; height: 30px; }
  .circle-cats { grid-template-columns: repeat(5, 120px); overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
  .circle-cat { scroll-snap-align: start; }
  .brands-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-grid { --cols: 2 !important; gap: 22px 12px; }
  .pc-add { display: none; }
  .pc-act { opacity: 1; transform: none; width: 32px; height: 32px; }
  .pc-act:nth-child(2) { display: none; }
  .review-card { flex-basis: 100%; }
  .policies-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .product-layout, .checkout-layout { grid-template-columns: 1fr; gap: 24px; }
  .gallery, .order-summary { position: static; }
  .product-title { font-size: 24px; }
  .grid-switch .grid-btn[data-cols="4"], .grid-switch .grid-btn[data-cols="5"], .grid-switch .grid-btn[data-cols="3"] { display: none; }
  .cart-table thead { display: none; }
  .cart-table td:nth-child(2) { white-space: nowrap; }
  .ct-prod img { width: 60px; }
  .track-form, .search-page-form { flex-direction: column; }
  .product-grid.list-view .product-card { grid-template-columns: 120px 1fr; }
  .ann-arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
