/*
Theme Name: SnapFit
Theme URI: https://example.com/snapfit
Author: SnapFit
Description: Tema e-commerce premium dan responsif untuk aksesori teknologi, dengan integrasi WooCommerce opsional.
Version: 1.1.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: snapfit
Tags: e-commerce, custom-logo, custom-menu, featured-images, wide-blocks, translation-ready
*/

:root {
  --ink: #11110f;
  --muted: #676760;
  --paper: #f5f3ee;
  --white: #fff;
  --line: rgba(17,17,15,.12);
  --orange: #ff5a1f;
  --radius: 28px;
  --shadow: 0 18px 50px rgba(17,17,15,.12);
  --wrap: min(1440px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.site-main { overflow: hidden; }
.shell { width: var(--wrap); margin-inline: auto; }

.announcement { min-height: 34px; display: grid; place-items: center; padding: 8px 18px; background: var(--ink); color: #fff; text-align: center; font-size: 12px; font-weight: 750; letter-spacing: .04em; }
.site-header { position: fixed; z-index: 100; top: 50px; left: 50%; width: min(1460px, calc(100% - 30px)); transform: translateX(-50%); }
.nav-shell { min-height: 76px; display: flex; align-items: center; gap: 32px; padding: 0 28px; background: rgba(255,255,255,.92); border: 1px solid rgba(255,255,255,.65); border-radius: 24px; box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; font-size: 24px; font-weight: 900; letter-spacing: -.07em; }
.brand-dot { color: var(--orange); }
.custom-logo { max-height: 35px; width: auto; }
.custom-logo-link { display: inline-flex; align-items: center; }
.primary-nav { margin-inline: auto; }
.primary-nav ul { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 38px); margin: 0; padding: 0; list-style: none; }
.primary-nav a { font-size: 14px; font-weight: 760; transition: opacity .2s; }
.primary-nav a:hover { opacity: .55; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { position: relative; width: 42px; height: 42px; display: grid; place-items: center; padding: 0; background: transparent; border: 0; border-radius: 50%; cursor: pointer; transition: background .2s; }
.icon-btn:hover { background: #efefeb; }
.icon-btn svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.cart-count { position: absolute; top: 1px; right: 0; min-width: 17px; height: 17px; display: grid; place-items: center; padding: 0 4px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 10px; font-weight: 800; }
.menu-toggle { display: none; }

.hero { min-height: 830px; display: flex; align-items: center; position: relative; background: #b8afa6 url('assets/images/snapfit-hero.png') center/cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,15,13,.64) 0%, rgba(15,15,13,.28) 39%, transparent 68%); }
.hero-content { position: relative; z-index: 1; width: var(--wrap); margin: 110px auto 0; color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; color: inherit; font-size: 12px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 7px; height: 7px; background: var(--orange); border-radius: 50%; }
.hero h1 { max-width: 670px; margin: 0 0 20px; font-size: clamp(56px, 6.9vw, 108px); line-height: .89; letter-spacing: -.075em; }
.hero p { max-width: 480px; margin: 0 0 34px; color: rgba(255,255,255,.82); font-size: clamp(16px, 1.4vw, 20px); line-height: 1.5; }
.button-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 24px; background: var(--ink); color: #fff; border: 1px solid var(--ink); border-radius: 999px; font-weight: 800; transition: transform .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.55); backdrop-filter: blur(8px); }

.section { padding: clamp(76px, 9vw, 140px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 38px; }
.section-head h2, .editorial-copy h2, .review h2 { margin: 0; font-size: clamp(38px, 5vw, 72px); line-height: .95; letter-spacing: -.065em; }
.section-head p { max-width: 450px; margin: 0; color: var(--muted); line-height: 1.6; }
.slider-controls { display: flex; gap: 8px; }
.slider-btn { width: 48px; height: 48px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; font-size: 20px; }
.product-track { display: grid; grid-auto-columns: minmax(270px, 31vw); grid-auto-flow: column; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.product-track::-webkit-scrollbar { display: none; }
.product-card { position: relative; min-height: 500px; display: flex; flex-direction: column; overflow: hidden; background: #e8e5df; border-radius: var(--radius); scroll-snap-align: start; }
.product-visual { min-height: 390px; flex: 1; position: relative; overflow: hidden; background: #d8d2ca url('assets/images/snapfit-hero.png') 70% center/auto 100% no-repeat; transition: transform .5s ease; }
.product-card:nth-child(2) .product-visual { background-position: 51% center; filter: saturate(.75) brightness(1.08); }
.product-card:nth-child(3) .product-visual { background-position: 89% center; filter: contrast(1.1); }
.product-card:nth-child(4) .product-visual { background-position: 61% center; filter: grayscale(.7) brightness(.85); }
.product-card:hover .product-visual { transform: scale(1.025); }
.product-badge { position: absolute; top: 18px; left: 18px; z-index: 1; padding: 8px 11px; background: var(--orange); color: #fff; border-radius: 99px; font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.product-info { display: flex; justify-content: space-between; gap: 15px; padding: 22px; background: #fff; }
.product-info h3 { margin: 0 0 5px; font-size: 19px; letter-spacing: -.03em; }
.product-info p { margin: 0; color: var(--muted); font-size: 13px; }
.product-price { white-space: nowrap; font-size: 14px; font-weight: 800; }

.review { padding: 64px 25px 78px; text-align: center; background: var(--ink); color: #fff; }
.stars { margin-bottom: 14px; color: var(--orange); font-size: 22px; letter-spacing: .22em; }
.review h2 { max-width: 900px; margin-inline: auto; }
.review p { margin: 20px 0 30px; color: rgba(255,255,255,.65); }

.category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.category-card { min-height: 540px; position: relative; display: flex; align-items: end; overflow: hidden; padding: 34px; background: #d7d4cd; border-radius: var(--radius); }
.category-card::before { content: ""; position: absolute; inset: 0; background: url('assets/images/snapfit-hero.png') center/cover; transition: transform .55s ease; }
.category-card:nth-child(2)::before { background-position: 72% center; filter: grayscale(1) brightness(.62); }
.category-card:nth-child(3)::before { background-position: 34% center; filter: sepia(.35) saturate(.65); }
.category-card:nth-child(4)::before { background-position: 88% center; filter: brightness(.72); }
.category-card::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.72)); }
.category-card:hover::before { transform: scale(1.035); }
.category-copy { position: relative; z-index: 1; color: #fff; }
.category-copy span { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.category-copy h3 { margin: 7px 0 0; font-size: clamp(34px, 4vw, 62px); letter-spacing: -.06em; }

.editorial { display: grid; grid-template-columns: 1.25fr .75fr; min-height: 700px; background: #d4cec6; }
.editorial-image { background: url('assets/images/snapfit-hero.png') 74% center/cover no-repeat; }
.editorial-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(45px, 7vw, 110px); background: #c95425; color: #fff; }
.editorial-copy p { max-width: 520px; margin: 26px 0 32px; font-size: 17px; line-height: 1.7; color: rgba(255,255,255,.82); }

.values { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.value { padding: 36px; background: #fff; border-radius: 22px; }
.value-num { color: var(--orange); font-size: 13px; font-weight: 850; }
.value h3 { margin: 65px 0 12px; font-size: 26px; letter-spacing: -.04em; }
.value p { margin: 0; color: var(--muted); line-height: 1.65; }

.site-footer { padding: 80px 0 30px; background: var(--ink); color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.1fr 1.9fr; gap: 100px; padding-bottom: 75px; }
.footer-brand { font-size: clamp(50px, 8vw, 120px); line-height: .8; font-weight: 900; letter-spacing: -.08em; }
.footer-intro p { max-width: 420px; margin: 34px 0 25px; color: rgba(255,255,255,.57); line-height: 1.6; }
.newsletter { max-width: 480px; display: flex; border-bottom: 1px solid rgba(255,255,255,.4); }
.newsletter input { min-width: 0; flex: 1; padding: 15px 0; background: transparent; color: #fff; border: 0; outline: 0; }
.newsletter button { padding: 0 5px; background: transparent; color: #fff; border: 0; cursor: pointer; font-weight: 800; }
.footer-links { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; }
.footer-links h3 { margin: 0 0 20px; color: rgba(255,255,255,.42); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.footer-links ul { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin-bottom: 13px; }
.footer-links a { color: rgba(255,255,255,.78); }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.45); font-size: 12px; }

.content-shell { width: min(900px, calc(100% - 40px)); margin: 180px auto 100px; }
.content-shell h1 { font-size: clamp(45px, 6vw, 82px); letter-spacing: -.06em; }
.entry-content { font-family: Georgia, serif; font-size: 18px; line-height: 1.8; }
.entry-content > * { max-width: 760px; margin-inline: auto; }
.entry-content > .alignwide { max-width: 1200px; }

@media (max-width: 980px) {
  :root { --wrap: min(100% - 28px, 900px); }
  .site-header { top: 46px; }
  .nav-shell { min-height: 66px; padding: 0 18px; border-radius: 19px; }
  .menu-toggle { display: grid; }
  .primary-nav { position: fixed; top: 76px; left: 0; width: 100%; padding: 26px; background: #fff; border-radius: 20px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: .25s; }
  .primary-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .primary-nav ul { align-items: stretch; flex-direction: column; gap: 0; }
  .primary-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
  .nav-actions .account-link { display: none; }
  .hero { min-height: 760px; background-position: 61% center; }
  .hero::after { background: linear-gradient(90deg, rgba(15,15,13,.72), rgba(15,15,13,.12)); }
  .product-track { grid-auto-columns: minmax(270px, 55vw); }
  .editorial { grid-template-columns: 1fr; }
  .editorial-image { min-height: 540px; }
  .footer-top { grid-template-columns: 1fr; gap: 60px; }
}

@media (max-width: 650px) {
  .announcement { min-height: 38px; font-size: 10px; }
  .site-header { top: 48px; width: calc(100% - 20px); }
  .brand { font-size: 21px; }
  .nav-shell { padding: 0 12px 0 16px; gap: 6px; }
  .nav-actions { margin-left: auto; }
  .nav-actions .search-link { display: none; }
  .hero { min-height: 720px; align-items: end; background-position: 68% center; }
  .hero::after { background: linear-gradient(0deg, rgba(15,15,13,.85) 0%, rgba(15,15,13,.1) 78%); }
  .hero-content { margin: 0 auto 55px; }
  .hero h1 { font-size: 56px; }
  .hero p { font-size: 15px; }
  .section { padding: 72px 0; }
  .section-head { align-items: start; flex-direction: column; }
  .section-head h2, .review h2, .editorial-copy h2 { font-size: 43px; }
  .product-track { grid-auto-columns: 84vw; }
  .product-card { min-height: 460px; }
  .category-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 440px; }
  .editorial-image { min-height: 440px; }
  .values { grid-template-columns: 1fr; }
  .value h3 { margin-top: 35px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; }
}

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