/* ===== REMNANT SUPPLY — SHARED STORE STYLES ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --black: #0a0a0a;
    --charcoal: #141414;
    --dark-gray: #1a1a1a;
    --mid-gray: #2a2a2a;
    --light-gray: #8a8a8a;
    --off-white: #e8e4df;
    --cream: #f5f0eb;
    --accent: #c4763a;
    --accent-glow: #d4894d;
    --accent-dark: #a5612e;
    --danger: #c43a3a;
    --success: #3ac46a;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--black);
    color: var(--off-white);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Noise texture */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: 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.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 60px);
    position: relative;
    z-index: 2;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-glow); }

/* ===== NAV ===== */
.store-nav {
    padding: 28px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--mid-gray);
}

.store-nav .logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--cream);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.store-nav .logo .logo-icon {
    width: 32px;
    height: 38px;
    flex-shrink: 0;
}

.store-nav .logo:hover .logo-icon {
    filter: drop-shadow(0 0 6px rgba(196, 118, 58, 0.4));
    transition: filter 0.3s ease;
}

.store-nav .nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.store-nav .nav-links a {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--light-gray);
    text-decoration: none;
    transition: color 0.2s;
}

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

.cart-link {
    position: relative;
}

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

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

/* ===== MOBILE NAV ===== */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--cream);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(10, 10, 10, 0.97);
    z-index: 1000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.mobile-nav-overlay.open {
    display: flex;
}

.mobile-nav-overlay a {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cream);
    text-decoration: none;
}

/* ===== BOGO BANNER ===== */
.bogo-banner {
    background: var(--charcoal);
    border-bottom: 1px solid var(--mid-gray);
    padding: 12px 0;
    text-align: center;
}

.bogo-banner p {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--light-gray);
}

.bogo-banner .bogo-highlight {
    color: var(--accent);
    font-weight: 500;
}

.bogo-banner .bogo-count {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    color: var(--cream);
}

/* ===== PRODUCT GRID ===== */
.shop-header {
    padding: clamp(60px, 10vh, 100px) 0 clamp(40px, 6vh, 60px);
}

.shop-header h1 {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--cream);
    margin-bottom: 16px;
}

.shop-header p {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: var(--light-gray);
    font-weight: 300;
    max-width: 600px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
    gap: 2px;
    margin-bottom: clamp(60px, 10vh, 120px);
}

.product-card {
    background: var(--charcoal);
    transition: background 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card:hover {
    background: var(--dark-gray);
}

.product-card:hover .product-image {
    transform: scale(1.02);
}

.product-image {
    aspect-ratio: 4/5;
    background: var(--dark-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.4s ease;
    position: relative;
}

.product-image .placeholder-icon {
    font-size: 4rem;
    opacity: 0.15;
    color: var(--light-gray);
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
    line-height: 1.2;
}

.product-image .product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--accent);
    color: var(--black);
    font-family: 'Syne', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 6px 12px;
}

/* Product images */
.product-image .product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

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

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

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

/* Placeholder product images using CSS art */
.product-image .product-art {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-art .cross-symbol {
    width: 80px;
    height: 100px;
    position: relative;
    opacity: 0.12;
}

.product-art .cross-symbol::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 100%;
    background: var(--cream);
}

.product-art .cross-symbol::after {
    content: '';
    position: absolute;
    top: 28%;
    left: 0;
    width: 100%;
    height: 16px;
    background: var(--cream);
}

.product-art .garment-outline {
    position: absolute;
    width: 65%;
    height: 70%;
    border: 1px solid rgba(232, 228, 223, 0.06);
    border-radius: 4px;
}

.product-info {
    padding: clamp(20px, 3vw, 32px);
}

.product-info h3 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    color: var(--cream);
    margin-bottom: 6px;
}

.product-info .product-tagline {
    font-size: 0.85rem;
    color: var(--light-gray);
    font-weight: 300;
    margin-bottom: 16px;
}

.product-info .product-price {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent);
}

.product-info .product-give {
    font-size: 0.75rem;
    color: var(--light-gray);
    font-weight: 300;
    margin-top: 4px;
    letter-spacing: 0.05em;
}

/* ===== PRODUCT DETAIL ===== */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    padding: clamp(60px, 10vh, 100px) 0;
    align-items: start;
}

.product-detail-image {
    aspect-ratio: 4/5;
    background: var(--charcoal);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-detail-info h1 {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: var(--cream);
    margin-bottom: 8px;
    line-height: 1.1;
}

.product-detail-info .detail-tagline {
    font-size: clamp(0.95rem, 1.3vw, 1.1rem);
    color: var(--accent);
    font-weight: 400;
    margin-bottom: 24px;
    font-style: italic;
}

.product-detail-info .detail-price {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: var(--cream);
    margin-bottom: 8px;
}

.product-detail-info .detail-give {
    font-size: 0.85rem;
    color: var(--light-gray);
    font-weight: 300;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--mid-gray);
}

.product-detail-info .detail-description {
    font-size: clamp(0.95rem, 1.3vw, 1.05rem);
    color: var(--light-gray);
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 40px;
}

/* Size selector */
.size-selector {
    margin-bottom: 32px;
}

.size-selector label {
    display: block;
    font-family: 'Syne', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--light-gray);
    margin-bottom: 12px;
}

.size-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.size-btn {
    background: var(--charcoal);
    border: 1px solid var(--mid-gray);
    color: var(--off-white);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 52px;
    text-align: center;
}

.size-btn:hover {
    border-color: var(--light-gray);
    background: var(--dark-gray);
}

.size-btn.selected {
    border-color: var(--accent);
    background: rgba(196, 118, 58, 0.1);
    color: var(--accent);
}

/* Add to cart button */
.btn-add-cart {
    width: 100%;
    padding: 18px 32px;
    background: var(--accent);
    color: var(--black);
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 16px;
}

.btn-add-cart:hover {
    background: var(--accent-glow);
    transform: translateY(-1px);
}

.btn-add-cart:active {
    transform: translateY(0);
}

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

.btn-buy-now {
    width: 100%;
    padding: 18px 32px;
    background: transparent;
    color: var(--cream);
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: 1px solid var(--mid-gray);
    cursor: pointer;
    transition: all 0.3s;
}

.btn-buy-now:hover {
    border-color: var(--cream);
}

.detail-bogo-note {
    margin-top: 32px;
    padding: 24px;
    background: var(--charcoal);
    border-left: 3px solid var(--accent);
}

.detail-bogo-note p {
    font-size: 0.9rem;
    color: var(--light-gray);
    line-height: 1.7;
    font-weight: 300;
}

.detail-bogo-note strong {
    color: var(--cream);
    font-weight: 500;
}

/* ===== CART PAGE ===== */
.cart-header {
    padding: clamp(60px, 10vh, 100px) 0 clamp(30px, 4vh, 50px);
}

.cart-header h1 {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--cream);
}

.cart-empty {
    text-align: center;
    padding: clamp(80px, 15vh, 160px) 0;
}

.cart-empty p {
    font-size: 1.1rem;
    color: var(--light-gray);
    font-weight: 300;
    margin-bottom: 32px;
}

.cart-empty a {
    display: inline-block;
    padding: 16px 40px;
    background: var(--accent);
    color: var(--black);
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.3s;
}

.cart-empty a:hover {
    background: var(--accent-glow);
    color: var(--black);
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: clamp(40px, 5vw, 80px);
    padding-bottom: clamp(80px, 12vh, 140px);
    align-items: start;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cart-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 24px;
    background: var(--charcoal);
    padding: 24px;
    align-items: center;
}

.cart-item-image {
    aspect-ratio: 1;
    background: var(--dark-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-details h3 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--cream);
    margin-bottom: 4px;
}

.cart-item-details .cart-item-size {
    font-size: 0.8rem;
    color: var(--light-gray);
    font-weight: 300;
    margin-bottom: 12px;
}

.cart-item-details .cart-item-price {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    color: var(--accent);
}

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

.qty-control {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    background: var(--dark-gray);
    border: 1px solid var(--mid-gray);
    color: var(--cream);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s;
}

.qty-btn:hover {
    border-color: var(--light-gray);
}

.qty-value {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--cream);
    min-width: 24px;
    text-align: center;
}

.cart-remove {
    background: none;
    border: none;
    color: var(--light-gray);
    font-size: 0.75rem;
    cursor: pointer;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.2s;
}

.cart-remove:hover {
    color: var(--danger);
}

/* Cart summary */
.cart-summary {
    background: var(--charcoal);
    padding: clamp(28px, 4vw, 40px);
    position: sticky;
    top: 40px;
}

.cart-summary h2 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--cream);
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--mid-gray);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.summary-row .label {
    color: var(--light-gray);
    font-weight: 300;
}

.summary-row .value {
    color: var(--cream);
    font-weight: 500;
}

.summary-row.total {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--mid-gray);
    font-size: 1.1rem;
}

.summary-row.total .value {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    color: var(--accent);
}

.summary-bogo {
    margin: 24px 0;
    padding: 16px;
    background: rgba(196, 118, 58, 0.08);
    border-left: 2px solid var(--accent);
}

.summary-bogo p {
    font-size: 0.8rem;
    color: var(--light-gray);
    line-height: 1.6;
}

.summary-bogo strong {
    color: var(--accent);
}

.btn-checkout {
    width: 100%;
    padding: 18px 32px;
    background: var(--accent);
    color: var(--black);
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-checkout:hover {
    background: var(--accent-glow);
    transform: translateY(-1px);
}

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

.continue-shopping {
    display: block;
    text-align: center;
    margin-top: 16px;
    font-size: 0.8rem;
    color: var(--light-gray);
    text-decoration: none;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ===== SUCCESS PAGE ===== */
.success-page {
    text-align: center;
    padding: clamp(100px, 18vh, 200px) 0;
}

.success-icon {
    width: 80px;
    height: 80px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 40px;
    font-size: 2rem;
}

.success-page h1 {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--cream);
    margin-bottom: 16px;
}

.success-page .success-sub {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--light-gray);
    font-weight: 300;
    max-width: 500px;
    margin: 0 auto 48px;
    line-height: 1.7;
}

.success-bogo-card {
    background: var(--charcoal);
    padding: clamp(32px, 5vw, 56px);
    max-width: 500px;
    margin: 0 auto 48px;
    position: relative;
}

.success-bogo-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-glow));
}

.success-bogo-card .bogo-label {
    font-family: 'Syne', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.success-bogo-card .bogo-number-large {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(3rem, 8vw, 5rem);
    color: var(--cream);
    line-height: 1;
    margin-bottom: 8px;
}

.success-bogo-card .bogo-text {
    font-size: 0.95rem;
    color: var(--light-gray);
    font-weight: 300;
}

.success-page .btn-back-shop {
    display: inline-block;
    padding: 16px 40px;
    background: var(--accent);
    color: var(--black);
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.3s;
}

.success-page .btn-back-shop:hover {
    background: var(--accent-glow);
    color: var(--black);
}

/* ===== BOGO SECTION (SHOP PAGE) ===== */
.shop-bogo-section {
    padding: clamp(60px, 10vh, 100px) 0;
    text-align: center;
    position: relative;
}

.shop-bogo-section::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(196, 118, 58, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.shop-bogo-section .counter-value {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(4rem, 10vw, 8rem);
    color: var(--cream);
    line-height: 1;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}

.shop-bogo-section .counter-label {
    font-family: 'Syne', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.shop-bogo-section .counter-desc {
    font-size: clamp(0.95rem, 1.3vw, 1.05rem);
    color: var(--light-gray);
    font-weight: 300;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.7;
    position: relative;
    z-index: 2;
}

/* ===== FOOTER ===== */
.store-footer {
    padding: 40px 0;
    border-top: 1px solid var(--mid-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.store-footer .footer-left {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--light-gray);
    display: flex;
    align-items: center;
    gap: 10px;
}

.store-footer .footer-logo-icon {
    width: 22px;
    height: 26px;
    opacity: 0.6;
}

.store-footer .footer-right {
    font-size: 0.8rem;
    color: var(--light-gray);
    font-weight: 300;
}

/* ===== DIVIDER ===== */
.divider {
    height: 1px;
    background: linear-gradient(90deg, var(--mid-gray) 0%, transparent 100%);
    margin: 0;
}

/* ===== TOAST NOTIFICATION ===== */
.toast {
    position: fixed;
    bottom: 32px;
    right: 32px;
    background: var(--charcoal);
    border: 1px solid var(--mid-gray);
    border-left: 3px solid var(--accent);
    padding: 16px 24px;
    z-index: 9999;
    transform: translateY(120%);
    opacity: 0;
    transition: all 0.4s ease;
    max-width: 320px;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast p {
    font-size: 0.85rem;
    color: var(--cream);
}

.toast .toast-sub {
    font-size: 0.75rem;
    color: var(--light-gray);
    margin-top: 4px;
}

/* ===== LOADING SPINNER ===== */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 2px solid var(--mid-gray);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .store-nav .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

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

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

    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 16px;
    }

    .cart-item-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
    }

    .store-footer {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .cart-summary {
        position: static;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}
