:root {
  --primary: #0e1211;
  --nav: #424242;
  --accent: #c45c26;
  --accent-dark: #a3491c;
  --bg: #fff;
  --muted: #666;
  --line: #e5e5e5;
  --soft: #f6f6f6;
  --danger: #b20000;
  --success: #7a9c59;
  --radius: 4px;
  --shadow: 0 8px 28px rgba(0, 0, 0, .12);
  --header-h: 91px;
  --nav-h: 43px;
  --top-h: 32px;
}

* { box-sizing: border-box; }
@font-face {
  font-family: Lato;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/lato-400.woff2") format("woff2");
}
@font-face {
  font-family: Lato;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/lato-700.woff2") format("woff2");
}
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Lato, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  background: #fff;
  min-width: 320px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.25; color: #111; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
.container { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 2px solid transparent; cursor: pointer; font-weight: 700;
  text-transform: none; border-radius: 10px; padding: 14px 28px;
  transition: .2s ease; line-height: 1.2;
}
.btn-light { background: #fff; color: #111; }
.btn-light:hover { background: #f2f2f2; }
.btn-outline { background: transparent; color: #fff; border-color: #fff; }
.btn-outline:hover { background: #fff; color: #111; }
.btn-dark { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-dark:hover { background: #000; }
.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 6px; }
.btn-block { width: 100%; }

/* Header */
.topbar {
  background: #1b1b1b; color: #fff; font-size: 11px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; min-height: var(--top-h);
  display: flex; align-items: center; overflow: hidden;
}
.topbar .container { padding: 6px 0; text-align: center; }
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap;
}
.topbar-inner > span { flex: 1; min-width: 220px; }
.translate-wrap {
  display: flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0;
  font-weight: 700; white-space: nowrap;
}
.translate-label { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.lang-select {
  background: #111; color: #fff; border: 1px solid #555; border-radius: 4px;
  padding: 4px 8px; font-size: 12px; font-weight: 700; max-width: 170px;
}
.goog-te-banner-frame, .goog-te-balloon-frame, iframe.skiptranslate { display: none !important; }
body { top: 0 !important; }
.goog-te-gadget-icon { display: none !important; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--line); }
.header-main {
  display: grid; grid-template-columns: 150px 1fr auto; gap: 18px;
  align-items: center; height: var(--header-h);
}
.logo { display: flex; align-items: center; }
.logo img { height: 78px; width: 118px; object-fit: cover; }
.search-wrap { display: flex; }
.search-wrap input {
  flex: 1; border: 1px solid #ddd; border-right: 0; height: 42px;
  padding: 0 14px; outline: none; font-size: 14px; border-radius: 0;
}
.search-wrap button {
  width: 48px; height: 42px; border: 0; background: #111; color: #fff; cursor: pointer;
  display: grid; place-items: center;
}
.header-actions { display: flex; align-items: center; gap: 14px; font-weight: 700; }
.header-actions a { display: flex; align-items: center; gap: 8px; }
.account-link { text-transform: uppercase; font-size: 13px; letter-spacing: .04em; }
.header-divider { width: 1px; height: 28px; background: #ddd; display: inline-block; }
.cart-link { position: relative; }
.cart-meta { font-size: 13px; }
.cart-meta span { color: var(--muted); font-weight: 400; }
.cart-icon {
  width: 32px; height: 32px; background: #111; color: #fff;
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
}
.nav-bar { background: var(--nav); }
.nav-bar .container { display: flex; gap: 4px; overflow-x: auto; }
.nav-bar a {
  color: #fff; font-size: 13px; font-weight: 700; text-transform: uppercase;
  padding: 12px 14px; white-space: nowrap; letter-spacing: .03em;
}
.nav-bar a:hover, .nav-bar a.active { background: #2e2e2e; }
.menu-btn, .mobile-cart { display: none; background: none; border: 0; font-size: 24px; cursor: pointer; }
.hide-sm { display: inline; }

.mobile-menu {
  display: none; background: #111; color: #fff; padding: 12px 16px 20px;
}
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 10px 0; border-bottom: 1px solid #333; font-weight: 700; }

/* Mini cart */
.mini-cart {
  display: none; position: absolute; right: 0; top: calc(100% + 10px);
  width: 340px; background: #fff; box-shadow: var(--shadow); padding: 18px; z-index: 60;
}
.cart-link:hover .mini-cart, .mini-cart.open { display: block; }
.mini-empty { text-align: center; color: var(--muted); padding: 20px 0; }
.mini-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.mini-item img { width: 64px; height: 64px; object-fit: cover; }
.mini-total { display: flex; justify-content: space-between; font-weight: 700; margin: 12px 0; }

/* Hero */
.hero {
  position: relative; color: #fff; text-align: center;
  padding: 72px 16px; background: #111 center/cover no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.8); }
.hero-inner { position: relative; max-width: 920px; margin: 0 auto; }
.hero h1 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.hero p { font-size: 1.05rem; opacity: .95; }
.hero-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }

/* Sections */
.section { padding: 48px 0; }
.section.alt { background: var(--soft); }
.section-title {
  text-align: center; font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 8px;
  text-transform: uppercase; letter-spacing: .04em;
}
.grid-more { text-align: center; margin-top: 28px; }
.pager {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  align-items: center; margin-top: 32px;
}
.pager a, .pager span {
  min-width: 40px; height: 40px; display: inline-flex; align-items: center;
  justify-content: center; border: 1px solid var(--line); padding: 0 12px;
  font-weight: 700; font-size: 14px; background: #fff;
}
.pager a:hover { background: #111; color: #fff; border-color: #111; }
.pager .active { background: #111; color: #fff; border-color: #111; }
.pager .off { color: #bbb; }
.lead { text-align: center; max-width: 820px; margin: 0 auto 28px; color: #444; }
.prose { max-width: 900px; margin: 0 auto; }
.prose h2 { margin-top: 1.4em; }
.prose ul { list-style: disc; padding-left: 20px; margin-bottom: 1em; }
.prose li { margin: .35em 0; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.blog-card { background: #fff; border: 1px solid var(--line); }
.blog-card img { width: 100%; height: 200px; object-fit: cover; background: #eee; }
.blog-card .body { padding: 16px 18px 20px; }
.blog-card .meta { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #888; margin: 0 0 6px; font-weight: 700; }
.blog-card h3 { font-size: 1.05rem; min-height: 2.5em; }
.blog-card h3 a:hover { color: var(--accent); }
.blog-article .featured { width: 100%; height: 380px; object-fit: cover; margin: 0 0 28px; background: #eee; }
.blog-composer {
  max-width: 760px; margin: 0 auto; background: #fff; border: 2px solid #111;
  padding: 28px 24px 32px;
}
.blog-composer h2 { margin-bottom: 8px; }
.blog-composer textarea { min-height: 180px; }
.blog-admin { max-width: 760px; margin: 0 auto 28px; }
.blog-admin-form { background: #fff; border: 1px dashed #bbb; padding: 16px 18px; }
.blog-admin .blog-delete { margin-right: 8px; }
.blog-card-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.blog-delete { background: #fff; color: var(--danger); border-color: var(--danger); }
.blog-delete:hover { background: var(--danger); color: #fff; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  text-align: center; padding: 22px 16px; background: #fff; border: 1px solid var(--line);
}
.feature .icon {
  width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 50%;
  background: #111; color: #fff; display: grid; place-items: center; font-size: 22px;
}
.feature h3 { font-size: 1.05rem; }

.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cat-card { background: #fff; border: 1px solid var(--line); overflow: hidden; }
.cat-card img { width: 100%; height: 220px; object-fit: cover; }
.cat-card .body { padding: 16px 18px 22px; }
.cat-card h3 { font-size: 1.1rem; }
.cat-card p { color: #555; font-size: 14px; }

.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.step { background: #fff; border: 1px solid var(--line); padding: 18px; }
.step b { display: block; color: var(--accent); margin-bottom: 6px; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 16px; }
.product-card { background: #fff; position: relative; }
.product-card .thumb { position: relative; overflow: hidden; background: #f3f3f3; }
.product-card img { width: 100%; height: 260px; object-fit: cover; transition: .35s; }
.product-card:hover img { transform: scale(1.04); }
.quick {
  position: absolute; left: 0; right: 0; bottom: 0; background: rgba(17,17,17,.86);
  color: #fff; text-align: center; padding: 10px; font-size: 13px; font-weight: 700;
  transform: translateY(100%); transition: .2s; border: 0; width: 100%; cursor: pointer;
}
.product-card:hover .quick { transform: none; }
.product-card .info { padding: 12px 4px 8px; }
.product-card .btn { margin-top: 10px; }
.product-cat {
  font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  color: rgba(0,0,0,.45); margin: 0 0 4px; font-weight: 700;
}
.product-card h3 { font-size: .95rem; min-height: 2.6em; font-weight: 400; margin: 0 0 6px; }
.product-card h3 a { color: #334862; }
.product-card h3 a:hover { color: #111; }
.price { font-weight: 700; color: #111; }

.audience { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.audience article { background: #fff; border: 1px solid var(--line); padding: 18px; }

.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 700; color: #111; }
.faq p { margin: 10px 0 4px; color: #444; }

.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review { background: #fff; border: 1px solid var(--line); padding: 18px; }
.stars { color: #e0a106; letter-spacing: 2px; margin-bottom: 8px; }
.review cite { display: block; margin-top: 10px; font-style: normal; font-weight: 700; font-size: 13px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; }
.info-list dt { font-weight: 700; margin-top: 12px; }
.info-list dd { margin: 0; color: #555; }

form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { display: block; font-size: 13px; font-weight: 700; margin: 10px 0 4px; }
input, select, textarea {
  width: 100%; border: 1px solid #ccc; padding: 10px 12px; border-radius: 3px; background: #fff;
}
textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 8px; }
.alert { padding: 12px 14px; border-radius: 4px; margin: 12px 0; }
.alert-ok { background: #eef7e8; color: #2d5a12; }
.alert-err { background: #fdecec; color: #8a1212; }

/* Shop layout */
.page-hero {
  background: #f3f3f3; border-bottom: 1px solid var(--line); padding: 28px 0 22px;
}
.crumbs { font-size: 13px; color: #777; margin-bottom: 6px; }
.crumbs a:hover { color: #111; }
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 28px; }
.sidebar { background: #fff; }
.sidebar h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .04em; border-bottom: 2px solid #111; padding-bottom: 8px; }
.sidebar a { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
.sidebar a:hover, .sidebar a.active { color: var(--accent); }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-size: 14px; gap: 12px; flex-wrap: wrap; }
.toolbar select { width: auto; }

.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.gallery img { width: 100%; height: 420px; object-fit: cover; background: #eee; }
.meta-list { font-size: 14px; margin: 12px 0 20px; }
.meta-list div { display: flex; justify-content: space-between; border-bottom: 1px dashed #ddd; padding: 7px 0; }
.qty-row { display: flex; gap: 10px; align-items: center; margin: 16px 0; }
.qty-row input { width: 80px; }

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { border-bottom: 1px solid var(--line); padding: 12px 8px; text-align: left; vertical-align: middle; }
.cart-table img { width: 72px; height: 72px; object-fit: cover; }
.totals { max-width: 380px; margin-left: auto; background: var(--soft); padding: 18px; }
.totals div { display: flex; justify-content: space-between; margin: 8px 0; }
.totals .grand { font-size: 1.2rem; font-weight: 700; border-top: 1px solid #ddd; padding-top: 10px; }

.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.order-via small { display: block; font-weight: 400; opacity: .85; margin-top: 4px; }
.order-via .btn { margin-bottom: 8px; }
.btn small { display: block; font-weight: 400; opacity: .85; margin-top: 4px; text-transform: none; }
#order-modal .auth-box { grid-template-columns: 1fr; }
.topbar a { color: #fff; text-decoration: underline; }
.legal h2 { margin-top: 1.6em; font-size: 1.2rem; }

footer { background: var(--primary); color: #ddd; padding: 48px 0 0; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; padding-bottom: 32px; }
footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; }
footer a { color: #ddd; display: block; margin: 6px 0; font-size: 14px; }
footer a:hover { color: #fff; }
.copy { border-top: 1px solid #2a2a2a; padding: 14px 0; font-size: 13px; color: #aaa; text-align: center; }

.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.55); display: none;
  place-items: center; z-index: 80; padding: 16px;
}
.modal.open { display: grid; }
.modal-box { background: #fff; width: min(820px, 100%); display: grid; grid-template-columns: 1fr 1fr; }
.modal-box img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.modal-body { padding: 22px; }
.close-x { float: right; background: none; border: 0; font-size: 22px; cursor: pointer; }
.remember label { font-weight: 400; display: flex; align-items: center; gap: 8px; }
.remember input { width: auto; }
.auth-box {
  background: #fff; width: min(820px, 100%); padding: 28px 24px 32px;
  position: relative; max-height: 92vh; overflow: auto;
}
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.auth-box .close-x { position: absolute; top: 10px; right: 12px; }
.account-dash h3 { margin-top: 28px; }
.account-update { max-width: 640px; }

  .topbar-inner { justify-content: center; }
  .translate-wrap { width: 100%; justify-content: center; }
  .logo img { height: 54px; width: 82px; }
  .search-wrap, .header-actions .hide-sm, .nav-bar { display: none; }
  .menu-btn, .mobile-cart { display: block; }
  .features, .cat-grid, .product-grid, .reviews, .audience, .blog-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .shop-layout, .product-layout, .contact-grid, .account-grid, .footer-grid, .modal-box, .auth-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .features, .cat-grid, .product-grid, .reviews, .audience, .steps, form .row, .blog-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 12px; }
}
