/* ============================================
   PUREGOLDEN SHOP v2.0 — Main Stylesheet
   Professional E-Commerce Design 2026
   ============================================ */

:root {
    --gold: #b8960c;
    --gold-light: #d4af37;
    --gold-dark: #8a6f08;
    --black: #000;
    --bg: #0a0a0a;
    --card: #111;
    --border: #222;
    --border-light: #333;
    --text: #fff;
    --text-secondary: #888;
    --text-muted: #555;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --radius: 0px;
    --radius-sm: 4px;
    --shadow: 0 20px 60px rgba(0,0,0,0.5);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Bebas Neue', sans-serif;
}

/* ── Reset & Base ─────────────────────────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font);
    background: var(--black);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font); }

/* ── Container ────────────────────────────────────────────────────────────── */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 80px 40px;
}

/* ── Section Headers ──────────────────────────────────────────────────────── */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 64px);
    letter-spacing: 8px;
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ── Header / Navigation ──────────────────────────────────────────────────── */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.promo-banner {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #000;
    text-align: center;
    padding: 8px 20px;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 1px;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.logo {
    font-family: var(--font-display);
    font-size: 36px;
    letter-spacing: 4px;
    color: var(--text);
    line-height: 0.9;
    flex-shrink: 0;
}

.logo span {
    display: block;
    font-size: 14px;
    letter-spacing: 6px;
    color: var(--gold);
    font-family: var(--font);
    font-weight: 300;
}

nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

nav a {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color 0.3s;
    white-space: nowrap;
}

nav a:hover, nav a.active {
    color: var(--text);
}

.nav-search {
    position: relative;
}

.nav-search input {
    padding: 10px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 13px;
    width: 180px;
    border-radius: var(--radius-sm);
    transition: all 0.3s;
}

.nav-search input:focus {
    outline: none;
    border-color: var(--gold);
    width: 240px;
}

.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background: var(--gold);
    color: #000;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

/* ── Hero Section ─────────────────────────────────────────────────────────── */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #000 0%, #111 50%, #000 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.hero-content .btn-primary {
    margin-top: auto;
    position: absolute;
    bottom: 40px;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(60px, 12vw, 140px);
    letter-spacing: 10px;
    line-height: 0.9;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #b8960c, #d4af37, #e8cc6a);
    background-size: 100% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gold-to-silver 4s ease-in-out infinite alternate;
}

@keyframes gold-to-silver {
    0% {
        filter: saturate(1) brightness(1);
    }
    100% {
        filter: saturate(0) brightness(1.6);
    }
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 100% center; }
}

.hero p {
    font-size: 26px;
    letter-spacing: 1px;
    text-transform: none;
    font-style: italic;
    font-weight: 700;
    color: #d0d0d0;
    -webkit-text-fill-color: #d0d0d0;
    background: none;
    animation: none;
    margin-bottom: 20px;
    padding: 14px 50px;
    border-left: 2px solid var(--gold);
    border-right: 2px solid var(--gold);
    min-height: 70px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 700px;
}

@keyframes shimmer-sub {
    0% { background-position: 0% center; }
    100% { background-position: 100% center; }
}

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

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 40px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
    animation: btn-glow 3s ease-in-out infinite alternate;
}

@keyframes btn-glow {
    0% { box-shadow: 0 0 5px rgba(184,150,12,0.3); }
    100% { box-shadow: 0 0 20px rgba(184,150,12,0.6), 0 0 40px rgba(192,192,192,0.2); }
}

.btn-primary:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border-color: var(--text);
}

.btn-secondary:hover {
    background: var(--text);
    color: var(--black);
}

.btn-dark {
    background: var(--black);
    color: var(--text);
    border-color: var(--border-light);
}

.btn-dark:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.btn-full {
    width: 100%;
}

/* ── Product Grid ─────────────────────────────────────────────────────────── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--card);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.15);
}

.product-card__image {
    width: 100%;
    aspect-ratio: 3/4;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-card__image img {
    transform: scale(1.08);
}

.product-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 5;
}

.badge-new { background: var(--success); color: #fff; }
.badge-sale { background: var(--danger); color: #fff; }
.badge-bestseller { background: var(--gold); color: #000; }
.badge-low-stock { background: var(--warning); color: #000; }

.product-card__quickview {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px;
    background: rgba(0,0,0,0.9);
    color: var(--text);
    border: none;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.product-card:hover .product-card__quickview {
    transform: translateY(0);
}

.product-card__info {
    padding: 24px;
}

.product-card__brand {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.product-card__name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.product-card__price {
    font-family: var(--font-display);
    font-size: 24px;
    letter-spacing: 1px;
}

.product-card__price .old-price {
    font-size: 16px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 8px;
    font-family: var(--font);
}

.product-card__rating {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.85);
    padding: 4px 8px;
    font-size: 11px;
    color: var(--gold);
    font-weight: 600;
}

/* ── Category Tiles ───────────────────────────────────────────────────────── */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.category-tile {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.4s;
}

.category-tile:hover {
    border-color: var(--gold);
    transform: scale(1.02);
}

.category-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.category-tile:hover img {
    transform: scale(1.1);
}

.category-tile__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 30px;
}

.category-tile__name {
    font-family: var(--font-display);
    font-size: 32px;
    letter-spacing: 4px;
}

/* ── Filter Bar ───────────────────────────────────────────────────────────── */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.filter-bar__label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.filter-btn {
    padding: 8px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    text-decoration: none;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
}

.filter-select {
    padding: 8px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 12px;
    appearance: none;
    padding-right: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

/* ── Trust Badges / Social Proof ──────────────────────────────────────────── */
.trust-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding: 60px 40px;
    background: var(--bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.trust-item__icon {
    font-size: 28px;
}

.trust-item__text {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.trust-item__sub {
    font-size: 11px;
    color: var(--text-muted);
}

/* ── Cart ─────────────────────────────────────────────────────────────────── */
.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto;
    gap: 24px;
    align-items: center;
    padding: 24px;
    background: var(--bg);
    border: 1px solid var(--border);
    margin-bottom: 12px;
    transition: border-color 0.2s;
}

.cart-item:hover {
    border-color: var(--border-light);
}

.cart-item__image {
    width: 100px;
    height: 100px;
    background: #fff;
    object-fit: contain;
}

.cart-item__name {
    font-weight: 600;
    margin-bottom: 4px;
}

.cart-item__variant {
    font-size: 13px;
    color: var(--text-secondary);
}

.cart-item__price {
    font-family: var(--font-display);
    font-size: 22px;
}

.cart-summary {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 32px;
    margin-top: 30px;
}

.cart-summary__row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.cart-summary__row:last-of-type {
    border-bottom: none;
    font-size: 20px;
    font-weight: 700;
    padding-top: 20px;
}

/* ── Checkout ─────────────────────────────────────────────────────────────── */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    max-width: 100%;
}

.checkout-form {
    max-width: none;
}

.checkout-form input,
.checkout-form select {
    width: 100%;
    padding: 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 14px;
    margin-bottom: 12px;
    transition: border-color 0.2s;
}

.checkout-form input:focus,
.checkout-form select:focus {
    outline: none;
    border-color: var(--gold);
}

.checkout-form label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
    margin-top: 16px;
}

.checkout-summary {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 32px;
    position: sticky;
    top: 120px;
    height: fit-content;
}

.checkout-summary h3 {
    font-family: var(--font-display);
    font-size: 24px;
    letter-spacing: 3px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 80px 40px 40px;
}

.footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 32px;
    letter-spacing: 4px;
    margin-bottom: 16px;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
    max-width: 300px;
}

.footer-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--text);
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    font-size: 14px;
    padding: 6px 0;
    transition: color 0.2s;
}

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

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
}

.footer-payments {
    display: flex;
    gap: 12px;
    align-items: center;
}

.footer-payments img {
    height: 24px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.footer-payments img:hover {
    opacity: 1;
}

/* ── Newsletter / CTA ─────────────────────────────────────────────────────── */
.newsletter-section {
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
    padding: 80px 40px;
    text-align: center;
}

.newsletter-section h2 {
    font-family: var(--font-display);
    font-size: 48px;
    letter-spacing: 6px;
    color: #000;
    margin-bottom: 12px;
}

.newsletter-section p {
    color: rgba(0,0,0,0.7);
    font-size: 14px;
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 0;
}

.newsletter-form input {
    flex: 1;
    padding: 16px 20px;
    background: rgba(0,0,0,0.1);
    border: 2px solid rgba(0,0,0,0.2);
    color: #000;
    font-size: 14px;
}

.newsletter-form input::placeholder {
    color: rgba(0,0,0,0.5);
}

.newsletter-form button {
    padding: 16px 30px;
    background: #000;
    color: var(--gold);
    border: 2px solid #000;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s;
}

.newsletter-form button:hover {
    background: transparent;
    color: #000;
    border-color: #000;
}

/* ── Urgency / FOMO ──────────────────────────────────────────────────────── */
.urgency-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--danger);
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .container { padding: 60px 20px; }
    .header-content { padding: 12px 16px; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-card__info { padding: 16px; }
    .product-card__name { font-size: 13px; }
    .product-card__price { font-size: 18px; }
    .hero h1 { font-size: 48px; }
    .cart-item { grid-template-columns: 60px 1fr auto; gap: 12px; padding: 16px; }
    .cart-item__image { width: 60px; height: 60px; }
    .filter-bar { padding: 12px 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; gap: 16px; }
    .trust-bar { grid-template-columns: 1fr 1fr; padding: 30px 20px; gap: 20px; }
    .categories-grid { grid-template-columns: 1fr 1fr; }
    nav { gap: 16px; }
    nav a { font-size: 11px; }
}

@media (max-width: 480px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .product-card__image { aspect-ratio: 1; }
    .hero { min-height: 500px; }
    .newsletter-form { flex-direction: column; }
}

/* ── Lazy Loading / Skeleton ──────────────────────────────────────────────── */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.4s ease;
}

img[loading="lazy"].loaded,
img[loading="lazy"][src] {
    opacity: 1;
}

/* ── Animations ───────────────────────────────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* ── Scrollbar ────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ── Global 20% Size Reduction ───────────────────────────────────────────── */
html { font-size: 80%; }

/* ── 20% Smaller Overrides ───────────────────────────────────────────────── */
.container { padding: 64px 32px; }
.header-content { padding: 13px 32px; }
.logo { font-size: 29px; }
.section-title { font-size: clamp(29px, 4vw, 51px); letter-spacing: 6px; }
.hero h1 { font-size: clamp(48px, 10vw, 112px); }
.hero p { font-size: 13px; }
.product-card__info { padding: 19px; }
.product-card__name { font-size: 13px; }
.product-card__price { font-size: 19px; }
.btn { padding: 13px 32px; font-size: 10px; }
.trust-bar { padding: 48px 32px; }
.trust-item__icon { font-size: 22px; }
.trust-item__text { font-size: 10px; }
.footer { padding: 64px 32px 32px; }
.footer-brand { font-size: 26px; }
.footer-desc { font-size: 11px; }
.footer-links a { font-size: 11px; }
.cart-item { padding: 19px; }
.cart-item__image { width: 80px; height: 80px; }
.category-tile__name { font-size: 26px; }
nav a { font-size: 10px; }

/* ── Scroll Animations ───────────────────────────────────────────────────── */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.product-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
}

.product-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.trust-item {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.trust-item.visible {
    opacity: 1;
    transform: translateY(0);
}
