/* =========================================================
   detalle.css — Estilos específicos del detalle de producto
   Requiere: public-base.css cargado antes
   ========================================================= */

/* ── PAGE ── */
.page {
    max-width: 1300px;
    margin: 0 auto;
    padding: clamp(1.75rem, 4vw, 3.5rem) clamp(1rem, 5vw, 3.5rem) 5rem;
}

/* ── BREADCRUMB ── */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
    font-size: 0.78rem;
    color: var(--text-muted);
}
.breadcrumb-nav a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb-nav a:hover { color: var(--black); }
.breadcrumb-nav__sep { font-size: 0.6rem; opacity: 0.4; }
.breadcrumb-nav__current { color: var(--black); font-weight: 500; }

/* ── LAYOUT ── */
.product-layout {
    display: grid;
    grid-template-columns: 55% 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}
@media (max-width: 960px) {
    .product-layout { grid-template-columns: 1fr; }
}

/* ── GALLERY ── */
.gallery {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
@media (min-width: 961px) {
    .gallery { position: sticky; top: calc(var(--nav-h) + 20px); }
}

.gallery__main {
    aspect-ratio: 4/5;
    background: #EEEEED;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: zoom-in;
}
.gallery__main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 2.5rem;
    transition: transform 0.45s ease;
    display: block;
}
.gallery__main:hover .gallery__main-img { transform: scale(1.04); }
.gallery__main-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 4rem;
}

.gallery__thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
}
.gallery__thumbs::-webkit-scrollbar { display: none; }

.gallery__thumb {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    background: #EEEEED;
    transition: border-color 0.2s;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery__thumb.active { border-color: var(--black); }
.gallery__thumb:hover:not(.active) { border-color: #bbb; }

/* ── INFO PANEL ── */
.product-info {
    display: flex;
    flex-direction: column;
    gap: clamp(1.25rem, 2vw, 1.75rem);
}

.info-cat {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
}
.info-cat::before {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: var(--accent);
    flex-shrink: 0;
}

.info-name {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.025em;
    text-transform: uppercase;
}
.info-price {
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    font-weight: 700;
}
.info-hr {
    border: none;
    border-top: 1px solid var(--border);
}
.info-block-label {
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}
.info-desc {
    font-size: 0.93rem;
    color: #555;
    line-height: 1.75;
    font-weight: 400;
}

/* ── VARIANT CHIPS ── */
.chips-row { display: flex; flex-wrap: wrap; gap: 7px; }

.color-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 100px;
    border: 1.5px solid var(--border);
    background: var(--white);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--black);
}
.color-chip__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--black);
    flex-shrink: 0;
}
.size-chip {
    min-width: 50px;
    height: 42px;
    padding: 0 14px;
    border-radius: 9px;
    border: 1.5px solid var(--border);
    background: var(--white);
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--black);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ── STOCK TABLE ── */
.stock-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
}
.stock-card__head {
    padding: 13px 18px;
    border-bottom: 1px solid var(--border);
}
.stock-card__head span {
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.stock-table {
    width: 100%;
    border-collapse: collapse;
}
.stock-table th {
    padding: 9px 18px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #c0c0c0;
    text-align: left;
    border-bottom: 1px solid var(--border);
    background: #FAFAFA;
}
.stock-table td {
    padding: 12px 18px;
    font-size: 0.85rem;
    font-weight: 500;
    border-bottom: 1px solid #F2F2F2;
    color: var(--black);
}
.stock-table tr:last-child td { border-bottom: none; }
.stock-table .text-right { text-align: right; }

.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #127D55;
    background: #EAFAF3;
    padding: 4px 10px;
    border-radius: 100px;
}
.stock-badge::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #1D9A6C;
    flex-shrink: 0;
}
.stock-empty {
    padding: 1.5rem 18px;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
}

/* ── BACK BUTTON ── */
.btn-back {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 15px 24px;
    border-radius: 100px;
    border: 2px solid var(--black);
    background: transparent;
    color: var(--black);
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.22s, color 0.22s;
}
.btn-back:hover { background: var(--black); color: var(--white); }
