/**
 * ScarletBeast Theme — Main Stylesheet
 * Modern · Contemporary · Scarlet × Black × White
 * Programming-Inspired Design Language
 */

/* ============================================================
   GOOGLE FONTS IMPORT
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Rajdhani:wght@300;400;500;600;700&family=Barlow:ital,wght@0,300;0,400;0,500;0,600;1,400&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
    /* Brand */
    --scarlet:          #CC1A1A;
    --scarlet-dark:     #991212;
    --scarlet-deep:     #6B0A0A;
    --scarlet-light:    #FF2D2D;
    --scarlet-glow:     rgba(204, 26, 26, 0.2);
    --scarlet-muted:    rgba(204, 26, 26, 0.08);

    /* Blacks */
    --black-pure:       #000000;
    --black-rich:       #0A0A0A;
    --black-deep:       #111111;
    --black-surface:    #181818;
    --black-elevated:   #1E1E1E;
    --black-card:       #242424;
    --black-border:     #2E2E2E;

    /* Whites */
    --white:            #FFFFFF;
    --white-off:        #F8F8F8;
    --white-muted:      #E0E0E0;
    --white-dim:        #BBBBBB;

    /* Code */
    --code-green:       #4EC94E;
    --code-blue:        #569CD6;
    --code-yellow:      #DCDCAA;
    --code-orange:      #CE9178;
    --code-purple:      #C586C0;
    --code-cyan:        #4FC1FF;
    --code-comment:     #6A9955;

    /* Typography */
    --font-display:     'Bebas Neue', Impact, sans-serif;
    --font-heading:     'Rajdhani', 'Barlow Condensed', sans-serif;
    --font-body:        'Barlow', 'Helvetica Neue', Arial, sans-serif;
    --font-mono:        'JetBrains Mono', 'Fira Code', monospace;

    /* Layout */
    --container-max:    1440px;
    --container-wide:   1280px;

    /* Motion */
    --ease-out:         cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out:      cubic-bezier(0.45, 0, 0.55, 1);
}

/* ============================================================
   GLOBAL RESET & BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--black-deep);
    color: var(--white-off);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 0.5em;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

h1 { font-family: var(--font-display); font-size: clamp(42px, 8vw, 96px); letter-spacing: 0.04em; }
h2 { font-size: clamp(28px, 4vw, 52px); }
h3 { font-size: clamp(20px, 3vw, 36px); }
h4 { font-size: 22px; }
h5 { font-size: 18px; }
h6 { font-size: 16px; font-family: var(--font-mono); text-transform: none; letter-spacing: 0; }

p { margin-bottom: 1.2em; color: var(--white-dim); }

a {
    color: var(--scarlet);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover { color: var(--scarlet-light); }

strong, b { font-weight: 600; color: var(--white); }
em, i { font-style: italic; }

code, pre, .mono {
    font-family: var(--font-mono);
    font-size: 0.88em;
}

code {
    background: var(--black-card);
    color: var(--code-green);
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid var(--black-border);
}

pre {
    background: var(--black-rich);
    border: 1px solid var(--black-border);
    border-left: 3px solid var(--scarlet);
    padding: 20px 24px;
    overflow-x: auto;
    border-radius: 4px;
    line-height: 1.7;
}

/* ============================================================
   PROGRAMMING DECORATIVE ELEMENTS
   ============================================================ */

/* Bracket accents for headings */
.sb-title-bracket::before {
    content: '< ';
    color: var(--scarlet);
    font-family: var(--font-mono);
    font-size: 0.7em;
    opacity: 0.8;
}

.sb-title-bracket::after {
    content: ' />';
    color: var(--scarlet);
    font-family: var(--font-mono);
    font-size: 0.7em;
    opacity: 0.8;
}

/* Hash prefix for section labels */
.sb-label-hash::before {
    content: '# ';
    color: var(--code-comment);
    font-family: var(--font-mono);
    font-size: 0.85em;
}

/* Code-comment styled descriptor */
.sb-comment {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--code-comment);
    display: block;
    margin-bottom: 8px;
}
.sb-comment::before { content: '// '; }

/* Terminal prompt */
.sb-terminal-prompt::before {
    content: '$ ';
    color: var(--scarlet);
    font-family: var(--font-mono);
}

/* ============================================================
   SCARLET ACCENTS & DECORATORS
   ============================================================ */
.sb-accent-line {
    display: inline-block;
    width: 60px;
    height: 3px;
    background: var(--scarlet);
    margin-bottom: 20px;
}

.sb-accent-line-lg {
    display: block;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--scarlet) 0%, transparent 100%);
    margin: 40px 0;
}

.sb-section-tag {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--scarlet);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
}
.sb-section-tag::before { content: '<'; margin-right: 4px; }
.sb-section-tag::after { content: '>'; margin-left: 4px; }

/* ============================================================
   CONTAINER
   ============================================================ */
.page-wrapper {
    background-color: var(--black-deep);
    overflow-x: hidden;
}

.page-main {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   HEADER
   ============================================================ */
.page-header {
    background: var(--black-pure);
    border-bottom: 1px solid var(--black-border);
    position: sticky;
    top: 0;
    z-index: 900;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.page-header .header.content {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.logo img {
    max-height: 48px;
    width: auto;
    filter: brightness(1);
    transition: filter 0.2s ease;
}

.logo:hover img {
    filter: brightness(0) saturate(100%) invert(14%) sepia(97%) saturate(6000%) hue-rotate(0deg) brightness(90%);
}

.logo strong {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--white);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.logo strong span {
    color: var(--scarlet);
}

/* Header announcement bar */
.sb-header-notice {
    background: var(--scarlet);
    padding: 8px 24px;
    text-align: center;
}

.sb-header-notice p {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--white);
    letter-spacing: 0.05em;
}

/* Navigation */
.navigation {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

.navigation ul li a,
.navigation .level0 > a {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--white-muted);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 8px 14px;
    border-radius: 3px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    display: block;
}

.navigation ul li a:hover,
.navigation .level0 > a:hover,
.navigation .level0.active > a {
    color: var(--scarlet);
    border-color: var(--black-border);
    background: var(--scarlet-muted);
}

/* Submenu */
.navigation .submenu {
    background: var(--black-pure);
    border: 1px solid var(--black-border);
    border-top: 2px solid var(--scarlet);
    padding: 8px 0;
    min-width: 220px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
}

.navigation .submenu a {
    font-size: 14px;
    padding: 10px 20px;
    border: none;
    border-radius: 0;
}

/* Header icons */
.header.content .header-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header.content .action.showcart,
.header.content .block-search .action.search,
.minicart-wrapper .action.showcart {
    color: var(--white-dim);
    background: transparent;
    border: 1px solid var(--black-border);
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.header.content .action.showcart:hover,
.minicart-wrapper .action.showcart:hover {
    color: var(--scarlet);
    border-color: var(--scarlet);
    background: var(--scarlet-muted);
}

.minicart-wrapper .counter.qty {
    background: var(--scarlet);
    color: var(--white);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    font-family: var(--font-mono);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Search */
.block-search .field.search .control {
    background: var(--black-elevated);
    border: 1px solid var(--black-border);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    transition: border-color 0.2s;
}

.block-search .field.search .control:focus-within {
    border-color: var(--scarlet);
}

.block-search input[type="text"] {
    background: transparent;
    border: none;
    color: var(--white);
    font-family: var(--font-mono);
    font-size: 14px;
    padding: 10px 16px;
    width: 260px;
    outline: none;
}

.block-search input[type="text"]::placeholder {
    color: var(--white-dim);
    font-style: italic;
}
.block-search input[type="text"]::placeholder::before {
    content: 'search> ';
    color: var(--code-green);
}

/* ============================================================
   HERO — FULL-BLEED HOMEPAGE BANNERS
   ============================================================ */
.sb-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 700px;
    max-height: 1000px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    background: var(--black-pure);
}

.sb-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    opacity: 0.6;
    transition: transform 8s ease, opacity 0.8s ease;
}

.sb-hero:hover .sb-hero__image {
    transform: scale(1.04);
}

.sb-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        var(--black-pure) 0%,
        rgba(0,0,0,0.7) 40%,
        rgba(0,0,0,0.3) 70%,
        transparent 100%
    );
}

.sb-hero__overlay-scarlet {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(204, 26, 26, 0.12) 0%,
        transparent 60%
    );
}

/* Code-scan lines overlay */
.sb-hero__scanlines {
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.03) 2px,
        rgba(0,0,0,0.03) 4px
    );
    pointer-events: none;
    z-index: 2;
}

.sb-hero__content {
    position: relative;
    z-index: 10;
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 48px 80px;
    width: 100%;
}

.sb-hero__eyebrow {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--scarlet);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: block;
    opacity: 0;
    transform: translateY(10px);
    animation: sb-fade-up 0.6s var(--ease-out) 0.3s forwards;
}

.sb-hero__eyebrow::before { content: '/** '; }
.sb-hero__eyebrow::after { content: ' */'; }

.sb-hero__title {
    font-family: var(--font-display);
    font-size: clamp(56px, 10vw, 130px);
    font-weight: 400;
    line-height: 0.92;
    color: var(--white);
    margin: 0 0 24px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
    animation: sb-fade-up 0.8s var(--ease-out) 0.5s forwards;
}

.sb-hero__title em {
    color: var(--scarlet);
    font-style: normal;
}

.sb-hero__subtitle {
    font-family: var(--font-heading);
    font-size: clamp(16px, 2.5vw, 22px);
    font-weight: 400;
    color: var(--white-dim);
    max-width: 600px;
    margin: 0 0 40px;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(20px);
    animation: sb-fade-up 0.8s var(--ease-out) 0.7s forwards;
}

.sb-hero__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    animation: sb-fade-up 0.8s var(--ease-out) 0.9s forwards;
}

/* Hero scroll indicator */
.sb-hero__scroll {
    position: absolute;
    bottom: 32px;
    right: 48px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
    animation: sb-fade-in 1s ease 1.5s forwards;
}

.sb-hero__scroll span {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--white-dim);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
}

.sb-hero__scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--scarlet), transparent);
    animation: sb-scroll-line 2s ease infinite;
}

/* ============================================================
   BANNER GRID — HOMEPAGE FEATURED IMAGES
   ============================================================ */
.sb-banner-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto;
    gap: 3px;
    margin: 3px 0;
}

/* Large featured banner */
.sb-banner-grid .sb-banner--xl {
    grid-column: span 8;
    grid-row: span 2;
    min-height: 600px;
}

.sb-banner-grid .sb-banner--tall {
    grid-column: span 4;
    min-height: 298px;
}

.sb-banner-grid .sb-banner--wide {
    grid-column: span 6;
    min-height: 360px;
}

.sb-banner-grid .sb-banner--medium {
    grid-column: span 4;
    min-height: 240px;
}

/* Banner cell */
.sb-banner {
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none;
    background: var(--black-card);
    cursor: pointer;
}

.sb-banner img,
.sb-banner .sb-banner__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease-out), opacity 0.4s ease;
    opacity: 0.85;
}

.sb-banner:hover img,
.sb-banner:hover .sb-banner__img {
    transform: scale(1.06);
    opacity: 1;
}

.sb-banner__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%);
    transition: opacity 0.4s;
}

.sb-banner:hover .sb-banner__overlay {
    opacity: 0.7;
}

.sb-banner__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    z-index: 2;
    transform: translateY(6px);
    transition: transform 0.4s var(--ease-out);
}

.sb-banner:hover .sb-banner__content {
    transform: translateY(0);
}

.sb-banner__tag {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--scarlet);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
    opacity: 0.9;
}

.sb-banner__title {
    font-family: var(--font-display);
    font-size: clamp(24px, 3vw, 42px);
    color: var(--white);
    line-height: 1;
    text-transform: uppercase;
    margin: 0;
}

/* Scarlet border on hover */
.sb-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid var(--scarlet);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 5;
}

.sb-banner:hover::after {
    opacity: 0.6;
}

/* ============================================================
   FULL-WIDTH STATEMENT BANNER
   ============================================================ */
.sb-statement-banner {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--black-pure);
    margin: 3px 0;
}

.sb-statement-banner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    filter: grayscale(100%);
}

.sb-statement-banner__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    mix-blend-mode: multiply;
}

.sb-statement-banner__content {
    position: relative;
    z-index: 2;
    padding: 40px 24px;
    max-width: 900px;
}

.sb-statement-banner__code-decoration {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--scarlet);
    margin-bottom: 24px;
    opacity: 0.8;
}

.sb-statement-banner__title {
    font-family: var(--font-display);
    font-size: clamp(48px, 8vw, 110px);
    color: var(--white);
    line-height: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0 0 24px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.action.primary,
.sb-btn,
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 14px 28px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    border: 2px solid transparent;
    line-height: 1;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

/* Primary */
.action.primary,
.sb-btn--primary {
    background: var(--scarlet);
    color: var(--white);
    border-color: var(--scarlet);
}

.action.primary:hover,
.sb-btn--primary:hover {
    background: var(--scarlet-light);
    border-color: var(--scarlet-light);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(204, 26, 26, 0.35);
}

.action.primary:active,
.sb-btn--primary:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Outline */
.sb-btn--outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white-muted);
}

.sb-btn--outline:hover {
    border-color: var(--scarlet);
    color: var(--scarlet);
    background: var(--scarlet-muted);
}

/* Ghost */
.sb-btn--ghost {
    background: transparent;
    color: var(--white-dim);
    border-color: var(--black-border);
}

.sb-btn--ghost:hover {
    color: var(--white);
    border-color: var(--white-muted);
    background: var(--black-elevated);
}

/* Code-style button */
.sb-btn--code {
    background: var(--black-card);
    color: var(--code-green);
    border-color: var(--black-border);
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0;
}

.sb-btn--code::before { content: '> '; color: var(--scarlet); }

.sb-btn--code:hover {
    border-color: var(--code-green);
    background: var(--black-elevated);
}

/* ============================================================
   PRODUCT GRID
   ============================================================ */
.catalog-category-view .page-title-wrapper h1,
.catalogsearch-result-index .page-title-wrapper h1 {
    font-family: var(--font-display);
    font-size: 64px;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 60px 0 32px;
    position: relative;
}

.catalog-category-view .page-title-wrapper h1::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--scarlet);
    margin-top: 16px;
}

/* Product items grid */
.products.wrapper.grid .products.list .item.product {
    background: var(--black-card);
    border: 1px solid var(--black-border);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s var(--ease-out);
    position: relative;
}

.products.wrapper.grid .products.list .item.product:hover {
    border-color: var(--scarlet);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 0 1px var(--scarlet);
}

/* Product image */
.product-image-wrapper {
    position: relative;
    overflow: hidden;
    background: var(--black-surface);
}

.product-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.item.product:hover .product-image-wrapper::after {
    opacity: 1;
}

.product-image-photo {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s var(--ease-out);
    filter: brightness(0.92) contrast(1.05);
}

.item.product:hover .product-image-photo {
    transform: scale(1.05);
}

/* Product card info */
.product-item-info {
    padding: 0;
}

.product-item-details {
    padding: 16px 20px 20px;
    background: var(--black-card);
    position: relative;
}

.product-item-details::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(90deg, var(--scarlet) 0%, transparent 100%);
    opacity: 0.5;
}

.product-item-name {
    margin-bottom: 8px;
}

.product-item-name a {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--white-off);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.3;
    transition: color 0.2s;
    display: block;
}

.product-item-name a:hover {
    color: var(--scarlet);
}

/* Price */
.price-box {
    margin-bottom: 16px;
}

.price-box .price {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 700;
    color: var(--scarlet);
    letter-spacing: -0.02em;
}

.price-box .old-price .price {
    color: var(--white-dim);
    font-size: 14px;
    text-decoration: line-through;
}

/* Product badges */
.product-label {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
}

.product-label span {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 10px;
    border-radius: 2px;
}

.product-label .label-new { background: var(--scarlet); color: var(--white); }
.product-label .label-sale { background: var(--black-pure); color: var(--scarlet); border: 1px solid var(--scarlet); }

/* Add to cart */
.product-item-actions .action.tocart.primary {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 2px;
}

/* ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */
.catalog-product-view .page-title-wrapper h1 {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 68px);
    color: var(--white);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.catalog-product-view .product.media {
    background: var(--black-surface);
    border-radius: 4px;
    overflow: hidden;
}

.catalog-product-view .product-info-main {
    padding-left: 40px;
}

/* Breadcrumbs */
.breadcrumbs {
    background: transparent;
    padding: 16px 0;
}

.breadcrumbs .item {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--white-dim);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.breadcrumbs .item a {
    color: var(--white-dim);
}
.breadcrumbs .item a:hover { color: var(--scarlet); }
.breadcrumbs .item.last { color: var(--scarlet); }

.breadcrumbs .item + .item::before {
    content: ' / ';
    color: var(--black-border);
    font-family: var(--font-mono);
}

/* ============================================================
   HOMEPAGE SECTIONS
   ============================================================ */

/* Code-themed feature section */
.sb-features {
    padding: 100px 24px;
    max-width: var(--container-wide);
    margin: 0 auto;
}

.sb-features__header {
    text-align: center;
    margin-bottom: 64px;
}

.sb-features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2px;
}

.sb-feature-card {
    background: var(--black-card);
    border: 1px solid var(--black-border);
    padding: 40px 32px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.sb-feature-card::before {
    content: attr(data-line-number);
    position: absolute;
    top: 16px;
    left: 16px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--black-border);
    letter-spacing: 0.05em;
}

.sb-feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--scarlet);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s var(--ease-out);
}

.sb-feature-card:hover {
    border-color: var(--scarlet);
    background: var(--black-elevated);
    transform: translateY(-2px);
}

.sb-feature-card:hover::after {
    transform: scaleY(1);
}

.sb-feature-card__icon {
    font-size: 36px;
    margin-bottom: 20px;
    display: block;
    font-family: var(--font-mono);
    color: var(--scarlet);
}

.sb-feature-card__title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.sb-feature-card__desc {
    font-size: 14px;
    color: var(--white-dim);
    line-height: 1.7;
    margin: 0;
    font-family: var(--font-body);
}

/* ============================================================
   MARQUEE / TICKER
   ============================================================ */
.sb-ticker {
    background: var(--black-pure);
    border-top: 1px solid var(--black-border);
    border-bottom: 1px solid var(--black-border);
    padding: 14px 0;
    overflow: hidden;
    position: relative;
}

.sb-ticker::before,
.sb-ticker::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
}

.sb-ticker::before {
    left: 0;
    background: linear-gradient(to right, var(--black-pure), transparent);
}

.sb-ticker::after {
    right: 0;
    background: linear-gradient(to left, var(--black-pure), transparent);
}

.sb-ticker__track {
    display: flex;
    gap: 0;
    animation: sb-marquee 30s linear infinite;
    white-space: nowrap;
    width: max-content;
}

.sb-ticker__item {
    display: flex;
    align-items: center;
    gap: 0;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--white-dim);
    padding: 0 32px;
    letter-spacing: 0.05em;
}

.sb-ticker__item .dot {
    width: 4px;
    height: 4px;
    background: var(--scarlet);
    border-radius: 50%;
    margin-left: 32px;
    flex-shrink: 0;
}

/* ============================================================
   PARALLAX SPLIT SECTION
   ============================================================ */
.sb-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 70vh;
}

.sb-split__visual {
    position: relative;
    overflow: hidden;
    background: var(--black-surface);
}

.sb-split__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(30%);
    transition: transform 0.8s var(--ease-out), filter 0.4s;
}

.sb-split__visual:hover img {
    transform: scale(1.04);
    filter: grayscale(0%);
}

.sb-split__visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent 70%, var(--black-deep) 100%);
}

.sb-split__content {
    background: var(--black-deep);
    padding: 80px 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sb-split__code-block {
    background: var(--black-rich);
    border: 1px solid var(--black-border);
    border-left: 3px solid var(--scarlet);
    border-radius: 4px;
    padding: 20px 24px;
    margin-top: 32px;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.8;
    color: var(--white-dim);
    position: relative;
}

.sb-split__code-block::before {
    content: attr(data-filename);
    position: absolute;
    top: -1px;
    left: -1px;
    background: var(--scarlet);
    color: var(--white);
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 3px 0 3px 0;
    letter-spacing: 0.08em;
}

.sb-split__code-block .kw { color: var(--code-purple); }
.sb-split__code-block .fn { color: var(--code-yellow); }
.sb-split__code-block .str { color: var(--code-orange); }
.sb-split__code-block .num { color: var(--code-green); }
.sb-split__code-block .cm { color: var(--code-comment); font-style: italic; }
.sb-split__code-block .cls { color: var(--code-blue); }

/* ============================================================
   TESTIMONIALS / REVIEWS
   ============================================================ */
.sb-reviews {
    background: var(--black-surface);
    padding: 100px 24px;
    border-top: 1px solid var(--black-border);
    border-bottom: 1px solid var(--black-border);
}

.sb-review-card {
    background: var(--black-card);
    border: 1px solid var(--black-border);
    padding: 32px;
    border-radius: 4px;
    position: relative;
    transition: border-color 0.3s;
}

.sb-review-card:hover {
    border-color: var(--scarlet);
}

.sb-review-card::before {
    content: '"';
    font-family: var(--font-display);
    font-size: 120px;
    color: var(--scarlet);
    opacity: 0.15;
    position: absolute;
    top: -16px;
    left: 20px;
    line-height: 1;
}

.sb-review-card__rating {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.sb-review-card__star {
    color: var(--scarlet);
    font-size: 16px;
}

.sb-review-card__text {
    font-size: 15px;
    color: var(--white-dim);
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.sb-review-card__author {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar .block {
    background: var(--black-card);
    border: 1px solid var(--black-border);
    border-radius: 4px;
    padding: 24px;
    margin-bottom: 16px;
}

.sidebar .block-title strong {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--scarlet);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    display: block;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--black-border);
    margin-bottom: 16px;
}

.sidebar .block-title strong::before {
    content: '> ';
    color: var(--code-comment);
    font-family: var(--font-mono);
}

.sidebar .item a {
    font-size: 14px;
    color: var(--white-dim);
    text-decoration: none;
    padding: 6px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 0.2s;
    border-bottom: 1px solid var(--black-border);
}

.sidebar .item a:hover { color: var(--scarlet); }

/* ============================================================
   FORMS
   ============================================================ */
.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="tel"],
.field input[type="number"],
.field select,
.field textarea {
    background: var(--black-elevated);
    border: 1px solid var(--black-border);
    color: var(--white-off);
    font-family: var(--font-mono);
    font-size: 14px;
    padding: 12px 16px;
    border-radius: 3px;
    width: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    -webkit-appearance: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--scarlet);
    box-shadow: 0 0 0 3px var(--scarlet-glow);
}

.field label {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    color: var(--white-dim);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 8px;
    display: block;
}

.field label::before {
    content: '// ';
    color: var(--code-comment);
    font-family: var(--font-mono);
}

/* ============================================================
   FOOTER
   ============================================================ */
.page-footer {
    background: var(--black-rich);
    border-top: 1px solid var(--black-border);
    padding: 0;
}

.sb-footer-top {
    padding: 80px 24px 60px;
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 48px;
}

.sb-footer-brand .logo-text {
    font-family: var(--font-display);
    font-size: 42px;
    color: var(--white);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: block;
}

.sb-footer-brand .logo-text em {
    color: var(--scarlet);
    font-style: normal;
}

.sb-footer-brand p {
    font-size: 14px;
    color: var(--white-dim);
    max-width: 300px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.sb-footer-brand .sb-social {
    display: flex;
    gap: 8px;
}

.sb-footer-brand .sb-social a {
    width: 36px;
    height: 36px;
    background: var(--black-card);
    border: 1px solid var(--black-border);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-dim);
    font-family: var(--font-mono);
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
}

.sb-footer-brand .sb-social a:hover {
    color: var(--scarlet);
    border-color: var(--scarlet);
    background: var(--scarlet-muted);
}

.sb-footer-col h4 {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--scarlet);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--black-border);
    font-weight: 400;
}

.sb-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sb-footer-col ul li {
    margin-bottom: 8px;
}

.sb-footer-col ul li a {
    font-size: 14px;
    color: var(--white-dim);
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sb-footer-col ul li a::before {
    content: '→';
    color: var(--scarlet);
    font-family: var(--font-mono);
    font-size: 12px;
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.2s;
}

.sb-footer-col ul li a:hover {
    color: var(--white);
}

.sb-footer-col ul li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.sb-footer-bottom {
    background: var(--black-pure);
    padding: 20px 24px;
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.sb-footer-bottom p {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--white-dim);
    margin: 0;
    opacity: 0.6;
}

.sb-footer-bottom p span { color: var(--scarlet); }

/* ============================================================
   CART & CHECKOUT
   ============================================================ */
.cart-container .cart-summary {
    background: var(--black-card);
    border: 1px solid var(--black-border);
    border-radius: 4px;
    padding: 24px;
}

.cart-container .cart-summary .summary.title {
    font-family: var(--font-display);
    font-size: 32px;
    color: var(--white);
    text-transform: uppercase;
    margin-bottom: 20px;
}

.cart.table-wrapper .cart.items tbody tr {
    border-bottom: 1px solid var(--black-border);
}

.cart.table-wrapper td {
    padding: 20px 16px;
    vertical-align: middle;
}

/* ============================================================
   MESSAGES & ALERTS
   ============================================================ */
.message {
    padding: 14px 20px;
    border-radius: 3px;
    font-family: var(--font-mono);
    font-size: 13px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-left: 3px solid;
}

.message::before {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.message.success {
    background: rgba(78, 201, 78, 0.08);
    border-color: var(--code-green);
    color: var(--code-green);
}

.message.success::before { content: '[OK]'; }

.message.error {
    background: rgba(204, 26, 26, 0.1);
    border-color: var(--scarlet);
    color: var(--scarlet-light);
}

.message.error::before { content: '[ERR]'; }

.message.notice,
.message.info {
    background: rgba(86, 156, 214, 0.08);
    border-color: var(--code-blue);
    color: var(--code-blue);
}

.message.notice::before,
.message.info::before { content: '[INFO]'; }

.message.warning {
    background: rgba(220, 220, 170, 0.08);
    border-color: var(--code-yellow);
    color: var(--code-yellow);
}

.message.warning::before { content: '[WARN]'; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pages .pages-items {
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 40px 0;
    padding: 0;
}

.pages .pages-items .item a,
.pages .pages-items .item.current strong {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 400;
    border: 1px solid var(--black-border);
    border-radius: 3px;
    text-decoration: none;
    color: var(--white-dim);
    background: var(--black-card);
    transition: all 0.2s;
}

.pages .pages-items .item a:hover {
    border-color: var(--scarlet);
    color: var(--scarlet);
    background: var(--scarlet-muted);
}

.pages .pages-items .item.current strong {
    background: var(--scarlet);
    border-color: var(--scarlet);
    color: var(--white);
}

/* ============================================================
   FILTERS / LAYERED NAV
   ============================================================ */
.filter-title strong {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--scarlet);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.filter-options-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 12px 0;
    border-bottom: 1px solid var(--black-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.filter-options-item .item a {
    font-size: 14px;
    color: var(--white-dim);
    text-decoration: none;
    padding: 6px 0;
    display: block;
    transition: color 0.2s;
}

.filter-options-item .item a:hover { color: var(--scarlet); }

/* ============================================================
   HOMEPAGE — CATEGORY GRID
   ============================================================ */
.sb-category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
    margin: 3px 0;
}

.sb-category-tile {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    display: block;
    text-decoration: none;
    background: var(--black-surface);
}

.sb-category-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(40%) brightness(0.7);
    transition: all 0.6s var(--ease-out);
}

.sb-category-tile:hover img {
    filter: grayscale(0%) brightness(0.85);
    transform: scale(1.08);
}

.sb-category-tile__label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    z-index: 2;
}

.sb-category-tile__label h3 {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--white);
    margin: 0 0 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sb-category-tile__label .count {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--scarlet);
    letter-spacing: 0.1em;
}

/* Left border accent on hover */
.sb-category-tile::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--scarlet);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s var(--ease-out);
    z-index: 5;
}

.sb-category-tile:hover::before {
    transform: scaleY(1);
}

/* ============================================================
   NEWSLETTER SECTION
   ============================================================ */
.sb-newsletter {
    background: var(--black-pure);
    padding: 80px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--black-border);
    border-bottom: 1px solid var(--black-border);
}

.sb-newsletter::before {
    content: 'SUBSCRIBE();';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: 200px;
    color: var(--white);
    opacity: 0.015;
    white-space: nowrap;
    pointer-events: none;
    letter-spacing: 0.05em;
}

.sb-newsletter h2 {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 72px);
    color: var(--white);
    margin-bottom: 12px;
}

.sb-newsletter p {
    color: var(--white-dim);
    font-size: 16px;
    max-width: 480px;
    margin: 0 auto 32px;
}

.sb-newsletter__form {
    display: flex;
    max-width: 480px;
    margin: 0 auto;
    gap: 0;
    border: 1px solid var(--black-border);
    border-radius: 3px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.sb-newsletter__form:focus-within {
    border-color: var(--scarlet);
}

.sb-newsletter__form input {
    flex: 1;
    background: var(--black-elevated);
    border: none;
    padding: 14px 20px;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--white-off);
    outline: none;
}

.sb-newsletter__form button {
    background: var(--scarlet);
    color: var(--white);
    border: none;
    padding: 14px 24px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.sb-newsletter__form button:hover {
    background: var(--scarlet-light);
}

/* ============================================================
   LOADING SPINNER
   ============================================================ */
.loading-mask,
._block-content-loading {
    background: rgba(0,0,0,0.85);
}

.loading-mask .loader img {
    display: none;
}

.loading-mask .loader::after {
    content: '';
    width: 36px;
    height: 36px;
    border: 2px solid var(--black-border);
    border-top-color: var(--scarlet);
    border-radius: 50%;
    animation: sb-spin 0.7s linear infinite;
    display: block;
    margin: 0 auto;
}

/* ============================================================
   TOOLTIPS
   ============================================================ */
[data-sb-tooltip] {
    position: relative;
}

[data-sb-tooltip]::after {
    content: attr(data-sb-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--black-card);
    border: 1px solid var(--black-border);
    color: var(--white-off);
    font-family: var(--font-mono);
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 3px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 100;
}

[data-sb-tooltip]:hover::after {
    opacity: 1;
}

/* ============================================================
   KEYFRAME ANIMATIONS
   ============================================================ */
@keyframes sb-fade-up {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes sb-fade-in {
    to { opacity: 0.5; }
}

@keyframes sb-spin {
    to { transform: rotate(360deg); }
}

@keyframes sb-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes sb-scroll-line {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(0.6); }
}

@keyframes sb-cursor-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes sb-glow-pulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--scarlet-glow); }
    50% { box-shadow: 0 0 20px 5px var(--scarlet-glow); }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-scarlet   { color: var(--scarlet) !important; }
.text-white     { color: var(--white) !important; }
.text-dim       { color: var(--white-dim) !important; }
.text-mono      { font-family: var(--font-mono) !important; }
.text-display   { font-family: var(--font-display) !important; }
.text-heading   { font-family: var(--font-heading) !important; }
.bg-black       { background: var(--black-pure) !important; }
.bg-surface     { background: var(--black-surface) !important; }
.bg-card        { background: var(--black-card) !important; }
.border-scarlet { border-color: var(--scarlet) !important; }
.sr-only        { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .sb-banner-grid .sb-banner--xl { grid-column: span 12; min-height: 55vh; }
    .sb-banner-grid .sb-banner--tall { grid-column: span 6; }
    .sb-banner-grid .sb-banner--wide { grid-column: span 6; }
    .sb-banner-grid .sb-banner--medium { grid-column: span 4; }
    .sb-split { grid-template-columns: 1fr; }
    .sb-split__visual { height: 50vw; }
    .sb-split__content { padding: 60px 32px; }
    .sb-footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
    .sb-category-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .page-header .header.content { height: 60px; }
    .navigation { display: none; }
    .sb-hero { height: 90vh; }
    .sb-hero__content { padding: 0 24px 60px; }
    .sb-banner-grid { grid-template-columns: 1fr; }
    .sb-banner-grid .sb-banner--xl,
    .sb-banner-grid .sb-banner--tall,
    .sb-banner-grid .sb-banner--wide,
    .sb-banner-grid .sb-banner--medium {
        grid-column: span 1;
        min-height: 60vw;
    }
    .sb-category-grid { grid-template-columns: repeat(2, 1fr); }
    .sb-footer-top { grid-template-columns: 1fr; }
    .sb-footer-bottom { flex-direction: column; text-align: center; }
    .sb-features__grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .sb-category-grid { grid-template-columns: 1fr; }
    .sb-hero__title { font-size: clamp(42px, 14vw, 72px); }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
    body { background: white; color: black; }
    .page-header, .page-footer, .sidebar, .sb-ticker { display: none; }
    .page-main { max-width: 100%; padding: 0; }
}
