: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;
    filter: grayscale(100%);
}

.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;
    /* Occupa lo spazio rimanente */
    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;
}

.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;
}
