@import url("design-tokens.css");

body {
    font-family: "Segoe UI", Roboto, sans-serif;
    background: var(--gradient-page);
    margin: 0;
    color: var(--color-text);
  }
  
  h1, h2, h3, h4 {
    color: var(--color-product-title);
    margin: 0;
  }
  
  /* --- HEADER --- */
  .header {
    background: var(--gradient-header-main);
    border-bottom: 1px solid var(--color-header-border);
    padding: clamp(10px, 2vw, 12px) var(--layout-navbar-inline);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1100;
  }
  
  .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-width: 0;
  }
  
  .logo-section .logo {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--color-interactive-hover);
    margin: 0;
  }
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: var(--font-sans);
    color: var(--color-text);
    line-height: 1.6;
    background: var(--gradient-page);
  }
  
  /* Header Styles */
  .header {
    background: var(--gradient-header-main);
    padding: 15px 0;
    border-bottom: 1px solid var(--color-header-border);
    position: relative;
    z-index: 1100;
  }
  
  .header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--layout-header-inline);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-width: 0;
  }
  
  .logo {
    width: min(200px, 42vw);
    max-width: 100%;
    flex-shrink: 0;
  }

  .logo img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  
  .search-bar input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid var(--color-border);
  font-size: 14px;
  }
  
  .search-bar button {
  background: var(--gradient-search-tech);
  color: var(--color-header-on-dark);
  border: none;
  padding: 10px 22px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  border-radius: 0 999px 999px 0;
  box-shadow: var(--shadow-search-glow);
  transition: filter 0.2s ease, box-shadow 0.2s ease;
  }
  .search-bar button:hover {
  filter: brightness(1.08);
  box-shadow: var(--shadow-search-glow-hover);
  }
  
  /* Tu barra de búsqueda original */
  .search-bar {
    flex: 1;
    min-width: 0;
    max-width: 600px;
    display: flex;
    position: relative; /* necesario para posicionar el dropdown */
  }
  
  /* === Resultados desplegables === */
  .search-results {
    position: absolute;
    top: 100%; /* justo debajo del input */
    left: 0;
    width: 100%;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    max-height: 350px;
    overflow-y: auto;
    z-index: 9999;
    margin-top: 5px;
    display: none;
    animation: fadeIn 0.2s ease-in-out;
  }
  
  /* Animación suave al aparecer */
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  /* Cada ítem de resultado */
  .result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.2s ease;
  }
  
  .result-item:hover {
    background: var(--color-search-row-hover);
  }
  
  /* Imagen del producto */
  .result-item img {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    background-color: #fafafa;
  }
  
  /* Información del producto */
  .result-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.3;
  }
  
  .result-info strong {
    font-size: 15px;
    color: var(--color-text);
    font-weight: 600;
  }
  
  .result-info span {
    font-size: 13px;
    color: var(--color-text-muted);
  }
  
  /* Scrollbar más discreta */
  .search-results::-webkit-scrollbar {
    width: 6px;
  }
  
  .search-results::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 10px;
  }
  
  
  .header-right {
    display: flex;
    align-items: center;
    gap: 30px;
  }

  /* Base menu-toggle (hidden on desktop) */
  .menu-toggle {
    display: none;
    font-size: 0.95rem;
    color: white;
    text-decoration: none;
    padding: 0.55rem 0.95rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    transition: background 0.2s ease;
  }

  .menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
  }
  
  .contact-info {
    text-align: right;
  }
  
  .phone {
    font-size: 18px;
    font-weight: bold;
    color: var(--color-text);
    text-decoration: none;
  }
  
  .email {
    font-size: 12px;
    color: var(--color-interactive);
    text-decoration: none;
  }
  
  .account-link {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: var(--color-interactive);
  }
  
  .cart-link {
    text-decoration: none;
    color: var(--color-text);
    font-size: 18px;
  }
  
  
  /* --- BOTÓN CART (alineado correctamente) --- */
  .header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }
  
  .cart-count {
    background: var(--color-promo);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
    line-height: 1;
    transition: background 0.3s, transform 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
  }
  
  .cart-count:hover {
    background: var(--color-promo-hover);
    transform: translateY(-2px);
  }
  
  /* --- BREADCRUMB --- */
  .breadcrumb {
    padding: 14px 40px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
  }
  .breadcrumb a {
    color: var(--color-interactive-hover);
    text-decoration: none;
  }
  
  /* --- MAIN LAYOUT --- */
  .main-content {
    display: flex;
    justify-content: center;
    padding: 40px;
  }
  
  .cart-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    width: 100%;
    max-width: 1200px;
  }
  
  /* --- CARRITO --- */
  .cart-items-section h2 {
    margin-bottom: 20px;
    font-size: 1.4rem;
    color: var(--color-interactive-hover);
  }
  
  .cart-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  /* --- ITEM DEL CARRITO --- */
  .cart-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    padding: 18px;
    transition: 0.3s;
  }
  
  .cart-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.08);
  }
  
  .cart-image {
    width: 130px;
    height: 130px;
    object-fit: contain;
    border-radius: 10px;
    margin-right: 20px;
  }
  
  .cart-info {
    flex: 1;
  }
  
  .cart-info h3 {
    margin-bottom: 8px;
    font-size: 1.1rem;
    color: var(--color-text);
  }
  
  .cart-info p {
    margin: 3px 0;
    color: #555;
    font-size: 0.9rem;
  }
  
  /* --- CONTROLES DE CANTIDAD --- */
  .quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
  }
  
  .quantity-controls button {
    background: var(--color-interactive-hover);
    color: #fff;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
    transition: 0.2s;
  }
  
  .quantity-controls button:hover {
    background: #00327a;
  }
  
  .quantity-controls span {
    font-weight: bold;
    font-size: 1rem;
    min-width: 24px;
    text-align: center;
  }
  
  /* --- MENSAJE VACÍO --- */
  .empty-cart-message {
    text-align: center;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  }
  
  /* --- PANEL DE RESUMEN --- */
  .cart-summary-section {
    background: transparent;
  }
  
  .summary-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #e5e7eb;
  }
  
  .summary-card h3 {
    border-bottom: 2px solid var(--color-promo);
    padding-bottom: 8px;
    margin-bottom: 15px;
    color: var(--color-interactive-hover);
  }
  
  .summary-row {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    color: var(--color-text);
  }
  
  .checkout-btn {
    background: var(--color-promo);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.95rem;
    cursor: pointer;
    width: 100%;
    transition: 0.3s;
  }
  
  .checkout-btn:hover {
    background: var(--color-promo-hover);
  }
  
  .continue-shopping-link {
    display: block;
    text-align: center;
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--color-interactive-hover);
    text-decoration: none;
  }
  
  .continue-shopping-link:hover {
    text-decoration: underline;
  }
  /* Footer */ /* Footer */
  .footer-contact {
      background: #e8eef3;
      padding: var(--layout-section-padding);
      display: flex;
      justify-content: space-between;
      align-items: center;
  }
  
  .footer-contact h2 {
      font-size: 32px;
      color: var(--color-text);
  }
  
  .footer-contact-info {
      display: flex;
      flex-wrap: wrap;
      gap: var(--layout-section-gap);
  }
  
  .footer-contact-item h3 {
      font-size: 18px;
      color: var(--color-interactive-hover);
      margin-bottom: 10px;
  }
  
  .footer-main {
      background: white;
      padding: var(--layout-section-padding);
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: var(--layout-section-gap);
  }
  
  .footer-column h3 {
      font-size: 18px;
      margin-bottom: 20px;
      color: var(--color-text);
  }
  .footer-column img {
      width: 20vh;
  }
  .footer-column ul {
      list-style: none;
  }
  
  .footer-column li {
      padding: 8px 0;
  }
  
  .footer-column a {
      color: var(--color-interactive);
      text-decoration: none;
      font-size: 14px;
  }
  
  .footer-column a:hover {
      text-decoration: underline;
  }
  
  .social-icons {
      display: flex;
      gap: 15px;
      margin-top: 20px;
  }
  
  .social-icon {
      width: 35px;
      height: 35px;
      background: var(--color-interactive);
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 4px;
      text-decoration: none;
  }
  
  .footer-bottom {
      background: var(--gradient-nav);
      color: white;
      padding: var(--layout-footer-bottom-pad);
      text-align: center;
      font-size: 14px;
  }
  
  /* Contact Section */
  .contact-section {
      background: var(--color-category-surface);
      padding: var(--layout-section-padding);
      margin-top: 40px;
      border-top: 2px solid var(--color-interactive-hover);
  }
  .contact-container {
      max-width: 1400px;
      margin: 0 auto;
      text-align: center;
  }
  .contact-container h2 {
      font-size: 28px;
      color: var(--color-interactive-hover);
      margin-bottom: 24px;
  }
  .contact-methods {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 18px;
      align-items: stretch;
  }
  .contact-method {
      background: white;
      padding: 18px;
      border-radius: 8px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
      text-align: left;
  }
  .contact-method strong { color: var(--color-interactive-hover); display: block; margin-bottom: 8px; }
  .contact-method p { font-size: 15px; color: var(--color-text-muted); margin: 0; }

  @media (max-width: 1024px) {
    .contact-methods { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 768px) {
    .contact-methods { grid-template-columns: 1fr; gap: 14px; }
    .contact-method { text-align: center; padding: 16px; }
    .contact-method strong { font-size: 18px; }
    .contact-method p { font-size: 15px; }
  }
  
  
  /* Navigation Bar */
  .navbar {
      background: var(--gradient-nav);
      display: flex;
      align-items: center;
      padding: 0 var(--layout-navbar-inline);
      position: relative;
      justify-content: center;
      flex-wrap: wrap;
      row-gap: 0.25rem;
      column-gap: clamp(0.2rem, 1.2vw, 1rem);
  }
  
  .nav-item {
      position: relative;
      color: white;
      padding: 12px 16px;
      cursor: pointer;
      font-size: 14px;
      font-weight: 500;
      text-transform: uppercase;
      border: none;
      background: none;
      margin-left: 0;
  }
  .navbar.fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  }
  
  
  .nav-item:hover {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
  }
  
  .nav-item.promotions {
    background: var(--color-promo);
    border-radius: var(--radius-sm);
  }
  
  .nav-item.promotions:hover {
    background: var(--color-promo-hover);
  }
  
  .member-price {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 12px;
  }
  
  .member-price .star {
    color: var(--color-member-star);
  }
  
  .inactive-badge {
    background: var(--color-danger);
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
  }
  
  .dropdown {
    position: static; /* 🔥 clave */
  }
  .dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px); /* empieza un poco abajo */
    width: min(1200px, calc(100vw - 24px));
    max-width: 100%;
    max-height: 600px;
    overflow-y: auto;
    background: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    padding: 30px;
    border-radius: 0 0 8px 8px;
  
    /* 🔥 IMPORTANTE */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  
    transition: all 0.25s ease;
  }
  
  /* estado visible */
  .dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
  
  
  
  .dropdown-content h3 {
    color: var(--color-interactive-hover);
    font-size: 20px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--color-interactive-hover);
  }
  
  /* Category list styles */
  .category-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .category-item {
    background: var(--color-category-surface);
    border-radius: 8px;
    overflow: visible;
    transition: all 0.3s ease;
    border: 1px solid var(--color-category-border);
    position: relative;
    z-index: 1; /* Added z-index for proper layering */
  }
  
  /* Increase z-index when category is active to appear above others */
  .category-item.active {
    z-index: 200;
  }
  
  .category-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
  }
  
  .category-item > span {
    display: block;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 14px;
    color: var(--color-interactive-hover);
    background: var(--gradient-category-tab);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 8px; /* Added border radius to match container */
  }
  
  .category-item > span::after {
    content: "▼";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    transition: transform 0.3s ease;
    color: var(--color-interactive-hover); /* Added color for better visibility */
  }
  
  /* Change background when active */
  .category-item.active > span {
    background: var(--gradient-interactive-deep);
    color: white;
    border-radius: 8px 8px 0 0;
  }
  
  .category-item.active > span::after {
    transform: translateY(-50%) rotate(180deg);
    color: white; /* White arrow when active */
  }
  
  .category-item > span:hover {
    background: linear-gradient(135deg, #e8eef3 0%, #d8e3ed 100%);
    padding-left: 25px;
  }
  
  /* Override hover when active */
  .category-item.active > span:hover {
    background: var(--gradient-interactive-deep);
    padding-left: 20px;
  }
  
  /* Subcategory list styles */
  .subcategory-list {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.3s ease;
    background: white;
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    z-index: 250; /* Increased z-index to appear above everything */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); /* Enhanced shadow for better depth */
    border-radius: 0 0 8px 8px;
    opacity: 0;
    pointer-events: none;
    border: 2px solid var(--color-interactive-hover); /* Better border styling */
    border-top: none;
  }
  
  .category-item.active .subcategory-list {
    max-height: 600px;
    padding: 10px 0; /* Added padding for better spacing */
    opacity: 1;
    pointer-events: auto;
    margin-top: 0;
  }
  
  .subcategory-list li {
    padding: 12px 25px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    background: white;
    position: relative;
  }
  
  /* Added icon before each subcategory item */
  .subcategory-list li::before {
    content: "›";
    position: absolute;
    left: 12px;
    color: var(--color-interactive-hover);
    font-size: 18px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.2s ease;
  }
  
  .subcategory-list li:hover::before {
    opacity: 1;
  }
  
  .subcategory-list li:hover {
    background: linear-gradient(90deg, #f0f7ff 0%, #ffffff 100%); /* Enhanced hover effect with gradient */
    color: var(--color-interactive-hover);
    padding-left: 30px;
    border-left-color: var(--color-interactive-hover);
    font-weight: 500;
  }
  
  .subcategory-list li:first-child {
    padding-top: 15px;
  }
  
  .subcategory-list li:last-child {
    padding-bottom: 15px;
    border-radius: 0 0 6px 6px;
  }
  
  /* Brands dropdown */
  .brand-link
  .brand-link {
    font-size: 12.5px;
    color: #444;
    cursor: pointer; /* 🔥 CLAVE */
    display: inline-block;
    padding: 3px 0;
    transition: all 0.2s ease;
  }
  
  /* HOVER */
  .brand-link:hover {
    color: var(--color-interactive-hover);
    padding-left: 6px;
  }
  
  /* EFECTO MÁS PRO */
  .brand-link::after {
    content: "";
    display: block;
    width: 0%;
    height: 1px;
    background: var(--color-interactive-hover);
    transition: width 0.2s ease;
  }
  
  .brand-link:hover::after {
    width: 100%;
  } 
  
  .brands-dropdown
  .brands-dropdown {
    width: min(950px, calc(100vw - 24px));
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-x: auto;
    padding: 15px 20px;
  }

  .brands-dropdown .dropdown-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(9rem, 100%), 1fr));
  }
  
  /* LOGOS más compactos */
  .brand-logos {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
  }
  
  .brand-logo {
    height: 40px;
    padding: 5px 10px;
    border-radius: 6px;
  }
  
  /* GRID más compacto */
  .dropdown-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
  }
  
  /* LETRAS */
  .letter-title {
    font-size: 12px;
    margin-bottom: 5px;
    padding-bottom: 3px;
  }
  
  /* LISTA */
  .dropdown-column li {
    margin: 2px 0;
  }
  
  /* TEXTO */
  .brand-link {
    font-size: 12.5px;
    line-height: 1.2;
  } 
  
  
  
  /* ================================= */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 80px;
  right: 10px;
  background-color: #25D366;
  color: white;
  font-size: 1.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 999;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  animation: float 3s ease-in-out infinite, pulse 2s infinite;
}

  
  .whatsapp-float:hover {
    background-color: #1ebe5d;
    transform: scale(1.1);
  }

/* Tablas más legibles (jerarquía visual clara; excluye tablas de maquetación si usas .layout-table) */
table:not(.layout-table) {
  border-collapse: collapse;
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
table:not(.layout-table) caption {
  caption-side: top;
  text-align: left;
  font-weight: 600;
  padding: 0.5rem 0;
  color: var(--color-text);
}
table:not(.layout-table) thead th {
  background: var(--gradient-table-header);
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 12px 14px;
  text-align: left;
  border-bottom: 2px solid var(--color-border-strong);
}
table:not(.layout-table) tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
  color: var(--color-text);
}


@media (max-width: 768px) {
  /* Mueve el botón de WhatsApp más arriba para dejar espacio al chat */
  .whatsapp-float {
    bottom: 150px !important; /* Ajusta este valor según cuánto espacio necesites */
  }

  /* Si el chat de Zoho también tiene una posición fija, 
     asegúrate de que el chat se quede abajo y WhatsApp arriba */
  #zoho-chat-id, /* Cambia esto por el selector real de tu chat */
  .zsalesiq { 
    bottom: 20px !important;
  }
}

/* Para pantallas muy pequeñas, ajusta el tamaño si es necesario */
@media (max-width: 480px) {
  .whatsapp-float {
    bottom: 140px !important;
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
  }
}
table:not(.layout-table) tbody tr:nth-child(even) { background: var(--color-surface-muted); }
table:not(.layout-table) tbody tr:hover { background: var(--color-interactive-soft); }
table:not(.layout-table) tbody tr:last-child td { border-bottom: none; }

/* ---------- MÓVIL (<=768px) — ajustes para carrito ---------- */
@media (max-width: 768px) {

  /* Header / menu */
  .header { padding: 0.6rem 0; }
  .header-container { flex-wrap: wrap; align-items: center; gap: 0.5rem; padding: 0 0.75rem; position: relative; }
  .logo, .logo img, .logo img[style] { width: 110px !important; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; font-size: 1.4rem; color: #fff; background: rgba(255,255,255,0.10); border-radius: 8px; cursor: pointer; margin-left: auto; order: 2; }
  .menu-toggle:hover { background: rgba(255,255,255,0.16); }
  .search-bar { order: 5; flex-basis: 100% !important; max-width: 100% !important; margin-top: 0.25rem; }

  /* Make navbar horizontally scrollable on small screens */
  .navbar { display: flex !important; flex-wrap: nowrap; flex-direction: row; justify-content: flex-start; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; gap: 0.25rem; padding: 0.4rem 0.5rem; width: 100%; }
  .navbar::-webkit-scrollbar { display: none; }
  .nav-item { flex: 0 0 auto; font-size: 0.78rem; padding: 0.55rem 0.85rem; white-space: nowrap; border-bottom: none; width: auto; }

  /* Cart layout: single column */
  .cart-container { grid-template-columns: 1fr; gap: 16px; padding: 0 12px; }
  .cart-item { flex-direction: column; align-items: stretch; padding: 14px; gap: 12px; }
  .cart-image { width: 100%; height: auto; max-height: 220px; object-fit: contain; margin: 0 auto 8px; }
  .cart-info { width: 100%; }

  /* Summary becomes full width under items */
  .cart-summary-section { order: 3; }
  .summary-card { width: 100%; }

  /* Breadcrumb and main content padding */
  .breadcrumb { padding: 12px 16px; }
  .main-content { padding: 16px 12px; }

  /* Buttons and controls larger hit areas */
  .quantity-controls button { width: 36px; height: 36px; }
  .checkout-btn { padding: 12px 14px; }

}

/* Footer responsive tweaks */
@media (max-width: 768px) {
  .footer-main {
    display: block;
    padding: 20px 16px;
  }
  .footer-column {
    margin-bottom: 18px;
  }
  .footer-column h3 {
    font-size: 16px;
  }
  .footer-column img {
    max-width: 140px;
    height: auto;
  }
  .footer-bottom {
    padding: 14px 12px;
  }
}

