/* Core Variables & Reset */
:root {
    --bg-primary: #050505;
    --bg-secondary: #0f0f0f;
    --text-primary: #f5f5f5;
    --text-secondary: #a0a0a0;
    --accent-gold: #d4af37;
    --accent-glow: rgba(212, 175, 55, 0.3);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
}

h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #fff, #a0a0a0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
    color: var(--accent-gold);
}

/* Utilities */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--bg-primary);
    background: var(--accent-gold);
    text-decoration: none;
    border: 1px solid var(--accent-gold);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #fff;
    z-index: -1;
    transition: var(--transition);
}

.btn:hover::after {
    width: 100%;
}

.btn-outline {
    background: transparent;
    color: var(--accent-gold);
}

.btn-outline:hover {
    color: var(--bg-primary);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 0;
    z-index: 100;
    transition: var(--transition);
    mix-blend-mode: difference;
}

nav.scrolled {
    padding: 1rem 0;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    mix-blend-mode: normal;
}

nav.mobile-menu-active {
    mix-blend-mode: normal;
    background: var(--bg-primary);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #fff;
    /* Always white due to mix-blend in default state */
    text-decoration: none;
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.7;
    transition: var(--transition);
}

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

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    z-index: -1;
    transform: scale(1.1);
    animation: slowZoom 20s infinite alternate;
}

@keyframes slowZoom {
    to {
        transform: scale(1);
    }
}

.hero-content {
    max-width: 800px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s 0.5s forwards;
}

.hero p {
    font-size: 1.2rem;
    color: #ccc;
    margin: 1.5rem 0 2.5rem;
    max-width: 500px;
}

/* Collections Grid */
.collections {
    padding: 8rem 0;
    background: var(--bg-secondary);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.card {
    background: var(--bg-primary);
    border: 1px solid #222;
    padding: 2rem;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-5px);
}

.card-img-container {
    height: 400px;
    width: 100%;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.card:hover img {
    transform: scale(1.05);
}

.card-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.price {
    color: var(--accent-gold);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: block;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    border-top: 1px solid #222;
    padding-top: 1rem;
}

.view-link {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.card:hover .view-link {
    color: #fff;
}

/* Scarcity & Uniqueness */
.uniqueness-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-gold);
    color: var(--bg-primary);
    padding: 0.4rem 0.8rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.dna-serial {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.75rem;
    color: var(--accent-gold);
    opacity: 0.8;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
    display: block;
}

.viewing-counter {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #ff4b4b;
    border-radius: 50%;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(3);
        opacity: 0;
    }
}

.scarcity-banner {
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    padding: 1rem;
    text-align: center;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    margin: 2rem 0;
    font-style: italic;
    color: var(--accent-gold);
    font-size: 0.9rem;
}

/* Trust & Social Proof Enhancements */
.trust-bar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #1a1a1a;
}

.trust-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    flex: 1;
}

.trust-bar-item svg {
    width: 20px;
    height: 20px;
    fill: var(--accent-gold);
    opacity: 0.8;
}

.trust-bar-item span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
}

.purchase-notification {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid var(--accent-gold);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1000;
    transform: translateX(-150%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    max-width: 320px;
}

.purchase-notification.show {
    transform: translateX(0);
}

.purchase-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    background: #111;
}

.purchase-text {
    font-size: 0.8rem;
    color: #ccc;
}

.purchase-text strong {
    color: #fff;
    display: block;
    margin-bottom: 0.2rem;
}

.purchase-time {
    font-size: 0.7rem;
    color: var(--accent-gold);
    margin-top: 0.3rem;
    display: block;
}

.risk-reversal-card {
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.1);
    padding: 1.5rem;
    margin-top: 2rem;
    border-radius: 4px;
}

.risk-reversal-card h4 {
    color: var(--accent-gold);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.risk-reversal-card p {
    font-size: 0.85rem;
    color: #aaa;
    margin: 0;
}

/* Trust Section */
.trust {
    padding: 8rem 0;
    text-align: center;
}

.trust-grid {
    display: flex;
    justify-content: center;
    gap: 6rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.trust-item {
    max-width: 300px;
}

.trust-item h4 {
    font-size: 1.2rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

/* Footer */
footer {
    border-top: 1px solid #222;
    padding: 4rem 0 2rem;
    font-size: 0.9rem;
    color: #666;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-col h5 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

.footer-col a {
    display: block;
    color: #888;
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--accent-gold);
}

/* Animations */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 99;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
        opacity: 1;
    }

    .nav-toggle {
        display: block;
        width: 30px;
        height: 20px;
        position: relative;
        cursor: pointer;
        z-index: 101;
    }

    .nav-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background: #fff;
        position: absolute;
        transition: var(--transition);
    }

    .nav-toggle span:nth-child(1) {
        top: 0;
    }

    .nav-toggle span:nth-child(2) {
        top: 9px;
    }

    .nav-toggle span:nth-child(3) {
        top: 18px;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg);
        top: 9px;
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg);
        top: 9px;
    }

    h1 {
        font-size: 2.5rem;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .trust-grid {
        gap: 3rem;
    }
}

/* Newsletter Section */
.newsletter-section {
    background: #080808;
    padding: 8rem 0;
    border-top: 1px solid #1a1a1a;
    text-align: center;
}

.newsletter-container {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.newsletter-section p {
    color: #888;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    background: #111;
    border: 1px solid #222;
    padding: 1.2rem 1.5rem;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    border-radius: 4px;
    transition: var(--transition);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.newsletter-form button {
    padding: 0 2.5rem;
}

#newsletter-message {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    min-height: 1.2rem;
}

#newsletter-message.success {
    color: #4CAF50;
}

#newsletter-message.error {
    color: #f44336;
}

@media (max-width: 600px) {
    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        padding: 1.2rem;
    }
}

/* Navigation Cart Icon */
.cart-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    position: relative;
    color: #fff;
    padding: 0.5rem;
    transition: var(--transition);
    order: 1;
    /* Place before hamburger on mobile */
    margin-right: 1.5rem;
}

.cart-toggle svg {
    width: 24px;
    height: 24px;
}

.cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--accent-gold);
    color: var(--bg-primary);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .cart-toggle {
        margin-right: 1rem;
    }
}

/* Cart Drawer */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 450px;
    height: 100vh;
    background: var(--bg-secondary);
    z-index: 2000;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    padding: 2rem;
    border-left: 1px solid #222;
}

.cart-drawer.active {
    transform: translateX(-450px);
}

@media (max-width: 450px) {
    .cart-drawer {
        max-width: 100%;
        right: -100%;
    }

    .cart-drawer.active {
        transform: translateX(-100%);
    }
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #222;
}

.cart-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.5;
    transition: var(--transition);
}

.cart-close:hover {
    opacity: 1;
    color: var(--accent-gold);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.cart-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #1a1a1a;
    align-items: center;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    background: #111;
    border-radius: 4px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.cart-item-info span {
    color: var(--accent-gold);
    font-weight: 500;
}

.remove-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: var(--transition);
}

.remove-btn:hover {
    color: #ff4b4b;
}

.cart-footer {
    padding-top: 2rem;
    border-top: 1px solid #222;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.3rem;
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
}

.cart-total span:last-child {
    color: var(--accent-gold);
}

.checkout-btn {
    width: 100%;
}

.empty-msg {
    text-align: center;
    color: #666;
    margin-top: 4rem;
    font-style: italic;
}

/* Product Page Actions */
.purchase-actions {
    display: flex;
    gap: 1.5rem;
    margin: 2rem 0;
}

.purchase-actions .btn {
    flex: 1;
    text-align: center;
}

@media (max-width: 600px) {
    .purchase-actions {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Product Options Selection */
.product-options {
    margin: 2rem 0;
}

.product-options label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888;
    margin-bottom: 1rem;
}

.option-pills {
    display: flex;
    gap: 1rem;
}

.option-pill {
    background: #111;
    border: 1px solid #222;
    color: #fff;
    padding: 0.8rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 4px;
}

.option-pill:hover {
    border-color: #444;
}

.option-pill.active {
    background: var(--accent-gold);
    color: var(--bg-primary);
    border-color: var(--accent-gold);
    font-weight: 500;
}

.item-option {
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.2rem;
    font-style: italic;
}

/* Selection Modal */
.selection-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.selection-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.selection-modal {
    background: var(--bg-secondary);
    border: 1px solid #222;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    border-radius: 8px;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.4s ease;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.selection-modal-overlay.active .selection-modal {
    transform: translateY(0);
}

.selection-modal h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.selection-modal p {
    color: #888;
    margin-bottom: 2.5rem;
}

.selection-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.selection-option {
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    padding: 2rem 1rem;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.selection-option:hover {
    border-color: #333;
    background: #111;
}

.selection-option.active {
    border-color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.05);
}

.selection-option .check-mark {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    border: 1px solid #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.selection-option.active .check-mark {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
}

.selection-option.active .check-mark::after {
    content: '';
    width: 8px;
    height: 4px;
    border-left: 2px solid var(--bg-primary);
    border-bottom: 2px solid var(--bg-primary);
    transform: rotate(-45deg);
    margin-top: -2px;
}

.selection-option-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 0.5rem;
}

.icon-silver {
    background: linear-gradient(135deg, #e0e0e0, #bdbdbd);
    box-shadow: 0 0 15px rgba(224, 224, 224, 0.2);
}

.icon-gold {
    background: linear-gradient(135deg, #d4af37, #fdfc47);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.selection-option span {
    font-size: 0.9rem;
    font-weight: 500;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-actions .btn {
    width: 100%;
}