:root {
    --bg-color: #0d0d0d;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-color: #7c4dff;
    --accent-hover: #b47cff;
    --border-soft: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(20, 20, 20, 0.8);
    --transition-fast: 0.3s ease;
}

* {
    margin: 0 5px;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    font-family: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Glassmorphism utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-soft);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
    margin: 0 !important;
    left: 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

/* Removed currency styles */

.nav-links a:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero h1 span {
    background: linear-gradient(90deg, var(--accent-color), var(--accent-hover));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 18px;
    color: var(--text-secondary);
}

/* Products Section */
#products {
    padding: 60px 0;
}

.categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.category-btn {
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid var(--border-soft);
    color: var(--text-secondary);
    white-space: nowrap;
    transition: var(--transition-fast);
}

.category-btn.active,
.category-btn:hover {
    border-color: var(--accent-color);
    color: var(--text-primary);
    background: var(--card-bg);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    border-radius: 20px;
    padding: 20px;
    transition: var(--transition-fast);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-soft);
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(124, 77, 255, 0.1);
}

.product-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
}

.product-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.product-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--accent-color);
}

/* Consultant Button */
.consultant-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: var(--accent-color);
    transition: var(--transition-fast);
}

.consultant-btn:hover {
    transform: scale(1.1);
    background: var(--accent-hover);
}

.consultant-btn svg {
    width: 32px;
    height: 32px;
    fill: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    margin: 40px auto;
    width: 90%;
    max-width: 1100px;
    border-radius: 24px;
    padding: 60px;
    position: relative;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--border-soft);
    border-radius: 10px;
}

.modal-content .close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 30px;
    cursor: pointer;
    color: var(--text-secondary);
}

/* Purchase logic inputs */
select,
input {
    width: 100%;
    padding: 12px;
    background: var(--card-bg);
    border: 1px solid var(--border-soft);
    color: white;
    border-radius: 10px;
    margin-bottom: 20px;
}

.buy-btn {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    background: var(--accent-color);
    color: white;
    font-weight: 800;
    font-size: 18px;
    transition: var(--transition-fast);
}

.buy-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.02);
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section h2 {
    font-size: 36px;
    margin-bottom: 40px;
    text-align: center;
}

.faq-list {
    max-width: 1200px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid var(--border-soft);
}

.faq-item h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.faq-item p {
    color: var(--text-secondary);
}

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-soft);
    margin-top: 60px;
}

/* Responsive */
@media (max-width: 768px) {
    header .container {
        justify-content: center;
    }

    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .modal-content {
        padding: 24px;
        margin: 0;
        width: 100%;
        height: 100% !important;
        max-height: 100%;
        border-radius: 0;
        top: 0;
        left: 0;
    }

    .modal-content .close {
        top: 15px;
        right: 15px;
        z-index: 100;
        background: rgba(0, 0, 0, 0.5);
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        backdrop-filter: blur(5px);
    }
}

/* Product Detail Layout */
.product-detail-layout {
    display: block;
}

.product-detail-info {
    max-width: 800px;
    margin: 0 auto;
}

.product-add-info {
    margin-bottom: 30px;
    padding: 20px;
    font-size: 14px;
    border-radius: 16px;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.02);
}

.add-info-label {
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--accent-color);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1.5px;
}

.add-info-content {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Reviews Modal Styling */
.reviews-modal-content {
    max-width: 900px !important;
    height: 85vh;
    display: flex;
    flex-direction: column;
}

.reviews-body {
    flex: 1;
    overflow-y: auto;
    padding-right: 18px;
    margin-top: 20px;
}

.review-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.review-type {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}

.review-type.good {
    color: #4caf50;
}

.review-type.bad {
    color: #f44336;
}

.review-date {
    color: var(--text-secondary);
    font-size: 13px;
}

.review-content {
    line-height: 1.6;
    color: var(--text-white);
    font-size: 15px;
}

.review-reply {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
    color: var(--text-secondary);
}

.reply-label {
    font-weight: 800;
    color: var(--accent-color);
    font-size: 11px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.close-reviews {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.close-reviews:hover {
    color: var(--text-primary);
}

.product-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 15px;
}

.option-field {
    margin-bottom: 25px;
}

.option-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.option-comment {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-style: italic;
}

.glass-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    padding: 12px 15px;
    color: white;
    font-family: inherit;
    transition: var(--transition-fast);
}

.glass-input:focus {
    border-color: var(--accent-color);
    outline: none;
    background: rgba(255, 255, 255, 0.08);
}

/* Modern Selectable Options */
.radio-group,
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.radio-label,
.checkbox-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    padding: 20px 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-height: 100px;
}

.radio-label input,
.checkbox-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.radio-label:hover,
.checkbox-label:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.radio-label:has(input:checked),
.checkbox-label:has(input:checked) {
    border-color: var(--accent-color);
    background: rgba(124, 77, 255, 0.1);
    box-shadow: 0 0 20px rgba(124, 77, 255, 0.2);
}

.radio-label:has(input:checked)::after,
.checkbox-label:has(input:checked)::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 12px;
    color: var(--accent-color);
    font-size: 14px;
    font-weight: 800;
}

/* Modifier text inside card */
.option-modifier {
    font-size: 13px;
    color: var(--accent-color);
    font-weight: 800;
    margin-top: 5px;
}

.purchase-footer {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid var(--border-soft);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-price {
    font-size: 18px;
    font-weight: 800;
}

#modalTotalPrice {
    color: var(--accent-color);
    font-size: 24px;
    margin-left: 10px;
}

@media (max-width: 900px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
    }
}

/* Reviews & Warranty */
.reviews-placeholder {
    width: 100%;
}

.order-info p {
    margin: 5px 0;
}

/* Loading Spinner */
.loader {
    border: 4px solid var(--border-soft);
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 40px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--border-soft);
    border-radius: 5px;
}

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

/* Section refinement */
.section h2 {
    position: relative;
    padding-bottom: 20px;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* Navigation refinement */
header .logo {
    cursor: pointer;
}

.nav-links a {
    font-weight: 600;
    font-size: 15px;
    opacity: 0.8;
}

.nav-links a:hover {
    opacity: 1;
}