/* ========================================
   SSD STOREFRONT -- STYLES
   Chrome Hearts x Rick Owens aesthetic
   ======================================== */

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

:root {
    --black: #000000;
    --white: #ffffff;
    --silver: #c0c0c0;
    --chrome: #d4d4d4;
    --dark-gray: #111111;
    --mid-gray: #1a1a1a;
    --text-gray: #888888;
    --accent: #e0e0e0;
    --font-brand: 'UnifrakturCook', cursive;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--black);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.5;
}

::selection {
    background: var(--silver);
    color: var(--black);
}

/* ---- Announcement Bar ---- */
.announcement-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    color: var(--black);
    text-align: center;
    padding: 10px 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    z-index: 1000;
    overflow: hidden;
}

.announcement-text {
    animation: fadeInOut 0.5s ease;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ---- Hero Section ---- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 40px;
    background: var(--black);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(30,30,30,0.4) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.brand-name {
    font-family: var(--font-brand);
    font-size: clamp(5rem, 20vw, 15rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--white);
    text-shadow: 0 0 60px rgba(255,255,255,0.1);
    line-height: 1;
    margin-bottom: 1rem;
}

.tagline {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    font-weight: 700;
    letter-spacing: 0.4em;
    color: var(--silver);
    text-transform: uppercase;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator span {
    display: block;
    width: 2px;
    height: 40px;
    background: var(--silver);
    margin: 0 auto;
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ---- Products Section ---- */
.products {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 900;
    letter-spacing: 0.3em;
    margin-bottom: 60px;
    color: var(--white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ---- Product Card ---- */
.product-card {
    background: var(--dark-gray);
    border: 1px solid rgba(255,255,255,0.06);
    position: relative;
    transition: var(--transition);
    overflow: hidden;
}

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

.product-image {
    position: relative;
    aspect-ratio: 1;
    background: var(--mid-gray);
    overflow: hidden;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(145deg, #0a0a0a, #1a1a1a);
}

.placeholder-image::after {
    font-family: var(--font-body);
    font-size: 3rem;
    color: rgba(255,255,255,0.08);
    font-weight: 900;
    letter-spacing: 0.1em;
}

.glasses-placeholder::after { content: 'FRAMES'; }
.chain-placeholder::after { content: 'CHAIN'; }
.ring-placeholder::after { content: 'RING'; }

/* Grain texture overlay */
.product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

.viewing-count {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0,0,0,0.8);
    color: var(--chrome);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    letter-spacing: 0.05em;
    z-index: 2;
    border: 1px solid rgba(255,255,255,0.1);
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    margin-bottom: 10px;
}

.product-price {
    margin-bottom: 15px;
}

.price-current {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--white);
}

.price-original {
    font-size: 0.9rem;
    color: var(--text-gray);
    text-decoration: line-through;
    margin-left: 8px;
}

/* Countdown Timer */
.countdown-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
}

.timer-label {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text-gray);
}

.timer-display {
    font-size: 0.85rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--chrome);
    letter-spacing: 0.1em;
}

/* Buy Button */
.btn-buy {
    width: 100%;
    padding: 14px 24px;
    background: var(--white);
    color: var(--black);
    border: none;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.btn-buy:active {
    transform: scale(0.98);
}

/* ---- Bundle Upsell ---- */
.bundle-upsell {
    padding: 80px 20px;
    text-align: center;
    background: var(--dark-gray);
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.bundle-content {
    max-width: 600px;
    margin: 0 auto;
}

.bundle-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 900;
    letter-spacing: 0.3em;
    margin-bottom: 15px;
}

.bundle-subtitle {
    font-size: 1.1rem;
    color: var(--chrome);
    margin-bottom: 8px;
}

.bundle-price {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--white);
}

.bundle-original {
    font-size: 1rem;
    color: var(--text-gray);
    text-decoration: line-through;
}

.bundle-save {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--silver);
    margin-bottom: 25px;
}

.btn-bundle {
    max-width: 400px;
    margin: 0 auto;
    display: block;
}

/* ---- Social Proof ---- */
.social-proof {
    padding: 80px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.proof-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--text-gray);
}

.reviews-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 768px) {
    .reviews-strip {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.review {
    padding: 25px;
    background: var(--dark-gray);
    border: 1px solid rgba(255,255,255,0.06);
}

.review-stars {
    color: var(--chrome);
    font-size: 0.9rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.review-text {
    font-size: 0.85rem;
    color: var(--accent);
    line-height: 1.6;
    margin-bottom: 10px;
    font-style: italic;
}

.review-author {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text-gray);
}

/* ---- Footer ---- */
.footer {
    padding: 50px 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
    text-align: center;
}

.footer-brand {
    font-family: var(--font-brand);
    font-size: 2rem;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--white);
}

.footer-copy {
    font-size: 0.65rem;
    color: var(--text-gray);
    letter-spacing: 0.1em;
}

/* ---- Sticky Buy Bar ---- */
.sticky-buy-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    color: var(--black);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    z-index: 999;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sticky-buy-bar.visible {
    transform: translateY(0);
}

.sticky-text {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.btn-sticky {
    width: auto;
    padding: 10px 24px;
    background: var(--black);
    color: var(--white);
    font-size: 0.7rem;
}

.btn-sticky:hover {
    background: #222;
}

/* ---- Exit Intent Popup ---- */
.exit-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
}

.exit-popup.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(4px);
}

.popup-content {
    position: relative;
    background: var(--dark-gray);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 50px 40px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    animation: popupSlide 0.4s ease;
}

@keyframes popupSlide {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.popup-close:hover {
    color: var(--white);
}

.popup-title {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 0.3em;
    margin-bottom: 10px;
}

.popup-subtitle {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--chrome);
    margin-bottom: 25px;
}

.popup-email {
    width: 100%;
    padding: 14px 16px;
    background: var(--black);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.85rem;
    margin-bottom: 15px;
    outline: none;
    transition: var(--transition);
}

.popup-email::placeholder {
    color: var(--text-gray);
    letter-spacing: 0.05em;
}

.popup-email:focus {
    border-color: var(--silver);
}

.popup-btn {
    margin-bottom: 15px;
}

.popup-skip {
    font-size: 0.7rem;
    color: var(--text-gray);
    cursor: pointer;
    text-decoration: underline;
    transition: var(--transition);
}

.popup-skip:hover {
    color: var(--white);
}

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

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

::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.3);
}
