:root {
    --bg-color: #000000;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --accent-color: #3A4A5A;
    /* Approximate announcement bar blue-grey */
    --glow-color: rgba(255, 255, 255, 0.4);
    --font-main: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Announcement Bar & Marquee */
.announcement-bar {
    background-color: #ffffff;
    color: #000000;
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

.marquee {
    display: flex;
    animation: marquee 20s linear infinite;
    white-space: nowrap;
    width: max-content;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Header */
.header {
    position: sticky;
    top: 0;
    background-color: var(--bg-color);
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 16px;
    /* Reset vertical padding as height handles it */
    min-height: 180px;
    /* Give plenty of space for a 150px logo */
    display: flex;
    align-items: center;
    /* Center items vertically */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Ensures the left/right icons are centered vertically in the 120px tall header */
    max-width: 1200px;
    width: 100%;
    /* Make sure it takes up the full flex width */
    margin: 0 auto;
    position: relative;
    /* relative for absolute centering of logo */
}

.icon-button {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.icon-button:hover {
    opacity: 0.7;
}

.logo {
    position: absolute;
    left: 50%;
    /* Remove translate(-50%, -50%) which pulls it up, and instead just center horizontally */
    transform: translateX(-50%);
    /* Use flex alignment for vertical layout instead of absolute top positioning */
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-img {
    height: 120px;
    /* Slightly reduced so it fits perfectly in the 180px gap */
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-title {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.logo-subtitle {
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 2px;
}

.header-icons {
    display: flex;
    gap: 8px;
}

/* Base utility classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Hero Section */
.hero {
    padding: 40px 16px;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 30px;
    letter-spacing: 1.5px;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

/* Product Cards */
.product-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    overflow: hidden;
    background-color: #111;
    /* Darker placeholder background */
    box-shadow: 0 0 30px var(--glow-color);
    /* The signature white glow */
    transition: transform 0.3s ease;
}

.image-wrapper:hover {
    transform: scale(1.02);
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sale-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(40, 40, 40, 0.8);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 8px;
}

.product-title {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-primary);
}

.price-container {
    display: flex;
    gap: 8px;
    align-items: center;
}

.original-price {
    color: var(--text-secondary);
    text-decoration: line-through;
    font-size: 0.85rem;
}

.sale-price {
    color: var(--text-primary);
    font-size: 0.85rem;
}

/* Discord Section */
.discord-section {
    text-align: center;
    padding: 80px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.discord-section .section-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.btn-primary {
    display: inline-block;
    background-color: var(--text-primary);
    color: var(--bg-color);
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.2s, opacity 0.2s;
}

.btn-primary:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Footer & Newsletter */
.footer {
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
}

.newsletter-block h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.newsletter-form {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.newsletter-form input {
    width: 100%;
    padding: 14px 24px;
    background-color: transparent;
    border: 1px solid var(--text-secondary);
    border-radius: 50px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
}

.newsletter-form input:focus {
    border-color: var(--text-primary);
}

.newsletter-form button {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.country-selector {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid var(--text-secondary);
    border-radius: 50px;
    font-size: 0.85rem;
    cursor: pointer;
}

.payment-icons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.pay-icon {
    width: 38px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
    font-weight: bold;
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.legal-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.8rem;
}

.legal-links a:hover {
    text-decoration: none;
    opacity: 0.8;
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

/* Cart Sidebar Overlay */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background-color: #000;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 24px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    transition: right 0.3s ease;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 32px;
}

.cart-close-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}

.cart-empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 24px;
}

.cart-empty-state h2 {
    font-size: 1.5rem;
    font-weight: 800;
}

.cart-continue-btn {
    background-color: transparent;
    color: #fff;
    border: 1px solid #fff;
    padding: 14px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
}

.cart-continue-btn:hover {
    background-color: #fff;
    color: #000;
}

.cart-login-prompt {
    margin-top: 40px;
    font-size: 0.9rem;
}

.cart-login-prompt a {
    color: #fff;
    text-decoration: underline;
}

/* Navigation Sidebar */
.nav-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background-color: #111;
    z-index: 1000;
    padding: 24px;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
}

.nav-sidebar.active {
    left: 0;
}

.nav-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 30px;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-secondary);
}

/* Modals Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background-color: #111;
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}

.modal-content h2 {
    margin-bottom: 16px;
    font-size: 1.5rem;
    text-transform: uppercase;
}

.modal-content input {
    width: 100%;
    padding: 14px;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 8px;
    font-family: inherit;
    margin-bottom: 16px;
    font-size: 1rem;
}/* Review Popup Notification */
.review-popup {
    position: fixed;
    bottom: -150px; /* Start off-screen */
    left: 24px;
    background-color: #000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 16px;
    width: calc(100% - 48px);
    max-width: 400px;
    display: flex;
    gap: 16px;
    align-items: center;
    box-shadow: 0 4px 24px rgba(255, 255, 255, 0.1);
    z-index: 9999;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    color: var(--text-primary);
}

.review-popup.active {
    bottom: 24px;
    opacity: 1;
}

.review-popup:hover {
     border-color: rgba(255, 255, 255, 0.4);
     transform: translateY(-2px);
}

.review-popup-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.review-popup-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
}

.review-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.review-popup-name {
    font-size: 0.8rem;
    font-weight: 700;
}

.review-popup-time {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.review-popup-stars {
    display: flex;
    gap: 2px;
}

.review-popup-stars svg {
    width: 12px;
    height: 12px;
    fill: #ffffff;
    color: #ffffff;
}

.review-popup-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-popup-link {
    font-size: 0.75rem;
    color: #ffffff;
    text-decoration: underline;
    margin-top: 4px;
}
