/* ============================================================
   SHOPAAR — Modern Online Store
   Pure CSS, mobile-first, no external dependencies.
   ============================================================ */

:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --green: #16a34a;
  --green-dark: #15803d;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.18);
  --shadow-lg: 0 24px 48px -20px rgba(15, 23, 42, 0.28);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  --max: 1180px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 64px 0;
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 40px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  margin-bottom: 12px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(37, 99, 235, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.eyebrow-light {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 20px -8px rgba(37, 99, 235, 0.6);
}

.btn-primary:hover {
  background: var(--blue-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}

.btn-ghost:hover {
  background: rgba(37, 99, 235, 0.08);
}

.btn-light {
  background: #fff;
  color: var(--orange-dark);
}

.btn-light:hover {
  background: #fff7ed;
}

.btn-shop {
  background: var(--green);
  color: #fff;
  width: 100%;
  box-shadow: 0 8px 16px -8px rgba(22, 163, 74, 0.55);
}

.btn-shop:hover {
  background: var(--green-dark);
}

/* -------------------- Header -------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-name {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--blue), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.98rem;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 0;
  background: var(--blue);
  transition: width 0.2s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 9px 18px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* -------------------- Hero -------------------- */
.hero {
  position: relative;
  padding: 56px 0 72px;
  background: radial-gradient(
      1000px 400px at 85% -10%,
      rgba(22, 163, 74, 0.12),
      transparent
    ),
    radial-gradient(
      900px 420px at 0% 0%,
      rgba(37, 99, 235, 0.14),
      transparent
    ),
    var(--white);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  gap: 40px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  margin-bottom: 18px;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 540px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.hero-stats {
  display: flex;
  gap: 30px;
  list-style: none;
  flex-wrap: wrap;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
}

.hero-stats strong {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Hero visual */
.hero-visual {
  position: relative;
  min-height: 300px;
  display: grid;
  place-items: center;
}

.hero-blob {
  position: absolute;
  inset: 10% 8%;
  background: linear-gradient(135deg, var(--blue), var(--green));
  border-radius: 40% 60% 55% 45% / 55% 45% 55% 45%;
  filter: blur(2px);
  opacity: 0.16;
  z-index: 0;
  animation: morph 9s ease-in-out infinite;
}

@keyframes morph {
  0%,
  100% {
    border-radius: 40% 60% 55% 45% / 55% 45% 55% 45%;
  }
  50% {
    border-radius: 60% 40% 45% 55% / 45% 55% 45% 55%;
  }
}

.hero-card {
  position: relative;
  z-index: 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  margin: 8px 0;
  animation: float 5s ease-in-out infinite;
}

.hero-card .hc-icon {
  width: 26px;
  height: 26px;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-card-1 {
  align-self: flex-start;
}
.hero-card-1 .hc-icon {
  stroke: var(--blue);
}
.hero-card-2 {
  align-self: flex-end;
  animation-delay: 1s;
}
.hero-card-2 .hc-icon {
  stroke: var(--green);
}
.hero-card-3 {
  align-self: flex-start;
  animation-delay: 2s;
}
.hero-card-3 .hc-icon {
  stroke: var(--orange);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* -------------------- Features -------------------- */
.features {
  background: var(--bg);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.96rem;
}

/* -------------------- Products -------------------- */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.product-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
}

.product-thumb svg {
  width: 40%;
  height: 40%;
  fill: none;
  stroke: rgba(255, 255, 255, 0.95);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--orange);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.product-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.product-cat {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue);
}

.product-name {
  font-size: 1.05rem;
  font-weight: 700;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--orange);
  font-size: 0.85rem;
  font-weight: 700;
}

.product-rating svg {
  width: 15px;
  height: 15px;
  fill: var(--orange);
  stroke: none;
}

.product-rating .count {
  color: var(--muted);
  font-weight: 500;
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 2px;
}

.product-price .now {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--ink);
}

.product-price .was {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: line-through;
}

.product-body .btn-shop {
  margin-top: auto;
}

/* -------------------- Promo -------------------- */
.promo {
  background: linear-gradient(120deg, var(--orange), var(--orange-dark));
  color: #fff;
}

.promo-inner {
  display: grid;
  gap: 34px;
  align-items: center;
}

.promo-copy h2 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  margin-bottom: 14px;
}

.promo-copy p {
  max-width: 480px;
  margin-bottom: 24px;
  opacity: 0.95;
}

.promo-timer {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.timer-box {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-sm);
  padding: 14px 8px;
  text-align: center;
  min-width: 68px;
}

.timer-box strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}

.timer-box span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.9;
}

/* -------------------- About / Trust -------------------- */
.about-inner {
  display: grid;
  gap: 40px;
  align-items: center;
}

.about-copy h2 {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  margin-bottom: 14px;
}

.about-copy > p {
  color: var(--muted);
  margin-bottom: 22px;
  max-width: 540px;
}

.trust-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 600;
}

.trust-list svg {
  flex: none;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--green);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-top: 2px;
}

.about-badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.badge-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 18px;
  text-align: center;
}

.badge-card strong {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--blue);
}

.badge-card span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

/* -------------------- Footer -------------------- */
.site-footer {
  background: var(--ink);
  color: #cbd5e1;
  padding-top: 56px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  padding-bottom: 40px;
}

.footer-brand .brand {
  margin-bottom: 14px;
}

.footer-brand .brand-name {
  -webkit-text-fill-color: transparent;
}

.footer-brand p {
  font-size: 0.95rem;
  max-width: 300px;
  margin-bottom: 18px;
}

.socials {
  display: flex;
  gap: 12px;
}

.socials a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  transition: background 0.15s ease, transform 0.15s ease;
}

.socials a:hover {
  background: var(--blue);
  transform: translateY(-2px);
}

.socials svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.footer-col h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 10px;
  color: #cbd5e1;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: #fff;
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  margin-bottom: 10px;
}

.footer-contact .ic {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--green);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 22px;
  padding-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.88rem;
  color: #94a3b8;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a:hover {
  color: #fff;
}

/* -------------------- Responsive -------------------- */
@media (min-width: 600px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 900px) {
  .section {
    padding: 84px 0;
  }
  .hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
  }
  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .promo-inner {
    grid-template-columns: 1.2fr 1fr;
  }
  .about-inner {
    grid-template-columns: 1.1fr 0.9fr;
  }
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }
  .main-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 20px;
    transform: translateY(-140%);
    transition: transform 0.28s ease;
    box-shadow: var(--shadow);
  }
  .main-nav.open {
    transform: translateY(0);
  }
  .main-nav .nav-link {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
  }
  .main-nav .nav-link::after {
    display: none;
  }
  .nav-cta {
    margin-top: 14px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto;
  }
}
