@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --bg-primary: #f5f7fb;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fbff;
  --accent: #1667d9;
  --accent-dim: rgba(22, 103, 217, 0.12);
  --accent-glow: rgba(22, 103, 217, 0.22);
  --accent2: #ff7a45;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --border: rgba(17, 24, 39, 0.1);
  --border-accent: rgba(22, 103, 217, 0.32);
  --radius: 14px;
  --radius-lg: 24px;
  --shadow-card: 0 10px 30px rgba(17, 24, 39, 0.08);
  --shadow-glow: 0 16px 35px rgba(22, 103, 217, 0.14);
  --font-display:
    "SF Pro Display", "SF Pro Text", "Plus Jakarta Sans", -apple-system,
    BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-heading:
    "SF Pro Display", "SF Pro Text", "Plus Jakarta Sans", -apple-system,
    BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body:
    "SF Pro Text", "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  background: linear-gradient(180deg, #f8fbff 0%, #f5f7fb 100%);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: var(--font-body);
}
input,
select,
textarea {
  font-family: var(--font-body);
  outline: none;
}

::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: rgba(22, 103, 217, 0.45);
  border-radius: 12px;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.display {
  font-family: var(--font-display);
  letter-spacing: 0.015em;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 80px 0;
}
.section-sm {
  padding: 48px 0;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.flex {
  display: flex;
}
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: all var(--transition);
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #1f78f0);
  color: #fff;
  box-shadow: 0 10px 24px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px var(--accent-glow);
}
.btn-outline {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--border-accent);
}
.btn-outline:hover {
  background: var(--accent-dim);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover {
  color: var(--text-primary);
}
.btn-whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  box-shadow: 0 10px 22px rgba(37, 211, 102, 0.3);
}
.btn-sm {
  padding: 8px 18px;
  font-size: 0.82rem;
}
.btn-lg {
  padding: 16px 40px;
  font-size: 1rem;
}
.btn-full {
  width: 100%;
  justify-content: center;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
}
.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-accent {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--border-accent);
}
.badge-orange {
  background: rgba(255, 122, 69, 0.14);
  color: var(--accent2);
  border: 1px solid rgba(255, 122, 69, 0.32);
}
.badge-green {
  background: rgba(37, 211, 102, 0.12);
  color: #25d366;
  border: 1px solid rgba(37, 211, 102, 0.3);
}
.badge-red {
  background: rgba(255, 60, 60, 0.12);
  color: #ff4444;
  border: 1px solid rgba(255, 60, 60, 0.3);
}

.input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  transition: all var(--transition);
}
.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.input::placeholder {
  color: var(--text-muted);
}
.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.input-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-label::before,
.section-label::after {
  content: "";
  display: block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.section-sub {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
}
.divider {
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--border),
    transparent
  );
}

#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
  padding: 14px 20px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  box-shadow: var(--shadow-glow);
  font-size: 0.88rem;
  font-weight: 500;
  animation:
    slideIn 0.3s ease,
    fadeOut 0.3s ease 2.7s forwards;
}
.toast.success i {
  color: #25d366;
}
.toast.error i {
  color: #ff4444;
}
@keyframes slideIn {
  from {
    transform: translateX(100px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateX(20px);
  }
}

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.overlay.active {
  display: flex;
}
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--border);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}
#header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo-stuff {
  display: flex;
  align-items: center;
  gap: 5px;
}
.logo-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--accent);
  background: var(--bg-secondary);
}
.logo-img img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.logo span {
  color: var(--accent);
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
}
.nav a:hover,
.nav a.active {
  color: var(--text-primary);
  background: var(--border);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.icon-btn:hover {
  color: var(--accent);
  border-color: var(--border-accent);
  background: var(--accent-dim);
}
.badge-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-primary);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
}

#mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  z-index: 800;
  padding: 24px;
  overflow-y: auto;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border);
}
#mobile-menu.open {
  display: flex;
}
#mobile-menu a {
  display: block;
  padding: 14px 16px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-secondary);
  border: 1px solid transparent;
}
#mobile-menu a:hover {
  color: var(--text-primary);
  background: var(--bg-card);
  border-color: var(--border);
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--header-h);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(
      ellipse 90% 75% at 60% 35%,
      rgba(22, 103, 217, 0.12) 0,
      transparent 60%
    ),
    radial-gradient(
      ellipse 75% 70% at 10% 100%,
      rgba(255, 122, 69, 0.08) 0,
      transparent 56%
    ),
    radial-gradient(
      ellipse 60% 45% at 80% 95%,
      rgba(14, 165, 233, 0.08) 0,
      transparent 55%
    ),
    var(--bg-primary);
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.06;
  background-image:
    linear-gradient(var(--accent) 1px, transparent 1px),
    linear-gradient(90deg, var(--accent) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 440px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-visual {
  position: relative;
}
.hero-float {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(6px);
}
.hero-float i {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero-float.one {
  top: -20px;
  right: -58px;
  background-color: rgba(181, 205, 214, 0.685);
}
.hero-float.two {
  left: -70px;
  background-color: rgba(181, 205, 214, 0.692);
  bottom: -16px;
}
.hero-img-wrap {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-accent);
  box-shadow:
    var(--shadow-glow),
    0 30px 60px rgba(15, 23, 42, 0.12);
}
.hero-img-wrap img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-stat-num {
  font-family: var(--font-heading);
  font-size: 1.56rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.ticker-wrap {
  overflow: hidden;
  background: linear-gradient(90deg, #0f56b8, #1667d9);
  padding: 12px 0;
}
.ticker {
  display: flex;
  animation: ticker 25s linear infinite;
  white-space: nowrap;
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 32px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}
@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

.cate {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #eef3fb;
}

.lazy-bg {
  background-image: none;
  transition: opacity 0.35s ease;
}
.lazy-bg.bg-loaded {
  opacity: 1;
}
.cta-bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  backdrop-filter: blur(10px);
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.cat-card {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 16px;
  text-align: center;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.cat-card:hover {
  border-color: var(--border-accent);
  background: transparent;
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.cat-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(130, 184, 116, 0.425);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--accent);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}
.product-img-wrap {
  position: relative;
  overflow: hidden;
  background: var(--bg-secondary);
  aspect-ratio: 1;
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-img-wrap img {
  transform: scale(1.05);
}
.product-actions-hover {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateX(10px);
  transition: all var(--transition);
}
.product-card:hover .product-actions-hover {
  opacity: 1;
  transform: none;
}
.product-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-action-btn.wishlisted {
  color: #ff4444;
  border-color: #ff4444;
}
.product-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.product-brand {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.product-name {
  font-family: var(--font-heading);
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.35;
}
.product-spec {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-secondary);
}
.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.78rem;
}
.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}
.product-price {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--accent);
}
.add-to-cart-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #1f78f0);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.gallery-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 12px;
  background: var(--bg-secondary);
  aspect-ratio: 1;
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-thumbs {
  display: flex;
  gap: 10px;
}
.gallery-thumb {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
}
.product-detail-name {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 12px;
}
.variant-chip {
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-secondary);
}
.variant-chip.active {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
}
.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  width: fit-content;
  margin-bottom: 24px;
}
.qty-btn {
  width: 40px;
  height: 40px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
}
.qty-num {
  width: 50px;
  text-align: center;
  font-weight: 700;
}
.product-detail-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cart-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}
.cart-item {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
}
.cart-item-img {
  width: 90px;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-secondary);
}
.cart-item-price {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--accent);
  text-align: right;
}
.order-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 0.9rem;
}
.summary-row.total {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--accent);
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 16px;
}

.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}
.filters-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.filter-group {
  margin-bottom: 28px;
}
.filter-title {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 14px;
}
.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.search-bar {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  flex: 1;
  max-width: 340px;
}
.search-bar input {
  flex: 1;
  padding: 10px 16px;
  background: transparent;
  color: var(--text-primary);
  border: none;
  font-size: 0.88rem;
}
.search-bar button {
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}
.steps-bar {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
}
.step {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  font-family: var(--font-heading);
}
.step.active .step-num {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}
.step.done .step-num {
  border-color: #25d366;
  background: #25d366;
  color: #fff;
}
.step-line {
  flex: 1;
  height: 1px;
  background: var(--border);
  margin: 0 8px;
}
.step-line.done {
  background: #25d366;
}
.checkout-step {
  display: none;
}
.checkout-step.active {
  display: block;
}

.about-hero {
  padding: 120px 0 60px;
  background: radial-gradient(
    ellipse at 50% 0,
    rgba(22, 103, 217, 0.12) 0,
    transparent 62%
  );
}
.stat-boxes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}
.stat-box-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-info-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

footer {
  background: linear-gradient(180deg, #fbfdff 0, #fff 100%);
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-img-div {
  display: flex;
  align-items: center;
  gap: 5px;
}
.footer-imgs {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--accent);
}
.footer-imgs img {
  width: 50px;
  height: 50px;
  border-radius: 999px;
  object-fit: cover;
}
.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.7;
  margin: 16px 0 20px;
  max-width: 260px;
}
.footer-socials {
  display: flex;
  gap: 10px;
}
.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.social-btn:hover {
  color: var(--accent);
  border-color: var(--border-accent);
  background: var(--accent-dim);
}
.footer-title {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 20px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  color: var(--text-secondary);
  font-size: 0.88rem;
}
.footer-links a:hover {
  color: var(--text-primary);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.payment-icons {
  display: flex;
  gap: 8px;
  align-items: center;
}
.payment-icon {
  padding: 4px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.admin-sidebar {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.admin-main {
  padding: 32px;
  overflow-y: auto;
}
.admin-stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.admin-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.admin-panel {
  display: none;
}
.admin-panel.active {
  display: block;
}
.product-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.page {
  display: none;
  animation: pageIn 0.3s ease;
}
.page.active {
  display: block;
}
@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.empty-state {
  text-align: center;
  padding: 80px 20px;
}
.empty-state i {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: block;
}
.empty-state p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

#wishlist-panel {
  position: fixed;
  top: 0;
  right: -420px;
  bottom: 0;
  width: 420px;
  z-index: 950;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-accent);
  padding: 28px;
  overflow-y: auto;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -12px 0 36px rgba(15, 23, 42, 0.16);
}
#wishlist-panel.open {
  right: 0;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

#wa-float {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 800;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #128c7e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  animation: waPulse 2s ease infinite;
}
#wa-float:hover {
  transform: scale(1.1);
}
@keyframes waPulse {
  0%,
  100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  }
  50% {
    box-shadow: 0 4px 40px rgba(37, 211, 102, 0.8);
  }
}

.skeleton {
  background: linear-gradient(90deg, #eef2f8 25%, #e5ecf7 50%, #eef2f8 75%);
  background-size: 200%;
  animation: skeleton 1.5s infinite;
  border-radius: 6px;
}
@keyframes skeleton {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.newsletter-wrap {
  max-width: 560px;
}
.newsletter-form {
  display: flex;
  gap: 10px;
}
.checkout-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.checkout-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.checkout-actions.wrap {
  flex-wrap: wrap;
}
.about-mission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 60px;
  align-items: center;
}
.partner-logo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.contact-social-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 1200px) {
  .container {
    padding: 0 20px;
  }
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .cat-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .stat-boxes,
  .admin-stat-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-content {
    gap: 44px;
  }
  .checkout-grid {
    grid-template-columns: 1fr 340px;
    gap: 28px;
  }
}

@media (max-width: 992px) {
  :root {
    --header-h: 68px;
  }
  .nav {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .hero {
    min-height: auto;
    padding: calc(var(--header-h) + 40px) 0 56px;
  }
  .hero-content {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero p {
    max-width: 100%;
  }
  .product-detail-grid,
  .cart-grid,
  .checkout-grid,
  .shop-layout,
  .contact-grid,
  .about-mission-grid,
  .checkout-two-col,
  .contact-form-grid,
  .admin-layout,
  .product-form-grid {
    grid-template-columns: 1fr;
  }
  .filters-panel,
  .order-summary {
    position: static;
    top: auto;
  }
  .search-bar {
    max-width: none;
    width: 100%;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-sidebar {
    display: none;
  }
  .hero-stats {
    gap: 22px;
    flex-wrap: wrap;
  }
  #wishlist-panel {
    width: min(420px, 100vw);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  .section {
    padding: 64px 0;
  }
  .section-sm {
    padding: 38px 0;
  }
  .btn {
    padding: 11px 18px;
  }
  .btn-lg {
    padding: 13px 20px;
    font-size: 0.95rem;
  }
  .hero h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }
  .hero-grid,
  .hero-float {
    display: none;
  }
  .flex-between {
    flex-wrap: wrap;
    gap: 14px;
    align-items: flex-start;
  }
  .flex-between > .btn {
    width: 100%;
    justify-content: center;
  }
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .newsletter-form,
  .checkout-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .checkout-actions .btn,
  .newsletter-form .btn {
    width: 100%;
    justify-content: center;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .steps-bar {
    overflow-x: auto;
    gap: 14px;
    padding-bottom: 8px;
  }
  .step {
    min-width: 118px;
    flex: initial;
  }
  .step-line {
    display: none;
  }
  .cart-item {
    grid-template-columns: 78px 1fr;
    gap: 12px;
    align-items: start;
  }
  .cart-item-price {
    text-align: left;
    margin-top: 8px;
  }
  .cart-item > div:last-child {
    grid-column: 1 / -1;
  }
  #wa-float {
    width: 52px;
    height: 52px;
    left: 16px;
    bottom: 16px;
  }
}

@media (max-width: 560px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .logo {
    font-size: 1.05rem;
  }
  .icon-btn {
    width: 36px;
    height: 36px;
  }
  .header-actions {
    gap: 6px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .shop-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .shop-toolbar .input {
    width: 100% !important;
  }
  .filters-panel {
    padding: 18px;
  }
  .stat-boxes {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  #wishlist-panel {
    width: 100vw;
    padding: 20px;
  }
  #toast-container {
    left: 12px;
    right: 12px;
    bottom: 14px;
  }
  .toast {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 420px) {
  .products-grid,
  .cat-grid {
    grid-template-columns: 1fr;
  }
  .logo span {
    display: none;
  }
  .logo {
    font-size: 1rem;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .payment-icons {
    flex-wrap: wrap;
  }
}
