/* ChamraStore - brown leather theme */
:root {
    --brown-900: #2B1A10;
    --brown-800: #3E2716;
    --brown-700: #5A3820;
    --brown-600: #7A4B2A;
    --brown-500: #8B5A2B;
    --tan: #C08A5B;
    --cream: #F3E3C7;
    --cream-light: #FBF6EE;
    --gold: #D4A256;
    --text: #3A2A1E;
    --muted: #8A7563;
    --radius: 14px;
    --shadow: 0 6px 20px rgba(62, 39, 22, .10);
}

html { font-size: 15px; scroll-behavior: smooth; }
@media (min-width: 768px) { html { font-size: 16px; } }

body {
    font-family: "Poppins", system-ui, sans-serif;
    color: var(--text);
    background: var(--cream-light);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
main { flex: 1; }

h1, h2, h3, .display-font { font-family: "Playfair Display", Georgia, serif; color: var(--brown-800); }
a { color: var(--brown-600); }
a:hover { color: var(--brown-800); }

/* Buttons */
.btn-brown { background: var(--brown-500); border-color: var(--brown-500); color: #fff; }
.btn-brown:hover, .btn-brown:focus { background: var(--brown-700); border-color: var(--brown-700); color: #fff; }
.btn-outline-brown { border-color: var(--brown-500); color: var(--brown-500); }
.btn-outline-brown:hover { background: var(--brown-500); color: #fff; }
.btn-cream { background: var(--cream); color: var(--brown-800); border: none; }
.btn-cream:hover { background: #fff; color: var(--brown-800); }
.btn-whatsapp { background: #25D366; color: #fff; border: none; display: inline-flex; align-items: center; gap: .5rem; }
.btn-whatsapp:hover { background: #1DA851; color: #fff; }

.form-control:focus, .form-select:focus { border-color: var(--tan); box-shadow: 0 0 0 .2rem rgba(192, 138, 91, .25); }
.form-check-input:checked { background-color: var(--brown-500); border-color: var(--brown-500); }

/* Navbar */
.site-nav { background: var(--brown-800); padding: .7rem 0; }
.site-nav .nav-link { color: rgba(243, 227, 199, .8); font-weight: 500; margin-left: .5rem; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--gold); }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-family: "Playfair Display", serif; font-size: 1.35rem; font-weight: 700; color: var(--cream); text-decoration: none; }
.brand:hover { color: var(--cream); }
.brand em { font-style: normal; color: var(--gold); }

/* Hero */
.hero {
    background:
        radial-gradient(circle at 80% 20%, rgba(212, 162, 86, .25), transparent 45%),
        linear-gradient(135deg, var(--brown-800), var(--brown-600));
    color: var(--cream);
    padding: 5rem 0 6rem;
    position: relative;
    overflow: hidden;
}
.hero::after { /* stitched edge */
    content: ""; position: absolute; left: 0; right: 0; bottom: 18px;
    border-bottom: 2px dashed rgba(243, 227, 199, .35);
}
.hero h1 { color: var(--cream); font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.15; }
.hero h1 span { color: var(--gold); }
.hero p.lead { color: rgba(243, 227, 199, .85); max-width: 34rem; }
.hero-badge { display: inline-block; border: 1px solid rgba(243, 227, 199, .4); border-radius: 50px; padding: .3rem 1rem; font-size: .85rem; margin-bottom: 1.2rem; }
.hero-art { width: 100%; max-width: 360px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; border: 6px solid rgba(243, 227, 199, .25); box-shadow: 0 20px 50px rgba(0, 0, 0, .3); }

/* Sections */
.section { padding: 4rem 0; }
.section-title { text-align: center; margin-bottom: 2.5rem; }
.section-title h2 { font-size: 2.1rem; margin-bottom: .3rem; }
.section-title p { color: var(--muted); margin: 0; }
.section-title::after { content: ""; display: block; width: 60px; height: 3px; background: var(--tan); margin: .9rem auto 0; border-radius: 3px; }
.section-alt { background: var(--cream); }

/* Category tiles */
.cat-tile {
    display: block; text-decoration: none; background: #fff; border-radius: var(--radius);
    padding: 1.6rem 1.2rem; text-align: center; box-shadow: var(--shadow); height: 100%;
    border: 1px solid transparent; transition: transform .2s, border-color .2s;
}
.cat-tile:hover { transform: translateY(-4px); border-color: var(--tan); }
.cat-tile .icon { width: 56px; height: 56px; border-radius: 50%; background: var(--cream); color: var(--brown-500); display: grid; place-items: center; margin: 0 auto .9rem; font-family: "Playfair Display", serif; font-size: 1.5rem; font-weight: 700; }
.cat-tile h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.cat-tile p { font-size: .85rem; color: var(--muted); margin: 0; }

/* Product cards */
.product-card { display: block; text-decoration: none; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); height: 100%; transition: transform .2s, box-shadow .2s; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(62, 39, 22, .18); }
.product-img { position: relative; aspect-ratio: 1; background: var(--cream); }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.chip { position: absolute; top: .7rem; left: .7rem; background: rgba(43, 26, 16, .75); color: var(--cream); font-size: .72rem; padding: .2rem .65rem; border-radius: 50px; }
.product-body { padding: .9rem 1rem 1.1rem; }
.product-body h3 { font-family: "Poppins", sans-serif; font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: .25rem; }
.price { color: var(--brown-500); font-weight: 600; }
.price.muted { color: var(--muted); font-weight: 500; font-size: .9rem; }

/* Why us */
.feature { text-align: center; padding: 1rem; }
.feature .num { font-family: "Playfair Display", serif; font-size: 2rem; color: var(--tan); }
.feature h3 { font-size: 1.1rem; }
.feature p { color: var(--muted); font-size: .9rem; }

/* How to order strip */
.order-strip { background: var(--brown-700); color: var(--cream); border-radius: var(--radius); padding: 2.2rem; }
.order-strip h2 { color: var(--cream); }

/* Products page */
.page-head { background: var(--brown-700); color: var(--cream); padding: 2.5rem 0; }
.page-head h1 { color: var(--cream); margin: 0; }
.filter-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-pills a { text-decoration: none; padding: .35rem 1rem; border-radius: 50px; border: 1px solid var(--tan); color: var(--brown-600); font-size: .9rem; }
.filter-pills a.active, .filter-pills a:hover { background: var(--brown-500); border-color: var(--brown-500); color: #fff; }

/* Product details */
.detail-img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 1; object-fit: cover; background: var(--cream); }
.detail-price { font-size: 1.8rem; color: var(--brown-500); font-weight: 600; }
/* Product photo slider: main image with thumbnails underneath */
.gallery-main { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery-main .detail-img { box-shadow: none; border-radius: 0; display: block; }
.gallery .carousel-control-prev, .gallery .carousel-control-next { width: 56px; opacity: 1; }
.gallery .carousel-control-prev-icon, .gallery .carousel-control-next-icon { width: 2.4rem; height: 2.4rem; border-radius: 50%; background-color: rgba(43, 26, 16, .55); background-size: 45%; }
.gallery-thumbs { position: static; margin: .75rem 0 0; padding: 0; justify-content: flex-start; flex-wrap: wrap; gap: .5rem; }
.gallery-thumbs [data-bs-target] { flex: 0 0 auto; width: 72px; height: 72px; margin: 0; padding: 0; text-indent: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--cream); background-clip: border-box; opacity: .6; }
.gallery-thumbs [data-bs-target]:hover { opacity: .9; }
.gallery-thumbs .active { opacity: 1; border-color: var(--brown-500); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 575.98px) { .gallery-thumbs [data-bs-target] { width: 58px; height: 58px; } }

.qty { display: inline-flex; align-items: center; border: 1px solid #d9c7b0; border-radius: 10px; overflow: hidden; background: #fff; }
.qty button { border: none; background: transparent; width: 40px; height: 42px; font-size: 1.2rem; color: var(--brown-600); }
.qty input { width: 52px; border: none; text-align: center; font-weight: 600; }
.qty input:focus { outline: none; }

/* Footer */
.site-footer { background: var(--brown-900); color: rgba(243, 227, 199, .75); padding: 3rem 0 1.2rem; margin-top: 3rem; font-size: .92rem; }
.site-footer .brand { font-size: 1.2rem; }
.site-footer h6 { color: var(--gold); text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; margin-bottom: .8rem; }
.site-footer a { color: rgba(243, 227, 199, .75); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer li { margin-bottom: .35rem; }
.footer-icon { display: inline-flex; align-items: center; gap: .45rem; }
.footer-icon svg { width: 20px; height: 20px; flex-shrink: 0; }
.footer-wa svg { color: #25D366; }
.footer-email svg { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(243, 227, 199, .15); margin-top: 2rem; padding-top: 1rem; display: flex; justify-content: space-between; font-size: .82rem; }

/* Floating WhatsApp */
.wa-float { position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); z-index: 1000; transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float svg { width: 28px; height: 28px; }

/* Admin */
.admin-wrap { padding: 2rem 0; }
.admin-nav { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1.5rem; }
.admin-nav a.btn, .admin-nav button.btn { border-radius: 50px; }
.admin-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .75rem; }
.photo-tile { border: 1px solid #e6d8c5; border-radius: 10px; overflow: hidden; background: #fff; }
.photo-tile img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--cream); }
.photo-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem .5rem; padding: .4rem .5rem; }
.admin-thumb { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; background: var(--cream); }
.table > :not(caption) > * > * { vertical-align: middle; }
.stat { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem 1.2rem; }
.stat .n { font-size: 1.8rem; font-weight: 600; color: var(--brown-500); }
.stat .l { color: var(--muted); font-size: .85rem; }
.login-box { max-width: 400px; margin: 4rem auto; }
