/* ═══════════════════════════════════════════════════════════════
   ARKAIA SHOP — Original dark gaming e-commerce theme
   ═══════════════════════════════════════════════════════════════ */

[v-cloak] { display: none; }

body {
    background:
        radial-gradient(circle at 10% -10%, rgba(34, 211, 238, 0.08), transparent 50%),
        radial-gradient(circle at 90% 110%, rgba(168, 85, 247, 0.07), transparent 50%),
        #070912;
}

/* ─── Top nav ─── */
.nav-link {
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #94a3b8;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
}
.nav-link:hover { background: rgba(34, 211, 238, 0.08); color: #e6ebf5; }
.nav-link.active {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(168, 85, 247, 0.15));
    color: #67e8f9;
    box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.3);
}

.cart-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.3);
    color: #67e8f9;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all .15s;
}
.cart-btn:hover {
    background: rgba(34, 211, 238, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(34, 211, 238, 0.25);
}
.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, #a855f7, #c084fc);
    color: #070912;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* ─── Hero ─── */
.hero {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(135deg, #0e1320, #14192a);
    border: 1px solid #1c2438;
    padding: 60px 40px;
    min-height: 320px;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(34, 211, 238, 0.18), transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(168, 85, 247, 0.15), transparent 45%);
    z-index: 1;
}
.hero-pill {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(34, 211, 238, 0.15);
    border: 1px solid rgba(34, 211, 238, 0.35);
    color: #67e8f9;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
}
.hero-title {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-top: 16px;
}
.hero-gradient {
    background: linear-gradient(90deg, #22d3ee, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-sub {
    font-size: 16px;
    color: #94a3b8;
    margin-top: 16px;
    max-width: 540px;
    line-height: 1.6;
}

.section-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* ─── Category cards ─── */
.category-card {
    background: rgba(14, 19, 32, 0.6);
    border: 1px solid #1c2438;
    border-radius: 14px;
    padding: 20px 16px;
    cursor: pointer;
    transition: all .18s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}
.category-card:hover {
    background: rgba(14, 19, 32, 1);
    border-color: rgba(34, 211, 238, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px -10px rgba(34, 211, 238, 0.25);
}
.category-icon { font-size: 32px; margin-bottom: 8px; }
.category-name { font-size: 13px; font-weight: 700; color: #e6ebf5; }
.category-count { font-size: 11px; color: #7888a5; margin-top: 2px; }

/* ─── Product grid + cards ─── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 18px;
}
.product-card {
    background: linear-gradient(180deg, #0e1320, #0a0e18);
    border: 1px solid #1c2438;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    border-color: rgba(34, 211, 238, 0.4);
    transform: translateY(-4px);
    box-shadow:
        0 16px 36px -8px rgba(0, 0, 0, 0.5),
        0 0 24px -4px rgba(34, 211, 238, 0.25);
}
.product-image {
    position: relative;
    aspect-ratio: 4 / 3;
    background:
        radial-gradient(circle at 50% 40%, rgba(34, 211, 238, 0.08), transparent 65%),
        linear-gradient(135deg, #14192a, #0a0e18);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}
.product-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform .4s;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
}
.product-card:hover .product-image img { transform: scale(1.06); }
.product-placeholder {
    font-size: 56px;
    opacity: 0.4;
}
.product-tags {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.tag {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.tag-new      { background: rgba(34, 197, 94, 0.85); color: #03240f; }
.tag-featured { background: rgba(168, 85, 247, 0.9); color: #0d0617; }
.tag-sale     { background: rgba(239, 68, 68, 0.9); color: #1d0606; }

.product-body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; }
.product-category {
    font-size: 10.5px;
    font-weight: 700;
    color: #22d3ee;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.product-name {
    font-size: 15px;
    font-weight: 700;
    color: #e6ebf5;
    margin-top: 4px;
    letter-spacing: -0.01em;
}
.product-desc {
    font-size: 12px;
    color: #7888a5;
    margin-top: 4px;
    line-height: 1.5;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    gap: 10px;
}
.product-price {
    font-family: "JetBrains Mono", monospace;
    font-size: 17px;
    font-weight: 800;
    color: #67e8f9;
}
.btn-add {
    padding: 7px 12px;
    background: rgba(34, 211, 238, 0.12);
    border: 1px solid rgba(34, 211, 238, 0.35);
    color: #67e8f9;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
}
.btn-add:hover {
    background: #22d3ee;
    color: #070912;
    transform: translateY(-1px);
}

/* ─── Buttons ─── */
.btn-primary {
    padding: 12px 24px;
    background: linear-gradient(135deg, #22d3ee, #a855f7);
    color: #070912;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
    box-shadow: 0 6px 20px rgba(34, 211, 238, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(34, 211, 238, 0.5);
}
.btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.btn-secondary {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e6ebf5;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(34, 211, 238, 0.4); }

.btn-checkout {
    padding: 14px;
    background: linear-gradient(135deg, #22d3ee, #a855f7);
    color: #070912;
    border: none;
    border-radius: 10px;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    transition: all .2s;
    box-shadow: 0 8px 24px rgba(34, 211, 238, 0.35);
}
.btn-checkout:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(34, 211, 238, 0.55);
}
.btn-checkout:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ─── Empty state ─── */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #7888a5;
}

/* ─── Product modal ─── */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(7, 9, 18, 0.85);
    backdrop-filter: blur(8px);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-card {
    position: relative;
    background: linear-gradient(180deg, #0e1320, #0a0e18);
    border: 1px solid #1c2438;
    border-radius: 20px;
    padding: 28px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.7);
}
.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #1c2438;
    color: #7888a5;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    transition: all .15s;
}
.modal-close:hover { background: rgba(239, 68, 68, 0.15); color: #ef4444; border-color: rgba(239, 68, 68, 0.4); }
.modal-image {
    aspect-ratio: 1 / 1;
    background:
        radial-gradient(circle at 50% 40%, rgba(34, 211, 238, 0.1), transparent 65%),
        linear-gradient(135deg, #14192a, #0a0e18);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.modal-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.5));
}

.modal-enter-active, .modal-leave-active { transition: all .25s; }
.modal-enter-from, .modal-leave-to { opacity: 0; }
.modal-enter-from > .modal-card, .modal-leave-to > .modal-card { transform: scale(0.95); }

/* ─── Product detail page (WASD-style) ─── */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #7888a5;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.breadcrumb a { color: #7888a5; transition: color .15s; }
.breadcrumb a:hover { color: #22d3ee; }
.breadcrumb-sep { color: #3a4663; }
.breadcrumb-current { color: #e6ebf5; font-weight: 600; }

.product-detail {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    animation: productFadeIn .35s cubic-bezier(0.4, 0, 0.2, 1);
}
@media (min-width: 900px) {
    .product-detail { grid-template-columns: 5fr 4fr; gap: 48px; }
}
@keyframes productFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-detail-image {
    position: relative;
    aspect-ratio: 1 / 1;
    background:
        radial-gradient(circle at 50% 35%, rgba(34, 211, 238, 0.12), transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(168, 85, 247, 0.08), transparent 60%),
        linear-gradient(135deg, #14192a, #0a0e18);
    border: 1px solid #1c2438;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    isolation: isolate;
}
.product-detail-image-glow {
    position: absolute;
    inset: -30%;
    background: radial-gradient(circle at 50% 50%, rgba(34, 211, 238, 0.18), transparent 50%);
    filter: blur(60px);
    z-index: -1;
    animation: glowPulse 4s ease-in-out infinite;
}
@keyframes glowPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}
.product-detail-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 12px 36px rgba(0, 0, 0, 0.55));
    animation: productImgIn .5s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes productImgIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}
.product-detail-image .product-placeholder {
    font-size: 120px;
    opacity: 0.3;
}

/* ─── Galerie / Slider produit ─── */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(14, 19, 32, 0.85);
    border: 1px solid #1c2438;
    color: #e6ebf5;
    font-size: 28px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .15s;
    backdrop-filter: blur(8px);
    z-index: 2;
    opacity: 0;
}
.product-detail-image:hover .gallery-nav { opacity: 1; }
.gallery-nav:hover {
    background: #22d3ee;
    color: #070912;
    border-color: #22d3ee;
}
.gallery-nav-prev { left: 12px; }
.gallery-nav-next { right: 12px; }
.gallery-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    padding: 4px 10px;
    background: rgba(14, 19, 32, 0.85);
    border: 1px solid #1c2438;
    border-radius: 99px;
    font-size: 11px;
    font-family: 'JetBrains Mono', monospace;
    color: #a0adc7;
    backdrop-filter: blur(8px);
    z-index: 2;
}
.gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0;
    scrollbar-width: thin;
}
.gallery-thumbs::-webkit-scrollbar { height: 6px; }
.gallery-thumbs::-webkit-scrollbar-thumb { background: #1c2438; border-radius: 3px; }
.gallery-thumb {
    flex: 0 0 84px;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    border: 2px solid #1c2438;
    background: #0a0e18;
    overflow: hidden;
    cursor: pointer;
    padding: 6px;
    transition: all .15s;
}
.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.gallery-thumb:hover { border-color: rgba(34, 211, 238, 0.5); }
.gallery-thumb.active {
    border-color: #22d3ee;
    box-shadow: 0 0 0 1px #22d3ee, 0 0 20px -4px rgba(34, 211, 238, 0.5);
}
@media (max-width: 640px) {
    .gallery-nav { opacity: 1; width: 36px; height: 36px; font-size: 22px; }
    .gallery-thumb { flex-basis: 64px; }
}

.product-detail-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.product-detail-category {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #22d3ee;
}
.product-detail-title {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin: 0;
}
.product-detail-short {
    color: #a0adc7;
    font-size: 15px;
    line-height: 1.5;
}
.product-detail-price-box {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(168, 85, 247, 0.04));
    border: 1px solid rgba(34, 211, 238, 0.18);
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}
.product-detail-price-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7888a5;
}
.product-detail-price {
    font-family: 'JetBrains Mono', monospace;
    font-size: 36px;
    font-weight: 900;
    color: #22d3ee;
    letter-spacing: -0.01em;
}

.product-detail-actions {
    display: flex;
    gap: 10px;
    align-items: stretch;
    flex-wrap: wrap;
}
.qty-selector {
    display: inline-flex;
    align-items: center;
    background: #0a0e18;
    border: 1px solid #1c2438;
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
}
.qty-selector .qty-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #e6ebf5;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all .15s;
}
.qty-selector .qty-btn:hover { background: rgba(34, 211, 238, 0.12); color: #22d3ee; }
.qty-selector .qty-display {
    min-width: 28px;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 15px;
}

.product-detail-features {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13px;
    color: #a0adc7;
}
.product-detail-features li {
    display: flex;
    align-items: center;
    gap: 10px;
}
.product-detail-features .feature-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.2);
    color: #22d3ee;
    font-size: 14px;
}

.product-detail-description {
    margin-top: 56px;
    padding: 32px;
    background: linear-gradient(180deg, #0e1320, #0a0e18);
    border: 1px solid #1c2438;
    border-radius: 20px;
    color: #a0adc7;
    line-height: 1.7;
    font-size: 14.5px;
}
.product-detail-description .section-title { margin-bottom: 16px; }

/* ─── Cart drawer ─── */
.cart-overlay {
    position: fixed; inset: 0;
    background: rgba(7, 9, 18, 0.7);
    backdrop-filter: blur(4px);
    z-index: 50;
}
.cart-drawer {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 100%;
    max-width: 460px;
    background: linear-gradient(180deg, #0e1320, #0a0e18);
    border-left: 1px solid #1c2438;
    display: flex;
    flex-direction: column;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
}
.cart-header {
    padding: 18px 22px;
    border-bottom: 1px solid #1c2438;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cart-body { flex: 1; overflow-y: auto; padding: 12px 22px; }
.cart-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 14px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(28, 36, 56, 0.5);
}
.cart-row:last-child { border-bottom: none; }
.cart-row-info { min-width: 0; }
.cart-row-controls { display: flex; align-items: center; gap: 4px; }
.cart-row-total {
    font-family: "JetBrains Mono", monospace;
    font-weight: 700;
    color: #67e8f9;
}
.qty-btn {
    width: 26px;
    height: 26px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #1c2438;
    color: #e6ebf5;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all .12s;
}
.qty-btn:hover { background: rgba(34, 211, 238, 0.15); border-color: #22d3ee; color: #22d3ee; }
.qty-display {
    font-family: "JetBrains Mono", monospace;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
    font-size: 13px;
}

.cart-footer {
    padding: 18px 22px;
    border-top: 1px solid #1c2438;
    background: rgba(10, 14, 24, 0.5);
}
.checkout-input { margin-bottom: 10px; }
.checkout-input label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #7888a5;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.checkout-input input {
    width: 100%;
    background: #070912;
    border: 1px solid #1c2438;
    color: #e6ebf5;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-family: "JetBrains Mono", monospace;
    transition: all .15s;
}
.checkout-input input:focus { outline: none; border-color: #22d3ee; box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15); }

.drawer-enter-active, .drawer-leave-active { transition: opacity .25s; }
.drawer-enter-from, .drawer-leave-to { opacity: 0; }
.drawer-enter-active .cart-drawer, .drawer-leave-active .cart-drawer { transition: transform .3s cubic-bezier(0.4, 0, 0.2, 1); }
.drawer-enter-from .cart-drawer, .drawer-leave-to .cart-drawer { transform: translateX(100%); }

/* ─── Toasts ─── */
.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 10px;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid;
    min-width: 200px;
}
.toast-success { background: rgba(34, 197, 94, 0.18); border-color: rgba(34, 197, 94, 0.5); color: #86efac; }
.toast-error   { background: rgba(239, 68, 68, 0.18); border-color: rgba(239, 68, 68, 0.5); color: #fca5a5; }
.toast-info    { background: rgba(34, 211, 238, 0.18); border-color: rgba(34, 211, 238, 0.5); color: #a5f3fc; }
.toast-enter-active, .toast-leave-active { transition: all .3s cubic-bezier(0.4, 0, 0.2, 1); }
.toast-enter-from { opacity: 0; transform: translateX(40px); }
.toast-leave-to   { opacity: 0; transform: translateX(40px); }

/* ─── Scrollbars ─── */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #1c2438; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #2a3354; }
