:root {
  --color-bg: #111111;
  --color-bg-light: #1c1c1c;
  --color-bg-card: #242424;
  --color-primary: #d4a373; /* Wooden orange accent */
  --color-primary-hover: #faedcd;
  --color-text-main: #fefefe;
  --color-text-muted: #a0a0a0;
  --color-border: #333333;
  
  /* Rokr-style catchy big fonts */
  --font-display: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}

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

/* Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.section-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-align: center;
  letter-spacing: 1px;
}
.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-smooth);
  border: none;
  gap: 8px;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #111;
  box-shadow: 0 4px 14px rgba(212, 163, 115, 0.2);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(250, 237, 205, 0.3);
}

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

.btn-outline:hover {
  background-color: var(--color-primary);
  color: #111;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* changed to Bole color */
  background-color: rgba(121, 68, 59, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  padding: 12px 0;
}

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

.logo-container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-container img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1;
  white-space: nowrap;
}

nav.desktop-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

nav.desktop-nav a {
  font-family: var(--font-display);
  font-size: 1.1rem;
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
  padding: 8px 0;
}

/* Mobile Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
  padding: 5px;
}

.menu-toggle span {
  display: block;
  width: 30px;
  height: 3px;
  background-color: white;
  transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Nav Overlay (Dropdown-like) */
.mobile-nav {
  position: absolute;
  top: 100%;
  right: 0;
  width: 100%;
  background-color: rgba(121, 68, 59, 1);
  display: none; /* Hidden by defaultsite-wide */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  z-index: 1000;
  padding: 40px 0;
  border-bottom: 2px solid var(--color-primary);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

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

.mobile-nav a {
  color: white;
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 2px;
}

.mobile-nav a.active {
  color: var(--color-primary);
}

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

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

/* Hero Section */
.hero {
  width: 100%;
  height: 56.25vw; /* Perfectly maps to 16:9 video horizontal aspect ratio */
  min-height: 400px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: #111;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  z-index: 0;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

/* Dark gradient overlay for the text on the "portada" / video */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(17,17,17,0.95) 0%, rgba(17,17,17,0.7) 40%, rgba(17,17,17,0.4) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.hero h1 {
  font-size: 5.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
  line-height: 1.05;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

.hero p {
  font-size: 1.25rem;
  color: #ddd;
  margin-bottom: 2.5rem;
  font-weight: 400;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

.hero .btn-group {
  display: flex;
  gap: 16px;
}

/* Product Grid */
.section {
  padding: 100px 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

.product-card {
  background-color: var(--color-bg-card);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform var(--transition-smooth), border-color var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-primary);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.product-image-wrapper {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
  background-color: var(--color-bg-light);
  cursor: pointer; /* Suggests clickability for lightbox */
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.05);
  transition: all var(--transition-smooth);
}

.product-card:hover {
  box-shadow: 0 10px 40px rgba(255, 255, 255, 0.12);
  transform: translateY(-5px);
}

/* The actual image inside the product card */
.lightbox-trigger {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .lightbox-trigger {
  transform: scale(1.08); /* Zoom effect on hover */
}

.product-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background-color: var(--color-primary);
  color: #111;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  font-family: var(--font-display);
}

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

.product-category {
  font-size: 0.9rem;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  font-weight: 600;
}

.product-title {
  font-size: 1.7rem;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.product-subtitle {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  text-transform: lowercase;
  font-family: var(--font-body);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  font-weight: 400;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
  margin-top: auto;
}

.product-price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: #fff;
}

.product-price small {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Feature Section (About Us) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.feature-card {
  background-color: var(--color-bg-light);
  padding: 40px 32px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
}

.feature-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.8s ease;
  z-index: 0;
  filter: brightness(0.25) contrast(1.2);
}

.feature-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 15px 45px rgba(255, 255, 255, 0.15);
  transform: translateY(-8px);
}

.feature-card:hover .feature-bg {
  opacity: 1;
  transform: scale(1.15);
}

.feature-icon, .feature-title, .feature-text {
  position: relative;
  z-index: 2;
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 24px;
}

.feature-title {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.feature-text {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

/* Footer */
footer {
  background-color: #050505;
  border-top: 1px solid var(--color-border);
  padding: 60px 0 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 1.4rem;
  margin-bottom: 24px;
  color: var(--color-text-main);
  letter-spacing: 1px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: var(--color-text-muted);
}

.footer-col ul li a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* Lightbox Styles */
.lightbox {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(10px);
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
  border: 1px solid #333;
  transition: opacity 0.3s ease;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: white;
  font-size: 3rem;
  font-family: sans-serif;
  cursor: pointer;
  transition: 0.2s;
  z-index: 10000;
}

.lightbox-close:hover {
  color: var(--color-primary);
  transform: scale(1.1);
}

.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 2.5rem;
  font-family: 'Oswald', sans-serif;
  cursor: pointer;
  user-select: none;
  background: rgba(0,0,0,0.5);
  padding: 10px 20px;
  border-radius: 4px;
  transition: 0.2s;
  z-index: 10000;
}

.lightbox-prev:hover, .lightbox-next:hover {
  background: var(--color-primary);
  color: #111;
}

.lightbox-prev { left: 5%; }
.lightbox-next { right: 5%; }

/* Responsive */
@media (max-width: 1024px) {
  .logo-container {
    gap: 15px;
  }
  .logo-container img {
    height: 55px; /* Bigger on mobile as requested */
  }
  .logo-text {
    font-size: 1.8rem; /* Bigger on mobile as requested */
    letter-spacing: 1px;
  }
  .menu-toggle {
    display: flex;
  }
  .desktop-nav {
    display: none !important; /* Force hide to avoid duplicates */
  }
  header .container {
    justify-content: space-between;
  }
  
  .hero h1 { font-size: 3rem; }
  .hero { padding: 40px 0; min-height: 60vh; }
  .hero .btn-group { flex-direction: column; }
}

@media (max-width: 480px) {
  .logo-text {
    font-size: 1.5rem;
  }
  .logo-container img {
    height: 48px;
  }
}
/* Shopping Cart & Checkout Modal Styles */
.cart-toggle {
  background-color: var(--color-primary);
  color: #111;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  transition: var(--transition-smooth);
  position: relative;
}

.cart-toggle:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
}

.cart-count {
  background-color: #111;
  color: var(--color-primary);
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  padding: 2px;
}

/* Floating Cart Drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background-color: var(--color-bg-light);
  z-index: 10000;
  box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  border-left: 2px solid var(--color-primary);
}

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

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

.cart-header h2 {
  font-size: 1.5rem;
  margin: 0;
}

.close-cart {
  font-size: 2rem;
  cursor: pointer;
  color: var(--color-text-muted);
}

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

.cart-item {
  display: flex;
  gap: 16px;
  background-color: var(--color-bg-card);
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.cart-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

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

.cart-remove {
  cursor: pointer;
  color: #ff6b6b;
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-top: 4px;
  display: inline-block;
}

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

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.5rem;
  font-family: var(--font-display);
  margin-bottom: 24px;
}

/* Modal Checkout */
.modal-checkout {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10001;
  backdrop-filter: blur(5px);
}

.modal-checkout.active {
  display: flex;
}

.modal-content {
  background-color: var(--color-bg-light);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  border-radius: 8px;
  border: 1px solid var(--color-primary);
}

.checkout-form .form-group {
  margin-bottom: 20px;
}

.checkout-form label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--color-primary);
}

.checkout-form input, .checkout-form select, .checkout-form textarea {
  width: 100%;
  background-color: #111;
  border: 1px solid var(--color-border);
  padding: 12px;
  color: white;
  border-radius: 4px;
  font-family: var(--font-body);
}

.checkout-form input:focus {
  border-color: var(--color-primary);
  outline: none;
}

.summary-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}

.summary-table td {
  padding: 8px 0;
}

.summary-table .total-row {
  border-top: 1px solid var(--color-border);
  font-size: 1.5rem;
  font-family: var(--font-display);
}

@media (max-width: 480px) {
  .cart-drawer {
    width: 100%;
    right: -100%;
  }
}

/** ==============================
    WhatsApp Float Button
============================== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 6px 14px rgba(37, 211, 102, 0.6);
}

.whatsapp-icon {
    width: 35px;
    height: 35px;
    fill: currentColor;
}
