/* ============================================
   PHOENIX FITWEAR - PRODUCTION STOREFRONT
   Mobile-first responsive ecommerce design
   Connected to IronMember backend API
   ============================================ */

/* --- RESET & BASE --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --orange: #EF9717;
    --gold: #F9C619;
    --amber: #D67C25;
    --fire: #F56C0A;
    --card-bg: #111;
    --card-border: #7a5530;
    --text: #e8e0d8;
    --text-muted: #8a7e74;
    --text-dim: #5a524a;
    --success: #2a7a2a;
    --error: #cc3333;
    --nav-height: 60px;
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #000;
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

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

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

/* --- NAVIGATION --- */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(239, 151, 23, 0.15);
    height: var(--nav-height);
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.nav-logo img { height: 30px; width: auto; }

@media (min-width: 768px) {
    .nav-logo img { height: 36px; }
}

.nav-links {
    display: none;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    transition: color 0.3s;
    position: relative;
}

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

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0; right: 0;
    height: 2px;
    background: var(--orange);
    border-radius: 1px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-action-btn {
    position: relative;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid rgba(239, 151, 23, 0.2);
    border-radius: 4px;
    color: var(--text-muted);
    transition: all 0.3s;
}

.nav-action-btn:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.nav-action-btn svg {
    width: 18px; height: 18px;
    fill: none; stroke: currentColor;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.nav-user-btn {
    font-family: 'Oswald', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.4rem 0.75rem;
    background: none;
    border: 1px solid rgba(239, 151, 23, 0.2);
    border-radius: 4px;
    color: var(--text-muted);
    transition: all 0.3s;
    white-space: nowrap;
}

.nav-user-btn:hover { border-color: var(--orange); color: var(--orange); }

.cart-count {
    position: absolute;
    top: -5px; right: -5px;
    width: 18px; height: 18px;
    background: var(--orange);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s;
}

.cart-count.visible { opacity: 1; transform: scale(1); }

/* Mobile menu toggle */
.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px; height: 2px;
    background: var(--text-muted);
    border-radius: 1px;
    transition: all 0.3s;
}

.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-mobile {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(16px);
    z-index: 99;
    padding: 2rem;
}

.nav-mobile.open { display: flex; flex-direction: column; gap: 1.5rem; }

.nav-mobile a {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(239, 151, 23, 0.1);
    transition: color 0.3s;
}

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

/* --- HERO SECTION --- */
.hero {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    min-height: 50vh;
    justify-content: center;
}

.hero-text { max-width: 600px; }

.hero h1 {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: clamp(2.2rem, 8vw, 4.5rem);
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 0.75rem;
}

.hero h1 .line-1 {
    display: block;
    background: linear-gradient(180deg, var(--text) 0%, #c8beb4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
}

.hero h1 .line-2 {
    display: block;
    background: linear-gradient(180deg, var(--gold) 0%, var(--orange) 50%, var(--amber) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
}

.hero-subtitle {
    font-size: clamp(0.85rem, 2.5vw, 1.1rem);
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.hero-logo {
    width: min(320px, 70vw);
    filter: drop-shadow(0 0 40px rgba(239, 151, 23, 0.25));
    animation: heroGlow 4s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { filter: drop-shadow(0 0 40px rgba(239, 151, 23, 0.25)); }
    50% { filter: drop-shadow(0 0 60px rgba(239, 151, 23, 0.4)); }
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.85rem 2rem;
    border: none;
    border-radius: 3px;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--orange) 0%, var(--amber) 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(239, 151, 23, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold) 0%, var(--orange) 100%);
    box-shadow: 0 6px 25px rgba(239, 151, 23, 0.4);
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-outline {
    background: transparent;
    color: var(--orange);
    border: 1px solid var(--orange);
}

.btn-outline:hover {
    background: rgba(239, 151, 23, 0.1);
    box-shadow: 0 0 15px rgba(239, 151, 23, 0.15);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--card-border);
}

.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }

.btn-danger {
    background: transparent;
    color: var(--error);
    border: 1px solid var(--error);
}

.btn-danger:hover { background: rgba(204, 51, 51, 0.1); }

.btn-sm { padding: 0.6rem 1.25rem; font-size: 0.8rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* --- SECTION HEADERS --- */
.section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.section-header { text-align: center; margin-bottom: 2rem; }

.section-header h2 {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.section-header h2 span {
    background: linear-gradient(135deg, var(--gold), var(--orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.section-divider::before,
.section-divider::after {
    content: '';
    width: 60px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--orange));
}

.section-divider::after {
    background: linear-gradient(90deg, var(--orange), transparent);
}

.section-divider .dot {
    width: 6px; height: 6px;
    background: var(--orange);
    transform: rotate(45deg);
}

/* --- CATEGORY FILTERS --- */
.filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2rem;
}

.filter-btn {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.5rem 1.25rem;
    background: transparent;
    border: 1px solid var(--card-border);
    border-radius: 2px;
    color: var(--text-muted);
    transition: all 0.3s;
}

.filter-btn:hover { border-color: var(--orange); color: var(--orange); }

.filter-btn.active {
    background: rgba(239, 151, 23, 0.15);
    border-color: var(--orange);
    color: var(--orange);
}

/* --- PRODUCT GRID --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* --- PRODUCT CARD --- */
.product-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
}

.product-card:hover {
    border-color: var(--orange);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(239, 151, 23, 0.15);
}

.product-card-link { display: block; }

.product-card-image {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: #111;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Placeholder for products without images */
.placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #1a1410 0%, #221a14 50%, #1a1410 100%);
    position: relative;
}

.placeholder-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 40%, rgba(239, 151, 23, 0.08) 0%, transparent 65%);
}

.placeholder-img .phoenix-watermark {
    width: 50%;
    opacity: 0.3;
    filter: grayscale(0.2);
}

/* Product badge */
.product-badge {
    position: absolute;
    top: 8px; left: 8px;
    padding: 0.25rem 0.6rem;
    font-family: 'Oswald', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--orange);
    color: #fff;
    border-radius: 2px;
    z-index: 2;
}

/* Discount badge */
.discount-badge {
    position: absolute;
    top: 8px; right: 8px;
    padding: 0.25rem 0.5rem;
    font-family: 'Oswald', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    background: var(--success);
    color: #fff;
    border-radius: 2px;
    z-index: 2;
}

/* Quick add overlay */
.product-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover .product-card-overlay { opacity: 1; }

.product-card-info {
    padding: 0.75rem;
    text-align: center;
}

.product-card-name {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 0.35rem;
    min-height: 2em;
}

.product-card-price {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--gold), var(--orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-card-price .original-price {
    font-size: 0.8rem;
    font-weight: 400;
    text-decoration: line-through;
    color: var(--text-dim);
    -webkit-text-fill-color: var(--text-dim);
    margin-right: 0.4rem;
}

/* --- PRODUCT DETAIL PAGE --- */
.product-detail {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.product-detail-image {
    aspect-ratio: 3/4;
    max-height: 500px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 4px;
    overflow: hidden;
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-image .placeholder-img { height: 100%; }

.product-detail-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.product-detail-breadcrumb {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.product-detail-breadcrumb a { transition: color 0.3s; }
.product-detail-breadcrumb a:hover { color: var(--orange); }
.product-detail-breadcrumb span { color: var(--text-dim); margin: 0 0.4rem; }

.product-detail-name {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.15;
}

.product-detail-price {
    font-family: 'Oswald', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.product-detail-price .final-price {
    background: linear-gradient(135deg, var(--gold), var(--orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-detail-price .original-price {
    font-size: 1.1rem;
    font-weight: 400;
    text-decoration: line-through;
    color: var(--text-dim);
}

.product-detail-price .discount-tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    background: var(--success);
    color: #fff;
    border-radius: 2px;
}

.product-detail-desc {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text-muted);
}
.product-detail-desc p { margin: 0 0 0.75rem 0; }
.product-detail-desc p:last-child { margin-bottom: 0; }
.product-detail-desc strong, .product-detail-desc b { color: var(--text-light); font-weight: 600; }
.product-detail-desc em, .product-detail-desc i { font-style: italic; }
.product-detail-desc h1, .product-detail-desc h2, .product-detail-desc h3 {
    font-family: 'Oswald', sans-serif;
    color: var(--text-light);
    margin: 1rem 0 0.5rem 0;
}
.product-detail-desc h1 { font-size: 1.4rem; }
.product-detail-desc h2 { font-size: 1.2rem; }
.product-detail-desc h3 { font-size: 1.05rem; }
.product-detail-desc ul, .product-detail-desc ol { margin: 0.5rem 0; padding-left: 1.5rem; }
.product-detail-desc li { margin-bottom: 0.25rem; }
.product-detail-desc blockquote {
    border-left: 3px solid var(--orange);
    padding-left: 1rem;
    margin: 0.75rem 0;
    color: var(--text-dim);
    font-style: italic;
}
.product-detail-desc a { color: var(--orange); text-decoration: underline; }
.product-detail-desc a:hover { color: var(--gold); }
.product-detail-desc pre {
    background: rgba(255,255,255,0.04);
    padding: 0.75rem;
    border-radius: 4px;
    overflow-x: auto;
    font-family: monospace;
    font-size: 0.85rem;
}

/* Specifications */
.product-specs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-specs dt {
    font-family: 'Oswald', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.product-specs dd {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

/* Quantity */
.quantity-selector {
    display: flex;
    align-items: center;
}

.quantity-selector button {
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: all 0.2s;
}

.quantity-selector button:hover { border-color: var(--orange); color: var(--orange); }
.quantity-selector button:first-child { border-radius: 3px 0 0 3px; }
.quantity-selector button:last-child { border-radius: 0 3px 3px 0; }

.quantity-selector input {
    width: 50px; height: 40px;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-left: none; border-right: none;
    color: var(--text);
    outline: none;
}

.add-to-cart-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

/* --- CART PAGE --- */
.cart-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

.cart-empty {
    text-align: center;
    padding: 4rem 1rem;
}

.cart-empty h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}

.cart-empty p {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1rem;
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 4px;
    align-items: center;
}

.cart-item-image {
    width: 80px; height: 100px;
    border-radius: 3px;
    overflow: hidden;
    background: #111;
}

.cart-item-image img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.cart-item-image .placeholder-img { height: 100%; }

.cart-item-details {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0;
}

.cart-item-name {
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.cart-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.cart-item-price {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--orange);
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s;
}

.cart-item-remove:hover { color: #e55; }

/* Cart summary */
.cart-summary {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 4px;
    padding: 1.5rem;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.cart-summary-row.total {
    border-top: 1px solid var(--card-border);
    margin-top: 0.5rem;
    padding-top: 1rem;
    font-family: 'Oswald', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
}

.cart-summary-row.total .cart-total-price {
    background: linear-gradient(135deg, var(--gold), var(--orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
}

.cart-actions {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* --- AUTH PAGES (LOGIN, REGISTER, FORGOT, RESET) --- */
.auth-page {
    max-width: 420px;
    margin: 0 auto;
    padding: 3rem 1rem;
    min-height: calc(100vh - var(--nav-height) - 200px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo img {
    height: 60px;
    margin: 0 auto 1rem;
}

.auth-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 6px;
    padding: 2rem 1.5rem;
}

.auth-card h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    margin-bottom: 0.5rem;
}

.auth-card .auth-subtitle {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-form .form-group { margin-bottom: 0; }

.auth-form .btn { margin-top: 0.5rem; }

.auth-links {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.auth-links a {
    color: var(--orange);
    transition: color 0.3s;
}

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

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.75rem 0;
    color: var(--text-dim);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--card-border);
}

/* Password strength indicator */
.password-strength {
    display: flex;
    gap: 4px;
    margin-top: 0.35rem;
}

.password-strength-bar {
    flex: 1;
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    transition: background 0.3s;
}

.password-strength-bar.active-weak { background: var(--error); }
.password-strength-bar.active-fair { background: var(--amber); }
.password-strength-bar.active-good { background: var(--gold); }
.password-strength-bar.active-strong { background: var(--success); }

.password-hint {
    font-size: 0.72rem;
    color: var(--text-dim);
    margin-top: 0.3rem;
}

/* --- FORM ELEMENTS (shared) --- */
.form-group label {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--card-border);
    border-radius: 3px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: rgba(239, 151, 23, 0.5);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-dim);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a7e74' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 2.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.form-error {
    font-size: 0.78rem;
    color: var(--error);
    margin-top: 0.3rem;
}

.form-group.has-error input,
.form-group.has-error select {
    border-color: var(--error);
}

/* --- ALERTS --- */
.alert {
    padding: 0.85rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.alert-error {
    background: rgba(204, 51, 51, 0.1);
    border: 1px solid rgba(204, 51, 51, 0.3);
    color: #f08080;
}

.alert-success {
    background: rgba(42, 122, 42, 0.1);
    border: 1px solid rgba(42, 122, 42, 0.3);
    color: #6fbf6f;
}

.alert-info {
    background: rgba(239, 151, 23, 0.08);
    border: 1px solid rgba(239, 151, 23, 0.2);
    color: var(--orange);
}

/* --- ACCOUNT DASHBOARD --- */
.account-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

.account-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.account-header h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.account-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--card-border);
    margin-bottom: 2rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.account-tab {
    font-family: 'Oswald', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.75rem 1.25rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    transition: all 0.3s;
    white-space: nowrap;
}

.account-tab:hover { color: var(--text); }

.account-tab.active {
    color: var(--orange);
    border-bottom-color: var(--orange);
}

.account-section {
    display: none;
}

.account-section.active {
    display: block;
}

/* Membership status */
.membership-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 6px;
    padding: 1.5rem;
    text-align: center;
}

.membership-tier {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.tier-bronze { color: #cd7f32; }
.tier-silver { color: #c0c0c0; }
.tier-gold { color: var(--gold); }
.tier-none { color: var(--text-dim); }

.membership-status {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.status-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    font-family: 'Oswald', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 3px;
    margin-left: 0.5rem;
}

.status-badge.approved { background: rgba(42,122,42,0.15); color: #6fbf6f; border: 1px solid rgba(42,122,42,0.3); }
.status-badge.pending { background: rgba(239,151,23,0.1); color: var(--orange); border: 1px solid rgba(239,151,23,0.3); }
.status-badge.rejected { background: rgba(204,51,51,0.1); color: #f08080; border: 1px solid rgba(204,51,51,0.3); }

/* Order history */
.order-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 4px;
    padding: 1.25rem;
    transition: border-color 0.3s;
    cursor: pointer;
}

.order-card:hover { border-color: rgba(239, 151, 23, 0.4); }

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.order-number {
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.order-status {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
}

.order-status.confirmed { background: rgba(42,122,42,0.15); color: #6fbf6f; }
.order-status.processing { background: rgba(239,151,23,0.1); color: var(--orange); }
.order-status.shipped { background: rgba(100,149,237,0.15); color: #6495ed; }
.order-status.delivered { background: rgba(42,122,42,0.15); color: #6fbf6f; }
.order-status.pending_payment { background: rgba(239,151,23,0.1); color: var(--amber); }
.order-status.cancelled { background: rgba(204,51,51,0.1); color: #f08080; }
.order-status.refunded { background: rgba(150,150,150,0.1); color: #999; }

.order-card-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Address list */
.address-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.address-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 4px;
    padding: 1.25rem;
    position: relative;
}

.address-card.default { border-color: rgba(239, 151, 23, 0.4); }

.address-label {
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--orange);
    margin-bottom: 0.5rem;
}

.address-text {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.address-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.address-actions button {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: none;
    border: none;
    color: var(--text-dim);
    transition: color 0.3s;
}

.address-actions button:hover { color: var(--orange); }
.address-actions .delete-btn:hover { color: var(--error); }

/* --- CHECKOUT PAGE --- */
.checkout-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

.checkout-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.checkout-section {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 6px;
    padding: 1.5rem;
}

.checkout-section h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--orange);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--card-border);
}

/* Stripe card element container */
.stripe-element {
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--card-border);
    border-radius: 3px;
    transition: border-color 0.3s;
}

.stripe-element.StripeElement--focus {
    border-color: rgba(239, 151, 23, 0.5);
}

.stripe-element.StripeElement--invalid {
    border-color: var(--error);
}

/* Checkout order summary */
.checkout-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.checkout-summary-item.total {
    border-top: 1px solid var(--card-border);
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    font-weight: 600;
    color: var(--text);
    font-size: 1rem;
}

/* Saved address selector */
.address-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid var(--card-border);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 0.75rem;
}

.address-option:hover { border-color: rgba(239,151,23,0.4); }

.address-option.selected {
    border-color: var(--orange);
    background: rgba(239,151,23,0.05);
}

.address-option input[type="radio"] {
    accent-color: var(--orange);
    margin-top: 0.2rem;
}

/* --- VERIFY EMAIL PAGE --- */
.verify-page {
    max-width: 420px;
    margin: 0 auto;
    padding: 4rem 1rem;
    text-align: center;
}

.verify-icon {
    width: 80px; height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 151, 23, 0.1);
    border-radius: 50%;
    border: 1px solid rgba(239, 151, 23, 0.2);
}

.verify-icon svg {
    width: 36px; height: 36px;
    stroke: var(--orange);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* --- LOADING SPINNER --- */
.spinner {
    display: inline-block;
    width: 20px; height: 20px;
    border: 2px solid rgba(239, 151, 23, 0.2);
    border-top-color: var(--orange);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.spinner-lg { width: 40px; height: 40px; border-width: 3px; }

.loading-center {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- PAGINATION --- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination button {
    font-family: 'Oswald', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    min-width: 38px; height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--card-border);
    border-radius: 3px;
    color: var(--text-muted);
    transition: all 0.3s;
}

.pagination button:hover { border-color: var(--orange); color: var(--orange); }

.pagination button.active {
    background: rgba(239, 151, 23, 0.15);
    border-color: var(--orange);
    color: var(--orange);
}

.pagination button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* --- EMPTY STATES --- */
.empty-state {
    text-align: center;
    padding: 4rem 1rem;
}

.empty-state h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

/* --- FOOTER --- */
.site-footer {
    margin-top: 3rem;
    border-top: 1px solid rgba(239, 151, 23, 0.1);
    padding: 2rem 1rem;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.footer-brand {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: color 0.3s;
}

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

.footer-copy {
    font-size: 0.7rem;
    color: var(--text-dim);
}

/* --- TOAST NOTIFICATION --- */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--card-bg);
    border: 1px solid var(--orange);
    border-radius: 4px;
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
    color: var(--text);
    z-index: 200;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* --- SEARCH OVERLAY --- */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 150;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
}

.search-overlay.open { display: flex; }

.search-box {
    width: min(500px, 90vw);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-input-wrap {
    display: flex;
    border: 1px solid rgba(239, 151, 23, 0.3);
    border-radius: 4px;
    overflow: hidden;
}

.search-input-wrap input {
    flex: 1;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    outline: none;
}

.search-input-wrap input::placeholder { color: var(--text-dim); }

.search-close {
    padding: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
}

.search-results {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 3px;
    transition: border-color 0.3s;
}

.search-result-item:hover { border-color: rgba(239, 151, 23, 0.3); }

.search-result-thumb {
    width: 48px; height: 60px;
    background: #1a1410;
    border-radius: 2px;
    flex-shrink: 0;
    overflow: hidden;
}

.search-result-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.search-result-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.search-result-name { font-size: 0.85rem; }
.search-result-price { font-size: 0.8rem; color: var(--orange); }

/* --- ABOUT & CONTACT PAGES --- */
.content-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.content-page .section-header { margin-bottom: 2.5rem; }

.content-block { margin-bottom: 2.5rem; }

.content-block h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--orange);
    margin-bottom: 0.75rem;
}

.content-block p {
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.value-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 4px;
    padding: 1.5rem;
    text-align: center;
    transition: border-color 0.3s;
}

.value-card:hover { border-color: rgba(239, 151, 23, 0.4); }

.value-card .value-icon {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    display: block;
}

.value-card h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.value-card p {
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* Contact info */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.contact-info-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 4px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-info-card .info-icon {
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 151, 23, 0.1);
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-info-card .info-icon svg {
    width: 18px; height: 18px;
    stroke: var(--orange);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-info-card h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.contact-info-card p {
    font-size: 0.85rem;
    color: var(--text);
}

/* --- MARKETING SECTIONS (Homepage for unauthenticated) --- */
.marketing-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 1rem;
    text-align: center;
}

.marketing-section h2 {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.marketing-section p {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.tier-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
}

.tier-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 6px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s;
}

.tier-card:hover {
    border-color: rgba(239, 151, 23, 0.4);
    transform: translateY(-2px);
}

.tier-card h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.tier-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

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

.animate-in { animation: fadeInUp 0.5s ease-out both; }

/* --- UTILITY --- */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.hidden { display: none !important; }

/* --- RESPONSIVE: SMALL TABLET --- */
@media (min-width: 640px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
    .cart-item { grid-template-columns: 100px 1fr; }
    .cart-item-image { width: 100px; height: 120px; }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr 1fr; }
    .contact-info-grid { grid-template-columns: repeat(3, 1fr); }
    .address-list { grid-template-columns: repeat(2, 1fr); }
    .tier-cards { grid-template-columns: repeat(3, 1fr); }
}

/* --- RESPONSIVE: TABLET --- */
@media (min-width: 768px) {
    .nav-links { display: flex; }
    .nav-toggle { display: none; }
    .nav-inner { padding: 0 2rem; }

    .hero {
        flex-direction: row;
        text-align: left;
        padding: 3rem 2rem;
        min-height: 60vh;
        gap: 3rem;
    }
    .hero-text { flex: 1; }
    .hero-logo { width: 380px; }
    .hero-actions { justify-content: flex-start; }

    .section { padding: 3rem 2rem; }

    .product-detail {
        flex-direction: row;
        padding: 2rem;
        gap: 3rem;
    }
    .product-detail-image { flex: 1; max-height: none; }
    .product-detail-info { flex: 1; }

    .cart-page { padding: 2rem; }
    .account-page { padding: 2rem; }
    .checkout-page { padding: 2rem; }

    .checkout-grid {
        display: grid;
        grid-template-columns: 1fr 350px;
        gap: 2rem;
    }

    .content-page { padding: 3rem 2rem; }

    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* --- RESPONSIVE: DESKTOP --- */
@media (min-width: 1024px) {
    .product-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
    .hero { padding: 4rem 2rem; }
    .hero-logo { width: 420px; }
    .product-card-name { font-size: 0.82rem; }
}

@media (min-width: 1280px) {
    .hero-logo { width: 480px; }
}
