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

:root {
  --primary: #ff5700;
  --primary-hover: #e64e00;
  --primary-pressed: #b73a00;
  --primary-soft: #fff1e8;
  --secondary: #58240f;
  --brown: #725035;
  --brown-mid: #8d5d39;
  --accent: #fa9602;
  --sky: #e6efff;
  --cream: #fff3db;
  --cream-2: #fef0d5;
  --background: #fffdf9;
  --surface: #ffffff;
  --text: #3a1a0c;
  --muted: #7a5a48;
  --border: #f0e4d4;
  --gray: #727272;
  --success: #2f8f5b;
  --danger: #d64545;
  --star: #fa9602;
  --shadow: 0 10px 30px rgba(88, 36, 15, 0.08);
  --shadow-lg: 0 18px 50px rgba(88, 36, 15, 0.12);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-full: 999px;
  --header: 84px;
  --container: 1180px;
  --font: "Noto Sans Georgian", "Nunito", sans-serif;
  --font-num: "Nunito", "Noto Sans Georgian", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--background);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: #fff;
  padding: 8px 12px;
  border-radius: 8px;
}

.pet-fall {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  overflow: hidden;
}

.pet-fall span {
  position: absolute;
  top: -12vh;
  line-height: 1;
  user-select: none;
  will-change: transform, opacity;
  animation-name: pet-fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  filter: saturate(0.85);
}

@keyframes pet-fall {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 0;
  }
  8% {
    opacity: var(--o);
  }
  86% {
    opacity: var(--o);
  }
  100% {
    transform: translate3d(var(--drift), 118vh, 0) rotate(var(--spin));
    opacity: 0;
  }
}

@keyframes pet-fall-sway {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: var(--o);
  }
  50% {
    transform: translate3d(calc(var(--drift) * -0.55), 55vh, 0) rotate(calc(var(--spin) * 0.5));
  }
  88% {
    opacity: var(--o);
  }
  100% {
    transform: translate3d(var(--drift), 118vh, 0) rotate(var(--spin));
    opacity: 0;
  }
}

@keyframes pet-fall-cross {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: var(--o);
  }
  38% {
    transform: translate3d(calc(var(--drift) * 0.85), 40vh, 0) rotate(calc(var(--spin) * -0.35));
  }
  72% {
    transform: translate3d(calc(var(--drift) * -0.4), 78vh, 0) rotate(calc(var(--spin) * 0.7));
  }
  88% {
    opacity: var(--o);
  }
  100% {
    transform: translate3d(var(--drift), 118vh, 0) rotate(var(--spin));
    opacity: 0;
  }
}

@media (max-width: 860px) {
  .pet-fall span {
    filter: saturate(0.75);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pet-fall {
    display: none;
  }
}

/* Promo */
.promo-bar {
  background: var(--secondary);
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  letter-spacing: 0.01em;
}

.promo-bar span {
  color: var(--accent);
}

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

.header-inner {
  height: var(--header);
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: nowrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 50%;
  border: 1.5px solid var(--secondary);
  background: #fff;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text strong {
  font-size: 18px;
  font-weight: 800;
  color: var(--secondary);
}

.logo-text small {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-num);
}

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

.nav a,
.nav-drop > button {
  padding: 8px 12px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 14px;
  color: var(--secondary);
}

.nav a:hover,
.nav-drop > button:hover,
.nav a.is-active {
  background: var(--primary-soft);
  color: var(--primary);
}

.nav-drop {
  position: relative;
}

.nav-drop > button {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  display: none;
}

.nav-drop:hover .nav-menu,
.nav-drop:focus-within .nav-menu,
.nav-drop.open .nav-menu {
  display: grid;
}

.nav-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 600;
}

.header-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.search-wrap {
  position: relative;
  width: min(280px, 28vw);
}

.search-wrap input {
  width: 100%;
  height: 44px;
  border: 1.5px solid var(--border);
  background: #fff;
  border-radius: var(--radius-full);
  padding: 0 16px 0 42px;
  outline: none;
  color: var(--text);
}

.search-wrap input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 87, 0, 0.12);
}

.search-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  display: none;
  z-index: 20;
}

.search-results.open {
  display: block;
}

.search-results a,
.search-empty {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  font-size: 13px;
}

.search-results a:hover {
  background: var(--cream);
}

.search-results img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 10px;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  color: var(--secondary);
  border: 1.5px solid transparent;
}

.icon-btn:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.icon-btn .badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  font-family: var(--font-num);
  display: grid;
  place-items: center;
}

.hamburger,
.mobile-search-btn {
  display: none;
}

/* Hero */
.hero {
  position: relative;
  background: var(--primary);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  border-bottom-left-radius: 36px;
  border-bottom-right-radius: 36px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% auto auto -10%;
  width: 420px;
  height: 420px;
  background: var(--sky);
  opacity: 0.22;
  border-radius: 50%;
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
  padding: 56px 0 0;
  min-height: 560px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 6px 18px rgba(88, 36, 15, 0.18);
  max-width: 14ch;
}

.hero p.lead {
  margin-top: 16px;
  max-width: 42ch;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
}

.hero-logo {
  width: min(320px, 100%);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid #fff;
  box-shadow: 0 18px 40px rgba(88, 36, 15, 0.22);
  background: #fff;
}

.hero-pets {
  width: 100%;
  margin-top: -8px;
  display: block;
  object-fit: cover;
  object-position: center 72%;
  height: 168px;
  mask-image: linear-gradient(to top, #000 70%, transparent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 15px;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

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

.btn-primary {
  background: var(--primary);
  color: #fff;
}

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

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

.btn-white {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 8px 20px rgba(88, 36, 15, 0.12);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.btn-ghost {
  background: var(--primary-soft);
  color: var(--primary);
}

.btn-block {
  width: 100%;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-cream {
  background: var(--cream);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 32px;
}

.section-head h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-head p {
  color: var(--muted);
  margin-top: 6px;
}

.link {
  font-weight: 800;
  color: var(--primary);
}

/* Categories */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 150px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.cat-ico {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--cream);
  color: var(--primary);
  display: grid;
  place-items: center;
}

.cat-card h3 {
  font-size: 18px;
}

.cat-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

/* Products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

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

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

.product-media {
  position: relative;
  background: var(--cream-2);
  aspect-ratio: 1;
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.product-card:hover .product-media img {
  transform: scale(1.04);
}

.pill {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-family: var(--font-num);
}

.pill.new {
  background: var(--secondary);
}

.wish {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  color: var(--secondary);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(88, 36, 15, 0.12);
}

.wish.active,
.wish:hover {
  color: var(--primary);
}

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

.brand {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brown-mid);
  font-family: var(--font-num);
}

.product-body h3 {
  font-size: 15px;
  line-height: 1.35;
  min-height: 2.7em;
}

.rating {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--star);
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-num);
}

.rating span {
  color: var(--muted);
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

.price {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-num);
}

.old {
  font-size: 13px;
  color: var(--gray);
  text-decoration: line-through;
  font-family: var(--font-num);
}

.add-btn {
  margin-top: 10px;
  height: 42px;
  border-radius: var(--radius-full);
  background: var(--secondary);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
}

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

/* Offers */
.offers {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
}

.offer-banner {
  background: var(--primary);
  color: #fff;
  border-radius: 32px;
  padding: 36px;
  position: relative;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.offer-banner::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 180px;
  height: 180px;
  background: var(--sky);
  opacity: 0.2;
  border-radius: 50%;
}

.offer-banner h3 {
  font-size: 32px;
  max-width: 12ch;
}

.offer-banner p {
  margin: 12px 0 22px;
  max-width: 36ch;
  color: rgba(255, 255, 255, 0.92);
}

.offer-side {
  display: grid;
  gap: 18px;
}

.offer-mini {
  background: var(--secondary);
  color: #fff;
  border-radius: 28px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 131px;
}

.offer-gold {
  background: var(--cream);
  color: var(--secondary);
  border: 1px solid var(--border);
}

/* Why */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.why-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.why-card h3 {
  margin: 12px 0 8px;
  font-size: 18px;
}

.why-card p {
  color: var(--muted);
  font-size: 14px;
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.blog-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.blog-card .body {
  padding: 18px;
}

.tag {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

/* Newsletter */
.newsletter {
  background: var(--secondary);
  color: #fff;
  border-radius: 32px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
}

.newsletter h2 {
  font-size: 30px;
}

.newsletter p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.8);
}

.news-form {
  display: flex;
  gap: 8px;
  background: #fff;
  padding: 6px;
  border-radius: var(--radius-full);
}

.news-form input {
  flex: 1;
  border: 0;
  outline: none;
  padding: 0 16px;
  min-width: 0;
  color: var(--text);
}

/* Footer */
.site-footer {
  background: #2a140a;
  color: #f7efe6;
  padding: 56px 0 24px;
  margin-top: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.footer-brand img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid #fff;
}

.site-footer h4 {
  margin-bottom: 14px;
  font-size: 15px;
}

.site-footer a,
.site-footer p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  display: block;
  margin-bottom: 8px;
}

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

.socials {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  margin: 0;
}

.copy {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 36px;
  padding-top: 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Shop */
.page-hero {
  background: var(--cream);
  padding: 36px 0 28px;
  border-bottom: 1px solid var(--border);
}

.crumbs {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.crumbs a:hover {
  color: var(--primary);
}

.shop-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 28px;
  padding: 32px 0 64px;
}

.filters {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  height: fit-content;
  position: sticky;
  top: calc(var(--header) + 24px);
}

.filters h3 {
  font-size: 16px;
  margin-bottom: 12px;
}

.filter-group {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.filter-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  cursor: pointer;
}

.price-inputs {
  display: flex;
  gap: 8px;
}

.price-inputs input,
.select {
  width: 100%;
  height: 40px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0 10px;
  outline: none;
  background: #fff;
}

.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.pagination button {
  min-width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: #fff;
  font-weight: 800;
}

.pagination button.active,
.pagination button:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.filter-toggle {
  display: none;
}

/* Product page */
.pdp {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  padding: 36px 0 64px;
}

.gallery-main {
  background: var(--cream-2);
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid var(--border);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.thumbs button {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
}

.thumbs button.active,
.thumbs button:hover {
  border-color: var(--primary);
}

.thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pdp-brand {
  color: var(--brown-mid);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  font-family: var(--font-num);
}

.pdp h1 {
  font-size: 32px;
  margin: 8px 0 12px;
  line-height: 1.2;
}

.pdp-price {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}

.pdp-price .price {
  font-size: 32px;
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.qty button {
  width: 40px;
  height: 44px;
  font-size: 18px;
  font-weight: 800;
}

.qty input {
  width: 48px;
  border: 0;
  text-align: center;
  font-weight: 800;
  font-family: var(--font-num);
}

.pdp-actions {
  display: flex;
  gap: 10px;
  margin: 18px 0 24px;
  flex-wrap: wrap;
}

.tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.tabs button {
  padding: 10px 14px;
  font-weight: 800;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.tabs button.active {
  color: var(--primary);
  border-color: var(--primary);
}

.tab-panel {
  display: none;
  color: var(--muted);
}

.tab-panel.active {
  display: block;
}

.specs {
  display: grid;
  gap: 8px;
}

.specs div {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed var(--border);
  padding: 8px 0;
  color: var(--text);
}

.review {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

/* Cart */
.cart-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 24px;
  padding: 32px 0 64px;
}

.cart-item {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 12px;
  align-items: center;
}

.cart-item img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 16px;
  background: var(--cream);
}

.summary {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  height: fit-content;
  position: sticky;
  top: calc(var(--header) + 24px);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--muted);
}

.summary-row.total {
  color: var(--text);
  font-size: 20px;
  font-weight: 800;
  margin: 16px 0;
}

.empty {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border);
}

/* Drawers & modals */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(42, 20, 10, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  z-index: 70;
}

.overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(400px, 100%);
  background: #fff;
  z-index: 80;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
}

.drawer.open {
  transform: none;
}

.drawer-head,
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.drawer-body {
  padding: 16px 20px;
  overflow: auto;
  flex: 1;
}

.drawer-foot {
  padding: 16px 20px 24px;
  border-top: 1px solid var(--border);
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 90;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 24px;
  padding: 8px 8px 24px;
  box-shadow: var(--shadow-lg);
}

.modal-card form {
  padding: 8px 16px 0;
  display: grid;
  gap: 10px;
}

.modal-card input {
  height: 46px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 0 14px;
}

.mobile-nav {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(320px, 88%);
  background: #fff;
  z-index: 80;
  transform: translateX(-100%);
  transition: 0.25s;
  padding: 20px;
  overflow: auto;
}

.mobile-nav.open {
  transform: none;
}

.mobile-nav a,
.mobile-nav button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 8px;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--secondary);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-full);
  font-weight: 700;
  opacity: 0;
  z-index: 100;
  transition: 0.25s;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.mobile-tabbar {
  display: none;
}

@media (max-width: 860px) {
  .mobile-tabbar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    z-index: 45;
    padding: 6px 8px calc(8px + env(safe-area-inset-bottom));
  }
  .mobile-tabbar a,
  .mobile-tabbar button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 11px;
    font-weight: 700;
    color: var(--secondary);
    position: relative;
    padding: 6px;
  }
  .mobile-tabbar .badge {
    position: absolute;
    top: 2px;
    right: calc(50% - 18px);
  }
  body {
    padding-bottom: 72px;
  }
}

.hidden {
  display: none !important;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
  padding: 40px 0 64px;
}

.about-grid img {
  border-radius: 32px;
  width: 100%;
}

.contact-list {
  margin-top: 18px;
  display: grid;
  gap: 8px;
}

/* Responsive */
@media (max-width: 1100px) {
  .product-grid,
  .cat-grid,
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero-grid,
  .offers,
  .newsletter,
  .pdp,
  .cart-layout,
  .about-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .shop-layout {
    grid-template-columns: 230px 1fr;
  }
}

@media (max-width: 860px) {
  .nav,
  .header-tools .search-wrap {
    display: none;
  }
  .hamburger,
  .mobile-search-btn {
    display: grid;
  }
  .logo-text {
    display: none;
  }
  .logo img {
    width: 44px;
    height: 44px;
  }
  .header-tools .search-wrap,
  .header-tools [data-open="account"],
  .header-tools [data-open="wish"],
  .header-tools [data-open="cart"] {
    display: none !important;
  }
  .icon-btn,
  .hamburger,
  .mobile-search-btn {
    width: 40px;
    height: 40px;
  }
  .header-inner {
    display: grid;
    grid-template-columns: 40px 44px 1fr auto;
    gap: 8px;
    align-items: center;
  }
  .header-tools {
    margin-left: 0;
    gap: 0;
  }
  .hero-grid,
  .offers,
  .newsletter,
  .pdp,
  .cart-layout,
  .about-grid,
  .shop-layout,
  .footer-grid,
  .blog-grid,
  .cat-grid,
  .why-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }
  .product-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-grid {
    min-height: 0;
    padding-top: 36px;
  }
  .hero-visual {
    min-height: 240px;
  }
  .hero-logo {
    width: 220px;
  }
  .filters {
    position: fixed;
    inset: auto 0 0;
    z-index: 85;
    border-radius: 24px 24px 0 0;
    transform: translateY(110%);
    transition: 0.25s;
    max-height: 80vh;
    overflow: auto;
    margin-bottom: 0;
    padding-bottom: 88px;
  }
  .filters.open {
    transform: none;
  }
  .filter-toggle {
    display: inline-flex;
  }
  .cart-item {
    grid-template-columns: 72px 1fr;
  }
  .section {
    padding: 48px 0;
  }
  .container {
    width: min(var(--container), calc(100% - 28px));
  }
}

@media (max-width: 520px) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .product-body {
    padding: 12px;
  }
  .product-body h3 {
    min-height: 0;
    font-size: 13px;
  }
  .add-btn {
    font-size: 12px;
    height: 38px;
  }
  .hero h1 {
    max-width: none;
  }
  .pdp-actions .btn {
    flex: 1;
  }
  .copy {
    flex-direction: column;
  }
  .news-form {
    flex-direction: column;
    border-radius: 20px;
    padding: 10px;
  }
  .news-form .btn {
    width: 100%;
  }
}
