@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@200;400;600&display=swap');

:root {
    --bg-color: #0a0a0a;
    --text-color: #ffffff;
    --scrollbar-bg: #111111;
    --scrollbar-thumb: #333333;
    --scrollbar-thumb-hover: #555555;
}

body.light-mode {
    --bg-color: #fcfcfc;
    --text-color: #0a0a0a;
    --scrollbar-bg: #f0f0f0;
    --scrollbar-thumb: #cccccc;
    --scrollbar-thumb-hover: #999999;
}

/* Custom Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

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

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

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-bg);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Montserrat', sans-serif;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    letter-spacing: 1px;
    transition: background-color 0.5s ease, color 0.5s ease;
}

.theme-toggle {
    position: absolute;
    top: 30px;
    right: 40px;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-family: inherit;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.theme-toggle:hover {
    opacity: 1;
}

.container {
    text-align: center;
    max-width: 600px;
    padding: 40px 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.brand-name {
    font-size: 3.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 10px;
    margin-bottom: 12px;
    color: var(--text-color);
}

.subtitle {
    font-size: 0.95rem;
    font-weight: 200;
    color: var(--text-color);
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.time-block span {
    font-size: 3rem;
    font-weight: 200;
    color: var(--text-color);
}

.time-block label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-color);
    letter-spacing: 3px;
    margin-top: 8px;
}

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

@media (max-width: 480px) {
    .brand-name { font-size: 2.2rem; letter-spacing: 6px; }
    .subtitle { font-size: 0.8rem; letter-spacing: 2px; }
    .countdown { gap: 20px; }
    .time-block span { font-size: 2rem; }
    .time-block { min-width: 50px; }
    .theme-toggle { top: 20px; right: 20px; }
}

.shop-content {
    margin-top: 40px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.product-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 8px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    text-align: center;
    cursor: pointer;
}

.product-image {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 4px;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
}

.product-card h3 {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 15px;
    color: var(--text-color);
}

.product-price {
    font-size: 0.9rem;
    font-weight: 200;
    color: var(--text-color);
    opacity: 0.7;
}

.product-detail {
    margin-top: 40px;
}

.back-link {
    display: inline-block;
    color: var(--text-color);
    text-decoration: none;
    margin-bottom: 30px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.back-link:hover {
    opacity: 1;
}

.product-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.product-detail-image {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
}

.product-detail-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: 4px;
}

.product-detail-info h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 15px;
    color: var(--text-color);
}

.product-detail-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 25px;
}

.product-detail-description {
    font-size: 1rem;
    font-weight: 200;
    line-height: 1.6;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 30px;
}

.download-button {
    background: var(--text-color);
    color: var(--bg-color);
    border: none;
    padding: 15px 40px;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    border-radius: 4px;
    transition: opacity 0.3s ease;
}

.download-button:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .product-detail-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .product-detail-info h2 {
        font-size: 1.5rem;
    }
    
    .product-detail-price {
        font-size: 1.2rem;
    }
}

/* Store Layout Overrides */
body.store-layout {
    display: block;
    height: auto;
    overflow: auto;
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at top right, rgba(100, 100, 255, 0.05), transparent 400px),
                      radial-gradient(circle at bottom left, rgba(255, 100, 255, 0.05), transparent 400px);
}

body.light-mode.store-layout {
    background-image: radial-gradient(circle at top right, rgba(100, 100, 255, 0.05), transparent 400px),
                      radial-gradient(circle at bottom left, rgba(255, 100, 255, 0.05), transparent 400px);
}

/* Nav */
.store-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

body.light-mode .store-nav {
    background: rgba(252, 252, 252, 0.7);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-color);
}

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

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
    transition: opacity 0.3s, color 0.3s;
}

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

.nav-theme-toggle {
    position: static;
}

/* Main */
.store-main {
    max-width: 1600px;
    margin: 0 5%;
    padding: 40px 0;
}

/* Hero */
.store-hero {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 0;
    animation: fadeIn 1s ease;
}

.store-hero h1 {
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-mode .store-hero h1 {
    background: linear-gradient(135deg, #000, #555);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.store-hero p {
    font-size: 1.1rem;
    font-weight: 200;
    opacity: 0.7;
}

/* Filters */
.store-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    padding: 8px 20px;
    border-radius: 30px;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

body.light-mode .filter-btn {
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--text-color);
    color: var(--bg-color);
}

/* Products Grid Override */
.store-products .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 0;
}

/* Glass Effect Cards */
.glass-effect {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

body.light-mode .glass-effect {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.store-products .product-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: left;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.store-products .product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

body.light-mode .store-products .product-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(45deg, #ff00cc, #3333ff);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-image-container {
    width: 100%;
    height: 220px;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s;
}

body.light-mode .product-image-container {
    background: rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.store-products .product-card:hover .product-image-container {
    background: rgba(255, 255, 255, 0.05);
}

.store-products .product-image {
    max-height: 100%;
    margin-bottom: 0;
    transition: transform 0.5s ease;
}

.store-products .product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    font-size: 0.8rem;
    color: var(--text-color);
    opacity: 0.5;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.store-products .product-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.product-desc {
    font-size: 0.9rem;
    font-weight: 200;
    opacity: 0.7;
    margin-bottom: 25px;
    line-height: 1.5;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.free-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: #4ade80;
    opacity: 1;
}

.get-btn {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

body.light-mode .get-btn {
    background: rgba(0, 0, 0, 0.05);
}

.store-products .product-card:hover .get-btn {
    background: var(--text-color);
    color: var(--bg-color);
}

/* Product Detail Overrides */
.product-detail-container {
    max-width: 1000px;
    margin: 0 auto;
    animation: fadeIn 0.8s ease forwards;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 40px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.back-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.back-link:hover .back-arrow {
    transform: translateX(-5px);
}

.product-detail-content.glass-effect {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    overflow: hidden;
    border-radius: 20px;
    align-items: stretch;
}

.product-detail-image-wrapper {
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

body.light-mode .product-detail-image-wrapper {
    background: rgba(0, 0, 0, 0.02);
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.product-detail-image-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.2));
}

.product-detail-info {
    padding: 50px;
    display: flex;
    flex-direction: column;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.product-badge-large {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-title-large {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.2;
}

.product-price-large {
    font-size: 2rem;
    font-weight: 200;
    color: #4ade80;
    margin-bottom: 30px;
}

.product-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
    width: 100%;
}

body.light-mode .product-divider {
    background: rgba(0, 0, 0, 0.1);
}

.product-description-container h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.product-detail-description {
    font-size: 1.05rem;
    font-weight: 200;
    line-height: 1.8;
    margin-bottom: 30px;
    opacity: 0.8;
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
}

.feature-item {
    font-size: 0.95rem;
    opacity: 0.7;
    display: flex;
    align-items: center;
}

.glow-effect {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--text-color);
    color: var(--bg-color);
    border: none;
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

body.light-mode .glow-effect {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.glow-effect:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(255, 255, 255, 0.2);
}

body.light-mode .glow-effect:hover {
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
}

@media (max-width: 900px) {
    .product-detail-content.glass-effect {
        grid-template-columns: 1fr;
    }
    
    .product-detail-image-wrapper {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding: 40px;
    }
    
    .product-detail-info {
        padding: 40px;
    }
}

/* Category Header */
.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.light-mode .category-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.category-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.category-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 1px;
}