/* ============================================================
   PATITAS & CO. — PET SHOP STYLESHEET
   Author: Patitas & Co. Dev Team
   Version: 1.0
   ============================================================ */

/* ── 1. CUSTOM PROPERTIES ─────────────────────────────────── */
:root {
  --cream: #FAF6F0;
  --warm-white: #FFFCF7;
  --sand: #F0E8D8;
  --terracotta: #C5603A;
  --terracotta-d: #A8472A;
  --terracotta-l: #E8795C;
  --forest: #2C5F2E;
  --forest-l: #3D7A40;
  --charcoal: #1E1E1E;
  --gray-dark: #3A3A3A;
  --gray-mid: #717171;
  --gray-light: #E8E0D4;
  --white: #FFFFFF;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(30, 30, 30, 0.08);
  --shadow-md: 0 8px 24px rgba(30, 30, 30, 0.12);
  --shadow-lg: 0 20px 60px rgba(30, 30, 30, 0.16);
  --shadow-card: 0 4px 20px rgba(197, 96, 58, 0.12);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  --header-h: 72px;
  --container: 1200px;
}

/* ── 2. RESET & BASE ──────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--warm-white);
  color: var(--charcoal);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: 1rem;
}

/* ── 3. UTILITIES ─────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.15;
}

.section-title em {
  font-style: italic;
  color: var(--terracotta);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

/* ── 4. BUTTONS ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--terracotta);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(197, 96, 58, 0.35);
}

.btn-primary:hover {
  background: var(--terracotta-d);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(197, 96, 58, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border: 2px solid var(--gray-light);
}

.btn-ghost:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

.btn-sm {
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
}

/* ── 5. REVEAL ANIMATIONS ─────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right {
  transform: translateX(36px);
}

.reveal.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* Stagger delays for grid children */
.products-grid .reveal:nth-child(1),
.services-grid .reveal:nth-child(1),
.categories-grid .reveal:nth-child(1) {
  transition-delay: 0.05s;
}

.products-grid .reveal:nth-child(2),
.services-grid .reveal:nth-child(2),
.categories-grid .reveal:nth-child(2) {
  transition-delay: 0.1s;
}

.products-grid .reveal:nth-child(3),
.services-grid .reveal:nth-child(3),
.categories-grid .reveal:nth-child(3) {
  transition-delay: 0.15s;
}

.products-grid .reveal:nth-child(4),
.services-grid .reveal:nth-child(4),
.categories-grid .reveal:nth-child(4) {
  transition-delay: 0.2s;
}

.products-grid .reveal:nth-child(5) {
  transition-delay: 0.25s;
}

.products-grid .reveal:nth-child(6) {
  transition-delay: 0.3s;
}

.products-grid .reveal:nth-child(7) {
  transition-delay: 0.35s;
}

.products-grid .reveal:nth-child(8) {
  transition-delay: 0.4s;
}

.products-grid .reveal:nth-child(9) {
  transition-delay: 0.45s;
}

.products-grid .reveal:nth-child(10) {
  transition-delay: 0.5s;
}

/* ── 6. HEADER ────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  transition: background var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  background: rgba(255, 252, 247, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo-mark {
  width: 42px;
  height: 42px;
  background: var(--terracotta);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.logo:hover .logo-mark {
  transform: rotate(-8deg) scale(1.05);
}

.logo-svg {
  width: 28px;
  height: 28px;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1;
}

.logo-text em {
  font-style: italic;
  color: var(--terracotta);
}

.logo-white .logo-text {
  color: var(--white);
}

.logo-white .logo-mark {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-dark);
  position: relative;
  transition: color var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--terracotta);
  border-radius: 2px;
  transition: width var(--transition);
}

.nav-link:hover {
  color: var(--terracotta);
}

.nav-link:hover::after {
  width: 100%;
}

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cart-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.cart-btn svg {
  width: 20px;
  height: 20px;
  color: var(--charcoal);
}

.cart-btn:hover {
  background: var(--terracotta);
}

.cart-btn:hover svg {
  color: white;
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  background: var(--terracotta);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.cart-btn:hover .cart-count {
  background: var(--forest);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--sand);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── 7. HERO ──────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  padding-top: var(--header-h);
  position: relative;
  display: flex;
  align-items: center;
  overflow: visible;
  background: var(--cream);
}

/* Animated blobs */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: blobFloat 8s ease-in-out infinite alternate;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #E8795C 0%, transparent 70%);
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.blob-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #3D7A40 0%, transparent 70%);
  bottom: 0;
  left: -50px;
  animation-delay: 2s;
}

.blob-3 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, #F0E8D8 0%, transparent 70%);
  top: 50%;
  left: 40%;
  animation-delay: 4s;
}

@keyframes blobFloat {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(30px, -40px) scale(1.08);
  }
}

/* Paw decorations */
.paw-deco {
  position: absolute;
  font-size: 2rem;
  opacity: 0.08;
  animation: pawSpin 20s linear infinite;
  user-select: none;
}

.paw-d1 {
  top: 15%;
  left: 8%;
  font-size: 3rem;
  animation-duration: 25s;
}

.paw-d2 {
  top: 60%;
  right: 5%;
  font-size: 1.5rem;
  animation-direction: reverse;
}

.paw-d3 {
  bottom: 10%;
  left: 30%;
  font-size: 2.5rem;
  animation-duration: 18s;
}

@keyframes pawSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.hero-badge {
  display: inline-block;
  background: var(--sand);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-full);
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-dark);
  margin-bottom: 1.25rem;
  animation: fadeInDown 0.8s ease both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--charcoal);
  margin-bottom: 1.25rem;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-title em {
  font-style: italic;
  color: var(--terracotta);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--gray-mid);
  max-width: 480px;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease 0.35s both;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.5s both;
}

/* Hero image */
.hero-image {
  position: relative;
  animation: fadeInRight 0.9s ease 0.3s both;
}

.hero-img-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: visible;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
}

.hero-img-wrapper img {
  border-radius: var(--radius-xl);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Floating badges */
.hero-badge-float {
  position: absolute;
  background: white;
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: floatUpDown 3s ease-in-out infinite alternate;
}

.badge-f1 {
  bottom: 2rem;
  left: -2.5rem;
  animation-delay: 0s;
}

.badge-f2 {
  top: 2.5rem;
  right: -2rem;
  animation-delay: 1.5s;
}

.badge-emoji {
  font-size: 1.5rem;
}

.hero-badge-float strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--charcoal);
}

.hero-badge-float small {
  font-size: 0.75rem;
  color: var(--gray-mid);
}

@keyframes floatUpDown {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-8px);
  }
}


/* Keyframes utilities */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(32px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ── 8. STATS ─────────────────────────────────────────────── */
.stats {
  background: var(--terracotta);
  padding: 4rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-item {
  text-align: center;
  color: white;
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.85;
  font-weight: 500;
}

/* ── 9. ABOUT ─────────────────────────────────────────────── */
.about {
  padding: 6rem 0;
  background: var(--warm-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-images {
  position: relative;
  height: 520px;
}

.about-img-main {
  position: absolute;
  top: 0;
  left: 0;
  width: 78%;
  height: 85%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.about-img-main:hover img {
  transform: scale(1.05);
}

.about-img-sec {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 48%;
  height: 52%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 5px solid var(--warm-white);
}

.about-img-sec img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-years-badge {
  position: absolute;
  bottom: 2rem;
  left: 0;
  background: var(--terracotta);
  color: white;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.75rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  min-width: 150px;
  white-space: nowrap;
}

.about-years-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.about-years-badge small {
  font-size: 0.75rem;
  opacity: 0.9;
  line-height: 1.4;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-text p {
  color: var(--gray-mid);
  font-size: 1.05rem;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}

.about-feat {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  transition: transform var(--transition);
}

.about-feat:hover {
  transform: translateX(6px);
}

.feat-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.about-feat strong {
  display: block;
  font-weight: 600;
  color: var(--charcoal);
  font-size: 0.95rem;
}

.about-feat p {
  font-size: 0.85rem;
  color: var(--gray-mid);
  margin: 0;
}

/* ── 10. CATEGORIES ───────────────────────────────────────── */
.categories {
  padding: 6rem 0;
  background: var(--cream);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.cat-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  display: block;
  cursor: pointer;
  transition: transform var(--transition);
}

.cat-card:hover {
  transform: translateY(-6px);
}

.cat-img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.cat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.cat-card:hover .cat-img img {
  transform: scale(1.08);
}

.cat-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 100%);
  padding: 2.5rem 1.25rem 1.25rem;
  color: white;
}

.cat-info h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.cat-info span {
  font-size: 0.8rem;
  opacity: 0.8;
  transition: opacity var(--transition);
}

.cat-card:hover .cat-info span {
  opacity: 1;
}

/* ── 11. PRODUCTS ─────────────────────────────────────────── */
.products {
  padding: 6rem 0;
  background: var(--warm-white);
}

/* Filter bar */
.filter-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-mid);
  background: var(--cream);
  border: 1.5px solid var(--gray-light);
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--terracotta);
  color: white;
  border-color: var(--terracotta);
}

/* Products grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* Product card */
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.product-img-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--cream);
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.07);
}

.product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--terracotta);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.product-badge.badge-new {
  background: var(--forest);
}

.product-wish {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 34px;
  height: 34px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: scale(0.8);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.product-card:hover .product-wish {
  opacity: 1;
  transform: scale(1);
}

.product-wish.liked {
  opacity: 1;
}

.product-body {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.product-cat {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.product-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.3;
}

.product-desc {
  font-size: 0.82rem;
  color: var(--gray-mid);
  line-height: 1.5;
  flex: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--gray-light);
  gap: 0.5rem;
}

.product-price {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--charcoal);
}

.product-price .old-price {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--gray-mid);
  text-decoration: line-through;
  font-family: var(--font-body);
}

.add-cart-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--terracotta);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all var(--transition);
  flex-shrink: 0;
  border: none;
  cursor: pointer;
}

.add-cart-btn:hover {
  background: var(--terracotta-d);
  transform: scale(1.12);
}

.add-cart-btn.added {
  background: var(--forest);
  animation: cartPulse 0.4s ease;
}

@keyframes cartPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.25);
  }
}

/* Hidden products */
.product-card.hidden {
  display: none;
}

/* ── 12. PROMO TICKER ─────────────────────────────────────── */
.promo-banner {
  background: var(--forest);
  color: white;
  overflow: hidden;
  padding: 1rem 0;
}

.promo-ticker {
  position: relative;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: ticker 30s linear infinite;
}

.ticker-track span {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  flex-shrink: 0;
  padding: 0 1.5rem;
  position: relative;
}

.ticker-track span::after {
  content: '·';
  position: absolute;
  right: -0.5rem;
  opacity: 0.5;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ── 13. SERVICES ─────────────────────────────────────────── */
.services {
  padding: 6rem 0;
  background: var(--cream);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  background: var(--terracotta);
  color: white;
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--gray-mid);
  line-height: 1.6;
  flex: 1;
  transition: color var(--transition);
}

.service-card:hover p {
  color: rgba(255, 255, 255, 0.85);
}

.service-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--terracotta);
  transition: color var(--transition);
}

.service-card:hover .service-link {
  color: rgba(255, 255, 255, 0.9);
}

/* ── 14. TESTIMONIALS ─────────────────────────────────────── */
.testimonials {
  padding: 6rem 0;
  background: var(--warm-white);
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 1rem;
}

.testimonials-track::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  min-width: 340px;
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 2rem;
  scroll-snap-align: start;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1.5px solid var(--gray-light);
  transition: all var(--transition);
}

.testimonial-card:hover {
  border-color: var(--terracotta);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.test-stars {
  color: #F59E0B;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.testimonial-card p {
  font-size: 0.95rem;
  color: var(--gray-dark);
  line-height: 1.7;
  font-style: italic;
  flex: 1;
}

.test-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.test-author img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.test-author strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
}

.test-author small {
  font-size: 0.78rem;
  color: var(--gray-mid);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.t-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-light);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.t-dot.active {
  background: var(--terracotta);
  width: 24px;
  border-radius: 4px;
}

/* ── 15. CONTACT ──────────────────────────────────────────── */
.contact {
  padding: 6rem 0;
  background: var(--cream);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
  align-items: start;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  background: var(--white);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.contact-item strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.15rem;
}

.contact-item p {
  font-size: 0.9rem;
  color: var(--gray-mid);
}

.social-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--white);
  border: 1.5px solid var(--gray-light);
  color: var(--charcoal);
  transition: all var(--transition);
}

.social-btn:hover {
  background: var(--terracotta);
  color: white;
  border-color: var(--terracotta);
}

/* Form */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.contact-form h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--cream);
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius-md);
  padding: 0.8rem 1rem;
  color: var(--charcoal);
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(197, 96, 58, 0.12);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #e53e3e;
}

.form-success {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: #d4edda;
  color: #155724;
  border-radius: var(--radius-md);
  padding: 0.9rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 1rem;
}

.form-success.visible {
  display: flex;
  animation: fadeInUp 0.4s ease;
}

/* ── 16. FOOTER ───────────────────────────────────────────── */
.footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.75);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 220px;
}

.footer-links h4,
.footer-newsletter h4 {
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--terracotta-l);
}

.footer-newsletter p {
  font-size: 0.875rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.newsletter-form input {
  flex: 1;
  min-width: 140px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  padding: 0.6rem 1rem;
  color: white;
  font-size: 0.875rem;
  outline: none;
  transition: border-color var(--transition);
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.newsletter-form input:focus {
  border-color: var(--terracotta-l);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ── 17. CART MODAL ───────────────────────────────────────── */
.cart-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
}

.cart-modal.open {
  pointer-events: all;
}

.cart-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background var(--transition);
}

.cart-modal.open .cart-overlay {
  background: rgba(0, 0, 0, 0.45);
}

.cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 420px;
  max-width: 100vw;
  background: var(--warm-white);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  display: flex;
  flex-direction: column;
}

.cart-modal.open .cart-panel {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--gray-light);
}

.cart-header h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
}

.cart-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cream);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.cart-close:hover {
  background: var(--terracotta);
  color: white;
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 3rem 1rem;
  text-align: center;
}

.cart-empty span {
  font-size: 3rem;
}

.cart-empty p {
  color: var(--gray-mid);
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 1rem;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  box-shadow: var(--shadow-sm);
  animation: fadeInUp 0.3s ease;
}

.cart-item-img {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.25rem;
}

.cart-item-price {
  font-size: 0.85rem;
  color: var(--terracotta);
  font-weight: 600;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--cream);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  border: 1px solid var(--gray-light);
}

.qty-btn:hover {
  background: var(--terracotta);
  color: white;
  border-color: var(--terracotta);
}

.qty-num {
  font-size: 0.9rem;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--gray-mid);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  transition: color var(--transition);
}

.cart-item-remove:hover {
  color: #e53e3e;
}

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--gray-light);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.cart-total strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--terracotta);
}

/* ── 18. BACK TO TOP ──────────────────────────────────────── */
.back-top {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 46px;
  height: 46px;
  background: var(--terracotta);
  color: white;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition);
  border: none;
  cursor: pointer;
}

.back-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-top:hover {
  background: var(--terracotta-d);
  transform: translateY(-3px);
}

/* ── 19. RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #FFFCF7;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    z-index: 1400;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 1.1rem 2rem;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    border-bottom: 1px solid var(--gray-light);
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .nav-link::after {
    display: none;
  }

  .hamburger {
    display: flex;
    position: relative;
    z-index: 1500;
  }

  .nav-actions {
    position: relative;
    z-index: 1500;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-top: 1rem;
    padding-bottom: 1.5rem;
    text-align: center;
  }

  .hero-image {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .hero-img-wrapper {
    aspect-ratio: 3/4;
  }

  .hero-desc {
    max-width: 100%;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-scroll-indicator {
    display: none;
  }

  .hero-badge-float {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-images {
    position: relative;
    height: 420px;
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
  }

  .about-img-main {
    position: absolute;
    top: 0;
    left: 0;
    width: 75%;
    height: 78%;
  }

  .about-img-sec {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 52%;
    height: 48%;
  }

  .about-years-badge {
    min-width: 110px;
    padding: 1rem 1.25rem;
    bottom: 1rem;
    left: 0;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 600px) {
  :root {
    --header-h: 64px;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .cat-card {
    aspect-ratio: 1;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .hero-badge-float {
    padding: 0.5rem 0.75rem;
  }

  .badge-f1 {
    left: 0;
  }

  .badge-f2 {
    right: 0;
    top: 1rem;
  }

  .about-images {
    height: 340px;
    max-width: 320px;
  }
}

@media (max-width: 400px) {
  .categories-grid {
    grid-template-columns: 1fr 1fr;
  }
}