:root {
    --primary: #ff7b00;
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --text: #ffffff;
    --text-muted: #888888;
    --gray: #2a2a2a;
    --depth: 4400px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
html::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text);
    overflow-x: hidden;
    height: var(--depth);
    padding-top: 70px;
    padding-bottom: 150px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
body::-webkit-scrollbar {
    display: none;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}
#preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.loader-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255,123,0,0.1);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0); } 100% { transform: rotate(360deg); } }

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(10,10,10,0.95);
    border-bottom: 1px solid rgba(255,123,0,0.1);
    transform: translateZ(0);
    will-change: transform;
}
.logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; flex-shrink: 0; }
.logo img.logo-img { height: 30px; width: auto; }
.logo-text-image {
    height: 26px;
    width: auto;
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.logo:hover .logo-text-image {
    transform: rotate(360deg) scale(1.05);
}
nav ul { display: flex; list-style: none; gap: 1.2rem; margin: 0; padding: 0; }
nav a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    padding: 0.5rem 0;
}
nav a:hover { color: var(--primary); }
nav a.active { color: var(--primary); font-weight: 600; }
nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
}
.lang-switcher { display: flex; gap: 0.5rem; flex-shrink: 0; }
.lang-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.9rem;
}
.lang-btn:hover, .lang-btn.active { background: var(--primary); color: #000; }

@media (max-width: 1150px) {
    header { height: auto; padding: 1rem 3%; flex-wrap: wrap; gap: 1rem; }
    body { padding-top: 140px; }
    nav { width: 100%; order: 3; }
    nav ul { flex-wrap: wrap; justify-content: center; gap: 0.8rem 1.2rem; }
    .logo-img { height: 26px; }
    .logo-text-image { height: 22px; }
}

.container {
    width: 100%;
    height: 100%;
    position: fixed;
    perspective: 1500px;
    top: 0;
    left: 0;
    pointer-events: none;
}
.gallery {
    transform-style: preserve-3d;
    height: 100%;
    width: 100%;
}
.frame {
    width: 100%;
    height: 100%;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    padding: 120px 5% 180px;
    pointer-events: none;
    transform: translateZ(0);
    opacity: 1;
    filter: brightness(1) saturate(1);
}
.frame.active {
    pointer-events: auto;
    opacity: 1;
    filter: brightness(1) saturate(1);
}
.frame.inactive {
    pointer-events: none;
    opacity: 1;
    filter: brightness(1) saturate(1);
}

.product-frame {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1400px;
    width: 100%;
    align-items: center;
}
.product-frame.reverse {
    direction: rtl;
}
.product-frame.reverse > * {
    direction: ltr;
}

.product-visual {
    position: relative;
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1rem;
    border: 1px solid var(--gray);
    overflow: hidden;
    pointer-events: auto;
    transform: translateZ(0);
}
.product-image-wrapper {
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
}
.product-image-wrapper img {
    max-width: 100%;
    max-height: 400px;
    width: auto;
    height: auto;
    display: block;
    border-radius: 8px;
    border: none;
    transition: opacity 0.2s ease;
    object-fit: contain;
    pointer-events: none;
}
.product-image-wrapper.fixed-height {
    height: 400px;
    align-items: center;
}
.product-image-wrapper.fixed-height img {
    max-height: 100%;
    max-width: 100%;
    height: auto;
    width: auto;
}
.product-image-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 5px;
    pointer-events: none;
    z-index: 5;
}
.product-image-nav button {
    pointer-events: auto;
    background: rgba(0,0,0,0.4);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-image-nav button:hover { background: var(--primary); }
.product-color-dots {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 0.8rem;
    flex-wrap: wrap;
    pointer-events: auto;
}
.product-color-dots span {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-block;
    border: 2px solid #444;
    cursor: pointer;
    transition: border-color 0.3s, transform 0.3s;
    pointer-events: auto;
}
.product-color-dots span.active {
    border-color: var(--primary);
    transform: scale(1.15);
}

.product-info {
    pointer-events: auto;
}
.product-info h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}
.product-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}
.product-info p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    user-select: text;
}
.rating {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    user-select: text;
}
.btn-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--primary);
    color: #000;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid var(--primary);
    cursor: pointer;
    pointer-events: auto;
}
.btn:hover {
    background: transparent;
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255,123,0,0.4);
}

.page-header {
    text-align: center;
    max-width: 800px;
    pointer-events: none;
}
.page-header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    user-select: text;
}
.page-header p {
    font-size: 1.3rem;
    color: var(--text-muted);
    user-select: text;
}
.final-frame {
    text-align: center;
    pointer-events: none;
}
.final-frame h2 {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    user-select: text;
}

.custom-scrollbar {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    height: 50vh;
    min-height: 200px;
    width: 40px;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.scroll-track {
    width: 4px;
    height: 100%;
    background: rgba(255,255,255,0.05);
    border-radius: 2px;
    position: relative;
    transition: background 0.3s;
    pointer-events: auto;
}
.scroll-track::before {
    content: '';
    position: absolute;
    top: 0;
    left: -8px;
    width: 20px;
    height: 100%;
    background: repeating-linear-gradient(to bottom, transparent, transparent 19px, rgba(255,123,0,0.15) 20px);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}
.custom-scrollbar:hover .scroll-track { background: rgba(255,255,255,0.1); }
.custom-scrollbar:hover .scroll-track::before { opacity: 1; }
.scroll-thumb {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 12px;
    height: 40px;
    background: var(--primary);
    border-radius: 6px;
    box-shadow: 0 0 15px rgba(255,123,0,0.6), 0 0 30px rgba(255,123,0,0.3);
    cursor: grab;
    transition: height 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    will-change: transform;
    pointer-events: auto;
}
.scroll-thumb:active, .scroll-thumb.dragging {
    cursor: grabbing;
    box-shadow: 0 0 25px rgba(255,123,0,0.9), 0 0 50px rgba(255,123,0,0.5);
    height: 50px;
}
.scroll-thumb::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background: #0a0a0a;
    border-radius: 50%;
    opacity: 0.8;
}
.scroll-thumb::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 20px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    opacity: 0.6;
    border-radius: 2px;
    pointer-events: none;
}
.scroll-percent {
    position: absolute;
    right: 28px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Courier New', monospace;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s cubic-bezier(0.25,0.46,0.45,0.94);
    white-space: nowrap;
    text-shadow: 0 0 8px rgba(255,123,0,0.6);
    pointer-events: none;
}
.custom-scrollbar:hover .scroll-percent { opacity: 1; transform: translateX(0); }
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bg-card);
    border-top: 1px solid var(--gray);
    padding: 2.5rem 5% 1.5rem;
    color: var(--text-muted);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateY(100%);
    transition: transform 0.1s ease-in;
    will-change: transform;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
}
footer.visible {
    transform: translateY(0);
    transition: transform 0.3s ease-out;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    width: 100%;
}
.footer-col {
    min-width: 200px;
}
.footer-col--support { flex: 2; }
.footer-col--buyers,
.footer-col--social { flex: 1; }
.footer-col h3 {
    color: var(--text);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}
.footer-col a:hover { color: var(--primary); }
.footer-col--buyers a { display: block; }
.support-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.3rem 1rem;
}
.footer-contact {
    display: flex;
    align-items: center;
    margin-bottom: 0.3rem;
}
.footer-contact img.footer-icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    object-fit: contain;
}
.footer-contact a,
.footer-contact span {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}
.footer-contact a:hover { color: var(--primary); }
.social-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}
.social-link {
    display: inline-block;
    transition: transform 0.3s, filter 0.3s;
}
.social-link img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: block;
}
.social-link:hover {
    transform: translateY(-3px);
    filter: brightness(1.3);
}
.copyright {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
}
.privacy-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.privacy-modal.active { display: flex; }
.privacy-content {
    background: var(--bg-card);
    border: 1px solid var(--gray);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(255,123,0,0.15);
}
.privacy-content h3 { color: var(--primary); margin-bottom: 1rem; font-size: 1.5rem; }
.privacy-content p { color: var(--text-muted); line-height: 1.6; margin-bottom: 1.5rem; font-size: 0.95rem; }
.privacy-content a { color: var(--primary); text-decoration: underline; }
.privacy-buttons .btn {
    width: 100%;
    text-align: center;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    padding: 1rem 2.5rem;
    background: var(--primary);
    color: #000;
    border-radius: 50px;
    font-weight: 600;
}

@media (max-width: 968px) {
    .product-frame { grid-template-columns: 1fr; text-align: center; }
    .product-frame.reverse { direction: ltr; }
    .page-header h1 { font-size: 2.5rem; }
    .product-info h2 { font-size: 2rem; }
    .product-info h3 { font-size: 1.4rem; }
    .final-frame h2 { font-size: 2rem; }
    .custom-scrollbar { right: 12px; height: 40vh; min-height: 150px; }
    .scroll-thumb { width: 8px; height: 30px; }
    .scroll-percent { display: none; }
    .scroll-thumb::after { height: 12px; }
    .footer-container { flex-direction: column; }
    .footer-col--support,
    .footer-col--buyers,
    .footer-col--social { flex: 1; }
    .support-grid { grid-template-columns: 1fr; }
}