*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: #fff;
  overflow-x: hidden;
  line-height: 1.55;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.center {
  text-align: center;
}

/* TOPBAR + HEADER */
.topbar {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  padding: 8px 16px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 300;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e7eaf0;
  height: 68px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand-logo img {
  height: 40px;
  width: auto;
}
.main-nav {
  display: flex;
  gap: 4px;
  flex: 1;
}
.main-nav a {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.2s;
}
.main-nav a:hover {
  background: var(--brand-pale);
  color: var(--brand);
}
.menu-btn {
  display: none;
  background: none;
  border: 0;
  font-size: 24px;
  color: var(--ink);
}
.cart-btn {
  position: relative;
  margin-left: auto;
  background: var(--brand);
  color: #fff;
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 800;
  display: none;
  align-items: center;
  justify-content: center;
}

/* BUTTONS */
.btn-main {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 14px 28px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  transition:
    background 0.2s,
    transform 0.2s;
}
.btn-main:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}
.btn-accent {
  background: var(--accent);
}
.btn-accent:hover {
  background: var(--accent-light);
}
.btn-ghost {
  background: #fff;
  color: var(--brand);
  border: 2px solid var(--brand);
}
.btn-ghost:hover {
  background: var(--brand-pale);
}
.btn-block {
  display: block;
  width: 100%;
}

/* HERO */
.hero {
  background: linear-gradient(135deg, var(--brand-pale), #fff 70%);
  padding: 64px 0;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  background: #fff;
  color: var(--brand);
  border: 1px solid var(--brand-light);
  border-radius: 50px;
  padding: 5px 14px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 16px;
}
.hero p {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 26px;
}
.hero-art {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.hero-art img {
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
  aspect-ratio: 1;
  object-fit: cover;
}
.hero-art img:nth-child(2) {
  transform: translateY(24px);
}

/* TRUST */
.trust-bar {
  border-bottom: 1px solid #e7eaf0;
}
.trust-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
}

/* SECTIONS */
.section {
  padding: 56px 0;
}
.section-alt {
  background: #f6f8fb;
}
.sec-title {
  font-family: var(--font-head);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  margin-bottom: 8px;
}
.sec-sub {
  color: #64748b;
  margin-bottom: 28px;
}

/* CATEGORY TILES */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}
.cat-tile {
  background: #fff;
  border: 1px solid #e7eaf0;
  border-radius: 16px;
  padding: 22px 12px;
  text-align: center;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  transition: all 0.2s;
}
.cat-tile:hover {
  border-color: var(--brand);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}
.cat-tile .ico {
  font-size: 34px;
  margin-bottom: 8px;
}

/* SHOP TOOLBAR */
.shop-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}
.chip {
  background: #fff;
  border: 1px solid #d5dbe5;
  border-radius: 50px;
  padding: 8px 16px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
}
.chip.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.search-input {
  border: 1px solid #d5dbe5;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  min-width: 220px;
  font-family: var(--font-body);
}
.search-input:focus {
  outline: 2px solid var(--brand-light);
  border-color: var(--brand);
}

/* PRODUCT GRID */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.p-card {
  background: #fff;
  border: 1px solid #e7eaf0;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.p-card:hover {
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
  transform: translateY(-3px);
}
.p-img {
  position: relative;
  display: block;
  background: #eef1f6;
}
.p-img img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.p-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  padding: 3px 9px;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 800;
}
.p-off {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--ink);
  color: #fff;
  border-radius: 6px;
  padding: 3px 9px;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 800;
}
.p-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.p-cat {
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.p-name {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}
.p-name:hover {
  color: var(--brand);
}
.p-rating {
  font-size: 12px;
  color: #64748b;
}
.stars {
  color: var(--accent);
  letter-spacing: 1px;
}
.p-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
}
.price-now {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
}
.price-old {
  font-size: 13px;
  color: #94a3b8;
  text-decoration: line-through;
}
.p-add {
  display: block;
  margin-top: 8px;
  padding: 11px;
  font-size: 13px;
  text-align: center;
}
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 0;
  color: #64748b;
}

/* PRODUCT PAGE */
.pdp {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 40px 0 56px;
}
.pdp-media img {
  width: 100%;
  border-radius: 20px;
  background: #eef1f6;
  aspect-ratio: 1;
  object-fit: cover;
}
.pdp-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.pdp-thumbs button {
  width: 72px;
  height: 72px;
  padding: 0;
  border: 1px solid #d5dbe5;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.pdp-thumbs img {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  border-radius: 0;
  aspect-ratio: auto;
}
.pdp-info h1 {
  font-family: var(--font-head);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
  font-weight: 800;
  margin: 6px 0 10px;
}
.crumbs {
  font-size: 13px;
  color: #64748b;
  padding-top: 20px;
}
.crumbs a {
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--brand);
}
.pdp-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 14px 0;
}
.pdp-price .price-now {
  font-size: 30px;
}
.pdp-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}
.pdp-save {
  background: #e6f7ee;
  color: #1a8a4a;
  border-radius: 6px;
  padding: 3px 10px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 800;
}
.pdp-desc {
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.feature-list {
  list-style: none;
  margin-bottom: 22px;
}
.feature-list li {
  padding-left: 26px;
  position: relative;
  margin-bottom: 6px;
}
.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #1a8a4a;
  font-weight: 800;
}
.pdp-buy {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: stretch;
}
.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d5dbe5;
  border-radius: 10px;
  overflow: hidden;
}
.stepper button {
  width: 42px;
  border: 0;
  background: #f6f8fb;
  font-size: 18px;
}
.stepper span {
  min-width: 44px;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 800;
}
.pdp-perks {
  margin-top: 22px;
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-soft);
}

/* FAQ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}
.faq-item {
  background: #fff;
  border: 1px solid #e7eaf0;
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  padding: 16px 20px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
}
.faq-q::after {
  content: "+";
  color: var(--brand);
  font-size: 20px;
  line-height: 1;
}
.faq-item.open .faq-q::after {
  content: "−";
}
.faq-a {
  display: none;
  padding: 0 20px 18px;
  color: var(--ink-soft);
}
.faq-item.open .faq-a {
  display: block;
}

/* STATIC PAGES */
.doc {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}
.doc h1 {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 20px;
}
.doc h2 {
  font-family: var(--font-head);
  font-size: 20px;
  margin: 28px 0 8px;
}
.doc p,
.doc li {
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.doc ul {
  padding-left: 22px;
}

/* SUCCESS */
.success-box {
  max-width: 560px;
  margin: 0 auto;
  padding: 72px 20px;
  text-align: center;
}
.success-box .tick {
  width: 84px;
  height: 84px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #e6f7ee;
  color: #1a8a4a;
  font-size: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.success-box h1 {
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 10px;
}
.success-box p {
  color: var(--ink-soft);
  margin-bottom: 24px;
}

/* FOOTER */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.6);
  padding: 44px 24px;
  text-align: center;
  font-size: 13px;
  line-height: 1.8;
  margin-top: 0;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.75);
}
.site-footer .flogo {
  height: 38px;
  margin: 0 auto 14px;
  background: #fff;
  border-radius: 8px;
  padding: 4px 10px;
}
.site-footer .flinks {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  margin: 14px 0;
}
.site-footer .fcopy {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}

/* CART DRAWER */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 900;
  display: none;
}
.cart-overlay.open {
  display: block;
}
.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: min(400px, 100%);
  height: 100%;
  background: #fff;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(15, 23, 42, 0.2);
  transition: right 0.3s ease;
}
.cart-drawer.open {
  right: 0;
}
.cart-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid #e7eaf0;
}
.cart-drawer-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 17px;
}
.cart-drawer-close {
  background: none;
  border: 0;
  font-size: 20px;
  color: #64748b;
}
.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 20px;
}
.cart-empty {
  text-align: center;
  padding: 56px 0;
  color: #94a3b8;
}
.cart-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #eef1f6;
}
.cart-thumb {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
  background: #eef1f6;
}
.cart-info {
  flex: 1;
  min-width: 0;
}
.cart-name {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}
.cart-line {
  font-size: 14px;
  color: var(--brand);
  font-weight: 700;
  margin-top: 2px;
}
.cart-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-qty button {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid #d5dbe5;
  background: #fff;
}
.cart-qty span {
  min-width: 18px;
  text-align: center;
  font-weight: 700;
}
.cart-drawer-foot {
  display: none;
  padding: 18px 20px 22px;
  border-top: 1px solid #e7eaf0;
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  margin-bottom: 14px;
}
.cart-note {
  text-align: center;
  font-size: 12px;
  color: #64748b;
  margin-top: 10px;
}
.cart-toast {
  position: fixed;
  top: 84px;
  right: 20px;
  background: var(--ink);
  color: #fff;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 12px 18px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  gap: 10px;
  z-index: 1100;
  transform: translateX(150%);
  transition: transform 0.3s ease;
  max-width: calc(100% - 40px);
}
.cart-toast.show {
  transform: none;
}

@media (max-width: 980px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero-inner,
  .pdp {
    grid-template-columns: 1fr;
  }
  .trust-bar .container {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 720px) {
  .site-header {
    padding: 0 16px;
    gap: 12px;
  }
  .menu-btn {
    display: block;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 10px 16px 16px;
    border-bottom: 1px solid #e7eaf0;
  }
  .main-nav.open {
    display: flex;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .hero {
    padding: 40px 0;
  }
  .hero-art {
    display: none;
  }
  .search-input {
    width: 100%;
  }
  .pdp {
    gap: 24px;
  }
}
