:root {
    --bg: #151c41;
    --surface: #ffffff;
    --text: #f5f7ff;
    --muted: #c1c7df;
    --gradient-main: linear-gradient(135deg, #d7257d 0%, #4c5ad5 100%);
    --gradient-alt: linear-gradient(135deg, #faafc6 0%, #5561d4 100%);
    --accent: #d7257d;
    --accent-soft: #f3c2d6;
}

* {
    box-sizing: border-box;
}

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 200;
    padding: 0.65rem 0.9rem;
    color: #151c41;
    background: #ffb85e;
    border-radius: 0.35rem;
    transform: translateY(-160%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.hidden {
    display: none !important;
}

.settings-panel {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: 0 18px 40px rgba(15,21,56,0.08);
    margin-top: 1rem;
}

.settings-message {
    background: rgba(76, 90, 213, 0.08);
    color: #2b3a7d;
    border: 1px solid rgba(76, 90, 213, 0.18);
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
}

body[style*="--site-background-image"] {
    background-image: linear-gradient(rgba(15, 21, 56, 0.72), rgba(15, 21, 56, 0.72)), var(--site-background-image);
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
}

body.has-site-background-rotation {
    isolation: isolate;
    background: transparent;
}

.site-background-rotator {
    position: fixed;
    z-index: -1;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.site-background-layer {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(100%);
    background-image: linear-gradient(rgba(15, 21, 56, 0.72), rgba(15, 21, 56, 0.72)), var(--background-image);
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    transition: transform 850ms cubic-bezier(0.22, 0.68, 0, 1), opacity 850ms ease;
}

.site-background-layer.is-active {
    opacity: 1;
    transform: translateX(0);
}

.site-background-layer.is-exiting-left {
    opacity: 1;
    transform: translateX(-100%);
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.6;
}

body:not(.dashboard-dark) .admin-dashboard {
    color: #1f2340;
}

body:not(.dashboard-dark) .admin-dashboard .admin-card,
body:not(.dashboard-dark) .admin-dashboard .form-card,
body:not(.dashboard-dark) .admin-dashboard .info-card,
body:not(.dashboard-dark) .admin-dashboard .settings-panel,
body:not(.dashboard-dark) .admin-dashboard .settings-section,
body:not(.dashboard-dark) .admin-dashboard .admin-tab-btn,
body:not(.dashboard-dark) .admin-dashboard input,
body:not(.dashboard-dark) .admin-dashboard textarea,
body:not(.dashboard-dark) .admin-dashboard select,
body:not(.dashboard-dark) .admin-dashboard table {
    color: #1f2340;
}

body:not(.dashboard-dark) .admin-dashboard th {
    color: #1f2340;
}

body:not(.dashboard-dark) .admin-dashboard label {
    color: #1f2340;
}

body:not(.dashboard-dark) .admin-dashboard h2,
body:not(.dashboard-dark) .admin-dashboard h3 {
    color: #1f2340;
}

body:not(.dashboard-dark) .admin-dashboard .admin-dashboard-intro {
    color: #283456;
}

.admin-dashboard .fade-element {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
}

body:not(.dashboard-dark) .admin-login {
    color: #1f2340;
}

body:not(.dashboard-dark) .admin-login .form-card,
body:not(.dashboard-dark) .admin-login .info-card,
body:not(.dashboard-dark) .admin-login input,
body:not(.dashboard-dark) .admin-login label {
    color: #1f2340;
}

.soap-bubbles {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.soap-bubble {
    position: absolute;
    bottom: -7rem;
    display: block;
    width: var(--bubble-size);
    aspect-ratio: 1;
    left: var(--bubble-left);
    border: 1px solid rgba(255, 172, 224, 0.72);
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.86) 0 4%, transparent 5%),
        radial-gradient(circle at 70% 72%, rgba(255, 110, 199, 0.38), transparent 48%),
        radial-gradient(circle at 25% 75%, rgba(110, 147, 255, 0.36), transparent 52%),
        rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 12px rgba(157, 184, 255, 0.46), 0 0 18px rgba(255, 130, 213, 0.3);
    opacity: 0;
    animation: soap-bubble-rise 30s linear infinite;
    animation-delay: var(--bubble-delay);
}

.soap-bubble::before,
.soap-bubble::after {
    content: '';
    position: absolute;
    inset: -2px;
    pointer-events: none;
    opacity: 0;
    animation: soap-bubble-pop 30s ease-out infinite;
    animation-delay: var(--bubble-delay);
}

.soap-bubble::before {
    border: 2px solid rgba(255, 172, 224, 0.78);
    border-radius: 50%;
}

.soap-bubble::after {
    inset: 42%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 -14px 0 -1px rgba(255, 172, 224, 0.82),
                0 14px 0 -1px rgba(110, 147, 255, 0.82),
                -14px 0 0 -1px rgba(255, 255, 255, 0.9),
                14px 0 0 -1px rgba(255, 172, 224, 0.82);
    transform: rotate(45deg);
}

@keyframes soap-bubble-rise {
    0% {
        opacity: 0;
        transform: translate3d(0, 8vh, 0) scale(0.72);
    }
    8% {
        opacity: 0.52;
    }
    48% {
        opacity: 0.34;
        transform: translate3d(var(--bubble-drift), -48vh, 0) scale(1);
    }
    88% {
        opacity: 0.28;
    }
    96% {
        opacity: 0.5;
        transform: translate3d(var(--bubble-drift), -112vh, 0) scale(0.7);
    }
    100% {
        opacity: 0;
        transform: translate3d(var(--bubble-drift), -118vh, 0) scale(0.12);
    }
}

@keyframes soap-bubble-pop {
    0%, 93% {
        opacity: 0;
        transform: scale(0.5);
    }
    97% {
        opacity: 0.9;
        transform: scale(1.35);
    }
    100% {
        opacity: 0;
        transform: scale(2.4);
    }
}

@media (prefers-reduced-motion: reduce) {
    .soap-bubbles {
        display: none;
    }

    .soap-bubble {
        animation: none;
        opacity: 0.46;
        left: var(--bubble-left);
        transform: translateY(-12vh);
    }
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1160px, calc(100% - 2rem));
    margin: 0 auto;
}

.site-header {
    background: linear-gradient(135deg, #263064 0%, #151c41 100%);
    color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 18px 38px rgba(12, 18, 54, 0.18);
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.site-header.scrolled {
    background: rgba(12, 19, 45, 0.98);
    box-shadow: 0 24px 48px rgba(8, 12, 34, 0.22);
    transform: translateY(-1px);
}

.site-header.hidden-header {
    transform: translateY(calc(-100% - 1px));
}

.scroll-load-track {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    width: 100%;
    height: 3px;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.18);
}

.scroll-load-bar {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #151c41 0%, #b51f48 48%, #d7257d 100%);
    box-shadow: 0 0 10px rgba(215, 37, 125, 0.45);
    transition: width 0.18s ease-out;
}

.scroll-load-bar[data-direction="up"] {
    background: linear-gradient(90deg, #d7257d 0%, #b51f48 52%, #151c41 100%);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.15;
    padding: 0.28rem 0.75rem;
    font-family: 'Segoe Script', 'Lucida Handwriting', 'Brush Script MT', cursive;
    font-style: normal;
    letter-spacing: 0.01em;
    text-transform: none;
    border-radius: 0.85rem;
    color: transparent;
    background: linear-gradient(135deg, #ff6ec7 0%, #5d74ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.3s ease, color 0.3s ease, opacity 0.3s ease;
}

.brand-logo {
    width: 42px;
    height: auto;
    display: block;
    border-radius: 0.75rem;
    background: white;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 18px rgba(128, 63, 207, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.22);
    filter: saturate(1.12) contrast(1.05) brightness(1.02);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease, background 0.25s ease;
}

.brand-logo:hover {
    transform: scale(1.04);
    box-shadow: 0 12px 24px rgba(132, 55, 225, 0.32), inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.brand:hover,
.footer-brand:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #15236d 0%, #51227f 45%, #ff6ec7 100%);
    -webkit-background-clip: border-box;
    background-clip: border-box;
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(20, 25, 80, 0.24);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.4rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    color: rgba(255,255,255,0.95);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.96rem;
    letter-spacing: 0.03em;
    position: relative;
    padding-bottom: 0.2rem;
    transition: color 0.28s ease, transform 0.28s ease, background 0.28s ease;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 40%;
    max-width: 88px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff6ec7 0%, #5d74ff 100%);
    opacity: 0;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.28s ease;
}

.nav-links li a:hover::after,
.nav-links li a:focus::after,
.nav-links li a:active::after,
.nav-links li a.touch-hover::after {
    transform: translateX(-50%) scaleX(1);
    opacity: 1;
}

.nav-links li a:hover,
.nav-links li a:focus,
.nav-links li a:active,
.nav-links li a.touch-hover {
    color: #ffffff;
}

.nav-links .shop-link {
    padding: 0.65rem 1rem;
    border-radius: 0.35rem;
    background: #ffb85e;
    color: #151c41;
}

.nav-links .shop-link:hover,
.nav-links .shop-link:focus {
    background: #ffc675;
    color: #151c41;
}

.special-link {
    padding: 0.75rem 1.15rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255,110,199,0.16), rgba(91,96,255,0.16));
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 12px 24px rgba(63, 54, 139, 0.12);
}

.nav-toggle {
    display: none;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    cursor: pointer;
    gap: 0.35rem;
    flex-direction: column;
    padding: 0.35rem;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: scale(1.03);
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 18px 42px rgba(8, 14, 34, 0.18);
}

.nav-toggle.open {
    background: rgba(255, 255, 255, 0.16);
}

.nav-toggle span {
    width: 24px;
    height: 3px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    transition: transform 0.3s ease, opacity 0.2s ease, background 0.25s ease;
}

.nav-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: #ffffff;
    border-radius: 999px;
    transition: transform 0.3s ease, opacity 0.2s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.nav-toggle:hover span {
    background: #fdfdfd;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.22);
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.cookie-banner {
    background: rgba(15, 21, 56, 0.95);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    bottom: 0;
    left: 0;
    z-index: 100;
}

.cookie-banner.hidden {
    display: none;
}

.cookie-banner .cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: min(1160px, calc(100% - 2rem));
    margin: 0 auto;
}

.cookie-banner p {
    margin: 0.4rem 0 0;
    color: rgba(255,255,255,0.86);
    max-width: 64rem;
}

.cookie-banner .cookie-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cookie-banner .button-secondary {
    background: rgba(255,255,255,0.14);
    color: white;
}

.dashboard-dark {
    background: #0f1220;
    color: #e8ecff;
}

.dashboard-dark .site-header,
.dashboard-dark .admin-card,
.dashboard-dark .table-wrap,
.dashboard-dark .form-card,
.dashboard-dark .info-card,
.dashboard-dark .settings-section,
.dashboard-dark .settings-panel {
    background: #14182d;
    color: #e8ecff;
}

.dashboard-dark .site-header {
    background: linear-gradient(135deg, #1d2551 0%, #12162a 100%);
}

.dashboard-dark .affiliate-visitor-summary {
    border-color: #2b3156;
    background: #1a1f35;
}

.dashboard-dark .affiliate-visitor-summary strong {
    color: #f4f6ff;
}

.dashboard-dark .affiliate-visitor-label,
.dashboard-dark .affiliate-visitor-status {
    color: #b8c0df;
}

.dashboard-dark .button-primary,
.dashboard-dark .button-secondary,
.dashboard-dark .action-group button,
.dashboard-dark .action-group a {
    color: #fff;
}

.dashboard-dark .form-input,
.dashboard-dark textarea,
.dashboard-dark select {
    background: #1a1f35;
    color: #eef1ff;
    border-color: #2b3156;
}

.admin-login-loader {
    position: relative;
    display: grid;
    min-height: 100vh;
    place-items: center;
    overflow: hidden;
    padding: 3rem 1rem;
    background:
        radial-gradient(circle at 18% 20%, rgba(215, 37, 125, 0.2), transparent 34%),
        radial-gradient(circle at 82% 76%, rgba(181, 31, 72, 0.25), transparent 38%),
        linear-gradient(135deg, #0e173d 0%, #151c41 54%, #421d45 100%);
}

.admin-login-loader::before,
.admin-login-loader::after {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    content: '';
}

.admin-login-loader::before {
    width: 34rem;
    height: 34rem;
    transform: translate(-42%, -28%);
}

.admin-login-loader::after {
    width: 26rem;
    height: 26rem;
    transform: translate(62%, 42%);
}

.admin-login-loader-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 30rem);
    padding: 2.75rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 1rem;
    background: rgba(14, 20, 60, 0.72);
    box-shadow: 0 28px 70px rgba(4, 8, 31, 0.35);
    text-align: center;
    backdrop-filter: blur(16px);
}

.admin-login-spinner {
    width: 4.4rem;
    height: 4.4rem;
    margin: 0 auto 1.5rem;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #ff6ec7;
    border-right-color: #d7257d;
    border-bottom-color: #b51f48;
    border-radius: 50%;
    animation: admin-login-spin 1.1s linear infinite;
}

.admin-login-loader-kicker {
    margin: 0 0 0.5rem;
    color: #ffb6dc;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.admin-login-loader h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.7rem, 4vw, 2.35rem);
}

.admin-login-loader-status {
    margin: 0.75rem 0 1.5rem;
    color: rgba(255, 255, 255, 0.78);
}

.admin-login-progress {
    height: 0.35rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

.admin-login-progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #151c41, #b51f48 52%, #d7257d);
    animation: admin-login-progress 30s linear forwards;
}

@keyframes admin-login-spin {
    to { transform: rotate(360deg); }
}

@keyframes admin-login-progress {
    to { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .admin-login-spinner,
    .admin-login-progress span {
        animation: none;
    }

    .admin-login-progress span {
        width: 100%;
    }
}

.dashboard-dark .form-input::placeholder,
.dashboard-dark textarea::placeholder {
    color: rgba(255,255,255,0.6);
}

.dashboard-dark .form-group label,
.dashboard-dark .form-group small,
.dashboard-dark .table-wrap,
.dashboard-dark .table-wrap th,
.dashboard-dark .table-wrap td,
.dashboard-dark .admin-grid,
.dashboard-dark .admin-card,
.dashboard-dark .form-card,
.dashboard-dark .info-card {
    color: #eef1ff;
}

.dashboard-dark .form-input[readonly] {
    color: #eef1ff;
}

.dashboard-dark .toast {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.12);
}

.dashboard-dark .toast-success,
.dashboard-dark .toast-error {
    color: #fff;
}

.dashboard-dark .button-secondary {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.dashboard-dark .admin-dashboard-intro {
    color: #eef1ff;
}

@media (max-width: 760px) {
    .cookie-banner .cookie-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

@media (max-width: 760px) {
    .admin-dashboard {
        padding-top: 1.5rem;
        padding-bottom: 2rem;
    }

    .admin-dashboard > .container {
        width: min(100% - 1rem, 38rem);
    }

    .admin-dashboard .section-title h2 {
        font-size: 1.55rem;
    }

    .admin-dashboard .action-group {
        align-items: stretch !important;
        flex-direction: column;
    }

    .admin-dashboard .action-group form,
    .admin-dashboard .action-group button {
        width: 100%;
    }

    .admin-dashboard .admin-tabs {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.45rem;
    }

    .admin-dashboard .admin-tab-btn {
        justify-content: center;
        min-width: 0;
        padding: 0.75rem 0.35rem;
        font-size: 0.78rem;
        text-align: center;
    }

    .admin-dashboard .tab-content#productTab .admin-grid,
    .admin-dashboard .tab-content#classesTab .admin-grid,
    .admin-dashboard .tab-content#settingsTab .admin-grid {
        grid-template-columns: 1fr !important;
    }

    .admin-dashboard .admin-card {
        min-width: 0;
        padding: 1rem;
        border-radius: 0.9rem;
    }

    .admin-dashboard .admin-card form input,
    .admin-dashboard .admin-card form textarea,
    .admin-dashboard .admin-card form select {
        font-size: 16px;
    }

    .admin-dashboard .inventory-scroll .table-wrap {
        max-height: 30rem;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .admin-dashboard .inventory-scroll table,
    .admin-dashboard .inventory-scroll thead,
    .admin-dashboard .inventory-scroll tbody,
    .admin-dashboard .inventory-scroll tr,
    .admin-dashboard .inventory-scroll td {
        display: block;
        width: 100%;
    }

    .admin-dashboard .inventory-scroll thead {
        display: none;
    }

    .admin-dashboard .inventory-scroll tr {
        margin-bottom: 0.85rem;
        padding: 0.75rem;
        border: 1px solid #e2e6f0;
        border-radius: 0.75rem;
        background: #fafbff;
    }

    .admin-dashboard .inventory-scroll td {
        display: grid;
        grid-template-columns: 5rem minmax(0, 1fr);
        gap: 0.65rem;
        align-items: center;
        min-height: 2.35rem;
        padding: 0.45rem 0;
        border-bottom: 1px solid #edf0f6;
        overflow-wrap: anywhere;
    }

    .admin-dashboard .inventory-scroll td:last-child {
        border-bottom: 0;
    }

    .admin-dashboard .inventory-scroll td::before {
        color: #596078;
        content: attr(data-label);
        font-size: 0.75rem;
        font-weight: 800;
        text-transform: uppercase;
    }

    .admin-dashboard .inventory-scroll td[data-label="Image"] img {
        width: 5rem !important;
        height: 3.5rem !important;
    }

    .admin-dashboard .inventory-scroll td[data-label="Actions"] .action-group {
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
    }

    .admin-dashboard .inventory-scroll td[data-label="Actions"] .button-secondary,
    .admin-dashboard .inventory-scroll td[data-label="Actions"] .button-danger {
        min-width: 0;
        padding: 0.55rem 0.75rem;
        font-size: 0.82rem;
    }

    .admin-dashboard .inventory-scroll-controls {
        display: flex;
        justify-content: flex-end;
        gap: 0.5rem;
        margin: 0 0 0.7rem;
    }

    .admin-dashboard .inventory-scroll-controls button {
        width: 2.4rem;
        height: 2.4rem;
        padding: 0;
        border-radius: 50%;
        font-size: 1rem;
        line-height: 1;
    }

    .dashboard-dark .admin-dashboard .inventory-scroll tr {
        border-color: #2b3156;
        background: #1a1f35;
    }

    .dashboard-dark .admin-dashboard .inventory-scroll td {
        border-bottom-color: #2b3156;
    }

    .admin-dashboard #classesTab .table-wrap {
        overflow: visible;
    }

    .admin-dashboard #classesTab table,
    .admin-dashboard #classesTab thead,
    .admin-dashboard #classesTab tbody,
    .admin-dashboard #classesTab tr,
    .admin-dashboard #classesTab td {
        display: block;
        width: 100%;
    }

    .admin-dashboard #classesTab thead {
        display: none;
    }

    .admin-dashboard #classesTab tr {
        margin-bottom: 0.85rem;
        padding: 0.75rem;
        border: 1px solid #e2e6f0;
        border-radius: 0.75rem;
        background: #fafbff;
    }

    .admin-dashboard #classesTab td {
        display: grid;
        grid-template-columns: 5rem minmax(0, 1fr);
        gap: 0.65rem;
        align-items: center;
        min-height: 2.35rem;
        padding: 0.45rem 0;
        border-bottom: 1px solid #edf0f6;
        overflow-wrap: anywhere;
    }

    .admin-dashboard #classesTab td:last-child {
        border-bottom: 0;
    }

    .admin-dashboard #classesTab td::before {
        color: #596078;
        content: attr(data-label);
        font-size: 0.75rem;
        font-weight: 800;
        text-transform: uppercase;
    }

    .admin-dashboard #classesTab .admin-video-preview {
        width: 100%;
        max-width: 12rem;
    }

    .admin-dashboard #classesTab td[data-label="Actions"] .action-group {
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
    }

    .dashboard-dark .admin-dashboard #classesTab tr {
        border-color: #2b3156;
        background: #1a1f35;
    }

    .dashboard-dark .admin-dashboard #classesTab td {
        border-bottom-color: #2b3156;
    }
}

@media (max-width: 1024px) and (orientation: landscape) {
    .admin-dashboard + .site-footer,
    body:has(.admin-dashboard) .site-header {
        min-height: 0;
    }

    body:has(.admin-dashboard) .site-header {
        padding: 0.65rem 0;
    }

    body:has(.admin-dashboard) .brand {
        font-size: 1.1rem;
    }

    .admin-dashboard {
        padding-top: 1.25rem;
        padding-bottom: 1.5rem;
    }

    .admin-dashboard > .container {
        width: min(100% - 2rem, 70rem);
    }

    .admin-dashboard > .container:first-child {
        padding-bottom: 0.25rem;
    }

    .admin-dashboard .section-title h2 {
        font-size: 1.65rem;
    }

    .admin-dashboard .action-group {
        flex-direction: row;
        align-items: center !important;
        flex-wrap: wrap;
    }

    .admin-dashboard .action-group form,
    .admin-dashboard .action-group button {
        width: auto;
    }

    .admin-dashboard .admin-tabs {
        gap: 0.55rem;
        margin-bottom: 1rem;
    }

    .admin-dashboard .admin-tab-btn {
        padding: 0.7rem 1rem;
        font-size: 0.82rem;
    }

    .admin-dashboard .tab-content#productTab .admin-grid,
    .admin-dashboard .tab-content#classesTab .admin-grid {
        grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr) !important;
        gap: 1rem;
    }

    .admin-dashboard .admin-card {
        padding: 1.15rem;
        border-radius: 0.9rem;
    }

    .admin-dashboard .form-group {
        margin-bottom: 0.75rem;
    }

    .admin-dashboard input,
    .admin-dashboard textarea,
    .admin-dashboard select {
        padding: 0.7rem 0.8rem;
    }

    .admin-dashboard textarea {
        min-height: 5rem;
    }

    .admin-dashboard .inventory-scroll .table-wrap {
        max-height: 18rem !important;
        overflow: auto;
    }

    .admin-dashboard .inventory-scroll table {
        min-width: 0;
        font-size: 0.78rem;
    }

    .admin-dashboard .inventory-scroll th,
    .admin-dashboard .inventory-scroll td {
        padding: 0.45rem 0.35rem;
        white-space: normal;
    }

    .admin-dashboard .inventory-scroll td::before {
        display: none;
    }

    .admin-dashboard .inventory-scroll thead,
    .admin-dashboard .inventory-scroll tbody,
    .admin-dashboard .inventory-scroll tr,
    .admin-dashboard .inventory-scroll td {
        display: table-row-group;
        width: auto;
    }

    .admin-dashboard .inventory-scroll tr {
        display: table-row;
        margin: 0;
        padding: 0;
        border: 0;
        background: transparent;
    }

    .admin-dashboard .inventory-scroll td {
        display: table-cell;
        min-height: 0;
        border-bottom: 1px solid #edf0f6;
    }

    .admin-dashboard .inventory-scroll td[data-label="Image"] img {
        width: 3.5rem !important;
        height: 2.5rem !important;
        border-radius: 0.5rem !important;
    }

    .admin-dashboard .inventory-scroll td[data-label="Actions"] .action-group {
        flex-direction: column;
        gap: 0.25rem;
    }

    .admin-dashboard .inventory-scroll td[data-label="Actions"] .button-secondary,
    .admin-dashboard .inventory-scroll td[data-label="Actions"] .button-danger {
        padding: 0.35rem 0.5rem;
        font-size: 0.72rem;
    }

    .admin-dashboard .inventory-scroll-controls {
        margin-bottom: 0.45rem;
    }

    body:has(.admin-dashboard) .site-footer .footer-inner {
        grid-template-columns: minmax(0, 1.4fr) minmax(8rem, 0.7fr) minmax(9rem, 0.9fr);
        gap: 1rem;
    }
}

main {
    flex: 1 0 auto;
    padding: 4rem 0 3.5rem;
}

.home-page,
.products-page,
.product-page {
    color: #f5f7ff;
}

.home-page p,
.products-page p,
.product-page p {
    color: #dce2f5;
}

.hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 4rem;
}

.hero-copy h1 {
    font-size: clamp(2.6rem, 4vw, 4.2rem);
    margin: 0;
    line-height: 1.05;
}

.hero-copy p {
    color: var(--muted);
    max-width: 42rem;
}

.button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.6rem;
    background: var(--gradient-main);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.button-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.overview,
.section {
    padding: 3rem 0;
}

.section-title {
    margin-bottom: 1rem;
}

.section-title h2 {
    font-size: 2rem;
}

.overview p {
    max-width: 72ch;
    color: var(--muted);
}

.product-grid,
.image-grid,
.values-grid,
.video-grid {
    display: grid;
    gap: 1.5rem;
}

.product-grid,
.video-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.product-tools {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    max-width: 58rem;
}

.product-search-bar {
    display: grid;
    grid-template-columns: auto minmax(14rem, 1fr) 3.6rem;
    flex: 1 1 38rem;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.35rem;
    background: #101827;
    box-shadow: 0 12px 30px rgba(3, 8, 24, 0.2);
}

.product-search-bar select,
.product-search-bar input,
.product-search-bar button {
    min-width: 0;
    height: 3.1rem;
    margin: 0;
    border: 0;
    border-radius: 0;
}

.product-search-bar select {
    width: 4rem;
    padding: 0 0.8rem;
    color: #162033;
    background: #eef0f3;
    border-right: 1px solid #d5d9df;
}

.product-search-bar input {
    padding: 0 1rem;
    color: #1f2340;
    background: #ffffff;
    font-size: 1rem;
}

.product-search-bar input::placeholder {
    color: #596078;
}

.product-search-bar input:focus,
.product-search-bar select:focus {
    outline: 3px solid rgba(255, 185, 101, 0.35);
    outline-offset: -3px;
}

.product-search-bar button {
    display: grid;
    place-items: center;
    cursor: pointer;
    background: #ffb85e;
    transition: background 0.2s ease, filter 0.2s ease;
}

.product-search-bar button:hover {
    background: #ffc675;
    filter: brightness(1.04);
}

.search-icon {
    position: relative;
    display: block;
    width: 1.25rem;
    height: 1.25rem;
    border: 3px solid #162033;
    border-radius: 50%;
}

.search-icon::after {
    content: '';
    position: absolute;
    right: -0.55rem;
    bottom: -0.35rem;
    width: 0.7rem;
    height: 3px;
    border-radius: 999px;
    background: #162033;
    transform: rotate(45deg);
    transform-origin: left center;
}

.product-sort-control {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex: 0 0 auto;
}

.product-sort-control label {
    margin: 0;
    color: #dce2f5;
    font-weight: 600;
    white-space: nowrap;
}

.product-sort-control select {
    min-width: 0;
    margin: 0;
    color: #1f2340;
    background: #ffffff;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.product-results {
    margin: 0.85rem 0 0;
    color: #aeb8d7;
    font-size: 0.9rem;
}

.product-no-results {
    width: min(1160px, calc(100% - 2rem));
    margin: 1.5rem auto 0;
    color: #dce2f5;
}

.product-card,
.video-card {
    background: #ffffff;
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid rgba(15, 21, 56, 0.08);
    box-shadow: 0 12px 22px rgba(15, 21, 56, 0.075);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.products-page .product-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 0.5rem;
    align-items: start;
}

.products-page {
    position: relative;
    z-index: 2;
    background: #ffffff;
    color: #111827;
    padding-top: 3rem;
}

.products-page > .container:first-child {
    padding-bottom: 0.75rem;
}

.products-page > .container:first-child .section-title {
    margin-bottom: 0.65rem;
}

.products-page .product-tools {
    margin-top: 0.75rem;
}

.products-page .section-title h2,
.products-page > .container:first-child > p,
.products-page .product-results {
    color: #111827;
}

.products-page .product-card {
    border-radius: 0.2rem;
    border-color: #e5e7eb;
    box-shadow: 0 2px 8px rgba(15, 21, 56, 0.1);
}

.products-page .product-card img {
    aspect-ratio: 1 / 1;
    padding: 0.35rem;
    background: #f7f7f7;
}

.products-page .product-card-content {
    display: flex;
    flex-direction: column;
    padding: 0.65rem 0.55rem 0.7rem;
    min-height: 8.5rem;
}

.products-page .product-card-content h3 {
    min-height: 2.55rem;
    margin-bottom: 0.45rem;
    font-size: 0.92rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.products-page .product-card-content p {
    min-height: 2.45rem;
    margin-bottom: 0.65rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.products-page .product-card-content h3,
.products-page .product-card-content p {
    color: #111827;
}

.products-page .product-card-content .price {
    display: block;
    width: 100%;
    flex: 0 0 auto;
    margin-top: auto;
    padding: 0.25rem 0;
    font-size: 0.92rem;
    line-height: 1.4;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    font-variant-numeric: tabular-nums;
}

.products-page .product-tools label,
.products-page .product-sort-control label {
    color: #374151;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 32px rgba(15, 21, 56, 0.1);
    border-color: rgba(15, 21, 56, 0.12);
}

.product-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    display: block;
    background: #f8f9ff;
    padding: 0.75rem;
}

.product-card:hover img {
    transform: none;
}

.product-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    min-width: 0;
}

.product-card-link:hover {
    text-decoration: none;
}

.product-card-link:focus-visible {
    outline: 3px solid rgba(255, 172, 224, 0.85);
    outline-offset: 0.35rem;
    border-radius: 1.25rem;
}

.hero-image-link {
    display: block;
    border-radius: 1.5rem;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-image-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(15, 21, 56, 0.14);
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: start;
    margin-top: 1.5rem;
}

.product-detail-image img {
    width: 100%;
    border-radius: 1.5rem;
    height: auto;
    max-height: 620px;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    padding: 1rem;
    background: #f8f9ff;
}

.product-detail-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.product-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.product-detail-meta .price {
    font-size: 1.35rem;
    font-weight: 700;
    flex: 0 0 auto;
    white-space: nowrap;
    overflow: visible;
    font-variant-numeric: tabular-nums;
}

.affiliate-shop-page {
    min-height: 100vh;
    background: #f5f7ff;
    color: #17203f;
    padding-top: 0;
}

.affiliate-shop-hero {
    position: relative;
    padding: 4rem 0 3.5rem;
    color: #ffffff;
    background: linear-gradient(120deg, #151c41 0%, #263064 58%, #b51f68 100%);
}

.affiliate-shop-hero h1 {
    max-width: 40rem;
    margin: 0.2rem 0 0.75rem;
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    line-height: 1.02;
}

.affiliate-shop-hero p:last-child {
    max-width: 38rem;
    margin: 0;
    color: #e4e8ff;
    font-size: 1.1rem;
}

.affiliate-amazon-heartbeat {
    display: inline-block;
    color: #ffe08a;
    font-weight: 800;
    animation: affiliate-amazon-heartbeat 3s ease-in-out infinite;
}

@keyframes affiliate-amazon-heartbeat {
    0%, 78%, 100% {
        transform: scale(1);
    }
    84% {
        transform: scale(1.12);
    }
    90% {
        transform: scale(1);
    }
    95% {
        transform: scale(1.08);
    }
}

@media (prefers-reduced-motion: reduce) {
    .affiliate-amazon-heartbeat {
        animation: none;
    }
}

.affiliate-products-scroll-button {
    position: absolute;
    right: max(1rem, calc((100% - 1160px) / 2));
    bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(21, 28, 65, 0.58);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.affiliate-products-scroll-button:hover,
.affiliate-products-scroll-button:focus-visible {
    background: #d7257d;
    transform: translateY(2px);
}

.affiliate-products-scroll-button span:first-child {
    font-size: 1.1rem;
    line-height: 0.8;
}

.affiliate-shop-content {
    padding-top: 2.5rem;
    padding-bottom: 4rem;
}

.affiliate-shop-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    align-items: end;
    margin-bottom: 1.5rem;
}

.affiliate-shop-toolbar h2 {
    margin: 0;
    color: #17203f;
}

.affiliate-search-label {
    display: grid;
    gap: 0.4rem;
    width: min(100%, 20rem);
    color: #425078;
    font-weight: 700;
}

.affiliate-search-label input {
    min-height: 2.9rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid #d7dced;
    border-radius: 0.45rem;
    color: #17203f;
    background: #ffffff;
}

.affiliate-product-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.6rem;
}

.affiliate-product-card {
    display: flex;
    flex-direction: column;
    border-radius: 0.5rem;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.affiliate-product-card:hover,
.affiliate-product-card:focus-within {
    transform: translateY(-0.35rem);
    box-shadow: 0 0.8rem 1.5rem rgba(23, 32, 63, 0.14);
}

.affiliate-product-image-link {
    display: block;
    overflow: hidden;
    border-radius: 0.25rem;
    background: #f8f9ff;
}

.affiliate-product-image-link img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    padding: 0.35rem;
    transition: transform 0.22s ease;
}

.affiliate-product-card:hover .affiliate-product-image-link img,
.affiliate-product-card:focus-within .affiliate-product-image-link img {
    transform: scale(1.04);
}

.affiliate-product-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 0.7rem 0.15rem 0;
}

.affiliate-product-label,
.eyebrow {
    margin: 0;
    color: #b51f68;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.affiliate-product-content h3 {
    margin: 0.3rem 0 0.5rem;
    font-size: 0.95rem;
    line-height: 1.45;
}

.affiliate-product-content h3 a {
    color: #17203f;
    text-decoration: none;
}

.affiliate-product-price {
    text-decoration: none;
}

.affiliate-product-content > p:not(.affiliate-product-label) {
    min-height: 2.7rem;
    margin: 0 0 0.75rem;
    color: #596078;
    font-size: 0.84rem;
}

.affiliate-product-price {
    display: inline-flex;
    align-items: flex-start;
    margin-top: auto;
    color: #17203f;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
}

.affiliate-product-price:hover,
.affiliate-product-price:focus-visible {
    color: #d6a900;
}

.affiliate-product-price .price-dollar {
    margin-top: 0.18rem;
    margin-right: 0.08rem;
    font-size: 1rem;
    font-weight: 600;
}

.affiliate-product-price sup {
    top: 0;
    margin-left: 0.08rem;
    font-size: 0.75rem;
    line-height: 1;
    vertical-align: super;
}

.affiliate-shop-actions,
.product-buy-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.9rem;
}

.affiliate-shop-button {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    padding: 0.6rem 0.65rem;
    border-radius: 999px;
    color: #ffffff;
    background: #263064;
    font-size: 0.86rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.affiliate-shop-button:hover,
.affiliate-shop-button:focus-visible {
    background: #b51f68;
}

.affiliate-shop-button.amazon-button,
.product-buy-actions .amazon-button {
    background: #d7257d;
}

.muted-shop-button {
    background: #68728f;
}

.affiliate-empty-state {
    padding: 3rem 1rem;
    border: 1px dashed #bcc5e2;
    border-radius: 0.5rem;
    color: #425078;
    text-align: center;
}

.affiliate-no-results {
    margin: 2rem 0;
    color: #425078;
    text-align: center;
}

.affiliate-product-page {
    min-height: 100vh;
    padding-top: 2.5rem;
    padding-bottom: 4rem;
    background: #f5f7ff;
    color: #17203f;
}

.affiliate-product-detail {
    max-width: 70rem;
}

.affiliate-back-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: #263064;
    font-weight: 700;
    text-decoration: none;
}

.affiliate-back-link:hover,
.affiliate-back-link:focus-visible {
    color: #b51f68;
}

.affiliate-product-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    gap: 3rem;
    align-items: start;
}

.affiliate-product-gallery {
    min-width: 0;
}

.affiliate-product-detail-image {
    overflow: hidden;
    border-radius: 0.4rem;
    background: #ffffff;
    box-shadow: 0 0.4rem 1.5rem rgba(23, 32, 63, 0.08);
}

.affiliate-product-detail-image img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    padding: 1.25rem;
}

.affiliate-product-thumbnails {
    display: flex;
    gap: 0.65rem;
    overflow-x: auto;
    padding: 0.75rem 0.1rem 0.45rem;
    scrollbar-color: #858da1 #eef0f5;
    scrollbar-width: thin;
}

.affiliate-product-thumbnail {
    flex: 0 0 5.5rem;
    width: 5.5rem;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    padding: 0.2rem;
    border: 2px solid transparent;
    border-radius: 0.35rem;
    background: #ffffff;
    cursor: pointer;
}

.affiliate-product-thumbnail.is-active,
.affiliate-product-thumbnail:focus-visible {
    border-color: #ff9900;
    outline: none;
}

.affiliate-product-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.affiliate-product-detail-info h1 {
    margin: 0.35rem 0 1rem;
    color: #17203f;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.1;
}

.affiliate-detail-price {
    display: inline-flex;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    color: #17203f;
    font-size: 2.5rem;
    line-height: 1;
}

.affiliate-detail-price span {
    margin-top: 0.22rem;
    margin-right: 0.08rem;
    font-size: 1.15rem;
}

.affiliate-detail-price sup {
    margin-left: 0.08rem;
    font-size: 0.85rem;
}

.affiliate-detail-description {
    max-width: 48ch;
    color: #596078;
    line-height: 1.7;
}

.affiliate-detail-purchase {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid #dfe4f2;
}

.affiliate-detail-purchase h2 {
    margin: 0;
    color: #17203f;
    font-size: 1.1rem;
}

.affiliate-detail-unavailable {
    color: #68728f;
}

.product-buy-panel {
    padding: 1rem;
    border: 1px solid rgba(215, 37, 125, 0.28);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
}

.product-buy-panel h3,
.product-buy-panel p {
    margin-top: 0;
}

.affiliate-links-fieldset {
    margin: 1.25rem 0;
    padding: 1rem;
    border: 1px solid #d9dff1;
    border-radius: 0.5rem;
}

.affiliate-links-fieldset legend {
    padding: 0 0.4rem;
    color: #263064;
    font-weight: 800;
}

.affiliate-required-mark {
    display: inline-block;
    margin-left: 0.35rem;
    color: #a33b22;
    font-size: 0.72rem;
    font-weight: 700;
    vertical-align: middle;
}

.affiliate-form-feedback {
    margin: 0 0 0.85rem;
    padding: 0.75rem 0.9rem;
    border-left: 3px solid #b84029;
    border-radius: 0.25rem;
    color: #772719;
    background: #fff1ed;
    font-size: 0.9rem;
    font-weight: 600;
}

#affiliateProductForm input[aria-invalid="true"],
#affiliateProductForm textarea[aria-invalid="true"] {
    border-color: #b84029;
}

.form-help {
    margin: 0 0 0.75rem;
    color: #68728f;
    font-size: 0.86rem;
}

.affiliate-link-row {
    display: grid;
    grid-template-columns: minmax(7rem, 0.55fr) minmax(12rem, 1fr) auto;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

.affiliate-link-row .affiliate-remove {
    padding: 0.55rem 0.65rem;
}

.affiliate-admin-images {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.affiliate-admin-image {
    display: grid;
    align-content: start;
    gap: 0.35rem;
    width: 8rem;
    padding: 0.45rem;
    border: 1px solid #d9dff1;
    border-radius: 0.35rem;
    background: #ffffff;
}

.affiliate-admin-image img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #f8f9ff;
}

.affiliate-admin-image label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: #425078;
    font-size: 0.78rem;
}

.affiliate-admin-image input {
    width: auto;
    margin: 0;
}

@media (max-width: 700px) {
    .affiliate-shop-toolbar {
        display: grid;
        gap: 1rem;
        align-items: start;
    }

    .affiliate-search-label {
        width: 100%;
    }

    .affiliate-link-row {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 701px) and (max-width: 1100px) {
    .affiliate-product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .affiliate-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem;
    }

    .affiliate-product-content {
        padding: 0.6rem;
    }

    .affiliate-product-content h3 {
        font-size: 0.86rem;
    }

    .affiliate-product-price {
        font-size: 1.05rem;
    }

    .affiliate-product-detail-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .affiliate-product-detail-info h1 {
        font-size: 2rem;
    }
}

@media (min-width: 769px) {
    .site-header .header-inner {
        gap: 1.5rem;
    }

    .site-header nav {
        min-width: 0;
    }

    .site-header .nav-links {
        gap: clamp(0.55rem, 1.2vw, 1.15rem);
        flex-wrap: nowrap;
    }

    .site-header .nav-links li {
        flex: 0 0 auto;
    }

    .site-header .nav-links li a,
    .site-header .nav-links .shop-link,
    .site-header .nav-links .special-link {
        display: inline-flex;
        align-items: center;
        min-height: 2.55rem;
        padding: 0.45rem 0.7rem;
        border: 1px solid transparent;
        border-radius: 0.45rem;
        background: transparent;
        color: rgba(255, 255, 255, 0.9);
        font-size: 0.89rem;
        letter-spacing: 0.015em;
        white-space: nowrap;
        box-shadow: none;
    }

    .site-header .nav-links .shop-link:hover,
    .site-header .nav-links .shop-link:focus,
    .site-header .nav-links .special-link:hover,
    .site-header .nav-links .special-link:focus {
        background: rgba(215, 37, 125, 0.18);
        border-color: rgba(255, 110, 199, 0.35);
        color: #ffffff;
    }

    .site-header .nav-links .special-link {
        border-color: rgba(255, 255, 255, 0.22);
        background: rgba(93, 116, 255, 0.14);
    }
}

@media (min-width: 769px) and (max-width: 1120px) {
    .site-header .header-inner {
        gap: 0.75rem;
    }

    .site-header .brand {
        max-width: 12rem;
        overflow: hidden;
        font-size: 1.05rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .site-header .nav-links {
        gap: 0.25rem;
    }

    .site-header .nav-links li a,
    .site-header .nav-links .shop-link,
    .site-header .nav-links .special-link {
        padding-right: 0.5rem;
        padding-left: 0.5rem;
        font-size: 0.78rem;
    }
}

@media (max-width: 980px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
    }

    .products-page .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.image-grid img {
    border-radius: 1.2rem;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.product-image-link {
    display: block;
    border-radius: 1.2rem;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-image-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(15, 21, 56, 0.12);
}

.video-card video {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    display: block;
    background: #000;
}

.video-card {
    border-radius: 0.65rem;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(15,21,56,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(15,21,56,0.13);
}

.classes-feed {
    align-items: start;
}

.video-thumbnail {
    position: relative;
    background: #0d122d;
}

.video-card-content {
    padding: 0.9rem 1rem 1.1rem;
    background: #ffffff;
}

.video-index,
.video-card-content time {
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.video-card-content h3 {
    margin: 0.35rem 0 0.45rem;
    color: #1f2340;
    font-size: 1.05rem;
    line-height: 1.3;
}

.video-card-content p {
    min-height: 2.8rem;
    margin: 0 0 0.7rem;
    color: #596078;
    font-size: 0.88rem;
    line-height: 1.45;
}

.video-card-content time {
    color: #737b91;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
}

.classes-page .video-thumbnail {
    overflow: hidden;
    border-radius: 0.7rem;
    box-shadow: 0 10px 24px rgba(15, 21, 56, 0.12);
}

.classes-page .video-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.25rem 1rem;
}

.class-video-tile {
    min-width: 0;
    cursor: pointer;
    border-radius: 1rem;
    overflow: hidden;
    background: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.16);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.classes-page .class-video-tile video {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 0;
    display: block;
    background: #000000;
    object-fit: contain;
    border-radius: inherit;
}

.classes-page .video-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    background: linear-gradient(180deg, #0b1220 0%, #111827 100%);
    border-radius: 1rem 1rem 0 0;
    overflow: hidden;
}

.classes-page .video-thumbnail::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.15), rgba(2, 6, 23, 0.52));
    z-index: 2;
    pointer-events: none;
}

.classes-page .video-poster {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #111827;
}

.video-player-overlay {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 4;
    pointer-events: none;
    padding: 0.5rem 0.7rem 0.7rem;
}

.video-player-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.15rem 0.2rem 0;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.class-video-tile.is-playing .video-player-controls,
.class-video-tile:hover .video-player-controls {
    opacity: 1;
    transform: translateY(0);
}

.video-control,
.video-hover-play {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.56);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
    cursor: pointer;
}

.video-hover-play {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1.3rem;
    line-height: 1;
    transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.video-hover-play:hover {
    transform: translate(-50%, -50%) scale(1.05);
    background: rgba(239, 68, 68, 0.88);
}

.video-control {
    width: 2rem;
    height: 2rem;
    padding: 0;
    font-size: 0.9rem;
}

.video-control-toggle {
    background: rgba(255, 255, 255, 0.12);
}

.video-control-mute {
    background: rgba(255, 255, 255, 0.08);
}

.video-progress {
    position: relative;
    flex: 1;
    height: 0.22rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.32);
    overflow: hidden;
}

.video-progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #ff0000;
}

.video-time {
    min-width: 5rem;
    font-size: 0.72rem;
    color: #f8fafc;
    letter-spacing: 0.03em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.class-video-tile.is-playing .video-hover-play {
    opacity: 0;
    pointer-events: none;
}

.classes-page .class-video {
    visibility: hidden;
    position: relative;
    z-index: 2;
}

.classes-page .class-video.is-visible {
    visibility: visible;
}

.classes-page .class-video-tile video {
    transform: none;
}

.class-video-tile.is-playing video {
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 0;
    object-fit: contain;
    transform: none;
}

.class-video-tile:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}

.video-modal-open {
    overflow: hidden;
}

.class-video-modal[hidden] {
    display: none;
}

.class-video-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 1.5rem;
}

.class-video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 8, 18, 0.88);
}

.class-video-modal-content {
    position: relative;
    z-index: 1;
    width: min(100%, 62rem);
    padding: 1rem;
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0.7rem;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.class-video-modal-player {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.class-video-modal-close {
    position: absolute;
    top: -2.8rem;
    right: 0;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.9);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.class-video-modal-content h2 {
    margin: 1rem 0 0.35rem;
    color: #ffffff;
    font-size: 1.25rem;
}

.class-video-modal-description {
    margin: 0;
    color: #cbd5e1;
}

@supports (animation-timeline: view()) {
    .classes-page .class-video-tile {
        animation: classes-video-reveal linear both;
        animation-timeline: view();
        animation-range: entry 0% cover 40%;
    }
}

@keyframes classes-video-reveal {
    from {
        opacity: 0;
        transform: translateY(1.5rem) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.classes-page .class-video-tile .video-card-content {
    padding: 0.75rem 0.15rem 1.1rem;
    background: transparent;
}

.classes-page .video-card-content h3 {
    margin-top: 0.3rem;
}

.classes-page .fade-element {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
}

.classes-intro-card {
    margin-bottom: 2rem;
    padding: 2.5rem 2rem;
    border-radius: 0.85rem;
    color: #ffffff;
    text-align: center;
    background: linear-gradient(120deg, #ec4899 0%, #ef4444 48%, #2563eb 100%);
    box-shadow: 0 16px 34px rgba(37, 54, 120, 0.2);
}

.classes-intro-card .section-title {
    margin-bottom: 0.75rem;
}

.classes-intro-card .section-title h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.5rem, 3vw, 2.35rem);
}

.classes-intro-card > p {
    max-width: 46rem;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.55;
}

@media (max-width: 700px) {
    .classes-page .video-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .video-player-overlay {
        padding: 0.4rem 0.5rem 0.55rem;
    }

    .video-player-controls {
        gap: 0.35rem;
    }

    .video-time {
        min-width: auto;
        font-size: 0.68rem;
    }
}

@media (min-width: 701px) and (max-width: 1050px) {
    .classes-page .video-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.admin-video-preview {
    width: 7rem;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 0.45rem;
    background: #0d122d;
}

.product-card-content {
    padding: 1rem 0.95rem 0.95rem;
    min-width: 0;
    overflow: visible;
}

.product-card-content h3 {
    margin: 0 0 0.4rem;
    font-size: 1.03rem;
    line-height: 1.35;
}

.product-card-content p {
    color: var(--muted);
    margin: 0 0 0.8rem;
    font-size: 0.92rem;
    line-height: 1.5;
}

.product-card-content .price {
    display: block;
    width: 100%;
    align-items: center;
    font-weight: 700;
    color: var(--accent);
    font-size: 0.98rem;
    white-space: nowrap;
    overflow: visible;
    min-width: max-content;
    line-height: 1.35;
    padding-bottom: 0.1rem;
}

.home-page .hero-copy h1,
.home-page .hero-copy p,
.home-page .overview p,
.products-page p,
.product-page p {
    color: #dce2f5;
}

.home-page .product-card,
.products-page .product-card,
.product-page .product-detail-info {
    color: #1f2340;
}

.home-page .product-card-content p,
.products-page .product-card-content p {
    color: #596078;
}

.home-page .product-card-content .price,
.products-page .product-card-content .price,
.product-page .product-detail-meta .price {
    color: var(--accent);
}

.image-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.image-grid img {
    border-radius: 1.2rem;
    height: 240px;
    object-fit: cover;
    width: 100%;
}

.contact-grid,
.admin-grid {
    display: grid;
    gap: 2rem;
}

.contact-grid {
    grid-template-columns: 1.1fr 0.9fr;
}

.admin-tabs {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.admin-tab-btn {
    padding: 0.95rem 1.4rem;
    border: 1px solid rgba(15,21,56,0.12);
    background: #ffffff;
    color: var(--text);
    cursor: pointer;
    border-radius: 999px;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

body:not(.dashboard-dark) .admin-dashboard .admin-tab-btn {
    color: #1f2340;
}

.dashboard-dark .admin-dashboard .admin-tab-btn {
    color: #eef1ff;
}

.admin-tab-btn.active {
    background: var(--gradient-alt);
    color: #1f2340;
    box-shadow: 0 16px 30px rgba(78, 69, 151, 0.16);
}

.admin-tab-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(78, 69, 151, 0.12);
}

/* ensure anchor link displays like a button and remove underline in all states */
a.admin-tab-btn,
a.admin-tab-btn:link,
a.admin-tab-btn:visited {
    text-decoration: none !important;
    cursor: pointer;
}

a.admin-tab-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 28px rgba(78, 69, 151, 0.12) !important;
}

.tab-content {
    display: none;
    width: 100%;
    min-height: 300px;
}

.tab-content.active {
    display: block;
}

.contact-card,
.form-card,
.info-card,
.admin-card {
    background: #fff;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 18px 45px rgba(15,21,56,0.07);
}

.affiliate-products-card {
    align-self: start;
    height: fit-content;
}

.affiliate-visitor-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid #e5e8f2;
    border-radius: 0.75rem;
    background: #f8f9ff;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.affiliate-visitor-summary strong {
    display: block;
    margin-top: 0.15rem;
    color: #17203f;
    font-size: 1.7rem;
    line-height: 1;
}

.affiliate-visitor-label {
    display: block;
    color: #596078;
    font-size: 0.78rem;
    font-weight: 700;
}

.affiliate-visitor-status {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.4rem;
    color: #5d6378;
    font-size: 0.7rem;
    font-weight: 700;
}

.affiliate-visitor-status span {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: #22a06b;
    box-shadow: 0 0 0 0.2rem rgba(34, 160, 107, 0.14);
}

.affiliate-visitor-summary.visitor-count-updated {
    border-color: #d6a900;
    box-shadow: 0 0 0 0.2rem rgba(214, 169, 0, 0.14);
}

@media (max-width: 520px) {
    .affiliate-visitor-summary {
        align-items: flex-start;
        flex-direction: column;
    }
}

.contact-page .contact-card,
.contact-page .info-card {
    color: #1f2937;
}

.contact-page .contact-card h2,
.contact-page .info-card h2,
.contact-page .contact-card label,
.contact-page .info-card label,
.contact-page .contact-card p,
.contact-page .info-card p {
    color: #1f2937;
}

.form-group {
    margin-bottom: 1.2rem;
}

label {
    display: block;
    margin-bottom: 0.55rem;
    font-weight: 600;
}

input,
textarea,
select {
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    border: 1px solid #e2e6f0;
    background: #fafbff;
    font: inherit;
}

.contact-page input,
.contact-page textarea,
.contact-page select {
    color: #1f2937;
}

textarea {
    min-height: 160px;
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: rgba(215,37,125,0.35);
    box-shadow: 0 0 0 4px rgba(215,37,125,0.08);
}

.toast {
    position: relative;
    padding: 1rem 1.2rem;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.toast-success {
    background: #2f8d5e;
}

.toast-error {
    background: #cc3752;
}

.toast-close {
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    font-size: 1.1rem;
}

.values-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.values-grid .info-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.values-grid .info-card span.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: rgba(215, 37, 125, 0.12);
    color: var(--accent);
    font-size: 1.55rem;
}

.about-affiliate-feature {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    border: 1px solid rgba(215, 37, 125, 0.2);
    border-radius: 1.5rem;
    background: linear-gradient(120deg, #fff6fb 0%, #f4f5ff 100%);
    box-shadow: 0 16px 40px rgba(15, 21, 56, 0.08);
}

.about-affiliate-icon {
    display: grid;
    place-items: center;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 1.35rem;
    background: var(--gradient-main);
    color: #fff;
    font-size: 2rem;
    box-shadow: 0 12px 24px rgba(215, 37, 125, 0.2);
}

.about-affiliate-copy .eyebrow {
    margin: 0 0 0.35rem;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.about-affiliate-copy h2 {
    margin: 0 0 0.65rem;
}

.about-affiliate-copy p:not(.eyebrow) {
    max-width: 70ch;
    margin: 0 0 1.25rem;
}

.about-affiliate-copy .button-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

@media (max-width: 600px) {
    .about-affiliate-feature {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
}

.info-card h3 {
    margin: 0;
}

.table-wrap {
    overflow-x: auto;
}

.inventory-scroll .table-wrap {
    max-height: 24rem;
    overflow: auto;
}

.inventory-scroll-controls {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.inventory-scroll-controls button {
    width: 2.35rem;
    height: 2.35rem;
    padding: 0;
    border-radius: 0.45rem;
    font-size: 1.1rem;
    line-height: 1;
}

.affiliate-inventory-scroll {
    position: relative;
}

.affiliate-inventory-scroll .table-wrap {
    max-height: 24rem;
    overflow: auto;
}

.affiliate-inventory-scroll-controls {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 1;
    display: flex;
    gap: 0.35rem;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.affiliate-inventory-scroll.is-scrolling .affiliate-inventory-scroll-controls {
    opacity: 0;
    pointer-events: none;
}

.admin-dashboard .inventory-scroll:not(.affiliate-inventory-scroll) {
    position: relative;
}

.admin-dashboard .inventory-scroll.is-scrolling .inventory-scroll-controls {
    opacity: 0;
    pointer-events: none;
}

.admin-dashboard .inventory-scroll:not(.affiliate-inventory-scroll) .inventory-scroll-controls {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 1;
    margin: 0;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.affiliate-inventory-scroll-controls button {
    width: 2.2rem;
    height: 2.2rem;
    padding: 0;
    border: 1px solid rgba(38, 48, 100, 0.22);
    border-radius: 50%;
    color: #263064;
    background: rgba(255, 255, 255, 0.94);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 0.35rem 0.9rem rgba(23, 32, 63, 0.2);
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.affiliate-inventory-scroll-controls button:hover,
.affiliate-inventory-scroll-controls button:focus-visible {
    color: #17203f;
    background: #ffe08a;
    transform: translateY(-1px);
}

.admin-dashboard .inventory-scroll:not(.affiliate-inventory-scroll) .inventory-scroll-controls button {
    width: 2.2rem;
    height: 2.2rem;
    padding: 0;
    border: 1px solid rgba(38, 48, 100, 0.22);
    border-radius: 50%;
    color: #263064;
    background: rgba(255, 255, 255, 0.94);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 0.35rem 0.9rem rgba(23, 32, 63, 0.2);
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.admin-dashboard .inventory-scroll:not(.affiliate-inventory-scroll) .inventory-scroll-controls button:hover,
.admin-dashboard .inventory-scroll:not(.affiliate-inventory-scroll) .inventory-scroll-controls button:focus-visible {
    color: #17203f;
    background: #ffe08a;
    transform: translateY(-1px);
}

.dashboard-dark .admin-dashboard .inventory-scroll:not(.affiliate-inventory-scroll) .inventory-scroll-controls button {
    border-color: rgba(255, 255, 255, 0.3);
    color: #eef1ff;
    background: rgba(20, 24, 45, 0.92);
}

.dashboard-dark .admin-dashboard .inventory-scroll:not(.affiliate-inventory-scroll) .inventory-scroll-controls button:hover,
.dashboard-dark .admin-dashboard .inventory-scroll:not(.affiliate-inventory-scroll) .inventory-scroll-controls button:focus-visible {
    color: #17203f;
    background: #ffe08a;
}

.affiliate-inventory-scroll .action-group a.button-secondary {
    color: #263064;
}

.affiliate-inventory-scroll .action-group a.button-secondary:hover,
.affiliate-inventory-scroll .action-group a.button-secondary:focus-visible {
    color: #17203f;
    background: #dce4ff;
}

.dashboard-dark .affiliate-inventory-scroll .action-group a.button-secondary {
    color: #263064;
    background: #eef2ff;
}

.dashboard-dark .affiliate-inventory-scroll tr:hover {
    background: #1f2542;
}

.dashboard-dark .affiliate-inventory-scroll-controls button {
    border-color: rgba(255, 255, 255, 0.3);
    color: #eef1ff;
    background: rgba(20, 24, 45, 0.92);
}

.dashboard-dark .affiliate-inventory-scroll-controls button:hover,
.dashboard-dark .affiliate-inventory-scroll-controls button:focus-visible {
    color: #17203f;
    background: #ffe08a;
}

.inventory-count {
    color: #5d6378;
    font-size: 0.75em;
    font-weight: 600;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 1rem 0.8rem;
    border-bottom: 1px solid #f1f3f8;
    text-align: left;
}

th {
    color: var(--muted);
    font-weight: 600;
}

tr:hover {
    background: #f9f9ff;
}

.action-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.action-group button,
.action-group a {
    padding: 0.65rem 1rem;
    border-radius: 999px;
    border: none;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.button-secondary {
    background: #eef2ff;
    color: #323948;
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    width: fit-content;
    min-height: 2.9rem;
    padding: 0.7rem 1.05rem;
    border: 1px solid rgba(17, 126, 65, 0.2);
    border-radius: 0.55rem;
    background: #25d366;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(37, 211, 102, 0.2);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-button:hover,
.whatsapp-button:focus-visible {
    background: #1ebe5d;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(37, 211, 102, 0.28);
    transform: translateY(-1px);
}

.whatsapp-button:focus-visible {
    outline: 3px solid rgba(37, 211, 102, 0.3);
    outline-offset: 3px;
}

.whatsapp-button-icon {
    display: inline-grid;
    width: 1.35rem;
    height: 1.35rem;
    place-items: center;
    fill: currentColor;
}

.button-danger {
    background: #f8d7da;
    color: #981b34;
}

.site-footer {
    margin-top: auto;
    padding: 2.5rem 0;
    background: var(--gradient-main);
    color: white;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.footer-copyright {
    margin: 1.75rem auto 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.8rem;
    text-align: center;
}

.footer-inner h3 {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 0.6rem;
}

.footer-logo {
    width: 38px;
    height: auto;
    border-radius: 0.75rem;
    background: white;
    padding: 0.35rem;
    box-shadow: 0 10px 24px rgba(37, 43, 114, 0.16);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.footer-logo:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 12px 28px rgba(60, 58, 130, 0.22);
}

.footer-inner p {
    margin: 0;
    color: rgba(255,255,255,0.78);
    max-width: 36rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    color: white;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.32);
    padding: 0.75rem 1rem;
    border-radius: 999px;
    transition: background 0.3s ease;
}

/* Settings Tab Styling */
.settings-section {
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.settings-section h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: 600;
}

.settings-form {
    max-width: 600px;
}

.settings-option-section {
    padding: 1.5rem;
    background: #f7f8fb;
    border-radius: 1.25rem;
    border: 1px solid rgba(15,21,56,0.08);
    margin-bottom: 1.5rem;
}

.settings-option-section h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.settings-option-section p {
    margin: 0 0 1.25rem 0;
    color: var(--muted);
}

.background-image-manager {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid #dce1eb;
}

.background-image-manager-heading {
    margin-bottom: 1rem;
}

.background-image-manager-heading h4 {
    margin: 0 0 0.25rem;
    color: #252b3b;
    font-size: 1rem;
}

.background-image-manager-heading h4 span,
.background-image-manager-heading p {
    color: #68728f;
    font-size: 0.85rem;
    font-weight: 500;
}

.background-image-manager-heading p {
    margin: 0;
}

.background-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.background-image-card {
    min-width: 0;
    padding: 0.5rem;
    border: 1px solid #dce1eb;
    border-radius: 0.45rem;
    background: #ffffff;
}

.background-image-choice,
.background-image-upload-preview {
    display: grid;
    gap: 0.45rem;
    color: #30384a;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

.background-image-choice img,
.background-image-upload-preview img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 0.25rem;
    background: #f0f2f6;
}

.background-image-choice input,
.background-image-upload-preview input {
    width: 1rem;
    height: 1rem;
    margin: 0;
    accent-color: #d36a2e;
}

.background-image-card form {
    margin-top: 0.55rem;
}

.background-image-card .button-danger {
    width: 100%;
    padding: 0.45rem 0.55rem;
    font-size: 0.78rem;
}

.background-image-empty {
    margin: 0;
    padding: 1rem;
    border: 1px dashed #c5cbd8;
    border-radius: 0.4rem;
    color: #68728f;
    text-align: center;
}

.dashboard-dark .settings-option-section {
    background: #1a1f35;
    border-color: rgba(255,255,255,0.08);
}

.dashboard-dark .background-image-manager {
    border-color: rgba(255,255,255,0.12);
}

.dashboard-dark .background-image-manager-heading h4,
.dashboard-dark .background-image-choice,
.dashboard-dark .background-image-upload-preview {
    color: #edf0f8;
}

.dashboard-dark .background-image-card {
    border-color: rgba(255,255,255,0.12);
    background: #1a1f35;
}

.dashboard-dark .background-image-empty {
    border-color: rgba(255,255,255,0.2);
    color: #bdc3d5;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group small {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.85rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(215, 37, 125, 0.1);
}

.form-input[readonly] {
    background-color: #f5f5f5;
    cursor: not-allowed;
    color: var(--muted);
}

.form-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-actions .button-primary,
.form-actions .button-secondary {
    flex: 1;
    min-width: 150px;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
}

.social-links a:hover {
    background: rgba(255,255,255,0.12);
}

.fade-element {
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease, visibility 0s linear 0.8s;
}

.fade-element.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
}

@supports (animation-timeline: view()) {
    .home-page .fade-element,
    .products-page .fade-element,
    .product-page .fade-element {
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none;
    }

    .home-page :is(.hero-copy, .hero-media, .overview, .section, h1, h2, h3, p, .button-primary, .product-card, .product-card img, .product-image-link img, .view-animate),
    .products-page :is(.section-title, p, .product-card, .product-card img, .product-card-content h3, .product-card-content p, .product-card-content .price),
    .product-page :is(.product-detail, .product-detail h2, .product-detail-image img, .product-detail-info p, .product-detail-meta, .product-detail-meta .price, .product-detail-meta .button-primary) {
        animation: page-view-reveal 5s linear;
        animation-timeline: view();
        animation-range: entry 0% cover 40%;
    }

    .home-page .hero-media img.view-animate-slow {
        animation: page-view-reveal 7s linear;
        animation-timeline: view();
        animation-range: entry 0% cover 40%;
    }

    .products-page .product-card-content .price,
    .product-page .product-detail-meta .price {
        animation: none;
        opacity: 1;
        transform: none;
        visibility: visible;
    }

    @keyframes page-view-reveal {
        from {
            opacity: 0;
            transform: translateY(2rem) scale(0.98);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }
}

@media (max-width: 980px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .image-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nav-links {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 0.75rem);
        right: 0;
        width: min(320px, 100%);
        background: rgba(11, 18, 38, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.10);
        border-radius: 1.25rem;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        margin: 0;
        transform: translateY(-12px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.24s ease, transform 0.24s ease;
        backdrop-filter: blur(20px);
        box-shadow: 0 30px 70px rgba(8, 14, 34, 0.28);
        z-index: 100;
    }

    .nav-links.active {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-links li {
        width: 100%;
        margin-bottom: 0.65rem;
    }

    .nav-links li:last-child {
        margin-bottom: 0;
    }

    .nav-links li a {
        width: 100%;
        padding: 1rem 1.15rem;
        display: block;
        position: relative;
        border-radius: 1rem;
        color: rgba(255, 255, 255, 0.96);
        transition: background 0.24s ease, color 0.24s ease;
        overflow: visible;
        touch-action: manipulation;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        background: rgba(255,255,255,0.04);
        border: 1px solid rgba(255,255,255,0.06);
        box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
    }

    .nav-links li a::after {
        content: '';
        position: absolute;
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        height: 2px;
        border-radius: 999px;
        background: linear-gradient(135deg, #ff6ec7 0%, #5d74ff 100%);
        opacity: 0;
        transform: scaleX(0);
        transform-origin: center;
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.28s ease;
        pointer-events: none;
    }

    .nav-links li a:hover,
    .nav-links li a:focus,
    .nav-links li a:active,
    .nav-links li a.touch-hover {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.12);
    }

    .nav-links li a:hover::after,
    .nav-links li a:focus::after,
    .nav-links li a:active::after,
    .nav-links li a.touch-hover::after {
        opacity: 1;
        transform: scaleX(1);
    }

    .product-grid,
    .image-grid,
    .values-grid,
    .contact-grid,
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .products-page .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    main {
        padding: 2.5rem 0 1.5rem;
    }

    .product-tools {
        flex-direction: column;
        align-items: stretch;
    }

    .product-sort-control {
        justify-content: space-between;
    }

    .product-search-bar {
        grid-template-columns: 3.8rem minmax(0, 1fr) 3.6rem;
        width: 100%;
        flex: 0 0 auto;
    }

    .product-sort-control label {
        margin-top: 0.35rem;
    }
}

@media (max-width: 520px) {
    .hero-copy h1 {
        font-size: 2.5rem;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Public brand surfaces */
.home-page .hero {
    display: block;
    position: relative;
    min-height: clamp(32rem, 74svh, 42rem);
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    isolation: isolate;
    background: #ece9df;
    box-shadow: none;
}

.home-page {
    background: #ffffff;
    padding: 0;
}

.home-page .hero-slides,
.home-page .hero-slide {
    position: absolute;
    inset: 0;
}

.home-page .hero-slides {
    z-index: 0;
    min-height: 100%;
    height: 100%;
    overflow: hidden;
    background: #ece9df;
}

.home-page .hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.home-page .hero-slide.is-active {
    opacity: 1;
}

.home-page .hero-slide::after {
    content: '';
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.76) 30%, rgba(255, 255, 255, 0.3) 53%, transparent 76%);
}

.home-page .hero-slide img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
    object-position: center right;
}

.home-page .hero-controls {
    position: absolute;
    z-index: 3;
    left: max(1.25rem, calc((100% - 1160px) / 2));
    bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    min-height: 2.5rem;
    padding: 0;
    background: transparent;
}

.hero-control,
.hero-dot {
    border: 1px solid rgba(255, 255, 255, 0.65);
    cursor: pointer;
}

.hero-control {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    border-color: rgba(23, 32, 44, 0.25);
    color: #ffffff;
    background: rgba(23, 32, 44, 0.58);
    font-size: 1.2rem;
}

.hero-control:hover,
.hero-control:focus-visible {
    background: #17202c;
}

.hero-dots {
    display: flex;
    gap: 0.4rem;
}

.hero-slide-counter {
    min-width: 3.5rem;
    color: #303a45;
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    text-align: center;
}

.hero-dot {
    width: 0.65rem;
    height: 0.65rem;
    padding: 0;
    border-radius: 50%;
    border-color: rgba(23, 32, 44, 0.45);
    background: rgba(23, 32, 44, 0.35);
}

.hero-dot.is-active {
    background: #17202c;
    border-color: #17202c;
}

.hero-image-timer {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 0.1rem 0.5rem;
    min-width: 8.5rem;
    margin-left: 0.35rem;
    color: #303a45;
    font-size: 0.7rem;
    line-height: 1;
}

.hero-image-timer strong {
    color: #17202c;
    font-size: 0.72rem;
    font-variant-numeric: tabular-nums;
}

.hero-image-timer-track {
    grid-column: 1 / -1;
    display: block;
    height: 3px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(23, 32, 44, 0.2);
}

.hero-image-timer-track span {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: #d36a2e;
    transform: scaleX(0);
    transform-origin: left center;
}

.hero-image-timer-track span.is-running {
    animation: hero-image-countdown 30s linear forwards;
}

@keyframes hero-image-countdown {
    to {
        transform: scaleX(1);
    }
}

.home-page .hero-copy {
    position: absolute;
    z-index: 2;
    top: auto;
    bottom: 4.5rem;
    left: max(1.25rem, calc((100% - 1160px) / 2));
    width: min(38rem, 48%);
    max-width: none;
    margin: 0;
    padding: 1rem 0 2.5rem;
    transform: none !important;
    animation: none !important;
    animation-timeline: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.home-page .hero-copy,
.home-page .hero-copy :is(h1, p, .button-primary) {
    animation: none !important;
    animation-timeline: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.home-page .hero-copy :is(h1, p, .button-primary) {
    transform: none !important;
}

.home-page .hero-copy p:first-child {
    margin: 0 0 0.75rem;
    color: #53604c;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.home-page .hero-copy h1 {
    max-width: 16ch;
    margin: 0 0 1rem;
    color: #17202c;
    font-size: 3.1rem;
    line-height: 1.06;
}

.home-page .hero-copy p:not(:first-child) {
    max-width: 38rem;
    margin: 0 0 1.5rem;
    color: #303a45;
    font-size: 1.05rem;
    line-height: 1.6;
}

.home-page .hero-copy .button-primary {
    display: inline-flex;
    min-height: 3.1rem;
    align-items: center;
    padding: 0.7rem 1.4rem;
    border: 1px solid #17202c;
    border-radius: 0;
    color: #17202c;
    background: rgba(255, 255, 255, 0.4);
    text-decoration: none;
}

.home-page .hero-copy .button-primary:hover,
.home-page .hero-copy .button-primary:focus-visible {
    color: #ffffff;
    background: #17202c;
}

@media (max-width: 760px) {
    .home-page .hero {
        min-height: clamp(34rem, 78svh, 40rem);
    }

    .home-page .hero-slide img {
        object-position: 68% center;
    }

    .home-page .hero-image-timer {
        min-width: 7rem;
    }

    .home-page .hero-slide::after {
        background: linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.78) 46%, rgba(255, 255, 255, 0.25) 82%, transparent 100%);
    }

    .home-page .hero-copy {
        top: auto;
        bottom: 4.5rem;
        left: 1.25rem;
        width: min(32rem, calc(100% - 2.5rem));
    }

    .home-page .hero-copy h1 {
        max-width: 17ch;
        font-size: 2.65rem;
    }

    .home-page .hero-controls {
        left: 1.25rem;
    }
}

@media (max-width: 420px) {
    .home-page .hero-copy h1 {
        font-size: 2.3rem;
    }

    .home-page .hero-copy p:not(:first-child) {
        max-width: 32ch;
        font-size: 0.96rem;
    }
}

.home-page .overview,
.home-page .section {
    position: relative;
    z-index: 2;
    margin-top: 1.5rem;
    padding: clamp(2rem, 4vw, 3.5rem);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 45px rgba(15, 21, 56, 0.1);
}

.home-page .overview {
    width: 100%;
    max-width: none;
    margin-top: 0;
    padding-right: max(1rem, calc((100% - 1160px) / 2));
    padding-left: max(1rem, calc((100% - 1160px) / 2));
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.home-page .overview h2,
.home-page .section h2,
.home-page .overview p,
.home-page .section p {
    color: #1f2340;
}

.home-page .section .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-page .featured-products .product-grid {
    gap: 2rem 1.25rem;
}

.home-page .featured-products .product-card {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
}

.home-page .featured-products .product-card:hover {
    border-color: transparent;
    box-shadow: none;
    transform: none;
}

.home-page .featured-products .product-card img {
    aspect-ratio: 1 / 1;
    padding: 1rem;
    background: #f4f7ff;
    transition: transform 0.3s ease;
}

.home-page .featured-products .product-card-link:hover .product-card img,
.home-page .featured-products .product-card-link:focus-visible .product-card img {
    transform: scale(1.025);
}

.home-page .featured-products .product-card-content {
    padding: 0.85rem 0 0;
}

.home-page .featured-products .product-card-content h3 {
    margin-bottom: 0.35rem;
    font-size: 1rem;
}

.home-page .featured-products .product-card-content p {
    margin-bottom: 0.55rem;
    font-size: 0.85rem;
}

.home-page .featured-products .product-card-link:focus-visible {
    outline-offset: 0.55rem;
    border-radius: 0;
}

.public-page:not(.home-page) {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.97);
    color: #1f2340;
}

.public-page:not(.home-page) > .container:first-child {
    padding-top: clamp(2rem, 5vw, 4rem);
}

.public-page:not(.home-page) .section-title h2,
.public-page:not(.home-page) p,
.public-page:not(.home-page) h2,
.public-page:not(.home-page) h3 {
    color: #1f2340;
}

.public-page:not(.home-page) .contact-card,
.public-page:not(.home-page) .form-card,
.public-page:not(.home-page) .info-card,
.public-page:not(.home-page) .video-card {
    border: 1px solid #e5e7eb;
    box-shadow: 0 16px 40px rgba(15, 21, 56, 0.1);
}

.products-page .product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(15, 21, 56, 0.14);
}

@media (max-width: 768px) {
    .home-page .hero {
        min-height: clamp(34rem, 78svh, 40rem);
        padding: 0;
        border-radius: 0;
    }

    .home-page .hero-slides {
        min-height: 100%;
        height: 100%;
        max-height: none;
    }

    .home-page .hero-copy h1 {
        max-width: none;
    }
}

.footer-nav-group {
    display: grid;
    gap: 0.35rem;
    min-width: 9rem;
}

.footer-nav-group strong {
    margin-bottom: 0.2rem;
    color: #ffb6dc;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
}

.footer-nav-group a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
}

.footer-nav-group a:hover,
.footer-nav-group a:focus {
    color: #ffffff;
}

.scroll-top-button {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 30;
    width: 2.75rem;
    height: 2.75rem;
    border: 0;
    border-radius: 50%;
    color: #151c41;
    background: #ffb85e;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(0.75rem);
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.scroll-top-button.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-top-button:hover,
.scroll-top-button:focus-visible {
    background: #ffc675;
}

.whatsapp-cta {
    position: fixed;
    right: 1.25rem;
    bottom: 5.25rem;
    z-index: 30;
    display: grid;
    width: 3.35rem;
    height: 3.35rem;
    place-items: center;
    border: 3px solid #ffffff;
    border-radius: 50%;
    color: #ffffff;
    background: #20b954;
    box-shadow: 0 8px 22px rgba(9, 75, 35, 0.28);
    text-decoration: none;
    animation: whatsapp-heartbeat 5s ease-in-out infinite;
}

.whatsapp-cta:hover,
.whatsapp-cta:focus-visible {
    color: #ffffff;
    background: #168f40;
    animation-play-state: paused;
    transform: scale(1.08);
}

.whatsapp-cta:focus-visible {
    outline: 3px solid #ffb85e;
    outline-offset: 4px;
}

.whatsapp-cta-icon {
    width: 1.85rem;
    height: 1.85rem;
    fill: currentColor;
}

@keyframes whatsapp-heartbeat {
    0%, 88%, 100% {
        transform: scale(1);
    }
    91% {
        transform: scale(1.12);
    }
    94% {
        transform: scale(0.98);
    }
    97% {
        transform: scale(1.08);
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-background-layer {
        transition: none;
    }

    .whatsapp-cta {
        animation: none;
    }
}

body:has(.home-page) .soap-bubbles {
    opacity: 0.38;
}

body:has(.admin-dashboard) .whatsapp-cta {
    display: none;
}

body:has(.admin-dashboard) .site-footer {
    position: relative;
    z-index: 4;
    margin-top: 2rem;
    padding: 2.25rem 0;
    background: var(--gradient-main);
    color: #ffffff;
}

body:has(.admin-dashboard) .site-footer .footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(9rem, 0.7fr) minmax(10rem, 0.9fr);
    align-items: start;
    gap: 2rem;
}

body:has(.admin-dashboard) .site-footer .footer-brand,
body:has(.admin-dashboard) .site-footer h3,
body:has(.admin-dashboard) .site-footer strong {
    color: #ffffff;
}

body:has(.admin-dashboard) .site-footer .footer-inner p {
    color: rgba(255, 255, 255, 0.82);
}

body:has(.admin-dashboard) .site-footer .footer-nav-group,
body:has(.admin-dashboard) .site-footer .social-links {
    align-content: start;
}

body:has(.admin-dashboard) .site-footer .footer-nav-group a,
body:has(.admin-dashboard) .site-footer .social-links a {
    color: rgba(255, 255, 255, 0.9);
}

body:has(.admin-dashboard) .site-footer .footer-nav-group a:hover,
body:has(.admin-dashboard) .site-footer .footer-nav-group a:focus-visible,
body:has(.admin-dashboard) .site-footer .social-links a:hover,
body:has(.admin-dashboard) .site-footer .social-links a:focus-visible {
    color: #ffb6dc;
}

@media (max-width: 760px) {
    body:has(.admin-dashboard) .site-footer .footer-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    body:has(.admin-dashboard) .site-footer .footer-nav-group,
    body:has(.admin-dashboard) .site-footer .social-links {
        justify-items: start;
    }
}

/* Homepage composition inspired by the reference brand layout. */
.home-page .home-band,
.home-page .community-band {
    position: relative;
    z-index: 2;
}

.home-page .home-category-band {
    margin-top: 3rem;
    padding: clamp(2.5rem, 6vw, 5rem) 0;
    background: #f4f7ff;
}

.home-band-heading {
    margin-bottom: 1.75rem;
}

.eyebrow {
    margin: 0 0 0.45rem;
    color: var(--accent) !important;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.home-band-heading h2,
.community-inner h2 {
    margin: 0;
    color: #1f2340;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.category-tile {
    position: relative;
    display: flex;
    min-height: 22rem;
    overflow: hidden;
    color: #fff;
    background: #263064;
    text-decoration: none;
    isolation: isolate;
}

.category-tile::after {
    position: absolute;
    inset: 38% 0 0;
    z-index: -1;
    background: linear-gradient(180deg, transparent, rgba(14, 20, 60, 0.96));
    content: '';
}

.category-tile img,
.category-tile-placeholder {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-tile-placeholder {
    background: linear-gradient(135deg, #5269de, #d7257d);
}

.category-tile:hover img,
.category-tile:focus-visible img {
    transform: scale(1.06);
}

.category-tile-content {
    display: flex;
    flex-direction: column;
    align-self: flex-end;
    gap: 0.45rem;
    width: 100%;
    padding: 1.4rem;
}

.category-tile-content strong {
    font-size: 1.25rem;
}

.category-tile-content > span {
    min-height: 3rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.9rem;
}

.category-tile-content em {
    margin-top: 0.25rem;
    color: #ffb6dc;
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.home-products-band {
    margin-top: 3rem;
    padding: clamp(2.5rem, 6vw, 5rem) 0;
    background: #f4f7ff;
}

.home-products-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.home-products-heading .home-band-heading {
    max-width: 54rem;
    margin: 0;
}

.home-products-heading h2 {
    margin: 0;
    color: #1f2340;
    font-size: 2rem;
}

.home-products-heading .home-band-heading > p:last-child {
    max-width: 62ch;
    margin: 0.5rem 0 0;
    color: #596078;
    line-height: 1.55;
}

.home-product-controls {
    display: flex;
    flex: 0 0 auto;
    gap: 0.55rem;
}

.home-product-arrow {
    display: grid;
    width: 2.8rem;
    height: 2.8rem;
    place-items: center;
    border: 1px solid #d0d6e1;
    border-radius: 50%;
    color: #252d3b;
    background: transparent;
    font: inherit;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.home-product-arrow:hover,
.home-product-arrow:focus-visible {
    border-color: #252d3b;
    color: #ffffff;
    background: #252d3b;
}

.home-product-track {
    display: flex;
    gap: 1.15rem;
    overflow-x: auto;
    padding: 0 0 0.8rem;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-color: #8992a2 #e4e8ef;
    scrollbar-width: thin;
}

.home-product-card {
    position: relative;
    display: block;
    flex: 0 0 clamp(17rem, 24vw, 21rem);
    aspect-ratio: 1 / 1;
    overflow: hidden;
    isolation: isolate;
    color: #ffffff;
    background: #283449;
    scroll-snap-align: start;
    text-decoration: none;
}

.home-product-track.has-single-product .home-product-card {
    flex-basis: 100%;
    aspect-ratio: 2 / 1;
}

.home-product-card img {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.home-product-card-shade {
    position: absolute;
    z-index: -1;
    inset: 28% 0 0;
    background: linear-gradient(180deg, transparent 0%, rgba(9, 15, 28, 0.36) 30%, rgba(9, 15, 28, 0.94) 100%);
}

.home-product-card-copy {
    position: absolute;
    inset: auto 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1.25rem;
}

.home-product-card-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-product-card-copy strong {
    display: -webkit-box;
    overflow: hidden;
    color: #ffffff;
    font-size: 1.2rem;
    line-height: 1.3;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-product-card-description {
    display: -webkit-box;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.84rem;
    line-height: 1.4;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-product-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.home-product-card-price {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.home-product-card-action {
    flex: 0 0 auto;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
}

.home-product-card:hover img,
.home-product-card:focus-visible img {
    transform: scale(1.045);
}

.home-product-card:focus-visible {
    outline: 3px solid #ffb85e;
    outline-offset: 3px;
}

.home-products-empty {
    padding: clamp(1.5rem, 4vw, 2.75rem);
    border: 1px solid #dce2ed;
    background: #ffffff;
}

.home-products-empty h3 {
    margin: 0 0 0.35rem;
    color: #1f2340;
    font-size: 1.2rem;
}

.home-products-empty p {
    margin: 0 0 1rem;
    color: #596078;
}

.home-products-empty a {
    color: #263064;
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 700px) {
    .home-products-heading {
        align-items: start;
        gap: 1rem;
    }

    .home-products-heading h2 {
        max-width: 17ch;
        font-size: 1.65rem;
    }

    .home-products-heading .home-band-heading > p:last-child {
        max-width: 42ch;
        font-size: 0.9rem;
    }

    .home-product-controls {
        gap: 0.35rem;
    }

    .home-product-arrow {
        width: 2.45rem;
        height: 2.45rem;
    }

    .home-product-track {
        gap: 0.8rem;
        margin-right: -1rem;
        padding-right: 1rem;
    }

    .home-product-card {
        flex-basis: min(78vw, 21rem);
    }

    .home-product-track.has-single-product .home-product-card {
        flex-basis: 100%;
        aspect-ratio: 1 / 1;
    }
}

.community-band {
    margin-top: 3rem;
    padding: clamp(3rem, 7vw, 6rem) 0;
    color: #fff;
    background: linear-gradient(115deg, #151c41 0%, #263064 62%, #4c5ad5 100%);
}

.community-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(15rem, 0.7fr);
    align-items: end;
    gap: 4rem;
}

.community-inner h2 {
    max-width: 14ch;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.7rem);
    line-height: 1.05;
}

.community-inner > div:first-child > p:last-child {
    max-width: 38rem;
    margin: 1.2rem 0 0;
    color: rgba(255, 255, 255, 0.76);
}

.community-links {
    display: grid;
    gap: 0.8rem;
}

.community-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.community-links a:hover,
.community-links a:focus-visible {
    color: #ffb6dc;
    border-color: #ffb6dc;
}

@media (max-width: 900px) {
    .home-page .section .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .community-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 520px) {
    .home-page .section .product-grid {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .category-tile {
        min-height: 18rem;
    }
}

.admin-login-loading-page .site-header,
.admin-login-loading-page .site-footer,
.admin-login-loading-page .scroll-top-button,
.admin-login-loading-page .whatsapp-cta {
    display: none;
}

@media (max-width: 1024px) and (orientation: landscape) {
    .site-header .header-inner {
        position: relative;
    }

    .site-header .nav-toggle {
        display: flex;
        flex: 0 0 auto;
    }

    .site-header .nav-links {
        position: absolute;
        top: calc(100% + 0.65rem);
        right: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: min(320px, calc(100vw - 2rem));
        gap: 0;
        padding: 0.8rem;
        margin: 0;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 0.9rem;
        background: rgba(11, 18, 38, 0.98);
        box-shadow: 0 24px 55px rgba(8, 14, 34, 0.3);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-0.5rem);
        transition: opacity 0.24s ease, transform 0.24s ease;
        z-index: 100;
    }

    .site-header .nav-links.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .site-header .nav-links li {
        width: 100%;
        margin-bottom: 0.45rem;
    }

    .site-header .nav-links li:last-child {
        margin-bottom: 0;
    }

    .site-header .nav-links li a {
        display: block;
        width: 100%;
        padding: 0.7rem 0.85rem;
        border: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: 0.65rem;
        background: rgba(255, 255, 255, 0.04);
        color: rgba(255, 255, 255, 0.96);
    }
}

.admin-dashboard .admin-tab-btn,
.admin-dashboard .admin-tab-btn.active,
.admin-dashboard .admin-tab-btn:hover,
.admin-dashboard .admin-tab-btn:focus-visible {
    color: #18213f !important;
}

