/* ============================================
   HOME BY KERRY — Premium Styles
   Elegant • Clean • Warm • Modern
   ============================================ */

/* --- CSS Variables --- */
:root {
  --color-cream: #F9F6F1;
  --color-warm-white: #FDFBF7;
  --color-beige: #EDE6DC;
  --color-soft-beige: #F5F0E9;
  --color-sand: #D4C8B8;
  --color-taupe: #A89F91;
  --color-charcoal: #2C2A26;
  --color-soft-black: #1A1816;
  --color-text: #3D3A35;
  --color-text-light: #6B6560;
  --color-accent: #8B7355;
  --color-accent-hover: #6F5A42;
  --color-whatsapp: #25D366;
  --color-whatsapp-dark: #1DA851;
  --color-border: #E8E0D5;
  --color-badge-new: #8B7355;
  --color-badge-best: #5C4A3A;
  
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  
  --shadow-sm: 0 2px 8px rgba(44, 42, 38, 0.04);
  --shadow-md: 0 4px 20px rgba(44, 42, 38, 0.06);
  --shadow-lg: 0 12px 40px rgba(44, 42, 38, 0.08);
  
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1280px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-warm-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-soft-black);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.125rem; }

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.section-title {
  margin-bottom: var(--space-md);
}

.section-subtitle {
  color: var(--color-text-light);
  max-width: 36rem;
  margin-bottom: var(--space-lg);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
}

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-charcoal);
  color: var(--color-warm-white);
}

.btn-primary:hover {
  background-color: var(--color-soft-black);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-charcoal);
  border: 1.5px solid var(--color-charcoal);
}

.btn-secondary:hover {
  background-color: var(--color-charcoal);
  color: var(--color-warm-white);
}

.btn-whatsapp {
  background-color: var(--color-whatsapp);
  color: white;
}

.btn-whatsapp:hover {
  background-color: var(--color-whatsapp-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.btn-outline-light {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,0.8);
}

.btn-outline-light:hover {
  background: white;
  color: var(--color-charcoal);
}

.btn-sm {
  padding: 0.6rem 1.25rem;
  font-size: 0.75rem;
}

.btn-full {
  width: 100%;
}

/* --- Header / Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(253, 251, 247, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: var(--space-md);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-soft-black);
  flex-shrink: 0;
}

.logo span {
  font-weight: 400;
  opacity: 0.7;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-desktop a {
  font-size: 0.8125rem;
  font-weight: 450;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text);
  position: relative;
  padding: 0.25rem 0;
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.nav-desktop a:hover::after,
.nav-desktop a.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-whatsapp {
  display: none;
}

.search-toggle,
.menu-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-charcoal);
  border-radius: 50%;
  transition: background var(--transition);
}

.search-toggle:hover,
.menu-toggle:hover {
  background: var(--color-beige);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  position: relative;
  transition: var(--transition);
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: var(--transition);
}

.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

.menu-toggle.open span {
  background: transparent;
}

.menu-toggle.open span::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle.open span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--color-warm-white);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 5rem var(--space-md) var(--space-lg);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.75rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-soft-black);
}

.mobile-nav .btn {
  margin-top: var(--space-lg);
}

/* Search Overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 24, 22, 0.5);
  z-index: 1100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.search-overlay.open {
  opacity: 1;
  visibility: visible;
}

.search-box {
  background: white;
  width: 90%;
  max-width: 560px;
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-lg);
  transform: translateY(-20px);
  transition: transform var(--transition);
}

.search-overlay.open .search-box {
  transform: translateY(0);
}

.search-box input {
  width: 100%;
  padding: 1rem;
  font-size: 1.125rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  outline: none;
  font-family: inherit;
}

.search-box input:focus {
  border-color: var(--color-accent);
}

.search-results {
  margin-top: var(--space-sm);
  max-height: 300px;
  overflow-y: auto;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.search-result-item:hover {
  background: var(--color-cream);
}

.search-result-item img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* --- Floating WhatsApp --- */
.floating-whatsapp {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 900;
  width: 56px;
  height: 56px;
  background: var(--color-whatsapp);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all var(--transition);
}

.floating-whatsapp:hover {
  transform: scale(1.08);
  background: var(--color-whatsapp-dark);
}

.floating-whatsapp svg {
  width: 28px;
  height: 28px;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-beige);
}

.hero-image {
  position: absolute;
  inset: 0;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(26, 24, 22, 0.55) 0%,
    rgba(26, 24, 22, 0.25) 50%,
    rgba(26, 24, 22, 0.1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 640px;
  padding: var(--space-xl) 0;
}

.hero-content h1 {
  color: white;
  margin-bottom: var(--space-md);
  font-weight: 500;
}

.hero-content p {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: var(--space-lg);
  line-height: 1.7;
  max-width: 32rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* --- Category Grid --- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.category-card {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  group: true;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover img {
  transform: scale(1.06);
}

.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,24,22,0.7) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}

.category-card h3 {
  color: white;
  font-size: 1rem;
  font-weight: 500;
}

/* --- Product Cards --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.product-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  border: 1px solid transparent;
}

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

.product-card-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--color-soft-beige);
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.product-badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.badge {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: 2px;
  color: white;
}

.badge-new {
  background: var(--color-badge-new);
}

.badge-best {
  background: var(--color-badge-best);
}

.product-card-body {
  padding: 1rem;
}

.product-card-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--color-soft-black);
  line-height: 1.3;
}

.product-card-price {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 0.875rem;
}

.product-card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* --- Shop the Look --- */
.shop-the-look {
  position: relative;
}

.look-scene {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--color-beige);
}

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

.look-products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: var(--space-md);
}

.look-product {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem;
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

.look-product:hover {
  border-color: var(--color-sand);
  box-shadow: var(--shadow-sm);
}

.look-product img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.look-product-info h4 {
  font-size: 0.875rem;
  margin-bottom: 0.2rem;
}

.look-product-info span {
  font-size: 0.8125rem;
  color: var(--color-text-light);
}

/* --- About Preview --- */
.about-preview {
  display: grid;
  gap: var(--space-lg);
  align-items: center;
}

.about-preview-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--color-beige);
}

.about-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-preview-content .section-title {
  margin-bottom: var(--space-sm);
}

.about-preview-content p {
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
  line-height: 1.75;
}

/* --- Newsletter / CTA --- */
.cta-section {
  text-align: center;
  padding: var(--space-2xl) 0;
  background: var(--color-charcoal);
  color: white;
}

.cta-section h2 {
  color: white;
  margin-bottom: var(--space-sm);
}

.cta-section p {
  opacity: 0.85;
  margin-bottom: var(--space-lg);
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

/* --- Footer --- */
.site-footer {
  background: var(--color-soft-black);
  color: rgba(255,255,255,0.75);
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.footer-brand .logo {
  color: white;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.9375rem;
  max-width: 240px;
  line-height: 1.6;
}

.footer-nav h4,
.footer-social h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: white;
  margin-bottom: 1rem;
}

.footer-nav a {
  display: block;
  font-size: 0.9375rem;
  padding: 0.3rem 0;
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: white;
}

.footer-social-links {
  display: flex;
  gap: 1rem;
}

.footer-social-links a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.footer-social-links a:hover {
  background: white;
  color: var(--color-soft-black);
  border-color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
}

/* --- Page Header (inner pages) --- */
.page-header {
  padding: var(--space-xl) 0 var(--space-lg);
  text-align: center;
  background: var(--color-cream);
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--color-text-light);
  max-width: 32rem;
  margin: 0 auto;
}

/* --- Shop / Filters --- */
.shop-layout {
  display: grid;
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
}

.shop-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.filter-select {
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--color-text);
  font-family: inherit;
  outline: none;
  cursor: pointer;
}

.filter-select:focus {
  border-color: var(--color-accent);
}

.shop-count {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-left: auto;
}

/* --- Product Detail --- */
.product-detail {
  padding: var(--space-lg) 0 var(--space-xl);
}

.product-detail-grid {
  display: grid;
  gap: var(--space-lg);
}

.product-gallery {
  position: relative;
}

.product-gallery-main {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-soft-beige);
  margin-bottom: 0.75rem;
}

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

.product-gallery-thumbs {
  display: flex;
  gap: 0.5rem;
}

.product-gallery-thumbs button {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  opacity: 0.7;
  transition: all var(--transition);
}

.product-gallery-thumbs button.active,
.product-gallery-thumbs button:hover {
  border-color: var(--color-accent);
  opacity: 1;
}

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

.product-info h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
}

.product-meta span {
  color: var(--color-text-light);
}

.product-meta strong {
  color: var(--color-text);
  font-weight: 500;
}

.product-description {
  color: var(--color-text-light);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.product-specs {
  margin-bottom: 1.75rem;
}

.product-specs h4 {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.product-specs ul {
  display: grid;
  gap: 0.4rem;
}

.product-specs li {
  font-size: 0.9375rem;
  color: var(--color-text-light);
  padding-left: 1rem;
  position: relative;
}

.product-specs li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

/* --- About Page --- */
.about-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 1.25rem;
  font-size: 1.0625rem;
}

.about-image-placeholder {
  aspect-ratio: 16/9;
  background: var(--color-beige);
  border-radius: var(--radius-lg);
  margin: var(--space-xl) auto;
  max-width: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-taupe);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

.about-values {
  display: grid;
  gap: 1.5rem;
  margin-top: var(--space-xl);
  text-align: left;
}

.value-card {
  padding: 1.5rem;
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.value-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.value-card p {
  font-size: 0.9375rem;
  margin: 0;
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  gap: var(--space-lg);
}

.contact-info-card {
  padding: 2rem;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.contact-info-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.contact-item-icon {
  width: 40px;
  height: 40px;
  background: var(--color-cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-accent);
}

.contact-item h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 0.25rem;
}

.contact-item p,
.contact-item a {
  font-size: 1rem;
  color: var(--color-text);
}

.contact-whatsapp-cta {
  text-align: center;
  padding: 2.5rem;
  background: var(--color-cream);
  border-radius: var(--radius-lg);
}

.contact-whatsapp-cta h3 {
  margin-bottom: 0.75rem;
}

.contact-whatsapp-cta p {
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

/* --- Related Products --- */
.related-section {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--color-border);
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-lg { margin-top: var(--space-lg); }
.mb-lg { margin-bottom: var(--space-lg); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Fade-in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* --- Responsive --- */
@media (min-width: 640px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  
  .look-products {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .about-values {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .product-card-actions {
    flex-direction: row;
  }
  
  .product-card-actions .btn {
    flex: 1;
  }
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
  
  .menu-toggle {
    display: none;
  }
  
  .header-whatsapp {
    display: inline-flex;
  }
  
  .hero {
    min-height: 90vh;
  }
  
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
  
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .about-preview {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
  
  .about-preview-image {
    aspect-ratio: 4/5;
  }
  
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
  
  .product-detail-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
  
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .look-scene {
    aspect-ratio: 21/9;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 var(--space-lg);
  }
  
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .hero-content {
    max-width: 560px;
  }
  
  .product-grid {
    gap: 1.75rem;
  }
}

/* Lazy loading */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.4s;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Home by Kerry brand assets */
.brand-logo { display:flex; align-items:center; flex-shrink:0; width:190px; }
.brand-logo img { width:100%; height:auto; display:block; }
.about-story-image { width:100%; aspect-ratio: 4/5; object-fit:cover; border-radius:var(--radius-lg); margin:var(--space-xl) auto; max-width:620px; }
.badge-in-stock { background: rgba(255,255,255,.92); color: var(--color-soft-black); border:1px solid var(--color-border); }
.footer-logo-image { width:220px; max-width:100%; margin-bottom:.75rem; }

/* ============================================
   Mobile usability refinements
   ============================================ */
@media (max-width: 767px) {
  :root {
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
  }

  html {
    -webkit-text-size-adjust: 100%;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .header-inner {
    height: 64px;
    gap: 0.5rem;
  }

  .brand-logo {
    width: 155px;
    min-width: 0;
  }

  .header-actions {
    gap: 0.25rem;
  }

  .search-toggle,
  .menu-toggle {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
  }

  .mobile-nav {
    padding-top: calc(4.5rem + env(safe-area-inset-top));
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
  }

  .mobile-nav a {
    min-height: 52px;
    display: flex;
    align-items: center;
  }

  .mobile-nav .btn {
    justify-content: center;
    min-height: 48px;
  }

  .hero {
    min-height: min(78svh, 720px);
  }

  .hero-content {
    padding: 3rem 0;
  }

  .hero-content h1 {
    font-size: clamp(2rem, 10vw, 3rem);
    margin-bottom: 1rem;
  }

  .hero-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }

  .hero-buttons {
    gap: 0.75rem;
  }

  .hero-buttons .btn {
    width: 100%;
    min-height: 48px;
  }

  .section {
    padding: var(--space-xl) 0;
  }

  .section-subtitle {
    margin-bottom: 1.5rem;
  }

  .category-grid,
  .product-grid {
    gap: 0.75rem;
  }

  .category-card-overlay {
    padding: 0.75rem;
  }

  .category-card h3 {
    font-size: 0.875rem;
  }

  .product-card-body {
    padding: 0.75rem;
  }

  .product-card-name {
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.34em;
  }

  .product-card-price {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
  }

  .product-card-actions {
    gap: 0.5rem;
  }

  .product-card-actions .btn {
    width: 100%;
    min-height: 44px;
    padding: 0.55rem 0.5rem;
    white-space: normal;
    line-height: 1.2;
    text-align: center;
  }

  .look-scene {
    aspect-ratio: 4 / 3;
  }

  .look-products {
    gap: 0.75rem;
  }

  .look-product {
    min-width: 0;
    padding: 0.65rem;
  }

  .look-product img {
    width: 56px;
    height: 56px;
  }

  .look-product-info {
    min-width: 0;
  }

  .look-product-info h4 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .page-header {
    padding: 2.5rem 0 2rem;
  }

  .page-header h1 {
    font-size: clamp(2rem, 9vw, 2.75rem);
  }

  .shop-layout {
    padding: 1.25rem 0 2rem;
  }

  .shop-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .filter-select {
    width: 100%;
    min-height: 44px;
    padding: 0.6rem 0.75rem;
  }

  .shop-count {
    grid-column: 1 / -1;
    margin-left: 0;
  }

  .product-detail {
    padding: 1.25rem 0 3rem;
  }

  .product-gallery-thumbs {
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
  }

  .product-gallery-thumbs button {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
  }

  .product-info h1 {
    font-size: clamp(1.65rem, 7vw, 2.25rem);
  }

  .product-meta {
    display: grid;
    gap: 0.5rem;
  }

  .product-actions .btn {
    min-height: 48px;
    white-space: normal;
  }

  .about-content p {
    font-size: 1rem;
  }

  .about-story-image {
    margin: 2rem auto;
  }

  .value-card,
  .contact-info-card {
    padding: 1.25rem;
  }

  .contact-item {
    gap: 0.75rem;
  }

  .contact-item p,
  .contact-item a {
    overflow-wrap: anywhere;
  }

  .contact-whatsapp-cta {
    padding: 1.75rem 1.25rem;
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }

  .floating-whatsapp {
    right: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom));
    width: 52px;
    height: 52px;
  }

  .search-overlay {
    padding: calc(4.5rem + env(safe-area-inset-top)) 0.75rem 1rem;
    align-items: flex-start;
  }

  .search-box {
    width: 100%;
    max-height: calc(100svh - 5.5rem);
    overflow: hidden;
  }

  .search-results {
    max-height: 55svh;
  }

  .search-result-item {
    min-height: 64px;
  }
}

@media (max-width: 399px) {
  .brand-logo {
    width: 135px;
  }

  .container {
    padding-left: 0.875rem;
    padding-right: 0.875rem;
  }

  .product-grid {
    gap: 0.6rem;
  }

  .product-card-body {
    padding: 0.65rem;
  }

  .look-products {
    grid-template-columns: 1fr;
  }

  .shop-filters {
    grid-template-columns: 1fr;
  }

  .shop-count {
    grid-column: auto;
  }
}
