/* Shop Styles — PromptForgeHQ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #6366f1; --primary-light: #818cf8; --accent: #06b6d4;
    --bg: #0a0a1a; --text: #e2e8f0; --text-muted: #94a3b8; --text-bright: #f8fafc;
    --glass-bg: rgba(255, 255, 255, 0.06); --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); --blur: 20px;
    --radius: 16px; --radius-sm: 10px; --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --green: #10b981; --orange: #f59e0b; --rose: #f43f5e;
}

html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, sans-serif; background: var(--bg);
    color: var(--text); line-height: 1.6; overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.glass {
    background: var(--glass-bg); backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur)); border: 1px solid var(--glass-border);
    border-radius: var(--radius); box-shadow: var(--glass-shadow);
}

/* Background */
.bg-gradient {
    position: fixed; inset: 0; z-index: -2;
    background: radial-gradient(ellipse at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
}
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.3; animation: float 20s infinite ease-in-out; }
.orb-1 { width: 400px; height: 400px; background: var(--primary); top: -100px; left: -100px; }
.orb-2 { width: 300px; height: 300px; background: var(--accent); bottom: -50px; right: -50px; animation-delay: -10s; }
@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

/* Nav */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 16px 0;
    background: rgba(10, 10, 26, 0.7); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; text-decoration: none; color: inherit; }
.logo-icon { color: var(--primary-light); font-size: 1.3rem; }
.logo-text { color: var(--text-bright); }
.logo-accent { color: var(--primary-light); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--text-muted); font-size: 0.9rem; text-decoration: none; transition: color var(--transition); }
.nav-links a:hover { color: var(--text-bright); }

/* Shop Hero */
.shop-hero { padding: 120px 0 40px; }
.shop-hero-card { padding: 48px; text-align: center; }
.shop-badge { display: inline-block; padding: 8px 20px; background: rgba(99, 102, 241, 0.15); border: 1px solid rgba(99, 102, 241, 0.3); border-radius: 100px; font-size: 0.85rem; color: var(--primary-light); margin-bottom: 20px; }
.shop-hero-card h1 { font-size: 2.8rem; font-weight: 800; color: var(--text-bright); margin-bottom: 16px; }
.gradient-text { background: linear-gradient(135deg, var(--primary-light), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.shop-hero-card p { font-size: 1.1rem; color: var(--text-muted); max-width: 560px; margin: 0 auto 28px; }

/* Hero Stats */
.hero-stats { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; }
.hero-stat { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--text-muted); }
.hero-stat-icon { font-size: 1.1rem; }
.hero-stat-value { color: var(--text-bright); font-weight: 600; }

/* Trust Bar */
.trust-bar {
    display: flex; justify-content: center; gap: 28px; flex-wrap: wrap;
    padding: 16px 0 0;
}
.trust-item {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.8rem; color: var(--text-muted);
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 100px;
}
.trust-icon { font-size: 1rem; }

/* Products */
.products-section { padding: 40px 0 100px; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 28px; }

.product-card {
    padding: 0; overflow: hidden; transition: all var(--transition); cursor: pointer;
    display: flex; flex-direction: column; position: relative;
    text-decoration: none; color: inherit;
}
.product-card:hover { transform: translateY(-8px); border-color: rgba(99, 102, 241, 0.4); box-shadow: 0 20px 60px rgba(99, 102, 241, 0.15); }

.product-cover-wrapper {
    position: relative; width: 100%; aspect-ratio: 16/10;
    overflow: hidden; background: rgba(99, 102, 241, 0.08);
    border-bottom: 1px solid var(--glass-border);
}
.product-cover { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-cover { transform: scale(1.05); }
.product-cover-placeholder {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    font-size: 3rem; opacity: 0.3;
}

/* Badges on card */
.product-badges {
    position: absolute; top: 12px; left: 12px;
    display: flex; gap: 6px; flex-wrap: wrap;
}
.badge {
    padding: 4px 10px; border-radius: 100px;
    font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-new { background: rgba(244, 63, 94, 0.2); border: 1px solid rgba(244, 63, 94, 0.4); color: #fb7185; }
.badge-category { background: rgba(6, 182, 212, 0.15); border: 1px solid rgba(6, 182, 212, 0.3); color: var(--accent); }

.product-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.product-name { font-size: 1.15rem; font-weight: 600; color: var(--text-bright); margin-bottom: 8px; line-height: 1.4; }
.product-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; flex: 1; }
.product-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-price { font-size: 1.4rem; font-weight: 700; color: var(--text-bright); }

.btn-buy {
    padding: 10px 22px; background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white; border: none; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.88rem;
    cursor: pointer; transition: all var(--transition); font-family: inherit; white-space: nowrap;
}
.btn-buy:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4); }
.btn-buy:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Skeleton Loading */
.skeleton-card { padding: 0; overflow: hidden; }
.skeleton-cover {
    width: 100%; aspect-ratio: 16/10;
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
.skeleton-body { padding: 24px; }
.skeleton-line {
    height: 14px; border-radius: 7px; margin-bottom: 12px;
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
.skeleton-line.title { width: 70%; height: 18px; }
.skeleton-line.text { width: 100%; }
.skeleton-line.text.short { width: 60%; }
.skeleton-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.skeleton-price { width: 60px; height: 28px; border-radius: 7px; background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; }
.skeleton-btn { width: 100px; height: 40px; border-radius: var(--radius-sm); background: linear-gradient(90deg, rgba(99,102,241,0.15) 25%, rgba(99,102,241,0.25) 50%, rgba(99,102,241,0.15) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; }

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

/* Empty State */
.empty-card { padding: 80px 40px; text-align: center; grid-column: 1 / -1; }
.empty-icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.5; }
.empty-card p { color: var(--text-muted); font-size: 1.1rem; }
.empty-card .empty-sub { font-size: 0.9rem; margin-top: 8px; opacity: 0.7; }

/* Error State */
.loading-card { padding: 60px; text-align: center; grid-column: 1 / -1; }
.spinner { width: 40px; height: 40px; border: 3px solid var(--glass-border); border-top-color: var(--primary-light); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 16px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Footer */
.footer { padding: 40px 0; border-top: 1px solid var(--glass-border); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.footer-copy { font-size: 0.8rem; color: var(--text-muted); }

/* ======================== */
/* Product Detail Page      */
/* ======================== */
.detail-section { padding: 120px 0 60px; }
.detail-card { padding: 0; overflow: hidden; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.detail-image-wrapper {
    position: relative; aspect-ratio: 1; overflow: hidden;
    background: rgba(99, 102, 241, 0.06);
    border-right: 1px solid var(--glass-border);
}
.detail-image { width: 100%; height: 100%; object-fit: cover; }
.detail-image-placeholder {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    font-size: 5rem; opacity: 0.2;
}
.detail-badges { position: absolute; top: 20px; left: 20px; display: flex; gap: 8px; flex-wrap: wrap; }

.detail-info { padding: 40px; display: flex; flex-direction: column; }
.detail-back { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 0.85rem; text-decoration: none; margin-bottom: 24px; transition: color var(--transition); }
.detail-back:hover { color: var(--text-bright); }
.detail-name { font-size: 2rem; font-weight: 700; color: var(--text-bright); margin-bottom: 16px; line-height: 1.3; }
.detail-description { font-size: 1rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 28px; }

.detail-price-row { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.detail-price { font-size: 2.2rem; font-weight: 800; color: var(--text-bright); }
.detail-price-note { font-size: 0.8rem; color: var(--text-muted); }

.btn-buy-large {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 16px 40px; background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white; border: none; border-radius: var(--radius-sm); font-weight: 700; font-size: 1.1rem;
    cursor: pointer; transition: all var(--transition); font-family: inherit; text-align: center;
    margin-bottom: 24px;
}
.btn-buy-large:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4); }
.btn-buy-large:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.detail-trust { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.detail-trust-item { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--text-muted); }
.detail-trust-item .t-icon { font-size: 1rem; }

/* Features */
.detail-features { padding: 40px; border-top: 1px solid var(--glass-border); }
.detail-features h3 { font-size: 1.1rem; font-weight: 600; color: var(--text-bright); margin-bottom: 20px; }
.features-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feature-item { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--text-muted); }
.feature-check { color: var(--green); font-weight: 700; }

/* Related Products */
.related-section { padding: 40px 0 100px; }
.related-section h2 { font-size: 1.5rem; font-weight: 700; color: var(--text-bright); margin-bottom: 28px; text-align: center; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .shop-hero-card h1 { font-size: 2rem; }
    .products-grid { grid-template-columns: 1fr; }
    .trust-bar { gap: 12px; }
    .trust-item { font-size: 0.75rem; padding: 6px 12px; }
    .hero-stats { gap: 20px; }

    .detail-grid { grid-template-columns: 1fr; }
    .detail-image-wrapper { border-right: none; border-bottom: 1px solid var(--glass-border); aspect-ratio: 16/10; }
    .detail-info { padding: 28px; }
    .detail-name { font-size: 1.5rem; }
    .features-list { grid-template-columns: 1fr; }
}

/* ===== Sale Styles ===== */
.sale-banner {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 99;
    background: linear-gradient(135deg, #dc2626, #ea580c);
    padding: 10px 0;
    text-align: center;
    color: white;
    font-size: 0.9rem;
}

.sale-banner .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.sale-icon { font-size: 1.2rem; }
.sale-text strong { font-weight: 700; }
.sale-timer {
    background: rgba(0,0,0,0.3);
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-family: monospace;
    font-size: 0.95rem;
}

.original-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.85em;
    margin-right: 6px;
}

.sale-price {
    color: #f87171;
    font-weight: 700;
}

.btn-original {
    text-decoration: line-through;
    opacity: 0.7;
    font-size: 0.85em;
    margin-left: 4px;
}

/* Adjust content for sale banner */
.shop-hero { padding-top: 140px; }
