/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* CSS Variables for modern theming */
:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --accent-color: #d4af37;
    --text-color: #333;
    --bg-color: #f8f9fa;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --card-gradient: linear-gradient(145deg, #111111, #050505);
}

/* Body styling */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: white;
    background: radial-gradient(circle at top center, #2a2a2a 0%, #000000 100%);
    min-height: 100vh;
}

/* Header styling with gradient */

.header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: -1;
    transition: opacity 0.5s ease;
}

.header-wrapper.scrolled::before {
    opacity: 0.5;
}

header {
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    gap: 1rem;
}

nav {
    margin: 0 auto;
}

/* Logo styling */
.logo h1 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo img {
    filter: invert(1) hue-rotate(180deg);
    mix-blend-mode: screen;
    display: block;
}

/* Navigation menu styling */
nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 0.5rem;
    position: relative;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 500;
    letter-spacing: 0.5px;
    display: inline-block;
}

nav ul li a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s;
}

nav ul li a:hover {
    color: var(--accent-color);
    background-color: transparent;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Dropdown Menu Styling */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 1001;
    border-radius: var(--border-radius);
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-direction: column;
    gap: 0.25rem;
    align-items: stretch;
}

nav ul li:hover .dropdown-menu {
    display: flex;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu li a {
    text-align: center;
    width: 100%;
}

.dropdown-menu li a::after {
    display: none;
}

.cart-button {
    color: #fff;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 500;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1;
}

.cart-button:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.cart-icon {
    font-size: 1.4rem;
}

/* Main content styling */
main {
    padding: 9rem 2rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    margin-bottom: 2rem;
    padding: 2rem;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

h1 {
    margin-bottom: 1rem;
    color: var(--accent-color);
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

h2 {
    color: var(--accent-color);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: 1px;
}

p {
    font-size: 1.1rem;
    color: var(--accent-color);
    line-height: 1.7;
}

/* Hero section */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), rgba(0,0,0,0.9));
    color: white;
    border-radius: var(--border-radius);
    margin-bottom: 3rem;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--accent-color);
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--shadow);
}

/* Products section */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product {
    background: var(--card-gradient);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 15px rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
}

.carousel {
    position: relative;
    margin-bottom: 1rem;
}

.carousel img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 50%;
    font-size: 1.2rem;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.product h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product p {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.product img, .arrival img {
    margin-left: auto;
    margin-right: auto;
}

.product button, .arrival button, .Mystery button {
    background: linear-gradient(45deg, #b8860b, #d4af37, #f6e27a, #d4af37);
    background-size: 300% 100%;
    color: black;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.4s ease;
    margin-top: auto;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.product button:hover, .arrival button:hover, .Mystery button:hover {
    background-position: 100% 0;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

.Mystery button {
    margin-top: 1rem;
}

/* Collections section */
.collections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.collection {
    background: black;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.collection h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.collection p {
    color: var(--accent-color);
}

/* New Arrivals section */
.new-arrivals {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.arrival {
    background: var(--card-gradient);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.arrival:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 15px rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
}

.arrival h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrival p {
    color: var(--accent-color);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

/* Mystery Boxes Items Styling */
#mystery-boxes > .Mystery.Boxes > .Mystery.Boxes {
    background: var(--card-gradient);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

#mystery-boxes > .Mystery.Boxes > .Mystery.Boxes:hover {
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Responsive design */
@media (max-width: 768px) {
    /* Header Layout */
    header {
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }

    .logo h1 {
        font-size: 1.5rem;
        margin-bottom: 0;
    }

    .logo {
        margin-right: auto;
    }

    /* Navigation Drawer */
    nav {
        display: none;
        width: 100%;
        order: 10;
        margin-top: 1rem;
        background: rgba(10, 10, 10, 0.95);
        border-radius: var(--border-radius);
        padding: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    nav.active {
        display: block;
        animation: slideDown 0.3s ease forwards;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }

    nav ul li {
        width: 100%;
        margin: 0;
        text-align: center;
    }

    nav ul li a {
        display: block;
        width: 100%;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.05);
    }

    .menu-toggle {
        display: flex;
    }

    main {
        padding: 1rem;
    }

    section {
        padding: 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .products, .collections {
        grid-template-columns: 1fr;
    }

    .cta-button {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .cart-modal {
        max-width: 100%;
    }
}

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    position: static;
    transition: var(--transition);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-left: 0;
    line-height: 1;
}

.theme-toggle:hover {
    background-color: rgba(212, 175, 55, 0.2);
    color: var(--accent-color);
    transform: rotate(15deg);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-left: 0;
    line-height: 1;
    transition: var(--transition);
}

/* Light Mode Styles */
body.light-mode {
    background: radial-gradient(circle at top center, #f8f9fa 0%, #e9ecef 100%);
    color: #333;
}

body.light-mode .header-wrapper::before {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode nav ul li a,
body.light-mode .cart-button,
body.light-mode .theme-toggle,
body.light-mode .menu-toggle {
    color: #333;
}

body.light-mode .theme-toggle:hover {
    color: #b8860b;
    background-color: rgba(184, 134, 11, 0.15);
}

body.light-mode section {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body.light-mode .hero {
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-mode .product,
body.light-mode .arrival,
body.light-mode #mystery-boxes > .Mystery.Boxes > .Mystery.Boxes {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

body.light-mode p {
    color: #444;
}

body.light-mode h1, body.light-mode h2, body.light-mode h3 {
    color: #b8860b; /* Darker gold for better contrast on white */
}

body.light-mode .dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0,0,0,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

body.light-mode .logo img {
    filter: none;
    mix-blend-mode: multiply;
}

/* Cart Modal Styles */
.cart-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: none;
    display: flex;
    justify-content: flex-end;
    backdrop-filter: blur(5px);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-modal-overlay.open {
    display: flex;
    visibility: visible;
    opacity: 1;
}

.cart-modal {
    background: rgba(5, 5, 5, 0.95);
    width: 100%;
    max-width: 400px;
    height: 100%;
    padding: 2rem;
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid rgba(212, 175, 55, 0.3);
    backdrop-filter: blur(10px);
}

.cart-modal-overlay.open .cart-modal {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 1rem;
}

.cart-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--accent-color);
}

.close-cart {
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-details h4 {
    margin: 0 0 0.5rem 0;
    color: var(--accent-color);
    font-size: 1rem;
}

.remove-item {
    background: rgba(255, 0, 0, 0.2);
    color: #ff6b6b;
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
    margin-left: auto;
}

.remove-item:hover {
    background: rgba(255, 0, 0, 0.4);
}

.cart-footer {
    margin-top: 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding-top: 1rem;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.checkout-btn {
    width: 100%;
    background: var(--accent-color);
    color: var(--primary-color);
    border: none;
    padding: 1rem;
    border-radius: var(--border-radius);
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: filter 0.2s;
}

.checkout-btn:hover {
    filter: brightness(1.1);
}

/* Light mode overrides for cart */
body.light-mode .cart-modal {
    background: rgba(255, 255, 255, 0.95);
    border-left: 1px solid rgba(0,0,0,0.1);
}

body.light-mode .cart-item {
    background: #f8f9fa;
    border: 1px solid rgba(0,0,0,0.05);
}

body.light-mode .cart-item-details h4 {
    color: #b8860b;
}

/* Quantity Controls */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.qty-btn {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    line-height: 1;
    padding-bottom: 2px;
    transition: all 0.2s;
}

.qty-btn:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
