/* ------------------------------------------- */
/*                LIGHT THEME ROOT             */
/* ------------------------------------------- */
:root {
    --bg-1: #ffffff;
    --bg-2: #f5f6f7;

    --card: rgba(0, 0, 0, 0.04);
    --glass: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.45));

    --text: #1a1a1a;
    --muted: rgba(0, 0, 0, 0.55) !important;

    --accent: #d2824b;
    --accent-2: #b06a3e;

    --radius: 14px;

    --shadow-1: 0 8px 26px rgba(0, 0, 0, 0.08);
    --shadow-2: 0 6px 18px rgba(0, 0, 0, 0.06);

    --glass-border: rgba(0, 0, 0, 0.10);

    --container: 1180px;
    --transition: 260ms cubic-bezier(.2, .9, .3, 1);
}

/* ------------------------------------------- */
/*                GLOBAL RESET                 */
/* ------------------------------------------- */
* { box-sizing: border-box; }

html, body {
    height: 100%;
    margin: 0;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
    color: var(--text);

    background:
        radial-gradient(1200px 400px at 10% 10%, rgba(210, 130, 75, 0.08), transparent 20%),
        radial-gradient(1000px 300px at 95% 90%, rgba(210, 130, 75, 0.05), transparent 20%),
        linear-gradient(180deg, var(--bg-1), var(--bg-2));

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* ------------------------------------------- */
/*                 PAGE WRAPPER                */
/* ------------------------------------------- */
.page {
    max-width: var(--container);
    margin: 32px auto;
    padding: 20px;
    display: grid;
    gap: 26px;
}

/* ------------------------------------------- */
/*                   TOPBAR                    */
/* ------------------------------------------- */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    box-shadow: 0 12px 34px rgba(210, 130, 75, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--accent);
    font-size: 20px;
}

.breadcrumbs,
.top-right {
    font-size: 0.95rem;
    color: var(--muted);
}

/* ------------------------------------------- */
/*                PRODUCT GRID                 */
/* ------------------------------------------- */
.product-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 28px;
}

/* ------------------------------------------- */
/*                GALLERY CARD                 */
/* ------------------------------------------- */
.gallery {
    background: #ffffff;
    border-radius: var(--radius);
    padding: 18px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-1);
    transition: var(--transition);
}

.gallery:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.13);
}

.preview {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #fafafa;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
    position: relative;
}

.preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ------------------------------------------- */
/*                ZOOM WINDOW                  */
/* ------------------------------------------- */
.zoom-window {
    position: fixed;
    width: 420px;
    height: 420px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: #fff center/cover no-repeat;
    display: none;
    box-shadow: var(--shadow-1);
    z-index: 60;
}

.zoom-window.visible {
    display: block;
}

/* Lens */
.zoom-lens {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.45);
    display: none;
    pointer-events: none;
}

/* ------------------------------------------- */
/*                 THUMBNAILS                  */
/* ------------------------------------------- */
.thumb-row {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}

.thumb {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    background: #f6f6f6;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.thumb img { width: 100%; height: 100%; object-fit: cover; }

.thumb.active {
    border-color: var(--accent);
    transform: translateY(-6px);
    box-shadow: var(--shadow-2);
}

/* ------------------------------------------- */
/*                  INFO CARD                  */
/* ------------------------------------------- */
.info {
    background: #ffffff;
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    padding: 18px;
    box-shadow: var(--shadow-2);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.sku {
    font-size: 0.9rem;
    color: var(--muted);
}

/* ------------------------------------------- */
/*                    PRICE                    */
/* ------------------------------------------- */
.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 1.4rem;
    font-weight: 800;
}

.old-price {
    color: var(--muted);
    text-decoration: line-through;
}

/* ------------------------------------------- */
/*                  VARIANTS                    */
/* ------------------------------------------- */
.size-variants,
.variants {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.size-chip {
    padding: 8px 12px;
    border-radius: 10px;
    background: #f6f6f6;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: var(--transition);
}

.size-chip:hover {
    background: #ececec;
}

.size-chip.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    font-weight: 700;
}

.color-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--glass-border);
    cursor: pointer;
    transition: var(--transition);
}

.color-circle.active {
    transform: scale(1.15);
    border-color: var(--accent);
}

/* ------------------------------------------- */
/*                    BUTTONS                  */
/* ------------------------------------------- */
.btn {
    padding: 12px 18px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
    color: white;
    font-weight: 700;
    box-shadow: 0 12px 34px rgba(210, 130, 75, 0.18);
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 55px rgba(210, 130, 75, 0.25);
}

.btn.secondary {
    background: #ffffff;
    border: 1px solid var(--glass-border);
    color: var(--text);
}

/* ------------------------------------------- */
/*                MEDIA CARD                   */
/* ------------------------------------------- */
.media-card {
    background: #ffffff;
    border: 1px solid var(--glass-border);
    padding: 14px;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--shadow-2);
}

.video-wrap {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.details {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.4;
}

/* ------------------------------------------- */
/*             HERO VIDEO SECTION              */
/* ------------------------------------------- */
.bg-video-section {
    height: 60vh;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    margin: 20px auto;
}

.bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: vid-pan 18s ease-in-out infinite alternate;
}

@keyframes vid-pan {
    from { transform: scale(1); }
    to   { transform: scale(1.03); }
}
