:root {
  color-scheme: light;
  --bg: #f7efdd;
  --surface: #ffffff;
  --surface-dark: #f3e7d8;
  --text: #472e1d;
  --muted: #6f5846;
  --accent: #6d4d3a;
  --accent-soft: #8b715f;
  --border: rgba(71, 46, 29, 0.12);
  --shadow: 0 12px 30px rgba(71, 46, 29, 0.04), 0 2px 6px rgba(71, 46, 29, 0.02);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(180deg, #f7efdd 0%, #fff9ee 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.logo-mark,
.eyebrow,
.site-footer-brand,
.reviews-avg-rating,
.product-detail-info h1,
.cart-header h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

body {
  line-height: 1.6;
}

img {
  max-width: 100%;
}

button,
input {
  font: inherit;
}

.alert {
  width: min(1200px, 100% - 2rem);
  margin: 1rem auto;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  box-shadow: var(--shadow);
  font-weight: 500;
}

.alert-success {
  background: #eaf7eb;
  color: #1f5a2c;
  border: 1px solid #c6ebc8;
}

.alert-error {
  background: #fdecea;
  color: #8f1b1b;
  border: 1px solid #f5c2c2;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 2rem;
  position: sticky;
  top: 0;
  background: rgba(247, 239, 221, 0.82);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 20;
  box-shadow: 0 4px 20px rgba(71, 46, 29, 0.02);
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand:hover .logo-img {
  transform: scale(1.03);
}

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

.main-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.35rem 0;
  transition: color 0.3s ease;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.main-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-footer {
  margin-top: 5rem;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.site-footer-inner {
  width: min(1200px, 100% - 3rem);
  margin: 0 auto;
  padding: 3rem 0;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: start;
}

.site-footer-brand {
  margin: 0 0 1rem;
  display: inline-block;
  text-decoration: none;
}

.footer-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-footer-brand:hover .footer-logo-img {
  transform: scale(1.03);
}

.site-footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem 2rem;
}

.site-footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.site-footer-links a:hover {
  color: var(--text);
  text-decoration: underline;
}

.site-footer-security {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 1.5rem 0;
  border-top: 1px dashed var(--border);
  background: rgba(255, 255, 255, 0.3);
}

.security-badges {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.security-badge {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 4px rgba(71, 46, 29, 0.01);
  transition: all 0.3s ease;
}

.security-badge:hover {
  border-color: var(--accent-soft);
  color: var(--text);
  transform: translateY(-1px);
}

.site-footer-copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.site-footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  text-align: center;
  width: 100%;
}

@media (max-width: 768px) {
  .site-footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem 1rem;
  }
  .site-footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .site-footer-links {
    grid-template-columns: 1fr;
  }
}

.cart-button {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(71, 46, 29, 0.02);
}

.cart-button:hover {
  background: var(--surface-dark);
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(71, 46, 29, 0.05);
}

.hero {
  display: grid;
  gap: 2rem;
  padding: 3rem 2rem;
  align-items: center;
}

@media (min-width: 769px) {
  .hero {
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    padding: 5rem 2rem;
  }
}

.hero-copy {
  max-width: 640px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(3rem, 4vw, 4.5rem);
  margin: 0;
  line-height: 1.02;
}

.hero p {
  font-size: 1.05rem;
  max-width: 42rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 4px rgba(71, 46, 29, 0.02);
}

.password-field {
  position: relative;
  display: grid;
}

.password-field input {
  padding-right: 7.5rem;
}

.password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
  padding: 0.5rem;
}

.password-toggle:hover {
  color: var(--text);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(71, 46, 29, 0.06);
}

.button:active {
  transform: translateY(-0.5px);
}

.button.primary {
  background: var(--text);
  color: #f7efdd;
  border-color: var(--text);
}

.button.primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.button.favorite-action,
.button.favorite-toggle {
  padding: 0.75rem 1.2rem;
  border-radius: 1rem;
  font-size: 0.95rem;
}

.button.favorite-action {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--muted);
  border: 1px solid rgba(109, 77, 58, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.favorite-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.favorite-label {
  font-size: 0.82rem;
  color: var(--accent);
  min-height: 1.1rem;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  transform: translateY(-6px);
}

.favorite-label.visible {
  opacity: 1;
  transform: translateY(0);
}

.heart-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.button.favorite-action.favorited {
  background: #ffe6e6;
  color: #c62828;
  border-color: rgba(198, 40, 40, 0.35);
}

.button.favorite-action.favorited .heart-icon {
  color: #c62828;
}

.button.favorite-toggle {
  background: rgba(255, 245, 240, 0.95);
  color: var(--text);
  border: 1px solid rgba(109, 77, 58, 0.2);
}

.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.button.favorite-toggle {
  background: rgba(255, 245, 240, 0.95);
  color: var(--text);
  border: 1px solid rgba(109, 77, 58, 0.2);
}

.button.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--text);
}

.button.secondary:hover {
  background: var(--surface-dark);
  border-color: var(--accent);
  color: var(--accent);
}

.button.tertiary {
  background: var(--surface-dark);
  color: var(--text);
  border: 1px solid var(--border);
  font-weight: 600;
  transition: all 0.3s ease;
}

.button.tertiary:hover {
  background: rgba(71, 46, 29, 0.06);
  border-color: var(--accent-soft);
  color: var(--text);
}
.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 440px;
  background: radial-gradient(circle at top left, rgba(71, 46, 29, 0.08), transparent 40%),
    radial-gradient(circle at bottom right, rgba(109, 77, 58, 0.12), transparent 35%),
    #fff;
  border-radius: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.product-peek {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 1.25rem;
  padding: 1rem 2rem;
  box-shadow: 0 10px 30px rgba(71, 46, 29, 0.08);
  text-align: center;
  max-width: 280px;
  transition: all 0.3s ease;
}

.product-peek span {
  display: block;
  font-size: 1.05rem;
  color: var(--text);
  font-weight: 600;
}

.features,
.products-section,
.checkout-section,
.contact-section {
  padding: 2rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 2rem;
}

.features article {
  background: var(--surface);
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.features article:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(71, 46, 29, 0.05);
  border-color: var(--accent-soft);
}

.features h2 {
  margin-top: 0;
  font-size: 1.25rem;
}

.section-header {
  max-width: 720px;
  margin: 0 auto 2rem;
  text-align: center;
}

.section-header h2 {
  margin-bottom: 0.75rem;
  font-size: 2rem;
}

.section-header p {
  margin: 0;
  color: var(--muted);
}

.products-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.product-search-wrap,
.product-sort-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.product-search-wrap {
  flex: 1 1 360px;
}

.product-sort-wrap {
  flex: 0 1 320px;
}

.product-search-label,
.product-sort-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.product-search-input,
.product-sort-select {
  width: 100%;
  min-height: 46px;
  padding: 0.75rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  box-shadow: 0 2px 4px rgba(71, 46, 29, 0.01);
  transition: all 0.3s ease;
}

.product-search-input::placeholder {
  color: var(--muted);
  opacity: 0.8;
}

.product-sort-select {
  cursor: pointer;
}

.product-search-input:focus,
.product-sort-select:focus {
  outline: none;
  border-color: var(--accent);
  background-color: var(--surface);
  box-shadow: 0 0 0 3px rgba(109, 77, 58, 0.1);
}

.products-grid,
.favorites-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.favorites-panel {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: 1.75rem;
}

.favorites-header {
  margin-bottom: 1.25rem;
}

.favorites-header h3 {
  margin: 0;
  font-size: 1.5rem;
}

.favorites-header p {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.favorites-empty {
  margin: 0;
  color: var(--muted);
}

.product-card {
  background: var(--surface);
  border-radius: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(71, 46, 29, 0.05);
  border-color: var(--accent-soft);
}

.product-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.product-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.product-actions .button {
  flex: 1;
  padding: 0.75rem 0.5rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

.product-card h3 {
  margin: 0;
  font-size: 1.25rem;
}

/* Reset link appearance inside product cards so titles use site typography */
.product-card a,
.product-card a:link,
.product-card a:visited,
.product-card a:hover,
.product-card a:active {
  color: inherit;
  text-decoration: none;
}

.product-card h3 a {
  color: inherit;
  text-decoration: none;
}

.product-card p {
  color: var(--muted);
  margin: 0;
}

.product-card .price {
  font-size: 1.2rem;
  font-weight: 700;
}

.product-card .tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.product-card .tag {
  background: rgba(71, 46, 29, 0.08);
  color: var(--text);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.85rem;
}

.page-heading {
  max-width: 720px;
  margin: 0 auto 1.75rem;
  text-align: center;
}

.page-heading h1,
.page-heading h2 {
  margin-bottom: 0.75rem;
}

.cart-page {
  display: grid;
  gap: 1.5rem;
}

.cart-item-card,
.cart-summary-card {
  background: var(--surface);
  border-radius: 1.75rem;
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

/* Breadcrumbs Styling */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.5rem 0 2rem;
  font-size: 0.9rem;
  color: var(--muted);
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.breadcrumbs .separator {
  color: rgba(109, 77, 58, 0.3);
}

.breadcrumbs .current {
  color: var(--text);
  font-weight: 500;
}

/* Detail Card & Layout */
.product-detail-section {
  margin-bottom: 3rem;
}

.product-detail-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
  background: var(--surface);
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  align-items: start;
}

@media (max-width: 768px) {
  .product-detail-card {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.5rem;
  }
}

/* Image Showcase */
.product-detail-image {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background: var(--surface-dark);
}

.product-detail-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Badges */
.product-badge-group {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 5;
}

.product-badge {
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  padding: 0.4rem 0.85rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(109, 77, 58, 0.08);
  backdrop-filter: blur(4px);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-badge.success {
  background: rgba(230, 246, 235, 0.95);
  color: #1e7e34;
  border-color: rgba(30, 126, 52, 0.2);
}

.product-badge.warning {
  background: rgba(255, 243, 205, 0.95);
  color: #856404;
  border-color: rgba(133, 100, 4, 0.2);
}

/* Info Elements */
.product-detail-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.product-detail-info .category-eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 700;
  margin: 0;
}

.product-detail-info h1 {
  font-size: 2.2rem;
  margin: 0;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
}

.product-detail-price {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text);
  margin: 0.25rem 0;
  display: flex;
  align-items: center;
}

.product-detail-description {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

.product-detail-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.25rem;
}

.product-detail-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Features Badges */
.product-features-list {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  padding: 0.5rem 1rem;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border);
  box-shadow: 0 2px 4px rgba(71, 46, 29, 0.01);
}

.feature-icon {
  font-size: 1.1rem;
}

.compare-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0;
  transition: color 0.3s ease;
}

.compare-btn:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Add To Cart Form */
.add-to-cart-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.quantity-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.quantity-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.quantity-wrapper {
  display: flex;
  align-items: center;
  width: fit-content;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface-dark);
}

.qty-btn {
  border: none;
  background: transparent;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  background: rgba(109, 77, 58, 0.08);
}

.quantity-wrapper input {
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  background: var(--surface);
  width: 3rem;
  height: 2.75rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  -moz-appearance: textfield;
  appearance: textfield;
}

.quantity-wrapper input::-webkit-outer-spin-button,
.quantity-wrapper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.product-detail-actions {
  display: flex;
  gap: 1rem;
}

.product-detail-actions .add-to-cart-btn {
  flex: 1;
  height: 3.25rem;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  cursor: pointer;
}

.product-detail-actions .cart-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.product-detail-actions .favorite-action {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 4px rgba(71, 46, 29, 0.02);
}

.product-detail-actions .favorite-action:hover {
  background: rgba(255, 230, 230, 0.5);
  color: #c62828;
  border-color: rgba(198, 40, 40, 0.2);
  transform: translateY(-1px);
}

.product-detail-actions .favorite-action.favorited {
  background: #ffe6e6;
  color: #c62828;
  border-color: rgba(198, 40, 40, 0.35);
}

/* Tabs Styling */
.product-tabs-container {
  margin-top: 4rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-left: none;
  border-right: none;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.tab-headers {
  display: flex;
  background: transparent;
  border-bottom: 1px solid var(--border);
  justify-content: flex-start;
  gap: 2.5rem;
}

.tab-header-btn {
  flex: none;
  border: none;
  background: transparent;
  padding: 1.25rem 0;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
  text-align: left;
}

.tab-header-btn:hover {
  color: var(--text);
  background: transparent;
}

.tab-header-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: transparent;
}

.tab-contents {
  padding: 2.5rem 0;
}

.tab-content {
  display: none;
  line-height: 1.7;
  color: var(--text);
  animation: fadeInTab 0.3s ease;
}

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

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

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table th,
.specs-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.specs-table th {
  font-weight: 600;
  color: var(--muted);
  width: 30%;
}

.specs-table td {
  color: var(--text);
}

.specs-table tr:last-child th,
.specs-table tr:last-child td {
  border-bottom: none;
}

/* Related Products */
.related-products-section {
  margin-top: 4rem;
  border-top: 1px solid var(--border);
  padding-top: 3rem;
}

.related-products-section h2 {
  font-size: 1.75rem;
  margin-bottom: 2rem;
  color: var(--text);
}

.related-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.related-product-card {
  background: var(--surface);
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(71, 46, 29, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(71, 46, 29, 0.08);
}

.related-image-wrapper {
  aspect-ratio: 1.2;
  overflow: hidden;
  background: var(--surface-dark);
}

.related-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.related-info {
  padding: 1.25rem;
}

.related-info h3 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.related-info h3 a {
  color: var(--text);
  text-decoration: none;
}

.related-info h3 a:hover {
  color: var(--accent);
}

.related-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.related-price {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.btn-sm {
  padding: 0.45rem 0.9rem !important;
  font-size: 0.8rem !important;
}

.cart-items-list {
  display: grid;
  gap: 1.5rem;
}

.cart-item-card {
  display: grid;
  gap: 1rem;
}

.cart-item-details h3 {
  margin: 0 0 0.5rem;
}

.cart-item-actions {
  display: grid;
  gap: 1rem;
}

.cart-item-actions form {
  display: grid;
  gap: 0.75rem;
}

.cart-summary-card {
  max-width: 420px;
}

.categories-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.category-chip {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 4px rgba(71, 46, 29, 0.01);
}

.category-chip:hover {
  background: var(--surface-dark);
  border-color: var(--accent-soft);
  transform: translateY(-1px);
}

.category-chip.active {
  background: var(--accent);
  color: #f7efdd;
  border-color: var(--accent);
  box-shadow: 0 4px 10px rgba(109, 77, 58, 0.15);
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 1.5rem;
}

.checkout-layout .card {
  padding: 1.75rem;
}

.checkout-form label,
.checkout-form .form-row label {
  display: block;
  margin-bottom: 1rem;
  color: var(--muted);
}

.checkout-form input,
.checkout-form textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--surface-dark);
  color: var(--text);
  margin-top: 0.5rem;
}

.checkout-form textarea {
  resize: vertical;
  min-height: 120px;
}

.checkout-form button {
  width: 100%;
}

.product-card button {
  justify-self: start;
}

.checkout-cards,
.contact-cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr 1fr;
}

.card {
  background: var(--surface);
  border-radius: 1.75rem;
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.checkout-form label,
.checkout-form .form-row label {
  display: block;
  margin-bottom: 1rem;
  color: var(--muted);
}

.checkout-form input {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--surface-dark);
  color: var(--text);
  margin-top: 0.5rem;
}

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

.summary-total,
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  font-size: 1.1rem;
}

.hint {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-card h3,
.checkout-form h3,
.order-summary h3 {
  margin-top: 0;
}

.contact-card .social-links {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.contact-card .social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border-radius: 1rem;
  background: var(--surface-dark);
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.contact-card .social-link:hover {
  transform: translateY(-2px);
  background: var(--surface);
  color: var(--primary);
}

.contact-card .social-icon {
  width: 1.2rem;
  height: 1.2rem;
}

.contact-card .social-link.instagram {
  color: #e4405f;
}

.contact-card .social-link.facebook {
  color: #1877f2;
}

.cart-panel {
  position: fixed;
  right: 0;
  top: 0;
  height: 100vh;
  width: min(420px, 100vw);
  background: var(--surface);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 30;
  display: grid;
  grid-template-rows: auto 1fr auto;
  box-shadow: -20px 0 60px rgba(71, 46, 29, 0.18);
  padding: 1.5rem;
}

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

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

.cart-items {
  margin-top: 1.5rem;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.cart-item {
  display: grid;
  gap: 0.5rem;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

.cart-item strong {
  font-size: 1.05rem;
}

.quantity-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.quantity-controls button {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.quantity-controls button:hover {
  background: var(--surface-dark);
  border-color: var(--accent);
}

.cart-footer {
  padding-top: 1rem;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(71, 46, 29, 0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 25;
}

.overlay.visible {
  opacity: 1;
  pointer-events: all;
}

.contact-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  opacity: 0;
  pointer-events: none;
  z-index: 35;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.contact-modal.open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: var(--surface);
  border-radius: 1.5rem;
  padding: 2.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(71, 46, 29, 0.12);
  max-width: 600px;
  width: calc(100vw - 2rem);
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text);
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.modal-close:hover {
  background: var(--surface-dark);
  border-radius: 0.5rem;
}

.contact-message {
  margin-top: 1.5rem;
}

.contact-message p {
  margin: 1rem 0;
  line-height: 1.7;
  color: var(--text);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.login-button {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(71, 46, 29, 0.02);
  display: inline-flex;
  align-items: center;
}

.login-button:hover {
  background: var(--surface-dark);
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(71, 46, 29, 0.05);
}

/* Auth Modal */
.auth-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  opacity: 0;
  pointer-events: none;
  z-index: 35;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.auth-modal.open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: all;
}

.auth-modal-content {
  max-width: 500px;
  max-height: 90vh;
  padding: 2.5rem 2rem;
}

.auth-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 2rem;
  gap: 0;
}

.auth-tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: 1rem 0;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  position: relative;
  bottom: -2px;
}

.auth-tab.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.auth-tab-content {
  display: none;
}

.auth-tab-content.active {
  display: block;
}

.auth-tab-content form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-tab-content input[type="text"],
.auth-tab-content input[type="email"],
.auth-tab-content input[type="tel"],
.auth-tab-content input[type="password"] {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-size: 0.95rem;
}

.auth-tab-content input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(109, 77, 58, 0.1);
}

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

.date-fields {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.date-select {
  padding: 0.75rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checkbox-group label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.9rem;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 0.3rem;
  cursor: pointer;
}

.checkbox-group a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.checkbox-group a:hover {
  text-decoration: underline;
}

.info-text {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

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

.info-text a:hover {
  text-decoration: underline;
}

.social-divider {
  text-align: center;
  margin: 1.5rem 0;
  color: var(--muted);
  font-size: 0.9rem;
  position: relative;
}

.social-divider::before,
.social-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: calc(50% - 1.5rem);
  height: 1px;
  background: var(--border);
}

.social-divider::before {
  left: 0;
}

.social-divider::after {
  right: 0;
}

.social-login {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.social-btn {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--surface);
  cursor: pointer;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.social-btn:hover {
  background: var(--surface-dark);
  border-color: var(--accent);
}

.social-btn.facebook {
  color: #1877f2;
  border-color: #1877f2;
}

.social-btn.facebook:hover {
  background: rgba(24, 119, 242, 0.1);
}

.social-btn.google {
  color: #ea4335;
  border-color: #ea4335;
}

.social-btn.google:hover {
  background: rgba(234, 67, 53, 0.1);
}

@media (max-width: 900px) {
  .features,
  .checkout-cards,
  .contact-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    align-items: start;
  }

  .hero {
    padding: 2rem 1.25rem;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .products-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .product-search-wrap,
  .product-sort-wrap {
    flex: 1 1 auto;
  }

  .product-card {
    padding: 1.25rem;
  }

  .site-footer-inner {
    justify-content: center;
    text-align: center;
  }
}

/* Product Image Styles */
.product-image-wrapper {
  width: 100%;
  height: 240px;
  overflow: hidden;
  border-radius: 1.25rem;
  margin-bottom: 1rem;
  background: var(--surface-dark);
  border: 1px solid var(--border);
  position: relative;
}

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

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

/* Empty Cart Styling */
.empty-cart-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  text-align: center;
  height: 100%;
}

.empty-cart-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  opacity: 0.8;
  animation: floatIcon 3s ease-in-out infinite;
}

.empty-cart-text {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0 0 1.5rem 0;
  font-weight: 500;
}

.empty-cart-action-btn {
  width: 100%;
  max-width: 200px;
  font-size: 0.9rem !important;
  padding: 0.65rem 1.25rem !important;
}

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

/* Global Form Input Focus Glows and Transitions */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
.checkout-form textarea,
.checkout-form input,
.auth-tab-content input,
.product-search-input,
.product-sort-select {
  transition: border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
.checkout-form textarea:focus,
.checkout-form input:focus,
.auth-tab-content input:focus,
.product-search-input:focus,
.product-sort-select:focus {
  outline: none !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 4px rgba(109, 77, 58, 0.18) !important;
  background-color: var(--surface) !important;
}

