/* =====================================================
   Ahmad Print Shop — Master Stylesheet v2
   ===================================================== */

/* ─── CSS Variables ─────────────────────────────────── */
:root {
  --primary:     #1a56b0;
  --primary-dk:  #133d82;
  --primary-lt:  #dbeafe;
  --orange:      #ff6b00;
  --orange-dk:   #e05e00;
  --green:       #16a34a;
  --red:         #dc2626;
  --teal:        #0891b2;
  --purple:      #7c3aed;
  --dark:        #0f172a;
  --slate:       #334155;
  --muted:       #64748b;
  --border:      #e2e8f0;
  --bg:          #f8fafc;
  --card:        #ffffff;
  --radius:      14px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --shadow:      0 4px 20px rgba(15,23,42,.06);
  --shadow-md:   0 8px 32px rgba(15,23,42,.10);
  --shadow-lg:   0 20px 60px rgba(15,23,42,.14);
  --transition:  .22s ease;
  --font:        'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ─── Reset & Base ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: color var(--transition); }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font); }
ul { list-style: none; }

/* ─── Utility ───────────────────────────────────────── */
.container-xl { max-width: 1260px; margin: 0 auto; padding: 0 20px; }
.container    { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ─── Promo Bar ─────────────────────────────────────── */
.promo-bar {
  background: linear-gradient(90deg, #0f2f60 0%, #1a56b0 60%, #0f2f60 100%);
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  padding: 9px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.promo-bar a { color: #ffe066; }
.promo-bar a:hover { text-decoration: underline; }

/* ─── Top Contact Bar ───────────────────────────────── */
.top-contact-bar {
  background: #f1f5f9;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  display: none;
}
@media(min-width:768px){ .top-contact-bar { display: block; } }
.top-contact-inner { display: flex; justify-content: space-between; align-items: center; height: 38px; gap: 16px; }
.top-contact-items { display: flex; gap: 18px; }
.top-contact-items a, .top-contact-items span { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; }
.top-contact-items a:hover { color: var(--primary); }
.top-contact-links { display: flex; gap: 12px; }
.top-contact-links a { color: var(--primary); font-weight: 600; font-size: 12px; }
.top-contact-links a:hover { text-decoration: underline; }

/* ─── Site Header ───────────────────────────────────── */
.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 900;
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 4px 24px rgba(15,23,42,.10); }
.header-inner { display: flex; align-items: center; gap: 20px; height: 64px; }

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark { display: flex; align-items: center; }
.logo-text strong { font-size: 20px; font-weight: 900; color: #1a56b0; line-height: 1; }
.logo-text strong span { color: var(--orange); }
.logo-sub { display: block; font-size: 10px; color: var(--muted); font-weight: 500; line-height: 1; margin-top: 2px; }

/* Main Nav */
.main-nav { display: flex; align-items: center; gap: 2px; margin: 0 auto; }
.main-nav > a, .nav-dropdown > a {
  display: flex; align-items: center; gap: 4px;
  padding: 7px 11px; font-size: 13.5px; font-weight: 600;
  color: var(--slate); border-radius: 8px; white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}
.main-nav > a:hover, .nav-dropdown > a:hover { background: var(--bg); color: var(--primary); }
.main-nav > a.active { color: var(--primary); }
.nav-dropdown { position: relative; }
.nav-dropdown .dropdown-menu {
  display: none; position: absolute; top: calc(100% + 8px); left: 0;
  background: white; border: 1px solid var(--border); border-radius: var(--radius);
  min-width: 200px; box-shadow: var(--shadow-md); z-index: 800; padding: 8px 0;
}
.nav-dropdown .dropdown-menu a { display: block; padding: 9px 18px; font-size: 13.5px; font-weight: 500; color: var(--slate); }
.nav-dropdown .dropdown-menu a:hover { background: var(--bg); color: var(--primary); }
.nav-dropdown:hover .dropdown-menu { display: block; }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.hdr-btn {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: 10px; color: var(--slate); font-size: 16px;
  background: transparent; border: none;
  transition: background var(--transition), color var(--transition);
}
.hdr-btn:hover { background: var(--bg); color: var(--primary); }
.hdr-cart {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; background: var(--primary); color: white;
  border-radius: 12px; font-size: 18px;
  transition: background var(--transition), transform var(--transition);
}
.hdr-cart:hover { background: var(--primary-dk); transform: scale(1.05); color: white; }
.cart-badge {
  position: absolute; top: -6px; right: -6px;
  background: var(--orange); color: white; font-size: 10px; font-weight: 800;
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; border: 2px solid white;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none; flex-direction: column; gap: 5px; justify-content: center; align-items: center;
  width: 40px; height: 40px; background: none; border: none; padding: 8px; cursor: pointer;
  border-radius: 10px; transition: background .2s;
}
.mobile-menu-btn:hover { background: var(--bg); }
.mobile-menu-btn span {
  display: block; width: 22px; height: 2px; background: var(--dark);
  border-radius: 2px; transition: transform .3s, opacity .3s;
}
.mobile-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: white; border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md); z-index: 800; max-height: 0; overflow: hidden;
  transition: max-height .3s ease, opacity .3s;
  opacity: 0;
}
.mobile-nav.open { max-height: 80vh; overflow-y: auto; opacity: 1; }
.mobile-nav-inner { padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.mob-link {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  border-radius: 10px; font-weight: 600; color: var(--slate); font-size: 15px;
  transition: background .2s, color .2s;
}
.mob-link:hover { background: var(--bg); color: var(--primary); }
.mob-link i { width: 20px; color: var(--primary); }
.btn-mob-login { background: var(--primary); color: white !important; margin-top: 8px; justify-content: center; }
.btn-mob-login:hover { background: var(--primary-dk); }

@media(max-width:900px) {
  .main-nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .mobile-nav { display: block; }
  .logo-sub { display: none; }
}

/* ─── Buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 12px;
  font-size: 14px; font-weight: 700; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: all var(--transition); white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: white; box-shadow: 0 4px 14px rgba(26,86,176,.3); }
.btn-primary:hover { background: var(--primary-dk); color: white; }
.btn-orange { background: var(--orange); color: white; box-shadow: 0 4px 14px rgba(255,107,0,.3); }
.btn-orange:hover { background: var(--orange-dk); color: white; }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary-lt); }
.btn-ghost { background: var(--bg); border-color: var(--border); color: var(--slate); }
.btn-ghost:hover { background: white; border-color: var(--primary); color: var(--primary); }
.btn-whatsapp { background: #25d366; color: white; }
.btn-whatsapp:hover { background: #1da950; color: white; }
.btn-sm { min-height: 36px; padding: 7px 14px; font-size: 13px; border-radius: 10px; }
.btn-lg { min-height: 50px; padding: 12px 24px; font-size: 15px; }
.btn-xl { min-height: 54px; padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-attention {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn-attention::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.08) 40%, rgba(255,255,255,.3) 50%, transparent 60%);
  transform: translateX(-140%);
  animation: btnShimmer 3.6s ease-in-out infinite;
}
.btn-attention:hover::after { animation-duration: 1.8s; }
@keyframes btnShimmer {
  0%, 55% { transform: translateX(-140%); }
  100% { transform: translateX(140%); }
}

/* ─── Alert ─────────────────────────────────────────── */
.alert {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border-radius: 12px; font-size: 14px; font-weight: 500; margin-bottom: 16px;
}
.alert-success { background: #dcfce7; color: #14532d; border: 1px solid #bbf7d0; }
.alert-danger  { background: #fee2e2; color: #7f1d1d; border: 1px solid #fca5a5; }
.alert-warning { background: #fffbeb; color: #78350f; border: 1px solid #fde68a; }
.alert-info    { background: #eff6ff; color: #1e3a5f; border: 1px solid #bfdbfe; }

/* ─── Hero ──────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #060f1e 0%, #0d2347 40%, #1a3a7a 70%, #0f2f60 100%);
  color: white; overflow: hidden; position: relative;
  padding: 0;
}
/* Decorative mesh blobs */
.hero-blob {
  position: absolute; border-radius: 50%; filter: blur(80px); z-index: 0;
  pointer-events: none;
}
.hero-blob-1 {
  width: 500px; height: 500px; top: -120px; right: -80px;
  background: radial-gradient(circle, rgba(26,86,176,.55) 0%, transparent 70%);
  animation: blob-drift 8s ease-in-out infinite alternate;
}
.hero-blob-2 {
  width: 380px; height: 380px; bottom: -80px; left: 10%;
  background: radial-gradient(circle, rgba(255,107,0,.25) 0%, transparent 70%);
  animation: blob-drift 11s ease-in-out infinite alternate-reverse;
}
.hero-blob-3 {
  width: 260px; height: 260px; top: 30%; left: 40%;
  background: radial-gradient(circle, rgba(99,102,241,.2) 0%, transparent 70%);
  animation: blob-drift 14s ease-in-out infinite alternate;
}
@keyframes blob-drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, 20px) scale(1.08); }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  min-height: 620px;
  position: relative;
  z-index: 1;
}

/* ── Hero Content (left) ── */
.hero-content { padding: 64px 0; }
.hero-label {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(12px);
  color: rgba(255,255,255,.92);
  font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  padding: 7px 16px; border-radius: 999px; margin-bottom: 24px;
  max-width: 100%;
}
.hero-label .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80; flex-shrink: 0;
  animation: pulse-dot 1.5s infinite;
}
@keyframes pulse-dot {
  0%,100%{ opacity:1; transform:scale(1); }
  50%    { opacity:.55; transform:scale(.75); }
}
.hero-content h1 {
  font-size: clamp(30px, 4vw, 56px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.03em;
  margin-bottom: 18px;
}
.hero-content h1 span { color: var(--orange); }
.hero-content p {
  font-size: 15.5px;
  color: rgba(255,255,255,.72);
  max-width: 430px;
  margin-bottom: 32px;
  line-height: 1.65;
}

/* CTA Buttons */
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 38px; }
.hero-cta-main {
  box-shadow: 0 6px 22px rgba(255,107,0,.45);
  font-size: 15px;
}
.hero-cta-main:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255,107,0,.55); }
.hero-secondary-cta {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.24);
  color: white;
  box-shadow: 0 6px 22px rgba(15,23,42,.22);
}
.hero-secondary-cta:hover {
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.40);
  color: white;
}

/* Stats */
.hero-stats { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hero-stat-num { font-size: 22px; font-weight: 900; color: #fff; line-height: 1; }
.hero-stat-label { font-size: 11px; color: rgba(255,255,255,.6); margin-top: 3px; font-weight: 500; }
.hero-stat-div { width: 1px; height: 38px; background: rgba(255,255,255,.18); flex-shrink: 0; }

/* ── Hero Visual (right) — layered showcase ── */
.hero-visual {
  position: relative;
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  grid-template-areas:
    "main side1"
    "main side2"
    "bottom bottom";
  gap: 14px;
  padding: 50px 0 50px 8px;
  align-items: start;
}

/* Floating chip above images */
.hero-float-chip {
  position: absolute;
  top: 16px; left: 50%; transform: translateX(-50%);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(10px);
  color: white; font-size: 12px; font-weight: 800;
  padding: 6px 16px; border-radius: 999px;
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap; z-index: 10;
}
.hero-float-chip i { color: var(--orange); }

/* Individual image cards */
.hero-img-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,.38);
  transition: transform .35s ease, box-shadow .35s ease;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.08);
}
.hero-img-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 24px 60px rgba(0,0,0,.46);
}
.hero-img-card-1 { grid-area: main; margin-top: 26px; }
.hero-img-card-2 { grid-area: side1; }
.hero-img-card-3 { grid-area: side2; }
.hero-img-card-4 { grid-area: bottom; }

.hero-img-inner { position: relative; overflow: hidden; }
.hero-img-inner img {
  width: 100%;
  height: 185px;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}
.hero-img-card-1 .hero-img-inner img { height: 520px; object-position: center top; }
.hero-img-card-4 .hero-img-inner img { height: 210px; object-position: center; }
.hero-img-card:hover .hero-img-inner img { transform: scale(1.05); }

/* Gradient overlay on each card */
.hero-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(10,20,50,.72) 100%);
  pointer-events: none;
}

/* Bottom label on each image card */
.hero-img-label {
  position: absolute;
  bottom: 12px; left: 14px;
  color: white; font-size: 12px; font-weight: 800;
  display: flex; align-items: center; gap: 6px;
  text-shadow: 0 1px 6px rgba(0,0,0,.6);
}
.hero-img-label i { color: var(--orange); font-size: 11px; }

/* Badge on first card */
.hero-img-badge {
  position: absolute;
  top: -1px; right: -1px;
  background: var(--orange);
  color: white; font-size: 10.5px; font-weight: 800;
  padding: 5px 13px;
  border-radius: 0 20px 0 14px;
  white-space: nowrap;
  z-index: 5;
  box-shadow: 0 4px 12px rgba(255,107,0,.4);
}

/* ── Responsive: Mobile-First ── */
/* Tablet */
@media(max-width:900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: auto;
  }
  .hero-content {
    padding: 36px 0 28px;
    order: 1;
  }
  .hero-visual {
    order: 2;
    padding: 0 0 36px;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "main side1"
      "main side2"
      "bottom bottom";
    gap: 10px;
  }
  .hero-img-card-1 { margin-top: 0; }
  .hero-img-card-1 .hero-img-inner img { height: 360px; }
  .hero-img-card-2 .hero-img-inner img,
  .hero-img-card-3 .hero-img-inner img { height: 175px; }
  .hero-img-card-4 .hero-img-inner img { height: 180px; }
  .hero-float-chip { top: -18px; }
}

/* Small mobile */
@media(max-width:540px) {
  .hero-visual {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "main main"
      "side1 side2"
      "bottom bottom";
    gap: 8px;
  }
  .hero-img-card-1 .hero-img-inner img { height: 260px; }
  .hero-img-card-2 .hero-img-inner img,
  .hero-img-card-3 .hero-img-inner img,
  .hero-img-card-4 .hero-img-inner img { height: 132px; }
  .hero-img-label { font-size: 10px; bottom: 8px; }
  .hero-btns { flex-direction: column; gap: 10px; }
  .hero-btns .btn { width: 100%; justify-content: center; }
  .hero-content h1 { font-size: clamp(26px, 8vw, 36px); }
  .hero-content p { max-width: 100%; }
  .hero-stats { gap: 14px; }
  .hero-stat-num { font-size: 18px; }
  .hero-float-chip { display: none; }
}

/* Hide 4th image on very small screens */
@media(max-width:380px) {
  .hero-img-card-4 { display: none; }
  .hero-img-inner img { height: 115px; }
}

/* ─── Trust Bar ─────────────────────────────────────── */
.trust-bar {
  background: white; border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.trust-items {
  display: flex; gap: 0; overflow-x: auto; scrollbar-width: none;
  padding: 0; align-items: stretch;
}
.trust-items::-webkit-scrollbar { display: none; }
.trust-item {
  display: flex; align-items: center; gap: 12px; padding: 18px 24px;
  flex: 1; min-width: 180px; border-right: 1px solid var(--border);
}
.trust-item:last-child { border-right: none; }
.trust-icon {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.trust-label { font-size: 13px; font-weight: 800; color: var(--dark); }
.trust-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
@media(max-width:768px) {
  .trust-item { padding: 14px 16px; min-width: 160px; }
}

/* ─── Banner Grid ───────────────────────────────────── */
.hero-banner-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
@media(max-width:900px) { .hero-banner-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width:540px) { .hero-banner-grid { grid-template-columns: 1fr; } }
.banner-card {
  border-radius: 18px; overflow: hidden; position: relative;
  border: 1px solid var(--border); display: block;
  transition: transform .25s, box-shadow .25s;
  background: #f1f5f9;
}
.banner-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.banner-card img { width: 100%; height: 180px; object-fit: cover; display: block; }
.banner-card-placeholder {
  width: 100%; height: 180px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe); font-size: 48px; color: var(--primary);
}
.banner-card-body { padding: 16px 18px; }
.banner-card-body h3 { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.banner-card-body p { font-size: 13px; color: var(--muted); margin-bottom: 12px; }

/* ─── Section Title ─────────────────────────────────── */
.section-title { text-align: center; max-width: 680px; margin: 0 auto 36px; }
.section-title h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 900; letter-spacing: -.02em; margin-bottom: 10px; }
.section-title p { color: var(--muted); font-size: 15px; }

/* ─── Category Scroll ───────────────────────────────── */
.category-scroll {
  display: flex; gap: 18px; overflow-x: auto; padding: 4px 2px 12px;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.category-scroll::-webkit-scrollbar { height: 6px; }
.category-scroll::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 99px; }
.cat-card {
  scroll-snap-align: start; flex-shrink: 0;
  background: white; border: 1px solid var(--border);
  border-radius: 22px; min-width: 220px; width: 220px;
  overflow: hidden; text-align: left;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  box-shadow: 0 12px 32px rgba(15,23,42,.06);
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(26,86,176,.25); }
.cat-media {
  position: relative; height: 170px; overflow: hidden; background: #0f172a;
}
.cat-media img, .cat-media-placeholder {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.cat-media img { transition: transform .45s ease; }
.cat-card:hover .cat-media img { transform: scale(1.06); }
.cat-media-placeholder {
  display: flex; align-items: center; justify-content: center; color: white; font-size: 42px;
}
.cat-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(2,6,23,.08) 0%, rgba(2,6,23,.68) 100%);
}
.cat-icon-floating {
  position: absolute; left: 16px; bottom: 16px;
  width: 46px; height: 46px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #0f172a; box-shadow: 0 8px 22px rgba(15,23,42,.18);
}
.cat-content { padding: 16px 16px 18px; }
.cat-name { font-size: 15px; font-weight: 800; color: var(--dark); margin-bottom: 4px; }
.cat-count { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.cat-arrow {
  font-size: 12px; font-weight: 700; color: var(--primary);
  display: inline-flex; align-items: center; gap: 6px;
}

/* ─── Products Grid ─────────────────────────────────── */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media(max-width:1100px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media(max-width:768px)  { .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media(max-width:400px)  { .products-grid { grid-template-columns: 1fr; } }

.product-card {
  background: white; border: 1px solid var(--border); border-radius: 18px;
  overflow: hidden; transition: transform .2s, box-shadow .2s;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.product-img-wrap { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--bg); }
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.product-card:hover .product-img-wrap img { transform: scale(1.06); }
.product-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px;
}
.product-badge.sale { background: var(--red); color: white; }
.product-badge.bestseller { background: var(--orange); color: white; }
.product-badge.trending { background: var(--purple); color: white; }
.product-badge.new { background: var(--green); color: white; }
.product-overlay {
  position: absolute; inset: 0; background: rgba(15,23,42,.55);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s;
}
.product-card:hover .product-overlay { opacity: 1; }
.product-img-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 60px; background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}
.product-info { padding: 16px; }
.product-info h3 { font-size: 14px; font-weight: 800; margin-bottom: 4px; color: var(--dark); line-height: 1.3; }
.product-info .sub { font-size: 12px; color: var(--muted); margin-bottom: 10px; line-height: 1.5; min-height: 36px; }
.product-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 12px; }
.price-from { font-size: 13px; font-weight: 800; color: var(--muted); }
.price-from strong { font-size: 19px; font-weight: 900; color: var(--primary); }
.price-to { font-size: 13px; color: var(--muted); }
.product-quick-buy { width: 100%; justify-content: center; }

/* No image placeholder */
.product-img-wrap .no-img {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
  color: var(--primary); font-size: 40px; font-weight: 900;
}
.product-img-wrap .no-img span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }

/* ─── How It Works ──────────────────────────────────── */
.how-it-works { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
@media(max-width:900px) { .how-it-works { grid-template-columns: repeat(2,1fr); } }
@media(max-width:500px) { .how-it-works { grid-template-columns: 1fr; } }
.how-step { text-align: center; padding: 28px 20px; background: var(--bg); border-radius: 18px; border: 1px solid var(--border); }
.how-icon {
  width: 64px; height: 64px; border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: white; margin: 0 auto 16px;
  box-shadow: 0 8px 24px rgba(26,86,176,.25);
}
.how-step h3 { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.how-step p { font-size: 14px; color: var(--muted); }

/* ─── Chips / Badges ────────────────────────────────── */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: var(--bg); border: 1px solid var(--border); color: var(--slate);
}
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; }
.badge-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge-blue { background: #dbeafe; color: #1e3a8a; }
.badge-green { background: #dcfce7; color: #14532d; }
.badge-orange { background: #ffedd5; color: #7c2d12; }
.badge-red { background: #fee2e2; color: #7f1d1d; }

/* ─── Form Elements ─────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 13px; font-weight: 700; color: var(--slate); }
.input, .select, .textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
  border-radius: 10px; font-size: 14px; color: var(--dark); font-family: var(--font);
  background: white; transition: border-color .2s, box-shadow .2s;
  appearance: none; -webkit-appearance: none;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,86,176,.12);
}
.textarea { resize: vertical; min-height: 100px; }

/* ─── Cart / Checkout ───────────────────────────────── */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); padding: 12px 16px; border-bottom: 2px solid var(--border); text-align: left; }
.cart-table td { padding: 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-item-img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }
.cart-item-img-placeholder { width: 72px; height: 72px; border-radius: 10px; background: linear-gradient(135deg, #dbeafe, #eff6ff); display: flex; align-items: center; justify-content: center; font-size: 24px; }
.order-summary { background: white; border: 1px solid var(--border); border-radius: 18px; padding: 24px; }
.order-summary h3 { font-size: 18px; font-weight: 800; margin-bottom: 20px; }
.summary-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.summary-row:last-child { border-bottom: none; }
.summary-row.total { font-size: 18px; font-weight: 900; color: var(--primary); }

/* ─── Footer ────────────────────────────────────────── */
.site-footer { background: #1a1f2e; color: rgba(255,255,255,.8); margin-top: 0; }
.footer-wave { margin-bottom: -1px; line-height: 0; }
.footer-main { padding: 60px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 40px; }
@media(max-width:900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media(max-width:540px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-logo { display: flex; align-items: center; gap: 10px; color: white; margin-bottom: 14px; }
.footer-logo strong { font-size: 20px; font-weight: 900; }
.footer-brand p { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.65); margin-bottom: 18px; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: rgba(255,255,255,.75); transition: background .2s, color .2s;
}
.footer-socials a:hover { background: var(--primary); color: white; }
.footer-col h4 { font-size: 14px; font-weight: 800; color: white; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .5px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 13.5px; color: rgba(255,255,255,.65); transition: color .2s; }
.footer-col ul a:hover { color: white; }
.footer-contact li { display: flex; gap: 10px; font-size: 13.5px; color: rgba(255,255,255,.65); align-items: flex-start; }
.footer-contact li i { color: var(--orange); width: 16px; margin-top: 2px; flex-shrink: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: rgba(255,255,255,.45); }

/* ─── Customize Page ────────────────────────────────── */
.customize-wrapper {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 28px; padding: 28px 0 60px; align-items: start;
}
@media(max-width:900px) {
  .customize-wrapper { grid-template-columns: 1fr; gap: 20px; }
}

.preview-panel { position: sticky; top: 88px; }
.preview-card { background: white; border-radius: 20px; border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow-md); }
.preview-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); background: var(--bg); }
.preview-header h4 { font-size: 14px; font-weight: 800; color: var(--dark); }
.preview-body { padding: 20px; }
.preview-canvas {
  aspect-ratio: 1; background: #f1f5f9; border-radius: 14px; overflow: hidden;
  position: relative; display: flex; align-items: center; justify-content: center;
  border: 2px dashed var(--border);
}
.preview-canvas.has-design { border-style: solid; border-color: var(--primary); background: white; }
.preview-product-img { position: absolute; inset: 0; object-fit: cover; width: 100%; height: 100%; opacity: .25; }
.preview-design-overlay { position: relative; z-index: 2; max-width: 72%; max-height: 72%; object-fit: contain; border-radius: 8px; box-shadow: 0 8px 30px rgba(0,0,0,.25); display: none; }
.preview-placeholder { position: relative; z-index: 2; text-align: center; color: var(--muted); }
.preview-placeholder i { font-size: 48px; margin-bottom: 10px; opacity: .4; display: block; }
.preview-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 16px; }
.pstat { background: var(--bg); border-radius: 10px; padding: 12px; text-align: center; }
.pstat-val { font-size: 18px; font-weight: 900; color: var(--primary); }
.pstat-label { font-size: 11px; color: var(--muted); margin-top: 2px; }

.options-panel { background: white; border-radius: 20px; border: 1px solid var(--border); padding: 24px; box-shadow: var(--shadow); }
.opt-section { margin-bottom: 24px; }
.opt-section:last-child { margin-bottom: 0; }
.opt-section-title { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--slate); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.size-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.size-chip {
  padding: 8px 16px; border-radius: 10px; border: 2px solid var(--border);
  cursor: pointer; font-size: 13px; font-weight: 700; color: var(--slate);
  transition: all .2s; background: white; user-select: none;
}
.size-chip:hover { border-color: var(--primary); color: var(--primary); }
.size-chip.selected { border-color: var(--primary); background: var(--primary-lt); color: var(--primary); }
.size-price { font-size: 11px; font-weight: 800; color: var(--orange); margin-top: 3px; }
.material-cards { display: grid; grid-template-columns: repeat(auto-fill,minmax(100px,1fr)); gap: 8px; }
.material-card {
  padding: 12px; border-radius: 12px; border: 2px solid var(--border);
  text-align: center; cursor: pointer; font-size: 12px; font-weight: 700; color: var(--slate);
  transition: all .2s; background: white;
}
.material-card:hover { border-color: var(--primary); color: var(--primary); }
.material-card.selected { border-color: var(--primary); background: var(--primary-lt); color: var(--primary); }
.option-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.option-chip {
  padding: 7px 14px; border-radius: 999px; border: 2px solid var(--border);
  cursor: pointer; font-size: 12px; font-weight: 700; color: var(--slate);
  transition: all .2s; background: white;
}
.option-chip:hover { border-color: var(--primary); color: var(--primary); }
.option-chip.selected { border-color: var(--primary); background: var(--primary-lt); color: var(--primary); }

/* Upload Zone */
.upload-zone {
  border: 2px dashed var(--border); border-radius: 14px; padding: 24px; text-align: center;
  cursor: pointer; transition: all .2s; background: var(--bg);
}
.upload-zone:hover, .upload-zone.drag-over { border-color: var(--primary); background: var(--primary-lt); }
.upload-zone i { font-size: 32px; color: var(--primary); opacity: .6; margin-bottom: 8px; display: block; }
.upload-zone h4 { font-size: 14px; font-weight: 800; margin-bottom: 4px; }
.upload-zone p { font-size: 12px; color: var(--muted); }

/* Quantity */
.qty-wrap { display: flex; align-items: center; gap: 0; border: 2px solid var(--border); border-radius: 12px; overflow: hidden; }
.qty-btn { width: 44px; height: 44px; border: none; background: var(--bg); font-size: 18px; font-weight: 700; cursor: pointer; transition: background .2s; color: var(--dark); }
.qty-btn:hover { background: var(--border); }
.qty-input { width: 64px; height: 44px; border: none; border-left: 2px solid var(--border); border-right: 2px solid var(--border); text-align: center; font-size: 15px; font-weight: 800; color: var(--dark); font-family: var(--font); -moz-appearance: textfield; }
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* Total Banner */
.total-banner {
  background: linear-gradient(135deg, var(--primary), #2563eb);
  color: white; border-radius: 14px; padding: 18px 20px;
  display: flex; justify-content: space-between; align-items: center;
  margin: 16px 0;
}
.total-banner .label { font-size: 12px; opacity: .8; margin-bottom: 4px; }
.total-banner .amount { font-size: 26px; font-weight: 900; }

/* Gallery */
.gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.gallery-thumb {
  width: 56px; height: 56px; border-radius: 10px; overflow: hidden;
  border: 2px solid var(--border); cursor: pointer; transition: border-color .2s;
}
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--primary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Personalization overlay */
.preview-live-text { position: absolute; z-index: 5; bottom: 12%; left: 50%; transform: translateX(-50%); background: rgba(15,23,42,.75); color: white; font-size: 13px; font-weight: 800; padding: 6px 14px; border-radius: 999px; white-space: nowrap; max-width: 85%; overflow: hidden; text-overflow: ellipsis; display: none; }
.preview-name-pill { position: absolute; z-index: 5; top: 14%; left: 50%; transform: translateX(-50%); background: var(--orange); color: white; font-size: 12px; font-weight: 800; padding: 5px 12px; border-radius: 999px; white-space: nowrap; max-width: 85%; overflow: hidden; text-overflow: ellipsis; display: none; }
.preview-meta-line { position: absolute; z-index: 5; top: calc(14% + 36px); left: 50%; transform: translateX(-50%); background: rgba(255,255,255,.9); color: var(--dark); font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; display: none; }

@media(max-width:480px) {
  .options-panel { padding: 18px; }
  .size-chips { gap: 6px; }
  .size-chip { padding: 7px 12px; font-size: 12px; }
  .total-banner .amount { font-size: 22px; }
  .preview-stats { grid-template-columns: 1fr 1fr; }
}

/* ─── Page Sections (products, cart etc) ────────────── */
.page-hero { background: linear-gradient(135deg, var(--primary), var(--primary-dk)); color: white; padding: 50px 0 40px; text-align: center; }
.page-hero h1 { font-size: clamp(26px, 4vw, 42px); font-weight: 900; letter-spacing: -.02em; margin-bottom: 10px; }
.page-hero p { font-size: 16px; opacity: .8; }
.products-filter-bar { background: white; border: 1px solid var(--border); border-radius: 14px; padding: 16px 20px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; }
.products-filter-bar .input, .products-filter-bar .select { min-height: 42px; }

/* ─── Contact Page ──────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; }
@media(max-width:900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ─── Track / Login ─────────────────────────────────── */
.auth-wrap { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card { width: min(480px, 100%); background: white; border: 1px solid var(--border); border-radius: 24px; padding: 40px; box-shadow: var(--shadow-md); }
.auth-card h2 { font-size: 28px; font-weight: 900; margin-bottom: 8px; }
.auth-card p.sub { color: var(--muted); margin-bottom: 28px; }

/* ─── Scrollbar ─────────────────────────────────────── */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ─── Premium polish update ─────────────────────────── */
.header-cta {
  box-shadow: 0 12px 28px rgba(var(--orange-rgb, 255,107,0), .28);
  margin-right: 4px;
}
.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(6,15,30,.34) 55%, rgba(6,15,30,.58) 100%);
  pointer-events: none;
}
.hero-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -10px 0 26px;
}
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.88);
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(12px);
}
.hero-chip i { color: var(--orange); }
.hero-chip-highlight {
  background: rgba(var(--orange-rgb, 255,107,0), .14);
  border-color: rgba(var(--orange-rgb, 255,107,0), .28);
}
.hero-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.hero-proof-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 15px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 18px 40px rgba(2,6,23,.18);
  backdrop-filter: blur(14px);
}
.hero-proof-card i {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(var(--orange-rgb, 255,107,0), .16);
  color: var(--orange);
  flex-shrink: 0;
}
.hero-proof-card strong {
  display: block;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 3px;
}
.hero-proof-card span {
  display: block;
  color: rgba(255,255,255,.7);
  font-size: 12px;
  line-height: 1.55;
}
.hero-visual::before,
.hero-visual::after {
  content: '';
  position: absolute;
  border-radius: 30px;
  pointer-events: none;
}
.hero-visual::before {
  inset: 44px 12px 28px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(145deg, rgba(255,255,255,.05), rgba(255,255,255,.01));
}
.hero-visual::after {
  inset: auto 18px 14px auto;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(var(--orange-rgb, 255,107,0), .24) 0%, transparent 68%);
  filter: blur(6px);
}
.hero-frost-card {
  position: absolute;
  z-index: 8;
  max-width: 230px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 20px 40px rgba(2,6,23,.24);
  backdrop-filter: blur(18px);
}
.hero-frost-card .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
  margin-bottom: 8px;
}
.hero-frost-card strong {
  display: block;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.2;
}
.hero-frost-card p {
  margin-top: 8px;
  color: rgba(255,255,255,.68);
  font-size: 12px;
  line-height: 1.55;
}
.hero-frost-card-top { top: 32px; right: -12px; }
.hero-frost-card-bottom { left: -16px; bottom: 62px; max-width: 255px; }
.hero-grid-note {
  display: flex;
  gap: 12px;
  align-items: center;
}
.hero-grid-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(var(--orange-rgb, 255,107,0), .16);
  color: var(--orange);
  flex-shrink: 0;
}
.hero-grid-note span {
  display: block;
  color: rgba(255,255,255,.68);
  font-size: 12px;
  margin-top: 3px;
}
.hero-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.hero-mini-stats div {
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.hero-mini-stats strong {
  font-size: 18px;
  margin: 0;
}
.hero-mini-stats span {
  display: block;
  color: rgba(255,255,255,.68);
  font-size: 11px;
  margin-top: 3px;
}
.trust-item {
  transition: transform var(--transition), background var(--transition);
}
.trust-item:hover {
  transform: translateY(-3px);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.92));
}
.banner-card,
.product-card,
.cat-card,
.how-step,
.order-summary,
.options-panel,
.preview-card,
.auth-card {
  box-shadow: 0 18px 42px rgba(15,23,42,.08);
}
@media(max-width:1080px) {
  .hero-frost-card-top { right: 0; }
  .hero-frost-card-bottom { left: 0; }
}
@media(max-width:900px) {
  .header-cta { display: none; }
  .hero-proof-grid { grid-template-columns: 1fr; }
  .hero-visual::before { inset: 8px 0 18px; }
  .hero-frost-card-top {
    top: auto;
    right: 12px;
    bottom: 104px;
  }
  .hero-frost-card-bottom {
    left: 12px;
    bottom: 12px;
  }
}
@media(max-width:640px) {
  .hero-chip-row { gap: 8px; margin-bottom: 20px; }
  .hero-chip { font-size: 11px; padding: 8px 12px; }
  .hero-proof-card { padding: 13px 14px; }
  .hero-frost-card { position: static; max-width: 100%; margin-top: 10px; }
  .hero-visual { padding-bottom: 0; }
  .hero-visual::before, .hero-visual::after { display: none; }
  .hero-mini-stats { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media(max-width:480px) {
  .hero-mini-stats { grid-template-columns: 1fr; }
  .hero-proof-grid { margin-bottom: 22px; }
}
