/* =========================================
   ELECTROMALVI - Professional Electronics Store
   Main Stylesheet
   ========================================= */

/* =========================================
   1. RESET & BASE STYLES
   ========================================= */

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

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

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #333333;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #2563EB;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #1D4ED8;
  text-decoration: none;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

ul {
  list-style: none;
}

/* =========================================
   2. LAYOUT
   ========================================= */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 60px 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #333333;
}

.section-subtitle {
  font-size: 1.125rem;
  color: #6c757d;
  margin-bottom: 2rem;
}

/* =========================================
   3. TYPOGRAPHY
   ========================================= */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: #333333;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

.text-muted {
  color: #6c757d;
}

.text-primary {
  color: #2563EB;
}

.text-success {
  color: #28a745;
}

.text-danger {
  color: #dc3545;
}

.text-warning {
  color: #f0ad4e;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.fw-bold {
  font-weight: 700;
}

.fw-medium {
  font-weight: 500;
}

/* =========================================
   4. NAVBAR
   ========================================= */

.navbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #262626;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 20px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 1.5rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

.navbar-brand:active,
.navbar-brand:focus {
  outline: none;
  color: #ffffff;
}

/* Remove tap highlight on mobile for all navbar elements */
.navbar-toggle,
.navbar-nav a,
.cart-link,
.user-btn,
.auth-buttons a,
.btn-login,
.btn-register {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

/* FOUC Prevention: Fixed dimensions for logo */
.navbar-brand img {
  height: 40px;
  width: auto;
  max-height: 40px;
  max-width: 150px;
  margin-right: 10px;
  object-fit: contain;
  opacity: 0;
  animation: fadeInNavLogo 0.3s ease forwards;
}

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

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.navbar-nav a {
  color: #ffffff;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  position: relative;
}

.navbar-nav a:hover,
.navbar-nav a.active {
  color: #3B82F6;
}

.navbar-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #3B82F6;
}

.navbar-search {
  flex: 1;
  max-width: 320px;
  margin: 0 1rem;
  position: relative;
}

/* Estilos del input de búsqueda están en .navbar-search .search-input */

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.navbar-actions .cart-icon {
  position: relative;
  font-size: 1.5rem;
  color: #ffffff;
  transition: color 0.2s ease;
}

.navbar-actions .cart-icon:hover {
  color: #3B82F6;
}

.navbar-actions .cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #dc3545;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}


/* Hamburger Toggle Button - Default hidden on desktop */
.navbar-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: #333333;
  border: 2px solid #444444;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  z-index: 1001;
}

/* When menu is open, toggle button stays visible on top */
.navbar-toggle.active {
  position: fixed;
  top: 12px;
  right: 15px;
  z-index: 10002;
  background: #333333;
  border: 2px solid #555555;
  border-radius: 8px;
}

/* Hamburger icon - Three lines */
.navbar-toggle .hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 16px;
}

.navbar-toggle .hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Animated X when menu is open */
.navbar-toggle.active .hamburger span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
  background-color: #ffffff;
}

.navbar-toggle.active .hamburger span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.navbar-toggle.active .hamburger span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
  background-color: #ffffff;
}

/* Navbar Menu (wrapper for nav links, search, actions) */
.navbar-menu {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
  gap: 1.5rem;
}

/* Search button inside search form */
.navbar-search .search-btn {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #888888;
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0;
  z-index: 2;
  transition: color 0.2s ease;
}

.navbar-search .search-btn:hover {
  color: #3B82F6;
}

.navbar-search .search-input {
  width: 100%;
  padding: 0.5rem 1rem 0.5rem 2.5rem;
  border: 1px solid #444444;
  border-radius: 20px;
  font-size: 0.875rem;
  font-family: inherit;
  background-color: #333333;
  color: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.navbar-search .search-input::placeholder {
  color: #888888;
}

.navbar-search .search-input:focus {
  outline: none;
  border-color: #3B82F6;
  background-color: #3a3a3a;
}

/* Override the ::before since we use a button now */
.navbar-search::before {
  display: none;
}

/* User menu dropdown */
.user-menu {
  position: relative;
}

.user-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.9rem;
  color: #ffffff;
  transition: background-color 0.2s ease;
}

.user-btn:hover {
  background-color: #333333;
}

.user-btn .user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.user-btn .user-name {
  font-weight: 500;
}

.user-btn .arrow {
  font-size: 0.65rem;
  transition: transform 0.2s;
}

.user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  min-width: 200px;
  padding: 0.5rem 0;
  z-index: 1001;
  border: 1px solid #e2e8f0;
}

.user-dropdown.show {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.25rem;
  color: #333333;
  font-size: 0.9rem;
  transition: background-color 0.15s;
  text-decoration: none;
}

.dropdown-item:hover {
  background-color: #f5f7fa;
  color: #2563EB;
}

.dropdown-item.admin {
  color: #2563EB;
}

.dropdown-item.logout {
  color: #dc3545;
}

.dropdown-item.logout:hover {
  background-color: #fff5f5;
}

.dropdown-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 0.25rem 0;
}

/* Auth buttons (not logged in) */
.auth-buttons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-login {
  padding: 0.5rem 1rem;
  color: #ffffff;
  font-weight: 500;
  font-size: 0.875rem;
  border: 1px solid #3B82F6;
  border-radius: 6px;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-login:hover {
  background-color: #3B82F6;
  color: #ffffff;
}

.btn-register {
  padding: 0.5rem 1rem;
  background: #2563EB;
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 6px;
  transition: background-color 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-register:hover {
  background: #1D4ED8;
  color: white;
}

/* Nav link icons (hidden on desktop) */
.navbar-nav a i {
  display: none;
}

/* Cart link styles */
.cart-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffffff;
  font-size: 1.25rem;
  transition: color 0.2s ease;
}

.cart-link:hover {
  color: #3B82F6;
}

.cart-link .cart-text {
  display: none;
}

.cart-link .cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #dc3545;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

/* Mobile responsive navbar */
@media (max-width: 768px) {
  .navbar-container {
    position: relative;
    padding: 0.75rem 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .navbar-brand span {
    font-size: 1.1rem;
  }

  .navbar-brand img {
    height: 35px;
    width: auto;
    max-height: 35px;
    max-width: 120px;
    object-fit: contain;
  }

  /* Hamburger button visible - ALWAYS with background */
  .navbar-toggle {
    display: flex !important;
    order: 3;
    background: #333333 !important;
    border-radius: 8px;
    width: 44px;
    height: 44px;
  }

  .navbar-toggle .hamburger span {
    background-color: #ffffff !important;
    height: 3px;
  }

  /* ===== DRAWER MOBILE MENU (Clean White Style) ===== */

  /* Backdrop */
  .drawer-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .drawer-backdrop.show {
    display: block;
    opacity: 1;
  }

  /* Drawer panel (slides from LEFT) */
  .navbar-menu {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    bottom: 0 !important;
    width: 82% !important;
    max-width: 320px !important;
    height: 100vh !important;
    background: #ffffff !important;
    flex-direction: column !important;
    flex: none !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
    z-index: 9999 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex !important;
    visibility: hidden;
  }

  .navbar-menu.show {
    transform: translateX(0) !important;
    visibility: visible !important;
  }

  .navbar-menu::before {
    display: none !important;
  }

  /* Drawer header - Logo + Name + Close */
  .drawer-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
    background: #fff;
  }

  .drawer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
  }

  .drawer-logo img {
    height: 32px;
    width: auto;
    max-width: 40px;
    object-fit: contain;
  }

  .drawer-brand-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -0.3px;
  }

  .drawer-close {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    color: #333;
    font-size: 1.2rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: color 0.2s;
    padding: 0;
  }

  .drawer-close:hover {
    color: #000;
  }

  /* Search bar hidden in mobile drawer */
  .navbar-search {
    display: none !important;
  }

  .navbar-search .search-input {
    background: transparent !important;
    border: none !important;
    color: #333 !important;
    padding: 10px 12px !important;
    font-size: 0.9rem !important;
    flex: 1;
    min-width: 0;
  }

  .navbar-search .search-input::placeholder {
    color: #999;
  }

  .navbar-search .search-btn {
    background: transparent !important;
    border: none !important;
    color: #666 !important;
    padding: 10px 14px !important;
    cursor: pointer;
  }

  /* Navigation links - Clean text style */
  .navbar-nav {
    order: 1;
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
    gap: 0;
    padding: 8px 0;
  }

  .navbar-nav a {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    padding: 14px 20px;
    color: #333;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
    transition: background 0.15s;
    border-bottom: none;
  }

  .navbar-nav a:last-child {
    border-bottom: none;
  }

  /* Hide icon boxes - show arrow only */
  .navbar-nav a i.drawer-arrow {
    display: inline-flex !important;
    width: auto;
    height: auto;
    min-width: auto;
    background: none;
    border-radius: 0;
    font-size: 0.7rem;
    color: #ccc;
    margin-left: auto;
    flex-shrink: 0;
  }

  .navbar-nav a span {
    flex: 1;
    text-align: left;
  }

  .navbar-nav a:hover,
  .navbar-nav a:active {
    background: #f8f8f8;
    color: #1B5E20;
  }

  .navbar-nav a:hover i.drawer-arrow {
    color: #1B5E20;
  }

  .navbar-nav a.active::after {
    display: none;
  }

  /* Actions section */
  .navbar-actions {
    order: 2;
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
    gap: 0;
    padding: 0;
    border-top: none;
  }

  /* Cart link - clean text style */
  .cart-link {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    padding: 14px 20px;
    color: #333;
    font-size: 1rem;
    font-weight: 600;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    transition: background 0.15s;
    border-bottom: none;
  }

  .cart-link:hover {
    background: #f8f8f8;
    color: #1B5E20;
  }

  .cart-link > i.cart-icon-desktop {
    display: none !important;
  }

  .cart-link .cart-text {
    display: block !important;
    flex: 1;
    font-weight: 600;
    text-align: left;
  }

  .cart-link .cart-badge {
    position: static;
    background: #1B5E20;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.3;
    flex-shrink: 0;
    color: #fff;
  }

  /* Hide desktop user menu/auth in drawer */
  .user-menu {
    display: none !important;
  }

  .auth-buttons {
    display: none !important;
  }

  /* Drawer divider */
  .drawer-divider {
    height: 1px;
    background: #eee;
    margin: 4px 20px;
  }

  /* Drawer user links (mobile only) */
  .drawer-user-links {
    display: block !important;
    width: 100%;
  }

  .drawer-section-label {
    padding: 16px 20px 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
  }

  .drawer-link {
    display: flex;
    align-items: center;
    padding: 13px 20px;
    color: #333;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s;
  }

  .drawer-link:last-child {
    border-bottom: none;
  }

  .drawer-link span {
    flex: 1;
  }

  .drawer-link i.drawer-arrow {
    font-size: 0.7rem;
    color: #ccc;
    margin-left: auto;
    width: auto;
    height: auto;
    min-width: auto;
    background: none;
    border-radius: 0;
  }

  .drawer-link:hover {
    background: #f8f8f8;
    color: #1B5E20;
  }

  .drawer-link:hover i.drawer-arrow {
    color: #1B5E20;
  }

  .drawer-link-admin {
    color: #333;
  }

  .drawer-link-logout {
    color: #dc3545 !important;
    font-weight: 500 !important;
  }

  .drawer-link-logout:hover {
    background: #fef2f2;
  }

  /* CTA Register button */
  .drawer-cta-register {
    display: block;
    margin: 12px 20px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    color: #fff !important;
    text-align: center;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
  }

  .drawer-cta-register:hover {
    background: linear-gradient(135deg, #383838 0%, #262626 100%);
  }

  /* Social links at bottom */
  .drawer-social {
    display: flex !important;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    border-top: 1px solid #eee;
    order: 3;
  }

  .drawer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f3f3f3;
    color: #555;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s;
  }

  .drawer-social a:hover {
    background: #1B5E20;
    color: #fff;
  }
}

/* =========================================
   5. HERO SECTION
   ========================================= */

.hero {
  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #ffffff;
  overflow: hidden;
  margin-bottom: 60px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="white" fill-opacity="0.05"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.95);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero .btn {
  font-size: 1.125rem;
  padding: 0.875rem 2.5rem;
}

/* =========================================
   6. CATEGORY CARDS
   ========================================= */

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 60px;
}

.category-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: #2563EB;
}

.category-card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.category-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: #333333;
}

.category-card p {
  font-size: 0.875rem;
  color: #6c757d;
  margin: 0;
}

/* =========================================
   7. PRODUCT GRID
   ========================================= */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

/* =========================================
   8. PRODUCT CARD
   ========================================= */

.product-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  border-color: #2563EB;
}

.product-image-container {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 aspect ratio */
  overflow: hidden;
  background-color: #f5f7fa;
}

.product-image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: #dc3545;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

.product-badge.sale {
  background-color: #dc3545;
}

.product-badge.new {
  background-color: #28a745;
}

.product-badge.featured {
  background-color: #f0ad4e;
}

.product-info {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-category {
  font-size: 0.8rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.product-name {
  font-size: 1rem;
  font-weight: 600;
  color: #333333;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.product-rating .stars {
  color: #f0ad4e;
  font-size: 0.9rem;
}

.product-rating .reviews {
  font-size: 0.85rem;
  color: #6c757d;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.product-price-current {
  font-size: 1.5rem;
  font-weight: 700;
  color: #28a745;
}

.product-price-old {
  font-size: 1rem;
  color: #6c757d;
  text-decoration: line-through;
}

.product-stock {
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.product-stock.in-stock {
  color: #28a745;
}

.product-stock.low-stock {
  color: #f0ad4e;
}

.product-stock.out-of-stock {
  color: #dc3545;
}

.product-stock::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: currentColor;
}

.product-actions {
  margin-top: auto;
}

.product-card .btn {
  width: 100%;
}

/* =========================================
   9. PRODUCT DETAIL - HSI.com.co Style
   ========================================= */

.product-detail {
  padding: 30px 0 60px;
  background: #fff;
}

/* Wider container for product detail - HSI style */
.product-detail .container {
  max-width: 1400px;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 50px;
  align-items: start;
}

/* Product Gallery - HSI Style */
.product-gallery {
  width: 100%;
  position: sticky;
  top: 80px;
}

.gallery-main {
  position: relative;
  width: 100%;
  min-height: 400px;
  background-color: #fff;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-main img {
  width: 100%;
  height: auto;
  max-height: 550px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.gallery-main:hover img {
  transform: scale(1.02);
  cursor: zoom-in;
}

.gallery-main .discount-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #E53935;
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.gallery-main .badge-usado {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ff6b35;
  color: white;
  padding: 6px 14px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
}

/* Zoom icon */
.gallery-main .zoom-icon {
  position: absolute;
  bottom: 15px;
  left: 15px;
  width: 36px;
  height: 36px;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-main:hover .zoom-icon {
  opacity: 1;
}

.gallery-thumbnails {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.thumbnail {
  width: 70px;
  height: 70px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.thumbnail:hover {
  border-color: #1B5E20;
}

.thumbnail.active {
  border-color: #1B5E20;
  box-shadow: 0 0 0 1px #1B5E20;
}

.thumbnail img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Product Info - Right Column */
.product-info {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Breadcrumb in product */
.product-breadcrumb {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 15px;
}

.product-breadcrumb a {
  color: #1B5E20;
  text-decoration: none;
}

.product-breadcrumb a:hover {
  text-decoration: underline;
}

.product-breadcrumb span {
  color: #999;
  margin: 0 8px;
}

/* Product Title */
.product-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.3;
  margin: 0 0 15px 0;
  letter-spacing: -0.5px;
}

/* Price Section */
.product-price-section {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.price-label {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 5px;
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.price-current {
  font-size: 2.25rem;
  font-weight: 800;
  color: #1B5E20;
  line-height: 1;
}

.price-old {
  font-size: 1.2rem;
  color: #999;
  text-decoration: line-through;
  font-weight: 500;
}

.discount-badge-inline {
  background: #E53935;
  color: white;
  padding: 5px 12px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.85rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Product Short Description */
.product-short-description {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.product-short-description p {
  margin: 0;
}

/* Stock Status */
.product-stock {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.stock-available {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #2e7d32;
  font-weight: 600;
  font-size: 0.95rem;
}

.stock-available::before {
  content: '';
  width: 10px;
  height: 10px;
  background: #2e7d32;
  border-radius: 50%;
  display: inline-block;
}

.stock-available i {
  font-size: 1.1rem;
}

.stock-unavailable {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #c62828;
  font-weight: 600;
  font-size: 0.95rem;
}

.stock-unavailable::before {
  content: '';
  width: 10px;
  height: 10px;
  background: #c62828;
  border-radius: 50%;
  display: inline-block;
}

.stock-unavailable i {
  font-size: 1.1rem;
}

/* Product Actions - Add to Cart */
.product-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 25px;
}

.quantity-selector {
  display: inline-flex;
  align-items: center;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.qty-btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border: none;
  cursor: pointer;
  color: #333;
  font-size: 1rem;
  transition: all 0.2s;
}

.qty-btn:hover {
  background: #e9ecef;
  color: #1B5E20;
}

.qty-btn:active {
  background: #dee2e6;
}

.quantity-selector input {
  width: 60px;
  height: 48px;
  text-align: center;
  border: none;
  border-left: 2px solid #e0e0e0;
  border-right: 2px solid #e0e0e0;
  background: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
  -moz-appearance: textfield;
}

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

.btn-add-to-cart {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 30px;
  background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(27, 94, 32, 0.3);
}

.btn-add-to-cart:hover {
  background: linear-gradient(135deg, #145214 0%, #1B5E20 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27, 94, 32, 0.4);
}

.btn-add-to-cart:active {
  transform: translateY(0);
}

.btn-add-to-cart:disabled {
  background: #ccc;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn-add-to-cart i {
  font-size: 1.1rem;
}

/* Product Meta Info */
.product-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  font-size: 0.9rem;
}

.meta-item {
  display: flex;
  gap: 10px;
  align-items: center;
}

.meta-label {
  color: #666;
  font-weight: 600;
  min-width: 80px;
}

.meta-value {
  color: #333;
  font-weight: 500;
}

.meta-value a {
  color: #1B5E20;
  text-decoration: none;
  font-weight: 600;
}

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

/* No Image Placeholder */
.no-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  width: 100%;
  height: 100%;
  min-height: 300px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  color: #adb5bd;
}

.no-image-placeholder i {
  font-size: 4rem;
  opacity: 0.5;
}

.no-image-placeholder span {
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Social Share - Professional Style */
.product-share {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 25px;
  padding-top: 25px;
  border-top: 1px solid #e0e0e0;
}

.product-share > span {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
}

.share-icons {
  display: flex;
  gap: 8px;
}

.share-icons a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

/* Facebook */
.share-icons a[title*="Facebook"] {
  background: #1877f2;
}
.share-icons a[title*="Facebook"]:hover {
  background: #0d65d9;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

/* Twitter */
.share-icons a[title*="Twitter"] {
  background: #1da1f2;
}
.share-icons a[title*="Twitter"]:hover {
  background: #0c8de4;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(29, 161, 242, 0.4);
}

/* WhatsApp */
.share-icons a[title*="WhatsApp"] {
  background: #25d366;
}
.share-icons a[title*="WhatsApp"]:hover {
  background: #1da851;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

/* Email */
.share-icons a[title*="Email"] {
  background: #6c757d;
}
.share-icons a[title*="Email"]:hover {
  background: #545b62;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
}

/* Category Badge - Professional Style */
.product-category {
  margin-bottom: 15px;
}

.product-category a {
  display: inline-block;
  padding: 6px 14px;
  background: #e8f5e9;
  color: #1B5E20;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s;
}

.product-category a:hover {
  background: #1B5E20;
  color: white;
}

/* Product Meta - HSI Style */
.product-meta-hsi {
  font-size: 0.85rem;
  color: #666;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.product-meta-hsi .meta-row {
  margin-bottom: 8px;
}

.product-meta-hsi .meta-row strong {
  color: #333;
}

/* Product Tabs - HSI Style */
.product-tabs {
  padding: 40px 0;
  background: #fff;
  border-top: 1px solid #e0e0e0;
}

.tabs-header {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 30px;
}

.tab-btn {
  padding: 15px 25px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6b7280;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}

.tab-btn:hover {
  color: #1B5E20;
}

.tab-btn.active {
  color: #1B5E20;
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: #1B5E20;
  border-radius: 3px 3px 0 0;
}

.tabs-content {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tab-panel {
  display: none;
}

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

.description-content {
  color: #4b5563;
  line-height: 1.8;
  font-size: 1rem;
}

/* Specifications Table */
.specifications-table {
  width: 100%;
  border-collapse: collapse;
}

.specifications-table tr {
  border-bottom: 1px solid #e5e7eb;
}

.specifications-table tr:last-child {
  border-bottom: none;
}

.specifications-table th {
  text-align: left;
  padding: 14px 16px;
  background: #f9fafb;
  font-weight: 600;
  color: #374151;
  width: 35%;
  font-size: 0.95rem;
}

.specifications-table td {
  padding: 14px 16px;
  color: #4b5563;
  font-size: 0.95rem;
}

/* Related Products */
.related-products {
  padding: 60px 0;
}

.related-products .section-title {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 40px;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 16px 28px;
  background: #1a1a1a;
  color: white;
  border-radius: 12px;
  font-weight: 500;
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-success {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.toast-error {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

/* Zoom Modal */
.zoom-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

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

.zoom-modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.zoom-modal-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.zoom-close {
  position: absolute;
  top: -50px;
  right: 0;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zoom-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Responsive Product Detail */
@media (max-width: 992px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .product-gallery {
    position: static;
  }

  .gallery-main {
    min-height: 300px;
  }

  .gallery-main img {
    max-height: 400px;
  }

  .product-title {
    font-size: 1.75rem;
  }

  .price-current {
    font-size: 1.875rem;
  }
}

@media (max-width: 576px) {
  .product-detail {
    padding: 20px 0;
  }

  .product-title {
    font-size: 1.5rem;
  }

  .price-current {
    font-size: 1.5rem;
  }

  .gallery-thumbnails {
    gap: 8px;
  }

  .thumbnail {
    width: 60px;
    height: 60px;
  }

  .product-actions {
    flex-direction: column;
  }

  .btn-add-to-cart {
    width: 100%;
    min-width: auto;
  }

  .tabs-header {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tab-btn {
    padding: 12px 20px;
    white-space: nowrap;
  }

  .tabs-content {
    padding: 20px;
  }
}

/* =========================================
   10. CART TABLE
   ========================================= */

.cart-section {
  background-color: #f5f7fa;
  padding: 60px 0;
}

.cart-table-container {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

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

.cart-table thead {
  background-color: #f5f7fa;
  border-bottom: 2px solid #e2e8f0;
}

.cart-table th {
  padding: 1rem 1.5rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
  color: #333333;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cart-table td {
  padding: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
}

.cart-table tbody tr:last-child td {
  border-bottom: none;
}

.cart-product-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cart-product-image {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background-color: #f5f7fa;
}

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

.cart-product-details h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.cart-product-details p {
  font-size: 0.85rem;
  color: #6c757d;
  margin: 0;
}

.cart-price {
  font-size: 1.125rem;
  font-weight: 600;
  color: #333333;
}

.cart-remove {
  color: #dc3545;
  font-size: 1.25rem;
  padding: 0.5rem;
  transition: opacity 0.2s ease;
}

.cart-remove:hover {
  opacity: 0.7;
}

.cart-summary {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cart-summary h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e2e8f0;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  font-size: 1rem;
}

.cart-summary-row.total {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333333;
  padding-top: 1.5rem;
  margin-top: 1rem;
  border-top: 2px solid #e2e8f0;
}

.cart-summary-row.total .amount {
  color: #28a745;
}

.cart-summary .btn {
  width: 100%;
  margin-top: 1.5rem;
}

/* =========================================
   11. CHECKOUT FORM
   ========================================= */

.checkout-section {
  background-color: #f5f7fa;
  padding: 60px 0;
}

.checkout-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.checkout-form {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.checkout-form h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e2e8f0;
}

.checkout-section-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
  color: #333333;
}

.checkout-section-title:first-child {
  margin-top: 0;
}

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

.checkout-order-summary {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.checkout-order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.checkout-order-item:last-child {
  border-bottom: none;
}

.checkout-order-item-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.checkout-order-item-image {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  background-color: #f5f7fa;
  flex-shrink: 0;
}

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

.checkout-order-item-details h5 {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.checkout-order-item-details p {
  font-size: 0.8rem;
  color: #6c757d;
  margin: 0;
}

.checkout-order-item-price {
  font-weight: 600;
  color: #333333;
}

/* =========================================
   12. BUTTONS
   ========================================= */

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background-color: #2563EB;
  color: #ffffff;
  border-color: #2563EB;
}

.btn-primary:hover {
  background-color: #1D4ED8;
  border-color: #1D4ED8;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-success {
  background-color: #28a745;
  color: #ffffff;
  border-color: #28a745;
}

.btn-success:hover {
  background-color: #218838;
  border-color: #218838;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: #2563EB;
  border-color: #2563EB;
}

.btn-outline:hover {
  background-color: #2563EB;
  color: #ffffff;
}

.btn-outline-success {
  background-color: transparent;
  color: #28a745;
  border-color: #28a745;
}

.btn-outline-success:hover {
  background-color: #28a745;
  color: #ffffff;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn-block {
  display: block;
  width: 100%;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* =========================================
   13. FORMS
   ========================================= */

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #333333;
  font-size: 0.9rem;
}

.form-label.required::after {
  content: ' *';
  color: #dc3545;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #333333;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control::placeholder {
  color: #6c757d;
  opacity: 0.6;
}

.form-control:disabled {
  background-color: #f5f7fa;
  cursor: not-allowed;
  opacity: 0.6;
}

.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #333333;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236c757d' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px 12px;
  padding-right: 3rem;
}

.form-select:focus {
  outline: none;
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-check {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.form-check-input {
  width: 20px;
  height: 20px;
  border: 2px solid #e2e8f0;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.form-check-input:checked {
  background-color: #2563EB;
  border-color: #2563EB;
}

.form-check-label {
  cursor: pointer;
  font-size: 0.95rem;
  color: #333333;
}

.form-text {
  font-size: 0.85rem;
  color: #6c757d;
  margin-top: 0.25rem;
  display: block;
}

.form-error {
  font-size: 0.85rem;
  color: #dc3545;
  margin-top: 0.25rem;
  display: block;
}

.form-control.is-invalid {
  border-color: #dc3545;
}

.form-control.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* =========================================
   14. BADGES
   ========================================= */

.badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-success {
  background-color: #d4edda;
  color: #155724;
}

.badge-warning {
  background-color: #fff3cd;
  color: #856404;
}

.badge-danger {
  background-color: #f8d7da;
  color: #721c24;
}

.badge-info {
  background-color: #d1ecf1;
  color: #0c5460;
}

.badge-primary {
  background-color: #cce5ff;
  color: #004085;
}

.badge-secondary {
  background-color: #e2e8f0;
  color: #383d41;
}

/* =========================================
   15. ALERTS
   ========================================= */

.alert {
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border-color: #28a745;
}

.alert-error,
.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border-color: #dc3545;
}

.alert-warning {
  background-color: #fff3cd;
  color: #856404;
  border-color: #f0ad4e;
}

.alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border-color: #17a2b8;
}

.alert-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.alert-content {
  flex: 1;
}

.alert-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.alert-close {
  font-size: 1.25rem;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.2s ease;
  margin-left: auto;
  padding: 0.25rem;
}

.alert-close:hover {
  opacity: 1;
}

/* =========================================
   16. FOOTER
   ========================================= */

.footer {
  background-color: #1a1a1a;
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-column h4 {
  color: #ffffff;
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column li {
  margin-bottom: 0.75rem;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s ease;
  font-size: 0.95rem;
}

.footer-column a:hover {
  color: #ffffff;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  font-size: 1.25rem;
  transition: all 0.2s ease;
}

.footer-social a:hover {
  background-color: #2563EB;
  color: #ffffff;
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-newsletter {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.footer-newsletter input {
  flex: 1;
  padding: 0.625rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 0.9rem;
}

.footer-newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer-newsletter input:focus {
  outline: none;
  border-color: #2563EB;
}

.footer-newsletter button {
  padding: 0.625rem 1.5rem;
  background-color: #2563EB;
  color: #ffffff;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.footer-newsletter button:hover {
  background-color: #1D4ED8;
}

/* =========================================
   17. PAGINATION
   ========================================= */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 3rem 0;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0.5rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: #333333;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
}

.pagination a:hover {
  border-color: #2563EB;
  background-color: #f5f7fa;
  color: #2563EB;
}

.pagination .active {
  background-color: #2563EB;
  border-color: #2563EB;
  color: #ffffff;
}

.pagination .disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* =========================================
   18. TRUST INDICATORS
   ========================================= */

.trust-bar {
  background-color: #f5f7fa;
  padding: 2rem 0;
  margin: 3rem 0;
}

.trust-indicators {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
}

.trust-icon {
  font-size: 2.5rem;
  color: #2563EB;
  flex-shrink: 0;
}

.trust-content h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: #333333;
}

.trust-content p {
  font-size: 0.85rem;
  color: #6c757d;
  margin: 0;
}

/* =========================================
   19. BREADCRUMBS
   ========================================= */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0;
  font-size: 0.9rem;
  color: #6c757d;
}

.breadcrumb a {
  color: #6c757d;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: #2563EB;
}

.breadcrumb-separator {
  color: #6c757d;
  margin: 0 0.5rem;
}

.breadcrumb .active {
  color: #333333;
  font-weight: 500;
}

/* =========================================
   20. QUANTITY SELECTOR
   ========================================= */

.qty-selector {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.qty-btn {
  width: 40px;
  height: 40px;
  background-color: #f5f7fa;
  color: #333333;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border: none;
}

.qty-btn:hover {
  background-color: #e2e8f0;
}

.qty-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.qty-input {
  width: 60px;
  height: 40px;
  text-align: center;
  border: none;
  border-left: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  font-size: 1rem;
  font-weight: 600;
  color: #333333;
}

.qty-input:focus {
  outline: none;
}

/* Remove spinner arrows from number input */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-input[type=number] {
  -moz-appearance: textfield;
}

/* =========================================
   21. FILTERS & SIDEBAR
   ========================================= */

.shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.shop-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.filter-section {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.filter-section h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  cursor: pointer;
}

.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.filter-option label {
  cursor: pointer;
  font-size: 0.9rem;
  color: #333333;
  flex: 1;
}

.filter-price-range {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.filter-price-range input {
  width: 100px;
  padding: 0.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.9rem;
}

.shop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.shop-results {
  font-size: 0.95rem;
  color: #6c757d;
}

.shop-sort {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.shop-sort label {
  font-size: 0.9rem;
  color: #6c757d;
  font-weight: 500;
}

.shop-sort select {
  padding: 0.5rem 2rem 0.5rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
}

/* =========================================
   22. LOADING & EMPTY STATES
   ========================================= */

.loading-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid #f5f7fa;
  border-top-color: #2563EB;
  border-radius: 50%;
  animation: spinner 0.8s linear infinite;
}

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

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-state-icon {
  font-size: 4rem;
  color: #e2e8f0;
  margin-bottom: 1.5rem;
}

.empty-state h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333333;
}

.empty-state p {
  font-size: 1rem;
  color: #6c757d;
  margin-bottom: 2rem;
}

/* =========================================
   23. UTILITY CLASSES
   ========================================= */

.d-flex {
  display: flex;
}

.d-inline-flex {
  display: inline-flex;
}

.d-block {
  display: block;
}

.d-none {
  display: none;
}

.align-items-center {
  align-items: center;
}

.justify-content-center {
  justify-content: center;
}

.justify-content-between {
  justify-content: space-between;
}

.gap-1 {
  gap: 0.5rem;
}

.gap-2 {
  gap: 1rem;
}

.gap-3 {
  gap: 1.5rem;
}

.m-0 {
  margin: 0;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.p-0 {
  padding: 0;
}

.pt-1 {
  padding-top: 0.5rem;
}

.pt-2 {
  padding-top: 1rem;
}

.pb-1 {
  padding-bottom: 0.5rem;
}

.pb-2 {
  padding-bottom: 1rem;
}

/* =========================================
   24. RESPONSIVE DESIGN
   ========================================= */

/* Large tablets and small desktops (max-width: 1200px) */
@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .shop-layout {
    grid-template-columns: 240px 1fr;
  }
}

/* Tablets (max-width: 992px) */
@media (max-width: 992px) {
  .container {
    max-width: 720px;
  }

  .navbar-nav {
    display: none;
  }

  .navbar-toggle {
    display: flex;
  }

  .navbar-search {
    max-width: 300px;
    margin: 0 1rem;
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .product-detail {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .shop-layout {
    grid-template-columns: 1fr;
  }

  .shop-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }

  .checkout-container {
    grid-template-columns: 1fr;
  }

  .checkout-order-summary {
    position: static;
  }

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

  .hero p {
    font-size: 1.125rem;
  }
}

/* Mobile landscape and small tablets (max-width: 768px) */
@media (max-width: 768px) {
  .container {
    max-width: 540px;
  }

  .section-padding {
    padding: 40px 0;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .navbar-search {
    display: none;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .cart-table thead {
    display: none;
  }

  .cart-table,
  .cart-table tbody,
  .cart-table tr,
  .cart-table td {
    display: block;
    width: 100%;
  }

  .cart-table tr {
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
  }

  .cart-table td {
    text-align: right;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    padding-left: 50%;
  }

  .cart-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 1rem;
    font-weight: 600;
    text-align: left;
  }

  .cart-product-info {
    flex-direction: column;
    align-items: flex-start;
  }

  .shop-sidebar {
    grid-template-columns: 1fr;
  }

  .shop-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .trust-indicators {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 400px;
  }

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

  .hero p {
    font-size: 1rem;
  }

  .product-detail-actions {
    flex-direction: column;
  }

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

/* Mobile portrait (max-width: 576px) */
@media (max-width: 576px) {
  .container {
    padding: 0 15px;
  }

  .section-padding {
    padding: 30px 0;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .navbar-container {
    padding: 0.75rem 15px;
  }

  .navbar-brand {
    font-size: 1.25rem;
  }

  .navbar-brand img {
    height: 32px;
    width: auto;
    max-height: 32px;
    max-width: 100px;
    object-fit: contain;
  }

  .navbar-actions {
    gap: 1rem;
  }

  .navbar-actions .user-dropdown {
    padding: 0.25rem 0.5rem;
  }

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

  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 350px;
  }

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

  .hero p {
    font-size: 0.95rem;
  }

  .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.95rem;
  }

  .btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
  }

  .product-detail-price-current {
    font-size: 2rem;
  }

  .product-detail-price-old {
    font-size: 1.25rem;
  }

  .cart-summary,
  .checkout-form,
  .checkout-order-summary {
    padding: 1.5rem;
  }

  .pagination {
    gap: 0.25rem;
  }

  .pagination a,
  .pagination span {
    min-width: 36px;
    height: 36px;
    padding: 0.375rem 0.5rem;
  }
}

/* Extra small devices (max-width: 400px) */
@media (max-width: 400px) {
  .navbar-brand {
    font-size: 1.125rem;
  }

  .navbar-actions .cart-icon {
    font-size: 1.25rem;
  }

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

  .product-card {
    border-radius: 8px;
  }

  .product-info {
    padding: 1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }
}

/* =========================================
   25. PRINT STYLES
   ========================================= */

@media print {
  .navbar,
  .footer,
  .btn,
  .navbar-toggle,
  .navbar-actions {
    display: none !important;
  }

  body {
    background-color: #ffffff;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  .product-card,
  .cart-table-container,
  .checkout-form {
    box-shadow: none;
    border: 1px solid #e2e8f0;
  }
}

/* =========================================
   26. MOBILE DRAWER OVERRIDE (HIGH SPECIFICITY)
   ========================================= */

/* Hide drawer-only elements on desktop */
.drawer-backdrop { display: none !important; position: fixed !important; }
.drawer-header { display: none !important; }
.drawer-user-links { display: none !important; }
.drawer-close { display: none !important; }
.drawer-divider { display: none !important; }
.drawer-logo { display: none !important; }
.drawer-arrow { display: none !important; }
.drawer-brand-name { display: none !important; }
.drawer-cta-register { display: none !important; }
.drawer-social { display: none !important; }

@media screen and (min-width: 769px) {
  .drawer-backdrop,
  .drawer-header,
  .drawer-user-links,
  .drawer-close,
  .drawer-guest-links,
  .drawer-section-label,
  .drawer-link,
  .drawer-logo,
  .drawer-divider,
  .drawer-arrow,
  .drawer-brand-name,
  .drawer-cta-register,
  .drawer-social {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    pointer-events: none !important;
  }

}

@media screen and (max-width: 768px) {
  /* Force hamburger visible */
  nav.navbar .navbar-container button.navbar-toggle {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    background-color: #333333 !important;
    border: 2px solid #555555 !important;
    border-radius: 8px !important;
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    margin-left: auto;
  }

  nav.navbar .navbar-container button.navbar-toggle .hamburger span {
    background-color: #ffffff !important;
    height: 3px !important;
  }

  /* Hide hamburger when drawer is open */
  nav.navbar .navbar-container button.navbar-toggle.active {
    opacity: 0 !important;
    pointer-events: none !important;
  }

  /* ===== BACKDROP ===== */
  .drawer-backdrop {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9998;
  }

  .drawer-backdrop.show {
    display: block !important;
  }

  /* ===== DRAWER PANEL (White, slides from LEFT) ===== */
  nav.navbar .navbar-menu {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    right: auto !important;
    width: 82% !important;
    max-width: 320px !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: #ffffff !important;
    display: flex !important;
    flex-direction: column !important;
    flex: none !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
    z-index: 9999 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    transform: translateX(-100%) !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    visibility: hidden !important;
    box-shadow: none !important;
  }

  nav.navbar .navbar-menu.show {
    transform: translateX(0) !important;
    visibility: visible !important;
    box-shadow: 4px 0 20px rgba(0,0,0,0.15) !important;
  }

  /* Kill the old ::before "Menú" header */
  nav.navbar .navbar-menu::before,
  nav.navbar .navbar-menu.show::before {
    display: none !important;
    content: none !important;
    height: 0 !important;
    padding: 0 !important;
    border: none !important;
  }

  /* ===== DRAWER HEADER (Logo + X) ===== */
  nav.navbar .drawer-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 16px 20px !important;
    background: #ffffff !important;
    border-bottom: 1px solid #eee !important;
    flex-shrink: 0 !important;
    gap: 12px !important;
  }

  nav.navbar .drawer-logo {
    display: flex !important;
    align-items: center !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    visibility: visible !important;
    overflow: visible !important;
    pointer-events: auto !important;
  }

  nav.navbar .drawer-logo img {
    height: 36px !important;
    width: auto !important;
    max-width: 160px !important;
    object-fit: contain !important;
  }

  nav.navbar .drawer-brand-name {
    display: inline !important;
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    color: #1a1a1a !important;
    letter-spacing: -0.3px !important;
    margin-left: 8px !important;
    visibility: visible !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    position: static !important;
    pointer-events: auto !important;
  }

  nav.navbar .drawer-close {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    color: #333 !important;
    font-size: 1.2rem !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
  }

  nav.navbar .drawer-close:hover {
    color: #000 !important;
  }

  /* ===== SEARCH BAR (hidden on mobile) ===== */
  nav.navbar .navbar-menu .navbar-search {
    display: none !important;
  }

  /* ===== NAV LINKS (Clean text) ===== */
  nav.navbar .navbar-menu .navbar-nav {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    padding: 8px 0 !important;
    gap: 0 !important;
    order: 1 !important;
    margin: 0 !important;
  }

  nav.navbar .navbar-menu .navbar-nav a {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    width: 100% !important;
    padding: 14px 20px !important;
    color: #333 !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border-bottom: none !important;
    background-color: transparent !important;
    box-sizing: border-box !important;
    transition: background 0.15s ease !important;
    gap: 0 !important;
  }

  nav.navbar .navbar-menu .navbar-nav a:hover,
  nav.navbar .navbar-menu .navbar-nav a:active {
    background-color: #f8f8f8 !important;
    color: #1B5E20 !important;
  }

  /* Hide old nav icons, show arrows */
  nav.navbar .navbar-menu .navbar-nav a i:not(.drawer-arrow) {
    display: none !important;
  }

  nav.navbar .navbar-menu .navbar-nav a i.drawer-arrow {
    display: inline-flex !important;
    width: auto !important;
    height: auto !important;
    min-width: auto !important;
    max-width: none !important;
    background: none !important;
    border-radius: 0 !important;
    font-size: 0.7rem !important;
    color: #ccc !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
    position: static !important;
    visibility: visible !important;
    overflow: visible !important;
    pointer-events: auto !important;
  }

  nav.navbar .navbar-menu .navbar-nav a:hover i.drawer-arrow {
    color: #1B5E20 !important;
  }

  nav.navbar .navbar-menu .navbar-nav a span {
    flex: 1 !important;
    text-align: left !important;
  }

  nav.navbar .navbar-menu .navbar-nav a.active::after {
    display: none !important;
  }

  /* ===== ACTIONS SECTION ===== */
  nav.navbar .navbar-menu .navbar-actions {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    padding: 0 !important;
    gap: 0 !important;
    border-top: none !important;
    order: 2 !important;
  }

  /* Cart link - clean text */
  nav.navbar .navbar-menu .navbar-actions .cart-link {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    width: 100% !important;
    padding: 14px 20px !important;
    color: #333 !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border-bottom: none !important;
    box-sizing: border-box !important;
    transition: background 0.15s ease !important;
    gap: 0 !important;
  }

  nav.navbar .navbar-menu .navbar-actions .cart-link:hover {
    background: #f8f8f8 !important;
    color: #1B5E20 !important;
  }

  /* Hide cart icon box on mobile */
  nav.navbar .navbar-menu .navbar-actions .cart-link > i.cart-icon-desktop {
    display: none !important;
  }

  nav.navbar .navbar-menu .navbar-actions .cart-link > i:not(.cart-icon-desktop) {
    display: none !important;
  }

  nav.navbar .navbar-menu .navbar-actions .cart-link .cart-text {
    display: block !important;
    flex: 1 !important;
    font-weight: 600 !important;
    text-align: left !important;
  }

  nav.navbar .navbar-menu .navbar-actions .cart-link .cart-badge {
    position: static !important;
    background-color: #1B5E20 !important;
    color: #ffffff !important;
    padding: 2px 8px !important;
    border-radius: 10px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    flex-shrink: 0 !important;
  }

  /* Hide desktop user menu & auth buttons in drawer */
  nav.navbar .navbar-menu .navbar-actions .user-menu {
    display: none !important;
  }

  nav.navbar .navbar-menu .navbar-actions .auth-buttons {
    display: none !important;
  }

  /* ===== DRAWER DIVIDER ===== */
  nav.navbar .drawer-divider {
    display: block !important;
    height: 1px !important;
    width: auto !important;
    background: #eee !important;
    margin: 4px 20px !important;
    position: static !important;
    visibility: visible !important;
    overflow: visible !important;
    pointer-events: none !important;
  }

  /* ===== DRAWER USER LINKS ===== */
  nav.navbar .navbar-menu .drawer-user-links {
    display: block !important;
    width: 100% !important;
    border-top: none !important;
    padding-top: 0 !important;
  }

  nav.navbar .drawer-section-label {
    display: block !important;
    padding: 16px 20px 8px !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    color: #999 !important;
    position: static !important;
    visibility: visible !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    pointer-events: auto !important;
  }

  nav.navbar .drawer-link {
    display: flex !important;
    align-items: center !important;
    padding: 13px 20px !important;
    color: #333 !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border-bottom: none !important;
    transition: background 0.15s ease !important;
    gap: 0 !important;
    position: static !important;
    visibility: visible !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    pointer-events: auto !important;
  }

  nav.navbar .drawer-link span {
    flex: 1 !important;
  }

  /* Arrow chevron in drawer links */
  nav.navbar .drawer-link i.drawer-arrow {
    display: inline-flex !important;
    font-size: 0.7rem !important;
    color: #ccc !important;
    margin-left: auto !important;
    width: auto !important;
    height: auto !important;
    min-width: auto !important;
    background: none !important;
    border-radius: 0 !important;
    flex-shrink: 0 !important;
    position: static !important;
    visibility: visible !important;
    overflow: visible !important;
    pointer-events: auto !important;
  }

  /* Hide old icon boxes in drawer links */
  nav.navbar .drawer-link i:not(.drawer-arrow) {
    display: none !important;
  }

  nav.navbar .drawer-link:hover {
    background: #f8f8f8 !important;
    color: #1B5E20 !important;
  }

  nav.navbar .drawer-link:hover i.drawer-arrow {
    color: #1B5E20 !important;
  }

  nav.navbar .drawer-link-logout {
    color: #dc3545 !important;
    font-weight: 500 !important;
  }

  nav.navbar .drawer-link-logout:hover {
    background: #fef2f2 !important;
    color: #dc3545 !important;
  }

  /* ===== CREAR CUENTA CTA BUTTON ===== */
  nav.navbar .drawer-cta-register {
    display: block !important;
    margin: 12px 20px !important;
    padding: 12px 20px !important;
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%) !important;
    color: #fff !important;
    text-align: center !important;
    border-radius: 8px !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    visibility: visible !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    position: static !important;
    pointer-events: auto !important;
  }

  nav.navbar .drawer-cta-register:hover {
    background: linear-gradient(135deg, #383838 0%, #262626 100%) !important;
  }

  /* ===== SOCIAL LINKS AT BOTTOM ===== */
  nav.navbar .drawer-social {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 20px !important;
    padding: 20px !important;
    border-top: 1px solid #eee !important;
    flex-shrink: 0 !important;
    order: 3 !important;
    visibility: visible !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    position: static !important;
    pointer-events: auto !important;
  }

  nav.navbar .drawer-social a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: #f3f3f3 !important;
    color: #555 !important;
    font-size: 1rem !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    visibility: visible !important;
    position: static !important;
    overflow: visible !important;
    pointer-events: auto !important;
  }

  nav.navbar .drawer-social a:hover {
    background: #1B5E20 !important;
    color: #fff !important;
  }
}

.drawer-close {
  display: none;
}

/* =========================================
   END OF STYLESHEET
   ========================================= */
