﻿/* PAP-JOY Unified Theme CSS */

* {
  box-sizing: border-box;
}

:root {
  --bg: #ecf1ea;
  --surface: rgba(255, 255, 255, 0.95);
  --surface-soft: rgba(237, 244, 238, 0.95);
  --surface-strong: rgba(255, 255, 255, 0.99);
  --text: #243225;
  --text-muted: #6d7c71;
  --border: rgba(108, 129, 114, 0.18);
  --accent: #5c7c63;
  --accent-strong: #8ca993;
  --accent-soft: rgba(92, 124, 99, 0.18);
  --shadow: 0 26px 90px rgba(66, 83, 72, 0.15);
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(circle at top left, rgba(92, 124, 99, 0.12), transparent 28%),
    radial-gradient(circle at bottom right, rgba(140, 169, 147, 0.16), transparent 28%),
    linear-gradient(180deg, #ecf1ea 0%, #e4efe3 100%);
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  padding: 0;
}

.cart-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: min(380px, calc(100vw - 48px));
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(36, 50, 37, 0.97);
  color: #f7f7f2;
  box-shadow: 0 30px 70px rgba(34, 50, 38, 0.2);
  z-index: 9998;
  transform: translateY(24px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease, transform 240ms ease;
  font-size: 0.95rem;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.cart-toast.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cart-toast::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.9rem;
}


.page-transition-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.96);
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms ease;
  z-index: 9999;
}

.page-transition-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

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

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

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

main {
  position: relative;
  width: min(1120px, calc(100vw - 380px));
  margin: 0 0 0 340px;
  padding: 28px 24px 60px;
}

section {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto 32px;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
}

.categories-section .section-header {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
}

.featured-section .section-header {
  align-items: center;
}

.section-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}

.control-btn {
  padding: 10px 18px;
  border-radius: 18px;
  border: 1px solid rgba(92, 124, 99, 0.18);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.control-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(92, 124, 99, 0.28);
}

.control-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #111;
  border-color: transparent;
}

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

.section-header h2 {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.section-header .eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
}

.section-header p,
.section-header h2,
.section-header h3 {
  color: var(--text);
}

body[data-page='home'] main {
  padding-top: 40px;
}

/* Sidebar */
.site-sidebar {
  position: fixed;
  inset: 0 auto auto 0;
  width: 300px;
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  padding: 32px 24px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(180deg, rgba(247, 251, 247, 0.98), rgba(236, 244, 237, 0.98));
  border-right: 1px solid rgba(108, 129, 114, 0.16);
  box-shadow: 0 32px 80px rgba(66, 83, 72, 0.08);
  z-index: 120;
  overflow-y: auto;
}

body.has-global-nav {
  min-height: 100vh;
}

body.has-global-nav .site-sidebar .sidebar-nav {
  flex: 1 1 auto;
  min-height: 0;
}

body.has-global-nav .site-sidebar .nav-link {
  min-height: 48px;
}

.sidebar-brand a,
.brand a {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3vw, 2.4rem);
  font-weight: 700;
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  color: var(--text-muted);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.sidebar-nav .nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(92, 124, 99, 0.12);
  opacity: 0;
  transition: opacity 0.25s ease;
  border-radius: 18px;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
  color: var(--text);
  transform: translateX(3px);
}

.sidebar-nav .nav-link:hover::before,
.sidebar-nav .nav-link.active::before {
  opacity: 1;
}

.sidebar-nav .nav-link.active {
  color: var(--accent);
}

.sidebar-nav .nav-link i {
  width: 20px;
  font-size: 1rem;
}

.cart-badge,
.wishlist-count {
  min-width: 24px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #111;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

.sidebar-stats {
  display: grid;
  gap: 14px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

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

.sidebar-actions {
  display: grid;
  gap: 12px;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(142, 123, 111, 0.16);
  background: rgba(255, 255, 255, 0.75);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.action-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(92, 124, 99, 0.28);
}

.action-btn i {
  width: 18px;
  font-size: 1rem;
}

.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 22px;
  left: 22px;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  color: #111;
  z-index: 130;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.16);
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 110;
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 18, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 110;
}

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

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Hero */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding: 42px;
  border-radius: 40px;
  background: linear-gradient(180deg, rgba(244, 250, 243, 0.98), rgba(232, 243, 233, 0.98));
  border: 1px solid rgba(108, 129, 114, 0.12);
  box-shadow: var(--shadow);
  overflow: hidden;
  align-items: start;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(92, 124, 99, 0.18), transparent 28%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.12) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.3;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(92, 124, 99, 0.22);
  background: rgba(92, 124, 99, 0.14);
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-title {
  margin: 24px 0 18px;
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.08;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text {
  max-width: 620px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 30px;
  font-size: 1rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 32px;
}

.stat {
  min-width: 120px;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
}

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

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #111;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  border: 1px solid rgba(142, 123, 111, 0.16);
}

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

.hero-visual {
  position: relative;
  min-height: 380px;
  align-self: start;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -20px;
}

.hero-image-container {
  position: relative;
  width: 100%;
  min-height: 380px;
  max-height: 520px;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.2);
}

.hero-image {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(92, 124, 99, 0.16), rgba(236, 244, 237, 0.92));
}

.hero-image-placeholder {
  padding: 28px 30px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  text-align: center;
  max-width: 90%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.08);
}

.hero-image-placeholder p {
  margin: 0;
  font-weight: 700;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.5;
}

.hero-image:hover img {
  transform: scale(1.03);
}

.floating-elements {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.95);
  color: #111;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  font-size: 0.92rem;
  font-weight: 700;
}

.floating-card i {
  color: var(--accent);
}

.floating-card.card-1 { top: 14%; right: 12%; }
.floating-card.card-2 { bottom: 16%; left: 10%; }
.floating-card.card-3 { top: 44%; right: 6%; }

/* Categories */
.categories-section {
  padding: 0;
  background: transparent;
}

.categories-grid {
  display: grid;
  align-items: stretch;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.category-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  min-height: 440px;
  border-radius: 28px;
  border: 1px solid rgba(142, 123, 111, 0.12);
  background: rgba(255, 255, 255, 0.92);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  border-color: rgba(92, 124, 99, 0.28);
  box-shadow: 0 26px 80px rgba(66, 83, 72, 0.08);
}

.category-image {
  min-height: 240px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(92, 124, 99, 0.08), rgba(140, 169, 147, 0.08));
}

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

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

.category-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.category-content h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.category-content p {
  color: var(--text-muted);
  margin: 0 0 16px;
  line-height: 1.7;
  flex: 1;
}

.category-count {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(92, 124, 99, 0.12);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
}

/* Featured products */
.featured-section {
  padding: 36px 0 0;
}

.product-intro-wrap {
  display: grid;
  gap: 20px;
  margin-top: 18px;
}

.product-filter-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.product-filters {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(180px, 220px) auto;
  gap: 16px;
  width: 100%;
  align-items: center;
}

.product-filters input,
.product-filters select {
  min-height: 52px;
  border-radius: 18px;
  border: 1px solid rgba(108, 129, 114, 0.18);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.product-filters input {
  padding: 14px 18px;
}

.product-filters select {
  padding: 14px 16px;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px 0;
  font-size: 14px;
}

.filter-checkbox input[type="checkbox"] {
  cursor: pointer;
  accent-color: var(--accent);
}

.filter-sidebar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  margin-top: 12px;
}

.filter-section {
  flex: 1;
  min-width: 150px;
}

.filter-section h4 {
  margin: 0 0 12px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.filter-section label {
  display: block;
  margin-bottom: 10px;
  cursor: pointer;
  font-size: 13px;
}

.price-range-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price-range-container input[type="range"] {
  width: 100%;
  cursor: pointer;
  accent-color: var(--accent);
}

.price-display {
  font-size: 12px;
  color: var(--text-muted);
}

.product-grid {
  display: grid;
  align-items: stretch;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.featured-section .section-actions {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 420px;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(142, 123, 111, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(92, 124, 99, 0.28);
  box-shadow: 0 28px 90px rgba(66, 83, 72, 0.12);
}

.product-image {
  position: relative;
  min-height: 240px;
  overflow: hidden;
}

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

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

.badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #111;
  background: rgba(140, 169, 147, 0.95);
}

.badge.low-stock {
  top: auto;
  bottom: 16px;
  left: 16px;
  background: rgba(255, 72, 91, 0.95);
}

.product-info {
  padding: 18px;
  display: grid;
  gap: 10px;
}

.product-info .category {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.product-name {
  margin: 0;
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  line-height: 1.3;
}

.product-subtitle {
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

.price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.product-actions .btn {
  flex: 1 1 46%;
  justify-content: center;
}

/* Cards and inputs */
.card,
.testimonial-card,
.info-panel,
.newsletter-content {
  background: rgba(18, 24, 40, 0.98);
}

.category-card,
.product-card {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(142, 123, 111, 0.16);
}

.insights-section .section-header {
  justify-content: center;
  text-align: center;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.insight-card {
  border-radius: 24px;
  padding: 26px;
  border: 1px solid rgba(142, 123, 111, 0.16);
  box-shadow: 0 20px 50px rgba(118, 95, 91, 0.08);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.insight-card:hover {
  transform: translateY(-3px);
  border-color: rgba(92, 124, 99, 0.28);
}

.insight-card h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

.insight-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.8;
}

.newsletter-section {
  padding: 40px 0 20px;
}

.newsletter-content {
  display: grid;
  gap: 20px;
  max-width: 780px;
  margin: 0 auto;
  padding: 32px 32px 28px;
  border-radius: 32px;
  border: 1px solid rgba(108, 129, 114, 0.18);
  background: linear-gradient(180deg, rgba(237, 248, 236, 0.98), rgba(244, 250, 243, 0.98));
  box-shadow: 0 32px 80px rgba(92, 124, 99, 0.10);
}

.newsletter-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(92, 124, 99, 0.16), rgba(140, 169, 147, 0.22));
  color: #1c3b22;
  font-size: 1.4rem;
  border: 1px solid rgba(92, 124, 99, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.newsletter-section h3,
.newsletter-section p {
  margin: 0;
}

.newsletter-section h3 {
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  color: #1f4226;
}

.newsletter-section p {
  color: #4b6451;
  line-height: 1.8;
  max-width: 680px;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.newsletter-form input {
  flex: 1 1 260px;
  min-width: 220px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(108, 129, 114, 0.18);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
}

.newsletter-form input::placeholder {
  color: rgba(76, 100, 82, 0.7);
}

.newsletter-form .btn {
  min-width: 170px;
  padding: 16px 24px;
  border-radius: 18px;
  box-shadow: 0 18px 28px rgba(92, 124, 99, 0.14);
}

.newsletter-form .btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #111;
}

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

@media (max-width: 720px) {
  .newsletter-form {
    flex-direction: column;
    align-items: stretch;
  }
}

.info-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 32px;
}

.info-panel {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 28px 26px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(235, 246, 236, 0.96), rgba(246, 251, 246, 0.98));
  border: 1px solid rgba(108, 129, 114, 0.18);
  box-shadow: 0 28px 70px rgba(92, 124, 99, 0.12);
}

.panel-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(92, 124, 99, 0.18), rgba(140, 169, 147, 0.24));
  color: #1d3b24;
  font-size: 1.35rem;
  border: 1px solid rgba(92, 124, 99, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.panel-content h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  color: #1f4226;
}

.panel-content p {
  margin: 0;
  color: #4f6954;
  line-height: 1.75;
}

input,
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(108, 129, 114, 0.18);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

input::placeholder,
textarea::placeholder {
  color: rgba(109, 124, 113, 0.6);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 0 0 4px rgba(92, 124, 99, 0.18);
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.checkout-summary,
.checkout-actions {
  border-radius: 32px;
  border: 1px solid rgba(142, 123, 111, 0.16);
  padding: 30px;
  box-shadow: 0 28px 80px rgba(118, 95, 91, 0.1);
  background: rgba(255, 255, 255, 0.95);
}

.payment-card {
  background: rgba(255, 255, 255, 0.96);
}

.delivery-section {
  border-radius: 32px;
  border: 1px solid rgba(108, 129, 114, 0.16);
  padding: 30px;
  box-shadow: 0 28px 80px rgba(118, 95, 91, 0.1);
  background: rgba(239, 249, 241, 0.95);
}

.delivery-form {
  display: grid;
  gap: 20px;
}

.checkout-summary h3,
.payment-methods h3,
.delivery-section h3 {
  margin-top: 0;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 600;
}

.checkout-items {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

.checkout-row,
.payment-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.checkout-row {
  margin-bottom: 14px;
  color: var(--text-muted);
}

.total-row {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.checkout-row strong {
  color: var(--text);
}

.payment-methods {
  display: grid;
  gap: 18px;
}

.payment-options {
  display: grid;
  gap: 18px;
}

.payment-card {
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid rgba(142, 123, 111, 0.16);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  background: rgba(255, 255, 255, 0.96);
}

.payment-card:hover {
  transform: translateY(-3px);
  border-color: rgba(92, 124, 99, 0.22);
  box-shadow: 0 24px 60px rgba(66, 83, 72, 0.1);
}

.checkout-button,
.secondary-button,
.view-all,
.clear-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: 999px;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #111;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.checkout-button:disabled,
.secondary-button:disabled,
.clear-cart:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.checkout-notice {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(237, 248, 236, 0.9);
  color: #2f5130;
  border: 1px solid rgba(92, 124, 99, 0.18);
  font-size: 0.95rem;
}

.checkout-button:hover,
.secondary-button:hover,
.clear-cart:hover {
  transform: translateY(-2px);
}

.secondary-button,
.view-all {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
}

.signin-prompt {
  display: grid;
  gap: 16px;
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.payment-card h3 {
  margin: 0 0 10px;
}

.payment-card p {
  margin: 0 0 16px;
  color: var(--text-muted);
  line-height: 1.7;
}

.checkout-page {
  display: grid;
  gap: 24px;
}

.checkout-layout {
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
}

.checkout-summary,
.checkout-actions {
  padding: 24px;
}

.checkout-items {
  gap: 14px;
  margin-bottom: 20px;
}

.checkout-row {
  margin-bottom: 12px;
}

.payment-methods {
  gap: 14px;
}

.payment-card {
  padding: 20px;
}

.signin-prompt {
  padding: 20px;
}

.cod-form,
.card-form {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.delivery-form .form-row,
.form-row {
  gap: 14px;
}

.auth-form {
  display: grid;
  width: 100%;
  gap: 18px;
}

.auth-tabs {
  display: flex;
  margin-bottom: 24px;
  background: rgba(92, 124, 99, 0.08);
  border-radius: 999px;
  padding: 6px;
  gap: 8px;
}

.auth-tab {
  flex: 1;
  padding: 14px 18px;
  background: transparent;
  border: none;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s ease;
}

.auth-tab.active {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 24px rgba(66, 83, 72, 0.08);
  border-bottom-color: transparent;
}

.auth-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.auth-tab:hover {
  color: var(--accent);
}

.auth-panel {
  padding: 24px;
  display: grid;
  gap: 24px;
}

.auth-panel-intro {
  display: grid;
  gap: 12px;
}

.auth-form {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  gap: 18px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(142, 123, 111, 0.16);
  border-radius: 28px;
  box-shadow: 0 22px 48px rgba(66, 83, 72, 0.08);
}

.auth-form > * {
  min-width: 0;
}

.auth-form input,
.auth-form select,
.auth-form textarea,
.auth-form button,
.auth-form .oauth-button,
.auth-form .gps-container {
  width: 100%;
}

.password-field {
  width: 100%;
}

.checkbox-group {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 16px;
  align-items: center;
}

.checkbox-group input {
  margin-top: 0;
}

.order-history {
  margin-top: 24px;
}

.order-history-list {
  gap: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.order-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  transition: all 0.3s ease;
}

.order-card:hover {
  box-shadow: 0 8px 24px rgba(92, 124, 99, 0.12);
  border-color: var(--accent-soft);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.order-header h4 {
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.order-date {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.order-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  background: var(--accent-soft);
  color: var(--accent);
}

.order-status.pending {
  background: rgba(255, 193, 7, 0.12);
  color: #f57f17;
}

.order-status.confirmed {
  background: rgba(76, 175, 80, 0.12);
  color: #388e3c;
}

.order-status.processing {
  background: rgba(33, 150, 243, 0.12);
  color: #1976d2;
}

.order-status.shipped {
  background: rgba(103, 58, 183, 0.12);
  color: #512da8;
}

.order-status.delivered {
  background: rgba(76, 175, 80, 0.12);
  color: #388e3c;
}

.order-items {
  margin: 12px 0;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 12px;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
  gap: 12px;
  flex-wrap: wrap;
}

.order-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.order-actions .btn-small {
  padding: 6px 10px;
  font-size: 12px;
}

.invoice-preview-card {
  background: white;
  padding: 24px;
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
  max-width: 960px;
  margin: 0 auto 40px;
}

.invoice-summary,
.invoice-total {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 24px;
}

.invoice-block {
  background: #f8f8f8;
  padding: 16px;
  border-radius: 12px;
}

.invoice-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}

.invoice-table th,
.invoice-table td {
  border: 1px solid var(--border);
  padding: 12px;
  text-align: left;
}

.invoice-table th {
  background: #f1f1f1;
}

.order-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.order-footer strong {
  font-size: 13px;
  color: var(--text);
}

.track-link {
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.track-link:hover {
  color: var(--accent-strong);
}

.auth-message {
  min-height: 24px;
  color: var(--accent);
}

.checkbox-group {
  gap: 10px;
}

.auth-form label {
  margin-bottom: 6px;
}

input,
select,
textarea {
  padding: 12px 14px;
}

.product-detail-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  padding: 28px;
  margin: 0 auto 32px;
  max-width: 1120px;
  border-radius: 32px;
  border: 1px solid rgba(142, 123, 111, 0.16);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.product-gallery {
  padding: 18px;
  border-radius: 28px;
  background: var(--surface-soft);
  overflow: hidden;
}

.product-gallery img {
  width: 100%;
  height: auto;
  border-radius: 22px;
}

.product-details {
  display: grid;
  gap: 16px;
}

.product-description {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.75;
}

.product-specs {
  display: grid;
  gap: 12px;
}

.product-price {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  margin-bottom: 12px;
  color: var(--accent);
}

.product-variants {
  display: grid;
  gap: 14px;
}

.variant-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.variant-option {
  border: 1px solid rgba(92, 124, 99, 0.18);
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  padding: 12px 16px;
  border-radius: 16px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.variant-option:hover {
  transform: translateY(-1px);
  border-color: rgba(92, 124, 99, 0.32);
}

.variant-option.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #111;
  border-color: transparent;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.product-actions button {
  border: none;
  border-radius: 18px;
  padding: 14px 20px;
  min-width: 140px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.product-actions button:hover {
  transform: translateY(-1px);
}

.product-actions #detail-add-button {
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  border: 1px solid rgba(92, 124, 99, 0.18);
}

.product-actions #detail-buy-button {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #111;
}

.gallery-thumbs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.gallery-thumb {
  border: 1px solid rgba(142, 123, 111, 0.16);
  border-radius: 18px;
  overflow: hidden;
  min-width: 78px;
  width: 78px;
  height: 78px;
  padding: 0;
  background: #fff;
  cursor: pointer;
}

.gallery-thumb.active {
  border-color: rgba(92, 124, 99, 0.9);
  box-shadow: 0 12px 30px rgba(92, 124, 99, 0.12);
}

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


@media (max-width: 720px) {
  .product-detail-card {
    padding: 18px;
    border-radius: 24px;
  }

  main {
    width: calc(100vw - 32px);
    margin-left: auto;
    margin-right: auto;
    padding: 18px 16px 52px;
  }
}


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

/* Page-specific polished layouts */
.site-header {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  background: rgba(237, 244, 238, 0.95);
  border-bottom: 1px solid rgba(108, 129, 114, 0.16);
  position: sticky;
  top: 0;
  z-index: 105;
  backdrop-filter: blur(16px);
}

.site-header .brand {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.site-nav a {
  color: var(--text-muted);
  transition: color 0.2s ease, transform 0.2s ease;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.legal-content {
  padding: 36px;
  border-radius: 32px;
  background: var(--surface);
  border: 1px solid rgba(142, 123, 111, 0.16);
  box-shadow: var(--shadow);
  color: var(--text);
}

.legal-content h3,
.legal-content h4 {
  color: var(--text);
  margin-top: 28px;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  line-height: 1.8;
}

.legal-content ul {
  padding-left: 20px;
  margin: 16px 0;
}

.auth-page {
  display: grid;
  justify-content: center;
  grid-template-columns: minmax(0, 980px);
  gap: 22px;
  padding-inline: clamp(18px, 4vw, 36px);
}

.auth-panel {
  width: min(100%, 960px);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 44px);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(245,248,244,0.95));
  box-shadow: 0 36px 90px rgba(66, 83, 72, 0.08);
  border: 1px solid rgba(142, 123, 111, 0.16);
  backdrop-filter: blur(8px);
}

.account-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 24px;
}

.dashboard-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.dashboard-card {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(142, 123, 111, 0.14);
  box-shadow: 0 18px 50px rgba(66, 83, 72, 0.08);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  color: var(--text);
}

.dashboard-card:hover {
  transform: translateY(-4px);
  border-color: rgba(92, 124, 99, 0.28);
}

.dashboard-card-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(92, 124, 99, 0.14);
  color: var(--accent);
  font-size: 1.35rem;
}

.dashboard-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.dashboard-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.account-info-panel {
  display: grid;
  gap: 20px;
  padding: 24px;
  border-radius: 32px;
  background: var(--surface);
  border: 1px solid rgba(142, 123, 111, 0.16);
  box-shadow: var(--shadow);
}

.account-summary {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.account-avatar {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(92, 124, 99, 0.16);
  color: var(--accent);
  font-size: 1.6rem;
  font-weight: 700;
}

.account-summary h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.account-summary p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
  white-space: pre-line;
}

.account-contact-box,
.account-links-box {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(142, 123, 111, 0.14);
}

.account-contact-box h4,
.account-links-box h4 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.account-contact-box p,
.account-links-box a {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 0.95rem;
  display: block;
}

.account-links-box a {
  text-decoration: none;
  color: var(--accent);
}

.account-links-box a:hover {
  text-decoration: underline;
}

.wishlist-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(142, 123, 111, 0.14);
}

.wishlist-card-meta {
  display: grid;
  gap: 6px;
}

.wishlist-card-meta p {
  margin: 0;
  color: var(--text-muted);
}

.wishlist-variant {
  font-size: 0.86rem;
  color: var(--accent) !important;
}

.wishlist-price {
  font-weight: 700;
  color: var(--text) !important;
}

.wishlist-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.auth-panel,
.auth-sidepanel,
.order-history-list,
.success-card,
.product-detail-card,
.tracking-form-container,
.order-status-card,
.tracking-map-card,
.updates-card,
.cart-panel {
  border-radius: 32px;
  border: 1px solid rgba(142, 123, 111, 0.16);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.auth-sidepanel {
  padding: 32px;
  display: grid;
  gap: 20px;
}

.auth-sidepanel-card {
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(142, 123, 111, 0.16);
}

.auth-form {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  gap: 18px !important;
  padding: clamp(20px, 3vw, 30px) !important;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(142, 123, 111, 0.16);
}

.oauth-button {
  margin-top: 8px;
  width: 100%;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(142, 123, 111, 0.14);
  border-radius: 18px;
}

.password-field {
  position: relative;
  width: 100%;
}

.password-field input {
  width: 100%;
}

.password-toggle {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
  width: 100%;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.checkbox-group label {
  display: inline-flex;
  flex: 1;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
  margin: 0;
  white-space: normal;
}

.checkbox-group label a {
  color: var(--accent);
}

.gps-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.gps-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(92, 124, 99, 0.1);
  border: 1px solid rgba(92, 124, 99, 0.2);
  border-radius: 8px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gps-button:hover {
  background: rgba(92, 124, 99, 0.15);
  border-color: rgba(92, 124, 99, 0.3);
}

.gps-button:active {
  transform: scale(0.98);
}

.gps-button i {
  font-size: 16px;
}

.gps-button.loading {
  opacity: 0.7;
  pointer-events: none;
}

.gps-status {
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
  flex: 1;
  min-height: 20px;
  line-height: 1.4;
}

.checkbox-group input {
  margin-top: 4px;
  flex-shrink: 0;
}

.auth-message {
  min-height: 24px;
  color: var(--accent);
}

.oauth-button {
  margin-top: 8px;
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(108, 129, 114, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.auth-footnote {
  color: var(--text-muted);
  margin-top: 18px;
  font-size: 0.95rem;
}

.auth-footnote a {
  color: var(--accent);
  text-decoration: none;
}

.auth-footnote a:hover {
  text-decoration: underline;
}

.order-history {
  margin-top: 32px;
}

.order-history-list {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.order-history-panel {
  margin-top: 28px;
  padding: 26px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(142, 123, 111, 0.16);
  box-shadow: 0 24px 72px rgba(66, 83, 72, 0.08);
}

.order-history-panel .panel-header h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--text);
}

.order-table {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}

.order-table-head,
.order-row {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr 1fr 0.9fr;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
}

.order-table-head {
  border-bottom: 1px solid rgba(108, 129, 114, 0.16);
  color: var(--text-muted);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.order-row {
  background: rgba(236, 244, 237, 0.86);
  border-radius: 18px;
  padding: 14px 18px;
}

.order-link {
  color: #7c5e83;
  font-weight: 700;
  text-decoration: none;
}

.order-link:hover {
  text-decoration: underline;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
}

.status-unavailable {
  background: rgba(245, 92, 92, 0.12);
  color: #d32f2f;
}

.status-pending {
  background: rgba(255, 193, 7, 0.12);
  color: #f57f17;
}

.status-confirmed {
  background: rgba(76, 175, 80, 0.12);
  color: #388e3c;
}

.status-processing {
  background: rgba(33, 150, 243, 0.12);
  color: #1976d2;
}

.status-shipped {
  background: rgba(103, 58, 183, 0.12);
  color: #512da8;
}

.status-delivered {
  background: rgba(76, 175, 80, 0.12);
  color: #388e3c;
}

.status-cancelled {
  background: rgba(244, 67, 54, 0.12);
  color: #d32f2f;
}

.status-refunded {
  background: rgba(156, 39, 176, 0.12);
  color: #7b1fa2;
}

.cart-panel {
  padding: 32px;
  border-radius: 36px;
  background: rgba(239, 249, 241, 0.95);
  border: 1px solid rgba(108, 129, 114, 0.16);
  box-shadow: 0 28px 90px rgba(92, 124, 99, 0.1);
}

.cart-content {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.75fr) minmax(320px, 1fr);
  align-items: start;
}

.cart-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.cart-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: center;
  padding: 20px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(108, 129, 114, 0.14);
  box-shadow: 0 20px 40px rgba(92, 124, 99, 0.08);
}

.cart-item.empty-cart {
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.cart-item-meta {
  display: flex;
  gap: 16px;
  align-items: center;
}

.cart-item-avatar {
  width: 110px;
  min-width: 110px;
  aspect-ratio: 1;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(236, 244, 237, 0.9);
  box-shadow: inset 0 0 0 1px rgba(108, 129, 114, 0.1);
}

.cart-item-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-content h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.cart-item-content p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.cart-item-price {
  margin: 10px 0 0;
  font-weight: 700;
  color: var(--accent);
}

.cart-item-subtext {
  margin-top: 8px;
  color: #5e765a;
}

.item-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.item-controls button {
  min-width: 44px;
  min-height: 44px;
  border-radius: 16px;
  border: 1px solid rgba(108, 129, 114, 0.16);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.item-controls button:hover {
  transform: translateY(-1px);
  border-color: rgba(92, 124, 99, 0.28);
}

.item-controls span {
  font-weight: 700;
  min-width: 32px;
  text-align: center;
}

.remove-button {
  padding: 0 14px;
  border-radius: 16px;
  background: rgba(255, 72, 91, 0.1);
  color: #b12d3d;
  border-color: rgba(255, 72, 91, 0.16);
}

.remove-button:hover {
  background: rgba(255, 72, 91, 0.14);
}

.cart-shipping-note {
  margin: 10px 0 0;
  color: #3b5b35;
  font-size: 0.95rem;
}

.cart-summary {
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(108, 129, 114, 0.16);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-muted);
}

.cart-summary-row.total-row {
  font-weight: 700;
  color: var(--text);
}

/* Promo Code Section */
.promo-section {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(235, 246, 236, 0.5), rgba(240, 248, 243, 0.8));
  border: 1px solid rgba(108, 129, 114, 0.15);
  border-radius: 20px;
  margin-bottom: 4px;
}

.promo-input-wrap {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.promo-code-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid rgba(108, 129, 114, 0.2);
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  transition: all 0.2s ease;
}

.promo-code-input::placeholder {
  color: var(--text-muted);
}

.promo-code-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(92, 124, 99, 0.1);
}

.promo-btn {
  padding: 12px 24px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.promo-btn:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.promo-btn:active {
  transform: translateY(0);
}

.promo-message {
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  display: none;
}

.promo-message.success {
  display: block;
  color: #2d6a2c;
  background: rgba(92, 124, 99, 0.1);
  border: 1px solid rgba(92, 124, 99, 0.2);
}

.promo-message.error {
  display: block;
  color: #8b4444;
  background: rgba(220, 120, 120, 0.1);
  border: 1px solid rgba(220, 120, 120, 0.2);
}

#promo-discount {
  border-top: 1px solid rgba(108, 129, 114, 0.1);
  padding-top: 8px;
  color: var(--accent);
  font-weight: 600;
}

/* Saved Items Section */
#saved-items-section {
  display: none;
  padding: 24px;
  background: linear-gradient(180deg, rgba(235, 246, 236, 0.3), rgba(240, 248, 243, 0.6));
  border: 1px solid rgba(108, 129, 114, 0.15);
  border-radius: 28px;
}

#saved-items-section h3 {
  margin: 0 0 18px 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

#saved-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.saved-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  border: 1px solid rgba(108, 129, 114, 0.12);
  transition: all 0.2s ease;
}

.saved-item:hover {
  box-shadow: 0 4px 12px rgba(92, 124, 99, 0.1);
}

.saved-item-meta {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 14px;
  align-items: center;
}

.saved-item-avatar {
  width: 100px;
  height: 100px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(235, 246, 236, 0.5);
  border: 1px solid rgba(108, 129, 114, 0.1);
}

.saved-item-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.saved-item-content h4 {
  margin: 0 0 6px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.saved-item-content .saved-variant {
  margin: 0 0 8px 0;
  font-size: 12px;
  color: var(--text-muted);
}

.saved-item-content .saved-price {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
}

.saved-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.move-to-cart-btn,
.remove-saved-btn {
  padding: 10px 14px;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  font-weight: 600;
}

.move-to-cart-btn {
  background: var(--accent);
  color: white;
}

.move-to-cart-btn:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.remove-saved-btn {
  background: rgba(220, 120, 120, 0.1);
  color: #8b4444;
}

.remove-saved-btn:hover {
  background: rgba(220, 120, 120, 0.2);
}

/* Save for Later Button in Cart */
.save-for-later-btn {
  padding: 10px 12px;
  background: rgba(92, 124, 99, 0.08);
  color: var(--accent);
  border: 1px solid rgba(92, 124, 99, 0.2);
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.save-for-later-btn:hover {
  background: rgba(92, 124, 99, 0.15);
  border-color: var(--accent);
}

.success-card {
  padding: 36px;
  display: grid;
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
}

.status-card {
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(142, 123, 111, 0.16);
  color: var(--text);
}

.status-card h3 {
  margin: 0 0 12px;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.receipt-list {
  display: grid;
  gap: 14px;
  color: var(--text-muted);
}

.tracking-section {
  display: grid;
  gap: 28px;
}

.tracking-form-container,
.order-status-card,
.tracking-map-card,
.updates-card {
  padding: 32px;
}

.tracking-form .form-group {
  margin-bottom: 18px;
}

.order-status-card {
  display: grid;
  gap: 24px;
}

.order-status-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-muted);
}

.order-status-card p {
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0;
}

.status-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
}

.order-info {
  display: grid;
  gap: 6px;
  text-align: right;
}

.order-info span {
  display: block;
  color: var(--text-muted);
}

.status-timeline {
  display: grid;
  gap: 18px;
}

.timeline-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(142, 123, 111, 0.16);
  background: rgba(255, 255, 255, 0.78);
}

.timeline-item.completed {
  border-color: rgba(140, 169, 147, 0.28);
}

.timeline-item.active {
  border-color: rgba(92, 124, 99, 0.4);
}

.timeline-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(92, 124, 99, 0.14);
  font-size: 1.3rem;
}

.timeline-content h4,
.timeline-content p {
  margin: 0;
}

.timeline-time {
  display: block;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.tracking-map-card {
  display: grid;
  gap: 20px;
}

.map-container {
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid rgba(142, 123, 111, 0.16);
  background: rgba(255, 255, 255, 0.78);
}

.map-placeholder {
  min-height: 300px;
  position: relative;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.03), transparent 45%);
}

.route-line {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(92, 124, 99, 0.3) 50%, transparent 100%);
  opacity: 0.6;
}

.marker-label {
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.tracking-details {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(142, 123, 111, 0.16);
}

.detail-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-muted);
}

.detail-label {
  color: var(--text);
  font-weight: 600;
}

.detail-value {
  color: var(--text);
  font-weight: 700;
}

.updates-card {
  display: grid;
  gap: 18px;
}

.update-item {
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(142, 123, 111, 0.16);
}

.update-time {
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}

.update-content p {
  margin: 0;
  color: var(--text);
}

.cookie-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 32px;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 250;
}

.cookie-modal.active {
  opacity: 1;
  visibility: visible;
}

.cookie-modal-content {
  width: min(760px, 100%);
  padding: 30px;
  border-radius: 32px;
  background: var(--surface);
  border: 1px solid rgba(142, 123, 111, 0.16);
  box-shadow: var(--shadow);
}

.cookie-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.cookie-header h3 {
  margin: 0;
}

.cookie-close {
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: 14px;
  cursor: pointer;
}

.cookie-body {
  display: grid;
  gap: 20px;
  color: var(--text-muted);
}

.cookie-options {
  display: grid;
  gap: 16px;
}

.cookie-option {
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(142, 123, 111, 0.16);
  background: rgba(255, 255, 255, 0.78);
}

.cookie-option label {
  color: var(--text);
}

.cookie-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-muted);
}

.cookie-links a {
  color: var(--accent);
}

.cookie-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
}

.cookie-btn {
  border: none;
  border-radius: 999px;
  padding: 14px 22px;
  cursor: pointer;
  font-weight: 700;
}

.cookie-btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #111;
}

.cookie-btn.secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
}

/* Footer */
.site-footer {
  width: min(1120px, calc(100vw - 380px));
  margin: 0 0 0 340px;
  padding: 42px 24px 48px;
  border-radius: 40px;
  background: var(--surface-soft);
  border: 1px solid rgba(142, 123, 111, 0.16);
  box-shadow: var(--shadow);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin-top: 28px;
}

.footer-brand p,
.contact-item,
.social-links {
  color: var(--text-muted);
}

.social-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.social-link {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  transition: transform 0.25s ease, background 0.25s ease;
}

.social-link:hover {
  transform: translateY(-3px);
  background: rgba(92, 124, 99, 0.16);
}

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

.contact-item i {
  width: 20px;
  color: var(--accent);
}

.site-footer .copyright {
  margin-top: 32px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Utility */
.text-center {
  text-align: center;
}

.hidden {
  display: none !important;
}

/* Mobile responsive */
@media (max-width: 1024px) {
  main,
  .site-footer {
    width: 100%;
    margin-left: 0;
  }

  main {
    padding: 22px 20px 50px;
  }

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

  .product-filter-header {
    align-items: flex-start;
  }

  .cart-content {
    grid-template-columns: 1fr;
  }

  .site-sidebar {
    width: 100vw;
    left: -100%;
    transition: transform 0.3s ease;
    transform: translateX(-100%);
  }

  .site-sidebar.active {
    transform: translateX(0);
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 32px;
  }

  .hero-visual {
    min-height: 320px;
  }

  .product-grid,
  .categories-grid,
  .insights-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
  }
}

@media (max-width: 768px) {
  main {
    width: 100%;
    padding: 18px 16px 40px;
  }

  .checkout-layout,
  .section-header,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .mobile-menu-toggle {
    top: 16px;
    left: 16px;
  }

  .hero {
    padding: 24px;
    border-radius: 28px;
  }

  .hero-title {
    font-size: clamp(2.2rem, 7vw, 3.2rem);
  }

  .hero-actions {
    justify-content: stretch;
  }
}

.admin-dashboard {
  margin-top: 32px;
  padding: 24px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(108,129,114,0.15);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(66,83,72,0.08);
}

.admin-dashboard-card {
  display: grid;
  gap: 24px;
}

.admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 16px;
}

.summary-card {
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.summary-card strong {
  font-size: 1.6rem;
  color: var(--accent);
}

.summary-card span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.admin-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.admin-panel {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.admin-panel h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.admin-list {
  display: grid;
  gap: 10px;
}

.admin-list-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(108,129,114,0.1);
}

.admin-list-item:last-child {
  border-bottom: none;
}

.admin-list-item small {
  color: var(--text-muted);
  font-size: 0.82rem;
}

@media (max-width: 900px) {
  .admin-summary-grid,
  .admin-panels {
    grid-template-columns: 1fr;
  }
}

/* ================== REVIEWS & RATINGS ================== */

.rating-input {
  display: flex;
  gap: 8px;
  font-size: 28px;
  margin: 12px 0;
}

.rating-input .star {
  cursor: pointer;
  color: #ddd;
  transition: color 0.2s;
}

.rating-input .star:hover,
.rating-input .star.active {
  color: #ffc107;
}

.review-form {
  background: var(--surface);
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--border);
  margin: 20px 0;
}

.review-form h3 {
  margin-top: 0;
  font-size: 18px;
  color: var(--text);
}

.review-form .form-group {
  margin-bottom: 16px;
}

.review-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 14px;
}

.review-form input,
.review-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
}

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

#reviews-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 20px 0;
}

.review-item {
  background: var(--surface-soft);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.verified-badge {
  background: #4caf50;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.review-rating {
  font-size: 14px;
  color: #ffc107;
}

.review-title {
  margin: 8px 0;
  font-size: 15px;
  font-weight: 600;
}

.review-comment {
  margin: 8px 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

.review-date {
  font-size: 12px;
  color: #999;
}

/* ================== DELIVERY TRACKING ================== */

.tracking-timeline {
  padding: 20px;
  background: var(--surface);
  border-radius: 18px;
  border: 1px solid var(--border);
}

.tracking-timeline h3 {
  margin: 0 0 20px 0;
  font-size: 18px;
}

.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-step {
  position: relative;
  margin-bottom: 24px;
  padding-left: 60px;
}

.timeline-marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-step.completed .timeline-marker {
  background: #4caf50;
  border-color: #4caf50;
  color: white;
}

.timeline-step.current .timeline-marker {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.timeline-label {
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
}

.timeline-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.btn,
.checkout-button,
.secondary-button,
.view-all {
  width: 100%;
}

.site-footer,
.checkout-summary,
.checkout-actions {
  padding: 24px;
}

