/* ============================================
   JingJing Hay - Main Stylesheet
   Color Palette: Natural/Earthy/Professional
   ============================================ */

/* --- CSS Variables --- */
:root {
  --color-primary: #4a7c59;
  --color-primary-dark: #2d5a3d;
  --color-primary-light: #6b9e7a;
  --color-gold: #c8a951;
  --color-gold-dark: #a88b3a;
  --color-cream: #faf8f5;
  --color-section: #f5f0e8;
  --color-white: #ffffff;
  --color-text: #2c2c2c;
  --color-text-light: #666666;
  --color-text-muted: #999999;
  --color-border: #e0d8cc;
  --color-danger: #d9534f;

  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --max-width: 1200px;
  --header-height: 100px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: var(--color-primary);
  transition: color 0.2s;
}

a:hover {
  color: var(--color-primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Header / Navigation (Single-Row) --- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.3s;
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 110px;
  width: auto;
  object-fit: contain;
  transition: height 0.3s;
}

.header.scrolled .logo-img {
  height: 50px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  padding: 4px 0;
  position: relative;
  transition: color 0.2s;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s;
}

.nav a:hover,
.nav a.active {
  color: var(--color-primary);
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.3s, opacity 0.3s;
}

/* --- Language Toggle --- */
.lang-toggle {
  padding: 5px 14px;
  border: 1px solid var(--color-primary);
  border-radius: 20px;
  background: transparent;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.lang-toggle:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* --- Top Bar --- */
.top-bar {
  background: var(--color-primary-dark);
  color: var(--color-white);
  font-size: 13px;
  padding: 8px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar a {
  color: var(--color-white);
  opacity: 0.9;
}

.top-bar a:hover {
  opacity: 1;
  color: var(--color-gold);
}

.top-bar-info {
  display: flex;
  gap: 24px;
  align-items: center;
}

/* --- Hero Section --- */
.hero {
  background: var(--color-primary-dark);
  color: var(--color-white);
  padding: 100px 0 120px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('/images/bg-hero.jpg') center/cover no-repeat;
  opacity: 0.18;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(30,60,40,0.85) 0%, rgba(74,124,89,0.7) 100%);
}

.hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-content {
  flex: 1;
  max-width: 580px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;
  line-height: 1.7;
  opacity: 0.92;
  margin-bottom: 36px;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-placeholder {
  width: 420px;
  height: 350px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  border: 2px dashed rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  opacity: 0.7;
  text-align: center;
  padding: 20px;
}

.hero-image img {
  width: 420px;
  height: 350px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  border: 3px solid rgba(200,169,81,0.4);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-text);
}

.btn-primary:hover {
  background: var(--color-gold-dark);
  color: var(--color-text);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-primary-dark);
}

.btn-green {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-green:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}

/* --- Section Styles --- */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--color-section);
}

.section-white {
  background: var(--color-white);
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 12px;
}

.section-title p {
  font-size: 17px;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

.section-title .divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold-dark), var(--color-gold), var(--color-gold-dark));
  margin: 16px auto 0;
  border-radius: 2px;
}

/* --- Product Cards --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.product-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid var(--color-border);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-card-image {
  width: 100%;
  height: 220px;
  background: var(--color-section);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.product-card:hover .product-card-image img {
  transform: scale(1.05);
}

.product-card-image .placeholder-icon {
  font-size: 48px;
  color: var(--color-text-muted);
  opacity: 0.4;
}

.product-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-gold);
  color: var(--color-text);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.product-card-body {
  padding: 24px;
}

.product-card-category {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 8px;
}

.product-card-body h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text);
  line-height: 1.3;
}

.product-card-body p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.product-price small {
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-muted);
}

/* --- Category Cards --- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.category-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 40px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: all 0.3s;
  cursor: pointer;
  overflow: hidden;
}

.category-card.has-image {
  padding: 0;
  padding-bottom: 24px;
}

.category-image {
  width: 100%;
  height: 160px;
  overflow: hidden;
  margin-bottom: 16px;
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.category-card:hover .category-image img {
  transform: scale(1.05);
}

.category-card.has-image h3,
.category-card.has-image .subtitle {
  padding: 0 16px;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.category-icon {
  width: 72px;
  height: 72px;
  background: var(--color-section);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 32px;
  transition: background 0.3s;
}

.category-card:hover .category-icon {
  background: var(--color-primary);
  color: var(--color-white);
}

.category-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--color-text);
}

.category-card .subtitle {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* --- Trust Section --- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.trust-item {
  text-align: center;
  padding: 30px 20px;
}

.trust-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 12px rgba(74,124,89,0.3);
}

.trust-icon svg {
  width: 28px;
  height: 28px;
}

.trust-item h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text);
}

.trust-item p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* --- About Preview --- */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-preview-content h2 {
  font-family: var(--font-heading);
  font-size: 32px;
  color: var(--color-primary-dark);
  margin-bottom: 16px;
}

.about-preview-content p {
  font-size: 16px;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.about-stat {
  text-align: center;
  padding: 16px;
  background: var(--color-section);
  border-radius: var(--radius-md);
}

.about-stat .number {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-primary);
  font-family: var(--font-heading);
}

.about-stat .label {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.about-preview-image {
  background: var(--color-section);
  border-radius: var(--radius-lg);
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.about-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Suitable Animals Section --- */
.animals-section {
  text-align: center;
}

.animals-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
}

.animals-group h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--color-primary-dark);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-gold);
}

.animals-group ul li {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 15px;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: color 0.2s;
}

.animals-group ul li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
  flex-shrink: 0;
}

.animals-group ul li:last-child {
  border-bottom: none;
}

.animals-group ul li:hover {
  color: var(--color-primary);
}

/* --- CTA Section --- */
.cta-section {
  background: var(--color-primary-dark);
  color: var(--color-white);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('/images/bg-page.jpg') center/cover no-repeat;
  opacity: 0.15;
}

.cta-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(30,60,40,0.88) 0%, rgba(74,124,89,0.75) 100%);
}

.cta-section .container {
  position: relative;
  z-index: 2;
}

.cta-section h2 {
  font-family: var(--font-heading);
  font-size: 36px;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* --- Footer (4-Column Grid) --- */
.footer {
  background: #1a2e22;
  color: rgba(255,255,255,0.8);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 24px;
}

.footer-brand .footer-logo {
  height: 100px;
  width: auto;
  filter: brightness(1.6) contrast(0.85);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.7;
}

.footer h4 {
  color: var(--color-white);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer ul li {
  margin-bottom: 8px;
}

.footer ul a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  transition: color 0.2s;
}

.footer ul a:hover {
  color: var(--color-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  opacity: 0.6;
}

.footer-legal {
  text-align: center;
  font-size: 12px;
  opacity: 0.5;
  margin-top: 12px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

/* --- Credentials Section (About Page) --- */

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.credential-card {
  background: #fff;
  border: 1px solid var(--color-border, #e2e8f0);
  border-radius: var(--radius-lg, 12px);
  padding: 28px;
  text-align: center;
  transition: box-shadow 0.2s;
}

.credential-card:hover {
  box-shadow: var(--shadow-md, 0 4px 16px rgba(0,0,0,0.08));
}

.credential-icon {
  color: var(--color-green, #4a7c59);
  margin-bottom: 12px;
}

.credential-card h4 {
  color: var(--color-green, #4a7c59);
  margin: 0 0 8px;
  font-size: 16px;
}

.credential-name {
  font-weight: 600;
  margin: 0 0 16px;
  font-size: 14px;
}

.credential-details {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  border-top: 1px solid var(--color-border, #e2e8f0);
  font-size: 13px;
  text-align: left;
}

.credential-details span {
  color: #999;
}

.credential-details strong {
  color: #333;
  font-size: 13px;
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--color-section);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.contact-info-icon svg {
  width: 22px;
  height: 22px;
}

/* WhatsApp QR section */
.whatsapp-qr {
  margin-top: 32px;
  padding: 24px;
  background: var(--color-section);
  border-radius: var(--radius-md);
  text-align: center;
}

.whatsapp-qr img {
  width: 180px;
  height: 180px;
  margin: 12px auto 0;
  border-radius: var(--radius-sm);
}

.contact-info-item h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-info-item p {
  font-size: 14px;
  color: var(--color-text-light);
}

/* --- Forms --- */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--color-text);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: var(--font-body);
  background: var(--color-white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(74,124,89,0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* --- Password Toggle --- */
.pw-wrapper {
  position: relative;
}

.pw-wrapper .form-control {
  padding-right: 44px;
}

.pw-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  color: var(--color-text-light);
  line-height: 1;
}

.pw-toggle:hover {
  color: var(--color-primary);
}

/* --- Page Header (for inner pages) --- */
.page-header {
  background: var(--color-primary-dark);
  color: var(--color-white);
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('/images/bg-cta.jpg') center/cover no-repeat;
  opacity: 0.15;
}

.page-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(30,60,40,0.88) 0%, rgba(74,124,89,0.72) 100%);
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: 40px;
  margin-bottom: 8px;
  position: relative;
  z-index: 2;
}

.page-header p {
  font-size: 17px;
  opacity: 0.85;
  position: relative;
  z-index: 2;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 14px;
  opacity: 0.7;
  position: relative;
  z-index: 2;
}

.breadcrumb a {
  color: var(--color-white);
}

.breadcrumb span {
  opacity: 0.5;
}

/* --- Product Filter --- */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  border: 1px solid var(--color-border);
  border-radius: 30px;
  background: var(--color-white);
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* --- About Page Details --- */
.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-content h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--color-primary-dark);
  margin: 40px 0 16px;
}

.about-content p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text-light);
  margin-bottom: 16px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.value-card {
  background: var(--color-white);
  padding: 32px 24px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.value-card .icon {
  margin-bottom: 16px;
  color: var(--color-primary);
}

.value-card .icon svg {
  width: 40px;
  height: 40px;
}

.value-card h4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.value-card p {
  font-size: 14px;
  color: var(--color-text-light);
}

/* --- Alert / Notification --- */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 14px;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* --- Loading State --- */
.loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-text-muted);
}

.loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Product Detail Page --- */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.product-gallery-main {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-section);
  margin-bottom: 12px;
  cursor: zoom-in;
  position: relative;
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  cursor: zoom-out;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.lightbox-overlay.active .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-close svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
  stroke-width: 2;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-nav svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
  stroke-width: 2;
  fill: none;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.product-gallery-thumbs {
  display: flex;
  gap: 12px;
}

.product-gallery-thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
  flex-shrink: 0;
}

.product-gallery-thumb.active,
.product-gallery-thumb:hover {
  border-color: var(--color-primary);
}

.product-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info-title {
  font-family: var(--font-heading);
  font-size: 32px;
  color: var(--color-primary-dark);
  margin-bottom: 12px;
}

.product-info-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--color-text-muted);
}

.product-info-meta svg {
  vertical-align: -2px;
  margin-right: 4px;
}

.product-info-desc {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text-light);
  margin-bottom: 28px;
}

.variant-label {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-text);
}

.variant-selector {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.variant-btn {
  padding: 10px 24px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  color: var(--color-text);
  font-family: var(--font-body);
}

.variant-btn:hover {
  border-color: var(--color-primary-light);
}

.variant-btn.active {
  border-color: var(--color-primary);
  background: rgba(74,124,89,0.08);
  color: var(--color-primary-dark);
  font-weight: 600;
}

.product-price-display {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-primary-dark);
  font-family: var(--font-heading);
  margin-bottom: 8px;
}

.product-price-display small {
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text-muted);
}

.product-stock {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 28px;
  color: var(--color-text-light);
}

.stock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.stock-dot.in-stock { background: #28a745; }
.stock-dot.out-of-stock { background: var(--color-danger); }

.product-detail-actions {
  display: flex;
  gap: 12px;
}

.product-detail-actions .btn {
  flex: 1;
  justify-content: center;
}

/* Product Description Section */
.product-desc-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
}

.product-desc-section h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--color-primary-dark);
  margin-bottom: 16px;
}

.product-desc-section p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text-light);
}

/* Inquiry Section */
.inquiry-section {
  background: var(--color-section);
  padding: 80px 0;
}

.inquiry-section > .container {
  max-width: 700px;
}

.inquiry-section h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--color-primary-dark);
  text-align: center;
  margin-bottom: 8px;
}

.inquiry-subtitle {
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: 32px;
  font-size: 16px;
}

.inquiry-form-card {
  background: var(--color-white);
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.inquiry-product-tag {
  display: inline-block;
  background: rgba(74,124,89,0.1);
  color: var(--color-primary-dark);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Other Categories Grid */
.other-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Product card as link */
a.product-card {
  display: block;
  color: inherit;
  text-decoration: none;
}


/* ==================== Cart Icon (Header) ==================== */

.account-icon,
.cart-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-text);
  text-decoration: none;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}

.account-icon:hover,
.account-icon.active,
.cart-icon:hover,
.cart-icon.active {
  background: rgba(74,124,89,0.08);
  color: var(--color-primary);
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: var(--color-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

/* User Greeting */
.user-greeting {
  font-size: 13px;
  color: var(--color-primary);
  font-weight: 500;
  white-space: nowrap;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  text-decoration: none;
}

@media (max-width: 480px) {
  .user-greeting {
    display: none;
  }
}

/* Cart Toast */
.cart-toast {
  position: fixed;
  top: 80px;
  right: 24px;
  background: var(--color-primary);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10000;
  box-shadow: var(--shadow-lg);
  transform: translateX(120%);
  transition: transform 0.3s ease;
}

.cart-toast.show {
  transform: translateX(0);
}

/* ==================== Cart Page ==================== */

.cart-empty {
  text-align: center;
  padding: 80px 20px;
}

.cart-empty svg {
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.cart-empty h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--color-text-light);
  margin-bottom: 24px;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
}

.cart-table-header {
  display: grid;
  grid-template-columns: 2fr 1fr 140px 1fr 40px;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 2px solid var(--color-border);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-muted);
}

.cart-item {
  display: grid;
  grid-template-columns: 2fr 1fr 140px 1fr 40px;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
  align-items: center;
}

.cart-item-product {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cart-item-product img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.cart-item-name {
  font-weight: 500;
  font-size: 15px;
  color: var(--color-text);
}

.cart-item-weight {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.cart-item-price,
.cart-item-total {
  font-weight: 600;
  font-size: 15px;
}

.cart-item-total {
  color: var(--color-primary-dark);
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.qty-btn:hover {
  background: var(--color-section);
}

.qty-btn:first-child {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.qty-btn:last-child {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.cart-item-qty input {
  width: 48px;
  height: 32px;
  border: 1px solid var(--color-border);
  border-left: none;
  border-right: none;
  text-align: center;
  font-size: 14px;
  -moz-appearance: textfield;
}

.cart-item-qty input::-webkit-outer-spin-button,
.cart-item-qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.cart-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
  padding: 4px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.cart-item-remove:hover {
  color: #c0392b;
  background: rgba(192,57,43,0.08);
}

.cart-actions-row {
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
}

.btn-outline-sm {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text);
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.btn-outline-sm:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-danger-text {
  color: #999;
}

.btn-danger-text:hover {
  color: #c0392b;
  border-color: #c0392b;
}

/* Cart Summary */
.cart-summary {
  background: var(--color-section);
  padding: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  position: sticky;
  top: calc(var(--header-height) + 20px);
}

.cart-summary h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--color-primary-dark);
  margin-bottom: 24px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 15px;
  border-bottom: 1px solid var(--color-border);
}

.cart-summary-row.muted span:last-child {
  color: var(--color-text-muted);
  font-size: 13px;
}

.cart-summary-row.total {
  border-bottom: none;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary-dark);
  padding-top: 16px;
}

.btn-full {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 20px;
}

/* ==================== Checkout Page ==================== */

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
  align-items: start;
}

.checkout-section {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  margin-bottom: 20px;
}

.checkout-section h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--color-primary-dark);
  margin-bottom: 20px;
}

.form-hint {
  font-size: 13px;
  color: #888;
  margin: -8px 0 16px;
  line-height: 1.4;
}

/* Shipping Tabs */
.shipping-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.shipping-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s;
}

.shipping-tab:hover {
  border-color: var(--color-primary-light);
}

.shipping-tab.active {
  border-color: var(--color-primary);
  background: rgba(74,124,89,0.06);
  color: var(--color-primary-dark);
}

.shipping-note {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 16px;
  line-height: 1.6;
}

.intl-notice {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: rgba(200,169,81,0.1);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  align-items: flex-start;
}

.intl-notice svg {
  flex-shrink: 0;
  color: var(--color-gold-dark);
  margin-top: 2px;
}

.intl-notice p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-light);
}

/* Checkbox */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 15px;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
}

/* Checkout Summary */
.checkout-summary {
  background: var(--color-section);
  padding: 28px 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  position: sticky;
  top: calc(var(--header-height) + 20px);
}

.checkout-summary h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--color-primary-dark);
  margin-bottom: 20px;
}

.checkout-items {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.checkout-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.checkout-item img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.checkout-item-info {
  flex: 1;
  min-width: 0;
}

.checkout-item-name {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.checkout-item-meta {
  font-size: 12px;
  color: var(--color-text-muted);
}

.checkout-item-price {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.checkout-totals {
  margin-bottom: 20px;
}

.checkout-total-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
}

.checkout-total-row.total {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary-dark);
  border-top: 2px solid var(--color-border);
  padding-top: 16px;
  margin-top: 8px;
}

.text-green {
  color: var(--color-primary) !important;
  font-weight: 600;
}

.muted {
  color: var(--color-text-muted);
}

.checkout-back-link {
  display: block;
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  color: var(--color-text-muted);
  text-decoration: none;
}

.checkout-back-link:hover {
  color: var(--color-primary);
}

/* Checkout Success */
.checkout-success {
  text-align: center;
  padding: 60px 20px;
  max-width: 540px;
  margin: 0 auto;
}

.success-icon {
  margin-bottom: 24px;
}

.checkout-success h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--color-primary-dark);
  margin-bottom: 12px;
}

.order-number {
  font-size: 16px;
  color: var(--color-text);
  margin-bottom: 32px;
}

.success-summary {
  background: var(--color-section);
  padding: 24px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  text-align: left;
}

.success-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 15px;
}

.success-row.total {
  font-weight: 700;
  font-size: 18px;
  color: var(--color-primary-dark);
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
  margin-top: 8px;
}

.success-note {
  font-size: 15px;
  color: var(--color-text-light);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* --- Account Page --- */
.account-auth {
  max-width: 480px;
  margin: 0 auto;
}

.auth-tabs {
  display: flex;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: 32px;
}

.auth-tab {
  flex: 1;
  padding: 14px 0;
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}

.auth-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.auth-panel h3 {
  font-size: 20px;
  margin-bottom: 24px;
  color: var(--color-text);
}

.auth-switch {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--color-text-muted);
}

.auth-switch a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

.auth-switch a:hover {
  text-decoration: underline;
}

.account-dashboard {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
}

.account-sidebar {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.account-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid var(--color-border);
}

.account-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}

.account-user-card strong {
  display: block;
  font-size: 15px;
}

.account-user-card small {
  display: block;
  font-size: 12px;
  color: var(--color-text-muted);
  word-break: break-all;
}

.account-nav {
  padding: 8px 0;
}

.account-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-light);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  border-left: 3px solid transparent;
}

.account-nav a:hover {
  background: rgba(74,124,89,0.04);
  color: var(--color-text);
}

.account-nav a.active {
  background: rgba(74,124,89,0.06);
  color: var(--color-primary);
  border-left-color: var(--color-primary);
}

.account-logout-link {
  color: var(--color-danger) !important;
}

.account-logout-link:hover {
  background: rgba(217,83,79,0.04) !important;
}

.account-main {
  min-height: 400px;
}

.account-section {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 32px;
}

.account-section h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.account-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--color-text-muted);
}

.account-empty p {
  margin-bottom: 16px;
}

.account-orders-table {
  overflow-x: auto;
}

.account-orders-table table {
  width: 100%;
  border-collapse: collapse;
}

.account-orders-table th,
.account-orders-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
}

.account-orders-table th {
  font-weight: 600;
  color: var(--color-text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--color-cream);
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.badge-pending { background: #fefcbf; color: #975a16; }
.badge-inquiry { background: #bee3f8; color: #2a4365; }
.badge-confirmed { background: #c6f6d5; color: #276749; }
.badge-shipped { background: #e9d8fd; color: #553c9a; }
.badge-cancelled { background: #fed7d7; color: #9b2c2c; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
  }
  .hero-content { max-width: 100%; }
  .hero h1 { font-size: 36px; }

  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
  .cart-layout { grid-template-columns: 1fr 320px; }
  .checkout-layout { grid-template-columns: 1fr 340px; }
}

@media (max-width: 768px) {
  .logo-img {
    height: 70px;
  }

  .header.scrolled .logo-img {
    height: 40px;
  }

  .top-bar .container {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }

  .animals-showcase {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Mobile: nav becomes dropdown overlay */
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 20px 24px;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    width: 100%;
    text-align: left;
  }

  .nav a:last-child {
    border-bottom: none;
  }

  .nav-toggle {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-brand {
    text-align: center;
  }

  .footer-brand .footer-logo {
    margin: 0 auto 16px;
  }

  .hero {
    padding: 60px 0 80px;
  }

  .hero h1 { font-size: 30px; }
  .hero p { font-size: 16px; }
  .hero-image { display: none; }

  .section { padding: 60px 0; }
  .section-title h2 { font-size: 28px; }

  .categories-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }

  .about-preview {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-stats { grid-template-columns: repeat(3, 1fr); }

  .contact-grid { grid-template-columns: 1fr; }


  .product-detail-grid { grid-template-columns: 1fr; gap: 30px; }
  .product-detail-actions { flex-direction: column; }
  .product-detail-actions .btn { flex: none; }
  .form-row { grid-template-columns: 1fr; }
  .other-categories { grid-template-columns: 1fr; }
  .inquiry-form-card { padding: 24px; }

  .cart-layout { grid-template-columns: 1fr; }
  .cart-table-header { display: none; }
  .cart-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px 0;
  }
  .cart-item-product { justify-content: flex-start; }
  .cart-item-price::before { content: attr(data-label) ': '; font-weight: 400; color: var(--color-text-muted); }
  .cart-item-total::before { content: attr(data-label) ': '; font-weight: 400; color: var(--color-text-muted); }
  .cart-summary { position: static; }

  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary { position: static; order: -1; }
  .checkout-section { padding: 20px; }

  .account-dashboard { grid-template-columns: 1fr; }
  .account-sidebar { order: -1; }
  .account-section { padding: 20px; }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .values-grid { grid-template-columns: 1fr; }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 26px; }
  .about-stats { grid-template-columns: 1fr; }
}
