/* ===== HEADER / NAV ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(var(--blur-glass));
  -webkit-backdrop-filter: blur(var(--blur-glass));
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.25);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header-logo {
  height: 44px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25)) drop-shadow(0 1px 2px rgba(0,0,0,0.15));
}

.nav-links {
  display: flex;
  gap: var(--space-xl);
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-sm) 0;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-secondary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.cart-btn {
  position: relative;
  padding: var(--space-sm);
  color: var(--color-text);
  transition: color var(--transition-fast);
}

.cart-btn:hover {
  color: var(--color-primary);
}

.cart-btn svg {
  width: 24px;
  height: 24px;
}

.cart-badge {
  position: absolute;
  top: -2px;
  right: -6px;
  background: var(--color-secondary);
  color: white;
  font-size: 11px;
  font-weight: 600;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
}

.cart-badge.bounce {
  animation: badgeBounce 300ms ease;
}

@keyframes badgeBounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.cart-badge:empty,
.cart-badge[data-count="0"] {
  display: none;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all var(--transition-fast);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.7em 1.5em;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: var(--color-text-inverse);
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
}

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

.btn-secondary:hover {
  background: var(--color-secondary-light);
  color: white;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

.btn-sm {
  padding: 0.4em 1em;
  font-size: var(--text-xs);
}

.btn-lg {
  padding: 0.9em 2em;
  font-size: var(--text-lg);
}

/* ===== CARDS ===== */
.card {
  background: var(--color-bg-card);
  backdrop-filter: blur(var(--blur-glass));
  -webkit-backdrop-filter: blur(var(--blur-glass));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* ===== PRODUCT CARD ===== */
.product-card {
  background: var(--color-bg-card-solid);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  position: relative;
  display: flex;
  flex-direction: column;
}

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

.product-card-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--color-bg-alt);
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.product-card-body {
  padding: var(--space-md) var(--space-lg) var(--space-lg);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-name {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.product-card-name a {
  color: inherit;
}

.product-card-name a:hover {
  color: var(--color-primary);
}

.product-card-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--space-md);
  line-height: 1.5;
}

.product-card-price {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.product-card-price .price-from {
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-card-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.product-card-actions select {
  width: 100%;
  padding: 0.5em 0.75em;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  color: var(--color-text);
  background: white;
  cursor: pointer;
}

.product-card-actions select:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: -1px;
}

.add-to-cart-row {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty-control button {
  width: 32px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  background: var(--color-bg);
  transition: background var(--transition-fast);
}

.qty-control button:hover {
  background: var(--color-border);
  color: var(--color-text);
}

.qty-control input {
  width: 40px;
  height: 36px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  font-size: var(--text-sm);
  font-weight: 500;
}

.qty-control input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.btn-add-cart {
  flex: 1;
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 0.55em 1em;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.btn-add-cart:hover {
  background: var(--color-primary-dark);
}

.btn-add-cart.added {
  background: var(--color-success);
}

/* ===== BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25em 0.75em;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
}

.badge-new {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: var(--color-gold);
  color: white;
  z-index: 2;
}

.badge-featured {
  background: var(--color-secondary);
  color: white;
}

/* ===== CATEGORY PILLS ===== */
.category-pills {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--space-xl);
}

.category-pill {
  padding: 0.5em 1.2em;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  background: white;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.category-pill:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.category-pill.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

/* ===== SEARCH BAR ===== */
.search-bar {
  position: relative;
  max-width: 500px;
  margin-inline: auto;
  margin-bottom: var(--space-xl);
}

.search-bar input {
  width: 100%;
  padding: 0.75em 1em 0.75em 3em;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-base);
  background: white;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-bar input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(92, 61, 46, 0.1);
}

.search-bar svg {
  position: absolute;
  left: 1em;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-slim {
  min-height: 50vh;
}

/* Hero Panel: transparent, brick shows through from page background */
.hero-panel {
  position: relative;
  text-align: center;
  overflow: hidden;
  background: transparent;
}

.hero-panel-inner {
  position: relative;
  z-index: 1;
  padding: var(--space-3xl) var(--space-2xl) var(--space-xl);
  max-width: 800px;
  margin: 0 auto;
}

/* Trust strip inside hero panel */
.trust-strip-inline {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(250, 246, 241, 0.12);
  padding: var(--space-md) var(--space-lg);
}

.trust-strip-inline .trust-items {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.trust-strip-inline .trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.95);
  font-size: var(--text-xs);
  font-weight: 600;
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.trust-strip-inline .trust-item svg {
  opacity: 0.9;
  flex-shrink: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/brick-bg.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(35, 22, 14, 0.88) 0%,
    rgba(55, 35, 24, 0.72) 50%,
    rgba(35, 22, 14, 0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: var(--space-2xl);
}

.hero-eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #fff;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: #fff;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5), 0 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-xl);
  max-width: 550px;
  margin-inline: auto;
  line-height: 1.6;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.hero-ctas {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.hero .btn {
  font-size: var(--text-base);
  padding: 0.8em 2em;
}

.btn-hero-outline {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  padding: 0.7em 1.5em;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.8);
  color: white;
}

/* Trust Strip (standalone, kept for compatibility) */
.trust-strip {
  background: var(--color-primary);
  padding: var(--space-md) 0;
}

.trust-items {
  display: flex;
  justify-content: center;
  gap: var(--space-2xl);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(250, 246, 241, 0.85);
  font-size: var(--text-sm);
  font-weight: 500;
  white-space: nowrap;
}

.trust-item svg {
  flex-shrink: 0;
  opacity: 0.7;
}

/* Story Banner — matches hero: transparent over brick */
.story-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: var(--space-3xl) var(--space-2xl);
  text-align: center;
  background: transparent;
}

.story-banner-bg {
  display: none;
}

.story-banner-content {
  position: relative;
  z-index: 1;
  max-width: 650px;
  margin: 0 auto;
}

.story-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.story-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.story-stat-number {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  color: var(--color-secondary-light);
  line-height: 1;
}

.story-stat-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(250, 246, 241, 0.6);
  margin-top: var(--space-xs);
}

.story-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(250, 246, 241, 0.2);
}

.story-banner-content h2 {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  color: #fff;
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5), 0 1px 4px rgba(0, 0, 0, 0.3);
}

.story-banner-content p {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  font-size: var(--text-base);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

/* Legacy hero elements (for other pages) */
.hero-logo {
  max-width: 500px;
  margin-inline: auto;
  margin-bottom: var(--space-xl);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
  border-radius: var(--radius-sm);
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--color-bg);
  margin-bottom: var(--space-sm);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ===== FOOTER ===== */
.site-footer {
  position: relative;
  color: var(--color-text-inverse);
  padding: var(--space-lg) 0 var(--space-sm);
  overflow: hidden;
  box-shadow: 0 -6px 32px rgba(0, 0, 0, 0.4), 0 -2px 8px rgba(0, 0, 0, 0.25);
}

.footer-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/brick-bg.jpg');
  background-size: cover;
  background-position: center top;
  z-index: 0;
}

.footer-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(30, 20, 15, 0.88);
}

.site-footer .container {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.footer-brand p {
  color: rgba(250, 246, 241, 0.7);
  font-size: var(--text-xs);
  line-height: 1.6;
  margin-top: var(--space-sm);
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  color: var(--color-bg);
  margin-bottom: var(--space-sm);
}

.footer-links a {
  display: block;
  color: rgba(250, 246, 241, 0.7);
  font-size: var(--text-xs);
  padding: 2px 0;
  transition: color var(--transition-fast);
}

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

.footer-contact p {
  color: rgba(250, 246, 241, 0.7);
  font-size: var(--text-xs);
  margin-bottom: var(--space-xs);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.footer-social a {
  color: rgba(250, 246, 241, 0.6);
  transition: color var(--transition-fast);
}

.footer-social a:hover {
  color: var(--color-secondary-light);
}

.footer-bottom {
  padding-top: var(--space-md);
  border-top: 1px solid rgba(250, 246, 241, 0.12);
  text-align: center;
  color: rgba(250, 246, 241, 0.4);
  font-size: var(--text-xs);
}

/* Solid dark footer (no brick texture) */
.footer-solid .footer-bg {
  background-image: none;
  background: linear-gradient(
    135deg,
    #1A110B 0%,
    #2A1A10 50%,
    #1A110B 100%
  );
}

.footer-solid .footer-bg::after {
  background: none;
}

/* ===== CART DRAWER ===== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  height: 100vh;
  background: white;
  box-shadow: var(--shadow-drawer);
  z-index: 999;
  transform: translateX(100%);
  transition: transform var(--transition-base);
  display: flex;
  flex-direction: column;
}

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

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

.cart-drawer-header h3 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
}

.cart-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  transition: background var(--transition-fast);
}

.cart-close:hover {
  background: var(--color-bg);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-md);
}

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
  align-items: start;
}

.cart-item-img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--color-bg-alt);
}

.cart-item-name {
  font-weight: 500;
  font-size: var(--text-sm);
  margin-bottom: 2px;
}

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

.cart-item-price {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-primary);
}

.cart-item-remove {
  font-size: var(--text-xs);
  color: var(--color-danger);
  cursor: pointer;
  margin-top: var(--space-xs);
}

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

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl);
  color: var(--color-text-muted);
  text-align: center;
}

.cart-empty svg {
  width: 64px;
  height: 64px;
  margin-bottom: var(--space-md);
  opacity: 0.3;
}

.cart-footer {
  padding: var(--space-lg);
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
  font-size: var(--text-lg);
  font-weight: 600;
}

.cart-footer .btn {
  width: 100%;
}

.cart-footer .btn-checkout {
  background: var(--color-primary);
  color: white;
  padding: 0.8em;
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  border: none;
  transition: background var(--transition-fast);
}

.cart-footer .btn-checkout:hover {
  background: var(--color-primary-dark);
}

.cart-footer .cart-note {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-align: center;
  margin-top: var(--space-sm);
}
