/* LA Nails - Main Stylesheet */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Design System Variables */
:root {
  /* Rose Gold & Peachy Pink Theme for LA Nails */
  --background: hsl(15, 25%, 95%);
  --foreground: hsl(25, 35%, 25%);
  
  --card: hsl(15, 40%, 98%);
  --card-foreground: hsl(25, 35%, 25%);
  
  --popover: hsl(15, 40%, 98%);
  --popover-foreground: hsl(25, 35%, 25%);
  
  /* Rose Gold Primary */
  --primary: hsl(15, 65%, 70%);
  --primary-foreground: hsl(15, 40%, 98%);
  --primary-glow: hsl(20, 70%, 75%);
  
  /* Soft Peachy Secondary */
  --secondary: hsl(20, 30%, 90%);
  --secondary-foreground: hsl(25, 40%, 30%);
  
  /* Muted Tones */
  --muted: hsl(18, 20%, 88%);
  --muted-foreground: hsl(25, 25%, 50%);
  
  /* Elegant Accent */
  --accent: hsl(15, 60%, 85%);
  --accent-foreground: hsl(25, 40%, 30%);
  
  --destructive: hsl(0, 65%, 60%);
  --destructive-foreground: hsl(15, 40%, 98%);
  
  --border: hsl(18, 25%, 85%);
  --input: hsl(18, 25%, 85%);
  --ring: hsl(15, 65%, 70%);
  
  /* Custom Design System */
  --rose-gold: hsl(15, 65%, 70%);
  --rose-gold-dark: hsl(15, 55%, 60%);
  --rose-gold-light: hsl(20, 70%, 80%);
  --peachy-pink: hsl(20, 40%, 88%);
  --cream: hsl(25, 30%, 95%);
  --warm-brown: hsl(25, 35%, 35%);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--rose-gold), var(--primary-glow));
  --gradient-secondary: linear-gradient(180deg, var(--background), var(--peachy-pink));
  --gradient-rose: linear-gradient(45deg, var(--rose-gold-dark), var(--rose-gold-light));
  
  /* Shadows */
  --shadow-rose: 0 8px 32px hsla(15, 65%, 70%, 0.25);
  --shadow-elegant: 0 4px 20px hsla(15, 65%, 70%, 0.15);
  --shadow-soft: 0 2px 12px hsla(18, 20%, 88%, 0.3);
  
  /* Animations */
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  --radius: 0.5rem;
}

/* Dark theme */
.dark {
  --background: hsl(25, 15%, 8%);
  --foreground: hsl(15, 40%, 95%);
  --card: hsl(25, 15%, 12%);
  --card-foreground: hsl(15, 40%, 95%);
  --popover: hsl(25, 15%, 12%);
  --popover-foreground: hsl(15, 40%, 95%);
  --primary: hsl(15, 65%, 70%);
  --primary-foreground: hsl(25, 15%, 8%);
  --primary-glow: hsl(20, 70%, 75%);
  --secondary: hsl(25, 15%, 15%);
  --secondary-foreground: hsl(15, 40%, 90%);
  --muted: hsl(25, 10%, 18%);
  --muted-foreground: hsl(15, 20%, 65%);
  --accent: hsl(25, 15%, 20%);
  --accent-foreground: hsl(15, 40%, 90%);
  --destructive: hsl(0, 65%, 55%);
  --destructive-foreground: hsl(15, 40%, 95%);
  --border: hsl(25, 10%, 20%);
  --input: hsl(25, 10%, 20%);
  --ring: hsl(15, 65%, 70%);
  --rose-gold: hsl(15, 65%, 70%);
  --rose-gold-dark: hsl(15, 55%, 55%);
  --rose-gold-light: hsl(20, 70%, 80%);
  --peachy-pink: hsl(20, 25%, 20%);
  --cream: hsl(25, 15%, 15%);
  --warm-brown: hsl(15, 30%, 80%);
}

/* Base Styles */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 300;
  color: var(--foreground);
  background: var(--gradient-secondary);
  min-height: 100vh;
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--foreground);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

p {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

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

a:hover {
  color: var(--rose-gold);
}

/* Layout Components */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 5rem 0;
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.nav-logo img {
  height: 2.5rem;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  padding-bottom: 0.25rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--rose-gold);
  border-bottom: 2px solid var(--rose-gold);
}

.nav-cta {
  background: var(--rose-gold);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 500;
  transition: var(--transition-smooth);
}

.nav-cta:hover {
  background: var(--rose-gold-dark);
  color: white;
}

/* Mobile Navigation */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .mobile-nav.show {
    display: flex;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  text-align: center;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--rose-gold);
  color: white;
}

.btn-primary:hover {
  background: var(--rose-gold-dark);
  color: white;
}

.btn-secondary {
  background: transparent;
  color: var(--rose-gold);
  border: 2px solid var(--rose-gold);
}

.btn-secondary:hover {
  background: var(--rose-gold);
  color: white;
}

.btn-hero {
  background: white;
  color: var(--rose-gold);
  box-shadow: var(--shadow-elegant);
}

.btn-hero:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--rose-gold);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* Cards */
.card {
  background: var(--card);
  border-radius: calc(var(--radius) * 2);
  border: 1px solid rgba(227, 160, 149, 0.2);
  transition: var(--transition-smooth);
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-rose);
  transform: scale(1.02);
}

.card-header {
  position: relative;
  overflow: hidden;
}

.card-header img {
  width: 100%;
  height: 16rem;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.card:hover .card-header img {
  transform: scale(1.05);
}

.card-content {
  padding: 1.5rem;
}

.card-footer {
  padding: 0 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--gradient-secondary);
  padding: 5rem 0 8rem;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(227, 160, 149, 0.1), transparent);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  margin-bottom: 1rem;
}

.hero-text .highlight {
  color: var(--rose-gold);
  display: block;
}

.hero-text p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.hero-features {
  display: flex;
  gap: 1.5rem;
  margin: 2rem 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius) * 2);
  box-shadow: var(--shadow-rose);
  animation: float 3s ease-in-out infinite;
}

.hero-badge {
  position: absolute;
  top: -1rem;
  right: -1rem;
  background: var(--rose-gold);
  color: white;
  padding: 0.75rem;
  border-radius: 50%;
  box-shadow: var(--shadow-elegant);
}

@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-features {
    justify-content: center;
  }
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: calc(200px + 100%) 0; }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(227, 160, 149, 0.3); }
  50% { box-shadow: 0 0 40px rgba(227, 160, 149, 0.6); }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-rose { color: var(--rose-gold); }
.bg-gradient-primary { background: var(--gradient-primary); }
.bg-gradient-secondary { background: var(--gradient-secondary); }
.shadow-rose { box-shadow: var(--shadow-rose); }
.shadow-elegant { box-shadow: var(--shadow-elegant); }
.shadow-soft { box-shadow: var(--shadow-soft); }

/* Stats Section */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  background: var(--background);
  padding: 1.5rem;
  border-radius: calc(var(--radius) * 2);
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: var(--transition-smooth);
}

.stat-card:hover {
  box-shadow: var(--shadow-elegant);
}

.stat-number {
  font-size: 2rem;
  font-weight: bold;
  color: var(--rose-gold);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Advantages Grid */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.advantage-card {
  background: var(--card);
  padding: 1.5rem;
  border-radius: calc(var(--radius) * 2);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
}

.advantage-card:hover {
  box-shadow: var(--shadow-elegant);
  transform: translateY(-5px);
}

.advantage-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.advantage-icon {
  background: var(--gradient-rose);
  padding: 0.75rem;
  border-radius: var(--radius);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.advantage-card:hover .advantage-icon {
  transform: scale(1.1);
}

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--background);
  padding: 1.5rem;
  border-radius: calc(var(--radius) * 2);
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  box-shadow: var(--shadow-elegant);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

/* Footer */
.footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  margin-top: 5rem;
  padding: 3rem 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
  color: var(--foreground);
}

.footer-section p,
.footer-section a {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  display: block;
  transition: var(--transition-smooth);
}

.footer-section a:hover {
  color: var(--rose-gold);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.footer-social svg {
  width: 1rem;
  height: 1rem;
  transition: var(--transition-smooth);
}

.footer-social:hover svg {
  transform: scale(1.1);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--foreground);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  color: var(--foreground);
  transition: var(--transition-smooth);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--rose-gold);
  box-shadow: 0 0 0 3px rgba(227, 160, 149, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Breadcrumb */
.breadcrumb {
  background: var(--gradient-secondary);
  padding: 2rem 0;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.breadcrumb-nav a:hover {
  color: var(--rose-gold);
}

/* Product Details */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 768px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.product-image img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius) * 2);
  box-shadow: var(--shadow-rose);
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stars {
  display: flex;
  gap: 0.25rem;
}

.star {
  color: var(--rose-gold);
}

.star.empty {
  color: var(--muted-foreground);
}

.product-price {
  font-size: 2rem;
  font-weight: bold;
  color: var(--rose-gold);
}

.product-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Specs Grid */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.spec-card {
  background: var(--card);
  padding: 1.5rem;
  border-radius: calc(var(--radius) * 2);
  box-shadow: var(--shadow-elegant);
  border: 1px solid rgba(227, 160, 149, 0.2);
}

.spec-card h3 {
  color: var(--rose-gold);
  margin-bottom: 1rem;
}

.spec-list {
  list-style: none;
}

.spec-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.spec-list li:last-child {
  border-bottom: none;
}

.spec-list .check {
  color: var(--rose-gold);
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-label {
  color: var(--muted-foreground);
}

.spec-value {
  color: var(--foreground);
  font-weight: 500;
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.review-card {
  background: var(--card);
  padding: 1.5rem;
  border-radius: calc(var(--radius) * 2);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(227, 160, 149, 0.2);
  transition: var(--transition-smooth);
}

.review-card:hover {
  box-shadow: var(--shadow-elegant);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.review-author {
  font-weight: 500;
  color: var(--foreground);
}

/* Related Products */
.related-product {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--card);
  border-radius: calc(var(--radius) * 2);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(227, 160, 149, 0.2);
  transition: var(--transition-smooth);
}

.related-product:hover {
  box-shadow: var(--shadow-rose);
}

.related-product img {
  width: 5rem;
  height: 5rem;
  object-fit: cover;
  border-radius: var(--radius);
}

.related-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.related-info h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  transition: var(--transition-smooth);
}

.related-product:hover .related-info h3 {
  color: var(--rose-gold);
}

.related-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.related-price {
  font-weight: bold;
  color: var(--rose-gold);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .hero-content {
    gap: 2rem;
  }
  
  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
  
  .advantages-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .hero {
    padding: 3rem 0 4rem;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  
  .hero-text h1 {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }
  
  .hero-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-features {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }
  
  .btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
  }
  
  .product-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
  }
  
  .card-content {
    padding: 1.25rem;
  }
  
  .card-header img {
    height: 12rem;
  }
  
  .advantages-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
  }
  
  .stat-card {
    padding: 1.25rem;
  }
  
  .stat-number {
    font-size: 1.75rem;
  }
  
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
  }
  
  .feature-card {
    padding: 1.25rem;
  }
  
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .product-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .specs-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .spec-card {
    padding: 1.25rem;
  }
  
  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .review-card {
    padding: 1.25rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .nav-container {
    padding: 0 1rem;
  }
  
  .nav-logo img {
    height: 2rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .hero {
    padding: 2rem 0 3rem;
  }
  
  .hero-text h1 {
    font-size: clamp(1.5rem, 8vw, 2rem);
    margin-bottom: 0.75rem;
  }
  
  .hero-text p {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  .hero-features {
    margin: 1rem 0;
    font-size: 0.8rem;
  }
  
  .hero-buttons {
    gap: 0.5rem;
  }
  
  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }
  
  .card-content {
    padding: 1rem;
  }
  
  .card-header img {
    height: 10rem;
  }
  
  .advantage-card,
  .stat-card,
  .feature-card,
  .spec-card,
  .review-card {
    padding: 1rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .nav-container {
    height: 3.5rem;
    padding: 0 0.75rem;
  }
  
  .nav-logo img {
    height: 1.75rem;
  }
  
  .mobile-nav {
    padding: 0.75rem;
  }
  
  .form-input,
  .form-select,
  .form-textarea {
    padding: 0.625rem;
    font-size: 0.9rem;
  }
  
  .footer-content {
    gap: 1.5rem;
  }
  
  .footer-section p,
  .footer-section a {
    font-size: 0.8rem;
  }
  /* --- Product pages mobile fixes (drop-in) --- */

/* 1) Fix image selector mismatch + make images scale */
img { max-width: 100%; height: auto; }
.product-image { /* class is on the <img> element in your HTML */
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius) * 2);
  box-shadow: var(--shadow-rose);
}

/* 2) Product detail grid: stack sooner and tighten gaps */
@media (max-width: 1024px) {
  .product-detail-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 640px) {
  .product-detail-grid { gap: 1.5rem; }
}

/* 3) Product actions: full-width buttons on mobile */
@media (max-width: 768px) {
  .product-actions { flex-direction: column; gap: 0.75rem; }
  .product-actions .btn { width: 100%; }
}

/* 4) Price & headings scale on small screens */
@media (max-width: 480px) {
  .product-price { font-size: 1.5rem; }
  h1 { font-size: clamp(1.5rem, 7vw, 2rem); }
}

/* 5) Breadcrumb & long text wrapping */
.breadcrumb-nav { flex-wrap: wrap; row-gap: 0.25rem; }
.spec-value, .spec-label, .related-info p { overflow-wrap: anywhere; }

/* 6) Related products: stack content on phones, image fluid */
@media (max-width: 540px) {
  .related-product { flex-direction: column; align-items: stretch; }
  .related-product img { width: 100%; height: auto; }
}

/* 7) Reviews grid: ensure single column on narrow screens */
@media (max-width: 640px) {
  .reviews-grid { grid-template-columns: 1fr; }
}

/* 8) Generic utility: clamp wide grids used inline on pages */
@media (max-width: 768px) {
  [style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; gap: 1.5rem !important; }
  [style*="repeat(auto-fit, minmax(300px"] { grid-template-columns: 1fr !important; }
}
/* Contact layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* Make the intro span full width above the two columns */
.contact-grid > .text-center {
  grid-column: 1 / -1;
}

/* Two columns wrapper (replaces the old inline style) */
.contact-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* Break to one column on tablets/phones */
@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .contact-columns {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Tighten spacing on small phones */
@media (max-width: 768px) {
  .contact-columns .card { padding: 1.25rem; border-radius: calc(var(--radius) * 1.5); }
  .form-group { margin-bottom: 1.125rem; }
  .btn-lg { padding: 0.875rem 1.5rem; font-size: 1rem; }
}

}