/* ==========================================================================
   DragonFly Accesorios - Design System & Custom Stylesheet (Rustic Modern)
   ========================================================================== */

/* Variables & Design Tokens */
:root {
  /* Color Palette */
  --bg-primary: #FAF8F5;       /* Warm linen cream */
  --bg-secondary: #F4EFEB;     /* Sand / warm stone */
  --text-dark: #2C1B11;        /* Ebony wood / dark brown */
  --text-muted: #6B5E55;       /* Muted brown/gray */
  --wood-medium: #5C3E2D;      /* Oak wood */
  --wood-light: #8C6A53;       /* Light teak */
  --accent-gold: #C5A880;      /* Warm bronze/gold (Logo matched) */
  --accent-gold-hover: #B59770;
  --accent-gold-light: #F7F2EB;
  --accent-green: #5E705A;     /* Earthy olive green */
  --accent-green-hover: #4C5D49;
  
  /* System Colors */
  --white: #FFFFFF;
  --black: #000000;
  --error: #BA3C2A;
  --success: #4E6548;
  
  /* Fonts */
  --font-title: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Montserrat', 'Inter', sans-serif;
  
  /* Layout & Shadows */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --shadow-subtle: 0 4px 15px rgba(44, 27, 17, 0.04);
  --shadow-medium: 0 8px 30px rgba(44, 27, 17, 0.08);
  --shadow-dark: 0 12px 40px rgba(44, 27, 17, 0.15);
  
  /* Container width */
  --max-width: 1200px;
}

/* Base Reset & Styling */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  position: relative;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-dark);
  font-family: var(--font-body);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

input, select, textarea, button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
}

/* Custom Wood Grain Subtle Pattern Overlay Utility */
.wood-texture-overlay {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath d='M0 50 Q25 40 50 50 T100 50 M0 20 Q25 15 50 20 T100 20 M0 80 Q25 75 50 80 T100 80' fill='none' stroke='%232c1b11' stroke-width='0.5' stroke-opacity='0.04'/%3E%3C/svg%3E");
}

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

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.announcement-bar {
  background-color: var(--text-dark);
  color: var(--bg-primary);
  text-align: center;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 1px;
}

.main-header {
  background-color: rgba(250, 248, 245, 0.95);
  border-bottom: 1px solid rgba(229, 223, 213, 0.6);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  transition: var(--transition-normal);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 8px 24px;
  height: 80px;
}

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

.logo-img {
  width: 64px;
  height: 64px;
  transition: transform var(--transition-normal);
}

.brand-logo:hover .logo-img {
  transform: rotate(5deg) scale(1.05);
}

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

.brand-name {
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.1;
  color: var(--black);
}

.brand-tagline {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 500;
  color: var(--text-dark);
  letter-spacing: 0.5px;
}

.desktop-nav ul {
  display: flex;
  gap: 32px;
}

.desktop-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 8px 0;
  position: relative;
}

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

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--accent-gold);
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Search Box Container */
.search-container {
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid rgba(229, 223, 213, 0.8);
  border-radius: 30px;
  padding: 4px 6px 4px 16px;
  width: 240px;
  transition: var(--transition-normal);
}

.search-container:focus-within {
  width: 280px;
  border-color: var(--accent-gold);
  background: var(--white);
  box-shadow: var(--shadow-subtle);
}

.search-container input {
  border: none;
  background: transparent;
  width: 100%;
  outline: none;
  font-size: 0.85rem;
  color: var(--text-dark);
}

.search-container input::placeholder {
  color: var(--text-muted);
}

.search-container button {
  color: var(--text-muted);
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.search-container button:hover {
  color: var(--accent-gold);
  background: rgba(229, 223, 213, 0.3);
}

/* Cart Toggle Button */
.cart-toggle-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid rgba(229, 223, 213, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-normal);
}

.cart-toggle-btn:hover {
  border-color: var(--accent-gold);
  background: var(--bg-secondary);
  transform: translateY(-2px);
}

.cart-toggle-btn i {
  width: 20px;
  height: 20px;
  color: var(--text-dark);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--accent-gold);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(197, 168, 128, 0.4);
  animation: popScale 0.3s ease;
}

.mobile-nav-toggle {
  display: none;
  color: var(--text-dark);
  font-size: 1.5rem;
  padding: 4px;
}

/* Mobile Drawer Menu styles */
.mobile-menu-drawer {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100vh;
  background: var(--bg-primary);
  z-index: 1001;
  box-shadow: var(--shadow-dark);
  padding: 24px;
  display: flex;
  flex-direction: column;
  visibility: hidden;
  pointer-events: none;
  transition: transform var(--transition-normal), visibility var(--transition-normal);
}

.mobile-menu-drawer.open {
  transform: translateX(280px);
  visibility: visible;
  pointer-events: auto;
}

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

.drawer-header h3 {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-style: italic;
}

.close-drawer-btn {
  color: var(--text-dark);
}

.mobile-nav-links ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav-links a {
  font-size: 1.1rem;
  font-weight: 500;
  display: block;
  padding: 8px 0;
}

.mobile-nav-links a:hover {
  color: var(--accent-gold);
  padding-left: 8px;
}

.drawer-footer {
  margin-top: auto;
  border-top: 1px solid var(--bg-secondary);
  padding-top: 24px;
}

.drawer-footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.instagram-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--accent-gold);
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(44, 27, 17, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  background-color: var(--text-dark);
  background-image: linear-gradient(to right, rgba(44, 27, 17, 0.85), rgba(44, 27, 17, 0.4)), 
                    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath d='M0 60 Q30 50 60 60 T120 60 M0 20 Q30 15 60 20 T120 20 M0 100 Q30 95 60 100 T120 100' fill='none' stroke='%23C5A880' stroke-width='0.6' stroke-opacity='0.15'/%3E%3C/svg%3E");
  color: var(--white);
  padding: 100px 24px;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 480px;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(92, 62, 45, 0.15); /* wood color tint overlay */
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-style: italic;
  color: var(--accent-gold);
  letter-spacing: 2px;
  display: block;
  margin-bottom: 12px;
}

.hero-title {
  font-family: var(--font-title);
  font-size: 3rem;
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-description {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(250, 248, 245, 0.85);
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: 0.5px;
}

/* Buttons style */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 1px;
  padding: 12px 28px;
  border-radius: 4px;
  transition: all var(--transition-normal);
  text-transform: uppercase;
  font-size: 0.85rem;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--accent-gold);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(197, 168, 128, 0.25);
}

.btn-primary:hover {
  background-color: var(--accent-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(197, 168, 128, 0.4);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--text-dark);
  border-color: var(--accent-gold);
}

.btn-secondary:hover {
  background-color: var(--accent-gold-light);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
  padding: 14px;
}

.btn-large {
  padding: 16px 36px;
  font-size: 0.95rem;
}

/* ==========================================================================
   Categories Section
   ========================================================================== */

.section-title-wrapper {
  text-align: center;
  margin-bottom: 40px;
  padding: 0 20px;
}

.section-title {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.title-divider {
  width: 60px;
  height: 3px;
  background-color: var(--accent-gold);
  margin: 16px auto 0;
  border-radius: 2px;
}

.categories-section {
  max-width: var(--max-width);
  margin: 80px auto;
  padding: 0 24px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.category-card {
  height: 280px;
  border-radius: var(--border-radius-md);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-subtle);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  transition: var(--transition-normal);
}

.category-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

/* Pre-designed wood or organic colors for cards if no image */
.category-card:nth-child(1) .category-bg { background-color: #5C3E2D; }
.category-card:nth-child(2) .category-bg { background-color: #7A5741; }
.category-card:nth-child(3) .category-bg { background-color: #8C6A53; }
.category-card:nth-child(4) .category-bg { background-color: #A38067; }

.category-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  border: 1px solid rgba(250, 248, 245, 0.2);
  margin: 12px;
  border-radius: calc(var(--border-radius-md) - 4px);
  pointer-events: none;
  transition: var(--transition-normal);
}

.category-info {
  position: relative;
  z-index: 1;
  color: var(--white);
}

.category-info h3 {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 4px;
}

.category-info span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-gold);
  font-weight: 600;
}

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

.category-card:hover .category-bg {
  transform: scale(1.08);
}

.category-card:hover::after {
  border-color: var(--accent-gold);
  margin: 8px;
}

/* ==========================================================================
   Catalog (Products Grid & Filters)
   ========================================================================== */

.catalog-section {
  max-width: var(--max-width);
  margin: 80px auto;
  padding: 0 24px;
}

.catalog-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  background: var(--bg-secondary);
  border: 1px solid rgba(229, 223, 213, 0.8);
  border-radius: var(--border-radius-md);
  padding: 16px 24px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-subtle);
}

.catalog-search {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1px solid rgba(229, 223, 213, 0.6);
  border-radius: 4px;
  padding: 8px 16px;
  min-width: 260px;
  gap: 10px;
}

.catalog-search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.9rem;
  width: 100%;
}

.catalog-search i {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.catalog-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tab-btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 18px;
  border-radius: 4px;
  border: 1px solid transparent;
  background: rgba(250, 248, 245, 0.6);
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  background: var(--white);
  color: var(--accent-gold);
}

.tab-btn.active {
  background: var(--text-dark);
  color: var(--white);
  box-shadow: var(--shadow-subtle);
}

/* Subcategory pill tabs */
.subcategory-tabs {
  animation: fadeIn 0.3s ease;
}

.subcategory-tab-btn {
  font-size: 0.72rem;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid rgba(197, 168, 128, 0.4);
  background: var(--white);
  color: var(--text-muted);
}

.subcategory-tab-btn:hover {
  border-color: var(--accent-gold);
  color: var(--wood-dark);
  background: var(--bg-secondary);
}

.subcategory-tab-btn.active {
  background: var(--wood-medium);
  color: var(--white);
  border-color: var(--wood-medium);
  box-shadow: var(--shadow-subtle);
}

.catalog-sort {
  display: flex;
  align-items: center;
  gap: 8px;
}

.catalog-sort label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.catalog-sort select {
  background: var(--white);
  border: 1px solid rgba(229, 223, 213, 0.6);
  padding: 8px 12px;
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  font-size: 0.85rem;
}

.catalog-sort select:focus {
  border-color: var(--accent-gold);
}

/* Product Card Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  min-height: 400px;
}

/* Product Card */
.product-card {
  background: var(--white);
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(229, 223, 213, 0.5);
  box-shadow: var(--shadow-subtle);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
}

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

.product-image-box {
  width: 100%;
  height: 280px;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-secondary);
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

/* Badges */
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--white);
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.badge-new {
  background-color: var(--accent-gold);
}

.badge-sale {
  background-color: var(--accent-green);
}

.badge-low-stock {
  background-color: var(--error);
}

/* Add to Cart quick button over image */
.quick-add-btn {
  position: absolute;
  bottom: -50px;
  left: 0;
  right: 0;
  background-color: rgba(44, 27, 17, 0.9);
  color: var(--white);
  text-align: center;
  padding: 12px;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: bottom var(--transition-normal);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.product-card:hover .quick-add-btn {
  bottom: 0;
}

.quick-add-btn:hover {
  background-color: var(--accent-gold);
}

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

.product-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 500;
}

.product-title {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.25;
  min-height: 52px; /* Height for ~2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

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

.price-old {
  font-size: 0.9rem;
  text-decoration: line-through;
  color: var(--text-muted);
}

/* Loading spinner */
.loading-spinner {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: var(--text-muted);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--bg-secondary);
  border-top-color: var(--accent-gold);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 0.8s linear infinite;
}

/* ==========================================================================
   Value Propositions Banner
   ========================================================================== */

.props-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid rgba(229, 223, 213, 0.6);
  border-bottom: 1px solid rgba(229, 223, 213, 0.6);
  padding: 60px 24px;
}

.props-container {
  display: flex;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 40px;
}

.prop-item {
  flex: 1;
  text-align: center;
}

.prop-icon {
  width: 60px;
  height: 60px;
  background-color: var(--white);
  border-radius: 50%;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-subtle);
  border: 1px solid rgba(229, 223, 213, 0.4);
}

.prop-icon i {
  width: 26px;
  height: 26px;
}

.prop-item h3 {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.prop-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 280px;
  margin: 0 auto;
}

/* ==========================================================================
   About Us Section
   ========================================================================== */

.about-section {
  max-width: var(--max-width);
  margin: 60px auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.about-image {
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.about-wood-panel {
  background-color: var(--text-dark);
  background-image: linear-gradient(135deg, rgba(44, 27, 17, 0.95), rgba(92, 62, 45, 0.9)),
                    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M0 40 Q20 30 40 40 T80 40' fill='none' stroke='%23C5A880' stroke-width='0.5' stroke-opacity='0.1'/%3E%3C/svg%3E");
  border-radius: var(--border-radius-lg);
  padding: 40px 24px;
  text-align: center;
  color: var(--white);
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--wood-medium);
  width: 100%;
  box-sizing: border-box;
}

.about-logo {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  background-color: var(--white);
  border-radius: 50%;
  padding: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  max-width: 100%;
  object-fit: contain;
}

.about-wood-panel h3 {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 8px;
  word-break: break-word;
}

.about-wood-panel p {
  font-size: 0.85rem;
  color: var(--accent-gold);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.about-content {
  padding: 10px 0;
  width: 100%;
  box-sizing: border-box;
}

.about-subtitle {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--accent-gold);
  display: block;
  margin-bottom: 8px;
}

.about-title {
  font-family: var(--font-title);
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--text-dark);
  word-break: break-word;
  overflow-wrap: break-word;
}

.about-content p {
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 0.95rem;
  word-break: break-word;
  overflow-wrap: break-word;
}

.about-meta {
  margin-top: 24px;
  border-top: 1px solid rgba(229, 223, 213, 0.8);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

.meta-item {
  font-size: 0.85rem;
  word-break: break-word;
  overflow-wrap: break-word;
}

.meta-item strong {
  display: block;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.meta-item a {
  color: var(--accent-gold);
  font-weight: 600;
}

.meta-item a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Instagram / Social Feed Gallery
   ========================================================================== */

.instagram-section {
  max-width: var(--max-width);
  margin: 100px auto;
  padding: 0 24px;
}

.instagram-section .section-subtitle a {
  color: var(--accent-gold);
  font-weight: 600;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.insta-item {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  height: 260px;
  box-shadow: var(--shadow-subtle);
  cursor: pointer;
  border: 1px solid rgba(229, 223, 213, 0.4);
}

.insta-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.6s ease;
}

.insta-img-placeholder i {
  width: 36px;
  height: 36px;
  color: var(--text-muted);
  opacity: 0.6;
}

.insta-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(44, 27, 17, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-normal);
}

.insta-overlay span {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid var(--white);
  padding: 10px 20px;
  border-radius: 4px;
}

.insta-item:hover .insta-img-placeholder,
.insta-item:hover img {
  transform: scale(1.08) !important;
}

.insta-item:hover .insta-overlay {
  opacity: 1 !important;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

.contact-section {
  max-width: var(--max-width);
  margin: 100px auto;
  padding: 0 24px;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-card {
  background: var(--white);
  border-radius: var(--border-radius-md);
  padding: 40px;
  box-shadow: var(--shadow-subtle);
  border: 1px solid rgba(229, 223, 213, 0.5);
}

.contact-card h3 {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.contact-card > p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.method-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.method-item i {
  width: 24px;
  height: 24px;
  color: var(--accent-gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.method-item h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.method-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.shipping-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.shipping-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  position: relative;
  padding-left: 24px;
}

.shipping-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-gold);
  font-weight: 700;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.main-footer {
  background-color: var(--text-dark);
  color: var(--bg-primary);
  padding: 80px 24px 40px;
  border-top: 4px solid var(--accent-gold);
}

.footer-top {
  max-width: var(--max-width);
  margin: 0 auto 60px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 60px;
}

.footer-brand .footer-logo {
  width: 80px;
  height: 80px;
  background-color: var(--white);
  border-radius: 50%;
  padding: 6px;
  margin-bottom: 20px;
}

.footer-brand h2 {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 12px;
  color: var(--white);
}

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(250, 248, 245, 0.75);
  line-height: 1.6;
}

.footer-links h3,
.footer-payment h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
  color: var(--white);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(250, 248, 245, 0.75);
}

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

.payment-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.payment-badge {
  background-color: rgba(250, 248, 245, 0.1);
  color: rgba(250, 248, 245, 0.9);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid rgba(250, 248, 245, 0.1);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  border-top: 1px solid rgba(250, 248, 245, 0.1);
  padding-top: 30px;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(250, 248, 245, 0.5);
  letter-spacing: 0.5px;
}

/* ==========================================================================
   Shopping Cart Sidebar (Drawer)
   ========================================================================== */

.cart-drawer-wrapper {
  position: fixed;
  top: 0;
  right: -420px;
  width: 420px;
  max-width: 100%;
  height: 100vh;
  background-color: var(--bg-primary);
  z-index: 1002;
  box-shadow: var(--shadow-dark);
  display: flex;
  flex-direction: column;
  visibility: hidden;
  pointer-events: none;
  transition: transform var(--transition-normal), visibility var(--transition-normal);
}

.cart-drawer-wrapper.open {
  transform: translateX(-420px);
  visibility: visible;
  pointer-events: auto;
}

.cart-drawer {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px;
}

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

.cart-drawer-header h2 {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 500;
}

.cart-close-btn {
  color: var(--text-dark);
}

.cart-items-container {
  flex-grow: 1;
  overflow-y: auto;
  padding-right: 4px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Cart Item card */
.cart-item {
  display: flex;
  gap: 16px;
  background: var(--white);
  border-radius: var(--border-radius-md);
  padding: 12px;
  border: 1px solid rgba(229, 223, 213, 0.5);
  position: relative;
  animation: fadeIn 0.3s ease;
}

.cart-item-img-box {
  width: 70px;
  height: 70px;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  background-color: var(--bg-secondary);
  flex-shrink: 0;
}

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

.cart-item-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-item-title {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.2;
}

.cart-item-price {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-gold-hover);
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 24px;
  height: 24px;
  background-color: var(--bg-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  transition: var(--transition-fast);
}

.qty-btn:hover {
  background-color: var(--accent-gold);
  color: var(--white);
}

.qty-val {
  font-size: 0.85rem;
  font-weight: 600;
  width: 20px;
  text-align: center;
}

.cart-item-remove-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.cart-item-remove-btn:hover {
  color: var(--error);
}

/* Empty cart state */
.empty-cart-message {
  text-align: center;
  padding: 80px 20px;
  margin: auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
}

.empty-cart-message i {
  width: 48px;
  height: 48px;
  stroke-width: 1.2;
}

.empty-cart-message p {
  font-size: 0.95rem;
}

.close-cart-link {
  margin-top: 10px;
}

/* Cart footer */
.cart-drawer-footer {
  border-top: 1px solid var(--bg-secondary);
  padding-top: 20px;
  margin-top: 20px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.cart-summary-row.total-row {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  border-top: 1px dashed rgba(229, 223, 213, 0.8);
  padding-top: 12px;
  margin-bottom: 16px;
}

.free-shipping-indicator {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-green);
  background-color: var(--accent-gold-light);
  text-align: center;
  padding: 8px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(44, 27, 17, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   Checkout Modal
   ========================================================================== */

.checkout-modal-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1003;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.checkout-modal-wrapper.open {
  opacity: 1;
  pointer-events: auto;
}

.checkout-modal {
  background: var(--bg-primary);
  border-radius: var(--border-radius-md);
  width: 90%;
  max-width: 860px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-dark);
  border: 1px solid var(--accent-gold);
  overflow: hidden;
  animation: modalPop 0.4s ease;
}

.checkout-modal-header {
  background-color: var(--text-dark);
  color: var(--white);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.checkout-modal-header h2 {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 400;
}

.checkout-close-btn {
  color: var(--white);
  opacity: 0.8;
  transition: var(--transition-fast);
}

.checkout-close-btn:hover {
  opacity: 1;
  transform: rotate(90deg);
}

.checkout-modal-body {
  padding: 30px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 30px;
}

/* Order Summary Box */
.order-summary-box {
  background: var(--white);
  border: 1px solid rgba(229, 223, 213, 0.6);
  border-radius: var(--border-radius-md);
  padding: 20px;
  align-self: flex-start;
}

.order-summary-box h3 {
  font-family: var(--font-title);
  font-size: 1.3rem;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--bg-secondary);
  padding-bottom: 8px;
}

.summary-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 20px;
  padding-right: 4px;
}

.summary-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.summary-item-name {
  font-weight: 500;
  max-width: 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.summary-item-qty {
  color: var(--text-muted);
}

.summary-item-price {
  font-weight: 600;
}

.summary-totals {
  border-top: 1px dashed rgba(229, 223, 213, 0.8);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.summary-row.total {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  border-top: 1px solid var(--bg-secondary);
  padding-top: 10px;
  margin-top: 4px;
}

/* Checkout Form elements */
.checkout-form h3 {
  font-family: var(--font-title);
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: var(--text-dark);
}

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

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

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 4px;
  border: 1px solid rgba(229, 223, 213, 0.8);
  background: var(--white);
  outline: none;
  font-size: 0.9rem;
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-gold);
}

/* Action Buttons */
.checkout-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 24px;
}

.btn-whatsapp-checkout {
  background-color: var(--accent-green);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(94, 112, 90, 0.2);
}

.btn-whatsapp-checkout:hover {
  background-color: var(--accent-green-hover);
  transform: translateY(-2px);
}

.btn-mercadopago-checkout {
  background-color: #00B1EA; /* Mercado Pago Blue */
  color: var(--white);
  box-shadow: 0 4px 12px rgba(0, 177, 234, 0.2);
}

.btn-mercadopago-checkout:hover {
  background-color: #009CD0;
  transform: translateY(-2px);
}

.checkout-disclaimer {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 14px;
  line-height: 1.4;
}

.checkout-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(44, 27, 17, 0.5);
  backdrop-filter: blur(5px);
  z-index: 1002;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.checkout-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   Success Notification Modal
   ========================================================================== */

.success-modal-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1004;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.success-modal-wrapper.open {
  opacity: 1;
  pointer-events: auto;
}

.success-modal {
  background: var(--white);
  border-radius: var(--border-radius-md);
  padding: 40px;
  max-width: 460px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-dark);
  border: 2px solid var(--accent-green);
  animation: modalPop 0.4s ease;
}

.success-icon-box {
  width: 70px;
  height: 70px;
  background-color: var(--accent-gold-light);
  border-radius: 50%;
  color: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.success-icon-box i {
  width: 36px;
  height: 36px;
}

.success-modal h2 {
  font-family: var(--font-title);
  font-size: 2.2rem;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.success-modal p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  line-height: 1.6;
}

.success-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(44, 27, 17, 0.6);
  backdrop-filter: blur(5px);
  z-index: 1003;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.success-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes popScale {
  0% { transform: scale(0.6); }
  80% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Medium Devices (Tablets, less than 992px) */
@media (max-width: 991px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .about-section {
    margin: 40px auto;
    padding: 0 16px;
  }
  
  .about-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .about-image {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
  }
  
  .about-wood-panel {
    padding: 24px 16px;
  }
  
  .about-title {
    font-size: 1.8rem;
  }
  
  .about-meta {
    flex-direction: column;
    gap: 12px;
  }
  
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-payment {
    grid-column: span 2;
  }
}

/* Small Devices (Phones, less than 768px) */
@media (max-width: 767px) {
  .desktop-nav {
    display: none;
  }
  
  .mobile-nav-toggle {
    display: block;
  }
  
  .search-container {
    display: none; /* Hide top search bar on small screens, use catalog search instead */
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
  }
  
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .props-container {
    flex-direction: column;
    gap: 30px;
  }
  
  .instagram-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-payment {
    grid-column: span 1;
  }
  
  .checkout-modal-body {
    grid-template-columns: 1fr;
  }
  
  .checkout-actions {
    grid-template-columns: 1fr;
  }
  
  .cart-drawer-wrapper {
    width: 100%;
    right: -100%;
  }
  
  .cart-drawer-wrapper.open {
    transform: translateX(-100%);
  }
}

/* Extra Small Devices (Portrait Phones, less than 480px) */
@media (max-width: 479px) {
  .product-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }
  
  .catalog-controls {
    padding: 12px;
  }
  
  .catalog-search {
    min-width: 100%;
  }
  
  .tab-btn {
    padding: 6px 12px;
    font-size: 0.75rem;
  }
}

/* ==========================================================================
   Admin Panel & Dashboard Styles
   ========================================================================== */

.admin-modal-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1003;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.admin-modal-wrapper.open {
  opacity: 1;
  pointer-events: auto;
}

.admin-modal {
  background: var(--bg-primary);
  border-radius: var(--border-radius-md);
  width: 95%;
  max-width: 1000px;
  height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-dark);
  border: 2px solid var(--accent-gold);
  overflow: hidden;
  animation: modalPop 0.4s ease;
}

.admin-modal-header {
  background-color: var(--text-dark);
  color: var(--white);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid var(--accent-gold);
}

.admin-modal-header h2 {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 400;
}

.admin-header-user-info {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
}

.admin-header-user-info span {
  color: var(--accent-gold);
  font-weight: 500;
}

.btn-logout {
  background-color: rgba(250, 248, 245, 0.1);
  color: var(--white);
  border: 1px solid rgba(250, 248, 245, 0.3);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.btn-logout:hover {
  background-color: var(--error);
  border-color: var(--error);
}

.btn-logout i {
  width: 12px;
  height: 12px;
}

.admin-close-btn {
  color: var(--white);
  opacity: 0.8;
  transition: var(--transition-fast);
}

.admin-close-btn:hover {
  opacity: 1;
  transform: rotate(90deg);
}

.admin-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* Admin Login View */
.admin-login-view {
  max-width: 400px;
  width: 100%;
  margin: auto;
  background: var(--white);
  border-radius: var(--border-radius-md);
  padding: 30px;
  box-shadow: var(--shadow-subtle);
  border: 1px solid rgba(229, 223, 213, 0.6);
}

.admin-login-view h3 {
  font-family: var(--font-title);
  font-size: 1.8rem;
  margin-bottom: 10px;
  text-align: center;
}

.login-instructions {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 24px;
}

/* Admin Dashboard View */
.admin-dashboard-view {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 20px;
  overflow: hidden;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid rgba(229, 223, 213, 0.8);
  padding-bottom: 8px;
}

.admin-tab-btn {
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 18px;
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.admin-tab-btn:hover {
  color: var(--accent-gold);
}

.admin-tab-btn.active {
  background-color: var(--wood-medium);
  color: var(--white);
}

.admin-tab-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-grow: 1;
  overflow: hidden;
}

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

.tab-content-header h3 {
  font-family: var(--font-title);
  font-size: 1.6rem;
}

/* Admin Forms */
.admin-form-block {
  background: var(--white);
  border: 1px solid rgba(229, 223, 213, 0.8);
  border-radius: var(--border-radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fadeIn 0.3s ease;
  overflow-y: auto;
  max-height: 450px;
  flex-shrink: 0;
}

.admin-form-block h4 {
  font-family: var(--font-title);
  font-size: 1.3rem;
  border-bottom: 1px solid var(--bg-secondary);
  padding-bottom: 8px;
}

.file-upload-preview {
  margin-top: 8px;
  padding: 10px;
  background: var(--bg-secondary);
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(229, 223, 213, 1);
}

.file-upload-preview img {
  max-height: 80px;
  border-radius: 4px;
}

.admin-inline-form {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  background: var(--white);
  padding: 16px;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(229, 223, 213, 0.6);
  flex-shrink: 0;
}

.admin-inline-form .form-group {
  margin-bottom: 0;
  flex-grow: 1;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Admin Tables */
.admin-table-container {
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(229, 223, 213, 0.6);
  flex-grow: 1;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.admin-table th {
  background-color: var(--bg-secondary);
  color: var(--text-dark);
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 2px solid rgba(229, 223, 213, 0.8);
  position: sticky;
  top: 0;
  z-index: 10;
}

.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(229, 223, 213, 0.4);
  vertical-align: middle;
}

.admin-table tr:hover {
  background-color: var(--bg-primary);
}

.admin-table-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(229, 223, 213, 0.8);
}

/* Badges for table actions */
.btn-action {
  padding: 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
  transition: var(--transition-fast);
}

.btn-action-edit {
  background-color: rgba(197, 168, 128, 0.1);
  color: var(--accent-gold-hover);
  border: 1px solid rgba(197, 168, 128, 0.2);
}

.btn-action-edit:hover {
  background-color: var(--accent-gold);
  color: var(--white);
}

.btn-action-delete {
  background-color: rgba(186, 60, 42, 0.08);
  color: var(--error);
  border: 1px solid rgba(186, 60, 42, 0.15);
}

.btn-action-delete:hover {
  background-color: var(--error);
  color: var(--white);
}

.btn-action i {
  width: 14px;
  height: 14px;
}

.order-status {
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-pendiente {
  background-color: rgba(197, 168, 128, 0.15);
  color: var(--text-muted);
  border: 1px solid rgba(197, 168, 128, 0.3);
}

.status-pagado {
  background-color: rgba(78, 101, 72, 0.12);
  color: var(--success);
  border: 1px solid rgba(78, 101, 72, 0.25);
}

.status-despachado {
  background-color: rgba(0, 156, 208, 0.08);
  color: #0087b3;
  border: 1px solid rgba(0, 156, 208, 0.15);
}

.status-cancelado {
  background-color: rgba(186, 60, 42, 0.08);
  color: var(--error);
  border: 1px solid rgba(186, 60, 42, 0.15);
}

.admin-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(44, 27, 17, 0.5);
  backdrop-filter: blur(5px);
  z-index: 1002;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.admin-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Order Detail modal */
.admin-order-detail-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1005;
  background: var(--bg-primary);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-dark);
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  border: 2px solid var(--accent-gold);
  animation: modalPop 0.3s ease;
}

.detail-modal-content {
  padding: 24px;
}

.detail-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(229, 223, 213, 0.8);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.detail-modal-header h4 {
  font-family: var(--font-title);
  font-size: 1.4rem;
}

.detail-modal-body {
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-section h5 {
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  font-size: 0.75rem;
  border-bottom: 1px dashed rgba(229, 223, 213, 0.6);
  padding-bottom: 2px;
  margin-bottom: 4px;
}

.admin-detail-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(44, 27, 17, 0.6);
  z-index: 1004;
}

/* Extra small adaptations */
.select-small select {
  max-width: 120px;
}

/* Policy Modals */
.policy-modal-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10005;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  padding: 16px;
}

.policy-modal-wrapper.open {
  opacity: 1;
  pointer-events: auto;
}

.policy-modal {
  background: var(--bg-primary);
  border-radius: var(--border-radius-md);
  width: 100%;
  max-width: 700px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-dark);
  border: 1px solid var(--accent-gold);
  overflow: hidden;
  animation: modalPop 0.4s ease;
}

.policy-modal-header {
  background-color: var(--text-dark);
  color: var(--white);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.policy-modal-header h2 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0;
}

.policy-close-btn {
  background: none;
  border: none;
  color: var(--white);
  opacity: 0.9;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.policy-close-btn:hover {
  opacity: 1;
  transform: rotate(90deg);
}

.policy-modal-body {
  padding: 24px;
  overflow-y: auto;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-dark);
}

.policy-modal-body h3 {
  font-family: var(--font-title);
  font-size: 1.2rem;
  margin-top: 20px;
  margin-bottom: 10px;
  color: var(--text-dark);
  border-bottom: 1px solid rgba(229, 223, 213, 0.8);
  padding-bottom: 4px;
}

.policy-modal-body p {
  margin-bottom: 12px;
}

.policy-modal-body ul {
  margin-left: 20px;
  margin-bottom: 12px;
  list-style-type: disc;
}

.policy-modal-body li {
  margin-bottom: 6px;
}

.policy-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(44, 27, 17, 0.6);
  backdrop-filter: blur(5px);
  z-index: 10004;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.policy-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   Analytics Dashboard Styles
   ========================================================================== */

.analytics-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  flex-grow: 1;
  overflow-y: auto;
  padding-bottom: 20px;
}

.analytics-card {
  background: var(--white);
  border: 1px solid rgba(229, 223, 213, 0.8);
  border-radius: var(--border-radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-subtle);
  overflow: hidden;
  max-height: 480px;
}

.analytics-card h4 {
  font-family: var(--font-title);
  font-size: 1.25rem;
  color: var(--text-dark);
  border-bottom: 1px solid var(--bg-secondary);
  padding-bottom: 8px;
  margin: 0;
}

@media (max-width: 768px) {
  .analytics-container {
    grid-template-columns: 1fr;
  }
}

