/* TIENDA CÓRCEGA - GLOBAL STYLES */

:root {
  --bg-crema: #fdfcf7;
  --panel-oscuro: #01323f;
  --font-base: 'Inter', sans-serif;
  --font-display: 'Playfair Display', serif;
  --font-sync: 'Syncopate', sans-serif;
  
  --bg-color: #fdfcf7;
  --panel-oscuro: #01323f;
  --naranja-accent: #ed7053;
  --naranja-oscuro: #b7542c;
  --texto-muted: #666;
  --border: rgba(1, 50, 63, 0.1);
  --shadow: 0 10px 40px rgba(1, 50, 63, 0.08);
  --radio: 24px;
}

/* Agotado Styles */
.product-card.agotado {
  opacity: 0.8;
}
.product-card.agotado .product-img-container img {
  filter: grayscale(0.8);
}
.badge-agotado {
  position: absolute;
  top: 15px;
  left: 15px;
  background: white;
  color: var(--panel-oscuro);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  letter-spacing: 1px;
}
.btn-add-cart:disabled {
  background: #eee !important;
  color: #aaa !important;
  cursor: not-allowed !important;
}

/* Standardized Loader */
.corcega-loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    gap: 15px;
    animation: fadeInLoader 0.4s ease;
    width: 100%;
    grid-column: 1 / -1; /* For grids */
    margin: 0 auto;
}
.corcega-spinner {
    font-size: 32px;
    color: var(--naranja-accent);
}
.corcega-loader-text {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--panel-oscuro);
    margin: 0;
    letter-spacing: 0.5px;
}
@keyframes fadeInLoader {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

body {
    background-color: var(--bg-color);
    margin: 0;
    font-family: var(--font-base);
    color: var(--panel-oscuro);
    overflow-x: hidden;
}

/* Background image */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: url('../img/wallpaper.png');
  background-size: 500px;
  opacity: 0.15;
  z-index: -1;
  pointer-events: none;
}

.top-bar {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 2000;
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

header {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    height: 100px;
    background: white !important;
    padding: 0 40px;
}

.header-left {
    display: flex;
    justify-content: flex-start;
}

.header-center {
    display: flex;
    justify-content: center;
}

.header-right {
    display: flex;
    justify-content: flex-end;
}

.mini-logo {
    width: 45px;
    height: auto;
    transition: transform 0.3s;
}

.mini-logo:hover {
    transform: scale(1.05);
}

.brand {
    text-align: center;
}

.brand-top {
    display: block;
    font-family: var(--font-sync);
    font-size: 10px;
    letter-spacing: 4px;
    color: var(--panel-oscuro);
    font-weight: 700;
}

.brand-bottom {
    display: block;
    font-family: var(--font-sync);
    font-size: 11px;
    letter-spacing: 5px;
    color: var(--panel-oscuro);
    font-weight: 800;
    margin-top: 2px;
}

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

.header-actions a, .cart-icon {
    color: var(--panel-oscuro) !important;
    font-size: 24px !important;
    text-decoration: none;
    position: relative;
    cursor: pointer;
}

/* TIENDA GRID */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
  background: white;
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s;
  animation: fadeInUp 0.5s ease backwards;
}

.product-card:hover { transform: translateY(-5px); }

.product-img-container {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: linear-gradient(90deg, #f0f0ee 25%, #e8e8e5 50%, #f0f0ee 75%);
    background-size: 200% 100%;
    animation: imgSkeleton 1.4s ease-in-out infinite;
}
.product-img-container.img-loaded {
    background: none;
    animation: none;
}
@keyframes imgSkeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

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

/* Card carousel */
.card-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}
.card-carousel img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.35s ease;
}
.card-carousel img.active { opacity: 0; transition: opacity 0.4s ease; }
.card-carousel img.active.img-loaded { opacity: 1; }

.card-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.92);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 3;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    opacity: 0;
    transition: opacity 0.2s;
    color: var(--panel-oscuro);
    line-height: 1;
}
.product-img-container:hover .card-carousel-btn { opacity: 1; }
.card-carousel-btn.prev { left: 8px; }
.card-carousel-btn.next { right: 8px; }

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

.product-title {
    font-family: var(--font-display);
    font-size: 18px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.badge-retiro {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #e8f9ee;
    color: #1a6b3a;
    border-radius: 20px;
    padding: 3px 9px;
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
    cursor: default;
    line-height: 1;
}

#retiro-tooltip-global {
    position: fixed;
    z-index: 99999;
    background: #1a1a1a;
    color: white;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 8px;
    pointer-events: none;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.1s ease;
}

.product-desc {
    font-size: 0.85rem;
    color: var(--panel-oscuro);
    opacity: 0.8;
    margin-bottom: 20px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: pre-wrap; /* Respeta saltos de línea */
}

.product-bio {
    white-space: pre-wrap;
}

.product-detail-desc {
    white-space: pre-wrap;
}

.product-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-weight: 800;
    color: var(--naranja-accent);
}

.btn-add-cart {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--panel-oscuro);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-cart:hover { background: var(--naranja-accent); }

/* Ícono carrito + plus (estilo ML) */
.cart-plus-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-plus-icon .fa-shopping-cart {
    font-size: 16px;
}
.cart-plus-icon .fa-plus {
    font-size: 8px;
    font-weight: 900;
    position: absolute;
    top: -4px;
    right: -5px;
    background: var(--naranja-accent);
    border-radius: 50%;
    width: 11px;
    height: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.btn-add-cart:hover .cart-plus-icon .fa-plus {
    background: white;
    color: var(--naranja-accent);
}

/* CART DRAWER */
.cart-drawer {
    position: fixed;
    top: 0; right: -450px;
    width: 100%;
    max-width: 450px;
    height: 100vh;
    background: white;
    z-index: 5000;
    box-shadow: -10px 0 50px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.cart-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(1, 50, 63, 0.3);
    backdrop-filter: blur(4px);
    z-index: 4500;
    display: none;
}

.cart-overlay.active { display: block; }

.cart-header {
    padding: 30px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 { font-family: var(--font-display); font-size: 24px; }

.btn-close-cart { background: none; border: none; font-size: 24px; cursor: pointer; }

.cart-items { flex: 1; padding: 30px; overflow-y: auto; }

.cart-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: center;
}

.cart-item-img, .cart-item img {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

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

.cart-item-title { font-weight: 700; font-size: 15px; margin-bottom: 4px; }

.cart-item-price { color: var(--naranja-accent); font-weight: 800; font-size: 15px; }

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid #eee;
    background: white;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.qty-btn:hover { background: #fdfcf7; border-color: var(--naranja-accent); }

.cart-footer {
    padding: 30px;
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
}

.total-amount { font-size: 22px; font-weight: 800; color: var(--panel-oscuro); }

.btn-checkout {
    width: 100%;
    background: var(--naranja-accent);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 20px;
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-checkout:hover { background: var(--naranja-oscuro); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(237, 112, 83, 0.2); }

.btn-keep-shopping {
    width: 100%;
    background: transparent;
    color: var(--panel-oscuro);
    border: 2px solid var(--panel-oscuro);
    border-radius: 16px;
    padding: 14px 20px;
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}
.btn-keep-shopping:hover { background: var(--panel-oscuro); color: white; }

/* CATEGORIES */
.categories-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    overflow-x: auto;
}

.category-chip {
    padding: 10px 25px;
    border-radius: 50px;
    background: white;
    border: 1px solid var(--border);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.category-chip.active { background: var(--naranja-oscuro); color: white; border-color: var(--naranja-oscuro); }

/* FLOATING CART */
.cart-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: var(--naranja-accent);
    color: white;
    border-radius: 50%;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(237, 112, 83, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.cart-count {
    position: absolute;
    top: -5px; right: -5px;
    background: var(--panel-oscuro);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--naranja-accent);
}

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

/* MODALS */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(1, 50, 63, 0.4);
    backdrop-filter: blur(8px);
    z-index: 6000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-checkout {
    background: white;
    width: 100%;
    max-width: 450px;
    border-radius: var(--radio);
    padding: 35px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    text-align: center;
    animation: modalSlide 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
}

.btn-modal {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: var(--font-base);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-modal-primary { background: var(--panel-oscuro); color: white; }
.btn-modal-accent { background: var(--naranja-accent); color: white; }
.btn-modal-outline { background: transparent; border: 2px solid #eee; color: var(--texto-muted); }

.btn-modal:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

/* STATUS SELECTS & BADGES */
.status-select { transition: all 0.2s; outline: none; }
.status-pendiente_pago { background: #fff1f0; color: #f5222d; }
.status-pagado { background: #f6ffed; color: #52c41a; }
.status-en_preparacion { background: #e6f7ff; color: #1890ff; }
.status-listo { background: #f9f0ff; color: #722ed1; }
.status-en_camino { background: #fff7e6; color: #fa8c16; }
.status-entregado { background: #f0f5ff; color: #2f54eb; }
.status-cancelado { background: #f5f5f5; color: #8c8c8c; }

/* ===== TIENDA FOOTER ===== */
.tienda-footer-main {
  background: var(--panel-oscuro);
  color: white;
  padding: 40px 20px 30px;
  margin-top: 60px;
}

.tienda-footer-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.tienda-footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.footer-brand-name {
  font-family: var(--font-sync);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 3px;
  color: white;
}

.footer-brand-sub {
  font-family: var(--font-sync);
  font-size: 9px;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
}

.tienda-footer-address a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

.tienda-footer-address a:hover {
  color: var(--naranja-accent);
}

.tienda-footer-address i.fa-map-marker-alt {
  color: var(--naranja-accent);
}

.tienda-footer-socials {
  display: flex;
  gap: 12px;
}

.footer-social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid rgba(255,255,255,0.12);
}

.footer-social-btn:hover {
  background: var(--naranja-accent);
  border-color: var(--naranja-accent);
  transform: translateY(-2px);
}

.tienda-footer-bottom {
  background: rgba(0,0,0,0.25);
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  text-align: center;
  padding: 14px 20px;
  letter-spacing: 0.5px;
}

.tienda-footer-bottom a {
  color: white;
  text-decoration: none;
  font-weight: 800;
  transition: color 0.2s;
}

.tienda-footer-bottom a:hover {
  color: var(--naranja-accent);
}

.tienda-footer-inner a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
}
.footer-arrepentimiento-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 100px;
  padding: 7px 16px 7px 13px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  margin-top: 4px;
}
.footer-arrepentimiento-link:hover {
  background: rgba(255,255,255,0.18);
  color: white;
}

/* ===== HAMBURGER MENU ===== */

/* Botón hamburguesa — oculto en desktop */
.header-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.header-hamburger:active { background: rgba(1,50,63,0.07); }
.header-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--panel-oscuro);
    border-radius: 2px;
    transition: all 0.3s ease;
}
/* Animación X al abrir */
.header-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.header-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Overlay oscuro */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(1,50,63,0.45);
    z-index: 5500;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    animation: fadeIn 0.2s ease;
}
.mobile-menu-overlay.open { display: block; }

/* Panel deslizante — desde la izquierda */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: min(300px, 82vw);
    height: 100dvh;
    background: white;
    z-index: 5600;
    display: flex;
    flex-direction: column;
    padding: 0;
    transform: translateX(-110%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 8px 0 40px rgba(1,50,63,0.15);
    overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }

/* Cabecera del menú */
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(1,50,63,0.08);
}
.mobile-menu-header .brand-menu {
    font-family: var(--font-sync);
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--panel-oscuro);
    font-weight: 700;
}
.mobile-menu-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--panel-oscuro);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
}

/* Sección de usuario */
.mobile-menu-user {
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(1,50,63,0.08);
    background: rgba(1,50,63,0.03);
}
.mobile-menu-user-greeting {
    font-family: var(--font-sync);
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--naranja-accent);
    font-weight: 700;
    margin-bottom: 4px;
}
.mobile-menu-user-sub {
    font-size: 11px;
    color: var(--texto-muted);
}

/* Links de navegación */
.mobile-menu-nav {
    flex: 1;
    padding: 12px 0;
}
.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 24px;
    font-size: 13px;
    font-weight: 700;
    color: var(--panel-oscuro);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: background 0.15s;
    border-left: 3px solid transparent;
    -webkit-tap-highlight-color: transparent;
}
.mobile-menu-item:active,
.mobile-menu-item:hover { background: rgba(237,112,83,0.06); border-left-color: var(--naranja-accent); }
.mobile-menu-item i { font-size: 18px; width: 20px; text-align: center; color: var(--naranja-accent); }
.mobile-menu-item.danger { color: #e74c3c; }
.mobile-menu-item.danger i { color: #e74c3c; }
.mobile-menu-divider { height: 1px; background: rgba(1,50,63,0.07); margin: 6px 24px; }

/* Botón expandible "Productos" */
.mobile-menu-expand-btn {
    width: 100%;
    background: none;
    border: none;
    font-family: var(--font-base);
    cursor: pointer;
    justify-content: flex-start;
}
.mobile-chevron {
    margin-left: auto;
    transition: transform 0.3s;
    font-size: 12px !important;
    width: auto !important;
    color: var(--texto-muted) !important;
}
.mobile-chevron.open { transform: rotate(180deg); }

/* Submenú de categorías */
.mobile-menu-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    background: rgba(1,50,63,0.02);
}
.mobile-menu-submenu.open { max-height: 500px; }

.mobile-menu-subitem {
    display: flex;
    align-items: center;
    padding: 11px 24px 11px 52px;
    font-size: 12px;
    font-weight: 600;
    color: var(--panel-oscuro);
    text-decoration: none;
    background: none;
    border: none;
    border-left: 3px solid transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-base);
    letter-spacing: 0.3px;
    transition: background 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.mobile-menu-subitem:hover,
.mobile-menu-subitem:active {
    background: rgba(237,112,83,0.07);
    border-left-color: var(--naranja-accent);
    color: var(--naranja-accent);
}
.mobile-menu-subitem.active-cat {
    color: var(--naranja-accent);
    border-left-color: var(--naranja-accent);
    background: rgba(237,112,83,0.06);
}

/* ===== PRODUCTOS RELACIONADOS (producto.html) ===== */
.related-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(1,50,63,0.07);
}

.related-heading {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--panel-oscuro);
    margin: 0 0 28px;
    text-align: center;
}

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

.related-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--panel-oscuro);
    transition: transform 0.22s;
    display: flex;
    flex-direction: column;
}
.related-card:hover { transform: translateY(-5px); }

.related-card-img {
    aspect-ratio: 1/1;
    overflow: hidden;
}
.related-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s;
    display: block;
}
.related-card:hover .related-card-img img { transform: scale(1.05); }

.related-card-info {
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.related-card-cat {
    font-size: 10px;
    font-weight: 800;
    color: var(--naranja-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.related-card-name {
    font-family: var(--font-display);
    font-size: 15px;
    color: var(--panel-oscuro);
    line-height: 1.3;
}
.related-card-price {
    font-size: 14px;
    font-weight: 800;
    color: var(--naranja-accent);
    margin-top: 2px;
}

@media (max-width: 600px) {
    .related-section { margin-top: 40px !important; }
    .related-heading { font-size: 22px !important; }
    .related-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        gap: 12px !important;
        margin-left: -20px !important;
        margin-right: -20px !important;
        padding: 0 20px 12px !important;
        scrollbar-width: none !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-padding-left: 20px !important;
    }
    .related-grid::-webkit-scrollbar { display: none !important; }
    .related-card {
        flex: 0 0 calc((100vw - 44px) / 2.3) !important;
        scroll-snap-align: start !important;
    }
}

/* Logo en center del header mobile */
.header-center-inner {
    display: flex;
    align-items: center;
    gap: 8px;
}
.center-logo-wrap {
    display: none;   /* oculto en desktop */
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

/* ===== MOBILE HEADER ===== */
@media (max-width: 600px) {
    header {
        padding: 0 16px !important;
        height: 70px !important;
    }

    /* Desktop: logo en header-left visible, center-logo oculto */
    /* Mobile: logo en header-left oculto, center-logo visible, hamburguesa visible */
    #header-logo-link  { display: none !important; }
    .center-logo-wrap  { display: flex !important; }
    .center-logo-wrap .mini-logo { width: 28px !important; }

    /* Mostrar hamburguesa en la izquierda */
    .header-hamburger { display: flex !important; }

    /* Ocultar user-link en mobile (está en el menú) */
    #user-link { display: none !important; }
    #header-user-greeting { display: none !important; }

    .header-actions {
        gap: 12px !important;
    }

    .header-actions a,
    .cart-icon {
        font-size: 22px !important;
    }

    .mini-logo {
        width: 36px !important;
    }

    .brand-top {
        font-size: 8px !important;
        letter-spacing: 2px !important;
    }

    .brand-bottom {
        font-size: 9px !important;
        letter-spacing: 3px !important;
    }

    /* Footer mobile */
    .tienda-footer-main {
        padding: 30px 20px 24px !important;
        margin-top: 40px !important;
    }

    .footer-brand-name {
        font-size: 18px !important;
    }

    .tienda-footer-bottom {
        font-size: 11px !important;
        padding: 12px 16px !important;
    }
}
