html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.zoom-img-container {
    position: relative;
    display: inline-block;
}

#variantTable th, #variantTable td {
    vertical-align: middle;
}

#variantTable input[type=file] {
    width: 160px;
}

#sizes {
    min-width: 160px;
}

.product-gallery .main-img {
    object-fit: cover;
}

.product-gallery .thumb {
    object-fit: cover;
    opacity: .9;
}

    .product-gallery .thumb:hover {
        opacity: 1;
        box-shadow: 0 0 0 2px #0d6efd;
    }

.table td, .table th {
    vertical-align: middle;
}

/*     @@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@400;600;700&display=swap');
 */
:root {
    --bg: #fff;
    --muted: #5f6368;
    --text: #0b0c0d;
    --brand: #111827;
    --accent: #5d5fef;
    --accent-2: #00b3ff;
    --ring: rgba(0,0,0,.08);
}

html, body {
    background: var(--bg);
}

body {
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .section-title, .copy-title, .copy-sub {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

.container-narrow {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 18px
}

.scrollspy {
    position: fixed;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    gap: 10px;
    z-index: 50
}

    .scrollspy a {
        width: 10px;
        height: 10px;
        border-radius: 999px;
        background: #e5e7eb;
        border: 2px solid #d1d5db;
        display: block;
        transition: all .2s ease
    }

        .scrollspy a.active {
            background: linear-gradient(135deg,var(--accent),var(--accent-2));
            border-color: transparent;
            box-shadow: 0 0 0 6px rgba(0,179,255,.14)
        }

.section {
    padding: clamp(36px,6vw,80px) 0
}

.section-head {
    margin-bottom: clamp(14px,2vw,22px);
    display: flex;
    align-items: baseline;
    gap: 12px
}

.badge-soft {
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 6px 10px
}

.full-bleed {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
}

.mac-hero {
    padding: 10px;
    /*  margin-bottom: clamp(72px, 12vw, 280px);
 */
}

    .mac-hero .overlay {
        position: absolute;
        inset: 0;
        z-index: 2;
        display: flex;
        align-items: flex-end;
        justify-content: flex-end;
        text-align: right;
        pointer-events: none;
        padding: clamp(12px, 3vw, 32px);
        padding-right: calc(clamp(12px, 3vw, 32px) + env(safe-area-inset-right));
        padding-bottom: calc(clamp(12px, 3vw, 32px) + env(safe-area-inset-bottom));
    }

        .mac-hero .overlay .content {
            pointer-events: auto;
            margin: 0;
            max-width: min(42ch, 520px);
        }

    .mac-hero .actions {
        justify-content: flex-end;
    }

.video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    max-height: clamp(420px,62vw,920px);
    background: #000;
    overflow: hidden;
}

@media (max-width: 767.98px) {
    .video-wrap {
        aspect-ratio: 10/16;
        max-height: none;
    }
}

.mac-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: none;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.video-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg,rgba(255,255,255,.65) 0%, transparent 20%, transparent 80%, rgba(255,255,255,.65) 100%);
    mix-blend-mode: screen;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid transparent;
    transition: transform .2s,box-shadow .2s,background .2s
}

    .btn:active {
        transform: translateY(1px)
    }

.btn-brand {
    background: linear-gradient(135deg,var(--accent),var(--accent-2));
    color: #fff;
    box-shadow: 0 10px 30px rgba(93,95,239,.28)
}

.btn-ghost {
    background: #fff;
    color: var(--brand);
    border-color: #e5e7eb
}

    .btn-ghost:hover {
        background: #f9fafb
    }

.grid {
    display: grid;
    gap: 18px
}

    .grid.cols-3 {
        grid-template-columns: repeat(12,1fr)
    }

@media (min-width: 992px) {
    .grid.cols-3 > * {
        grid-column: span 4
    }
}

@media (max-width: 991.98px) {
    .grid.cols-3 {
        grid-template-columns: 1fr
    }
}

.card-look {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    transition: transform .25s,box-shadow .25s;
    box-shadow: 0 1px 0 var(--ring)
}

    .card-look:hover {
        transform: translateY(-4px);
        box-shadow: 0 18px 50px rgba(0,0,0,.1)
    }

.grid.cols-3 .card-look img {
    width: 100%;
    height: clamp(870px,38vw,720px);
    object-fit: cover;
    object-position: center;
    filter: none;
    image-rendering: -webkit-optimize-contrast;
    transform: translateZ(0)
}

.card-body {
    padding: 16px 16px 18px
}

    .card-body .meta {
        font-size: 12px;
        letter-spacing: .1em;
        color: var(--muted);
        text-transform: uppercase
    }

.split {
    display: grid;
    gap: 18px;
    grid-template-columns: 1.2fr 1fr;
    align-items: stretch
}

@media (max-width: 991.98px) {
    .split {
        grid-template-columns: 1fr
    }
}

.split .pane {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 1px 0 var(--ring)
}

    .split .pane img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        filter: none;
        transform: translateZ(0)
    }

    .split .pane .content {
        padding: clamp(18px,2.2vw,26px)
    }

.kpis {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3,1fr)
}

.kpi {
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
    box-shadow: 0 1px 0 var(--ring)
}

.contact {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 1px 0 var(--ring);
    padding: clamp(18px,2.2vw,26px)
}

.form-control, .form-select, textarea {
    background: #fff !important;
    color: var(--text) !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 1px 0 var(--ring) inset
}

    .form-control:focus, textarea:focus {
        outline: none;
        border-color: #c7d2fe !important;
        box-shadow: 0 0 0 4px rgba(59,130,246,.15) !important
    }

.section-title {
    font-weight: 900;
    letter-spacing: -.01em;
    font-size: clamp(22px,3.2vw,36px);
    background: linear-gradient(90deg,#111827,#0f172a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

.about-copy {
    background: #fff;
}

    .about-copy .copy-wrap {
        max-width: 920px;
        margin: 0 auto;
        padding: clamp(12px,2vw,24px);
    }

.copy-title {
    font-size: clamp(28px,4.4vw,50px);
    line-height: 1.2;
    color: #0d141a;
    margin: 0 0 .35em;
    letter-spacing: -.01em;
    background: linear-gradient(90deg,#0f172a,#111827 35%,#0f172a 70%,#111827);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.copy-lead {
    font-size: clamp(16px,2vw,20px);
    color: var(--muted);
    margin-bottom: 1.2em;
}

.copy-sub {
    font-weight: 600;
    font-size: clamp(18px,2.6vw,26px);
    color: #0d141a;
    margin-top: 1.6em;
    margin-bottom: .5em;
    position: relative;
}

    .copy-sub::after {
        content: "";
        display: block;
        width: 0;
        height: 3px;
        border-radius: 2px;
        margin-top: 8px;
        background: linear-gradient(90deg,var(--accent),var(--accent-2));
        transition: width .6s ease var(--reveal-delay, .2s);
    }

    .copy-sub.reveal.in-view::after {
        width: 72px;
    }

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .8s cubic-bezier(.2,.65,.2,1) var(--reveal-delay, 0s), transform .8s cubic-bezier(.2,.65,.2,1) var(--reveal-delay, 0s);
    will-change: transform, opacity;
}

    .reveal.left {
        transform: translateX(-24px);
    }

    .reveal.right {
        transform: translateX(24px);
    }

    .reveal.in-view {
        opacity: 1;
        transform: none;
    }

/* 3D Carousel Styles - REVISED for 2480x3508 images (A4 portrait) */
.container-carousel {
    --size: min(52vw, 720px);
    --faceW: calc(var(--size) * 0.78);
    --faceH: calc(var(--faceW) * 1.8);
    width: var(--size);
    height: calc(var(--faceH) + 40px);
    margin: clamp(24px, 6vw, 80px) auto 0;
    max-width: 100%;
}

.carousel {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: rotate360 60s infinite forwards linear;
}

.carousel__face {
    position: absolute;
    width: 300px;
    height: 187px;
    top: 20px;
    left: 10px;
    right: 10px;
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 0 0 2000px rgba(0,0,0,0.5);
    display: flex;
}

span {
    margin: auto;
    font-size: 2rem;
    color: #fff;
    text-shadow: 0 2px 8px #000;
}

@keyframes rotate360 {
    from {
        transform: rotateY(0deg);
    }

    to {
        transform: rotateY(-360deg);
    }
}

/* Fill container height and keep 3D ring */
.carousel {
    position: relative; /* override absolute */
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: rotate360 60s linear infinite;
}

/* Faces scale from CSS vars and stay centered */
.carousel__face {
    position: absolute;
    width: var(--faceW);
    height: var(--faceH);
    top: 10px;
    left: 50%;
    transform: translateX(-50%); /* base centering; JS adds rotate/translateZ */
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 0 0 2000px rgba(0,0,0,.35);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Optional: scale inner caption text with face width */
/* Centered, responsive carousel container with tight gap to buttons */
.container-carousel {
    /* Base (desktop) sizing */
    --size: min(52vw, 720px);
    --faceW: calc(var(--size) * 0.78);
    --faceH: calc(var(--faceW) * 1.8);
    width: var(--size);
    height: calc(var(--faceH) + 40px);
    /* Center and control spacing to buttons */
    margin: clamp(16px, 4vw, 48px) auto clamp(8px, 2.5vw, 20px);
    max-width: 100%;
    overflow: hidden; /* keep 3D faces from spilling over buttons */
}

/* Action buttons under the carousel */
.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    /* Tight gap to the carousel, stays responsive */
    margin-top: clamp(6px, 1.2vw, 12px);
    position: relative; /* allow z-index to sit above 3D rendering */
    z-index: 2;
}

    .hero-actions .btn.btn-sm {
        padding: .35rem .7rem;
        border-radius: 10px;
    }

/* Tablets and down: enlarge the carousel */
@media (max-width: 991.98px) {
    .container-carousel {
        --size: min(92vw, 720px);
        --faceW: calc(var(--size) * 0.83);
        --faceH: calc(var(--faceW) * 1.99); /* switch to landscape-ish faces on small screens */
        /* keep a small gap above buttons */
        margin-bottom: clamp(6px, 2vw, 14px);
    }
}

/* Small phones: make it as large as reasonably possible */
@media (max-width: 575.98px) {
    .container-carousel {
        --size: 96vw;
        --faceW: calc(var(--size) * 0.77);
        --faceH: calc(var(--faceW) * 1.4);
        margin-bottom: clamp(4px, 1.5vw, 10px);
    }

    .hero-actions {
        margin-top: clamp(4px, 1vw, 10px);
    }
}