@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,700&display=swap');

:root {
  --primary: #5c1321;         /* Royal Maroon */
  --primary-light: #7c2032;   /* Soft Maroon */
  --primary-rgb: 92, 19, 33;
  --accent: #d4af37;          /* Metallic Gold */
  --accent-hover: #c49d27;
  --accent-rgb: 212, 175, 55;
  --bg-cream: #fbf9f4;        /* Warm Cream background */
  --bg-card: #ffffff;         /* Pure white for card elevation */
  --text-dark: #1f1a17;       /* Soft dark charcoal */
  --text-muted: #6b635c;      /* Muted brown-grey */
  --border-light: #eae3d5;    /* Soft beige borders */
  --white: #ffffff;
  --black: #000000;
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  
  --shadow-sm: 0 4px 12px rgba(92, 19, 33, 0.03);
  --shadow-md: 0 10px 30px rgba(92, 19, 33, 0.06);
  --shadow-lg: 0 20px 50px rgba(92, 19, 33, 0.12);
  
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-cream);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-cream);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Common Components */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--primary);
}

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

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

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  padding: 12px 28px;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  border: 1px solid var(--primary);
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: var(--accent);
  transition: var(--transition);
  z-index: -1;
}

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

.btn-primary:hover::after {
  height: 100%;
}

.btn-secondary {
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 12px 28px;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

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

.section-padding {
  padding: 100px 5%;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 60px 20px;
  }
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 2px;
  background-color: var(--accent);
  margin: 15px auto 0 auto;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(251, 249, 244, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

header.scrolled {
  height: 70px;
  background-color: var(--bg-cream);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1400px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--primary);
  display: flex;
  align-items: center;
  line-height: 1.1;
}

.logo-text span {
  color: var(--accent);
  font-size: 2.2rem;
  line-height: 0;
  margin-left: 2px;
}

.logo-subtext {
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent);
  margin-top: 4px;
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dark);
  position: relative;
  padding: 5px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--accent);
  transition: var(--transition);
}

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

.nav-links a:hover::after {
  width: 100%;
}

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

.nav-btn {
  font-size: 1.25rem;
  color: var(--primary);
  position: relative;
  display: flex;
  align-items: center;
}

.nav-btn:hover {
  color: var(--accent);
  transform: scale(1.05);
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--accent);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--primary);
}

@media (max-width: 992px) {
  .nav-links {
    display: none; /* Dynamic controls via JS toggled class */
  }
  
  .mobile-menu-toggle {
    display: block;
  }
}

/* Mobile Dropdown Nav */
.mobile-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  background-color: var(--bg-cream);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  padding: 20px;
  display: none;
  flex-direction: column;
  gap: 15px;
  z-index: 99;
}

.mobile-nav.active {
  display: flex;
}

.mobile-nav a {
  text-transform: uppercase;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 600px;
  background-color: #1a060a;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  position: relative;
  color: var(--white);
  padding: 0 5%;
  overflow: hidden;
}

/* Hero Overlay */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(26, 6, 10, 0.8) 40%, rgba(26, 6, 10, 0.2) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-subtitle {
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: block;
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 25px;
}

.hero h1 span {
  font-style: italic;
  color: var(--accent);
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.8rem;
  }
  .hero-buttons {
    flex-direction: column;
  }
}

/* About / Heritage Section */
.about {
  background-color: var(--bg-cream);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
}

@media (max-width: 992px) {
  .about {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.about-images {
  position: relative;
  display: flex;
  justify-content: center;
}

.about-img-wrapper {
  position: relative;
  width: 80%;
  max-width: 400px;
  border: 1px solid var(--accent);
  padding: 12px;
  background-color: var(--white);
  box-shadow: var(--shadow-md);
  transform: rotate(-2deg);
  transition: var(--transition);
}

.about-img-wrapper img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.about-img-wrapper::after {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: 20px;
  bottom: 20px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  z-index: -1;
  pointer-events: none;
}

.about-img-wrapper:hover {
  transform: rotate(0deg) scale(1.02);
}

.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 25px;
}

.about-content .tagline {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 20px;
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.craft-details {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.craft-item {
  display: flex;
  gap: 12px;
}

.craft-icon {
  color: var(--accent);
  font-size: 1.5rem;
  margin-top: 3px;
}

.craft-item h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.craft-item p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Catalog Section */
.catalog-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
}

@media (max-width: 992px) {
  .catalog-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* Sidebar Filters */
.filters-sidebar {
  background-color: var(--white);
  padding: 30px;
  border: 1px solid var(--border-light);
  height: fit-content;
  position: sticky;
  top: 100px;
  box-shadow: var(--shadow-sm);
}

.filter-group {
  margin-bottom: 30px;
}

.filter-group h3 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.search-input-wrapper {
  position: relative;
}

.search-input-wrapper input {
  width: 100%;
  padding: 10px 35px 10px 15px;
  border: 1px solid var(--border-light);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  background-color: var(--bg-cream);
}

.search-input-wrapper input:focus {
  outline: none;
  border-color: var(--accent);
}

.search-input-wrapper i {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
}

.filter-checkbox input {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}

.price-range {
  margin-top: 15px;
}

.price-range input {
  width: 100%;
  accent-color: var(--primary);
}

.price-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 10px;
}

/* Sorting bar */
.catalog-main {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.catalog-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--white);
  padding: 15px 30px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.results-count {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.sort-select {
  padding: 8px 12px;
  border: 1px solid var(--border-light);
  background-color: var(--bg-cream);
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

.sort-select:focus {
  outline: none;
  border-color: var(--accent);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.product-card {
  background-color: var(--white);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.product-image-wrapper {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
  background-color: #f0ebe2;
}

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

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

.product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--primary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 4px 10px;
  letter-spacing: 0.05em;
}

.product-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(92, 19, 33, 0.4);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.product-card:hover .product-card-overlay {
  opacity: 1;
}

.btn-quick-view {
  background-color: var(--white);
  color: var(--primary);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  transform: translateY(20px);
  transition: var(--transition);
}

.product-card:hover .btn-quick-view {
  transform: translateY(0);
}

.btn-quick-view:hover {
  background-color: var(--accent);
  color: var(--primary);
}

.product-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.product-title {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--primary);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-price {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.product-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.btn-add-cart-card {
  width: 100%;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

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

/* Modal Styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(26, 6, 10, 0.7);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background-color: var(--bg-cream);
  border: 1px solid var(--accent);
  width: 100%;
  max-width: 900px;
  height: auto;
  max-height: 90vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

@media (max-width: 768px) {
  .modal-content {
    grid-template-columns: 1fr;
    max-height: 95vh;
    overflow-y: auto;
  }
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.5rem;
  color: var(--primary);
  width: 35px;
  height: 35px;
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: var(--shadow-sm);
}

.modal-close:hover {
  background-color: var(--accent);
  color: var(--primary);
  transform: rotate(90deg);
}

.modal-image-pane {
  position: relative;
  height: 550px;
  overflow: hidden;
  background-color: #f0ebe2;
}

@media (max-width: 768px) {
  .modal-image-pane {
    height: 350px;
  }
}

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

.modal-image-pane:hover img {
  transform: scale(1.15);
  cursor: zoom-in;
}

.modal-details-pane {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
}

@media (max-width: 768px) {
  .modal-details-pane {
    padding: 25px;
  }
}

.modal-details-pane .product-category {
  font-size: 0.85rem;
}

.modal-details-pane h2 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 15px;
}

.modal-price {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 20px;
  display: block;
}

.modal-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 25px;
}

.modal-meta {
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 20px 0;
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.meta-row {
  display: flex;
  font-size: 0.9rem;
}

.meta-label {
  width: 100px;
  font-weight: 500;
  color: var(--primary);
}

.meta-value {
  color: var(--text-muted);
}

.size-selector {
  margin-bottom: 25px;
}

.size-selector h4 {
  font-size: 0.95rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.size-options {
  display: flex;
  gap: 10px;
}

.size-btn {
  border: 1px solid var(--border-light);
  background-color: var(--white);
  color: var(--text-dark);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
}

.size-btn.active {
  border-color: var(--primary);
  background-color: var(--primary);
  color: var(--white);
}

.size-btn:hover:not(.active) {
  border-color: var(--accent);
}

/* Cart Drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -450px;
  width: 450px;
  max-width: 100%;
  height: 100%;
  background-color: var(--bg-cream);
  box-shadow: var(--shadow-lg);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--accent);
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

.cart-header h2 {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-close-btn {
  font-size: 1.5rem;
  color: var(--primary);
}

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

.cart-items-wrapper {
  flex-grow: 1;
  padding: 30px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.empty-cart-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: var(--text-muted);
}

.empty-cart-view i {
  font-size: 3rem;
  color: var(--border-light);
  margin-bottom: 15px;
}

.cart-item {
  display: flex;
  gap: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 20px;
}

.cart-item-image {
  width: 80px;
  height: 100px;
  background-color: #f0ebe2;
  overflow: hidden;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.cart-item-title {
  font-size: 1rem;
  font-family: var(--font-serif);
  color: var(--primary);
  margin-bottom: 5px;
}

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

.cart-item-price {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.cart-item-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.quantity-picker {
  display: flex;
  border: 1px solid var(--border-light);
  background-color: var(--white);
}

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

.qty-btn:hover {
  background-color: var(--bg-cream);
  color: var(--primary);
}

.qty-val {
  width: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 500;
}

.btn-remove-item {
  color: #c94a4a;
  font-size: 0.9rem;
}

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

/* Cart Footer / Inquiry form */
.cart-footer {
  border-top: 1px solid var(--border-light);
  padding: 30px;
  background-color: var(--white);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--primary);
}

.inquiry-form-wrapper h3 {
  font-size: 1.05rem;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.inquiry-input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-light);
  background-color: var(--bg-cream);
  font-family: var(--font-sans);
  font-size: 0.85rem;
}

.inquiry-input:focus {
  outline: none;
  border-color: var(--accent);
}

.btn-checkout {
  width: 100%;
  margin-top: 10px;
  justify-content: center;
}

/* Toast notifications */
.toast-container {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background-color: var(--primary);
  color: var(--white);
  border-left: 4px solid var(--accent);
  padding: 15px 25px;
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(20px);
  animation: slideInUp 0.4s ease forwards;
}

/* Footer Section */
footer {
  background-color: #1a060a;
  color: rgba(255, 255, 255, 0.7);
  border-top: 2px solid var(--accent);
}

.footer-top {
  padding: 80px 5% 50px 5%;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
}

@media (max-width: 992px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

.footer-logo-wrapper {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo-wrapper h3 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 0;
  line-height: 1.1;
}

.footer-logo-wrapper h3 span {
  color: var(--accent);
}

.footer-logo-wrapper .logo-subtext {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent);
  margin-top: 5px;
}

.footer-brand p {
  font-size: 0.95rem;
  margin-bottom: 25px;
  line-height: 1.7;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
}

.social-icon:hover {
  background-color: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
  transform: translateY(-3px);
}

.footer-column h4 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
}

.footer-column h4::after {
  content: '';
  display: block;
  width: 30px;
  height: 1.5px;
  background-color: var(--accent);
  margin-top: 10px;
}

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

.footer-column ul a {
  font-size: 0.95rem;
}

.footer-column ul a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.footer-column p {
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.newsletter-form {
  display: flex;
  margin-top: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 8px;
}

.newsletter-form input {
  background: none;
  border: none;
  color: var(--white);
  padding: 5px;
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.newsletter-form input:focus {
  outline: none;
}

.newsletter-form button {
  color: var(--accent);
  font-size: 1.1rem;
}

.newsletter-form button:hover {
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px 5%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes fadeOut {
  to {
    opacity: 0;
  }
}

/* WhatsApp Promo Section */
.whatsapp-promo {
  background-color: var(--primary);
  color: var(--white);
  padding: 60px 5%;
  text-align: center;
  border-bottom: 2px solid var(--accent);
  position: relative;
}

.whatsapp-promo-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.whatsapp-promo-icon {
  font-size: 3.5rem;
  color: var(--accent);
  margin-bottom: 10px;
}

.whatsapp-promo-title {
  color: var(--white);
  font-size: 2.4rem;
  font-family: var(--font-serif);
  letter-spacing: 0.02em;
}

.whatsapp-promo-desc {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 15px;
}

.whatsapp-promo-btn {
  background-color: var(--accent) !important;
  border-color: var(--accent) !important;
  color: var(--primary) !important;
  font-weight: 600 !important;
}

.whatsapp-promo-btn::after {
  background-color: var(--white) !important;
}

.whatsapp-promo-btn:hover {
  color: var(--accent) !important;
  border-color: var(--white) !important;
}

/* ==========================================================================
   Mobile Responsiveness and Layout Tuning
   ========================================================================== */

/* Hide mobile elements by default on desktop */
.btn-mobile-filter,
.mobile-filter-header {
  display: none;
}

/* Tablet and Smaller Desktop (under 992px) */
@media (max-width: 992px) {
  /* Catalog Bar & Grid Adjustments */
  .catalog-bar {
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
  }

  .results-count {
    margin-right: auto;
    font-size: 0.85rem;
  }

  /* Show mobile filter trigger button */
  .btn-mobile-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--primary);
    padding: 8px 16px;
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
    background-color: var(--white);
    transition: var(--transition);
  }

  .btn-mobile-filter:hover {
    background-color: var(--primary);
    color: var(--white);
  }

  /* Turn filters-sidebar into a slide-in mobile drawer */
  .filters-sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100vh;
    z-index: 1050;
    background-color: var(--bg-cream);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    padding: 25px;
    transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-right: 1px solid var(--accent);
  }

  .filters-sidebar.active {
    left: 0;
  }

  .mobile-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 15px;
  }

  .mobile-filter-header h3 {
    font-size: 1.3rem;
    color: var(--primary);
    font-family: var(--font-serif);
  }

  #close-filters-btn {
    font-size: 2rem;
    color: var(--primary);
    line-height: 1;
    cursor: pointer;
  }

  #close-filters-btn:hover {
    color: var(--accent);
  }

  /* Hero Section spacing */
  .hero-content h1 {
    font-size: 3.2rem;
  }
}

/* Mobile Viewports (under 600px) */
@media (max-width: 600px) {
  /* Change product grid to 2-columns (native retail layout) */
  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .product-card {
    border-radius: 0;
    box-shadow: none;
    border-color: rgba(92, 19, 33, 0.08);
  }

  .product-card:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--accent);
  }

  .product-image-wrapper {
    height: 200px !important;
  }

  .product-info {
    padding: 10px !important;
  }

  .product-title {
    font-size: 0.9rem !important;
    margin-bottom: 4px !important;
    font-weight: 500 !important;
  }

  .product-price {
    font-size: 0.95rem !important;
    margin-bottom: 8px !important;
    color: var(--primary) !important;
  }

  .btn-add-cart-card {
    font-size: 0.75rem !important;
    padding: 8px 5px !important;
    gap: 4px !important;
    border-color: var(--primary);
  }

  .product-category {
    font-size: 0.65rem !important;
    margin-bottom: 2px !important;
  }

  /* Disable hover effects that don't make sense on touch */
  .product-card-overlay {
    display: none !important;
  }

  /* Story section text size */
  .about-content h2 {
    font-size: 2rem;
  }

  .about-content p {
    font-size: 0.95rem;
  }

  /* Catalog Bar Mobile Tuning */
  .catalog-bar {
    padding: 10px 15px !important;
    gap: 10px !important;
  }
  
  .results-count {
    display: none !important;
  }
  
  .btn-mobile-filter {
    flex: 1;
    justify-content: center;
    font-size: 0.85rem !important;
    padding: 8px 10px !important;
  }
  
  .sort-wrapper {
    flex: 1;
  }
  
  .sort-select {
    width: 100%;
    font-size: 0.85rem !important;
    padding: 8px 10px !important;
  }
}

/* Small Mobile Screen Adjustments (under 480px) */
@media (max-width: 480px) {
  /* Full screen width cart drawer */
  .cart-drawer {
    width: 100% !important;
    right: -100% !important;
  }
  
  .cart-drawer.active {
    right: 0 !important;
  }

  .cart-items-wrapper {
    padding: 20px;
  }

  .cart-footer {
    padding: 20px;
  }

  /* Form spacing in cart footer */
  .inquiry-form {
    gap: 8px;
  }
  
  .inquiry-input {
    padding: 8px;
  }

  /* Navigation adjustments */
  .logo-text {
    font-size: 1.5rem;
  }

  /* Hero Section adjustments */
  .hero-content h1 {
    font-size: 2.4rem;
  }

  .hero-content p {
    font-size: 0.95rem;
    margin-bottom: 25px;
  }

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

/* Modal Responsiveness (under 768px) */
@media (max-width: 768px) {
  .modal-content {
    grid-template-columns: 1fr !important;
    max-height: 85vh !important;
    width: 92% !important;
    overflow-y: auto !important;
  }

  .modal-image-pane {
    height: 250px !important;
  }

  .modal-details-pane {
    padding: 20px !important;
  }

  .modal-details-pane h2 {
    font-size: 1.6rem !important;
  }

  .modal-price {
    font-size: 1.3rem !important;
    margin-bottom: 15px !important;
  }

  .modal-description {
    font-size: 0.9rem !important;
    margin-bottom: 15px !important;
  }

  .modal-meta {
    padding: 12px 0 !important;
    margin-bottom: 15px !important;
    gap: 8px !important;
  }
}

/* Drawer Backdrop Overlay (shared by filters and cart drawer) */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(26, 6, 10, 0.4);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 1040; /* Sits behind filter drawer (1050) and cart drawer (1100) */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  pointer-events: none;
}

.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Adjust mobile dropdown nav top position dynamically when header is scrolled */
header.scrolled ~ .mobile-nav {
  top: 70px;
}

