@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Playfair+Display:wght@400;700&display=swap');

:root {
  --primary: #2d2a26;
  --accent: #c5a059;
  --bg-light: #f9f8f6;
  --text-dark: #1a1a1a;
  --text-muted: #666;
  --white: #ffffff;
  --header-bg: #ffffff;
  --section-padding: 8rem 2rem;
  --container-width: 1200px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
.serif {
  font-family: 'Playfair+Display', serif;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
}

.section {
  padding: var(--section-padding);
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 0.8rem 0;
  background: var(--header-bg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  /* Prevent wrapping into multiple rows */
}

.logo img {
  height: 50px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.search-icon {
  color: var(--text-dark);
  opacity: 0.7;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.search-icon:hover {
  opacity: 1;
  color: var(--accent);
  transform: scale(1.1);
}

.nav-links li a {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  opacity: 0.8;
}

.nav-links li a:hover,
.nav-links li a.active {
  opacity: 1;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
  width: 100%;
}

.nav-cta {
  padding: 0.6rem 1.5rem;
  font-size: 0.8rem;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text-dark);
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #ffffff;
  backdrop-filter: none;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: var(--transition);
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.mobile-links {
  text-align: center;
}

.mobile-menu-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 3rem;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
  z-index: 1060;
}

.mobile-menu-close:hover {
  color: var(--accent);
  transform: rotate(90deg);
}

.mobile-links li {
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.mobile-menu.active .mobile-links li {
  opacity: 1;
  transform: translateY(0);
}

.mobile-links li:nth-child(1) {
  transition-delay: 0.1s;
}

.mobile-links li:nth-child(2) {
  transition-delay: 0.2s;
}

.mobile-links li:nth-child(3) {
  transition-delay: 0.3s;
}

.mobile-links li:nth-child(4) {
  transition-delay: 0.4s;
}

.mobile-links li:nth-child(5) {
  transition-delay: 0.5s;
}

.mobile-links li a {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1.2rem 2.5rem;
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid var(--primary);
  cursor: pointer;
  transition: var(--transition);
}

.btn:hover {
  background: transparent;
  color: var(--primary);
}

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
}

/* Page Header */
.page-header {
  background: var(--primary);
  color: var(--white);
  padding: 12rem 2rem 6rem;
  text-align: center;
}

.page-header h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.page-header p {
  opacity: 0.7;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Catalog / Collections */
.catalog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  margin-top: 4rem;
}

.filters {
  position: sticky;
  top: 100px;
  height: fit-content;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

.filters::-webkit-scrollbar {
  width: 4px;
}

.filters::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 10px;
  opacity: 0.3;
}

.filters::-webkit-scrollbar-track {
  background: transparent;
}

.filter-group {
  margin-bottom: 2.5rem;
}

.filter-group h3 {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.filter-group input[type="text"] {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  background: #fff;
  outline: none;
  font-family: inherit;
  font-size: 0.9rem;
}

.filter-group label {
  display: block;
  margin-bottom: 0.8rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.filter-group input[type="checkbox"] {
  margin-right: 10px;
  accent-color: var(--accent);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.product-card {
  background: #fff;
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-image {
  height: 400px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-details {
  padding: 2rem;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.product-category {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 1px;
}

.product-price {
  font-weight: 600;
  font-size: 1.1rem;
}

.product-name {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Showroom / Map */
.map-container {
  height: 500px;
  width: 100%;
  margin-top: 3rem;
  background: #eee;
}

.showroom-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  text-align: center;
  margin-top: 4rem;
}

/* Product Detail Page */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.detail-info h2 {
  font-size: 4rem;
  margin-bottom: 2rem;
}

.detail-price {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 2rem;
  font-weight: 300;
}

.detail-specs {
  margin: 3rem 0;
  padding-top: 2rem;
  border-top: 1px solid #ddd;
}

.detail-specs h4 {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate {
  animation: fadeInUp 1s forwards;
}

/* Carousel Styles */
.carousel-viewport {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 2.5rem;
  padding-bottom: 2rem;
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

.carousel-viewport::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari and Opera */
}

.carousel-viewport .collection-preview {
  flex: 0 0 380px;
  scroll-snap-align: start;
}

@media (max-width: 768px) {
  .carousel-viewport .collection-preview {
    flex: 0 0 calc(100% - 2rem);
  }
}

.carousel-nav {
  display: flex;
  gap: 1rem;
}

.carousel-btn {
  width: 45px;
  height: 45px;
  border: 1px solid var(--primary);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  border-radius: 50%;
  color: var(--primary);
}

.carousel-btn:hover {
  background: var(--primary);
  color: white;
}

.carousel-btn svg {
  width: 20px;
  height: 20px;
}

/* Responsive */
@media (max-width: 1024px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .filters {
    position: relative;
    top: 0;
    margin-bottom: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .detail-layout {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}

@media (max-width: 768px) {

  .nav-links,
  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .filters {
    grid-template-columns: 1fr;
  }

  .page-header h1 {
    font-size: 2.5rem;
  }

  .showroom-info {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* --- SEARCH OVERLAY (PREMIUM LIGHT GLASSMORPHISM) --- */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 254, 252, 0.98); /* Rich premium warm white base */
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 2rem 2rem 2rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-dark);
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.search-overlay .container {
  max-width: 800px !important;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.search-overlay .container > div:first-child {
  margin-bottom: 1rem !important;
}

.search-overlay-close {
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.7;
  transition: var(--transition);
  color: var(--text-dark);
  background: rgba(0, 0, 0, 0.04);
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.search-overlay-close:hover {
  opacity: 1;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.12);
  transform: rotate(90deg) scale(1.05);
  border-color: var(--accent);
}

.search-input-group {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-bottom: 1.5rem;
}

.overlay-search-icon {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.6;
  color: var(--accent);
  pointer-events: none;
  transition: var(--transition);
  width: 20px;
  height: 20px;
}

#overlay-search-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
  font-size: 1.8rem;
  font-family: 'Playfair Display', serif;
  padding: 0.8rem 0 0.8rem 2.8rem;
  outline: none;
  color: var(--text-dark);
  transition: all 0.3s ease;
}

#overlay-search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 4px 30px rgba(197, 160, 89, 0.08);
}

#overlay-search-input:focus + .overlay-search-icon {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

#overlay-search-input::placeholder {
  color: rgba(0, 0, 0, 0.3);
}

.trending-searches {
  margin-top: 1.5rem;
  width: 100%;
  max-width: 100%;
}

.trending-searches p {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 0.8rem;
  font-weight: 700;
}

.trending-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.trending-tag {
  padding: 0.4rem 1rem;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 30px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-dark);
  font-weight: 500;
}

.trending-tag:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(197, 160, 89, 0.25);
}

.overlay-results {
  width: 100%;
  max-width: 100%;
  margin-top: 2rem;
  overflow-y: auto;
  max-height: calc(100vh - 280px);
  padding: 0.5rem 0;
}

.overlay-results::-webkit-scrollbar {
  width: 6px;
}

.overlay-results::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 10px;
}

.overlay-results::-webkit-scrollbar-track {
  background: transparent;
}

.overlay-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.2rem;
  margin-top: 1rem;
  width: 100%;
  text-align: left;
}

.overlay-results .product-card {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.overlay-results .product-card:hover {
  background: white;
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(197, 160, 89, 0.15);
}

.overlay-results .product-image {
  height: 140px;
  overflow: hidden;
}

.overlay-results .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.overlay-results .product-card:hover .product-image img {
  transform: scale(1.05);
}

.overlay-results .product-details {
  background: transparent;
  padding: 0.8rem;
}

.overlay-results .product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.3rem;
}

.overlay-results .product-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.5px;
}

.overlay-results .product-price {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-dark);
}

.overlay-results .product-name {
  color: var(--text-dark);
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.6em;
}

.overlay-results .product-card:hover .product-name {
  color: var(--accent);
}

/* --- SEARCH SUGGESTIONS --- */
.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: white;
  border: 1px solid #eee;
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  max-height: 300px;
  overflow-y: auto;
  display: none;
}

.search-suggestions.active {
  display: block;
}

.suggestion-item {
  padding: 1rem 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid #f9f9f9;
  color: var(--text-dark);
  text-align: left;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background: var(--bg-light);
  color: var(--accent);
}

.suggestion-category-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  background: #f0f0f0;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: auto;
  color: var(--text-muted);
}

/* --- PRODUCT INSTALLMENTS --- */
.installment-info-box {
  background: #fdfbf7;
  border: 1px solid #eee;
  padding: 2.5rem;
  border-radius: 8px;
  margin-top: 3rem;
}

.installment-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.plan-card-mini {
  background: white;
  padding: 1.5rem;
  border: 1px solid #f0f0f0;
  border-radius: 5px;
  transition: var(--transition);
}

.plan-card-mini:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.plan-card-mini h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.plan-card-mini p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.plan-stats {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #f9f9f9;
  padding-top: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent);
}

/* Option Pills (Size/Color Selection) */
.option-pill {
  padding: 0.6rem 1.2rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: white;
  border-radius: 5px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-dark);
}

.option-pill:hover {
  border-color: var(--accent);
  background: var(--bg-light);
}

.option-pill.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* --- PROFESSIONAL CART --- */
.cart-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: rgba(45, 42, 38, 0.95);
  backdrop-filter: blur(15px);
  z-index: 2000;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.cart-drawer {
  width: 100%;
  max-width: 450px;
  background: var(--bg-light);
  height: 100%;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

.cart-overlay.active .cart-drawer {
  transform: translateX(0);
}

.cart-header {
  padding: 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h2 {
  font-size: 1.5rem;
  margin: 0;
}

.cart-close {
  cursor: pointer;
  font-size: 1.5rem;
  opacity: 0.5;
  transition: var(--transition);
}

.cart-close:hover {
  opacity: 1;
  transform: rotate(90deg);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
}

.cart-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  animation: fadeInUp 0.5s ease forwards;
}

.cart-item img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  background: #eee;
}

.cart-item-info {
  flex: 1;
}

.cart-item-info h4 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
  color: var(--primary);
}

.cart-item-price {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

.cart-item-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
}

.qty-btn {
  background: none;
  border: none;
  padding: 0.3rem 0.8rem;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
}

.qty-btn:hover {
  background: #f5f5f5;
  color: var(--accent);
}

.qty-val {
  min-width: 30px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
}

.cart-remove {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ff4d4d;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 700;
  opacity: 0.7;
}

.cart-remove:hover {
  opacity: 1;
}

.cart-footer {
  padding: 2.5rem 2rem;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.cart-total span:first-child {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
}

.cart-total span:last-child {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
}

.checkout-btn {
  width: 100%;
  padding: 1.2rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: var(--transition);
}

.checkout-btn:hover {
  background: var(--accent);
  box-shadow: 0 10px 20px rgba(197, 160, 89, 0.2);
}

.empty-cart-msg {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.empty-cart-msg svg {
  margin-bottom: 1.5rem;
  opacity: 0.2;
}

/* --- CATEGORY GALLERY --- */
.category-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-top: 2rem;
}

.category-item {
  position: relative;
  overflow: hidden;
  height: 220px;
  cursor: pointer;
}

.category-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.category-item:hover img {
  transform: scale(1.1);
}

.category-label {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.3s ease;
}

.category-item:hover .category-label {
  background: var(--accent);
}

/* Specific heights to mimic the image's irregular look */
.category-item.tall {
  grid-row: span 2;
  height: 448px;
}

@media (max-width: 768px) {
  .category-gallery {
    grid-template-columns: 1fr;
  }
  .category-item.tall {
    grid-row: span 1;
    height: 300px;
  }
}
/* --- CHECKOUT MODAL & FORMS --- */
.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-group input, 
.form-group textarea, 
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #eee;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border-color 0.3s;
  background: #fdfdfd;
}

.form-group input[type="radio"],
.form-group input[type="checkbox"] {
  width: auto;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
}

.form-group input:focus, 
.form-group textarea:focus {
  border-color: var(--accent);
  outline: none;
  background: #fff;
}

#checkout-items-preview::-webkit-scrollbar {
  width: 6px;
}
#checkout-items-preview::-webkit-scrollbar-thumb {
  background: #eee;
  border-radius: 10px;
}
#checkout-items-preview::-webkit-scrollbar-track {
  background: transparent;
}

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

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(5px);
}

.modal-content {
  background: white;
  width: 95%;
  max-width: 600px;
  padding: 2.5rem;
  border-radius: 20px;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- CATEGORY GALLERY --- */
.category-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}

.category-item {
  position: relative;
  height: 250px;
  overflow: hidden;
  border-radius: 4px;
  display: block;
}

.category-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-item:hover img {
  transform: scale(1.1);
}

.category-label {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: white;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.category-item:hover .category-label {
  padding-bottom: 2rem;
  color: var(--accent);
}

@media (max-width: 1024px) {
  :root {
    --section-padding: 4rem 1.2rem;
  }

  /* General Layout Overrides for Inline Styles */
  .container, [style*="display: flex"], [style*="display: grid"] {
    max-width: 100% !important;
  }

  div[style*="grid-template-columns: 1fr 1fr"],
  div[style*="grid-template-columns: repeat(3, 1fr)"],
  div[style*="grid-template-columns: repeat(2, 1fr)"],
  div[style*="display: grid; grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  div[style*="display: flex; align-items: center; gap: 4rem"] {
    flex-direction: column !important;
    gap: 2rem !important;
    text-align: center;
  }

  /* Header & Branding */
  header nav.container {
    padding: 0 1rem !important;
    gap: 0.5rem !important;
  }

  .logo img {
    height: 32px !important;
  }

  .logo span.serif {
    font-size: 1rem !important;
  }

  .logo span:not(.serif) {
    font-size: 0.55rem !important;
    letter-spacing: 1px !important;
  }

  .nav-links,
  .nav-cta {
    display: none !important;
  }

  .hamburger {
    display: flex !important;
  }

  /* Hero Section */
  .hero {
    min-height: auto !important;
    padding: 8rem 1rem 4rem !important;
  }

  .hero .container {
    flex-direction: column-reverse !important;
    gap: 3rem !important;
    text-align: center;
  }

  .hero h1 {
    font-size: 2.5rem !important;
    margin-bottom: 1.5rem !important;
  }

  .hero p {
    font-size: 1rem !important;
    margin-bottom: 2rem !important;
    max-width: 100% !important;
  }

  .hero .animate div {
    justify-content: center !important;
    flex-wrap: wrap;
  }

  /* Quick Search Widget */
  section[style*="background: var(--primary)"] {
    padding: 3rem 1.2rem !important;
  }

  section[style*="background: var(--primary)"] .container {
    flex-direction: column !important;
    text-align: center !important;
    gap: 2rem !important;
  }

  section[style*="background: var(--primary)"] form {
    width: 100% !important;
    flex-direction: column;
  }

  section[style*="background: var(--primary)"] form .btn {
    width: 100%;
  }

  /* Catalog / Collections */
  .page-header {
    padding: 10rem 1.2rem 4rem !important;
  }

  .page-header h1 {
    font-size: 2.2rem !important;
  }

  .catalog-layout {
    gap: 2rem !important;
  }

  .product-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .product-details {
    padding: 1.5rem !important;
  }

  .product-name {
    font-size: 1.2rem !important;
  }

  /* Product Detail Page */
  main[style*="padding-top: 10rem"] {
    padding-top: 7rem !important;
  }

  .detail-layout {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }

  .detail-info h2 {
    font-size: 2rem !important;
    margin-bottom: 1rem !important;
    text-align: center;
  }

  .detail-price {
    font-size: 1.6rem !important;
    text-align: center;
    margin-bottom: 1.5rem !important;
  }

  .detail-specs {
    margin: 2rem 0 !important;
    padding-top: 1.5rem !important;
  }

  /* Categories & Carousel */
  .category-gallery {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }

  .category-item {
    height: 250px !important;
  }

  .category-item.tall {
    height: 300px !important;
  }

  .carousel-viewport .collection-preview {
    flex: 0 0 85% !important;
  }

  .section-header {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 1.5rem;
  }

  .section-header h2 {
    font-size: 2.2rem !important;
  }

  /* Installment Steps */
  #installments h2 {
    font-size: 2rem !important;
  }

  #installments .animate {
    text-align: center;
  }

  /* Footer */
  footer {
    padding: 4rem 1.2rem 2rem !important;
  }

  footer .container > div:first-child {
    grid-template-columns: 1fr !important;
    text-align: center !important;
    gap: 3rem !important;
  }

  .footer-contact p {
    justify-content: center !important;
  }

  footer div[style*="display: flex; justify-content: space-between"] {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 2rem !important;
  }

  .footer-socials {
    justify-content: center !important;
    margin-top: 1rem !important;
  }

  /* Collection Mobile Filters */
  #mobile-filter-toggle {
    display: flex !important;
  }

  .catalog-filters {
    display: none;
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
  }

  .catalog-filters.active {
    display: block !important;
    animation: fadeInDown 0.4s ease;
  }

  /* Navigation Bar Fix */
  nav .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    gap: 1rem !important;
  }

  .nav-links {
    gap: 1rem !important;
  }

  .nav-links a {
    font-size: 0.8rem !important;
  }

  /* Modals */
  .modal-content {
    padding: 1.5rem !important;
    width: 95% !important;
    border-radius: 15px !important;
  }

  #checkout-form div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  .cart-drawer {
    max-width: 100% !important;
  }
}

