/**
 * Smart Blocks "AFOL Studio" theme
 *
 * Light cream base with bold brick-primary accents, geometric sans typography,
 * and stud-pattern motifs. Pitched at adult builders, collectors, and STEM
 * tinkerers — playful but not childish.
 */

:root {
    --sb-cream: #f6f1e7;
    --sb-cream-strong: #efe7d4;
    --sb-panel: #fffaf0;
    --sb-panel-tint: #fbf6e9;
    --sb-ink: #1c1f25;
    --sb-ink-soft: #2c313a;
    --sb-muted: #65707a;
    --sb-muted-soft: #8a93a0;
    --sb-line: #d9cdb4;
    --sb-line-strong: #b9aa8a;

    --brick-red: #d62027;
    --brick-red-deep: #b21319;
    --brick-blue: #006db7;
    --brick-blue-deep: #00568f;
    --brick-yellow: #ffcf00;
    --brick-yellow-deep: #d6ab00;
    --brick-green: #00a651;
    --brick-green-deep: #007e3d;

    --radius-card: 16px;
    --radius-pill: 999px;
    --shadow-card: 0 1px 0 rgba(28, 31, 37, 0.04), 0 8px 22px rgba(28, 31, 37, 0.06);
    --shadow-card-hover: 0 2px 0 rgba(28, 31, 37, 0.05), 0 14px 32px rgba(28, 31, 37, 0.10);
    --shadow-pop: 0 8px 28px rgba(214, 32, 39, 0.18);
}

.theme-studio[data-bs-theme="light"] {
    --bs-primary: var(--brick-red);
    --bs-primary-rgb: 214, 32, 39;
    --bs-link-color: var(--brick-blue);
    --bs-link-hover-color: var(--brick-blue-deep);
    --bs-body-bg: var(--sb-cream);
    --bs-body-color: var(--sb-ink);
    --bs-secondary-color: var(--sb-muted);
    --bs-tertiary-bg: var(--sb-panel-tint);
    --bs-border-color: var(--sb-line);
    --bs-border-color-translucent: rgba(28, 31, 37, 0.12);
    --bs-card-bg: var(--sb-panel);
    --bs-card-border-color: var(--sb-line);
    --bs-emphasis-color: var(--sb-ink);
}

/* ------------------------------------------------------------------ body */

.theme-studio[data-bs-theme="light"] body {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-weight: 400;
    color: var(--sb-ink);
    min-height: 100vh;
    background-color: var(--sb-cream);
    background-image:
        radial-gradient(circle at 12% -4%, rgba(214, 32, 39, 0.06), transparent 38%),
        radial-gradient(circle at 92% -2%, rgba(0, 109, 183, 0.05), transparent 32%),
        radial-gradient(circle at 70% 110%, rgba(255, 207, 0, 0.07), transparent 40%);
    background-attachment: fixed;
}

.theme-studio[data-bs-theme="light"] h1,
.theme-studio[data-bs-theme="light"] h2,
.theme-studio[data-bs-theme="light"] h3,
.theme-studio[data-bs-theme="light"] h4,
.theme-studio[data-bs-theme="light"] h5,
.theme-studio[data-bs-theme="light"] h6,
.theme-studio[data-bs-theme="light"] .display-1,
.theme-studio[data-bs-theme="light"] .display-2,
.theme-studio[data-bs-theme="light"] .display-3,
.theme-studio[data-bs-theme="light"] .display-4,
.theme-studio[data-bs-theme="light"] .display-5,
.theme-studio[data-bs-theme="light"] .display-6 {
    font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--sb-ink);
}

.theme-studio[data-bs-theme="light"] .text-secondary {
    color: var(--sb-muted) !important;
}

.theme-studio[data-bs-theme="light"] .text-muted {
    color: var(--sb-muted-soft) !important;
}

/* ------------------------------------------------------------- stud strip
 * A row of evenly spaced "studs" used as an accent under the navbar, on
 * hero panels, and at the top of feature cards. The pattern repeats so it
 * scales to any width.
 */

.stud-strip {
    height: 10px;
    background-image: radial-gradient(circle at 8px 5px, var(--brick-red) 3px, transparent 3.5px);
    background-size: 16px 10px;
    background-repeat: repeat-x;
    background-position: top left;
    opacity: 0.92;
}

.stud-strip-blue {
    background-image: radial-gradient(circle at 8px 5px, var(--brick-blue) 3px, transparent 3.5px);
}

.stud-strip-yellow {
    background-image: radial-gradient(circle at 8px 5px, var(--brick-yellow-deep) 3px, transparent 3.5px);
}

.stud-strip-green {
    background-image: radial-gradient(circle at 8px 5px, var(--brick-green) 3px, transparent 3.5px);
}

.stud-strip-ink {
    background-image: radial-gradient(circle at 8px 5px, var(--sb-ink) 3px, transparent 3.5px);
    opacity: 0.18;
}

/* "Mini stud" inline accent next to small headings. */
.stud-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brick-red);
    box-shadow: 0 0 0 2px rgba(214, 32, 39, 0.18);
    vertical-align: middle;
    margin-right: 0.5rem;
}

/* ---------------------------------------------------------------- navbar */

.theme-studio[data-bs-theme="light"] .navbar-hobby,
.theme-studio[data-bs-theme="light"] .navbar-studio {
    background: var(--sb-panel) !important;
    border-bottom: 1px solid var(--sb-line);
    box-shadow: 0 1px 0 rgba(28, 31, 37, 0.04);
    position: relative;
}

.theme-studio[data-bs-theme="light"] .navbar-hobby::after,
.theme-studio[data-bs-theme="light"] .navbar-studio::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 3px;
    background: var(--brick-red);
    pointer-events: none;
}

.theme-studio[data-bs-theme="light"] .navbar-hobby .nav-link,
.theme-studio[data-bs-theme="light"] .navbar-studio .nav-link {
    color: var(--sb-ink-soft) !important;
    font-weight: 500;
    border-radius: var(--radius-pill);
    padding: 0.35rem 0.85rem;
}

.theme-studio[data-bs-theme="light"] .navbar-hobby .nav-link:hover,
.theme-studio[data-bs-theme="light"] .navbar-hobby .nav-link:focus,
.theme-studio[data-bs-theme="light"] .navbar-studio .nav-link:hover,
.theme-studio[data-bs-theme="light"] .navbar-studio .nav-link:focus {
    color: var(--brick-red) !important;
    background: rgba(214, 32, 39, 0.06);
}

.theme-studio[data-bs-theme="light"] .navbar-hobby .navbar-brand,
.theme-studio[data-bs-theme="light"] .navbar-studio .navbar-brand {
    color: var(--sb-ink) !important;
    font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.theme-studio[data-bs-theme="light"] .navbar-brand-logo {
    height: 40px;
    width: auto;
    max-width: min(240px, 52vw);
    object-fit: contain;
    display: block;
}

.theme-studio[data-bs-theme="light"] .navbar-brand-tagline {
    font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
    font-weight: 600;
    color: var(--sb-muted) !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem !important;
}

/* ---------------------------------------------------------------- footer */

.theme-studio[data-bs-theme="light"] .footer-hobby,
.theme-studio[data-bs-theme="light"] .footer-studio {
    background: var(--sb-ink);
    color: rgba(255, 255, 255, 0.78);
    position: relative;
}

/*
 * Yellow accent line. Pinned to the very top of the footer band via absolute
 * positioning — keeping it in flow let the parent's `pt-4` push it ~24px below
 * the top edge, which read as a misaligned strip floating inside the footer.
 * Anchor depends on `.footer-studio` having `position: relative` (set above).
 */
.theme-studio[data-bs-theme="light"] .footer-hobby::before,
.theme-studio[data-bs-theme="light"] .footer-studio::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--brick-yellow);
}

/* Vertical separator between text links and social icons in the footer row. */
.theme-studio[data-bs-theme="light"] .footer-studio .footer-divider {
    display: inline-block;
    width: 1px;
    height: 0.95rem;
    background: rgba(255, 255, 255, 0.28);
    margin: 0 0.25rem;
}

/*
 * Social icon button. A subtle outlined circle that lights up on hover with
 * the brand yellow, matching the rest of the footer link hover state.
 */
.theme-studio[data-bs-theme="light"] .footer-studio .footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: rgba(255, 255, 255, 0.92) !important;
    transition: color 120ms ease, border-color 120ms ease, background 120ms ease;
}

.theme-studio[data-bs-theme="light"] .footer-studio .footer-social:hover,
.theme-studio[data-bs-theme="light"] .footer-studio .footer-social:focus-visible {
    color: var(--sb-ink) !important;
    background: var(--brick-yellow);
    border-color: var(--brick-yellow);
    outline: none;
}

.theme-studio[data-bs-theme="light"] .footer-hobby a,
.theme-studio[data-bs-theme="light"] .footer-studio a {
    color: rgba(255, 255, 255, 0.92) !important;
    text-decoration: none;
}

.theme-studio[data-bs-theme="light"] .footer-hobby a:hover,
.theme-studio[data-bs-theme="light"] .footer-studio a:hover {
    color: var(--brick-yellow) !important;
}

.theme-studio[data-bs-theme="light"] .footer-brand-logo {
    height: 28px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

/* ----------------------------------------------------------------- cards */

.theme-studio[data-bs-theme="light"] .card {
    background: var(--sb-panel);
    border: 1.5px solid var(--sb-line);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.theme-studio[data-bs-theme="light"] .card:hover {
    border-color: var(--sb-line-strong);
    box-shadow: var(--shadow-card-hover);
}

.theme-studio[data-bs-theme="light"] .card-header {
    background: var(--sb-panel-tint);
    border-bottom: 1.5px solid var(--sb-line);
    color: var(--sb-ink);
    font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
    font-weight: 600;
    border-top-left-radius: calc(var(--radius-card) - 1.5px);
    border-top-right-radius: calc(var(--radius-card) - 1.5px);
}

.theme-studio[data-bs-theme="light"] .card-collectible {
    overflow: hidden;
    position: relative;
}

.theme-studio[data-bs-theme="light"] .card-collectible .card-img-top {
    background: var(--sb-cream-strong);
}

/* ------------------------------------------------------------------ hero */

.theme-studio[data-bs-theme="light"] .hero-panel {
    background: linear-gradient(135deg, #fffaf0 0%, #fff4dc 100%) !important;
    border: 1.5px solid var(--sb-line);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.theme-studio[data-bs-theme="light"] .hero-panel::after {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -60px;
    width: 220px;
    height: 220px;
    border-radius: 32px;
    background:
        radial-gradient(circle at 25% 25%, rgba(255, 207, 0, 0.45) 0 18%, transparent 19%),
        radial-gradient(circle at 75% 25%, rgba(0, 109, 183, 0.35) 0 18%, transparent 19%),
        radial-gradient(circle at 25% 75%, rgba(0, 166, 81, 0.32) 0 18%, transparent 19%),
        radial-gradient(circle at 75% 75%, rgba(214, 32, 39, 0.40) 0 18%, transparent 19%);
    transform: rotate(-12deg);
    pointer-events: none;
    opacity: 0.55;
}

.theme-studio[data-bs-theme="light"] .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--brick-red);
    margin-bottom: 0.75rem;
}

.theme-studio[data-bs-theme="light"] .hero-eyebrow::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--brick-red);
    box-shadow: 0 0 0 3px rgba(214, 32, 39, 0.18);
}

/* --------------------------------------------------------------- buttons */

.theme-studio[data-bs-theme="light"] .btn {
    border-radius: var(--radius-pill);
    font-weight: 600;
    letter-spacing: 0.01em;
    padding-left: 1.1rem;
    padding-right: 1.1rem;
}

.theme-studio[data-bs-theme="light"] .btn-sm {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
}

.theme-studio[data-bs-theme="light"] .btn-primary {
    --bs-btn-bg: var(--brick-red);
    --bs-btn-border-color: var(--brick-red);
    --bs-btn-color: #fff;
    --bs-btn-hover-bg: var(--brick-red-deep);
    --bs-btn-hover-border-color: var(--brick-red-deep);
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--brick-red-deep);
    --bs-btn-active-border-color: var(--brick-red-deep);
    --bs-btn-disabled-bg: rgba(214, 32, 39, 0.45);
    --bs-btn-disabled-border-color: rgba(214, 32, 39, 0.45);
    box-shadow: 0 4px 0 var(--brick-red-deep);
    transform: translateY(0);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.theme-studio[data-bs-theme="light"] .btn-primary:hover,
.theme-studio[data-bs-theme="light"] .btn-primary:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 5px 0 var(--brick-red-deep), 0 8px 22px rgba(214, 32, 39, 0.25);
}

.theme-studio[data-bs-theme="light"] .btn-primary:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 var(--brick-red-deep) !important;
}

.theme-studio[data-bs-theme="light"] .btn-outline-primary {
    --bs-btn-color: var(--brick-red);
    --bs-btn-border-color: var(--brick-red);
    --bs-btn-hover-bg: var(--brick-red);
    --bs-btn-hover-border-color: var(--brick-red);
    --bs-btn-hover-color: #fff;
}

.theme-studio[data-bs-theme="light"] .btn-warning {
    --bs-btn-bg: var(--brick-yellow);
    --bs-btn-border-color: var(--brick-yellow);
    --bs-btn-color: var(--sb-ink);
    --bs-btn-hover-bg: var(--brick-yellow-deep);
    --bs-btn-hover-border-color: var(--brick-yellow-deep);
    --bs-btn-hover-color: var(--sb-ink);
}

.theme-studio[data-bs-theme="light"] .btn-outline-warning {
    --bs-btn-color: var(--brick-yellow-deep);
    --bs-btn-border-color: var(--brick-yellow-deep);
    --bs-btn-hover-bg: var(--brick-yellow);
    --bs-btn-hover-color: var(--sb-ink);
}

.theme-studio[data-bs-theme="light"] .btn-secondary,
.theme-studio[data-bs-theme="light"] .btn-outline-secondary {
    --bs-btn-color: var(--sb-ink-soft);
    --bs-btn-border-color: var(--sb-line-strong);
    --bs-btn-bg: var(--sb-panel);
    --bs-btn-hover-bg: var(--sb-cream-strong);
    --bs-btn-hover-border-color: var(--sb-line-strong);
    --bs-btn-hover-color: var(--sb-ink);
}

.theme-studio[data-bs-theme="light"] .btn-link {
    --bs-btn-color: var(--brick-blue);
    --bs-btn-hover-color: var(--brick-blue-deep);
}

.theme-studio[data-bs-theme="light"] .btn-outline-danger {
    --bs-btn-color: var(--brick-red);
    --bs-btn-border-color: rgba(214, 32, 39, 0.5);
    --bs-btn-hover-bg: var(--brick-red);
    --bs-btn-hover-border-color: var(--brick-red);
    --bs-btn-hover-color: #fff;
}

/* --------------------------------------------------------- price tag etc */

.price-tag {
    display: inline-flex;
    align-items: baseline;
    gap: 0.5rem;
    background: var(--brick-red);
    color: #fff;
    border-radius: 10px;
    padding: 0.5rem 0.95rem;
    font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
    font-weight: 700;
    box-shadow: 0 4px 0 var(--brick-red-deep);
}

.price-tag .price-tag-strike {
    font-weight: 500;
    text-decoration: line-through;
    opacity: 0.75;
    font-size: 0.85em;
}

/* --------------------------------------------------------------- forms */

.theme-studio[data-bs-theme="light"] .form-control,
.theme-studio[data-bs-theme="light"] .form-select {
    background-color: #ffffff;
    border: 1.5px solid var(--sb-line);
    color: var(--sb-ink);
    border-radius: 10px;
}

.theme-studio[data-bs-theme="light"] .form-control:focus,
.theme-studio[data-bs-theme="light"] .form-select:focus {
    border-color: var(--brick-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 109, 183, 0.18);
}

.theme-studio[data-bs-theme="light"] .form-label {
    font-weight: 500;
    color: var(--sb-ink-soft);
}

/* ----------------------------------------------------------------- table */

.theme-studio[data-bs-theme="light"] .table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--sb-ink);
    --bs-table-striped-bg: var(--sb-panel-tint);
    --bs-table-hover-bg: rgba(255, 207, 0, 0.10);
    border-color: var(--sb-line);
}

.theme-studio[data-bs-theme="light"] .table > :not(caption) > * > * {
    border-bottom-color: var(--sb-line);
    color: inherit;
}

.theme-studio[data-bs-theme="light"] .table thead th {
    font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.78rem;
    color: var(--sb-muted);
    border-bottom: 2px solid var(--sb-line-strong);
}

/* ---------------------------------------------------------------- alerts */

.theme-studio[data-bs-theme="light"] .alert {
    border-radius: 12px;
    border-width: 1.5px;
}

.theme-studio[data-bs-theme="light"] .alert-success {
    background-color: rgba(0, 166, 81, 0.10);
    border-color: rgba(0, 166, 81, 0.45);
    color: var(--brick-green-deep);
}

.theme-studio[data-bs-theme="light"] .alert-danger {
    background-color: rgba(214, 32, 39, 0.08);
    border-color: rgba(214, 32, 39, 0.45);
    color: var(--brick-red-deep);
}

.theme-studio[data-bs-theme="light"] .alert-info {
    background-color: rgba(0, 109, 183, 0.08);
    border-color: rgba(0, 109, 183, 0.45);
    color: var(--brick-blue-deep);
}

.theme-studio[data-bs-theme="light"] .alert-warning {
    background-color: rgba(255, 207, 0, 0.18);
    border-color: rgba(214, 171, 0, 0.6);
    color: #6e5500;
}

.theme-studio[data-bs-theme="light"] .alert-secondary {
    background-color: var(--sb-cream-strong);
    border-color: var(--sb-line-strong);
    color: var(--sb-ink-soft);
}

/* ---------------------------------------------------------------- badges */

.theme-studio[data-bs-theme="light"] .badge {
    font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0.35em 0.7em;
    border-radius: var(--radius-pill);
}

.theme-studio[data-bs-theme="light"] .badge.bg-primary {
    background-color: var(--brick-red) !important;
    color: #fff !important;
}

.theme-studio[data-bs-theme="light"] .badge.bg-secondary {
    background-color: var(--sb-cream-strong) !important;
    color: var(--sb-ink-soft) !important;
}

.theme-studio[data-bs-theme="light"] .badge.text-bg-success,
.theme-studio[data-bs-theme="light"] .badge.bg-success {
    background-color: var(--brick-green) !important;
    color: #fff !important;
}

.theme-studio[data-bs-theme="light"] .badge.text-bg-warning,
.theme-studio[data-bs-theme="light"] .badge.bg-warning {
    background-color: var(--brick-yellow) !important;
    color: var(--sb-ink) !important;
}

.theme-studio[data-bs-theme="light"] .badge.text-bg-light {
    background-color: rgba(214, 32, 39, 0.15) !important;
    color: var(--brick-red-deep) !important;
}

.theme-studio[data-bs-theme="light"] .badge.text-bg-secondary {
    background-color: var(--sb-cream-strong) !important;
    color: var(--sb-ink-soft) !important;
}

/* -------------------------------------------------------------- dropdown */

.theme-studio[data-bs-theme="light"] .dropdown-menu {
    background-color: var(--sb-panel);
    border: 1.5px solid var(--sb-line);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
}

.theme-studio[data-bs-theme="light"] .dropdown-item {
    color: var(--sb-ink-soft);
}

.theme-studio[data-bs-theme="light"] .dropdown-item:hover,
.theme-studio[data-bs-theme="light"] .dropdown-item:focus {
    background-color: rgba(214, 32, 39, 0.08);
    color: var(--brick-red);
}

/* ------------------------------------------------------------ list-group */

.theme-studio[data-bs-theme="light"] .list-group-item {
    background-color: var(--sb-panel);
    border-color: var(--sb-line);
    color: var(--sb-ink);
}

.theme-studio[data-bs-theme="light"] .list-group-item-action:hover {
    background-color: var(--sb-panel-tint);
    color: var(--sb-ink);
}

/* ------------------------------------------------------------ breadcrumb */

.theme-studio[data-bs-theme="light"] .breadcrumb {
    --bs-breadcrumb-divider-color: var(--sb-line-strong);
    background: transparent;
    padding: 0;
}

.theme-studio[data-bs-theme="light"] .breadcrumb-item a {
    color: var(--brick-blue);
    text-decoration: none;
}

.theme-studio[data-bs-theme="light"] .breadcrumb-item a:hover {
    color: var(--brick-blue-deep);
    text-decoration: underline;
}

.theme-studio[data-bs-theme="light"] .breadcrumb-item.active {
    color: var(--sb-muted);
}

/* ---------------------------------------------------------- pagination */

.theme-studio[data-bs-theme="light"] .pagination {
    --bs-pagination-color: var(--sb-ink-soft);
    --bs-pagination-bg: var(--sb-panel);
    --bs-pagination-border-color: var(--sb-line);
    --bs-pagination-hover-color: var(--brick-red);
    --bs-pagination-hover-bg: var(--sb-panel-tint);
    --bs-pagination-hover-border-color: var(--sb-line-strong);
    --bs-pagination-active-color: #fff;
    --bs-pagination-active-bg: var(--brick-red);
    --bs-pagination-active-border-color: var(--brick-red);
}

/* ------------------------------------------------------- text utilities */

.theme-studio[data-bs-theme="light"] .text-success {
    color: var(--brick-green-deep) !important;
}

.theme-studio[data-bs-theme="light"] .text-danger {
    color: var(--brick-red-deep) !important;
}

.theme-studio[data-bs-theme="light"] a.link-light {
    color: var(--brick-blue) !important;
    text-decoration: none;
}

.theme-studio[data-bs-theme="light"] a.link-light:hover {
    color: var(--brick-blue-deep) !important;
    text-decoration: underline;
}

.theme-studio[data-bs-theme="light"] code {
    color: var(--brick-red-deep);
    background: var(--sb-panel-tint);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
}

/* --------------------------------------------------------- main spacing */

.theme-studio[data-bs-theme="light"] main.container,
.theme-studio[data-bs-theme="light"] main.container-fluid {
    position: relative;
    z-index: 1;
    padding-top: 2rem !important;
}

/* --------------------------------------------------------- carousel */

.theme-studio[data-bs-theme="light"] .carousel .carousel-control-prev-icon,
.theme-studio[data-bs-theme="light"] .carousel .carousel-control-next-icon {
    background-color: rgba(28, 31, 37, 0.6);
    border-radius: 50%;
    padding: 1.25rem;
    background-size: 50% 50%;
}

/* ------------------------------------------------------------ category eyebrow */

.category-eyebrow {
    display: inline-block;
    font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    font-size: 0.72rem;
    color: var(--brick-blue);
    background: rgba(0, 109, 183, 0.10);
    border: 1px solid rgba(0, 109, 183, 0.25);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-pill);
}

.category-eyebrow.eyebrow-red {
    color: var(--brick-red);
    background: rgba(214, 32, 39, 0.10);
    border-color: rgba(214, 32, 39, 0.30);
}

.category-eyebrow.eyebrow-green {
    color: var(--brick-green-deep);
    background: rgba(0, 166, 81, 0.10);
    border-color: rgba(0, 166, 81, 0.30);
}

.category-eyebrow.eyebrow-yellow {
    color: #6e5500;
    background: rgba(255, 207, 0, 0.20);
    border-color: rgba(214, 171, 0, 0.50);
}

/* --------------------------------------------------- cookie consent banner */

.sb-consent-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 1080;
    background: var(--sb-ink);
    color: rgba(255, 255, 255, 0.92);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
    display: none;
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    max-width: 720px;
    margin: 0 auto;
    font-size: 0.92rem;
    line-height: 1.45;
}

.sb-consent-banner.is-visible {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
}

.sb-consent-banner::before {
    content: "";
    display: block;
    height: 6px;
    width: 56px;
    background-image: radial-gradient(circle at 7px 3px, var(--brick-yellow) 2px, transparent 2.5px);
    background-size: 14px 6px;
    background-repeat: repeat-x;
    margin-bottom: 0.25rem;
    flex-basis: 100%;
}

.sb-consent-banner .sb-consent-text {
    flex: 1 1 260px;
    color: rgba(255, 255, 255, 0.9);
}

.sb-consent-banner .sb-consent-text strong {
    color: #fff;
}

.sb-consent-banner .sb-consent-text a {
    color: var(--brick-yellow);
    text-decoration: underline;
}

.sb-consent-banner .sb-consent-actions {
    display: flex;
    gap: 0.5rem;
    flex: 0 0 auto;
}

.sb-consent-btn {
    border-radius: var(--radius-pill);
    border: 1.5px solid transparent;
    padding: 0.4rem 1rem;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    font-family: inherit;
}

.sb-consent-btn.sb-consent-accept {
    background: var(--brick-yellow);
    color: var(--sb-ink);
}

.sb-consent-btn.sb-consent-accept:hover {
    background: var(--brick-yellow-deep);
    color: var(--sb-ink);
}

.sb-consent-btn.sb-consent-decline {
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.35);
}

.sb-consent-btn.sb-consent-decline:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

/* ----------------------------------------- legal pages slight typography */

.theme-studio[data-bs-theme="light"] .legal-page p,
.theme-studio[data-bs-theme="light"] .legal-page li {
    color: var(--sb-ink-soft);
    line-height: 1.65;
}

.theme-studio[data-bs-theme="light"] .legal-page h2 {
    margin-top: 1.5rem;
}

/* ----------------------------------------- product detail media (zoom + toggle) */

.product-media {
    position: relative;
}

.media-frame {
    position: relative;
    aspect-ratio: 4 / 3;
    border: 1.5px solid var(--sb-line);
    border-radius: var(--radius-card);
    overflow: hidden;
    background: var(--sb-cream-strong);
}

.media-pane {
    position: absolute;
    inset: 0;
    display: none;
}

.media-pane.is-active {
    display: block;
}

.media-pane .carousel,
.media-pane .carousel-inner {
    width: 100%;
    height: 100%;
}

.media-pane .carousel-item {
    height: 100%;
}

.media-pane img,
.media-pane video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--sb-cream-strong);
}

.media-pane.media-video video {
    object-fit: contain;
    background: #000;
}

.media-zoom-target {
    cursor: zoom-in;
    user-select: none;
    -webkit-user-drag: none;
}

.media-toggle {
    display: inline-flex;
    gap: 4px;
    margin-top: 14px;
    padding: 4px;
    background: var(--sb-cream-strong);
    border: 1px solid var(--sb-line);
    border-radius: var(--radius-pill);
}

.media-toggle-btn {
    border: 0;
    background: transparent;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--sb-muted);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.media-toggle-btn:hover {
    color: var(--sb-ink);
}

.media-toggle-btn.is-active {
    background: var(--brick-red);
    color: #fff;
    box-shadow: 0 2px 0 var(--brick-red-deep);
}

.media-toggle-btn.is-active:hover {
    color: #fff;
}

/* Zoom lens — sits to the right of the frame on desktop, hidden everywhere else. */
.zoom-lens {
    position: absolute;
    top: 0;
    left: calc(100% + 16px);
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 1.5px solid var(--sb-line);
    border-radius: var(--radius-card);
    background-color: var(--sb-cream-strong);
    background-repeat: no-repeat;
    box-shadow: var(--shadow-card-hover);
    display: none;
    pointer-events: none;
    z-index: 5;
}

@media (hover: hover) and (min-width: 992px) {
    .zoom-lens.is-visible {
        display: block;
    }
}

/* Lightbox overlay */
.sb-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(28, 31, 37, 0.92);
    z-index: 1090;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.sb-lightbox.is-open {
    display: flex;
}

.sb-lightbox img {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.sb-lightbox-btn {
    position: absolute;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease;
}

.sb-lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.sb-lightbox-close {
    top: 18px;
    right: 18px;
}

.sb-lightbox-prev {
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
}

.sb-lightbox-next {
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
}

.sb-lightbox-counter {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.85);
    font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}

body.sb-lightbox-open {
    overflow: hidden;
}
