/* ============================================
   Gifty — Clean Professional E-Commerce
   Inspired by NerdArena.in
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ---- Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #ffffff;
  color: #111111;
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; background: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ---- Variables ---- */
:root {
  --black: #111111;
  --white: #ffffff;
  --gray-50:  #f9f9f9;
  --gray-100: #f3f3f3;
  --gray-200: #e8e8e8;
  --gray-400: #999999;
  --gray-600: #555555;
  --yellow: #f5e642;
  --red:    #e02020;
  --green:  #1a7a3e;
  --max-w: 1280px;
  --pad: clamp(16px, 4vw, 48px);
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--black); border-radius: 3px; }

/* ============================================
   ANNOUNCEMENT BAR
   ============================================ */
.ann-bar {
  background: var(--yellow);
  padding: 9px 0;
  overflow: hidden;
  position: relative;
  z-index: 100;
}
.ann-bar__track {
  display: flex;
  gap: 0;
  animation: ticker 35s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.ann-bar__track span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 40px;
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  border-right: 1px solid rgba(0,0,0,0.15);
}
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 210;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}
.header__top {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--black);
}
.header__logo-icon {
  font-size: 28px;
}
.header__logo-sub {
  display: block;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gray-400);
  line-height: 1;
}
.header__search-wrap {
  width: 100%;
  max-width: 420px;
  position: relative;
}
.header__search-wrap input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: var(--gray-50);
  color: var(--black);
  transition: border-color .2s, background .2s;
}
.header__search-wrap input:focus {
  outline: none;
  border-color: var(--black);
  background: var(--white);
}
.header__search-wrap input::placeholder { color: var(--gray-400); }
.header__search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 15px;
  pointer-events: none;
}
/* AI icon version — same positioning */
.header__search-icon-img {
  position: absolute !important;
  left: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 17px !important;
  height: 17px !important;
  object-fit: contain !important;
  opacity: 0.45 !important;
  pointer-events: none !important;
  z-index: 1;
}
.header__actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}
.header__btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  transition: all .2s;
}
.header__btn:hover {
  border-color: var(--black);
  background: var(--black);
  color: var(--white);
}
.header__btn--wa {
  background: #25D366;
  border-color: #25D366;
  color: var(--white);
}
.header__btn--wa:hover {
  background: #1eb858;
  border-color: #1eb858;
  color: var(--white);
}
.header__nav {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}
.header__nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.header__nav-inner::-webkit-scrollbar { display: none; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  white-space: nowrap;
  border-bottom: 2.5px solid transparent;
  transition: border-color .2s, color .2s;
  cursor: pointer;
}
.nav-link:hover, .nav-link.active {
  border-bottom-color: var(--black);
}
.nav-link__count {
  font-size: 11px;
  font-weight: 700;
  background: var(--black);
  color: var(--white);
  padding: 1px 6px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}
.nav-link.active .nav-link__count {
  background: var(--red);
}

/* Mobile search toggle */
.header__mobile-search-btn {
  display: none;
  padding: 8px;
  font-size: 18px;
}
.mobile-search-bar {
  display: none;
  padding: 12px 16px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}
.mobile-search-bar.open { display: block; }
.mobile-search-bar input {
  width: 100%;
  padding: 10px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
}
.mobile-search-bar input:focus { outline: none; border-color: var(--black); }

/* ============================================
   HERO / MARQUEE SECTION
   ============================================ */
.hero {
  background: var(--black);
  padding: 72px var(--pad);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero__content { position: relative; z-index: 1; }
.hero__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 20px;
}
.hero__title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -2px;
  line-height: 1.0;
  margin-bottom: 20px;
}
.hero__title em {
  font-style: normal;
  color: var(--yellow);
}
.hero__sub {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  max-width: 480px;
  margin: 0 auto 36px;
}
.hero__ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  transition: all .2s;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-black {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}
.btn-black:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--black);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}
.btn-solid {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.btn-solid:hover {
  background: #333;
  border-color: #333;
}
.btn-solid-sm {
  padding: 10px 20px;
  font-size: 13px;
}
.hero__stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  margin-top: 52px;
  flex-wrap: wrap;
}
.hero__stat-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--yellow);
}
.hero__stat-label {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 2px;
}

/* ============================================
   SCROLLING MARQUEE TEXT
   ============================================ */
.marquee-section {
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
  padding: 20px 0;
}
.marquee-text {
  display: flex;
  animation: marquee-scroll 20s linear infinite;
  width: max-content;
}
.marquee-text span {
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--white);
  white-space: nowrap;
  padding: 0 40px;
  letter-spacing: -1px;
  opacity: 0.15;
}
.marquee-text span:nth-child(3n+1) { opacity: 1; color: var(--white); }
.marquee-text span:nth-child(3n+2) { opacity: 0.15; }
.marquee-text span.dot { color: var(--yellow); opacity: 1; }
@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   COLLECTION TILES
   ============================================ */
.collections {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px var(--pad) 40px;
}
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
}
.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.5px;
}
.section-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-400);
  padding-bottom: 1px;
  transition: color .2s;
}
.section-link:hover { color: var(--black); border-color: var(--black); }

.collection-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.collection-tile {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: var(--gray-100);
}
.collection-tile__bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  transition: transform .4s ease;
}
.collection-tile:hover .collection-tile__bg { transform: scale(1.1); }
.collection-tile__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 60%);
}
.collection-tile__label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  color: var(--white);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.3px;
}
.collection-tile__count {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  margin-top: 2px;
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */
.products-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px var(--pad) 80px;
}
.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.filter-row__left {
  font-size: 13px;
  color: var(--gray-600);
}
.filter-row__left strong { color: var(--black); font-weight: 700; }
.filter-row__sort {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--gray-600);
}
.sort-select {
  padding: 8px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 7px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  background: var(--white);
  cursor: pointer;
  appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
}
.sort-select:focus { outline: none; border-color: var(--black); }
.sort-select option { background: var(--white); }

/* ============================================
   PRODUCT GRID + CARDS
   ============================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  transform: translateY(-3px);
}
.product-card__img-wrap {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--gray-50);
}
.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-card__img { transform: scale(1.06); }
.product-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: var(--gray-400);
  font-size: 12px;
  text-align: center;
  padding: 16px;
}
.product-card__placeholder-emoji { font-size: 3rem; }
/* Badges */
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  z-index: 2;
}
.badge-sale { background: var(--red); color: var(--white); }
.badge-new  { background: var(--black); color: var(--white); }
.badge-last { background: #e07000; color: var(--white); }
.badge-booked { background: #555; color: var(--white); }
.badge-sold  { background: var(--gray-400); color: var(--white); }

/* Quick view btn */
.product-card__quick {
  padding: 11px 14px;
  background: var(--white);
  color: var(--black);
  border: 1.5px solid var(--gray-200);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s;
  flex-shrink: 0;
}
.product-card__quick:hover {
  border-color: var(--black);
  background: var(--black);
  color: var(--white);
}

.product-card__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-card__cat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gray-400);
  margin-bottom: 6px;
}
.product-card__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
  flex: 1;
}
.product-card__price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.price-current {
  font-size: 18px;
  font-weight: 800;
  color: var(--black);
}
.price-original {
  font-size: 13px;
  color: var(--gray-400);
  text-decoration: line-through;
}
.price-discount {
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  margin-left: auto;
}
.product-card__footer {
  display: flex;
  gap: 8px;
}
.btn-order {
  flex: 1;
  padding: 11px 14px;
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-order:hover { background: #333; }
.btn-order.sold-out {
  background: var(--gray-200);
  color: var(--gray-400);
  cursor: not-allowed;
}
/* Instagram shortcut removed from cards — hide if present */
.btn-insta { display: none; }

/* No results */
.no-results {
  grid-column: 1/-1;
  text-align: center;
  padding: 80px 20px;
}
.no-results__emoji { font-size: 4rem; margin-bottom: 16px; }
.no-results h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; }
.no-results p { color: var(--gray-600); font-size: 14px; }

/* ============================================
   PRODUCT MODAL
   ============================================ */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all .3s;
}
.overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--white);
  border-radius: 14px;
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  transform: scale(0.95) translateY(16px);
  transition: transform .3s;
  scrollbar-width: thin;
}
.overlay.open .modal { transform: scale(1) translateY(0); }
.modal__img-side {
  position: relative;
  background: var(--gray-50);
  border-radius: 14px 0 0 14px;
  overflow: hidden;
  min-height: 420px;
}
.modal__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s;
  z-index: 5;
  font-weight: 700;
}
.modal__close:hover { background: var(--black); color: var(--white); border-color: var(--black); }
.modal__info {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
}
.modal__cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 8px;
}
.modal__name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 16px;
}
.modal__price-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.modal__price {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--black);
}
.modal__orig-price {
  font-size: 1rem;
  color: var(--gray-400);
  text-decoration: line-through;
}
.stock-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 18px;
  width: fit-content;
}
.stock-pill::before {
  content: '●';
  font-size: 8px;
}
.stock-pill.in-stock { background: #e6f4ec; color: var(--green); }
.stock-pill.sold-out { background: #fce8e8; color: var(--red); }
.stock-pill.booked   { background: #fff3e0; color: #e07000; }
.stock-pill.last     { background: #fff3e0; color: #e07000; }
.modal__desc {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
}
.modal__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}
.tag {
  padding: 4px 10px;
  background: var(--gray-100);
  border-radius: 5px;
  font-size: 11px;
  color: var(--gray-600);
  font-weight: 500;
}
.modal__actions { display: flex; flex-direction: column; gap: 10px; }
.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  background: #25D366;
  color: var(--white);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  transition: background .2s;
}
.btn-whatsapp:hover { background: #1eb858; }
.btn-view-insta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  color: var(--black);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  transition: all .2s;
}
.btn-view-insta:hover {
  background: var(--gray-50);
  border-color: var(--black);
}

/* ============================================
   TRUST BAR
   ============================================ */
.trust-bar {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}
.trust-bar__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 20px;
  border-right: 1px solid var(--gray-200);
}
.trust-item:last-child { border-right: none; }
.trust-item__icon { font-size: 1.6rem; flex-shrink: 0; }
.trust-item__title { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.trust-item__desc  { font-size: 11px; color: var(--gray-600); line-height: 1.4; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 64px var(--pad) 32px;
}
.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer__brand { font-size: 22px; font-weight: 900; margin-bottom: 12px; color: var(--white); }
.footer__brand span { color: var(--yellow); }
.footer__desc { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.7; margin-bottom: 24px; }
.footer__social-links { display: flex; gap: 10px; }
.footer__social-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all .2s;
  color: var(--white);
  cursor: pointer;
}
.footer__social-btn:hover { background: var(--yellow); color: var(--black); border-color: var(--yellow); }
.footer__col-title { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 18px; }
.footer__links li { margin-bottom: 10px; }
.footer__links a { font-size: 13px; color: rgba(255,255,255,0.65); transition: color .2s; }
.footer__links a:hover { color: var(--white); }
.footer__newsletter-desc { font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 14px; }
.footer__newsletter-form { display: flex; gap: 8px; }
.footer__newsletter-input {
  flex: 1;
  padding: 10px 14px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 7px;
  color: var(--white);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
}
.footer__newsletter-input::placeholder { color: rgba(255,255,255,0.3); }
.footer__newsletter-input:focus { border-color: var(--yellow); }
.footer__newsletter-btn {
  padding: 10px 18px;
  background: var(--yellow);
  color: var(--black);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  transition: background .2s;
}
.footer__newsletter-btn:hover { background: #e8d600; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer__copy { font-size: 12px; color: rgba(255,255,255,0.35); }
.footer__payments { font-size: 12px; color: rgba(255,255,255,0.35); }

/* ============================================
   UTILITY
   ============================================ */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 80;
  background: #25D366;
  color: var(--white);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: all .2s;
  text-decoration: none;
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.55);
  color: var(--white);
}
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50%       { box-shadow: 0 4px 20px rgba(37,211,102,0.4), 0 0 0 10px rgba(37,211,102,0.08); }
}
.wa-float { animation: wa-pulse 2.5s ease-in-out infinite; }

.back-top {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 80;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  color: var(--black);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .2s;
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { background: var(--black); color: var(--white); border-color: var(--black); }

/* Fade in */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s ease, transform .55s ease;
}
.fade-up.in { opacity: 1; transform: none; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media(max-width: 1100px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media(max-width: 900px) {
  .collection-tiles { grid-template-columns: repeat(2, 1fr); }
  .trust-bar__inner { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: none; }
  .modal { grid-template-columns: 1fr; }
  .modal__img-side { min-height: 280px; border-radius: 14px 14px 0 0; }
  .modal__info { padding: 24px 24px; }
}
@media(max-width: 768px) {
  .header__top { grid-template-columns: 1fr auto; }
  .header__search-wrap { display: none; }
  .header__mobile-search-btn { display: flex; }
  #insta-btn { display: none; }
  .header__logo { font-size: 21px; gap: 10px; }
  .header__logo-sub { display: none; }
  .header__logo-img { width: 44px; height: 44px; border-radius: 8px; }
  .header__actions { gap: 6px; }
  .header__login-btn { padding: 9px 12px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .hero__title { letter-spacing: -1px; }
  .hero__stats { gap: 24px; }
}
@media(max-width: 480px) {
  .header__top { gap: 10px; }
  .header__logo { font-size: 18px; }
  .header__logo-img { width: 40px; height: 40px; }
  .header__login-btn { padding: 8px 10px; font-size: 12px; }
  .header__cart-btn,
  .header__mobile-search-btn { width: 40px; height: 40px; }
  .collection-tiles { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-card__body { padding: 12px; }
  .product-card__name { font-size: 12px; }
  .price-current { font-size: 15px; }
  .btn-order { font-size: 12px; padding: 9px 10px; }
  .trust-bar__inner { grid-template-columns: 1fr; }
  .trust-item { border-right: none; border-bottom: 1px solid var(--gray-200); }
  .trust-item:last-child { border-bottom: none; }
  .hero__ctas { flex-direction: column; }
  .wa-float, .back-top { bottom: 16px; }
  .wa-float { right: 16px; }
  .back-top { left: 16px; }
}

/* ============================================
   PRODUCT DETAIL PAGE (PDP)
   Modelled after NerdArena.in product page
   ============================================ */

/* Full-page slide-in overlay */
.pdp-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--white);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
  scrollbar-width: thin;
  /* Content starts below the sticky site header (72px top bar + 49px nav) */
  padding-top: 122px;
}
.pdp-overlay.open {
  transform: translateX(0);
}

/* ---- PDP inner container ---- */
.pdp {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad) 80px;
  min-height: 100vh;
}

/* ---- PDP Top bar (breadcrumb + back) ---- */
.pdp-header {
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  /* Stick just below the main site header (72px) + site nav (49px) */
  top: -122px;
  background: var(--white);
  z-index: 10;
}
.pdp-header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  max-width: var(--max-w);
}
.pdp-back {
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 7px;
  white-space: nowrap;
  transition: all .2s;
  cursor: pointer;
  background: var(--white);
}
.pdp-back:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.pdp-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--gray-400);
  flex-wrap: wrap;
}
.pdp-breadcrumb a, .pdp-breadcrumb span {
  color: var(--gray-400);
  cursor: pointer;
  transition: color .15s;
}
.pdp-breadcrumb a:hover { color: var(--black); }
.pdp-breadcrumb .sep { color: var(--gray-200); }
.pdp-breadcrumb .current { color: var(--black); font-weight: 600; }

/* ---- PDP Main Layout ---- */
.pdp-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding-top: 40px;
  align-items: start;
}

/* ---- Gallery ---- */
.pdp-gallery {
  position: sticky;
  top: 64px;
}
.pdp-gallery__main-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--gray-50);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
}
.pdp-gallery__main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
  display: block;
}
.pdp-gallery__main-wrap:hover .pdp-gallery__main-img {
  transform: scale(1.04);
}
/* Dynamic media wrapper fill */
#pdp-main-wrap {
  width: 100%;
  height: 100%;
  display: block;
}
#pdp-main-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  display: block;
  transition: transform .4s ease;
}
#pdp-main-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  border-radius: 12px;
  display: block;
}
#pdp-main-wrap:hover img {
  transform: scale(1.04);
}
/* Thumbnail video preview */
.pdp-gallery__thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.pdp-gallery__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
}
.pdp-gallery__badge .badge {
  position: static;
  display: inline-block;
}
/* Thumbnails */
.pdp-gallery__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.pdp-gallery__thumbs::-webkit-scrollbar { display: none; }
.pdp-gallery__thumb {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--gray-200);
  cursor: pointer;
  transition: border-color .15s;
  background: var(--gray-50);
}
.pdp-gallery__thumb:hover { border-color: var(--black); }
.pdp-gallery__thumb.active { border-color: var(--black); }
.pdp-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- Product Info Panel ---- */
.pdp-info {
  position: sticky;
  top: 80px;
}
.pdp-info__vendor {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 8px;
}
.pdp-info__name {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--black);
}
.pdp-info__price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.pdp-info__price {
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--black);
}
.pdp-info__orig {
  font-size: 1.1rem;
  color: var(--gray-400);
  text-decoration: line-through;
}
.pdp-info__pct {
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  background: #fce8e8;
  padding: 3px 8px;
  border-radius: 5px;
}
.pdp-info__stock {
  margin-bottom: 16px;
}
.pdp-info__stock .stock-pill {
  font-size: 13px;
}

/* Urgency bar — "Hurry up! Only X left" */
.pdp-urgency {
  margin-bottom: 20px;
}
.pdp-urgency__bar {
  height: 6px;
  background: var(--gray-200);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}
.pdp-urgency__fill {
  height: 100%;
  background: linear-gradient(to right, #ff6b35, var(--red));
  border-radius: 3px;
  transition: width .6s ease;
}
.pdp-urgency__text {
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
}

.pdp-info__desc {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 20px;
  white-space: pre-line;
}
.pdp-info__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 28px;
}

/* Action buttons */
.pdp-info__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.pdp-btn-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  background: #25D366;
  color: var(--white);
  border-radius: 9px;
  font-size: 15px;
  font-weight: 700;
  transition: background .2s, transform .15s;
  text-decoration: none;
}
.pdp-btn-wa:hover { background: #1eb858; transform: translateY(-1px); color: var(--white); }
.pdp-btn-wa.disabled {
  background: var(--gray-200);
  color: var(--gray-400);
  pointer-events: none;
}
.pdp-btn-insta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  background: var(--white);
  color: var(--black);
  border: 1.5px solid var(--gray-200);
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  transition: all .2s;
  text-decoration: none;
}
.pdp-btn-insta:hover {
  background: #f5f5f5;
  border-color: #c13584;
  color: #c13584;
}

/* Perks list */
.pdp-perks {
  border-top: 1px solid var(--gray-200);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pdp-perk {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--gray-600);
}
.pdp-perk span:first-child { font-size: 1.1rem; }

/* ---- You May Also Like ---- */
.pdp-related {
  margin-top: 80px;
  border-top: 1px solid var(--gray-200);
  padding-top: 48px;
}
.pdp-related__inner {
  max-width: var(--max-w);
}
.pdp-related__title {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 28px;
}
.pdp-related__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ---- Responsive PDP ---- */
@media(max-width: 900px) {
  .pdp-main {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .pdp-gallery {
    position: static;
  }
  .pdp-info {
    position: static;
  }
  .pdp-related__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media(max-width: 480px) {
  .pdp-gallery__thumbs {
    gap: 8px;
  }
  .pdp-gallery__thumb {
    width: 64px;
    height: 64px;
  }
  .pdp-related__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .pdp-info__name {
    font-size: 1.3rem;
  }
  .pdp-info__price {
    font-size: 1.5rem;
  }
}

/* ============================================
   AI ICON REPLACEMENTS
   ============================================ */
.header__logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 10px;
  flex-shrink: 0;
}
.header__search-icon-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  opacity: 0.5;
  flex-shrink: 0;
}
.trust-item__icon-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
}
.nav-link__icon-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  vertical-align: middle;
}
/* remove the old span icon style conflicts */
.trust-item__icon { display: none; }

/* WhatsApp float with icon */
.wa-float {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}
.wa-float img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

/* ============================================
   CART BUTTON IN HEADER
   ============================================ */
.header__cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  color: var(--black);
  cursor: pointer;
  transition: all .2s;
  flex-shrink: 0;
}
.header__cart-btn:hover { border-color: var(--black); background: var(--black); color: var(--white); }
.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  background: #ef4444;
  color: #fff;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
  border: 2px solid var(--white);
  transition: transform .2s;
}
.cart-badge.bump { animation: badgeBump .3s cubic-bezier(.36,.07,.19,.97); }
@keyframes badgeBump {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.5); }
  70%  { transform: scale(.9); }
  100% { transform: scale(1); }
}

/* ============================================
   HEADER LOGIN / USER BUTTON
   ============================================ */
.header__login-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  background: var(--white);
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.header__login-btn:hover { border-color: var(--black); background: var(--black); color: var(--white); }

.header__user-wrap { position: relative; }
.header__user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border: 1.5px solid var(--gray-200);
  border-radius: 999px;
  background: var(--white);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  transition: all .2s;
}
.header__user-btn:hover { border-color: var(--black); }
.header__user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* User dropdown */
.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 12px;
  padding: 8px;
  min-width: 180px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all .2s;
  z-index: 200;
}
.user-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.user-dropdown__email {
  font-size: 11px;
  color: var(--gray-400);
  padding: 4px 8px 10px;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 6px;
  word-break: break-all;
}
.user-dropdown__item {
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--black);
  transition: background .15s;
  display: block;
}
.user-dropdown__item:hover { background: var(--gray-100); }
.user-dropdown__item--danger { color: #ef4444; }
.user-dropdown__item--danger:hover { background: #fef2f2; }

/* ============================================
   CART DRAWER
   ============================================ */
.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: all .3s;
}
.cart-backdrop.show { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 100vw;
  background: var(--white);
  z-index: 301;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  box-shadow: -8px 0 40px rgba(0,0,0,.12);
}
.cart-drawer.open { transform: translateX(0); }

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-200);
  flex-shrink: 0;
}
.cart-drawer__title { font-size: 1.1rem; font-weight: 800; }
.cart-drawer__close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
}
.cart-drawer__close:hover { background: var(--black); color: var(--white); border-color: var(--black); }

.cart-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
  color: var(--gray-400);
}

.cart-items-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  scrollbar-width: thin;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-100);
  position: relative;
}
.cart-item:last-child { border-bottom: none; }
.cart-item__img {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--gray-100);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}
.cart-item__price { font-size: 14px; font-weight: 800; margin-bottom: 8px; }
.cart-item__unit { font-size: 11px; font-weight: 400; color: var(--gray-400); }
.cart-item__qty-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all .15s;
}
.qty-btn:hover { border-color: var(--black); background: var(--black); color: var(--white); }
.qty-val { font-size: 14px; font-weight: 700; min-width: 20px; text-align: center; }
.cart-item__del {
  position: absolute;
  top: 14px;
  right: 0;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: none;
  background: none;
  color: var(--gray-400);
  cursor: pointer;
  font-size: 13px;
  transition: color .15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-item__del:hover { color: #ef4444; }

/* Cart footer */
.cart-footer {
  border-top: 1px solid var(--gray-200);
  padding: 16px 20px;
  flex-shrink: 0;
  background: var(--white);
}
.cart-ship-banner {
  font-size: 12px;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 8px;
  background: #fff7ed;
  color: #c2410c;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cart-ship-banner--free { background: #f0fdf4; color: #166534; }
.cart-subtotal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 14px;
}
.cart-subtotal-row strong { font-size: 18px; font-weight: 900; }
.cart-wa-btn {
  width: 100%;
  padding: 14px;
  background: #25D366;
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .2s;
  margin-bottom: 8px;
}
.cart-wa-btn:hover { background: #1eb858; }
.cart-clear-btn {
  width: 100%;
  padding: 10px;
  background: none;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-400);
  cursor: pointer;
  transition: all .15s;
}
.cart-clear-btn:hover { border-color: #ef4444; color: #ef4444; }

/* ============================================
   PDP — Add to Cart Button
   ============================================ */
.pdp-btn-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .15s;
  font-family: inherit;
}
.pdp-btn-cart:hover { background: #222; transform: translateY(-1px); }
.pdp-btn-cart:active { transform: translateY(0); }

/* ============================================
   AUTH MODAL
   ============================================ */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all .25s;
}
.auth-modal-overlay.open { opacity: 1; visibility: visible; }

.auth-modal {
  background: var(--white);
  border-radius: 20px;
  width: 100%;
  max-width: 420px;
  padding: 36px 36px 32px;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,.18);
  transform: scale(.96) translateY(12px);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
.auth-modal-overlay.open .auth-modal { transform: scale(1) translateY(0); }

.auth-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
}
.auth-modal__close:hover { background: var(--black); color: var(--white); border-color: var(--black); }

.auth-modal__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.auth-modal__logo img { width: 36px; height: 36px; object-fit: contain; border-radius: 8px; }
.auth-modal__brand { font-size: 20px; font-weight: 900; letter-spacing: -0.5px; }

/* Tabs */
.auth-tabs {
  display: flex;
  background: var(--gray-100);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 24px;
  gap: 4px;
}
.auth-tab {
  flex: 1;
  padding: 9px;
  border-radius: 7px;
  border: none;
  background: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--gray-400);
  transition: all .2s;
  font-family: inherit;
}
.auth-tab.active { background: var(--white); color: var(--black); box-shadow: 0 2px 8px rgba(0,0,0,.08); }

/* Form panels */
.auth-form-panel { display: none; }
.auth-form-panel.active { display: block; }

.auth-field { margin-bottom: 16px; }
.auth-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-600);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.auth-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 9px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
  background: var(--gray-50);
  color: var(--black);
}
.auth-input:focus { border-color: var(--black); background: var(--white); }
.auth-field-error {
  font-size: 12px;
  font-weight: 600;
  color: #ef4444;
  margin-bottom: 12px;
  min-height: 16px;
}
.auth-submit {
  width: 100%;
  padding: 13px;
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
  font-family: inherit;
  margin-bottom: 14px;
}
.auth-submit:hover { background: #222; }
.auth-switch {
  font-size: 13px;
  color: var(--gray-400);
  text-align: center;
}
.auth-switch a {
  color: var(--black);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.gifty-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--black);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  z-index: 9999;
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(0,0,0,.22);
  opacity: 0;
  transition: opacity .3s, transform .3s;
  pointer-events: none;
}
.gifty-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================
   CHECKOUT MODAL
   ============================================ */
.checkout-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 350;
  display: flex;
  align-items: stretch;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all .3s;
  overflow-y: auto;
}
.checkout-overlay.open { opacity: 1; visibility: visible; }

.checkout-modal {
  background: var(--white);
  width: 100%;
  max-width: 960px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.checkout-overlay.open .checkout-modal { transform: translateY(0); }

/* Header bar */
.checkout-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  border-bottom: 1px solid var(--gray-200);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 5;
}
.checkout-modal__title { font-size: 1.1rem; font-weight: 800; }
.checkout-back {
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  background: none;
  border: 1.5px solid var(--gray-200);
  border-radius: 7px;
  padding: 8px 14px;
  cursor: pointer;
  transition: all .15s;
}
.checkout-back:hover { border-color: var(--black); background: var(--black); color: var(--white); }
.checkout-close {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  font-size: 15px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.checkout-close:hover { background: var(--black); color: var(--white); border-color: var(--black); }

/* Body: two-column layout */
.checkout-body {
  display: grid;
  grid-template-columns: 1fr 400px;
  flex: 1;
  gap: 0;
}

/* Left: form */
.checkout-form-col {
  padding: 32px 36px;
  border-right: 1px solid var(--gray-200);
  overflow-y: auto;
}
.checkout-section-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--black);
  display: inline-block;
}
.checkout-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.checkout-row--3 { grid-template-columns: 1fr 1fr 1fr; }
.checkout-field { margin-bottom: 16px; }
.checkout-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--gray-600);
  margin-bottom: 6px;
}
.req { color: #ef4444; }
.checkout-optional { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--gray-400); font-size: 11px; }
.checkout-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 9px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
  background: var(--gray-50);
  color: var(--black);
  box-sizing: border-box;
}
.checkout-input:focus { border-color: var(--black); background: var(--white); }
.checkout-select { appearance: none; cursor: pointer; }
.checkout-textarea {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}
.checkout-field-error {
  font-size: 13px;
  font-weight: 600;
  color: #ef4444;
  min-height: 18px;
  margin-top: 4px;
}

/* Right: summary */
.checkout-summary-col {
  padding: 32px 28px;
  background: var(--gray-50);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.co-summary-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-200);
}
.co-summary-item:last-child { border-bottom: none; }
.co-summary-item__img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.co-summary-item__img img { width: 100%; height: 100%; object-fit: cover; }
.co-summary-item__info { flex: 1; min-width: 0; }
.co-summary-item__name { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-summary-item__qty  { font-size: 11px; color: var(--gray-400); margin-top: 2px; }
.co-summary-item__price { font-size: 13px; font-weight: 800; flex-shrink: 0; }

.checkout-summary-divider { height: 1px; background: var(--gray-200); margin: 14px 0; }
.checkout-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--gray-600);
}
.checkout-summary-row--total {
  font-size: 16px;
  font-weight: 800;
  color: var(--black);
  border-top: 2px solid var(--black);
  padding-top: 12px;
  margin-top: 4px;
}
.checkout-summary-row--total strong { font-size: 18px; }

.checkout-info-box {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 18px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.5;
}

.checkout-place-btn {
  width: 100%;
  padding: 16px;
  background: #25D366;
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background .2s, transform .15s;
}
.checkout-place-btn:hover { background: #1eb858; transform: translateY(-1px); }
.checkout-wa-note {
  font-size: 11px;
  color: var(--gray-400);
  text-align: center;
  margin-top: 10px;
  line-height: 1.5;
}

/* Responsive checkout */
@media(max-width: 720px) {
  .checkout-body { grid-template-columns: 1fr; }
  .checkout-form-col { border-right: none; border-bottom: 1px solid var(--gray-200); padding: 24px 20px; }
  .checkout-summary-col { padding: 24px 20px; }
  .checkout-row { grid-template-columns: 1fr; }
  .checkout-row--3 { grid-template-columns: 1fr 1fr; }
}
