.admin-navbar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #7E22CE;
    --primary-light: #A855F7;
    --primary-dark: #6B21A8;
    --secondary-color: #333333;
    --accent-color: #EBC6F9;
    --light-pink: #F3E5FF;
    --very-light-pink: #F8F5FC;
    --pastel-pink: #F5EFFA;
    --pastel-pink-medium: #F0E6F8;
    --dark-color: #222222;
    --light-color: #fafafa;
    --gray-text: #666666;
    --gray-light: #999999;
    --border-color: #E8DCF5;
    --border-radius: 4px;
    --border-radius-lg: 8px;
    --transition: all 0.3s ease;
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--pastel-pink);
    font-weight: 400;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background-color: #e6d5f5;
    color: #7E22CE;
}

::-webkit-selection {
    background-color: #e6d5f5;
    color: #7E22CE;
}

::-moz-selection {
    background-color: #e6d5f5;
    color: #7E22CE;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: 0.02em;
}

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

/* NAVBAR ELEGANTE */
.navbar {
    background-color: white;
    padding: 0.5rem 0;
    box-shadow: 0 1px 0 rgba(233, 30, 140, 0.1);
    border-bottom: 1px solid var(--pastel-pink-medium);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: relative;
}

.nav-brand {
    flex: 0 0 auto;
}

.nav-brand .logo {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    text-decoration: none;
    letter-spacing: 2px;
    display: inline-block;
}

.nav-brand .logo-img {
    height: 35px;
    width: auto;
    max-width: 200px;
    display: block;
}

.footer-brand .logo-img {
    height: 100px;
    width: auto;
    max-width: 250px;
    display: block;
    margin-bottom: 12px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-menu a {
    font-family: var(--font-body);
    color: var(--dark-color);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: #7E22CE;
}

.nav-menu .sale-link {
    color: inherit;
    font-weight: inherit;
}

.nav-menu .sale-link.active {
    color: #7E22CE !important;
    font-weight: 600;
}

.nav-menu a.active {
    color: #7E22CE !important;
    font-weight: 600;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: auto;
}

.search-box {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 25px;
    padding: 0.5rem 1rem;
    gap: 0.5rem;
}

.search-box i {
    color: var(--gray-light);
    font-size: 0.9rem;
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    font-family: var(--font-body);
    font-size: 0.85rem;
    width: 150px;
    color: var(--dark-color);
}

.search-box input::placeholder {
    color: var(--gray-light);
}

.cart-icon-link,
.user-icon-link {
    color: var(--dark-color);
    font-size: 1.1rem;
    position: relative;
    transition: var(--transition);
}

.cart-icon-link:hover,
.user-icon-link:hover {
    color: var(--primary-color);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #EBC6F9;
    color: #7E22CE;
    font-size: 0.65rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.cart-badge:empty {
    display: none;
}

/* Legacy cart link support */
.cart-link {
    position: relative;
}

.badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
}

.badge:empty {
    display: none;
}

.admin-link {
    background-color: var(--light-pink);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
}

/* BOTONES */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #EBC6F9;
    color: #7E22CE;
    border-radius: 25px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(126, 34, 206, 0.4);
}

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

.btn-secondary {
    background-color: #f3e8ff;
    color: #9b59b6 !important;
    border: 2px solid #9b59b6 !important;
}

/* Forzar color blanco solo en navbar admin */
.admin-navbar .btn-secondary {
    color: #fff !important;
    border-color: var(--primary-color) !important;
    background: transparent !important;
}

.btn-secondary:hover {
    border-color: #9b59b6 !important;
    color: #9b59b6 !important;
    background-color: #f3e8ff !important;
}

/* Botón agregar talla - modo activo (con tallas) */
#btn-add-size.btn-sizes-active {
    background-color: #9b59b6 !important;
    color: white !important;
    border-color: #9b59b6 !important;
}

#btn-add-size.btn-sizes-active:hover {
    background-color: #7d3f8c !important;
    color: white !important;
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.btn-block {
    width: 100%;
    display: block;
    margin-bottom: 0.5rem;
    border-radius: 30px;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    text-align: center;
}

.btn-block:last-of-type {
    margin-bottom: 0;
}

/* HERO */
.hero {
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    background-repeat: no-repeat;
    color: white;
    padding: 8rem 0;
    text-align: center;
    margin-bottom: 0;
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.05em;
}

.hero-content p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

/* FEATURED SECTION */
.featured {
    padding: 5rem 0;
    background: linear-gradient(180deg, white 0%, var(--pastel-pink-medium) 100%);
}

body.brand-page.brand-victoria .featured {
    background: #fff0f5;
}

body.brand-page.brand-tommy .featured {
    background: #ffffff;
}

.featured h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--dark-color);
}

/* GRID DE PRODUCTOS */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background-color: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid #f0f0f0;
    position: relative;
}

.discount-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 0.5rem 0.85rem;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 10;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(233, 30, 140, 0.15);
}

.product-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background-color: var(--pastel-pink-medium);
    display: block;
    will-change: transform;
    image-rendering: crisp-edges;
}

.product-overlay {
    position: absolute;
    top: 17%;
    left: 0;
    width: 100%;
    aspect-ratio: 2 / 1;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 300ms ease;
    z-index: 5;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.btn-add-to-cart {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 200ms ease;
}

.btn-add-to-cart:hover {
    background: #d21a7a;
}

.btn-add-to-cart-hover {
    position: absolute;
    top: 16.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: #EBC6F9;
    color: #333;
    border: none;
    padding: 0.75rem;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    z-index: 10;
    opacity: 0;
    transition: opacity 300ms ease, background 200ms ease, color 200ms ease, transform 200ms ease;
}

.btn-add-to-cart-hover svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
    stroke: #7E22CE;
    color: #7E22CE;
}

.btn-add-to-cart-hover:hover {
    background: #D9A8F2;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.btn-add-to-cart-hover.added {
    background: #4CAF50;
    color: white;
}

.product-card:hover .btn-add-to-cart-hover {
    opacity: 1;
}

/* Calvin Klein - Círculo lila, carrito violeta */
body.brand-page.brand-calvin .btn-add-to-cart-hover,
body.brand-calvin .btn-add-to-cart-hover {
    background: #EBC6F9;
    color: #333;
}

body.brand-page.brand-calvin .btn-add-to-cart-hover:hover,
body.brand-calvin .btn-add-to-cart-hover:hover {
    background: #D9A8F2;
}

/* Tommy Hilfiger - Círculo lila, carrito violeta */
body.brand-page.brand-tommy .btn-add-to-cart-hover,
body.brand-tommy .btn-add-to-cart-hover {
    background: #EBC6F9;
    color: #333;
}

body.brand-page.brand-tommy .btn-add-to-cart-hover:hover,
body.brand-tommy .btn-add-to-cart-hover:hover {
    background: #D9A8F2;
}

/* Victoria's Secret - Círculo lila, carrito violeta */
body.brand-page.brand-victoria .btn-add-to-cart-hover,
body.brand-victoria .btn-add-to-cart-hover {
    background: #EBC6F9;
    color: #333;
}

body.brand-page.brand-victoria .btn-add-to-cart-hover:hover,
body.brand-victoria .btn-add-to-cart-hover:hover {
    background: #D9A8F2;
}

.btn-add-to-cart-hover:hover {
    background: #D9A8F2;
}

/* Home page button - Text-based "Agregar al carrito" button in violeta */
.btn-add-to-cart-home {
    position: absolute;
    top: 16.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: #EBC6F9;
    color: #7E22CE;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    z-index: 10;
    opacity: 0;
    transition: opacity 300ms ease, background 200ms ease, color 200ms ease, transform 200ms ease;
    white-space: nowrap;
}

.btn-add-to-cart-home:hover {
    background: #D9A8F2;
    filter: drop-shadow(0 4px 8px rgba(126, 34, 206, 0.3));
}

.btn-add-to-cart-home.added {
    background: #4CAF50;
    color: white;
}

.product-card:hover .btn-add-to-cart-home {
    opacity: 1;
}



.product-info {
    padding: 1.5rem;
    background: white;
}

.product-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.product-category {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--gray-light);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* SUB NAVBAR - neutral, discreta, 3 secciones centradas */
.sub-navbar {
    background: #0f0f0f; /* neutral black */
    color: #ffffff;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    padding: 0.4rem 0;
}
.sub-navbar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
}
.sub-navbar .brand-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 48px;
    background: #0f0f0f;
    color: #888;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.6px;
    transition: background 180ms ease, transform 120ms ease, box-shadow 180ms ease, color 180ms ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.sub-navbar .brand-link:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}
.sub-navbar .brand-link:active {
    transform: translateY(0);
}
.sub-navbar .brand-link.active {
    color: #fff;
}

@media (max-width: 700px) {
    .sub-navbar .container { gap: 0.6rem; }
    .sub-navbar .brand-link { width: 32%; height: 44px; font-size: 0.85rem; }
}

/* Hero: three panels side-by-side (used for Tommy) */
.hero-three-outer {
    position: relative;
    overflow: hidden;
}
.hero-three {
    display: flex;
    gap: 0;
    min-height: 744px;
}

body.brand-page.brand-victoria .hero-three {
    min-height: 744px;
}
.hero-three .panel {
    flex: 1 1 33.333%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    height: 744px; /* increased +10% (from 676px) to show more of the photos */
}

body.brand-page.brand-victoria .hero-three .panel {
    height: 744px;
}

body.brand-page.brand-victoria .hero-three .panel:nth-child(2),
body.brand-page.brand-victoria .hero-three .panel:nth-child(3) {
    background-position: center 70%;
}
.hero-three .panel img { display: none; }

.hero-three-center-card {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255,255,255,0.98);
    padding: 28px 32px;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.18);
    text-align: center;
    max-width: 640px;
}
.hero-three-center-card h1 {
    margin-bottom: 8px;
    font-size: 1.8rem;
    color: #0f0f0f;
}
.hero-three-center-card p { color: #555; margin-bottom: 12px; }
.hero-three-center-card .btn { border-radius: 30px; padding: 0.65rem 1.25rem; }

/* Tommy center card — refined typography */
.hero-three-center-card {
    padding: 36px 40px;
    max-width: 680px;
}

/* Victoria's Secret - Paneles del hero con transparencia */
.vs-panels .panel {
    height: 600px;
}

.vs-content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #000000;
    padding: 28px 32px;
    border-radius: 4px;
    text-align: center;
    max-width: 500px;
}

.vs-content h1 {
    font-size: 2.2rem;
    color: #ffffff;
    font-weight: 600;
    font-family: 'Georgia', 'Garamond', serif;
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
}

.vs-content p {
    color: #ffffff;
    font-size: 2.2rem;
    font-family: 'Georgia', serif;
    letter-spacing: 0.5px;
    margin: 0;
    line-height: 1.6;
    font-weight: 300;
}

.vs-discover-btn {
    position: absolute;
    top: 58%;
    left: 50%;
    transform: translateX(-50%);
    display: inline-block;
    padding: 14px 40px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: #ffffff;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.80rem;
    letter-spacing: 3px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    border-radius: 4px;
}

.vs-discover-btn:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: translateX(-50%) translateY(-2px);
}

.vs-content .btn {
    display: inline-block;
    padding: 14px 36px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: #ffffff;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.80rem;
    letter-spacing: 3px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    border-radius: 4px;
}

.vs-content .btn:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: translateY(-2px);
}

.hero-brand-lines {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 14px;
}
.hero-brand-lines .line {
    display: inline-block;
    width: 36px;
    height: 4px;
    border-radius: 2px;
}
.hero-brand-lines .line-left { background: #0a2350; } /* navy */
.hero-brand-lines .line-right { background: #d82a2a; } /* red */
.hero-title {
    font-family: var(--font-heading);
    font-size: 48px;
    line-height: 1.02;
    margin: 0 0 10px;
    color: #0b0b0b;
    font-weight: 400;
}
.hero-title em {
    font-style: italic;
    display: block;
    font-size: 58px;
    line-height: 0.95;
    font-weight: 400;
}
.hero-sub {
    margin-top: 12px;
    font-size: 12px;
    letter-spacing: 4px;
    color: #7b7b7b;
    margin-bottom: 20px;
}
.discover-link {
    display: inline-block;
    text-decoration: none;
    color: #0b0b0b;
    font-weight: 600;
    letter-spacing: 1.5px;
    padding-bottom: 6px;
    border-bottom: 2px solid #0b0b0b;
}
.discover-link:hover { opacity: 0.9; }

@media (max-width: 900px) {
    .hero-title { font-size: 30px; }
    .hero-title em { font-size: 36px; }
    .hero-three-center-card { padding: 22px; max-width: 520px; }
}

/* Brand products: simplified cards without price or badges */
.brand-products-grid {
    gap: 2.5rem;
}
.brand-product-card {
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 18px;
}
.brand-product-card .image-wrap {
    background: #fff;
    padding: 18px;
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.brand-product-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.brand-product-card .product-name {
    margin-top: 14px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--dark-color);
    font-weight: 500;
}
.brand-product-card .product-variant {
    font-size: 0.75rem;
    color: var(--gray-light);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 900px) {
    .hero-three { flex-direction: column; }
    .hero-three .panel { height: 458px; /* increased +10% (from 416px) */ }
    .hero-three-center-card { position: static; transform: none; margin: -80px auto 20px; }
}

/* Brand features (second footer) */
.brand-features {
    background: white;
    padding: 48px 0;
    border-top: 1px solid var(--border-color);
}
.brand-features .features-row {
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    align-items: flex-start;
    text-align: center;
}
.brand-features .feature-item {
    flex: 1 1 33%;
    padding: 0 18px;
}
.brand-features .feature-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--secondary-color);
    margin-bottom: 10px;
    text-transform: uppercase;
}
.brand-features .feature-desc {
    color: var(--gray-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .brand-features .features-row { flex-direction: column; gap: 1rem; }
    .brand-features .feature-item { padding: 8px 12px; }
}

/* VICTORIA'S SECRET - Custom brand-features styling */
body.brand-victoria .navbar {
    background: #0f0f0f !important;
    border-bottom: none !important;
}

body.brand-victoria .sub-navbar {
    background: #0f0f0f !important;
    border-bottom: none !important;
    border-top: none !important;
}


body.brand-victoria .nav-menu a {
    color: #ccc !important;
}

body.brand-victoria .nav-menu a:hover {
    color: #7E22CE !important;
}

body.brand-victoria .nav-actions {
    color: white !important;
}

body.brand-victoria .cart-icon-link {
    color: #ccc !important;
}

body.brand-victoria .cart-icon-link:hover {
    color: var(--primary-color) !important;
}

/* TOMMY HILFIGER - Black navbar styling */
body.brand-tommy .navbar {
    background: #0f0f0f !important;
    border-bottom: none !important;
}

body.brand-tommy .sub-navbar {
    background: #0f0f0f !important;
    border-bottom: none !important;
    border-top: none !important;
}


body.brand-tommy .nav-menu a {
    color: #ccc !important;
}

body.brand-tommy .nav-menu a:hover {
    color: #7E22CE !important;
}

body.brand-tommy .nav-actions {
    color: white !important;
}

body.brand-tommy .cart-icon-link {
    color: #ccc !important;
}

body.brand-tommy .cart-icon-link:hover {
    color: var(--primary-color) !important;
}

/* CALVIN KLEIN - Black navbar styling */
body.brand-calvin .navbar {
    background: #0f0f0f !important;
    border-bottom: none !important;
}

body.brand-calvin .sub-navbar {
    background: #0f0f0f !important;
    border-bottom: none !important;
    border-top: none !important;
}


body.brand-calvin .nav-menu a {
    color: #ccc !important;
}

body.brand-calvin .nav-menu a:hover {
    color: #7E22CE !important;
}

body.brand-calvin .nav-actions {
    color: white !important;
}

body.brand-calvin .cart-icon-link {
    color: #ccc !important;
}

body.brand-calvin .cart-icon-link:hover {
    color: var(--primary-color) !important;
}

.brand-victoria .brand-features {
    background: #0f0f0f;
    padding: 60px 0;
}

.brand-victoria .brand-features .features-row {
    gap: 3rem;
}

.brand-victoria .brand-features .feature-item {
    padding: 0 24px;
}

.brand-victoria .brand-features .feature-title {
    font-family: 'Georgia', 'Garamond', serif;
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 2px;
    color: #f0b8d4;
    margin-bottom: 12px;
    text-transform: capitalize;
    font-style: italic;
}

.brand-victoria .brand-features .feature-desc {
    font-family: 'Georgia', 'Garamond', serif;
    color: #888;
    font-size: 0.95rem;
    line-height: 1.8;
    font-style: italic;
}

/* VICTORIA'S SECRET - Custom footer styling */
.brand-victoria .footer-elegant {
    background: linear-gradient(135deg, #d41159, #b30d47);
    border-top: 1px solid #a50a3f;
}

.brand-victoria .footer-section h4 {
    color: white;
}

.brand-victoria .footer-section ul a {
    color: #fff;
}

.brand-victoria .footer-section ul a:hover {
    color: #ffcdd2;
    text-decoration: underline;
}

.brand-victoria .newsletter-section p {
    color: #fff;
}

.brand-victoria .newsletter-form input {
    background: rgba(255,255,255,0.9);
    border: 1px solid #fff;
    color: #d41159;
}

.brand-victoria .newsletter-form button {
    background: white;
    border: 1px solid white;
    color: #d41159;
    font-weight: 700;
}

.brand-victoria .newsletter-form button:hover {
    background: #ffcdd2;
    border-color: #ffcdd2;
    color: #d41159;
}

.brand-victoria .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
}

.brand-victoria .footer-bottom p {
    color: #fff;
}

.brand-victoria .social-icons a {
    color: white;
}

/* Per-brand page backgrounds */
body.brand-page.brand-tommy .brand-features {
    background: #ffffff;
    border-top: 6px solid #c41e3a;
    position: relative;
    padding-top: 60px;
}

body.brand-page.brand-tommy .brand-features::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 6px;
    background: #0a2350;
}

body.brand-page.brand-calvin {
    background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%); /* subtle cool tint for Calvin */
}

/* CALVIN KLEIN - Custom brand-features styling */
body.brand-page.brand-calvin .brand-calvin-features {
    background: #ffffff;
    border-top: 8px solid #808080;
    position: relative;
    padding-top: 80px;
}

.calvin-divider-line {
    position: absolute;
    top: -40px;
    left: 0;
    right: 0;
    height: 40px;
    background: #808080;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calvin-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

body.brand-page.brand-calvin .brand-calvin-features .feature-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #000000;
    text-transform: uppercase;
    margin-bottom: 8px;
}

body.brand-page.brand-calvin .brand-calvin-features .feature-desc {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
}

body.brand-page.brand-calvin .brand-calvin-features .features-row {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    align-items: center;
}

body.brand-page.brand-calvin .brand-calvin-features .feature-item {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

body.brand-page.brand-calvin .featured.dark-bg h2 {
    color: #ffffff;
}

body.brand-page.brand-calvin .featured.dark-bg {
    background-color: #000000;
}

body.brand-page.brand-calvin .featured.dark-bg .product-card {
    background-color: #ffffff;
    border-color: #ffffff;
    box-shadow: none;
}

body.brand-page.brand-calvin .featured.dark-bg .product-info {
    background-color: #ffffff;
    color: #000000;
}

body.brand-page.brand-calvin .featured.dark-bg .product-name {
    color: #000000;
}

body.brand-page.brand-calvin .featured.dark-bg .product-price {
    color: #000000;
}

body.brand-page.brand-calvin .featured.dark-bg .product-category {
    color: #666666;
}

body.brand-page.brand-calvin .featured.dark-bg .product-description {
    color: #666666;
}

body.brand-page.brand-victoria {
    background: linear-gradient(180deg, #fffafc 0%, #fff5f8 100%); /* soft pink for Victoria's Secret */
}

/* Victoria's Secret - Paneles del hero con transparencia */
.vs-panels .panel {
    height: 600px;
}

.vs-content {
    position: absolute;
    left: 50%;
    top: 42%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    padding: 25px 40px;
    border-radius: 4px;
    text-align: center;
    max-width: 600px;
}

.vs-content h1 {
    font-size: 2.2rem;
    color: #ffffff;
    font-weight: 700;
    font-family: 'Didot', 'Bodoni MT', 'Noto Serif Display', Georgia, 'Garamond', serif;
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
}

.vs-content p {
    color: #ffffff;
    font-size: 2.2rem;
    font-family: 'Georgia', serif;
    letter-spacing: 0.5px;
    line-height: 1.6;
    margin: 0;
    font-weight: 300;
}

/* Ensure container blocks retain their intended backgrounds */
.brand-features, .footer-elegant, .featured, .products-grid, .hero-three-outer {
    background: transparent;
}

/* Per-brand navbar & footer theming via CSS variable overrides and small tweaks */
body.brand-page.brand-tommy {
    --primary-color: #0a2350; /* navy */
    --primary-light: #274a87;
    --primary-dark: #071535;
    --accent-color: #d82a2a; /* tommy red */
    --pastel-pink-medium: #ffffff;
    --light-pink: #ffffff;
    --border-color: #eef3f8;
}

body.brand-page.brand-calvin {
    --primary-color: #111111; /* deep gray / black */
    --primary-light: #444444;
    --accent-color: #000000;
    --pastel-pink-medium: #ffffff;
    --light-pink: #ffffff;
    --border-color: #efefef;
}

/* Calvin-specific typography and gray palette tweaks */
body.brand-page.brand-calvin {
    --primary-color: #222222; /* main text */
    --accent-color: #666666;  /* subtle accent */
    --light-bg: #fafafa;
    --panel-bg: #ffffff;
    --muted: #8a8a8a;
}

body.brand-page.brand-calvin {
    background: linear-gradient(180deg, var(--light-bg) 0%, var(--panel-bg) 100%);
}

/* Use a light, elegant sans for Calvin headings */
body.brand-page.brand-calvin .collection-title,
body.brand-page.brand-calvin .hero-center-card .hero-big,
body.brand-page.brand-calvin .hero-center-card .hero-kicker {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 300;
}

/* Calvin: alternate layout and navbar theme to match reference image */
body.brand-page.brand-calvin .navbar {
    background-color: #0f0f0f !important;
    border-bottom: none !important;
}

body.brand-page.brand-calvin .sub-navbar {
    background-color: #0f0f0f !important;
    border-bottom: none !important;
}

body.brand-page.brand-calvin .nav-menu a,
body.brand-page.brand-calvin .nav-actions a,
body.brand-page.brand-calvin .search-box i {
    color: #fff !important;
}

body.brand-page.brand-calvin .search-box {
    background: rgba(255,255,255,0.04);
}

body.brand-page.brand-calvin .search-box input {
    color: #fff;
}

/* Dark text on hero for contrast with Calvin image */
body.brand-page.brand-calvin .hero-center-card {
    color: var(--primary-color);
}

/* Button treatment for Calvin: white primary with dark text, subtle secondary */
body.brand-page.brand-calvin .btn-elegant-primary {
    background: #ffffff;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}
body.brand-page.brand-calvin .btn-secondary {
    background: rgba(0,0,0,0.06);
    color: var(--primary-color);
    border: 1px solid rgba(0,0,0,0.06);
}

/* Collection description and other copy use white */
body.brand-page.brand-calvin .collection-desc,
body.brand-page.brand-calvin .hero-sub {
    color: #ffffff;
}

/* Ensure navbar and links remain readable */
body.brand-page.brand-calvin .nav-menu a {
    color: var(--primary-color);
}

/* Remove pink overlay on brand hero for Calvin (override global hero::before) */
body.brand-page.brand-calvin .hero::before {
    background: linear-gradient(135deg, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0.16) 100%);
}

body.brand-page.brand-victoria {
    --primary-color: #e91e8c; /* pink */
    --primary-light: #f06292;
    --accent-color: #ff6fa3;
    --pastel-pink-medium: #fff5f8;
    --light-pink: #fff8fb;
    --border-color: #fff0f6;
}

/* Navbar overrides per brand */
body.brand-page .navbar {
    background-color: white; /* keep visible bar but use brand colors for links */
    padding: 1rem 0;
    box-shadow: 0 1px 0 rgba(0,0,0,0.04);
    border-bottom: 1px solid var(--pastel-pink-medium);
}

body.brand-page .nav-menu a {
    color: var(--primary-color);
}

body.brand-page .nav-menu a:hover {
    color: #7E22CE;
}

body.brand-page.brand-victoria .navbar {
    background-color: white;
}

body.brand-page.brand-victoria .nav-menu a {
    color: #f06292;
}

body.brand-page.brand-victoria .nav-menu a:hover {
    color: #7E22CE;
}


body.brand-page.brand-victoria .search-box {
    background: rgba(255,255,255,0.9);
}

body.brand-page.brand-victoria .cart-icon-link {
    color: #f06292;
}


body.brand-page .search-box {
    background: rgba(255,255,255,0.9);
}

/* Sub-navbar preserves global styling so brand buttons remain consistent */

/* Footer tweaks so footer-elegant respects brand variables */
body.brand-page .footer-elegant {
    background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.98) 100%);
    color: #222;
}

body.brand-page .footer-section h4 {
    color: var(--primary-color);
}

body.brand-page .footer-section ul a {
    color: #333;
}

body.brand-page .footer-bottom p { color: #777; }

@media (max-width: 900px) {
    body.brand-page .nav-menu { gap: 1rem; }
}

/* Collection header used by brand pages (title + tabs) */
.collection-header {
    padding: 60px 0;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.collection-header-simple {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.collection-intro {
    max-width: 700px;
}
.collection-intro .kicker {
    font-size: 0.75rem;
    letter-spacing: 2.5px;
    color: var(--gray-light);
    margin-bottom: 16px;
    text-transform: uppercase;
    font-weight: 600;
}
.collection-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin: 0 0 20px;
    font-weight: 300;
    letter-spacing: 0.02em;
    color: var(--dark-color);
}
.collection-desc {
    color: var(--gray-text);
    max-width: 600px;
    line-height: 1.8;
    font-size: 0.95rem;
}

/* Dark background section for brand pages */
.dark-bg {
    background-color: #0a0a0a;
    color: #ffffff;
}
.dark-bg .collection-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}
.dark-bg .collection-intro .kicker {
    color: #808080;
}
.dark-bg .collection-title {
    color: #ffffff;
}
.dark-bg .collection-desc {
    color: #b0b0b0;
}
.dark-bg .product-card {
    background-color: #0a0a0a;
    border-color: #1a1a1a;
    border: 1px solid #1a1a1a;
}
.dark-bg .product-info {
    background-color: #0a0a0a;
    color: #ffffff;
}
.dark-bg .product-name {
    color: #ffffff;
}
.dark-bg .product-category {
    color: #707070;
}
.dark-bg .product-description {
    color: #707070;
}
.dark-bg .product-price {
    color: #ffffff;
}
}
.dark-bg .product-info {
    background-color: #2a2a2a;
}

@media (max-width: 1024px) {
    .collection-header-content { flex-direction: column; gap: 30px; }
    .collection-title { font-size: 2.2rem; }
    .collection-tabs { justify-content: flex-start; flex: none; }
}
@media (max-width: 768px) {
    .collection-header { padding: 40px 0; }
    .collection-title { font-size: 1.8rem; }
    .collection-tabs { gap: 16px; }
    .tab-btn { font-size: 0.75rem; }
}

/* Hero centered big title for single-image brand heroes (Calvin) */
.hero-center-card {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    max-width: 900px;
    width: calc(100% - 120px);
}
.hero-center-card .hero-kicker {
    letter-spacing: 4px;
    font-size: 0.85rem;
    margin-bottom: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.95);
}
.hero-center-card .hero-big {
    font-family: var(--font-heading);
    font-size: 96px;
    line-height: 0.9;
    margin: 0 0 10px;
    text-transform: uppercase;
    color: white;
    text-shadow: 0 10px 30px rgba(0,0,0,0.45);
}
.hero-center-card .hero-sub {
    margin-bottom: 18px;
    font-size: 12px;
    letter-spacing: 4px;
    color: rgba(255,255,255,0.9);
}
.hero-center-card .hero-ctas {
    display: flex;
    gap: 18px;
    justify-content: center;
}
.hero-center-card .hero-ctas .btn-elegant-primary {
    min-width: 240px;
    padding-left: 36px;
    padding-right: 36px;
}
.btn-elegant-primary {
    padding: 14px 34px;
    background: #EBC6F9;
    color: #7E22CE;
    border-radius: 25px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-elegant-primary:hover {
    background: #D9A8F2;
}
.btn-secondary {
    padding: 14px 34px;
    background: rgba(255,255,255,0.12);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    font-weight: 700;
}

@media (max-width: 900px) {
    .hero-center-card .hero-big { font-size: 42px; }
    .hero-center-card { position: static; transform: none; margin: 40px auto; }
    .hero { min-height: 480px; }
}

.product-description {
    font-size: 0.85rem;
    color: var(--gray-text);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.product-price {
    font-family: var(--font-body);
    font-size: 1.3rem;
    font-weight: 600;
    color: #7E22CE;
}

.price-container {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.product-price-original {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: #999;
    text-decoration: line-through;
    font-weight: 400;
}

.product-price-discount {
    font-family: var(--font-body);
    font-size: 1.3rem;
    font-weight: 700;
    color: #7E22CE;
}

.product-stock {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    background-color: #e8f5e9;
    color: #2e7d32;
    font-weight: 500;
    display: inline-block;
}

.product-stock.out-of-stock {
    background-color: #ffebee;
    color: #c62828;
}

/* SKELETON LOADER */
.skeleton-loader {
    background: linear-gradient(90deg, #f5f5f5 25%, #eeeeee 50%, #f5f5f5 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    aspect-ratio: 1;
    border-radius: var(--border-radius-lg);
    min-height: 420px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* CATÁLOGO */
.catalogo-wrapper {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    margin-top: 2rem;
    padding: 2rem 0;
}

.filters {
    background: linear-gradient(180deg, white 0%, var(--very-light-pink) 100%);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    height: fit-content;
    border: 2px solid #e6d5f5;
    box-sizing: border-box;
}

.filters h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

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

.filter-group h4 {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    color: var(--gray-text);
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.filter-group input[type="text"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 0.9rem;
    background: #f5f5f5;
}

.filter-group input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
}

.filter-group input[type="checkbox"] {
    margin-right: 0.5rem;
    accent-color: var(--primary-color);
}

/* Select de filtros */
.filter-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 0.9rem;
    background: #e6d5f5;
    color: #7E22CE;
    font-weight: 600;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%237E22CE' viewBox='0 0 16 16'%3E%3Cpath d='M8 10.5l-5-5h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.filter-select option {
    background-color: white;
    color: #7E22CE;
}

.filter-select option:checked {
    background: linear-gradient(#e6d5f5, #e6d5f5) !important;
    background-color: #e6d5f5 !important;
    color: #7E22CE;
}

.filter-select option:hover {
    background: linear-gradient(#e6d5f5, #e6d5f5) !important;
    background-color: #e6d5f5 !important;
    color: #7E22CE;
}

/* Inputs de precio */
.price-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-inputs input {
    flex: 1;
    min-width: 0;
    width: 100%;
    padding: 0.75rem 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 0.9rem;
    box-sizing: border-box;
}

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

.price-inputs span {
    color: var(--gray-light);
    flex-shrink: 0;
}

/* Header de productos */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.products-count {
    color: var(--gray-text);
    font-size: 0.9rem;
}

/* Paginación */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 3rem;
    padding: 2rem 0;
}

.pagination-btn {
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.85rem;
    transition: var(--transition);
}

.pagination-btn:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

.page-info {
    color: var(--gray-text);
    font-size: 0.9rem;
}

.products-section h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: var(--dark-color);
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray-light);
}

/* DETALLE DE PRODUCTO */
.product-detail {
    padding: 3rem 0;
}

.back-link {
    color: #7E22CE;
    text-decoration: none;
    margin-bottom: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

.product-content {
    background-color: white;
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--pastel-pink-medium);
}

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

/* Galería de imágenes del producto */
.product-image-gallery {
    width: 500px;
    margin: 0 auto;
}

.main-image-container {
    position: relative;
    width: 500px;
    height: 500px;
    background-color: #ffffff;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Botones de navegación */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gallery-nav:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav.prev {
    left: 10px;
}

.gallery-nav.next {
    right: 10px;
}

/* Thumbnails */
.thumbnails-container {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius);
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.thumbnail:hover {
    opacity: 1;
    border-color: var(--primary-light);
}

.thumbnail.active {
    opacity: 1;
    border-color: var(--primary-color);
}

/* Make product detail image fill the product white panel area as much as possible */
.product-content .product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: stretch; /* ensure both columns match height */
}

.product-content .product-image {
    /* make it a square with white borders around */
    width: 500px;
    height: 500px;
    overflow: hidden;
    display: block;
    margin: 0 auto;
    background-color: #ffffff;
}

.product-content .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* cover fills the container while preserving aspect ratio */
    border-radius: var(--border-radius-lg);
    display: block;
    will-change: transform;
    image-rendering: crisp-edges;
}

/* Responsive: keep normal flow on small screens */
@media (max-width: 900px) {
    .product-content .product-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-image-gallery,
    .main-image-container {
        width: 100%;
        height: auto;
        max-width: 500px;
    }
    
    .main-image-container img {
        height: auto;
        object-fit: contain;
    }
    
    .gallery-nav {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .thumbnails-container {
        flex-wrap: wrap;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    }
}

.product-info h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.category {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--gray-light);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.description {
    font-family: var(--font-body);
    color: var(--gray-text);
    margin-bottom: 2rem;
    line-height: 1.8;
    font-size: 0.95rem;
}

.price-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--pastel-pink-medium);
    border-bottom: 1px solid var(--pastel-pink-medium);
}

.price-with-discount {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.price-original {
    font-size: 1.5rem;
    color: #999;
    text-decoration: line-through;
    font-family: var(--font-body);
}

.price-discount {
    font-family: var(--font-body);
    font-size: 2rem;
    font-weight: 700;
    color: #7E22CE;
}

.discount-label {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 0.5rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
}

.price {
    font-family: var(--font-body);
    font-size: 2rem;
    font-weight: 600;
    color: #7E22CE;
}

.stock-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.stock-status.in-stock {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.stock-status.out-of-stock {
    background-color: #ffebee;
    color: #c62828;
}

/* SELECTOR DE TALLE */
.size-selector {
    margin-bottom: 2rem;
}

.size-selector label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.size-option {
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--border-color);
    background-color: white;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    min-width: 60px;
    text-align: center;
}

.size-option:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: rgba(167, 51, 234, 0.05);
}

.size-option.selected {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.size-option:disabled {
    background-color: #f5f5f5;
    color: #999;
    border-color: #d1d1d1;
    cursor: not-allowed;
    opacity: 0.6;
}

.size-option .out-of-stock-label {
    display: block;
    font-size: 0.7rem;
    opacity: 0.8;
}

.error-message {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.quantity-selector label {
    font-size: 0.9rem;
    font-weight: 500;
}

.quantity-selector input {
    width: 80px;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    text-align: center;
}

/* CARRITO */
.cart-content {
    background-color: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.cart-content.cart-with-model {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    align-items: start;
}

.cart-left {
    display: flex;
    flex-direction: column;
}

.cart-right {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.model-3d-container {
    background-color: white;
    padding: 0;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
}

.model-3d-container h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    text-align: center;
    font-size: 0.95rem;
}

.sketchfab-embed-wrapper {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.sketchfab-embed-wrapper iframe {
    width: 100%;
    height: 350px;
    border: none;
}

model-viewer {
    background: white;
    border-radius: 8px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.cart-table th {
    background-5rem;
    text-align: left;
    border-bottom: 2px solid #ddd;
    font-size: 0.85rem;
}

.cart-table td {
    padding: 0.5rem;
    border-bottom: 1px solid #eee;
    font-size: 0.91px solid #eee;
    font-size: 0.95rem;
}

.quantity-input {
    width: 70px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
}

.cart-summary {
    background-color: #f9f9f9;
    padding: 1rem;
    border-radius: var(--border-radius);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.summary-item.total {
    border-top: 2px solid #ddd;
    padding-top: 0.75rem;
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.empty-cart {
    background-color: white;
    padding: 4rem 2rem;
    text-align: center;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.empty-cart p {
    font-size: 1.25rem;
    color: #999;
    margin-bottom: 2rem;
}

/* CHECKOUT */
.checkout-container {
    padding: 3rem 0;
}

.checkout-container h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: var(--dark-color);
}

.checkout-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.checkout-items {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--pastel-pink-medium);
}

.checkout-items h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--pastel-pink-medium);
}

.item-info h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.item-info p {
    font-size: 0.85rem;
    color: var(--gray-text);
}

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

.order-summary {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--pastel-pink-medium);
}

.checkout-payment {
    background: linear-gradient(180deg, white 0%, var(--very-light-pink) 100%);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    height: fit-content;
    border: 1px solid var(--pastel-pink-medium);
    opacity: 1;
    visibility: visible;
}

.checkout-payment .btn-secondary {
    background-color: white;
    color: #9b59b6;
    border: 2px solid #9b59b6;
}

.checkout-payment .btn-secondary:hover {
    background-color: #9b59b6;
    color: white;
    border-color: #9b59b6;
}

.checkout-payment h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

/* FORMS */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--dark-color);
    font-size: 0.85rem;
    cursor: pointer;
}

.form-group label input[type="checkbox"] {
    width: auto;
    min-width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-group select option {
    background-color: white;
    color: #7E22CE;
}

.form-group select option:checked {
    background: linear-gradient(#e6d5f5, #e6d5f5) !important;
    background-color: #e6d5f5 !important;
    color: #7E22CE;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #9b59b6;
    box-shadow: 0 0 0 3px rgba(155, 89, 182, 0.1);
}

.image-upload-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.image-upload-container input[type="file"] {
    padding: 1rem;
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.image-upload-container input[type="file"]:hover {
    border-color: var(--primary-color);
}

.image-preview {
    max-width: 180px;
    border: 2px solid var(--accent-color);
    border-radius: 12px;
    padding: 0.75rem;
    background: linear-gradient(135deg, white 0%, var(--very-light-pink) 100%);
    box-shadow: 0 4px 12px rgba(233, 30, 140, 0.1);
}

.image-preview img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.form-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.form-buttons button {
    flex: 1;
}

/* MENSAJES */
.error {
    background-color: #ffebee;
    border: 1px solid #f5a5a5;
    color: #c62828;
    padding: 1rem;
    border-radius: var(--border-radius);
}

.success {
    color: #2e7d32;
}

.form-message {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.form-message.error {
    background-color: #ffebee;
    color: #c62828;
}

.form-message.success {
    background-color: #e8f5e9;
    color: #2e7d32;
}

/* FOOTER */
.footer {
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

/* PÁGINAS ADMIN */
.admin-page {
    background-color: #f5f5f5;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: url('https://vgxycrhfnhwkzcwwclex.supabase.co/storage/v1/object/public/brands/backgroundadmin.jpg') center/100% auto no-repeat;
    background-attachment: fixed;
}

.login-box {
    background-color: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
}

.login-box h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.login-box h2 {
    font-size: 1.25rem;
    color: #7E22CE;
    margin-bottom: 2rem;
}

.admin-navbar {
    background: #EBC6F9;
    color: var(--dark-color);
    padding: 1rem 0;
    margin-bottom: 0;
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(126, 34, 206, 0.1);
}

.admin-navbar h1 {
    color: #7E22CE;
    font-weight: 600;
}

.admin-navbar .container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Fix: Botón cerrar sesión visible sobre fondo oscuro */
.admin-navbar .btn-secondary {
    color: white !important;
    border-color: var(--primary-color) !important;
    background: var(--primary-color) !important;
    padding: 0.65rem 1.5rem !important;
    font-weight: 600 !important;
}
.admin-navbar .btn-secondary:hover {
    color: white !important;
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
}

.admin-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 0;
    min-height: calc(100vh - 100px);
}

.admin-sidebar {
    background-color: var(--accent-color);
    padding: 0;
}

.admin-sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar-link {
    display: block;
    color: var(--primary-color);
    padding: 1rem 1.5rem;
    text-decoration: none;
    border-left: 4px solid transparent;
    border-bottom: 1px solid rgba(126, 34, 206, 0.2);
    transition: var(--transition);
    font-weight: 500;
}

.sidebar-link:hover,
.sidebar-link.active {
    background-color: rgba(126, 34, 206, 0.15);
    border-left-color: var(--primary-color);
}

.admin-content {
    background-color: #f5f5f5;
    padding: 2rem;
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
}

.admin-section h2 {
    margin-bottom: 2rem;
    color: var(--dark-color);
}

.section-controls {
    margin-bottom: 2rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.admin-table th {
    background: var(--pastel-pink);
    color: var(--primary-color);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color);
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.admin-table tbody tr {
    transition: background-color 0.2s ease;
}

.admin-table tbody tr.dragging {
    opacity: 0.5;
    background-color: #f0e0e8;
}

.admin-table tbody tr.drag-over {
    background-color: #EBC6F9;
}

.admin-table tr:hover {
    background-color: #f9f9f9;
}

.admin-table .loading {
    text-align: center;
    color: #999;
}

.drag-handle {
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
    cursor: grab;
    margin-right: 0.75rem;
    padding: 2px 4px;
    user-select: none;
}

.drag-handle:active {
    cursor: grabbing;
}

.drag-handle span {
    width: 16px;
    height: 2px;
    background-color: #ccc;
    border-radius: 1px;
    display: block;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

/* MODAL */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
    overflow-y: auto;
    padding: 2rem 0;
}

#confirm-modal {
    z-index: 9999 !important;
}

.modal-content {
    background: linear-gradient(135deg, white 0%, var(--very-light-pink) 100%);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(126, 34, 206, 0.15);
    width: 90%;
    max-width: 600px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    margin: auto 0;
    border: 1px solid var(--accent-color);
}

.modal-content h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 1rem;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--accent-color);
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(90deg);
}

/* Formularios en modal */
.modal-content .form-group {
    margin-bottom: 1.5rem;
}

.modal-content .form-group label {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.modal-content input,
.modal-content textarea,
.modal-content select {
    background: white !important;
    border: 2px solid var(--accent-color) !important;
    border-radius: 8px !important;
    padding: 0.75rem 1rem !important;
}

.modal-content select option {
    background-color: white;
    color: #7E22CE;
}

.modal-content select option:checked {
    background: linear-gradient(#e6d5f5, #e6d5f5) !important;
    background-color: #e6d5f5 !important;
    color: #7E22CE;
}

.modal-content input:focus,
.modal-content textarea:focus,
.modal-content select:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(126, 34, 206, 0.1) !important;
}

.modal-content .btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.modal-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(233, 30, 140, 0.25);
}

/* ABOUT & CONTACT */
.about-container,
.contact-container {
    padding: 3rem 0;
}

.about-container h1,
.contact-container h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: #7E22CE;
}

.about-section {
    background: linear-gradient(180deg, white 0%, #F3E5FF 100%);
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid #EBC6F9;
}

.contact-info {
    background: #F0E6F8;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid #DCC4ED;
}

.about-section h2,
.contact-info h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    color: #7E22CE;
    margin-bottom: 1rem;
}

.about-section p,
.about-section li {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--gray-text);
}

.about-section ul {
    margin-left: 1.5rem;
}

.about-section li {
    margin-bottom: 0.75rem;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info {
    height: fit-content;
}

.info-item {
    margin-bottom: 1.5rem;
}

.info-item h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #7E22CE;
    margin-bottom: 0.5rem;
}

.info-item p {
    font-size: 0.9rem;
    color: #7E22CE;
}

.contact-form {
    background-color: white;
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid #EBC6F9;
}

.contact-form h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    color: #7E22CE;
    margin-bottom: 1.5rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }

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

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

    .catalogo-wrapper {
        grid-template-columns: 1fr;
    }

    .filters {
        order: 2;
    }

    .products-section {
        order: 1;
    }

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

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

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .cart-content.cart-with-model {
        grid-template-columns: 1fr;
    }

    .sketchfab-embed-wrapper iframe {
        height: 300px;
    }

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

    .admin-sidebar ul {
        display: flex;
        flex-direction: row;
    }

    .sidebar-link {
        padding: 1rem;
    }

    .cart-table {
        font-size: 0.9rem;
    }

    .form-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

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

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

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

    .price-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .summary-item {
        flex-direction: column;
    }

    .action-buttons {
        flex-direction: column;
    }

    .admin-table {
        font-size: 0.85rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.75rem;
    }
}

/* ==========================================
   ELEGANT CART PAGE STYLES
   ========================================== */

/* Navbar for Cart Page */
.navbar .nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.search-box {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 25px;
    padding: 0.5rem 1rem;
    gap: 0.5rem;
}

.search-box i {
    color: #999;
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.9rem;
    width: 150px;
}

.sale-link {
    color: inherit;
    font-weight: inherit;
}

.cart-icon-link,
.user-icon-link {
    color: #333;
    font-size: 1.2rem;
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #EBC6F9;
    color: #7E22CE;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-badge:empty {
    display: none;
}

/* Cart Page Container */
.cart-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: calc(100vh - 300px);
}

.cart-header {
    margin-bottom: 30px;
}

.cart-header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    color: #222;
    margin-bottom: 8px;
    font-family: 'Georgia', serif;
}

.cart-subtitle {
    color: #666;
    font-size: 1rem;
}

/* 3D Shopping Bag Section */
.shopping-bag-3d-section {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, rgba(233, 30, 140, 0.08) 0%, rgba(240, 98, 146, 0.08) 100%);
    border-radius: 12px;
    border: 1px solid rgba(233, 30, 140, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.shopping-bag-3d-section h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 0.05em;
}

.shopping-bag-3d-inline {
    margin: 0;
    padding: 0;
    background: transparent;
}

.shopping-bag-3d-inline h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.05em;
}

.model-viewer-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.model-viewer-wrapper-inline {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
}

model-viewer {
    width: 100%;
    max-width: 700px;
    height: 550px;
    display: block;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(126, 34, 206, 0.15);
}

.model-viewer-wrapper-inline model-viewer {
    max-width: 350px;
    height: 350px;
}

/* Auto-rotate animation for model viewer */
@keyframes spin {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

/* Cart Layout */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 40px;
    align-items: start;
}

.cart-right-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Cart Products Section */
.cart-products-section {
    background: white;
    border-radius: 12px;
    padding: 0;
}

.cart-table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 100px;
    padding: 20px 25px;
    border-bottom: 2px solid #7E22CE;
    font-size: 0.7rem;
    font-weight: 700;
    color: #7E22CE;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    background: #EBC6F9;
    border-radius: 12px 12px 0 0;
}

.cart-items-list {
    margin-bottom: 0;
}

.cart-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 100px;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.3s ease;
    background: white;
}

.cart-item:hover {
    background: #fafbfc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cart-item:last-child {
    border-bottom: none;
    border-radius: 0 0 12px 12px;
}

.item-product {
    display: flex;
    align-items: center;
    gap: 16px;
}

.item-image {
    width: 90px;
    height: 90px;
    overflow: hidden;
    border-radius: 8px;
    background: #f9f9f9;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

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

.item-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.item-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #222;
    margin: 0;
}

.item-variant {
    font-size: 0.8rem;
    color: #999;
    margin: 0;
}

.item-price-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.item-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
}

.sale-badge {
    display: inline-block;
    background: rgba(76, 175, 80, 0.25);
    color: #2d7a2d;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.item-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.item-name {
    font-size: 1rem;
    font-weight: 500;
    color: #222;
    margin: 0;
}

.item-variant {
    font-size: 0.85rem;
    color: #888;
    margin: 0;
}

/* Quantity Controls */
.item-quantity {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--pastel-pink-medium);
    border-radius: 4px;
    width: fit-content;
    background: white;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--gray-text);
    transition: all 0.2s;
}

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

.qty-value {
    width: 40px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 500;
}

.item-price {
    font-size: 1.1rem;
    font-weight: 500;
    color: #222;
}

.remove-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: #999;
    font-size: 0.8rem;
    cursor: pointer;
    transition: color 0.2s;
}

.remove-btn:hover {
    color: #7E22CE;
}

.continue-shopping-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    background: #EBC6F9;
    color: #7E22CE;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin: 0;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.continue-shopping-link:hover {
    background: #D9A8F2;
    transform: translateX(-5px);
}

/* Order Summary Card */
.order-summary-card {
    background: white;
    border: 1px solid var(--pastel-pink-medium);
    border-radius: 8px;
    padding: 30px;
    position: static;
    overflow: visible;
}

.order-summary-card h2 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 25px;
    color: var(--dark-color);
}

.summary-details {
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.summary-row span:first-child {
    color: #666;
}

.shipping-text {
    color: #999;
    font-size: 0.85rem;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    margin-bottom: 25px;
}

.summary-total span:first-child {
    font-size: 1rem;
    font-weight: 500;
}

.total-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: #7E22CE;
}

/* Promo Code */
.promo-code-section {
    margin-bottom: 20px;
}

.promo-code-section label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #666;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.promo-input-wrapper {
    display: flex;
    gap: 10px;
}

.promo-input-wrapper input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 0.9rem;
}

.promo-input-wrapper input:focus {
    outline: none;
    border-color: #e91e8c;
}

.btn-apply {
    padding: 12px 20px;
    background: #EBC6F9;
    color: #7E22CE;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-apply:hover {
    background: #D9A8F2;
}

/* Checkout Button */
.btn-checkout {
    width: 100%;
    padding: 16px;
    background: linear-gradient(180deg, #EBC6F9 0%, #D9A8F2 100%);
    color: #7E22CE;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
    margin-bottom: 25px;
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(233, 30, 140, 0.4);
}

/* Checkout Guarantees */
.checkout-guarantees {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #666;
}

.guarantee-item i {
    color: #e91e8c;
    font-size: 0.9rem;
}

/* Validation Error */
.validation-error {
    color: #d32f2f;
    font-size: 0.9rem;
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Empty Cart Elegant */
.empty-cart-elegant {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 20px;
    text-align: center;
    min-height: 70vh;
}

.empty-cart-icon {
    font-size: 4rem;
    color: #EBC6F9;
    margin-bottom: 20px;
}

.empty-cart-elegant h2 {
    font-size: 1.8rem;
    font-weight: 300;
    color: #000000;
    margin-bottom: 10px;
}

.empty-cart-elegant p {
    color: #888;
    margin-bottom: 30px;
}

.btn-elegant-primary {
    display: inline-block;
    padding: 15px 40px;
    background: #EBC6F9;
    color: #7E22CE;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-elegant-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(126, 34, 206, 0.3);
}

/* Elegant Footer */
.footer-elegant {
    background: linear-gradient(180deg, var(--pastel-pink-medium) 0%, var(--light-pink) 100%);
    padding: 50px 0 20px;
    margin-top: 60px;
    border-top: 1px solid var(--accent-color);
}

/* Pink footer variant */
.footer-elegant.pink-footer {
    background: linear-gradient(180deg, #EBC6F9 0%, #D9A8F2 100%);
    padding: 48px 0 20px;
}

.footer-elegant.pink-footer .footer-top {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    padding: 0 20px 28px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-elegant.pink-footer .footer-brand {
    flex: 1.5;
}

.footer-elegant.pink-footer .footer-brand a {
    color: #333;
    text-decoration: none;
}

.footer-elegant.pink-footer .footer-brand p {
    color: rgba(0,0,0,0.8);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-elegant.pink-footer .footer-col {
    flex: 1;
}

.footer-elegant.pink-footer h4 {
    color: #7E22CE;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.footer-elegant.pink-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-elegant.pink-footer ul li {
    margin-bottom: 10px;
}

.footer-elegant.pink-footer ul a {
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-elegant.pink-footer ul a:hover {
    color: #7E22CE;
}

.footer-elegant.pink-footer .newsletter-form {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.footer-elegant.pink-footer .newsletter-form input {
    flex: 1;
    padding: 10px 12px;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.1);
    background: rgba(255,255,255,0.8);
    color: #333;
    font-size: 0.9rem;
}

.footer-elegant.pink-footer .newsletter-form button {
    padding: 10px 18px;
    border-radius: 4px;
    background: #7E22CE;
    color: white;
    border: none;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.footer-elegant.pink-footer .newsletter-form button:hover {
    background: #6D28D9;
}

.footer-elegant.pink-footer .footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 20px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    gap: 10px;
}

.footer-elegant.pink-footer .social-icons {
    display: flex;
    gap: 12px;
}

.footer-elegant.pink-footer .social-icons a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: rgba(126, 34, 206, 0.15);
    border-radius: 50%;
    color: #7E22CE;
    font-size: 1rem;
    transition: all 0.2s;
    text-decoration: none;
}

.footer-elegant.pink-footer .social-icons a:hover {
    background: #7E22CE;
    color: white;
}

.footer-elegant.pink-footer .designer {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    text-transform: none;
    margin-top: 6px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul a {
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-section ul a:hover {
    color: #e91e8c;
}

.newsletter-section p {
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.newsletter-form button {
    padding: 12px 25px;
    background: transparent;
    border: 1px solid #e91e8c;
    color: #e91e8c;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.newsletter-form button:hover {
    background: #e91e8c;
    color: white;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.3);
}

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--gray-text);
    letter-spacing: 0.5px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: color 0.2s;
}

.social-icons a:hover {
    color: var(--primary-dark);
}

/* Search Dropdown */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--gray-light);
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-light);
    text-decoration: none;
    color: var(--dark-color);
    transition: background-color 0.2s;
}

.search-item:hover {
    background-color: var(--light-gray);
}

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

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

.search-item-name {
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.search-item-price {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.85rem;
}

.search-no-results {
    padding: 20px 16px;
    text-align: center;
    color: var(--gray-text);
    font-size: 0.9rem;
}

/* Ocultar búsqueda en páginas de marcas */
body.brand-page .search-box {
    display: none;
}

/* Search Section Home */
.search-section {
    padding: 2rem;
    background-color: #DCC4ED;
}

.search-container {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 25px;
    padding: 1rem 1.5rem;
    gap: 0.75rem;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    max-width: 1100px;
}

.search-container i {
    color: var(--gray-light);
    font-size: 1.1rem;
}

.search-container input {
    border: none;
    background: transparent;
    outline: none;
    font-family: var(--font-body);
    font-size: 1rem;
    flex: 1;
    color: var(--dark-color);
}

.search-container input::placeholder {
    color: var(--gray-light);
}

/* Cart Responsive */
@media (max-width: 900px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
    
    .order-summary-card {
        position: static;
    }
    
    .cart-table-header {
        display: none;
    }
    
    .cart-item {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .item-product {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
/* SHIPPING / ENVÍO STYLES */
.form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.form-section h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.input-group {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}

.input-group input {
    flex: 1;
}

.input-group .btn {
    white-space: nowrap;
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

#shipping-result {
    background-color: #f0f8ff;
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    border-radius: 4px;
}

#shipping-result p {
    margin: 0.5rem 0;
    color: var(--dark-color);
}

#shipping-result strong {
    color: var(--primary-color);
}

#shipping-cost-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.error {
    background-color: #fee;
    color: #c33;
    padding: 1rem;
    border-radius: 4px;
    border-left: 4px solid #c33;
    margin-bottom: 1rem;
}

#shipping-summary-item {
    border-top: 1px solid var(--border-color);
    padding-top: 0.75rem;
}

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

    .input-group {
        flex-direction: column;
    }

    .input-group .btn {
        width: 100%;
    }
}

/* Ocultar botón de aplicar filtros */
#apply-filters {
    display: none;
}

/* Estilo específico para botón Calcular Envío */
#calculate-shipping-btn {
    background-color: #f3e8ff;
    color: #9b59b6 !important;
    border: 2px solid #9b59b6 !important;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#calculate-shipping-btn:hover {
    background-color: #f3e8ff;
    color: #9b59b6 !important;
    border-color: #9b59b6 !important;
    transform: none;
    box-shadow: none;
}

/* ===== ESTILOS ADMIN DASHBOARD ===== */
.admin-container {
    background: linear-gradient(135deg, var(--very-light-pink) 0%, var(--pastel-pink) 100%);
    min-height: 100vh;
}

.admin-form-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(233, 30, 140, 0.08);
    margin-bottom: 2rem;
}

.admin-form-section h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 1rem;
}

/* Mejorar estilos de inputs en admin */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #7E22CE;
    box-shadow: 0 0 0 3px rgba(126, 34, 206, 0.1);
    outline: none;
}

/* Botones admin con colores pastel */
.btn-admin-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-admin-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(233, 30, 140, 0.25);
}

.btn-admin-secondary {
    background: var(--accent-color);
    color: var(--primary-color);
    border: 1px solid var(--primary-light);
    padding: 0.85rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-admin-secondary:hover {
    background: var(--primary-light);
    color: white;
}

/* Table styling para admin */
.admin-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(233, 30, 140, 0.08);
    margin-top: 1.5rem;
}

.admin-table thead {
    background: linear-gradient(135deg, var(--pastel-pink-medium) 0%, var(--accent-color) 100%);
}

.admin-table th {
    color: var(--primary-color);
    padding: 1.25rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-light);
}

.admin-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.admin-table tbody tr:hover {
    background-color: var(--very-light-pink);
}

/* Modal/Dialog styling */
.admin-modal {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Status badges con colores pastel */
.badge-success {
    background: #c8e6c9;
    color: #2e7d32;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-warning {
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-danger {
    background: #ffcdd2;
    color: #c62828;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Animación de spinner de carga */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}