:root {
  --bg-primary: #12100e;
  --bg-surface: #1c1815;
  --bg-card: #231f1b;
  --bg-light: #f9f7f2;
  --text-main: #f3eee6;
  --text-muted: #a69b8f;
  --text-dark: #22201d;
  --accent: #d88a4b;
  --accent-hover: #e59a5d;
  --accent-gold: #e2b76c;
  --border-color: rgba(255, 255, 255, 0.1);
  --border-light: rgba(0, 0, 0, 0.08);
  --success: #34d399;
  --font-serif: 'Cinzel', serif, Georgia;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-drawer: -10px 0 40px rgba(0, 0, 0, 0.6);
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Announcement Bar */
.announcement-bar {
  background: #231f20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  padding: 8px 16px;
  text-align: center;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #231f20;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo .logo-img {
  height: 48px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  letter-spacing: 0.03em;
}

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

.cart-trigger-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
}

.cart-trigger-btn:hover {
  border-color: var(--accent);
  background: #28231e;
}

.cart-badge {
  background: var(--accent);
  color: #12100e;
  font-weight: 800;
  font-size: 0.8rem;
  min-width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 130px 0 110px;
  background-color: #12100e;
  border-bottom: 1px solid var(--border-color);
  text-align: center;
  overflow: hidden;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.8s ease-in-out, transform 7s ease-out;
  filter: brightness(0.85) saturate(1.1) contrast(1.05);
}

.hero-slide.active {
  opacity: 0.65;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(18, 16, 14, 0.45) 0%, rgba(18, 16, 14, 0.8) 100%);
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(216, 138, 75, 0.12);
  border: 1px solid rgba(216, 138, 75, 0.3);
  color: var(--accent-gold);
  border-radius: 20px;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.15;
  max-width: 850px;
  margin: 0 auto 20px;
  letter-spacing: 0.02em;
  color: #fff;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 50px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #12100e;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(216, 138, 75, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hero-features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 36px;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Catalog Section */
.catalog-section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}

.section-tag {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  margin-bottom: 14px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 32px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  position: relative;
}

.product-card:hover {
  border-color: rgba(216, 138, 75, 0.4);
  transform: translateY(-4px);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.roast-badge {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #ddd;
}

.custom-badge {
  background: rgba(216, 138, 75, 0.2);
  color: var(--accent-gold);
  border: 1px solid rgba(216, 138, 75, 0.4);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
}

.card-product-name {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #fff;
}

.card-product-tagline {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 14px;
}

.tasting-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.note-tag {
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 12px;
  color: var(--text-muted);
}

.card-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

.product-meta {
  font-size: 0.85rem;
  color: #887d72;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
}

/* Option Selectors */
.option-group {
  margin-bottom: 16px;
}

.option-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.size-selector-pills {
  display: flex;
  gap: 8px;
}

.size-pill {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
}

.size-pill.active {
  background: rgba(216, 138, 75, 0.15);
  border-color: var(--accent);
  color: var(--accent);
}

.select-input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
}

.select-input:focus {
  border-color: var(--accent);
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 18px;
}

.card-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
}

.add-cart-btn {
  background: var(--accent);
  color: #12100e;
  border: none;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.add-cart-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

/* Standards */
.standards-section {
  padding: 80px 0;
  background: #171412;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.standards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.standard-card {
  padding: 32px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.standard-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 12px;
}

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

/* Brand Story */
.story-section {
  padding: 100px 0;
}

.story-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: center;
}

.story-image-wrap {
  text-align: center;
  background: radial-gradient(circle, rgba(216, 138, 75, 0.15) 0%, transparent 70%);
  padding: 40px;
}

.story-badge-img {
  max-width: 320px;
  width: 100%;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.7));
}

.story-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  margin: 12px 0 20px;
}

.story-copy p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.story-quote {
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  font-style: italic;
  font-family: var(--font-serif);
  color: #fff;
  margin-top: 24px;
}

/* Cart Drawer */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: #191613;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-drawer);
}

.cart-drawer.active {
  transform: translateX(0);
}

.cart-header {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.cart-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-header-title h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
}

.badge-item-count {
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 3px 8px;
  border-radius: 10px;
  color: var(--text-muted);
}

.close-cart-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

.close-cart-btn:hover {
  color: #fff;
}

/* Shipping Progress Tracker */
.free-shipping-banner {
  background: #241e19;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border-color);
}

.shipping-progress-text {
  font-size: 0.85rem;
  margin-bottom: 8px;
  color: var(--text-main);
}

.shipping-progress-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.shipping-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #d88a4b, var(--success));
  transition: width 0.3s ease;
}

.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.empty-cart-view {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-cart-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  background: var(--bg-card);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.cart-item-details h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

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

.cart-qty-ctrl {
  display: inline-flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.cart-qty-btn {
  background: none;
  border: none;
  color: var(--text-main);
  padding: 4px 10px;
  cursor: pointer;
  font-weight: bold;
}

.cart-qty-val {
  padding: 0 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

.cart-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
}

.cart-item-price {
  font-weight: 700;
  color: #fff;
}

.remove-item-btn {
  background: none;
  border: none;
  color: #e57373;
  font-size: 0.75rem;
  cursor: pointer;
}

.remove-item-btn:hover {
  text-decoration: underline;
}

/* Cart Footer */
.cart-footer {
  padding: 24px;
  background: #151210;
  border-top: 1px solid var(--border-color);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.cart-tax-notice {
  font-size: 0.75rem;
  color: #7b7267;
  margin-bottom: 12px;
}

.total-row {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
  margin-bottom: 18px;
}

.btn-checkout {
  width: 100%;
  background: var(--accent);
  color: #12100e;
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: var(--transition);
}

.btn-checkout:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.checkout-btn-label {
  font-size: 1.05rem;
  font-weight: 700;
}

.checkout-btn-sublabel {
  font-size: 0.75rem;
  opacity: 0.8;
}

.btn-checkout:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.payment-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 14px;
}

/* Footer */
.site-footer {
  background: #0d0c0a;
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  height: 50px;
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.footer-links h4 {
  font-family: var(--font-serif);
  font-size: 1rem;
  margin-bottom: 12px;
  color: #fff;
}

.footer-links ul {
  list-style: none;
}

.footer-links li, .footer-links p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
}

.bottom-inner {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #6d645a;
}

.bottom-inner a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  transition: var(--transition);
}

.bottom-inner a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* Contact Section */
.contact-section {
  padding: 100px 0;
  background: #161311;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: flex-start;
}

.contact-info .contact-title {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  margin: 12px 0 16px;
  color: #fff;
}

.contact-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 30px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 16px 20px;
  border-radius: var(--radius-md);
}

.contact-detail-item .detail-icon {
  font-size: 1.6rem;
}

.contact-detail-item strong {
  display: block;
  font-size: 0.9rem;
  color: #fff;
}

.contact-detail-item a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.contact-detail-item a:hover {
  text-decoration: underline;
}

.contact-detail-item p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.form-input, .form-textarea {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(216, 138, 75, 0.2);
}

.btn-submit {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  font-weight: 700;
  margin-top: 8px;
}

.form-status-message {
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  text-align: center;
  margin-top: 10px;
}

.form-status-message.success {
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid var(--success);
  color: #6ee7b7;
}

.form-status-message.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  color: #fca5a5;
}

/* Responsive adjustments */
@media (max-width: 850px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .story-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .story-quote {
    border-left: none;
    border-top: 2px solid var(--accent);
    padding: 16px 0 0;
  }
  .footer-content {
    grid-template-columns: 1fr;
  }
  .bottom-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  .nav-links {
    display: none;
  }
}
