@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;800&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  /* HSL Tailored Dark Theme Color Palette */
  --obsidian-black: #060907;
  --obsidian-deep: #0b0f0c;
  --obsidian-panel: rgba(14, 22, 18, 0.7);
  --obsidian-border: rgba(212, 175, 55, 0.15);
  
  --emerald-deep: #0a1c13;
  --emerald-medium: #113122;
  --emerald-light: #205c40;
  --emerald-accent: #3eb880;
  
  --gold-primary: #d4af37;
  --gold-light: #f5e2a3;
  --gold-dark: #aa851d;
  --gold-glow: rgba(212, 175, 55, 0.3);
  
  --text-light: #f2f7f4;
  --text-muted: #9bb0a5;
  --text-dark: #060907;
  
  --status-error: #e05252;
  --status-error-bg: rgba(224, 82, 82, 0.1);
  --status-success: #3eb880;
  --status-success-bg: rgba(62, 184, 128, 0.1);
  
  --font-serif: 'Cinzel', Georgia, serif;
  --font-sans: 'Outfit', -apple-system, sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

/* Premium Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--obsidian-black);
}
::-webkit-scrollbar-thumb {
  background: var(--emerald-medium);
  border-radius: 4px;
  border: 2px solid var(--obsidian-black);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

body {
  font-family: var(--font-sans);
  background-color: var(--obsidian-black);
  color: var(--text-light);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
}

/* Background Atmospheric Gradient */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 10% 20%, rgba(32, 92, 64, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.08) 0%, transparent 40%);
  z-index: -2;
  pointer-events: none;
}

/* Typography & General */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--text-light);
  letter-spacing: 0.05em;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-sans);
  transition: var(--transition-smooth);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Header Section */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(6, 9, 7, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--obsidian-border);
  transition: var(--transition-smooth);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo-leaf {
  width: 32px;
  height: 32px;
  stroke: var(--gold-primary);
  fill: none;
  stroke-width: 2;
  filter: drop-shadow(0 0 8px var(--gold-glow));
  animation: float 4s ease-in-out infinite;
}

.logo h1 {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(to right, var(--text-light), var(--gold-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

nav ul li a:hover {
  color: var(--gold-primary);
  text-shadow: 0 0 10px var(--gold-glow);
}

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

.action-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--emerald-deep);
  border: 1px solid var(--obsidian-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
}

.action-btn:hover {
  border-color: var(--gold-primary);
  box-shadow: 0 0 15px var(--gold-glow);
  transform: translateY(-2px);
}

.action-btn svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--gold-primary);
  color: var(--text-dark);
  font-size: 0.75rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.8);
  animation: pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Hero Section */
.hero {
  height: 90vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 2rem;
  overflow: hidden;
  margin-bottom: 4rem;
}

.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.35) contrast(1.1);
  transform: scale(1.03);
  animation: zoomSlow 30s ease-out infinite alternate;
}

.hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 60%, var(--obsidian-black) 98%);
  z-index: -1;
}

.hero-content {
  max-width: 900px;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero h2 {
  font-size: clamp(2.5rem, 6.5vw, 5rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff 0%, var(--gold-light) 50%, var(--gold-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
  animation: fadeInUp 1.2s ease-out;
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: var(--text-muted);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  animation: fadeInUp 1.4s ease-out;
}

.hero-desc {
  max-width: 600px;
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 300;
  margin-top: 0.5rem;
  animation: fadeInUp 1.6s ease-out;
}

.cta-btn {
  margin-top: 1.5rem;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  color: var(--text-dark);
  padding: 1rem 2.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border-radius: 4px;
  border: 1px solid var(--gold-light);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.35);
  animation: fadeInUp 1.8s ease-out;
}

.cta-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 25px var(--gold-glow);
  color: #000000;
}

/* Catalog Landing */
.catalog-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title h2 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.section-title h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 2px;
  background: var(--gold-primary);
  margin: 0.75rem auto 0;
  box-shadow: 0 0 8px var(--gold-glow);
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.05rem;
  font-weight: 300;
}

/* Filters & Search */
.search-filter-container {
  background: var(--obsidian-panel);
  backdrop-filter: blur(16px);
  border: 1px solid var(--obsidian-border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.search-row {
  display: flex;
  gap: 1rem;
  width: 100%;
}

.search-box {
  flex-grow: 1;
  position: relative;
}

.search-box svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  stroke: var(--text-muted);
}

.search-input {
  width: 100%;
  background: rgba(6, 9, 7, 0.6);
  border: 1px solid var(--obsidian-border);
  border-radius: 4px;
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  color: var(--text-light);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.search-input:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px var(--gold-glow);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tag-btn {
  padding: 0.5rem 1.25rem;
  background: rgba(16, 28, 22, 0.4);
  border: 1px solid var(--obsidian-border);
  color: var(--text-muted);
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.tag-btn:hover, .tag-btn.active {
  background: var(--gold-primary);
  color: var(--text-dark);
  border-color: var(--gold-light);
  box-shadow: 0 0 12px var(--gold-glow);
}

.dropdown-filters {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.select-filter {
  background: rgba(16, 28, 22, 0.6);
  color: var(--text-light);
  border: 1px solid var(--obsidian-border);
  padding: 0.5rem 2rem 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23d4af37'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 14px;
}

.select-filter:focus {
  outline: none;
  border-color: var(--gold-primary);
}

.select-filter option {
  background: var(--obsidian-deep);
  color: var(--text-light);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--obsidian-panel);
  border: 1px solid var(--obsidian-border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-smooth);
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(212, 175, 55, 0.08);
}

.product-img-wrap {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
  background: #020302;
  cursor: pointer;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(16, 32, 24, 0.85);
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  font-family: var(--font-serif);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
  backdrop-filter: blur(8px);
}

.product-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.product-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.product-title:hover {
  color: var(--gold-primary);
}

.product-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.product-action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  padding-top: 1rem;
}

.product-price {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--gold-primary);
  font-weight: 600;
}

.product-price span {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-sans);
}

.add-cart-btn {
  background: var(--emerald-medium);
  border: 1px solid var(--emerald-light);
  color: var(--text-light);
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.add-cart-btn:hover {
  background: var(--gold-primary);
  color: var(--text-dark);
  border-color: var(--gold-light);
  box-shadow: 0 0 10px var(--gold-glow);
}

.add-cart-btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
}

/* Floating Cart Drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: rgba(11, 15, 12, 0.95);
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--obsidian-border);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
}

.cart-drawer.open {
  right: 0;
}

.cart-drawer-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-drawer-header h3 {
  font-size: 1.4rem;
  text-transform: uppercase;
}

.close-drawer-btn {
  color: var(--text-muted);
  font-size: 1.5rem;
}

.close-drawer-btn:hover {
  color: var(--gold-primary);
  transform: rotate(90deg);
}

.cart-items-list {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 1.25rem;
}

.cart-item-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--obsidian-border);
}

.cart-item-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.cart-item-title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.cart-item-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.cart-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quantity-control {
  display: flex;
  align-items: center;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 4px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}

.qty-btn {
  color: var(--text-muted);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.qty-btn:hover {
  color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.05);
}

.qty-num {
  font-size: 0.85rem;
  padding: 0 0.5rem;
  min-width: 24px;
  text-align: center;
}

.cart-item-price {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--gold-primary);
}

.remove-item-btn {
  color: var(--status-error);
  opacity: 0.6;
  font-size: 0.75rem;
  align-self: flex-start;
}

.remove-item-btn:hover {
  opacity: 1;
}

.cart-empty-state {
  text-align: center;
  color: var(--text-muted);
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.cart-empty-state svg {
  width: 48px;
  height: 48px;
  stroke: var(--emerald-light);
  stroke-width: 1.5;
}

.cart-footer {
  padding: 1.5rem 2rem;
  background: var(--obsidian-deep);
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cart-totals {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  font-family: var(--font-serif);
}

.cart-total-price {
  color: var(--gold-primary);
  font-weight: 600;
}

.checkout-btn {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  color: var(--text-dark);
  padding: 0.95rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 4px;
  text-align: center;
  width: 100%;
}

.checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--gold-glow);
}

.checkout-btn:disabled {
  background: var(--emerald-medium);
  color: var(--text-muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Custom Overlays Dialog (Details Modal & Checkout Modal) */
dialog {
  margin: auto;
  border: 1px solid var(--obsidian-border);
  background: rgba(11, 15, 12, 0.96);
  color: var(--text-light);
  border-radius: 12px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.9), 0 0 40px rgba(212, 175, 55, 0.05);
  max-width: 850px;
  width: 90%;
  outline: none;
  animation: modalScale 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

dialog::backdrop {
  background: rgba(3, 5, 4, 0.85);
  backdrop-filter: blur(12px);
  animation: fadeIn 0.4s ease-out;
}

/* Details Dialog Design */
.dialog-content {
  position: relative;
  display: flex;
  flex-direction: column;
}

.close-dialog-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--obsidian-border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.close-dialog-btn:hover {
  color: var(--gold-primary);
  border-color: var(--gold-primary);
  transform: rotate(90deg);
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .details-grid {
    grid-template-columns: 1.1fr 1.3fr;
  }
}

.details-img-wrap {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #000;
  position: relative;
}

@media (min-width: 768px) {
  .details-img-wrap {
    aspect-ratio: auto;
    min-height: 100%;
  }
}

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

.details-body {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-height: 80vh;
  overflow-y: auto;
}

.details-category {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-primary);
}

.details-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.2;
}

.details-price-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  padding-bottom: 1.25rem;
}

.details-price {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--gold-primary);
  font-weight: 600;
}

.weight-selector {
  display: flex;
  gap: 0.5rem;
}

.weight-btn {
  background: rgba(16, 28, 22, 0.6);
  border: 1px solid var(--obsidian-border);
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
}

.weight-btn:hover, .weight-btn.active {
  background: var(--gold-primary);
  color: var(--text-dark);
  border-color: var(--gold-light);
  box-shadow: 0 0 10px var(--gold-glow);
}

.details-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 300;
}

/* Flavor Profile Graphic */
.flavor-profile {
  background: rgba(16, 32, 24, 0.4);
  border: 1px solid rgba(212, 175, 55, 0.08);
  border-radius: 6px;
  padding: 1rem;
}

.flavor-profile-title {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.flavor-bar {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bar-row {
  display: grid;
  grid-template-columns: 80px 1fr 30px;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
}

.bar-label {
  color: var(--text-muted);
  text-align: right;
}

.bar-outer {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

.bar-inner {
  height: 100%;
  background: var(--gold-primary);
  border-radius: 3px;
  box-shadow: 0 0 8px var(--gold-primary);
}

.bar-value {
  color: var(--gold-light);
  font-weight: 600;
}

/* Brewing Guide & Interactive Simulator */
.brewing-section {
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.brewing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brewing-title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold-primary);
}

.brewing-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.brewing-info-card {
  background: rgba(6, 9, 7, 0.5);
  border: 1px solid var(--obsidian-border);
  border-radius: 6px;
  padding: 0.75rem;
  text-align: center;
}

.brew-icon {
  width: 20px;
  height: 20px;
  stroke: var(--gold-primary);
  margin: 0 auto 0.25rem;
}

.brew-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  display: block;
}

.brew-val {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-light);
}

/* Brewing Dynamic Timer Simulator Widget */
.brew-sim-widget {
  background: radial-gradient(circle at center, rgba(16, 32, 24, 0.8), rgba(6, 9, 7, 0.9));
  border: 1px dashed var(--gold-primary);
  border-radius: 8px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}

/* Steam Animation Container */
.steam-container {
  display: flex;
  gap: 6px;
  position: absolute;
  top: 12px;
  left: 2.25rem;
  height: 30px;
  opacity: 0.7;
}

.steam-line {
  width: 2px;
  height: 100%;
  background: linear-gradient(to top, transparent, var(--text-muted));
  border-radius: 50%;
  animation: steam 2s ease-in-out infinite;
}

.steam-line:nth-child(2) { animation-delay: 0.4s; animation-duration: 2.3s; }
.steam-line:nth-child(3) { animation-delay: 0.8s; animation-duration: 1.8s; }

.timer-circle-container {
  position: relative;
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timer-svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.timer-bg-circle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 4;
}

.timer-fill-circle {
  fill: none;
  stroke: var(--gold-primary);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 207.3; /* 2 * PI * 33 */
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.1s linear;
}

.timer-time-display {
  position: absolute;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-light);
}

.brew-sim-controls {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.brew-sim-title {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--text-light);
}

.brew-sim-row {
  display: flex;
  gap: 0.5rem;
}

.sim-btn {
  background: var(--emerald-medium);
  border: 1px solid var(--emerald-light);
  color: var(--text-light);
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
}

.sim-btn:hover {
  background: var(--gold-primary);
  color: var(--text-dark);
  border-color: var(--gold-light);
}

.sim-btn.reset {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

.sim-btn.reset:hover {
  background: var(--status-error-bg);
  color: var(--status-error);
  border-color: var(--status-error);
}

/* Infusion Count Badge */
.infusion-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

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

.infusion-badge {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  font-size: 0.75rem;
  padding: 0.1rem 0.5rem;
  border-radius: 20px;
}

/* Action Dialog Footer */
.details-action-footer {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.details-action-footer .add-cart-btn {
  flex-grow: 1;
  justify-content: center;
  padding: 0.9rem;
  font-size: 0.95rem;
}

/* Multi-Step Checkout Dialog */
.checkout-modal-content {
  padding: 2.5rem;
  max-height: 90vh;
  overflow-y: auto;
}

.checkout-header {
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.checkout-header h3 {
  font-size: 1.5rem;
  text-transform: uppercase;
}

/* Progress Steps indicator */
.checkout-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin-bottom: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.checkout-steps::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
  z-index: 1;
}

.step-indicator {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--obsidian-deep);
  border: 2px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  z-index: 2;
  transition: var(--transition-smooth);
}

.step-indicator.active {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  box-shadow: 0 0 10px var(--gold-glow);
}

.step-indicator.complete {
  background: var(--gold-primary);
  border-color: var(--gold-light);
  color: var(--text-dark);
}

/* Forms and Modern Input Validation Styling */
.checkout-step-panel {
  display: none;
  animation: fadeIn 0.4s ease-out;
}

.checkout-step-panel.active {
  display: block;
}

.form-group-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 600px) {
  .form-group-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.full-width {
  grid-column: 1 / -1;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.03em;
}

.input-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.form-input {
  background: rgba(6, 9, 7, 0.6);
  border: 1px solid var(--obsidian-border);
  color: var(--text-light);
  padding: 0.85rem 1rem;
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  transition: var(--transition-smooth);
}

.form-input:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px var(--gold-glow);
}

/* Modern Native User-Invalidation Styles */
.form-input:user-invalid {
  border-color: var(--status-error);
  background-color: var(--status-error-bg);
}

.form-input:user-valid {
  border-color: var(--status-success);
}

.field-error-msg {
  display: none;
  font-size: 0.8rem;
  color: var(--status-error);
  align-items: center;
  gap: 0.25rem;
}

.form-field:has(.form-input:user-invalid) .field-error-msg {
  display: flex;
}

/* Custom Checkbox/Switch Style */
.switch-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(16, 28, 22, 0.4);
  border: 1px solid var(--obsidian-border);
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
}

.switch-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.switch-title {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold-light);
}

.switch-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.toggle-switch {
  position: relative;
  width: 50px;
  height: 26px;
  display: inline-block;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  transition: .4s;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-muted);
  transition: .4s;
  border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: var(--emerald-medium);
  border-color: var(--emerald-accent);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(24px);
  background-color: var(--gold-primary);
  box-shadow: 0 0 8px var(--gold-primary);
}

/* Telegram Custom Config Fields */
.telegram-fields {
  display: none;
  animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(0, 0, 0, 0.3);
  padding: 1.5rem;
  border-radius: 6px;
  border: 1px solid rgba(212, 175, 55, 0.05);
  margin-bottom: 1.5rem;
}

.telegram-fields.active {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Telegram Live Logger / Terminal Console UI */
.hologram-console {
  background: #040806;
  border: 1px solid #142c20;
  border-radius: 6px;
  padding: 1.25rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.8rem;
  color: #32d682;
  box-shadow: inset 0 0 10px rgba(50, 214, 130, 0.15), 0 0 15px rgba(4, 8, 6, 0.8);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hologram-console::before {
  content: 'LIVE TELEGRAM TELEMETRY LOGGER';
  position: absolute;
  top: 4px;
  right: 8px;
  font-size: 0.65rem;
  color: #146c3b;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.console-header {
  border-bottom: 1px solid #142c20;
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
  color: #52fda4;
  font-weight: 700;
}

.console-body {
  max-height: 150px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  scrollbar-width: thin;
}

.console-log-row {
  display: flex;
  gap: 0.5rem;
}

.log-time {
  color: #1a6e41;
}

.log-info { color: #52fda4; }
.log-success { color: #d4af37; }
.log-payload {
  color: #9bb0a5;
  white-space: pre-wrap;
  padding-left: 1rem;
}

/* Order Summary Step Panel */
.order-summary-box {
  background: rgba(16, 28, 22, 0.4);
  border: 1px solid var(--obsidian-border);
  border-radius: 6px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.summary-title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  text-transform: uppercase;
  color: var(--gold-light);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  padding-bottom: 0.5rem;
}

.summary-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.summary-item-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.summary-item-qty {
  color: var(--text-muted);
}

.summary-item-price {
  font-family: var(--font-serif);
  color: var(--gold-primary);
}

.summary-details {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.summary-detail-row {
  display: flex;
  justify-content: space-between;
}

.summary-label {
  color: var(--text-muted);
}

.summary-value {
  color: var(--text-light);
  font-weight: 500;
}

/* Checkout Dialog Navigation Buttons */
.checkout-nav-row {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  gap: 1rem;
}

.checkout-nav-btn {
  padding: 0.85rem 1.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
}

.checkout-nav-btn.prev {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

.checkout-nav-btn.prev:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-light);
}

.checkout-nav-btn.next {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  color: var(--text-dark);
  border: 1px solid var(--gold-light);
}

.checkout-nav-btn.next:hover {
  box-shadow: 0 4px 15px var(--gold-glow);
}

.checkout-nav-btn.next:disabled {
  background: var(--emerald-medium);
  border-color: var(--emerald-light);
  color: var(--text-muted);
  box-shadow: none;
  cursor: not-allowed;
}

/* Toast Notification Overlay */
.toast-container {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 300;
}

.toast {
  background: var(--emerald-deep);
  border-left: 4px solid var(--gold-primary);
  border-top: 1px solid var(--obsidian-border);
  border-right: 1px solid var(--obsidian-border);
  border-bottom: 1px solid var(--obsidian-border);
  color: var(--text-light);
  padding: 1rem 1.5rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideRight 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-success {
  border-left-color: var(--status-success);
}

.toast-error {
  border-left-color: var(--status-error);
  background: rgba(44, 16, 16, 0.9);
}

/* Footer Section */
footer {
  background: var(--obsidian-deep);
  border-top: 1px solid var(--obsidian-border);
  padding: 4rem 2rem 2rem;
  margin-top: 6rem;
  font-weight: 300;
}

.footer-grid {
  max-width: 1400px;
  margin: 0 auto 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.footer-col h4 {
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.footer-col h4::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold-primary);
  margin-top: 0.5rem;
}

.footer-col p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.footer-links li a {
  color: var(--text-muted);
}

.footer-links li a:hover {
  color: var(--gold-primary);
  padding-left: 4px;
}

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

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.social-btn:hover {
  color: var(--gold-primary);
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.05);
}

.social-btn svg {
  width: 16px;
  height: 16px;
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* Animations */
@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(3deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes steam {
  0% { transform: translateY(20px) scaleX(0.7); opacity: 0; }
  20% { opacity: 0.8; }
  50% { transform: translateY(0px) scaleX(1.3) skewX(-10deg); opacity: 0.5; }
  85% { opacity: 0; }
  100% { transform: translateY(-20px) scaleX(0.7); opacity: 0; }
}

@keyframes pop {
  0% { transform: scale(0.6); }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

@keyframes modalScale {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes zoomSlow {
  from { transform: scale(1.03); }
  to { transform: scale(1.08); }
}

@keyframes slideRight {
  from { transform: translateX(-30px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideDown {
  from { opacity: 0; max-height: 0; margin-top: -1.5rem; }
  to { opacity: 1; max-height: 400px; margin-top: 0; }
}

/* Responsiveness adjustments */
@media (max-width: 768px) {
  .header-container {
    padding: 1rem;
  }
  nav {
    display: none; /* Can build simple drawer or rely on headers for SPA simplicity */
  }
  .catalog-section {
    padding: 3rem 1rem;
  }
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
  }
}
