/* ---------- PRODUCTO DETALLE / CARRUSEL ---------- */

.product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 3rem;
    align-items: center;
    padding-top: 3rem;
    padding-bottom: 4rem;
}

.btn-red {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 12px 26px;
}


.product-gallery {
    background: #ffffff;
    border-radius: 2rem;
    box-shadow: 0 22px 60px rgba(0,0,0,0.08);
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-gallery__main {
    border-radius: 1.7rem;
    overflow: hidden;
    background: #f7f3f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-gallery__main img {
    width: 100%;
    max-width: 500px;
    max-height: 480px;
    object-fit: cover;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.product-img--fade {
    opacity: 0;
    transform: scale(0.98);
}

.product-gallery__thumbs {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.3rem;
    overflow-x: auto;
    padding-bottom: 0.3rem;
}

.product-gallery__thumb {
    flex: 0 0 70px;
    height: 70px;
    border-radius: 1rem;
    overflow: hidden;
    border: 2px solid transparent;
    background: #f3efec;
    cursor: pointer;
    opacity: 0.7;
    transition: border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.product-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-gallery__thumb.is-active {
    border-color: #b3193c;
    opacity: 1;
    transform: translateY(-2px);
}

/* INFO DEL PRODUCTO */

.product-info {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.product-info__title {
    font-size: 2rem;
    margin-bottom: 0.3rem;
    color: #1a1a1a;
}

.product-info__code {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #9b9b9b;
}

.product-info__price {
    font-size: 1.5rem;
    font-weight: 600;
    color: #b3193c;
    margin-top: 0.3rem;
}

.product-info__desc {
    margin-top: 0.8rem;
    color: #555555;
    max-width: 30rem;
}

.product-info__meta {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.product-info__actions {
    margin-top: 1.4rem;
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.product-info__recommend {
    margin-top: 2.5rem;
}

.product-info__recommend-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* checkout layout */
.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 2rem;
}

.checkout-summary {
    border-radius: 1.4rem;
    background: #fff;
    padding: 1.5rem;
    box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}

@media (max-width: 980px) {
    .product-layout,
    .checkout-layout {
        grid-template-columns: 1fr;
    }
}

/* -------- RESET BÁSICO -------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #f7f3f0;   /* Fondo claro general */
    color: #1f1f1f;
    line-height: 1.6;
}

/* -------- LAYOUT GENERAL -------- */

.container {
    width: min(1120px, 90%);
    margin: 0 auto;
}

.section {
    padding: 4rem 0;
}

.section--light {
    background: #ffffff;
}

.section__header {
    text-align: center;
    margin-bottom: 3rem;
}

.section__header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.section__header p {
    color: #555555;
}

.section__header--flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* -------- HEADER / MENÚ -------- */

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0;
}

.logo img {
    height: 34px;
    display: block;
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav a {
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #333333;
    position: relative;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.25rem;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #b3193c, #f8a2b4);
    transition: width 0.25s ease;
}

.nav a:hover::after {
    width: 100%;
}

/* Iconos derecha */
.header__actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.icon-button {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 999px;
    color: #333333;
    cursor: pointer;
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.icon-button:hover {
    border-color: #b3193c;
}

.badge {
    background: #b3193c;
    color: #fff;
    border-radius: 999px;
    padding: 0 0.4rem;
    font-size: 0.7rem;
}

/* -------- HERO -------- */

.hero {
    padding: 5rem 0 4rem;
    background: radial-gradient(circle at top left, #ffe1eb 0, #f7f3f0 55%);
}

.hero__content {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 3rem;
    align-items: center;
}

.hero__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.7rem;
    color: #b3193c;
    opacity: 0.9;
    margin-bottom: 0.8rem;
}

.hero__text h1 {
    font-size: clamp(2rem, 3vw + 1rem, 2.9rem);
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.hero__subtitle {
    max-width: 30rem;
    color: #555555;
    margin-bottom: 1.5rem;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* -------- BOTONES -------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.6rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn--primary {
    background: radial-gradient(circle at top left, #ff4f7d 0, #b3193c 70%);
    color: #ffffff;
    box-shadow: 0 12px 32px rgba(179, 25, 60, 0.35);
}

.btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 40px rgba(179, 25, 60, 0.5);
}

.btn--outline {
    border: 1px solid #b3193c;
    color: #b3193c;
    background: transparent;
}

.btn--outline:hover {
    background: rgba(179, 25, 60, 0.06);
}

.btn--small {
    padding: 0.5rem 1.2rem;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
}

.btn--ghost {
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #ffffff;
    color: #333333;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.55rem 1rem;
    cursor: pointer;
}

.btn--ghost:hover {
    border-color: #b3193c;
}

/* -------- HERO IMAGEN -------- */

.hero__image {
    display: flex;
    justify-content: flex-end;
}

.hero__card {
    width: 100%;
    max-width: 340px;
    padding: 1rem;
    border-radius: 2rem;
    background: radial-gradient(circle at top, #ffe1eb 0, #ffffff 60%);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
    transform: rotate(-3deg);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero__card img {
    width: 100%;
    border-radius: 1.5rem;
    display: block;
    margin-bottom: 0.9rem;
}

.hero__card-info p {
    font-size: 0.85rem;
    color: #444444;
}

.hero__card:hover {
    transform: rotate(0deg) translateY(-4px);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.16);
}

/* -------- PILLS -------- */

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.8rem;
    border-radius: 999px;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.pill--accent {
    background: rgba(179, 25, 60, 0.09);
    color: #b3193c;
    border: 1px solid rgba(179, 25, 60, 0.4);
    margin-bottom: 0.4rem;
}

.pill--small {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(179, 25, 60, 0.5);
    color: #b3193c;
}

/* -------- CATEGORÍAS (HOME) -------- */

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.category-card {
    border-radius: 1.2rem;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.category-card__image {
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: #f3efec;
}

.category-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.category-card__body {
    padding: 1rem 1.2rem 1.3rem;
}

.category-card h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: #1f1f1f;
}

.category-card p {
    font-size: 0.85rem;
    color: #666666;
}

.category-card:hover {
    border-color: rgba(179, 25, 60, 0.9);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08);
    background: linear-gradient(135deg, #ffe1eb 0, #ffffff 70%);
    transform: translateY(-2px);
}

/* -------- BUSCADOR GENERAL (overlay) -------- */

.search-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 80;
}

.search-overlay.is-visible {
    display: flex;
}

.search-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.search-overlay__panel {
    position: relative;
    z-index: 1;
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 1.8rem 2rem;
    width: min(480px, 90%);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.25);
}

.search-overlay__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.search-overlay__header h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #333;
}

.search-overlay__close {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
}

.search-overlay form {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.search-overlay input[type="text"] {
    flex: 1;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.16);
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
}

.search-overlay button[type="submit"] {
    border-radius: 999px;
    border: none;
    padding: 0.6rem 1.2rem;
    background: #b3193c;
    color: #fff;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    cursor: pointer;
}

/* -------- BUSCADOR DE PÁGINA -------- */

.search-input {
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #ffffff;
    color: #333333;
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
    min-width: 220px;
}

.search-input::placeholder {
    color: #999999;
}

.section__tools {
    display: flex;
    justify-content: flex-end;
}

/* -------- GRID PRODUCTOS -------- */

.grid-products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.8rem;
}

.product-card {
    background: #ffffff;
    border-radius: 1.4rem;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
}

.product-card__image {
    position: relative;
    background: #f3efec;
}

.product-card__image img {
    width: 100%;
    display: block;
}

.product-card__body {
    padding: 1rem 1.3rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    height: 100%;
}

.product-card h3 {
    font-size: 1rem;
    color: #222222;
}

.product-card__ref {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #9d9d9d;
}

.product-card__desc {
    font-size: 0.85rem;
    color: #666666;
    margin-top: 0.3rem;
    margin-bottom: 0.4rem;
}

.product-card__price {
    font-weight: 600;
    margin-top: 0.2rem;
    color: #1f1f1f;
}

.product-card__footer {
    margin-top: 0.7rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(179, 25, 60, 0.9);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

/* -------- CONTACTO -------- */

.contact {
    text-align: center;
}

.contact h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.contact__info {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.95rem;
    color: #555555;
}

/* -------- FOOTER -------- */

.footer {
    background: #222222;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.2rem 0;
    font-size: 0.85rem;
    color: #e5e5e5;
}

.footer__content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
}

/* -------- MODAL BIENVENIDA -------- */

.welcome-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.welcome-modal__panel {
    position: relative;
    z-index: 1;
    background: #ffffff;
    border-radius: 1.6rem;
    padding: 1.8rem 2rem;
    width: min(420px, 90%);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.welcome-modal__title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.welcome-modal__text {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1.2rem;
}

.welcome-modal__brand {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #b3193c;
    margin-bottom: 0.3rem;
}

.welcome-modal__close {
    position: absolute;
    top: 0.7rem;
    right: 0.8rem;
    background: transparent;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
}

.welcome-modal.is-hidden {
    display: none;
}

/* -------- CARRITO -------- */

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
}

.cart-table th,
.cart-table td {
    padding: 0.6rem 0.4rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.9rem;
}

.cart-table th {
    text-align: left;
    color: #555;
}

.cart-table td:last-child,
.cart-table th:last-child {
    text-align: right;
}

/* -------- RESPONSIVE -------- */

@media (max-width: 980px) {
    .hero__content {
        grid-template-columns: 1fr;
    }
    .hero__image {
        justify-content: center;
        order: -1;
        margin-bottom: 1.5rem;
    }
    .section__header--flex {
        flex-direction: column;
        align-items: flex-start;
    }
    .grid-products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .nav {
        display: none; /* luego se puede hacer menú hamburguesa */
    }
    .grid-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .grid-products,
    .category-grid {
        grid-template-columns: 1fr;
    }
    .hero {
        padding-top: 4rem;
    }
}

/* -------- MODAL BIENVENIDA -------- */
.welcome-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.welcome-modal__panel {
    position: relative;
    z-index: 1;
    background: #ffffff;
    border-radius: 1.6rem;
    padding: 1.8rem 2rem;
    width: min(420px, 90%);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.welcome-modal__title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.welcome-modal__text {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1.2rem;
}

.welcome-modal__brand {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #b3193c;
    margin-bottom: 0.3rem;
}

.welcome-modal__close {
    position: absolute;
    top: 0.7rem;
    right: 0.8rem;
    background: transparent;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
}

/* Cuando se oculta */
.welcome-modal.is-hidden {
    display: none;
}

/* -------- BOTONES DEL CARRITO -------- */
.cart-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Seguir comprando (izquierda) */
.btn-cart-ghost {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    font-size: 0.88rem;
    color: #222;
    text-decoration: none;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 100px;
    justify-self: start;
    transition: 0.2s ease;
}

.btn-cart-ghost:hover {
    background: #f3efec;
    border-color: #bbb;
}

/* Botón checkout premium */
.btn-cart-checkout {
    display: inline-block;
    padding: 0.85rem 1.6rem;
    font-size: 0.9rem;
    text-align: center;
    text-decoration: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff6b94 0%, #b3193c 80%);
    color: white;
    font-weight: 600;
    letter-spacing: 0.04em;
    box-shadow: 0 10px 26px rgba(179, 25, 60, 0.35);
    transition: 0.2s ease;
}

.btn-cart-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(179, 25, 60, 0.45);
}

/* Vaciar carrito */
.btn-cart-delete {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    font-size: 0.88rem;
    text-decoration: none;
    color: #b3193c;
    border: 1px solid #b3193c;
    border-radius: 100px;
    text-align: center;
    transition: 0.2s ease;
}

.btn-cart-delete:hover {
    background: #ffe6eb;
}

/* -------- MOVER RESUMEN MÁS A LA DERECHA -------- */
.checkout-summary {
    margin-left: 1.5rem; /* mueve la cajita hacia la derecha */
}

/* ================================
   GALERÍA DE PRODUCTO (PREMIUM)
   ================================ */

.product-page {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: flex-start;
}

/* --- carrusel contenedor --- */
.product-gallery {
    position: relative;
    width: 100%;
}

/* --- imagen principal --- */
.product-gallery__main {
    position: relative;
    width: 100%;
    height: 520px;
    border-radius: 1.6rem;
    overflow: hidden;
    background: #f3efec;
    box-shadow: 0 20px 45px rgba(0,0,0,0.12);
}

.pg-slide {
    position: absolute;
    width: 100%;
    height: 520px;
    object-fit: cover;
    opacity: 0;
    transition: opacity .4s ease;
}

.pg-slide.active {
    opacity: 1;
}

/* --- botones del carrusel --- */
.pg-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(8px);
    border: none;
    border-radius: 999px;
    width: 42px;
    height: 42px;
    font-size: 1.3rem;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    transition: 0.2s;
}

.pg-btn:hover {
    background: white;
}

.pg-prev { left: 12px; }
.pg-next { right: 12px; }

/* --- miniaturas --- */
.product-gallery__thumbs {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
}

.pg-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 1rem;
    opacity: 0.5;
    cursor: pointer;
    transition: 0.25s ease;
    border: 2px solid transparent;
}

.pg-thumb:hover,
.pg-thumb.selected {
    opacity: 1;
    transform: scale(1.04);
    border-color: #b3193c;
}

/* ================================
   DETALLES DEL PRODUCTO
   ================================ */

.product-title {
    font-size: 2.1rem;
    margin-bottom: 0.4rem;
}

.product-ref {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 1.2rem;
}

.product-price {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #b3193c;
}

.product-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ---------- PRODUCTO DETALLE / CARRUSEL ---------- */

.product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 3rem;
    align-items: center;
    padding-top: 3rem;
    padding-bottom: 4rem;
}

.product-gallery {
    background: #ffffff;
    border-radius: 2rem;
    box-shadow: 0 22px 60px rgba(0,0,0,0.08);
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-gallery__main {
    border-radius: 1.7rem;
    overflow: hidden;
    background: #f7f3f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-gallery__main img {
    width: 100%;
    max-height: 480px;
    object-fit: contain;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.product-img--fade {
    opacity: 0;
    transform: scale(0.98);
}

.product-gallery__thumbs {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.3rem;
    overflow-x: auto;
    padding-bottom: 0.3rem;
}

.product-gallery__thumb {
    flex: 0 0 70px;
    height: 70px;
    border-radius: 1rem;
    overflow: hidden;
    border: 2px solid transparent;
    background: #f3efec;
    cursor: pointer;
    opacity: 0.7;
    transition: border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.product-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-gallery__thumb.is-active {
    border-color: #b3193c;
    opacity: 1;
    transform: translateY(-2px);
}

/* INFO DEL PRODUCTO */

.product-info {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.product-info__pill {
    margin-bottom: 0.4rem;
}

.product-info__title {
    font-size: 2rem;
    margin-bottom: 0.3rem;
    color: #1a1a1a;
}

.product-info__code {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #9b9b9b;
}

.product-info__price {
    font-size: 1.5rem;
    font-weight: 600;
    color: #b3193c;
    margin-top: 0.3rem;
}

.product-info__desc {
    margin-top: 0.8rem;
    color: #555555;
    max-width: 30rem;
}

.product-info__meta {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.product-info__actions {
    margin-top: 1.4rem;
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.product-info__recommend {
    margin-top: 2.5rem;
}

.product-info__recommend-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 980px) {
    .product-layout {
        grid-template-columns: 1fr;
    }
}

/* --- DETALLE DEL PRODUCTO (IMAGEN PRINCIPAL + CARRUSEL) --- */

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    padding-top: 2rem;
}

/* Imagen principal */
.product-detail__image img {
    width: 100%;
    height: auto;
    max-width: 500px;
    border-radius: 1.4rem;
    object-fit: cover;
    margin: 0 auto;
    display: block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Carrusel miniaturas */
.product-detail__thumbs {
    display: flex;
    flex-direction: row;
    gap: 0.8rem;
    margin-top: 1rem;
}

.product-detail__thumbs img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 0.8rem;
    cursor: pointer;
    transition: 0.2s;
    border: 2px solid transparent;
}

.product-detail__thumbs img:hover {
    border-color: #b3193c;
    transform: scale(1.05);
}

/* Responsivo */
@media (max-width: 900px) {
    .product-detail {
        grid-template-columns: 1fr;
    }
}

/* Botón añadir al carrito en una sola línea */
.btn-red,
.card-buttons a.btn-red {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    white-space: nowrap !important;
    padding: 12px 26px !important;
    line-height: 1.2 !important;
}

/* Tarjetas de colección: imágenes más grandes y bonitas */
.product-card__image img,
.product-card img {
    width: 100% !important;
    height: 350px !important;
    object-fit: cover !important;
    border-radius: 18px;
}

/* Foto pequeña en la tabla del carrito */
.cart-item-thumb img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 1rem;
    display: block;
}
