/* ==========================================================================
   Delivery Research Glassworks - Period 1920s Retro Glassware Design System
   ========================================================================== */

:root {
  --primary: #1c242c;
  --primary-light: #2c3844;
  --primary-dark: #10151a;
  --amber: #b45309;
  --amber-dark: #92400e;
  --amber-light: #fef3c7;
  --gold: #c59b27;
  --gold-dark: #966f10;
  --gold-light: #fdf6e2;
  --cobalt: #1e3a8a;
  --cobalt-light: #dbeafe;
  --text-main: #1c1917;
  --text-muted: #57534e;
  --text-light: #8c827a;
  --bg-white: #ffffff;
  --bg-light: #fcfbfa;
  --bg-slate: #f6f3ee;
  --border: #e7e1d7;
  --border-focus: #b45309;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(28, 36, 44, 0.05);
  --shadow-md: 0 4px 14px rgba(28, 36, 44, 0.08);
  --shadow-lg: 0 12px 30px rgba(28, 36, 44, 0.12);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-mono: 'Courier New', monospace;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-white);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Workshop Top Bar */
.top-bar {
  background-color: var(--primary);
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  text-align: center;
  flex-wrap: wrap;
}

.top-bar strong {
  color: var(--amber-light);
  font-weight: 700;
}

.top-bar-divider {
  color: rgba(255, 255, 255, 0.3);
}

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

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 76px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-img {
  width: 40px;
  height: 40px;
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.2px;
}

.brand-tagline {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 24px;
}

.nav-item {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 0;
  position: relative;
}

.nav-item:hover, .nav-item.active {
  color: var(--amber-dark);
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--amber);
  border-radius: var(--radius-full);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cart-trigger-btn {
  background: var(--bg-slate);
  border: 1px solid var(--border);
  color: var(--primary);
  border-radius: var(--radius-full);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.cart-trigger-btn:hover {
  background: #fff;
  border-color: var(--amber);
  color: var(--amber-dark);
}

.cart-count-badge {
  background: var(--amber);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-full);
  padding: 2px 7px;
  min-width: 20px;
  text-align: center;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(180deg, var(--bg-light) 0%, #fff 100%);
  padding: 64px 0 80px;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero-tag {
  margin-bottom: 20px;
}

.badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.badge-amber {
  background: var(--amber-light);
  color: var(--amber-dark);
  border: 1px solid rgba(180, 83, 9, 0.2);
}

.badge-gold {
  background: var(--gold-light);
  color: var(--gold-dark);
  border: 1px solid rgba(197, 155, 39, 0.2);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 46px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.hero-title span {
  color: var(--amber-dark);
}

.hero-lead {
  font-size: 17.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 32px;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14.5px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--amber-dark);
  color: #fff;
}

.btn-secondary {
  background: var(--amber);
  color: #fff;
}

.btn-secondary:hover {
  background: var(--amber-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text-main);
}

.btn-outline:hover {
  background: var(--bg-slate);
  border-color: var(--primary);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13.5px;
}

.btn-block {
  width: 100%;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.hero-card-featured {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.hero-card-featured img {
  margin: 0 auto 20px;
  transition: var(--transition);
}

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

/* Section Header */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-subtitle {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--amber-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
}

.section-desc {
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 28px;
  margin-bottom: 40px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--amber);
}

.card-badge-wrap {
  margin-bottom: 12px;
}

.card-img-wrap {
  background: var(--bg-slate);
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  margin-bottom: 16px;
}

.card-img-wrap img {
  max-height: 100%;
  object-fit: contain;
}

.card-category {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.35;
}

.card-title a:hover {
  color: var(--amber-dark);
}

.card-rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--gold-dark);
  margin-bottom: 10px;
}

.card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.card-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.card-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.card-regular-price {
  font-size: 13px;
  color: var(--text-light);
  text-decoration: line-through;
}

/* Product Detail Page */
.product-detail-section {
  padding: 48px 0 80px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.breadcrumbs a:hover {
  color: var(--amber-dark);
}

.pdp-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.pdp-gallery-card {
  background: var(--bg-slate);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdp-gallery-card img {
  max-height: 380px;
  object-fit: contain;
}

.pdp-header {
  margin-bottom: 20px;
}

.pdp-meta-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.pdp-sku {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.pdp-title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  line-height: 1.25;
}

.pdp-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--gold-dark);
  margin-bottom: 16px;
}

.pdp-price-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.pdp-current-price {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
}

.pdp-old-price {
  font-size: 16px;
  color: var(--text-light);
  text-decoration: line-through;
}

.pdp-stock-status {
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  color: #15803d;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pdp-lead {
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.var-btn {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 13px;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
}

.var-btn:hover, .var-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.pdp-actions-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.pdp-qty-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.qty-control {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  overflow: hidden;
}

.qty-btn {
  background: var(--bg-slate);
  border: none;
  width: 38px;
  height: 38px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.qty-btn:hover {
  background: var(--border);
}

.qty-input {
  width: 48px;
  border: none;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  outline: none;
}

.pdp-verification-notice {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  background: var(--bg-slate);
  padding: 12px;
  border-radius: var(--radius-sm);
}

/* Tabs */
.pdp-tabs-wrap {
  border-top: 1px solid var(--border);
  padding-top: 48px;
}

.tabs-nav {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.tab-btn {
  background: none;
  border: none;
  padding: 12px 20px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.tab-btn:hover, .tab-btn.active {
  color: var(--amber-dark);
  border-bottom-color: var(--amber);
}

.tab-pane {
  display: none;
  max-width: 900px;
}

.tab-pane.active {
  display: block;
}

.tab-pane h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.tab-pane p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.65;
}

.inci-code-box {
  background: var(--bg-slate);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-main);
  line-height: 1.6;
}

/* Forms & Checkout */
.checkout-section {
  padding: 48px 0 80px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: start;
}

.checkout-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.checkout-notice-banner {
  background: var(--amber-light);
  border: 1px solid rgba(180, 83, 9, 0.25);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 28px;
  font-size: 13.5px;
  color: var(--amber-dark);
  line-height: 1.5;
}

.form-group {
  margin-bottom: 20px;
}

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

.form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-family: var(--font-body);
  color: var(--text-main);
  outline: none;
  transition: var(--transition);
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.15);
}

.order-summary-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.summary-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.summary-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14.5px;
  color: var(--text-muted);
}

.summary-line.total {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 14px;
}

/* Cart Drawer */
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(28, 36, 44, 0.5);
  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;
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: #fff;
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

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

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

.cart-drawer-title {
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--primary);
}

.cart-drawer-items-count {
  font-size: 12px;
  color: var(--text-muted);
}

.cart-drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
}

.cart-drawer-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 24px;
}

.cart-item-row {
  display: flex;
  gap: 16px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.cart-item-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  background: var(--bg-slate);
  border-radius: var(--radius-sm);
  padding: 4px;
}

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

.cart-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--amber-dark);
  margin-bottom: 8px;
}

.cart-item-controls {
  display: flex;
  align-items: center;
}

.cart-drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-light);
}

.cart-drawer-summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.cart-drawer-shipping-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.cart-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Footer */
.site-footer {
  background: var(--primary);
  color: #fff;
  padding: 72px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
}

.footer-desc {
  font-size: 13.5px;
  color: #a8a29e;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-certs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cert-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  color: #d6d3d1;
}

.footer-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 13.5px;
  color: #a8a29e;
}

.footer-links a:hover {
  color: var(--amber-light);
}

.footer-contact-info {
  font-style: normal;
  font-size: 13.5px;
  color: #a8a29e;
  line-height: 1.65;
  margin-bottom: 12px;
}

.footer-hours {
  font-size: 12px;
  color: #78716c;
}

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

.footer-disclaimer-box {
  font-size: 12px;
  color: #78716c;
  line-height: 1.5;
  margin-bottom: 16px;
}

.footer-copy-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #78716c;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--primary);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 13.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 4px solid var(--amber);
}

@media (max-width: 900px) {
  .hero-grid, .pdp-grid, .checkout-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .nav-list {
    display: none;
  }
}
