/* ═══════════════════════════════════════════
   ArtLens Store — Listing Website
   ═══════════════════════════════════════════ */
:root {
    --primary: #1a1a1a;
    --accent: #c9a84c;
    --accent-lt: #e0c97f;
    --bg: #f7f7f7;
    --card-bg: #ffffff;
    --text: #1a1a1a;
    --muted: #6c757d;
    --border: #e9ecef;
    --success: #22c55e;
    --danger: #ef4444;
    --radius: 8px;
    --shadow: 0 1px 4px rgba(0,0,0,0.06);
    --shadow-hover: 0 8px 24px rgba(0,0,0,0.1);
    --transition: 0.25s ease;
}
body { font-family: 'Inter', system-ui, sans-serif; background: var(--bg); color: var(--text); margin: 0; }

/* Top strip */
.topbar-strip { background: var(--primary); color: #aaa; padding: 6px 0; font-size: 0.78rem; }

/* Navbar */
#storeNav { background: var(--card-bg); border-bottom: 1px solid var(--border); padding: 0.6rem 0; min-height: 56px; }
.brand-text { font-size: 1.3rem; font-weight: 700; color: var(--primary); }
.brand-text:hover { color: var(--accent); }
#storeNav .nav-link { font-weight: 500; font-size: 0.88rem; color: var(--text); padding: 0.5rem 0.9rem; }
#storeNav .nav-link:hover, #storeNav .nav-link.active { color: var(--accent); }

/* Search bar */
.search-bar { flex: 0 1 400px; margin: 0 2rem; }
.search-bar .form-control { border-radius: var(--radius) 0 0 var(--radius); border-right: 0; font-size: 0.9rem; }
.search-bar .form-control:focus { border-color: var(--accent); box-shadow: none; }
.btn-search { background: var(--primary); color: #fff; border-radius: 0 var(--radius) var(--radius) 0; padding: 0 1rem; }
.btn-search:hover { background: var(--accent); color: var(--primary); }

/* Cart icon */
.cart-icon { color: var(--text); position: relative; }
.cart-badge { position: absolute; top: -6px; right: -8px; background: var(--accent); color: #000; font-size: 0.65rem; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

.site-main { min-height: 60vh; }

/* ─── Hero / Banner ──────────────────────── */
.store-hero { background: linear-gradient(135deg, var(--primary), #2c2c2c); color: #fff; padding: 4rem 0; text-align: center; }
.store-hero h1 { font-size: 2.4rem; font-weight: 700; margin-bottom: 0.5rem; }
.store-hero h1 span { color: var(--accent); }
.store-hero p { color: #aaa; max-width: 500px; margin: 0 auto 1.5rem; }

/* ─── Category Cards ─────────────────────── */
.cat-card { background: var(--card-bg); border-radius: var(--radius); padding: 1.5rem 1rem; text-align: center; border: 1px solid var(--border); transition: all var(--transition); text-decoration: none; color: var(--text); display: block; }
.cat-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-hover); color: var(--accent); }
.cat-card .cat-icon { font-size: 2rem; color: var(--accent); margin-bottom: 0.5rem; }
.cat-card h6 { font-weight: 600; margin-bottom: 0.2rem; }
.cat-card small { color: var(--muted); }

/* ─── Product Cards ──────────────────────── */
.product-card { background: var(--card-bg); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: all var(--transition); height: 100%; display: flex; flex-direction: column; }
.product-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.product-card .card-img-wrap { position: relative; overflow: hidden; aspect-ratio: 1/1; background: #f0f0f0; }
.product-card .card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.product-card:hover .card-img-wrap img { transform: scale(1.05); }
.product-card .sale-badge { position: absolute; top: 10px; left: 10px; background: var(--danger); color: #fff; font-size: 0.7rem; font-weight: 700; padding: 3px 8px; border-radius: 3px; }
.product-card .card-info { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.product-card .card-cat { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.product-card .card-name { font-weight: 600; font-size: 0.95rem; margin: 0.3rem 0; }
.product-card .card-name a { color: var(--text); text-decoration: none; }
.product-card .card-name a:hover { color: var(--accent); }
.product-card .card-price { margin-top: auto; padding-top: 0.5rem; }
.card-price .price-current { font-weight: 700; font-size: 1.1rem; color: var(--primary); }
.card-price .price-original { text-decoration: line-through; color: var(--muted); font-size: 0.85rem; margin-left: 0.4rem; }
.card-price .discount-pct { color: var(--success); font-size: 0.8rem; font-weight: 600; margin-left: 0.3rem; }

/* ─── Buttons ────────────────────────────── */
.btn-accent { background: var(--accent); color: var(--primary); font-weight: 600; border: none; border-radius: var(--radius); padding: 0.55rem 1.5rem; font-size: 0.88rem; transition: all var(--transition); }
.btn-accent:hover { background: var(--accent-lt); color: var(--primary); }
.btn-outline-accent { border: 1.5px solid var(--accent); color: var(--accent); background: transparent; font-weight: 600; border-radius: var(--radius); padding: 0.5rem 1.2rem; font-size: 0.88rem; transition: all var(--transition); }
.btn-outline-accent:hover { background: var(--accent); color: var(--primary); }
.btn-add-cart { background: var(--primary); color: #fff; border: none; border-radius: var(--radius); padding: 0.45rem 1rem; font-size: 0.82rem; font-weight: 600; width: 100%; transition: all var(--transition); }
.btn-add-cart:hover { background: var(--accent); color: var(--primary); }

/* ─── Filters sidebar ────────────────────── */
.filter-section h6 { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.8rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); }
.filter-link { display: flex; justify-content: space-between; padding: 0.4rem 0; color: var(--text); text-decoration: none; font-size: 0.88rem; transition: color var(--transition); }
.filter-link:hover, .filter-link.active { color: var(--accent); font-weight: 600; }

/* ─── Product Detail ─────────────────────── */
.product-gallery img { width: 100%; border-radius: var(--radius); }
.gallery-thumbs { display: flex; gap: 0.5rem; margin-top: 0.8rem; }
.gallery-thumbs img { width: 70px; height: 70px; object-fit: cover; border-radius: 4px; border: 2px solid transparent; cursor: pointer; transition: border-color var(--transition); }
.gallery-thumbs img.active, .gallery-thumbs img:hover { border-color: var(--accent); }
.product-detail .price-big { font-size: 1.8rem; font-weight: 700; }

/* ─── Cart ───────────────────────────────── */
.cart-item { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--border); align-items: center; }
.cart-item img { width: 80px; height: 80px; object-fit: cover; border-radius: var(--radius); }
.cart-summary { background: var(--card-bg); border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--border); }

/* ─── Section titles ─────────────────────── */
.section-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.3rem; }
.section-sub { color: var(--muted); font-size: 0.9rem; }

/* ─── Footer ─────────────────────────────── */
.store-footer { background: var(--primary); color: #ccc; padding: 2.5rem 0 1rem; margin-top: 3rem; }
.store-footer h6 { color: #fff; margin-bottom: 0.8rem; }
.store-footer a { color: #aaa; text-decoration: none; }
.store-footer a:hover { color: var(--accent); }
.store-footer ul li { margin-bottom: 0.3rem; }

/* ─── Responsive ─────────────────────────── */
@media (max-width: 768px) {
    .store-hero h1 { font-size: 1.8rem; }
    .search-bar { flex: 0 1 250px; margin: 0 1rem; }
    .product-card .card-img-wrap { aspect-ratio: 4/3; }
}
