/* ==========================================================================
   CBD Island – Design System
   Karibik-Flair trifft Monkey Island Adventure
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  --ocean-deep: #062a3a;
  --ocean-teal: #0a6e7a;
  --ocean-mid: #0d8a8a;
  --ocean-light: #12a5a5;
  --ocean-foam: #1cbfbf;
  --sand-light: #f5e6ca;
  --sand-medium: #deb887;
  --sand-dark: #c4a265;
  --palm-green: #2d8a4e;
  --palm-dark: #1a5c32;
  --sunset-orange: #d4764e;
  --sunset-coral: #e06060;
  --wood-dark: #1a2a30;
  --wood-medium: #3a5a60;
  --wood-light: #8B6914;
  --treasure-gold: #e8c55a;
  --cream: #fffdf7;

  /* Gradient backgrounds */
  --bg-gradient: linear-gradient(170deg, #062a3a 0%, #0a4d5a 25%, #0d6a6a 50%, #0a5a5a 75%, #083a4a 100%);
  --bg-section-alt: linear-gradient(180deg, rgba(10,77,90,0.04) 0%, rgba(12,106,106,0.08) 50%, rgba(10,77,90,0.04) 100%);
  --glass-bg: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-bg-strong: rgba(255, 255, 255, 0.1);
  --text-light: rgba(255, 255, 255, 0.92);
  --text-muted: rgba(255, 255, 255, 0.6);

  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 50px;

  --shadow-card: 0 4px 15px rgba(10, 77, 104, 0.08);
  --shadow-hover: 0 8px 30px rgba(10, 77, 104, 0.15);
  --shadow-lg: 0 12px 40px rgba(10, 77, 104, 0.12);

  --transition: 0.3s ease;
  --header-height: 70px;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text-light);
  background: var(--bg-gradient);
  background-attachment: fixed;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

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

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

input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-light);
  line-height: 1.3;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.05rem; }

.section-title {
  text-align: center;
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  font-size: 1.05rem;
}

.page-title {
  text-align: center;
}

.page-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-top: var(--space-sm);
}

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

.page-header {
  padding: var(--space-lg) 0 var(--space-md);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  border: 2px solid transparent;
  min-height: 44px;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--ocean-teal), var(--ocean-deep));
  color: white;
  box-shadow: 0 4px 15px rgba(8, 131, 149, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(8, 131, 149, 0.4);
  color: white;
}

.btn-secondary {
  background: transparent;
  color: var(--ocean-teal);
  border-color: var(--ocean-teal);
}

.btn-secondary:hover {
  background: var(--ocean-teal);
  color: white;
}

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  min-height: 36px;
}

.btn-block {
  width: 100%;
  text-align: center;
}

.btn-block + .btn-block {
  margin-top: var(--space-sm);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(6, 42, 58, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  z-index: 101;
}

.logo-wordmark {
  display: block;
}

.logo-palm {
  animation: palm-sway 4s ease-in-out infinite;
  transform-origin: bottom center;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-light);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-link {
  font-weight: 500;
  color: var(--text-light);
  position: relative;
  padding: var(--space-xs) 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--treasure-gold);
  transition: width var(--transition);
}

.nav-link:hover { color: var(--treasure-gold); }
.nav-link:hover::after { width: 100%; }

.cart-link {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -8px;
  left: 12px;
  background: var(--sunset-coral);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.cart-badge.bounce {
  animation: cart-bounce 0.5s ease;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 101;
}

.hamburger span {
  width: 24px;
  height: 2.5px;
  background: var(--text-light);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.header-wave {
  display: none;
}

/* ---------- Mobile Nav ---------- */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 300px;
    height: 100vh;
    background: rgba(6, 42, 58, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: var(--space-xl);
    padding: var(--space-xl);
    transition: right var(--transition);
    box-shadow: -5px 0 30px rgba(0,0,0,0.3);
    border-left: 1px solid var(--glass-border);
  }

  .main-nav.open {
    right: 0;
  }

  .nav-link {
    font-size: 1.2rem;
  }

  .cart-link {
    font-size: 1.2rem;
  }
}

/* ---------- Main Content Offset ---------- */
.site-main {
  margin-top: var(--header-height);
  min-height: 60vh;
  animation: fadeIn 0.5s ease;
}

/* ---------- Hero ---------- */
.hero {
  background: transparent;
  padding: var(--space-xl) 0;
  position: relative;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
  justify-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  color: white;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  line-height: 1.15;
}

.hero-title .highlight {
  color: var(--treasure-gold);
  text-shadow: 0 2px 20px rgba(232, 197, 90, 0.4);
}

.hero-logo-inline {
  display: block;
  margin-top: var(--space-sm);
}

.hero-wordmark {
  max-width: 100%;
  height: auto;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin: var(--space-md) 0 var(--space-lg);
  max-width: 520px;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.island-svg {
  width: 100%;
  max-width: 300px;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.2));
}

/* Palm leaf animation */
.palm-leaf {
  animation: palm-sway 3s ease-in-out infinite;
  transform-origin: 135px 90px;
}
.palm-leaf-2 { animation-delay: 0.3s; }
.palm-leaf-3 { animation-delay: 0.6s; animation-direction: reverse; }
.palm-leaf-4 { animation-delay: 0.9s; animation-direction: reverse; }
.palm-leaf-5 { animation-delay: 0.15s; }

.flag-wave {
  animation: flag-wave 2s ease-in-out infinite;
  transform-origin: 195px 160px;
}

@media (min-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: 85vh;
  }
}

/* ---------- Section Dividers ---------- */
.section + .section {
  border-top: 1px solid var(--glass-border);
}

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

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

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--space-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--transition);
  color: var(--text-light);
}

.category-card:hover {
  transform: translateY(-4px);
  background: var(--glass-bg-strong);
  border-color: rgba(255,255,255,0.25);
  color: var(--treasure-gold);
}

.category-icon {
  color: var(--ocean-foam);
  transition: transform var(--transition);
}

.category-card:hover .category-icon {
  transform: scale(1.15);
  color: var(--treasure-gold);
}

.category-label {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
}

@media (min-width: 480px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .categories-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ---------- Product Grid ---------- */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.products-grid-small {
  gap: var(--space-md);
}

/* ---------- Product Card ---------- */
.product-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--transition);
  animation: fadeInUp 0.5s ease both;
}

.product-card:hover {
  transform: translateY(-6px);
  background: var(--glass-bg-strong);
  border-color: rgba(255,255,255,0.25);
}

.product-card-link {
  display: block;
  color: inherit;
}

.product-card-link:hover {
  color: inherit;
}

.product-image {
  position: relative;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-icon {
  transition: transform var(--transition);
}

.product-card:hover .product-icon {
  transform: scale(1.1) rotate(5deg);
}

.product-badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  background: var(--treasure-gold);
  color: var(--wood-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.badge-3d {
  left: auto;
  right: var(--space-sm);
  background: var(--sunset-orange);
  color: white;
}

.product-info {
  padding: var(--space-md);
}

.product-category-label {
  font-size: 0.8rem;
  color: var(--ocean-foam);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-name {
  font-size: 1.15rem;
  margin: var(--space-xs) 0 var(--space-sm);
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.product-cbd {
  background: rgba(28, 191, 191, 0.15);
  color: var(--ocean-foam);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--glass-border);
}

.product-price {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--treasure-gold);
}

.add-to-cart-btn {
  font-size: 0.8rem;
}

/* ---------- Filter Bar ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  justify-content: center;
}

.filter-btn {
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: all var(--transition);
  min-height: 44px;
}

.filter-btn:hover {
  border-color: var(--ocean-foam);
  color: var(--ocean-foam);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--ocean-teal), var(--ocean-mid));
  color: white;
  border-color: transparent;
}

/* Hidden product cards during filtering */
.product-card.hidden {
  display: none;
}

/* ---------- Product Detail ---------- */
.back-link {
  display: inline-block;
  margin-bottom: var(--space-lg);
  font-weight: 500;
  color: var(--ocean-foam);
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

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

.product-detail-image {
  border-radius: var(--radius-lg);
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .product-detail-image {
    height: 450px;
  }
}

.product-icon-large {
  animation: float 3s ease-in-out infinite;
}

/* 3D Viewer */
.viewer-3d-container {
  width: 100%;
  height: 350px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  position: relative;
}

@media (min-width: 768px) {
  .viewer-3d-container {
    height: 450px;
  }
}

.viewer-3d-container canvas {
  width: 100% !important;
  height: 100% !important;
}

.viewer-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  gap: var(--space-md);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255,255,255,0.2);
  border-top-color: var(--ocean-foam);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.viewer-hint {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: var(--space-sm);
}

/* Product Detail Info */
.product-detail-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.inline-badge {
  position: static;
}

.product-detail-name {
  margin: var(--space-sm) 0;
}

.product-detail-rating {
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.reviews-count {
  font-size: 0.85rem;
  opacity: 0.7;
}

.product-detail-price {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--treasure-gold);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.product-detail-cbd {
  background: rgba(28, 191, 191, 0.15);
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--ocean-foam);
  margin-bottom: var(--space-md);
}

.product-detail-description {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

/* Attributes */
.product-attributes {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.attribute-group h4 {
  margin-bottom: var(--space-xs);
}

.attribute-group p {
  color: var(--text-muted);
}

.attribute-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.tag {
  background: rgba(28, 191, 191, 0.12);
  color: var(--ocean-foam);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  border: 1px solid rgba(28, 191, 191, 0.2);
}

.tag-green {
  background: rgba(45, 138, 78, 0.12);
  color: #6ecf8a;
  border-color: rgba(45, 138, 78, 0.2);
}

.tag-terpene {
  background: rgba(212, 118, 78, 0.12);
  color: #e8a070;
  border-color: rgba(212, 118, 78, 0.2);
}

/* Quantity Selector */
.product-detail-actions {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  flex-wrap: wrap;
}

.quantity-selector {
  display: flex;
  align-items: center;
  background: var(--glass-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  overflow: hidden;
}

.qty-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-light);
  transition: background var(--transition);
}

.qty-btn:hover {
  background: rgba(28, 191, 191, 0.15);
}

.quantity-selector input {
  width: 50px;
  height: 44px;
  text-align: center;
  border: none;
  background: none;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-light);
}

.add-to-cart-detail {
  flex: 1;
  min-width: 200px;
}

/* Related Products */
.related-products {
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--glass-border);
}

/* ---------- Cart ---------- */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .cart-layout {
    grid-template-columns: 1fr 350px;
  }
}

.cart-item {
  display: grid;
  grid-template-columns: 60px 1fr auto auto auto;
  gap: var(--space-md);
  align-items: center;
  padding: var(--space-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  margin-bottom: var(--space-md);
}

@media (max-width: 600px) {
  .cart-item {
    grid-template-columns: 50px 1fr;
    grid-template-rows: auto auto;
    gap: var(--space-sm);
  }

  .cart-item-quantity {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .cart-item-price {
    grid-column: 1 / -1;
    display: flex;
    gap: var(--space-md);
  }

  .cart-item-remove {
    position: absolute;
    right: var(--space-sm);
    top: var(--space-sm);
  }

  .cart-item {
    position: relative;
    padding-right: var(--space-xl);
  }
}

.cart-item-image {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-name {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-light);
}

.cart-item-cbd {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.cart-item-quantity .qty-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  color: var(--text-light);
}

.qty-value {
  font-weight: 600;
  min-width: 24px;
  text-align: center;
}

.unit-price {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.line-total {
  font-weight: 700;
  color: var(--treasure-gold);
  display: block;
}

.cart-item-remove {
  color: var(--sunset-coral);
  font-size: 1.2rem;
  padding: var(--space-xs);
  transition: transform var(--transition);
}

.cart-item-remove:hover {
  transform: scale(1.2);
}

/* Cart Summary */
.cart-summary {
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  backdrop-filter: blur(10px);
  align-self: start;
  position: sticky;
  top: calc(var(--header-height) + var(--space-md));
}

.cart-summary h3 {
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--glass-border);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) 0;
}

.summary-total {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--treasure-gold);
  padding-top: var(--space-md);
  margin-top: var(--space-sm);
  border-top: 2px solid var(--ocean-foam);
  margin-bottom: var(--space-lg);
}

.free-shipping {
  color: var(--palm-green);
  font-weight: 600;
}

.shipping-hint {
  font-size: 0.85rem;
  color: var(--sunset-orange);
  text-align: center;
  padding: var(--space-sm);
  background: rgba(232, 114, 74, 0.08);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
}

/* Cart Empty */
.cart-empty {
  text-align: center;
  padding: var(--space-xl) 0;
}

.cart-empty-icon {
  margin-bottom: var(--space-lg);
  opacity: 0.5;
}

.cart-empty h2 {
  margin-bottom: var(--space-sm);
}

.cart-empty p {
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

/* ---------- Checkout ---------- */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .checkout-layout {
    grid-template-columns: 1fr 350px;
  }
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form-section {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
}

.form-section h3 {
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--glass-border);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 500;
  font-size: 0.9rem;
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.06);
  color: var(--text-light);
  transition: border-color var(--transition);
  min-height: 44px;
}

.form-group input:focus {
  outline: none;
  border-color: var(--ocean-foam);
  box-shadow: 0 0 0 3px rgba(28, 191, 191, 0.15);
}

.form-group input::placeholder {
  color: rgba(255,255,255,0.3);
}

.form-group-small {
  flex: 0 0 120px;
}

.demo-notice {
  background: rgba(28, 191, 191, 0.1);
  border: 1px solid rgba(28, 191, 191, 0.2);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  font-size: 0.9rem;
  color: var(--ocean-foam);
  margin-bottom: var(--space-md);
}

/* Checkout Summary */
.checkout-summary {
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  backdrop-filter: blur(10px);
  align-self: start;
  position: sticky;
  top: calc(var(--header-height) + var(--space-md));
}

.checkout-summary h3 {
  margin-bottom: var(--space-md);
}

.checkout-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
}

.checkout-item-name {
  font-weight: 500;
  font-size: 0.9rem;
}

.checkout-item-qty {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-left: var(--space-xs);
}

.checkout-item-price {
  font-weight: 500;
  font-size: 0.9rem;
}

.summary-divider {
  height: 1px;
  background: var(--glass-border);
  margin: var(--space-sm) 0;
}

/* ---------- Confirmation ---------- */
.confirmation-section {
  padding: var(--space-xl) 0;
}

.confirmation-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.treasure-chest {
  margin-bottom: var(--space-lg);
}

.chest-svg {
  animation: chest-glow 2s ease-in-out infinite;
}

.chest-lid {
  animation: lid-open 1s ease-out;
  transform-origin: center bottom;
}

.coin {
  animation: coin-float 2s ease-in-out infinite;
}
.coin-2 { animation-delay: 0.3s; }
.coin-3 { animation-delay: 0.6s; }
.coin-4 { animation-delay: 0.15s; }
.coin-5 { animation-delay: 0.45s; }

.sparkle {
  animation: sparkle-pulse 1.5s ease-in-out infinite;
}
.sparkle-2 { animation-delay: 0.5s; }
.sparkle-3 { animation-delay: 1s; }

.confirmation-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--text-light);
  margin-bottom: var(--space-sm);
}

.confirmation-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.order-number-box {
  background: var(--glass-bg);
  border: 2px dashed var(--treasure-gold);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  display: inline-block;
  margin-bottom: var(--space-lg);
}

.order-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.order-id {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--treasure-gold);
  letter-spacing: 2px;
}

.confirmation-details {
  margin-bottom: var(--space-lg);
}

.confirmation-message {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  color: var(--text-muted);
}

.pirate-small {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

.pirate-quote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ocean-foam);
  padding: var(--space-md);
  border-left: 3px solid var(--treasure-gold);
  margin-top: var(--space-md);
  text-align: left;
}

/* ---------- 404 Error ---------- */
.error-section {
  padding: var(--space-xl) 0;
}

.error-content {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.error-visual {
  margin-bottom: var(--space-lg);
}

.floating-bottle {
  animation: float 4s ease-in-out infinite;
}

.wave-bg.wave-1 {
  animation: wave-drift 6s ease-in-out infinite;
}

.wave-bg.wave-2 {
  animation: wave-drift 8s ease-in-out infinite reverse;
}

.error-title {
  margin-bottom: var(--space-sm);
  color: var(--text-light);
}

.error-subtitle {
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

/* ---------- Trust Badges ---------- */
.trust-section {
  background: transparent;
  padding: var(--space-lg) 0;
}

.trust-badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .trust-badges {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  text-align: center;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-light);
}

.trust-badge svg {
  stroke: var(--ocean-foam);
}

/* ---------- About Section ---------- */
.about-section {
  background: transparent;
}

.about-content {
  max-width: 700px;
  margin: 0 auto;
}

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

.section-cta {
  text-align: center;
  margin-top: var(--space-lg);
}

/* ---------- Featured Section ---------- */
.featured-section {
  background: transparent;
}

/* ---------- Footer ---------- */
.site-footer {
  background: rgba(4, 20, 30, 0.6);
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  border-top: 1px solid var(--glass-border);
}

.footer-wave {
  display: none;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  padding: var(--space-xl) 0;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr auto 1fr;
    text-align: left;
  }
}

.footer-brand .logo-text {
  color: white;
  font-size: 1.2rem;
}

.footer-brand p {
  margin-top: var(--space-xs);
  font-size: 0.9rem;
  opacity: 0.7;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--treasure-gold);
}

.footer-note {
  font-size: 0.85rem;
  opacity: 0.6;
}

@media (min-width: 768px) {
  .footer-note {
    text-align: right;
  }
}

/* ---------- Toast Notifications ---------- */
#toast-container {
  position: fixed;
  top: calc(var(--header-height) + var(--space-md));
  right: var(--space-md);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.toast {
  background: rgba(6, 42, 58, 0.9);
  color: var(--text-light);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  font-weight: 500;
  border-left: 4px solid var(--ocean-foam);
  animation: slideInRight 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
  max-width: 300px;
}

/* ---------- Inline Line Icons ---------- */
.ico {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ico-sm { width: 0.85em; height: 0.85em; }
.ico-lg { width: 1.4em; height: 1.4em; }
.ico-xl { width: 1.8em; height: 1.8em; }

h1 .ico, h3 .ico {
  opacity: 0.7;
}

.product-rating .ico {
  stroke: var(--treasure-gold);
  fill: var(--treasure-gold);
  stroke-width: 1;
}

/* ---------- Keyframe Animations ---------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes palm-sway {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}

@keyframes flag-wave {
  0%, 100% { transform: scaleX(1); }
  50% { transform: scaleX(0.85); }
}

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

@keyframes wave-drift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-20px); }
}

@keyframes cart-bounce {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.3); }
  50% { transform: scale(0.9); }
  75% { transform: scale(1.1); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
  to { opacity: 0; transform: translateY(-10px); }
}

@keyframes chest-glow {
  0%, 100% { filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.2)); }
  50% { filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5)); }
}

@keyframes lid-open {
  from { transform: scaleY(0.5); }
  to { transform: scaleY(1); }
}

@keyframes coin-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes sparkle-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Print Styles ---------- */
@media print {
  .site-header, .site-footer, .hero-particles, .hamburger { display: none; }
  .site-main { margin-top: 0; }
  body { background: white; }
}
