@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@900&family=Inter:wght@400;600;700;800&display=swap');



@font-face {

    font-family: 'SFPro';

    src: url('../fonts/Unbounded-Light.ttf');

}



html { scroll-behavior: smooth; }



:root {

    --accent: #a100ff;

    --accent-hover: #b633ff;

    --bg: #050505;

    --card-bg: #0d0d0f;

    --border: rgba(255, 255, 255, 0.08);

    --text-main: #ffffff;

    --text-dim: #86868b;

    --error: #ff4b4b;

    --header-bg: rgba(13, 13, 15, 0.7);

    --input-bg: #111;

    --modal-bg: #0a0a0c;

    --separator: #2c2c2e;

}


body.light-theme {
    --bg: #f5f5f7;
    --card-bg: #ffffff;
    --border: rgba(0, 0, 0, 0.1);
    --text-main: #1d1d1f;
    --text-dim: #6e6e73;
    --header-bg: rgba(255, 255, 255, 0.8);
    --input-bg: #f2f2f7;
    --modal-bg: #ffffff;
    --separator: #d2d2d7;
}



body {

    background-color: var(--bg);

    color: var(--text-main);

    font-family: 'SFPro', sans-serif;

    margin: 0;

    overflow-x: hidden;

    transition: background-color 0.3s, color 0.3s;

}



.theme-toggle-fixed {

    position: fixed; top: 25px; right: 25px;

    width: 55px; height: 55px; border-radius: 50%;

    background: var(--header-bg); border: 1px solid var(--border);

    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);

    display: flex; align-items: center; justify-content: center;

    cursor: pointer; color: var(--text-main); z-index: 2001;

    box-shadow: 0 8px 32px rgba(0,0,0,0.2); transition: 0.3s;

}

.theme-toggle-fixed:hover { transform: scale(1.1); }

.theme-toggle-fixed i { font-size: 20px; }





header {

    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);

    width: 90%; max-width: 1000px; height: 65px;

    border-radius: 100px;

    display: flex; align-items: center; justify-content: space-between;

    padding: 0 40px; z-index: 1000;

    background: var(--header-bg);

    backdrop-filter: blur(20px);

    -webkit-backdrop-filter: blur(20px);

    border: 1px solid var(--border);

    box-shadow: 0 10px 30px rgba(0,0,0,0.3);

}



.logo-img { height: 35px; width: auto; object-fit: contain; }

.online-status {
    font-family: 'SFPro', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #2ed573;
    font-size: 13px;
    background: rgba(46, 213, 115, 0.12);
    padding: 8px 18px;
    border-radius: 100px;
}
body.light-theme .online-status {
    background: rgba(30, 174, 96, 0.2);
    color: #1a7f47;
}

.pulse-dot { width: 8px; height: 8px; background: #2ed573; border-radius: 50%; box-shadow: 0 0 10px #2ed573; animation: blink 2s infinite; }

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }



.to-shop-btn { padding: 18px 45px; background: var(--accent); border-radius: 100px; color: white !important; text-decoration: none; font-weight: 700; display: inline-block; transition: 0.3s; }

.to-shop-btn:hover { background: var(--accent-hover); transform: scale(1.05); }



.shop-wrapper {

    display: flex; max-width: 1400px; margin: 100px auto; padding: 0 40px; gap: 50px; align-items: flex-start;

}



.shop-sidebar { width: 260px; flex-shrink: 0; position: sticky; top: 110px; }

.side-label { color: var(--text-dim); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 20px; padding-left: 5px; }



.category-list { display: flex; flex-direction: column; gap: 10px; }

.cat-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 18px 22px;
    border-radius: 20px;
    cursor: pointer;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    font-size: 17px;
    transition: 0.3s;
    font-family: 'SFPro', sans-serif;
}

.cat-item img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.cat-item.active { border-color: var(--accent); color: var(--text-main); background: rgba(161, 0, 255, 0.05); transform: translateX(5px); }



.shop-main { flex-grow: 1; }

.shop-controls-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }

.shop-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
    position: relative;
    display: inline-block;
}
.shop-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #a100ff, #e066ff);
    border-radius: 2px;
}



.search-wrap { background: var(--card-bg); border: 1px solid var(--border); border-radius: 100px; padding: 12px 25px; display: flex; align-items: center; gap: 10px; min-width: 300px; }

.search-wrap input { background: transparent !important; border: none; color: var(--text-main); outline: none; width: 100%; font-family: 'SFPro'; font-size: 14px; }


.items-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: stretch;
    width: 100%;
}


.item-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 12px !important;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s ease;
    box-sizing: border-box;
}
.item-card h3 {
    font-family: 'SFPro', sans-serif !important;
    font-size: 20px !important;
    font-weight: 800;
    color: var(--text-main);
    text-align: center;
    margin: 0 !important;
    padding: 0 5px !important;


    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
    flex-shrink: 0;
}

.item-card.anim-hide { opacity: 0; transform: scale(0.95); }
.item-card.fade-out {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
}
.item-card.fade-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.item-card:hover img {
    transform: scale(1.05);
}
.item-card:hover .img-container {
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(161, 0, 255, 0.1);
}


.item-card .img-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--separator);
    border-radius: 14px;
    overflow: hidden;
    background: var(--input-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: 10px !important;
}
.item-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.item-info-footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-top: auto;
}
.item-card h3 {
    font-family: 'SFPro', sans-serif !important;
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
    text-align: center;
    margin: 0 !important;


    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}


.card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
    margin-top: 4px;
}
.item-price-tag {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
    flex: 1;
}
.buy-btn-small {
    background: var(--accent);
    color: #fff !important;
    border: none;
    height: 40px;
    width: 100px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}
.info-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.buy-btn-small:hover, .info-btn:hover {
    background: var(--accent-hover);
    transform: translateY(1px);
}
.buy-btn-small:hover {
    background: var(--accent-hover);
    transform: scale(1.02);
}




.modal-overlay { display: none; position: fixed; inset: 0; z-index: 3000; background: rgba(0,0,0,0.85); backdrop-filter: blur(15px); align-items: center; justify-content: center; }
.modal-info-box {
    background: var(--modal-bg);
    width: 650px;
    padding: 35px 50px 50px 50px;
    border-radius: 35px;
    border: 1px solid var(--border);
    position: relative;
    display: flex;
    flex-direction: column;
}
.modal-info-box h2 {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 15px 0;
    display: inline-block;
    position: relative;
    padding-bottom: 5px;
    color: var(--text-main);
}
.modal-info-box h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}
.modal-box {
    background: var(--modal-bg);
    width: 850px;
    height: 550px;
    border-radius: 40px;
    display: flex;
    overflow: hidden;
    position: relative;
}

.close-modal-btn { position: absolute; top: 25px; right: 25px; cursor: pointer; color: var(--text-dim); font-size: 22px; z-index: 101; }

.modal-side-img { width: 35%; background: url('../img/bg_modal.png') center/cover; border-right: 1px solid var(--border); }

.modal-steps-container {
    overflow: hidden;
}

.modal-main {
    width: 65%;
    position: relative;
    background: var(--modal-bg);
}

.steps-window {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.steps-slider {
    display: flex;
    width: 200%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.step { width: 50%; height: 100%; padding: 45px; display: flex; flex-direction: column; box-sizing: border-box; }

.step h2 { font-weight: 700; font-size: 28px; margin-bottom: 25px; color: var(--text-main); }

.step {
    width: 50%;
    height: 100%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    flex-shrink: 0;
}

.price-box { background: var(--input-bg); border: 1px solid var(--border); padding: 20px; border-radius: 20px; margin-bottom: 12px; display: flex; justify-content: space-between; cursor: pointer; color: var(--text-main); transition: 0.3s; }
.price-from {
    font-size: 14px  !important;
    color: var(--text-dim);
    font-weight: 400;
    margin-bottom: -17px !important;
}
.main-price {
    font-size: 18px;
    font-weight: 900;
    color: var(--text-main);
}
.main-price-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 32px;
}
.price-box.active { border-color: var(--accent); background: rgba(161, 0, 255, 0.1); }





.info-desc-content {
    color: var(--text-dim);
    font-size: 17px;
    line-height: 1.6;
    white-space: normal;
    overflow-y: auto;
    flex: 1;
    margin-top: 20px;
    font-family: 'SFPro', sans-serif;
}




.input-wrapper { margin-bottom: 15px; width: 100%; }

.input-group { position: relative; width: 100%; }

.input-group i { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 18px; }

.input-field { width: 100%; background: var(--input-bg); border: 1px solid var(--border); padding: 18px 18px 18px 55px; border-radius: 18px; color: var(--text-main); font-family: 'SFPro'; font-size: 15px; box-sizing: border-box; outline: none; transition: 0.3s; }
.input-field.invalid,
.qty-row-new.invalid {
    border-color: var(--error) !important;
}


.error-msg {
    display: none !important;
}

.error-msg.active { opacity: 1; }




.qty-row-new { display: flex; justify-content: space-between; align-items: center; background: var(--input-bg); padding: 0 20px; border-radius: 18px; border: 1px solid var(--border); height: 58px; width: 100%; box-sizing: border-box; }

.qty-icon-label { display: flex; align-items: center; gap: 17px; }
.qty-input-field {
    background: transparent;
    border: none;
    color: var(--text-main);
    width: 45px;
    text-align: center;
    font-size: 18px;
    font-weight: 800;
    outline: none;
    font-family: 'Inter', sans-serif;
}
.qty-icon-label i { color: var(--accent); font-size: 18px; width: 20px; text-align: center; }

.qty-label-text { color: var(--text-dim); font-size: 15px; }

.qty-controls { display: flex; align-items: center; gap: 15px; }

#qty-num { font-weight: 800; font-size: 18px; color: var(--text-main); }

.qty-btn { background: var(--accent); border: none; color: white !important; width: 32px; height: 32px; border-radius: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-weight: bold; }
.qty-btn, .qty-num-input {
    font-family: inherit;
    font-weight: 600;
}
.qty-num-input {
    width: 50px;
    text-align: center;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 18px;
    outline: none;
    position: relative;
}


.modal-footer {
    margin-top: auto;
    padding-top: 15px;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.price-summary {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.summary-value { font-size: 28px; font-weight: 900; }

.pay-btn-final { background: var(--accent); color: white !important; border: none; width: 100%; padding: 22px; border-radius: 22px; font-family: 'SFPro'; font-weight: 700; font-size: 17px; cursor: pointer; transition: 0.3s; }
.step-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    overflow: hidden;
    padding-right: 5px;
}
.payment-input-group {
    margin-bottom: 4px;
    display: flex;
    flex-direction: column;
}
.payment-input-group input {
    border: 2px solid transparent;
    background: var(--input-bg);
    transition: border-color 0.3s ease;
}
.payment-input-group input.invalid,
.qty-input-container.invalid {
    border-color: #ff4d4d !important;
}
.qty-input-container {
    display: flex;
    align-items: center;
    background: var(--input-bg);
    border-radius: 12px;
    padding: 5px;
    border: 2px solid transparent;
    transition: border-color 0.3s;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
}
.qty-input-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.input-wrapper {
    margin-bottom: 6px;
    width: 100%;
}
.qty-underline {
    width: 22px;
    height: 1px;
    background: #86868b;
    margin-top: 4px;
    border-radius: 1px;
    opacity: 0.5;
}
.qty-btn,
.qty-num-input,
.qty-label-text {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif !important;
}

.promo-slider {
    width: 90%;
    max-width: 1400px;
    margin: 110px auto 40px auto;
    padding: 0 40px;
}
.slider-container {
    position: relative;
    width: 100%;
    height: 350px;
    background: var(--card-bg);

    border: 1px solid var(--separator);
    border-radius: 30px;
    overflow: hidden;

    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
    min-width: 100%;
    height: 100%;
}



.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.slider-btn:hover { background: var(--accent); border-color: var(--accent); }
.slider-btn.prev { left: 20px; }
.slider-btn.next { right: 20px; }
.slider-btn.disabled {
    opacity: 0.2;
    cursor: default;
    pointer-events: none;
    filter: grayscale(1);
}
.dot.active.only-one::after {
    animation: none;
    transform: scale(1);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
    align-items: center;
}
.dot {
    width: 40px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    border-color: var(--accent);
    width: 60px;
}


.dot.active::after {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    opacity: 0.5;
    animation: slideProgress 10s linear forwards;
}
.dot.only-one::after {
    display: none !important;
    animation: none !important;
}
.dot.only-one {
    width: 12px;
    height: 12px;
    border-color: var(--text-dim);
}
@keyframes slideProgress {
    0% { left: -100%; }
    100% { left: 0; }
}
@keyframes fillDot {
    from { transform: scale(0); }
    to { transform: scale(1); }
}
#back-btn { text-align: center; margin-top: 15px; cursor: pointer; color: var(--text-dim); font-weight: 600; }
body.dark-theme .info-btn img {
    filter: invert(1) brightness(100%);
}


.info-btn img {
    filter: invert(1) brightness(100%);
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background-color: var(--bg);
}

.badges-container {
    position: absolute;
    top: 10px;
    left: -15px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    z-index: 100;
    pointer-events: none;
}
.badge-item {
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    font-family: 'SFPro', sans-serif;
    background: var(--accent);
    color: white;
}
.discount-badge {
    position: relative;
    display: flex;
    height: 22px;
    width: fit-content;
    border-radius: 6px;
    overflow: hidden;
    font-family: 'SFPro', sans-serif;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);

    order: -1;
}
.discount-left {
    background: rgba(161, 0, 255, 0.4);
    padding: 0 8px;
    display: flex;
    align-items: center;
    font-size: 11px;
    font-weight: 800;
}
.discount-divider {
    width: 2px;
    background: #5e0094;
}
.discount-right {
    background: var(--accent);
    padding: 0 10px;
    display: flex;
    align-items: center;
    font-size: 11px;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
}
.price-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.old-price-label {

    font-size: 17px !important;
    color: var(--text-dim);
    text-decoration: line-through;
    opacity: 0.7;
    font-weight: 500;
    margin-bottom: -17px !important;
}
.price-top-line {
    display: flex;
    align-items: center;
    justify-content: flex-start !important;
    gap: 6px;
    height: 18px;
    margin-top: 5px;
    margin-bottom: -2px !important;
    padding-left: 2px;
}
.price-from, .old-price-label {
    font-size: 11px;
    color: var(--text-dim);
    font-weight: 400;
}
.price-from, .old-price-label, .main-price, .buy-btn-small, .info-btn {
    font-family: 'SFPro', sans-serif !important;
}

/* Mobile Responsiveness */
@media screen and (max-width: 900px) {
    header {
        width: 90%;
        height: auto;
        flex-direction: column;
        padding: 15px 20px;
        gap: 15px;
    }
    
    header nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px !important;
    }

    .shop-wrapper {
        flex-direction: column;
        margin-top: 180px; /* Increased to account for taller header */
        padding: 0 20px;
        gap: 30px;
    }

    .shop-sidebar {
        width: 100%;
        position: static;
        top: 0;
    }

    .category-list {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
        gap: 10px;
        -webkit-overflow-scrolling: touch;
    }

    /* Hide scrollbar for category list */
    .category-list::-webkit-scrollbar {
        height: 6px;
    }
    .category-list::-webkit-scrollbar-track {
        background: transparent;
    }
    .category-list::-webkit-scrollbar-thumb {
        background: var(--border);
        border-radius: 3px;
    }

    .cat-item {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .shop-controls-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .search-wrap {
        width: 100%;
        min-width: unset;
        box-sizing: border-box;
    }

    .shop-title {
        font-size: 28px;
        text-align: center;
        width: 100%;
    }
    .shop-title::after {
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
    }

    .modal-box {
        width: 90%;
        height: auto;
        max-height: 85vh;
        flex-direction: column;
        overflow-y: auto;
    }

    .modal-side-img {
        display: none;
    }

    .modal-main {
        width: 100%;
        height: auto;
        min-height: 400px;
    }

    .step {
        padding: 25px;
    }
    
    .slider-container {
        height: 200px;
    }
}

@media screen and (max-width: 480px) {
    .items-grid {
        grid-template-columns: 1fr;
    }
    
    .promo-slider {
        margin-top: 240px; /* More space for header */
    }

    .shop-wrapper {
        margin-top: 20px;
    }

    .close-modal-btn {
        top: 15px;
        right: 15px;
    }
    
    .modal-info-box {
        width: 90%;
        padding: 25px;
    }
}