:root {
    --k-red: #ff0033;
    --k-blue: #2563eb;
    --k-black: #050505;
    --k-green: #16a34a;
    --k-gray: #111111;
    --accent-color: var(--k-red);
    --accent-glow: rgba(255, 0, 51, 0.2);
    --accent-rgb: 255, 0, 51;
    --hover-color: var(--k-red);
    --hover-glow: rgba(255, 0, 51, 0.4);
}

body {
    background-color: var(--k-black);
    color: #ffffff;
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 400;
    margin: 0;
    overflow-x: hidden;
}

html.no-scroll,
body.no-scroll {
    overflow: hidden;
}

.popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.popup[hidden] {
    display: none !important;
}

.popup-scroll-cont {
    position: relative;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 40px 16px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.popup-content {
    position: relative;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 1.5rem;
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75);
}

.store-product-options {
    max-width: 720px;
    margin: 0 auto;
}

.store-product-options .product-title {
    margin: 0 0 1.25rem;
    font-size: 1.8rem;
    font-style: italic;
    text-transform: uppercase;
    line-height: 1.2;
}

.store-form-options .field {
    margin-bottom: 1rem;
}

.store-form-options .field p {
    margin: 0 0 0.5rem;
    color: #d1d5db;
    line-height: 1.4;
}

.store-form-options input[type="text"],
.store-form-options input[type="number"],
.store-form-options select {
    width: 100%;
    min-height: 44px;
    padding: 0.65rem 0.8rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    outline: none;
}

.store-form-options input[type="text"]:focus,
.store-form-options input[type="number"]:focus,
.store-form-options select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.2);
}

.store-form-options .field-inline {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.store-form-options .actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-top: 1.15rem;
}

.store-form-options .btn-primary,
.store-form-options .btn-secondary,
.store-form-options .link-text {
    min-height: 42px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    cursor: pointer;
    border: none;
}

.store-form-options .btn-primary {
    background: var(--accent-color);
    color: #fff;
}

.store-form-options .btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.store-form-options .link-text {
    color: #fff;
    text-decoration: underline;
    padding-left: 0;
    padding-right: 0;
}

.recent-purchases-only .widget:not(.widget-recent) {
    display: none;
}

.popup.login-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;

    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);

    overflow-y: auto;
}

.popup.login-popup .popup-scroll-cont {
    position: relative;
    min-height: 100%;
    padding: 40px 16px;
}

.popup.login-popup .login-popup-content {
    position: absolute;
    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    width: 100%;
    max-width: 420px;
}

.popup-close {
    position: absolute;
    top: 14px;
    right: 14px;

    width: 32px;
    height: 32px;

    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    border: none;

    font-size: 0;
    cursor: pointer;

    transition: background 0.2s ease, transform 0.2s ease;
}

.popup-close::after {
    content: "✕";
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(1.05);
}

.popup-close:hover::after {
    color: #fff;
}

.recent-purchases-only .widget-recent {
    max-width: 100%;
    background: transparent;
    border: none;
}

.recent-purchases-only .widget-title {
    display: none;
}

.hero-bg-video {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: -1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    pointer-events: none;
}

h1,
h2,
h3,
.title-font {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

#katana-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

#hero-section {
    position: relative;
    z-index: 1;
}

.hero-bg-video {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.site {
    padding-top: 80px;
}

.sidebar.open {
    transform: translateX(0);
}

header,
.site-header {
    position: relative;
    z-index: 999;
}

footer,
.site-footer {
    position: relative;
    z-index: 10;
}

.relative-z {
    position: relative;
    z-index: 10;
}

.filter-btn {
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

.filter-btn.active {
    background: rgba(var(--accent-rgb), 0.15);
    color: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 12px var(--accent-glow);
}

.filter-btn:hover {
    color: var(--hover-color);
}

.katana-card {
    background: var(--k-gray);
    border: 1px solid rgba(255, 255, 255, 0.05);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.katana-card:hover {
    border-color: var(--card-hover-color, var(--k-red)) !important;
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    background: #161616;
}

.btn-katana {
    background-color: var(--accent-color);
    color: white;
    padding: 0 20px;
    font-weight: 700;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-align: center;
    line-height: 1;
    height: 44px;
    border: none;
}

.btn-katana.btn-secondary {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.6);
}

.btn-katana:hover {
    background-color: var(--hover-color);
    filter: brightness(1.2);
    transform: skewX(-3deg) translateY(-2px);
    box-shadow: 0 10px 20px var(--hover-glow);
    color: white;
}

.katana-border-left {
    border-left: 4px solid var(--accent-color);
    padding-left: 1rem;
    transition: border-color 0.3s ease;
}

.text-accent {
    color: var(--accent-color);
    transition: color 0.3s ease;
}

.bg-accent {
    background-color: var(--accent-color);
    transition: background-color 0.3s ease;
}

.nav-link {
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    position: relative;
    transition: color 0.3s ease;
    cursor: pointer;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav-link:hover {
    color: var(--hover-color);
}

.nav-link:hover::after {
    width: 100%;
    background: var(--hover-color);
}

.lang-btn,
.curr-btn {
    font-weight: 700;
    font-size: 0.75rem;
    color: #888;
    transition: all 0.3s ease;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.lang-btn.active,
.curr-btn.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.search-container {
    position: relative;
    max-width: 400px;
    width: 100%;
}

.search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 20px 12px 45px;
    font-family: 'Chakra Petch', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.8rem;
    clip-path: polygon(5% 0, 100% 0, 100% 70%, 95% 100%, 0 100%, 0 30%);
    transition: all 0.3s ease;
    outline: none;
}

.search-input:focus {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 15px var(--accent-glow);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color);
    pointer-events: none;
    transition: color 0.3s ease;
}

.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-video-slide {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-video-slide iframe {
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.77vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0.7) 0%, rgba(5, 5, 5, 0.5) 50%, rgba(5, 5, 5, 1) 100%);
    z-index: 1;
}

#mobile-menu,
#info-modal {
    position: fixed;
    z-index: 100;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}


#info-modal {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%) scale(0.95);
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 100px rgba(0, 0, 0, 1);
    opacity: 0;
    pointer-events: none;
    overflow-y: auto;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%);
}

#info-modal.open {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
    padding: 2rem;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 90;
    display: none;
}

.social-icon {
    height: 24px;
    width: 24px;
    fill: #ffffff;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.social-icon-wrapper:hover .social-icon {
    fill: var(--accent-color);
    opacity: 1;
    transform: scale(1.1);
}

.payment-icon-min {
    height: 18px;
    width: auto;
    fill: rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
}

.payment-icon-min:hover {
    fill: var(--accent-color);
    filter: drop-shadow(0 0 5px var(--accent-glow));
}

.purchase-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

.purchase-row:hover {
    background: rgba(var(--accent-rgb), 0.05);
}

.purchase-slash {
    width: 4px;
    height: 24px;
    background: var(--accent-color);
    transform: skewX(-20deg);
    transition: background-color 0.3s ease;
}

.footer-link {
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--accent-color);
    padding-left: 4px;
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: #050505;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
}

@media (max-width: 640px) {
    .btn-katana {
        min-width: 100px;
        padding: 0 12px;
        font-size: 10px;
        height: 40px;
    }

    h1 {
        font-size: 2.8rem !important;
    }
}






.katana-login-container {
    width: 100%;
    color: #ffffff;
    font-family: sans-serif;
    padding: 1rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.katana-login-header {
    border-left: 4px solid #ff0033;
    padding-left: 1rem;
    margin-bottom: 0.5rem;
}

.katana-login-title {
    font-size: 1.75rem;
    line-height: 1.2;
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    margin: 0;
    color: #ffffff;
}

.katana-login-subtitle {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #888;
    margin-top: 0.25rem;
    letter-spacing: 0.1em;
}

.katana-form-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.katana-input {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 1rem;
    font-size: 0.9rem;
    box-sizing: border-box;
    outline: none;
    transition: all 0.3s ease;
}

.katana-input:focus {
    border-color: #ff0033;
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(255, 0, 51, 0.15);
}

.katana-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Bottoni */
.btn-katana-primary {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background-color: #ff0033;
    color: #ffffff;
    border: none;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.btn-katana-primary:hover {
    background-color: #cc0029;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 0, 51, 0.3);
}









.basket-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    z-index: 9998;
}

.basket-popup-content {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 100%;
    height: 100vh;
    background: linear-gradient(180deg, #0c0c0c 0%, #070707 100%);
    border-left: 2px solid var(--accent-color);
    box-shadow: -25px 0 60px rgba(0, 0, 0, 0.9);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    flex-direction: column;
}

.basket-popup:not([hidden]) .basket-popup-content {
    transform: translateX(0);
}

.basket {
    display: flex;
    flex-direction: column;
    height: 100%;
}


.basket-container {
    width: 100%;
    color: #ffffff;
    font-family: 'Chakra Petch', sans-serif;
    /* Coerente con il font globale */
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Occupa tutta l'altezza disponibile nel sidebar */
}

/* Header del carrello */
.basket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    /* p-6 */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    /* border-white/10 */
}

.header-content {
    /* Utilizziamo la classe globale .katana-border-left se possibile, 
       altrimenti la ricreiamo qui per isolamento */
    border-left: 4px solid var(--accent-color, #ff0033);
    padding-left: 1rem;
    transition: border-color 0.3s ease;
}

.basket-title {
    font-size: 1.5rem;
    /* text-2xl */
    line-height: 2rem;
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: -0.025em;
    /* tracking-tight */
    margin: 0;
}

.basket-count {
    font-size: 10px;
    /* text-[10px] */
    color: var(--accent-color, #ff0033);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    /* tracking-[0.3em] */
    margin-top: 0.25rem;
    margin-bottom: 0;
}

/* Bottone di chiusura */
.btn-close-basket {
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    /* text-gray-500 */
    transition: all 0.3s ease;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close-basket:hover {
    color: #ffffff;
    /* hover:text-white (o accent come preferisci) */
}

.icon-svg {
    width: 1.5rem;
    /* w-6 */
    height: 1.5rem;
    /* h-6 */
}

/* Corpo del carrello */
.basket-body {
    padding: 1.5rem;
    /* p-6 */
    display: flex;
    flex-direction: column;
    gap: 1rem;
    /* space-y-4 (circa) */
    flex-grow: 1;
    overflow-y: auto;
    /* Permette lo scroll se ci sono molti item */
}

.empty-cart-message {
    padding: 2.5rem 0;
    /* py-10 */
    text-align: center;
    color: #6b7280;
    /* text-gray-500 */
    /* text-center py-10 nel HTML originale */
}

/* Item del carrello */
.basket-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    /* p-4 */
    background-color: rgba(255, 255, 255, 0.05);
    /* bg-white/5 */
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* border-white/5 */
    margin-bottom: 0.5rem;
    /* mb-2 */
}

.item-info {
    display: flex;
    flex-direction: column;
    /* gap non specificato nel HTML originale per gli item, ma utile */
}

.item-name {
    font-size: 0.75rem;
    /* text-xs */
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
}

.item-price {
    font-size: 0.75rem;
    /* text-xs */
    font-weight: 700;
    color: var(--accent-color, #ff0033);
    /* text-accent */
    /* Nota: nel JS originale c'è logica per items free (blue) vs paid (red) */
    margin: 0;
}

.btn-remove-item {
    background: none;
    border: none;
    cursor: pointer;
    color: #4b5563;
    /* text-gray-600 */
    transition: color 0.2s ease;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove-item:hover {
    color: #ef4444;
    /* hover:text-red-500 */
}

.icon-svg-sm {
    width: 1rem;
    /* w-4 */
    height: 1rem;
    /* h-4 */
}

.basket-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(0, 0, 0, 0.5);
    margin-top: auto;
    margin-bottom: max(24px, env(safe-area-inset-bottom));
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.total-label {
    color: #9ca3af;
    font-weight: 700;
}

.total-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color, #ff0033);
}

.btn-checkout-action {
    width: 100%;
    min-width: 100%;
    font-style: italic;
    font-weight: 700;
}

/* Product cards: defined once globally instead of once per package. */
.card-image-wrapper { position: relative; display: block; aspect-ratio: 16/9; margin: .75rem; overflow: hidden; border: 1px solid rgba(255,255,255,.1); }
.card-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; cursor: pointer; transition: transform .25s ease; }
.card-image-wrapper:hover .card-image { transform: scale(1.03); }
.card-overlay { position: absolute; inset: 0; background: linear-gradient(to top,rgba(0,0,0,.8),rgba(0,0,0,.3),transparent); pointer-events: none; }
.card-badge { position: absolute; z-index: 10; top: .75rem; right: .75rem; padding: .25rem .75rem; color: #fff; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.card-sale-badge { position: absolute; z-index: 11; top: .75rem; left: .75rem; padding: .3rem .65rem; color: #fff; background: var(--k-red); font-size: .68rem; font-weight: 800; letter-spacing: .04em; }
.card-content { display: flex; flex: 1; flex-direction: column; padding: 0 1rem 1rem; }
.card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; margin: .75rem 0 .25rem; }
.card-title { margin: 0; font-size: 18px; line-height: 1.25; font-weight: 700; font-style: italic; text-transform: uppercase; }
.card-price { font-size: .875rem; font-weight: 700; white-space: nowrap; }
.card-price-sale { display: flex; align-items: flex-end; flex-direction: column; gap: .15rem; }
.card-price-original { color: #737373; font-size: .72rem; line-height: 1; text-decoration: line-through; }
.card-framework { display: inline-block; width: fit-content; margin-bottom: .5rem; padding: .25rem .5rem; color: #9ca3af; border: 1px solid rgba(255,255,255,.1); font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.card-description { display: -webkit-box; max-height: calc(1.45em * 4); margin: 0 0 1rem; overflow: hidden; color: #9ca3af; font-size: 14px; line-height: 1.45; white-space: pre-line; word-break: break-word; -webkit-line-clamp: 4; -webkit-box-orient: vertical; line-clamp: 4; }
.card-actions { display: flex; gap: .5rem; margin-top: auto; }
.btn-card-main { flex: 1; font-size: 12px; }
.btn-card-info, .btn-card-info-page { padding-right: 1rem; padding-left: 1rem; font-size: 12px; }

/* Product page */
.product-page { width: min(1240px, calc(100% - 32px)); margin: 0 auto; padding: 44px 0 80px; position: relative; z-index: 2; }
.product-back { display: inline-flex; gap: .7rem; align-items: center; margin-bottom: 28px; color: #fff; text-decoration: none; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.product-back svg { width: 26px; height: 26px; fill: none; stroke: var(--k-red,#ff0033); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s ease,filter .18s ease; }
.product-back:hover { color: var(--k-red,#ff0033); }
.product-back:hover svg { transform: translateX(-3px); filter: drop-shadow(0 0 5px rgba(255,0,51,.45)); }
.product-hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, .85fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.product-gallery { min-width: 0; }
.product-description-panel { background: #0d0d0d; border: 1px solid rgba(255,255,255,.09); }
.product-single-media { aspect-ratio: 16/9; background: #080808; overflow: hidden; }
.product-single-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-media-empty { background: radial-gradient(circle at 50% 40%, rgba(var(--accent-rgb),.16), transparent 55%), #090909; }
.product-gallery .media-slider { width: 100%; }
.product-gallery .slider { display: block; aspect-ratio: 16/9; background: #050505; }
.product-gallery .slide-image, .product-gallery .slide-frame { width: 100%; height: 100%; object-fit: cover; }
.product-gallery .thumbs { display: flex; gap: 10px; overflow-x: auto; list-style: none; margin: 12px 0 0; padding: 0 0 4px; }
.product-gallery .thumb { flex: 0 0 108px; aspect-ratio: 16/9; overflow: hidden; border: 1px solid rgba(255,255,255,.12); cursor: pointer; }
.product-gallery .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery .open-lightbox { margin-top: 12px; background: transparent; border: 0; color: #aaa; cursor: pointer; text-transform: uppercase; font-weight: 700; font-size: .7rem; }
.product-native-gallery { width: 100%; }
.product-media-stage { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; background: #070707; border: 1px solid rgba(255,255,255,.1); clip-path: polygon(0 0,100% 0,100% calc(100% - 18px),calc(100% - 18px) 100%,0 100%); }
.product-media-item { display: none; position: absolute; inset: 0; }
.product-media-item.is-active { display: block; }
.product-media-item > img, .product-media-item iframe, .product-video-facade, .product-video-facade > img { width: 100%; height: 100%; border: 0; object-fit: cover; display: block; }
.product-video-facade { position: relative; padding: 0; background: #050505; cursor: pointer; border: 0; }
.product-video-facade::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top,rgba(0,0,0,.38),transparent 55%); }
.product-play-icon { position: absolute; z-index: 2; left: 50%; top: 50%; width: 72px; height: 72px; display: grid; place-items: center; transform: translate(-50%,-50%); background: var(--accent-color); clip-path: polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%); box-shadow: 0 0 35px var(--accent-glow); }
.product-play-icon svg { width: 30px; fill: #fff; }
.product-media-thumbs { display: flex; gap: 14px; margin-top: 14px; overflow-x: auto; padding: 0 0 5px; scrollbar-width: thin; }
.product-media-thumb { position: relative; flex: 0 0 128px; aspect-ratio: 16/9; padding: 0; overflow: hidden; cursor: pointer; border: 1px solid rgba(255,255,255,.12); opacity: .58; background: #080808; clip-path: polygon(0 0,100% 0,100% calc(100% - 8px),calc(100% - 8px) 100%,0 100%); }
.product-media-thumb.is-active { opacity: 1; border: 2px solid var(--accent-color); }
.product-media-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.25); }
.product-buy-panel { padding: 0; position: static; background: transparent; border: 0; }
.product-page-title { margin: 0; font-size: clamp(1.8rem, 3vw, 2.75rem); line-height: 1.05; font-style: italic; }
.product-eyebrow { margin: 7px 0 0; color: var(--accent-color); font-size: .7rem; font-weight: 700; letter-spacing: .14em; }
.product-frameworks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.product-frameworks span { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); color: #ddd; font-size: .65rem; font-weight: 700; text-transform: uppercase; clip-path: polygon(8px 0,100% 0,calc(100% - 8px) 100%,0 100%); }
.framework-dot { width: 6px; height: 6px; display: inline-block; transform: rotate(45deg); }
.dot-blue { background: #3b82f6; } .dot-red { background: #ef4444; } .dot-yellow { background: #eab308; } .dot-white { background: #fff; }
.product-countdown { display: inline-block; margin-top: 20px; color: var(--accent-color); font-weight: 700; }
.product-buy-panel .product-actions { margin-top: 26px; }
.product-buy-panel .price { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 0 0 20px; font-size: 2.25rem; }
.product-buy-panel .price .discount { color: #737373; font-size: 1rem; font-weight: 400; }
.discount-percent { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; color: #fff; background: var(--accent-color); font-size: .68rem; font-weight: 800; clip-path: polygon(8px 0,100% 0,calc(100% - 8px) 100%,0 100%); }
.product-buy-panel .product-actions > a { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; text-transform: uppercase; font-weight: 800; text-decoration: none; }
.product-buy-panel .product-actions > .btn-primary, .product-buy-panel .product-actions > .btn-secondary { box-sizing: border-box; width: 100%; min-height: 48px; padding: 0 25px; border: 0; color: #fff; background: var(--accent-color); font-family: inherit; font-size: .78rem; letter-spacing: .05em; cursor: pointer; clip-path: polygon(12px 0,100% 0,calc(100% - 12px) 100%,0 100%); transition: transform .2s ease,filter .2s ease,box-shadow .2s ease,background-color .2s ease,border-color .2s ease,color .2s ease; }
.product-buy-panel .product-actions > .btn-secondary { background: transparent; border: 1px solid rgba(255,255,255,.2); }
.product-buy-panel .product-actions > .btn-primary:hover { color: #fff; filter: brightness(1.14); transform: translateY(-2px); box-shadow: 0 10px 24px var(--accent-glow); }
.product-buy-panel .product-actions > .btn-secondary:hover { color: #fff; background: rgba(var(--accent-rgb),.12); border-color: var(--accent-color); transform: translateY(-2px); box-shadow: 0 8px 20px var(--accent-glow); }
.product-buy-panel .quantity-field { display: grid; grid-template-columns: 44px 1fr 64px 44px; width: 100%; min-height: 46px; margin-top: 8px; border: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.035); }
.product-buy-panel .quantity-field[hidden], .product-buy-panel .product-actions > [hidden] { display: none !important; }
.product-buy-panel .quantity-field button, .product-buy-panel .quantity-field input { min-width: 0; border: 0; color: #fff; background: transparent; font-family: inherit; font-weight: 700; }
.product-buy-panel .quantity-field .adjust { color: var(--accent-color); cursor: pointer; font-size: 1.1rem; }
.product-buy-panel .quantity-field .open-basket { color: #aaa; text-transform: uppercase; cursor: pointer; }
.product-buy-panel .quantity-field .quantity { width: 100%; text-align: center; border-right: 1px solid rgba(255,255,255,.1); border-left: 1px solid rgba(255,255,255,.1); }
.product-buy-panel .gift { width: 100%; min-height: 42px; margin-top: 9px; color: #aaa; border: 1px solid rgba(255,255,255,.12); background: transparent; cursor: pointer; text-transform: uppercase; transition: transform .2s ease,color .2s ease,border-color .2s ease,background-color .2s ease,box-shadow .2s ease; }
.product-buy-panel .gift:hover { color: var(--accent-color); border-color: var(--accent-color); background: rgba(var(--accent-rgb),.07); transform: translateY(-2px); box-shadow: 0 8px 18px var(--accent-glow); }
.product-trust-list { display: grid; gap: 9px; list-style: none; padding: 20px 0; margin: 24px 0 0; border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); color: #9ca3af; font-size: .69rem; text-transform: uppercase; letter-spacing: .05em; }
.product-trust-list li { display: flex; align-items: center; gap: 9px; }
.product-trust-list svg { width: 16px; height: 16px; fill: none; stroke: var(--accent-color); stroke-width: 1.8; flex: 0 0 auto; }
.product-accordions { display: grid; gap: 8px; margin-top: 20px; }
.product-accordions details { background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.09); }
.product-accordions summary { display: flex; justify-content: space-between; padding: 14px 16px; cursor: pointer; list-style: none; color: #fff; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.product-accordions summary > span { display: flex; align-items: center; gap: 10px; }
.product-accordions summary svg { width: 16px; height: 16px; fill: none; stroke: var(--accent-color); stroke-width: 1.8; }
.product-accordions details[open] summary b { transform: rotate(180deg); }
.product-accordions summary b { transition: transform .2s ease; }
.product-accordions summary::-webkit-details-marker { display: none; }
.product-accordions details p { margin: 0; padding: 0 16px 16px; color: #9ca3af; font-size: .78rem; line-height: 1.55; }
.product-description-panel { position: relative; overflow: hidden; margin-top: 48px; padding: clamp(28px, 5vw, 54px); background: rgba(8,8,8,.82); clip-path: polygon(0 0,100% 0,100% calc(100% - 20px),calc(100% - 20px) 100%,0 100%); }
.product-description-inner { position: relative; z-index: 1; width: min(900px,100%); margin: 0 auto; }
.product-description-glow { position: absolute; width: 260px; height: 260px; right: -80px; top: -100px; background: radial-gradient(circle,var(--accent-glow),transparent 67%); pointer-events: none; }
.product-description-heading { text-align: center; margin: 0 auto 44px; }
.product-description-heading h2 { margin: 8px 0 5px; color: var(--accent-color); font-style: italic; }
.product-description-heading p { margin: 0; color: #9ca3af; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.product-description-heading > svg { width: 34px; fill: none; stroke: var(--accent-color); stroke-width: 1.8; }
.product-detail-section h3 { display: flex; align-items: center; gap: 9px; margin: 0 0 22px; padding-bottom: 12px; color: #fff; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; }
.product-detail-section h3 span { color: var(--accent-color); }
.product-detail-section + .product-detail-section { margin-top: 42px; }
.product-feature-list { display: grid; gap: 17px; margin: 0; padding: 0 !important; list-style: none; color: #c7cbd4; }
.product-feature-list li { display: flex; align-items: flex-start; gap: 14px; }
.product-feature-list i { flex: 0 0 7px; width: 7px; height: 7px; margin-top: 7px; background: var(--accent-color); transform: rotate(45deg); }
.product-feature-list strong { color: #fff; text-transform: uppercase; }
.product-description { color: #c7cbd4; line-height: 1.75; overflow-wrap: anywhere; }
.product-description img { max-width: 100%; height: auto; }
.product-description h1, .product-description h2, .product-description h3, .product-description h4 { margin-top: 32px; color: #fff; font-size: 1rem; letter-spacing: .06em; }
.product-description ul, .product-description ol { display: grid; gap: 12px; padding-left: 20px; }
.product-description li::marker { color: var(--accent-color); }
.product-description a, .product-description a:visited { color: var(--k-red, #ff0033) !important; text-decoration-color: rgba(255,0,51,.55); text-underline-offset: 3px; }
.product-description a:hover { color: #ff4161 !important; text-decoration-color: currentColor; }
.product-accordion-link, .product-accordion-link:visited { color: var(--k-red, #ff0033); font-weight: 700; text-decoration: none; }
.product-accordion-link:hover { color: #ff4161; text-decoration: underline; text-underline-offset: 3px; }
.product-requirements { margin-top: 36px; padding: 22px 24px; background: rgba(0,0,0,.45); border-top: 1px solid rgba(255,255,255,.08); border-right: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); }
.product-requirements h4 { margin: 0 0 10px; text-transform: uppercase; letter-spacing: .08em; }
.product-requirements p { margin: 0 0 16px; color: #9ca3af; font-size: .75rem; text-transform: uppercase; }
.requirements-code { display: inline-grid; gap: 5px; min-width: 210px; padding: 13px 16px; color: var(--accent-color); background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.07); font-family: monospace; }
.product-recent-purchases { margin-top: 70px; }
.product-recent-purchases h2 { margin: 0 0 28px; font-style: italic; }
.product-recent-purchases .recent-purchases-only { position: relative; overflow: hidden; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.07); clip-path: polygon(0 0,100% 0,100% calc(100% - 16px),calc(100% - 16px) 100%,0 100%); }
.product-recent-purchases .payments-widget { border: 0; }
.product-recent-purchases .recent-purchases-only::after { content: ''; position: absolute; right: 2px; bottom: 7px; width: 21px; height: 1px; background: rgba(255,255,255,.13); transform: rotate(-45deg); transform-origin: right center; pointer-events: none; }
.product-discord-banner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; width: min(1240px,calc(100% - 32px)); min-height: 310px; margin: 0 auto 80px; overflow: hidden; background: #0f1013; border: 1px solid rgba(255,255,255,.06); clip-path: polygon(0 0,100% 0,100% calc(100% - 20px),calc(100% - 20px) 100%,0 100%); }
.product-discord-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(30px,5vw,54px); }
.product-discord-copy h2 { margin: 0 0 15px; font-size: clamp(1.6rem,3vw,2.25rem); font-style: italic; }
.product-discord-copy h2 span { color: #5865f2; }
.product-discord-copy p { max-width: 530px; margin: 0 0 28px; color: #9ca3af; line-height: 1.65; font-size: .85rem; font-weight: 600; }
.product-discord-copy small { margin-top: 22px; color: #555b69; text-transform: uppercase; font-size: .58rem; font-weight: 700; }
.product-discord-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 28px; color: #fff; background: #5865f2; text-decoration: none; text-transform: uppercase; font-size: .76rem; font-weight: 800; clip-path: polygon(12px 0,100% 0,calc(100% - 12px) 100%,0 100%); }
.product-discord-btn svg { width: 20px; fill: currentColor; }
.product-discord-art { position: relative; display: grid; place-items: center; overflow: hidden; background-color: #111317; background-image: radial-gradient(rgba(255,255,255,.05) 1px,transparent 1px); background-size: 20px 20px; }
.discord-mark { position: relative; z-index: 2; display: grid; place-items: center; width: 104px; height: 104px; background: #5865f2; clip-path: polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%); box-shadow: 0 0 38px rgba(88,101,242,.38); }
.discord-mark svg { width: 50px; fill: #fff; }
.discord-orbit { position: absolute; width: 205px; height: 205px; border: 1px solid rgba(88,101,242,.28); transform: rotate(45deg); }
.orbit-two { width: 160px; height: 160px; transform: rotate(30deg); border-color: rgba(88,101,242,.15); }

/* Avoid layout/paint work for sections below the fold. */
.k-section, .product-description-panel, .product-recent-purchases, .product-discord-banner, .site-footer { content-visibility: auto; contain-intrinsic-size: auto 600px; }

@media (max-width: 850px) { .product-hero-grid { grid-template-columns: 1fr; } .product-buy-panel { position: static; } .product-discord-banner { grid-template-columns: 1fr; } .product-discord-art { display: none; } }
@media (prefers-reduced-motion: reduce), (max-width: 640px) { #katana-canvas { display: none; } .katana-card, .card-image, .btn-katana { transition-duration: .01ms !important; } }

/* Gift package modal */
.gift-form-popup .popup-scroll-cont { align-items: center; padding: 24px 16px; }
.gift-form-popup .popup-content { position: relative; width: min(100%, 500px); padding: clamp(24px, 5vw, 38px); overflow: hidden; color: #fff; background: linear-gradient(145deg,#111 0%,#090909 72%); border: 1px solid rgba(255,255,255,.12); clip-path: polygon(0 0,100% 0,100% calc(100% - 20px),calc(100% - 20px) 100%,0 100%); box-shadow: 0 28px 80px rgba(0,0,0,.78); }
.gift-form-popup .popup-content::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg,var(--k-red,#ff0033),transparent 72%); }
.gift-form-header { display: flex; align-items: center; gap: 16px; padding-right: 36px; }
.gift-form-icon { display: grid; flex: 0 0 52px; width: 52px; height: 52px; place-items: center; color: #fff; background: rgba(255,0,51,.13); border: 1px solid rgba(255,0,51,.42); clip-path: polygon(10px 0,100% 0,100% calc(100% - 10px),calc(100% - 10px) 100%,0 100%,0 10px); }
.gift-form-icon svg { width: 27px; height: 27px; fill: none; stroke: var(--k-red,#ff0033); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.gift-form-kicker { display: block; margin-bottom: 3px; color: var(--k-red,#ff0033); font-size: .62rem; font-weight: 800; letter-spacing: .2em; }
.gift-form-popup h2 { margin: 0; color: #fff; font-size: clamp(1.45rem,4vw,2rem); line-height: 1.05; font-style: italic; }
.gift-form-intro { margin: 24px 0; color: #9ca3af; font-size: .82rem; line-height: 1.65; }
.gift-form-label { display: block; margin-bottom: 8px; color: #e5e7eb; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.gift-input-wrap { position: relative; }
.gift-input-wrap > svg { position: absolute; z-index: 1; top: 50%; left: 15px; width: 19px; height: 19px; fill: none; stroke: var(--k-red,#ff0033); stroke-width: 1.7; transform: translateY(-50%); pointer-events: none; }
.gift-form-popup input.form-control { box-sizing: border-box; width: 100%; min-height: 52px; padding: 0 16px 0 46px; color: #fff; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.13); border-radius: 0; outline: none; font: 600 .85rem 'Chakra Petch',sans-serif; transition: border-color .18s ease,box-shadow .18s ease,background .18s ease; }
.gift-form-popup input.form-control::placeholder { color: #5d616a; }
.gift-form-popup input.form-control:focus { background: rgba(255,255,255,.065); border-color: var(--k-red,#ff0033); box-shadow: 0 0 0 3px rgba(255,0,51,.12); }
.gift-form-hint { margin: 9px 0 0; color: #60646d; font-size: .65rem; line-height: 1.45; }
.gift-form-popup .actions { margin-top: 24px; }
.gift-form-popup .gift-submit { display: flex; width: 100%; min-height: 50px; align-items: center; justify-content: space-between; padding: 0 22px; color: #fff; background: var(--k-red,#ff0033); border: 0; clip-path: polygon(12px 0,100% 0,calc(100% - 12px) 100%,0 100%); cursor: pointer; font: 800 .76rem 'Chakra Petch',sans-serif; letter-spacing: .08em; text-transform: uppercase; transition: filter .18s ease,transform .18s ease; }
.gift-form-popup .gift-submit:hover { filter: brightness(1.16); transform: translateY(-1px); }
.gift-form-popup .gift-submit b { font-size: 1.15rem; }
.gift-form-popup .actions.updating { opacity: .55; pointer-events: none; }
.gift-form-popup .popup-close { top: 18px; right: 18px; }

@media (max-width: 520px) { .gift-form-popup .popup-content { padding: 24px 20px 28px; } .gift-form-icon { flex-basis: 46px; width: 46px; height: 46px; } }

/* Theme links and button labels never use browser underlines. */
a, a:hover, a:focus, a:active,
button, button:hover, button:focus, button:active {
    text-decoration: none !important;
}
