/* ─── Zinzy Main Stylesheet ─────────────────────────────────────── */
:root {
  --white: #ffffff;
  --black: #111111;
  --grey: #888888;
  --grey-light: #f5f5f5;
  --border: #e0e0e0;
  --primary: var(--theme-primary-btn, #FF7A00);
  --primary-dark: #E06000;
  --primary-light: var(--theme-accent-color, #FFA85C);
  --success: #2E7D32;
  --error: #C62828;
  --warning: #F9A825;
  --header-h: 60px;
  --bottom-nav-h: 62px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.12);
  --transition: 0.2s ease;
  --main-gradient: linear-gradient(180deg, var(--theme-header-top) 0px, var(--theme-header-middle) calc(var(--theme-gradient-height) * 0.25), var(--theme-header-bottom) calc(var(--theme-gradient-height) - var(--theme-fade-strength)), var(--theme-page-bg) var(--theme-gradient-height));
}

/* ─── Reset ───────────────────────────────────────── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}
*:focus{outline:none}
*:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
input,select,textarea,button{accent-color:var(--primary)}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{font-family:'Inter',system-ui,Arial,sans-serif;font-size:14px;line-height:1.6;color:var(--black);background-color:var(--theme-page-bg);background-image:var(--main-gradient);background-attachment:fixed;background-repeat:no-repeat;padding-top:var(--header-h);padding-bottom:var(--bottom-nav-h);min-height:100vh}
@media(min-width:1024px){body{padding-top:calc(var(--header-h) + 45px);}}
img{max-width:100%;height:auto;display:block}
a{text-decoration:none;color:inherit}
button{cursor:pointer;border:none;background:none;font-family:inherit}
input,select,textarea{font-family:inherit;font-size:14px}
ul,ol{list-style:none}

/* ─── App Bar ─────────────────────────────────────── */
.app-bar{position:fixed;top:0;left:0;right:0;z-index:1000;background-color:var(--theme-page-bg);background-image:var(--main-gradient);background-attachment:fixed;border-bottom:none;backdrop-filter:none}
.app-bar__inner{display:flex;align-items:center;justify-content:space-between;padding:0 16px;height:var(--header-h)}
.app-bar__logo{display:flex;align-items:center;gap:8px;font-size:22px;font-weight:800;letter-spacing:-0.5px}
.logo-text{color:var(--theme-text-color)}
.logo-img{height:36px;width:auto}
.app-bar__actions{display:flex;align-items:center;gap:4px}
.app-bar__accent-line{display:none}
.icon-btn{position:relative;display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;color:var(--theme-icon-color);transition:background var(--transition)}
.icon-btn:hover{background:rgba(255,255,255,0.1)}
.icon-label{display:none}
.badge{position:absolute;top:6px;right:6px;min-width:16px;height:16px;background:var(--primary);color:#fff;font-size:10px;font-weight:700;border-radius:50px;display:flex;align-items:center;justify-content:center;padding:0 4px;line-height:1}
@media(min-width:1024px){
  .app-bar__inner{max-width:1280px;margin:0 auto;width:100%}
  .app-bar__actions{gap:12px}
  .icon-btn{width:auto;height:40px;padding:0 12px;border-radius:20px}
  .icon-label{display:inline-block;margin-left:8px;font-size:14px;font-weight:600}
  .badge{right:0;top:0}
}
.desktop-nav{display:none;border-top:1px solid rgba(0,0,0,0.05)}
.desktop-nav__inner{max-width:1280px;margin:0 auto;padding:0 16px;height:45px;display:flex;align-items:center}
.nav-link{font-size:14px;font-weight:600;color:var(--theme-icon-color);transition:opacity var(--transition);display:flex;align-items:center}
.nav-link:hover{opacity:0.8}
.nav-link--categories{gap:6px;padding-right:24px;margin-right:24px;border-right:1px solid rgba(0,0,0,0.05)}
.nav-links{display:flex;gap:24px;align-items:center}
@media(min-width:1024px){.desktop-nav{display:block}}

/* ─── Bottom Nav ──────────────────────────────────── */
.bottom-nav{position:fixed;bottom:0;left:0;right:0;z-index:1000;background:var(--white);border-top:1px solid var(--border);display:flex;height:var(--bottom-nav-h);padding-bottom:env(safe-area-inset-bottom)}
.bottom-nav__item{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:11px;font-weight:500;color:var(--theme-nav-inactive, var(--grey));transition:color var(--transition);padding:6px 0}
.bottom-nav__item svg{transition:stroke var(--transition);stroke:var(--theme-nav-inactive, var(--grey))}
.bottom-nav__item.active{color:var(--theme-nav-active, var(--black));font-weight:700}
.bottom-nav__item.active svg{stroke:var(--theme-nav-active, var(--black))}

/* ─── Container ───────────────────────────────────── */
.container{width:100%;max-width:1280px;margin:0 auto;padding:0 16px}

/* ─── Buttons ─────────────────────────────────────── */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:14px 24px;border-radius:var(--radius-sm);font-size:14px;font-weight:600;transition:all var(--transition);cursor:pointer;border:none;line-height:1;-webkit-tap-highlight-color:transparent;outline:none}
.btn-primary{background:var(--primary);color:#fff}
.btn-primary:hover{background:var(--primary-dark)}
.btn-primary:active{background:var(--primary-dark);outline:none;box-shadow:none}
.btn-primary:focus,.btn-primary:focus-visible{outline:none;box-shadow:none}
.btn-outline{background:transparent;color:var(--black);border:1.5px solid var(--black)}
.btn-outline:hover{background:var(--black);color:#fff}
.btn-outline:active{background:var(--black);color:#fff;outline:none;box-shadow:none}
.btn-full{width:100%}
.btn-sm{padding:8px 16px;font-size:13px}
.btn:disabled{opacity:0.5;cursor:not-allowed}

/* ─── Section ─────────────────────────────────────── */
.section{padding:24px 0}
.section-title{font-size:18px;font-weight:700;margin-bottom:16px;padding:0 16px}
.section-header{display:flex;align-items:center;justify-content:space-between;padding:0 16px;margin-bottom:16px}
.section-header .see-all{font-size:13px;color:var(--primary);font-weight:600}

/* ─── Product Grid ─────────────────────────────────── */
.product-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:0;               /* no gap — cards are flush */
  padding:0;
}
@media(min-width:768px){.product-grid{grid-template-columns:repeat(4,1fr)}}
@media(min-width:1024px){.product-grid{grid-template-columns:repeat(6,1fr)}}

/* ─── Product Card ─────────────────────────────────── */
.product-card{
  background:var(--white);
  border-radius:0;           /* flush, no radius on grid cards */
  overflow:hidden;
  transition:opacity var(--transition);
  border-right:1px solid var(--border);
  border-bottom:1px solid var(--border);
}
.product-card:hover{opacity:.92}

/* Image area */
.product-card__img-wrap{
  position:relative;
  aspect-ratio:3/4;         /* tall portrait — matches screenshot */
  overflow:hidden;
  background:var(--grey-light);
}
.product-card__img-wrap img{
  width:100%;height:100%;
  object-fit:cover;
  object-position:top;
  transition:transform 0.4s ease;
}
.product-card:hover .product-card__img-wrap img{transform:scale(1.03)}

/* Badge — white pill top-left */
.product-card__badge{
  position:absolute;top:10px;left:10px;
  background:var(--white);
  padding:5px 10px;
  border-radius:20px;
  font-size:11px;font-weight:800;
  white-space:nowrap;
  box-shadow:0 2px 8px rgba(0,0,0,0.14);
  letter-spacing:.2px;
  line-height:1;
}
.badge-new{color:var(--black)}
.badge-hot{color:var(--black)}

/* Fit badge — removed from card in grid view */
.product-card__fit{display:none}

/* Wishlist — white circle bottom-right */
.product-card__wish{
  position:absolute;bottom:10px;right:10px;
  width:36px;height:36px;
  background:var(--white);
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 2px 10px rgba(0,0,0,0.14);
  cursor:pointer;
  transition:transform var(--transition);
  border:none;color:var(--black);
}
.product-card__wish:hover{transform:scale(1.12)}
.product-card__wish.wished svg{fill:var(--error);stroke:var(--error)}

/* Info section — padding like screenshot */
.product-card__info{padding:10px 8px 12px}

/* Name */
.product-card__name{
  font-size:13px;font-weight:400;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  margin-bottom:4px;color:var(--black);
}

/* Price */
.product-card__price{
  display:flex;align-items:baseline;gap:6px;
  margin-bottom:10px;
  flex-wrap: wrap;
}
.price-current{
  font-size:14px;font-weight:800; /* bold like Rs.1299.00 in image */
  color:var(--black);
}
.price-original{font-size:11px;color:var(--grey);text-decoration:line-through}

/* Size chips */
.product-card__sizes{display:flex;flex-wrap:wrap;gap:5px}
.size-chip{
  padding:4px 8px;
  border:1.5px solid var(--border);
  border-radius:5px;
  font-size:11px;font-weight:600;
  cursor:pointer;
  transition:all var(--transition);
  background:transparent;color:var(--black);
  line-height:1;
}
.size-chip:hover,.size-chip.selected{
  background:var(--black);color:#fff;border-color:var(--black);
}
.size-chip.out{
  color:#ccc;
  border-color:#e8e8e8;
  cursor:not-allowed;
  text-decoration:line-through; /* strikethrough for out-of-stock */
  background:transparent;
}

/* ─── Hero Slider ─────────────────────────────────── */
.hero-slider{position:relative;overflow:hidden;background:transparent;border-radius:16px;margin:0 16px;box-shadow:0 4px 20px rgba(0,0,0,0.10)}
.hero-slider__track{display:flex;transition:transform 0.4s ease}
.hero-slide{min-width:100%;aspect-ratio:720/300;overflow:hidden}
@media(min-width:768px){.hero-slide{aspect-ratio:16/6}}
.hero-slide img{width:100%;height:100%;object-fit:cover}
.hero-slide__content{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;padding:24px;background:none}
@media(min-width:768px){.hero-slide__content{background:linear-gradient(to right,rgba(0,0,0,0.45) 0%,transparent 70%)}}
.hero-slide__subtitle{font-size:12px;font-weight:600;letter-spacing:2px;color:rgba(255,255,255,0.8);text-transform:uppercase;margin-bottom:8px}
.hero-slide__title{font-size:28px;font-weight:800;color:#fff;line-height:1.2;margin-bottom:16px}
@media(min-width:768px){.hero-slide__title{font-size:42px}}
.hero-dots{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);display:flex;gap:6px}
.hero-dot{width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,0.5);transition:all var(--transition);cursor:pointer;border:none}
.hero-dot.active{background:#fff;width:20px;border-radius:3px}
.hero-nav{display:none !important;position:absolute;top:50%;transform:translateY(-50%);background:rgba(255,255,255,0.8);border:none;width:36px;height:36px;border-radius:50%;align-items:center;justify-content:center;cursor:pointer;backdrop-filter:blur(4px)}
.hero-nav-prev{left:12px}
.hero-nav-next{right:12px}

/* ─── Category Row ────────────────────────────────── */
.category-scroll{display:flex;gap:12px;overflow-x:auto;padding:0 16px 8px;scrollbar-width:none;-ms-overflow-style:none}
.category-scroll::-webkit-scrollbar{display:none}
.cat-chip{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:72px;cursor:pointer}
.cat-chip__img{width:64px;height:64px;border-radius:50%;object-fit:cover;border:2px solid transparent;transition:border-color var(--transition);background:var(--grey-light)}
.cat-chip:hover .cat-chip__img{border-color:var(--primary)}
.cat-chip__label{font-size:12px;font-weight:600;text-align:center;white-space:nowrap}

/* ─── Category Page Full List ─────────────────────── */
.cat-list-item{display:flex;align-items:center;justify-content:space-between;padding:20px 20px 0;border-bottom:1px solid var(--border);position:relative;overflow:hidden;min-height:120px;cursor:pointer;transition:background var(--transition)}
.cat-list-item:hover{background:var(--grey-light)}
.cat-list-item__name{font-size:22px;font-weight:800;letter-spacing:-0.5px;flex:1}
.cat-list-item__img{width:130px;height:140px;object-fit:cover;object-position:top;flex-shrink:0;margin-top:auto}

/* ─── Search Bar ──────────────────────────────────── */
.header-search { display: none; flex: 1; margin: 0 24px; }
@media (min-width: 768px) { .header-search { display: block; max-width:600px; } }
@media (min-width: 1024px) { .header-search { margin: 0 40px; } }
.header-account { display: none; }
@media (min-width: 1024px) { .header-account { display: flex; } }
.search-bar-wrap{padding:12px 16px;background:transparent;position:sticky;top:var(--header-h);z-index:100;border-bottom:none}
.search-bar{display:flex;align-items:center;gap:10px;background:var(--grey-light);border-radius:var(--radius-sm);padding:10px 14px}
.search-bar input{flex:1;background:none;border:none;outline:none;font-size:14px;color:var(--black)}
.search-bar input::placeholder{color:var(--grey)}
.search-back{color:var(--black);display:flex;align-items:center}

/* ─── Home Screen Body Search ─────────────────────── */
.home-search-container {
  padding: 12px 16px;
  position: sticky;
  top: var(--header-h);
  z-index: 999;
  background-color: var(--theme-page-bg);
  background-image: var(--main-gradient);
  background-attachment: fixed;
}
.home-search-bar {
  display: flex;
  align-items: center;
  background: var(--theme-search-bg, var(--white));
  border-radius: 20px;
  padding: 10px 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08), 0 0 0 1px rgba(255,255,255,0.6);
  border: none;
  gap: 12px;
  transition: box-shadow 0.2s ease;
}
.home-search-bar input {
  flex: 1;
  border: none;
  background: none;
  outline: none;
  font-size: 14px;
  color: var(--black);
}
.home-search-bar input::placeholder {
  color: var(--grey);
}
.home-search-bar .voice-icon {
  color: var(--theme-search-icon, var(--grey));
  cursor: pointer;
}

/* ─── Filter Bar ──────────────────────────────────── */
.filter-bar{display:flex;gap:8px;overflow-x:auto;padding:10px 16px;scrollbar-width:none}
.filter-bar::-webkit-scrollbar{display:none}
.filter-btn{white-space:nowrap;padding:7px 14px;border:1.5px solid var(--border);border-radius:20px;font-size:12px;font-weight:600;background:var(--white);color:var(--black);cursor:pointer;transition:all var(--transition)}
.filter-btn.active{background:var(--black);color:#fff;border-color:var(--black)}

/* ─── Product Detail ──────────────────────────────── */
.product-detail-gallery { margin: 0 -16px; }
.gallery-thumbnails { display: none; } /* Hidden on mobile */
.gallery-main { display: none; } /* Hidden on mobile */
.mobile-gallery-track { display: flex; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
.mobile-gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; width: 100%; aspect-ratio: 1/1; overflow: hidden; background: var(--grey-light); scroll-snap-align: start; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery-dots { display: flex; justify-content: center; gap: 6px; padding: 10px 0; }
.gallery-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border); cursor: pointer; border: none; transition: all var(--transition); }
.gallery-dot.active { background: var(--black); width: 20px; border-radius: 3px; }

/* Mobile Gallery Enhancements */
.mobile-gallery-container { position: relative; }
.mobile-gallery-counter {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  pointer-events: none;
  z-index: 2;
}
.mobile-swipe-hint {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(255,255,255,0.8);
  color: var(--black);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  pointer-events: none;
  z-index: 2;
  animation: fadeOutHint 3s forwards;
  animation-delay: 2.5s;
}
@keyframes fadeOutHint {
  to { opacity: 0; visibility: hidden; }
}
.mobile-thumbnails {
  display: flex;
  gap: 8px;
  padding: 8px 16px 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.mobile-thumbnails::-webkit-scrollbar { display: none; }
.mobile-thumb-btn {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  padding: 0;
  background: var(--grey-light);
  transition: border-color 0.2s;
}
.mobile-thumb-btn.active { border-color: var(--primary); }
.mobile-thumb-btn img { width: 100%; height: 100%; object-fit: cover; }
.product-info{padding:16px}
.product-info__name{font-size:20px;font-weight:700;margin-bottom:4px}
.product-info__badges{display:flex;gap:8px;margin-bottom:12px;flex-wrap:wrap}
.info-badge{padding:4px 10px;border-radius:4px;font-size:11px;font-weight:700}
.info-badge-new{background:#E0F2E9;color:var(--primary)}
.info-badge-hot{background:#FFEBEE;color:var(--error)}
.info-badge-fit{background:var(--grey-light);color:var(--black)}
.product-info__price{display:flex;align-items:baseline;gap:12px;margin-bottom:20px}
.product-info__price .current{font-size:22px;font-weight:800}
.product-info__price .original{font-size:16px;color:var(--grey);text-decoration:line-through}
.size-section{margin-bottom:20px}
.size-label{font-size:13px;font-weight:600;margin-bottom:10px}
.size-chips{display:flex;flex-wrap:wrap;gap:8px}
.size-btn{min-width:48px;height:40px;border-radius:var(--radius-sm);border:1.5px solid var(--border);font-size:13px;font-weight:600;cursor:pointer;transition:all var(--transition);background:var(--white);color:var(--black)}
.size-btn:hover{border-color:var(--black)}
.size-btn.selected{background:var(--black);color:#fff;border-color:var(--black)}
.size-btn.out{color:var(--grey);border-color:var(--border);cursor:not-allowed}
.product-ctas{display:flex;flex-direction:column;gap:12px;margin-bottom:20px}

/* ─── Accordion ───────────────────────────────────── */
.accordion-item{border-top:1px solid var(--border)}
.accordion-item:last-child{border-bottom:1px solid var(--border)}
.accordion-btn{width:100%;display:flex;align-items:center;justify-content:space-between;padding:14px 16px;font-size:14px;font-weight:600;background:none;border:none;cursor:pointer;text-align:left}
.accordion-btn svg{transition:transform var(--transition);flex-shrink:0}
.accordion-btn.open svg{transform:rotate(180deg)}
.accordion-content{max-height:0;overflow:hidden;transition:max-height 0.3s ease}
.accordion-content.open{max-height:500px}
.accordion-body{padding:0 16px 16px;font-size:14px;color:var(--grey);line-height:1.7}

/* ─── Cart ────────────────────────────────────────── */
.cart-item{display:flex;gap:12px;padding:16px;border-bottom:1px solid var(--border)}
.cart-item__img{width:80px;height:96px;object-fit:cover;border-radius:var(--radius-sm);flex-shrink:0;background:var(--grey-light)}
.cart-item__body{flex:1;min-width:0}
.cart-item__name{font-size:14px;font-weight:600;margin-bottom:2px}
.cart-item__meta{font-size:12px;color:var(--grey);margin-bottom:8px}
.cart-item__footer{display:flex;align-items:center;justify-content:space-between}
.qty-stepper{display:flex;align-items:center;gap:0;border:1.5px solid var(--border);border-radius:var(--radius-sm);overflow:hidden}
.qty-stepper button{width:32px;height:32px;display:flex;align-items:center;justify-content:center;font-size:18px;background:none;border:none;cursor:pointer;font-weight:600;transition:background var(--transition)}
.qty-stepper button:hover{background:var(--grey-light)}
.qty-stepper span{width:36px;text-align:center;font-size:14px;font-weight:600}
.cart-item__remove{color:var(--grey);cursor:pointer;background:none;border:none;padding:4px}
.cart-item__remove:hover{color:var(--error)}
.order-summary{background:var(--grey-light);border-radius:var(--radius);padding:16px;margin:16px}
.summary-row{display:flex;justify-content:space-between;font-size:14px;padding:5px 0}
.summary-row.total{font-weight:700;font-size:16px;border-top:1px solid var(--border);padding-top:10px;margin-top:5px}
.summary-row .free{color:var(--success);font-weight:600}
.coupon-row{display:flex;gap:8px;padding:0 16px 16px}
.coupon-row input{flex:1;padding:10px 14px;border:1.5px solid var(--border);border-radius:var(--radius-sm);outline:none;font-size:14px}
.coupon-row input:focus{border-color:var(--primary)}

/* ─── Checkout / Forms ────────────────────────────── */
.form-group{margin-bottom:16px}
.form-label{display:block;font-size:13px;font-weight:600;margin-bottom:6px}
.form-control{width:100%;padding:12px 14px;border:1.5px solid var(--border);border-radius:var(--radius-sm);font-size:14px;outline:none;transition:border-color var(--transition);background:var(--white)}
.form-control:focus{border-color:var(--primary)}
.form-control.error{border-color:var(--error)}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.payment-option{border:1.5px solid var(--border);border-radius:var(--radius);padding:14px;cursor:pointer;transition:all var(--transition);display:flex;align-items:center;gap:12px;margin-bottom:10px}
.payment-option.selected{border-color:var(--primary);background:#fce8e8}
.payment-option input[type=radio]{accent-color:var(--primary)}

/* ─── Account Page ────────────────────────────────── */
.account-hero{position:relative;height:260px;overflow:hidden}
.account-hero img{width:100%;height:100%;object-fit:cover}
.account-card{background:var(--white);border-radius:var(--radius) var(--radius) 0 0;margin-top:-24px;position:relative;padding:24px 16px 8px}
.welcome-title{font-size:22px;font-weight:800;margin-bottom:16px}
.more-list{padding:8px 0}
.more-list a{display:flex;align-items:center;gap:14px;padding:14px 0;border-bottom:1px solid var(--border);font-size:14px;font-weight:500;color:var(--black);transition:color var(--transition)}
.more-list a:hover{color:var(--primary)}
.more-list a svg{color:var(--grey);flex-shrink:0}
.more-label{font-size:13px;font-weight:700;margin-bottom:4px;color:var(--grey)}

/* ─── Auth Modal ──────────────────────────────────── */
.modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,0.5);z-index:2000;display:none;align-items:flex-end;backdrop-filter:blur(3px)}
.modal-overlay.open{display:flex}
.modal-sheet{background:var(--white);border-radius:20px 20px 0 0;padding:24px 20px 40px;width:100%;animation:slideUp 0.3s ease;max-height:85vh;overflow-y:auto}
@media(min-width:768px){
  .modal-overlay{align-items:center;justify-content:center}
  .modal-sheet{width:100%;max-width:420px;border-radius:20px;padding:32px;animation:scaleUp 0.3s ease}
}
@keyframes slideUp{from{transform:translateY(100%)}to{transform:translateY(0)}}
@keyframes scaleUp{from{transform:scale(0.95);opacity:0}to{transform:scale(1);opacity:1}}
.modal-handle{width:40px;height:4px;background:var(--border);border-radius:2px;margin:0 auto 20px}
.modal-title{font-size:20px;font-weight:800;margin-bottom:4px}
.modal-subtitle{font-size:13px;color:var(--grey);margin-bottom:20px}
.auth-divider{display:flex;align-items:center;gap:12px;margin:16px 0;color:var(--grey);font-size:12px}
.auth-divider::before,.auth-divider::after{content:'';flex:1;height:1px;background:var(--border)}
.auth-tabs{display:flex;border-bottom:2px solid var(--border);margin-bottom:20px}
.auth-tab{flex:1;padding:10px;text-align:center;font-size:14px;font-weight:600;cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-2px;color:var(--grey);-webkit-tap-highlight-color:transparent;outline:none}
.auth-tab.active{color:var(--primary);border-bottom-color:var(--primary)}

/* ─── Toast ───────────────────────────────────────── */
.toast{position:fixed;bottom:80px;left:50%;transform:translateX(-50%) translateY(20px);background:var(--black);color:#fff;padding:12px 20px;border-radius:var(--radius-sm);font-size:14px;font-weight:500;z-index:3000;opacity:0;transition:all var(--transition);white-space:nowrap;pointer-events:none}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
.toast.success{background:var(--success)}
.toast.error{background:var(--error)}

/* ─── Empty State ─────────────────────────────────── */
.empty-state{text-align:center;padding:60px 24px}
.empty-state__icon{font-size:56px;margin-bottom:12px}
.empty-state__title{font-size:18px;font-weight:700;margin-bottom:8px}
.empty-state__text{font-size:14px;color:var(--grey);margin-bottom:20px}

/* ─── Page Title ──────────────────────────────────── */
.page-title{font-size:22px;font-weight:800;text-align:center;padding:20px 16px 4px;letter-spacing:-0.5px}
.page-subtitle{text-align:center;color:var(--grey);font-size:13px;padding:0 16px 16px}

/* ─── Related Products ────────────────────────────── */
.products-hscroll{display:flex;gap:16px;overflow-x:auto;padding:0 16px 16px;scrollbar-width:none}
.products-hscroll::-webkit-scrollbar{display:none}
.products-hscroll .product-card{min-width:160px;flex:0 0 auto;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--white)}

@media (min-width: 768px) {
  .products-hscroll {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 0;
    overflow-x: visible;
  }
  .products-hscroll .product-card {
    min-width: 0;
    flex: auto;
    border: none;
    border-radius: 0;
  }
  .products-hscroll .product-card__img-wrap {
    border-radius: var(--radius-sm);
  }
  .products-hscroll .product-card__info {
    padding: 12px 0 0;
  }
}

@media (min-width: 1024px) {
  .products-hscroll {
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
  }
}

/* ─── Wishlist ────────────────────────────────────── */
.wishlist-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;padding:16px 12px}

/* ─── Load More ───────────────────────────────────── */
.load-more-wrap{text-align:center;padding:20px}

/* ─── Order Status Chips ──────────────────────────── */
.status-chip{display:inline-block;padding:4px 10px;border-radius:20px;font-size:12px;font-weight:700}
.status-pending{background:#FFF9C4;color:#827717}
.status-confirmed{background:#E8F5E9;color:var(--success)}
.status-shipped{background:#E3F2FD;color:#1565C0}
.status-delivered{background:#E8F5E9;color:var(--success)}
.status-cancelled{background:#FFEBEE;color:var(--error)}

/* ─── Skeleton Loader ─────────────────────────────── */
@keyframes shimmer{0%{background-position:-1000px 0}100%{background-position:1000px 0}}
.skeleton{background:linear-gradient(90deg,#f0f0f0 25%,#e0e0e0 50%,#f0f0f0 75%);background-size:1000px 100%;animation:shimmer 2s infinite;border-radius:4px}

/* ─── Admin link (desktop) ───────────────────────── */
@media(min-width:1024px){
  body{padding-bottom:0}
  .bottom-nav{display:none}
  .product-grid{grid-template-columns:repeat(6,1fr)}
  .product-card{border-radius:0}  /* keep flush on desktop grid too */
}

/* ─── Responsive tweaks ───────────────────────────── */
@media(max-width:480px){
  .hero-slide__title{font-size:22px}
  .product-info__price .current{font-size:20px}
}

/* ─── Page-specific padding ───────────────────────── */
.main-content{padding-bottom:20px}
.sticky-ctas{position:sticky;bottom:calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));background:var(--white);padding:12px 16px;border-top:1px solid var(--border);display:flex;gap:10px;z-index:100}
@media(min-width:768px){
  .sticky-ctas{position:static;padding:12px 0;border-top:none;bottom:auto;background:transparent}
  .product-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:start;margin-top:24px}
  
  .product-detail-gallery{position:sticky;top:calc(var(--header-h) + 24px);margin:0;display:flex;gap:16px;align-items:flex-start}
  
  /* Desktop Gallery Styles */
  .mobile-gallery-track, .mobile-gallery-container, .mobile-only-dots, .mobile-thumbnails { display: none !important; }
  .gallery-thumbnails { display: flex; flex-direction: column; gap: 12px; width: 70px; flex-shrink: 0; }
  @media(min-width:1024px){ .gallery-thumbnails { width: 80px; gap: 16px; } }
  .thumb-btn { width: 100%; aspect-ratio: 3/4; border: 2px solid transparent; border-radius: var(--radius-sm); overflow: hidden; background: var(--grey-light); padding: 0; transition: border-color 0.2s; }
  .thumb-btn.active { border-color: var(--primary); }
  .thumb-btn img { width: 100%; height: 100%; object-fit: cover; }
  
  .product-gallery { flex: 1; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; position: relative; }
  .gallery-main { display: block; width: 100%; aspect-ratio: 3/4; overflow: hidden; background: var(--grey-light); position: relative; cursor: zoom-in; }
  .gallery-main img { width: 100%; height: 100%; object-fit: contain; object-position: center center; transition: transform 0.1s ease-out, opacity 0.15s ease-in-out; transform-origin: center center; padding: 0; }
  
  .desktop-gallery-nav {
    display: flex;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: var(--black);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
  }
  .desktop-gallery-nav:hover {
    background: var(--white);
    transform: translateY(-50%) scale(1.05);
    color: var(--primary);
  }
  .desktop-gallery-nav.prev {
    left: 16px;
  }
  .desktop-gallery-nav.next {
    right: 16px;
  }
  
  .product-info{padding-left:0;padding-right:0}
  .gallery-slide{aspect-ratio:3/4}
}

/* ─── Site Footer ─────────────────────────────────── */
.site-footer{background:#111;color:#fff;padding:40px 0 0;margin-top:32px}
.site-footer__inner{max-width:1280px;margin:0 auto;padding:0 20px 32px;display:grid;grid-template-columns:1fr;gap:32px}
@media(min-width:768px){.site-footer__inner{grid-template-columns:1fr 2fr}}
.site-footer__logo{font-size:22px;font-weight:800;letter-spacing:-0.5px;color:#fff;margin-bottom:8px}
.site-footer__tagline{font-size:13px;color:#999;margin-bottom:12px;line-height:1.6}
.site-footer__contact{display:block;font-size:13px;color:#bbb;margin-bottom:4px;transition:color 0.2s}
.site-footer__contact:hover{color:var(--primary)}
.site-footer__links{display:grid;grid-template-columns:repeat(2,1fr);gap:24px}
@media(min-width:480px){.site-footer__links{grid-template-columns:repeat(4,1fr)}}
.site-footer__col-title{font-size:12px;font-weight:700;letter-spacing:1.5px;text-transform:uppercase;color:#fff;margin-bottom:12px}
.site-footer__link{display:block;font-size:13px;color:#999;margin-bottom:8px;transition:color 0.2s}
.site-footer__link:hover{color:var(--primary)}
.site-footer__bottom{border-top:1px solid #222;padding:16px 20px;text-align:center;font-size:12px;color:#666}

/* ─── Policy Pages ────────────────────────────────── */
.policy-hero{background:linear-gradient(135deg,#111 0%,#2a2a2a 100%);color:#fff;padding:48px 20px;text-align:center}
.policy-hero h1{font-size:28px;font-weight:800;margin-bottom:8px;letter-spacing:-0.5px}
.policy-hero p{font-size:14px;color:#aaa}
@media(min-width:768px){.policy-hero h1{font-size:36px}}
.policy-body{max-width:800px;margin:0 auto;padding:32px 20px 60px}
.policy-body h2{font-size:18px;font-weight:700;margin:28px 0 10px;color:#111}
.policy-body h3{font-size:15px;font-weight:600;margin:18px 0 8px;color:#333}
.policy-body p{font-size:14px;line-height:1.8;color:#444;margin-bottom:12px}
.policy-body ul{padding-left:20px;margin-bottom:12px}
.policy-body ul li{font-size:14px;line-height:1.8;color:#444;margin-bottom:4px;list-style:disc}
.policy-body a:not(.btn){color:var(--primary);text-decoration:underline}
.policy-body .policy-updated{font-size:12px;color:#999;margin-bottom:24px}
.policy-card{background:#f9f9f9;border-radius:var(--radius);padding:20px;margin-bottom:16px;border-left:4px solid var(--primary)}
.policy-card h3{margin-top:0}

/* ─── Contact Page ────────────────────────────────── */
.contact-grid{display:grid;grid-template-columns:1fr;gap:24px;max-width:900px;margin:0 auto;padding:32px 20px 60px}
@media(min-width:768px){.contact-grid{grid-template-columns:1fr 1fr}}
.contact-info-card{background:#f9f9f9;border-radius:var(--radius);padding:24px}
.contact-info-item{display:flex;align-items:flex-start;gap:12px;margin-bottom:20px}
.contact-info-icon{width:40px;height:40px;background:var(--primary);border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;flex-shrink:0;font-size:18px}
.contact-info-label{font-size:12px;color:#888;font-weight:600;text-transform:uppercase;letter-spacing:1px;margin-bottom:2px}
.contact-info-val{font-size:14px;color:#111;font-weight:500}
.contact-form-card{background:#fff;border-radius:var(--radius);padding:24px;border:1.5px solid var(--border)}
.contact-form-card h2{font-size:18px;font-weight:700;margin-bottom:20px}
.contact-success{display:none;text-align:center;padding:32px;background:#E8F5E9;border-radius:var(--radius)}
.contact-success-icon{font-size:48px;margin-bottom:12px}

/* ─── PWA Install Banner ──────────────────────────── */
.pwa-banner {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 16px;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  border: none;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  gap: 12px;
}
@media (min-width: 1024px) {
  .pwa-banner {
    padding: 12px 24px;
  }
}
.pwa-banner__icon-bg {
  width: 44px;
  height: 44px;
  background: var(--white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  border: 1px solid #eaeaea;
}
.pwa-banner__content {
  flex: 1;
}
.pwa-banner__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 2px;
  line-height: 1.2;
}
.pwa-banner__desc {
  font-size: 11px;
  color: var(--grey);
  line-height: 1.3;
  margin-bottom: 4px;
}
.pwa-banner__rating {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
}
.pwa-banner__rating .stars {
  letter-spacing: 1px;
}
.pwa-banner__btn {
  padding: 7px 16px;
  font-size: 12px;
  border-radius: 4px;
  flex-shrink: 0;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}
.pwa-banner__btn:hover {
  background: var(--primary-dark);
}
.pwa-banner__close {
  color: var(--grey);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: -2px;
  background: none;
  border: none;
  cursor: pointer;
}

@keyframes iconBounce {
  0% { transform: scale(1); }
  30% { transform: scale(1.25) translateY(-3px); }
  60% { transform: scale(0.9) translateY(1px); }
  100% { transform: scale(1) translateY(0); }
}
.icon-bounce {
  animation: iconBounce 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

