/* =========================================================
   Amad Decore — Custom Theme
   Elegant, minimal, luxury home-decor storefront styling
   ========================================================= */

:root {
    --ad-black: #1c1a17;
    --ad-white: #ffffff;
    --ad-cream: #f8f5f0;
    --ad-beige: #e9e0d1;
    --ad-gold: #b6903f;
    --ad-gold-light: #d8bd85;
    --ad-text: #2b2822;
    --ad-text-muted: #7a7468;
    --ad-border: #e6e0d5;
    --ad-radius: 6px;
}

body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    color: var(--ad-text);
    background-color: var(--ad-white);
}

h1, h2, h3, h4, h5, h6,
.font-heading {
    font-family: 'Playfair Display', Georgia, serif;
}

a {
    text-decoration: none;
}

.text-gold { color: var(--ad-gold) !important; }
.bg-cream { background-color: var(--ad-cream) !important; }
.bg-beige { background-color: var(--ad-beige) !important; }
.bg-charcoal { background-color: var(--ad-black) !important; }
.border-gold { border-color: var(--ad-gold) !important; }

.letter-spacing-2 { letter-spacing: 2px; }
.letter-spacing-1 { letter-spacing: 1px; }

/* Buttons */
.btn-gold {
    background-color: var(--ad-gold);
    border-color: var(--ad-gold);
    color: var(--ad-white);
    letter-spacing: .5px;
    border-radius: var(--ad-radius);
}
.btn-gold:hover {
    background-color: #9c7a33;
    border-color: #9c7a33;
    color: var(--ad-white);
}
.btn-outline-gold {
    border: 1px solid var(--ad-gold);
    color: var(--ad-gold);
    background: transparent;
    border-radius: var(--ad-radius);
}
.btn-outline-gold:hover {
    background-color: var(--ad-gold);
    color: var(--ad-white);
}
.btn-dark-custom {
    background-color: var(--ad-black);
    color: var(--ad-white);
    border-radius: var(--ad-radius);
    border: 1px solid var(--ad-black);
}
.btn-dark-custom:hover {
    background-color: #000;
    color: var(--ad-gold);
}

/* Top utility bar */
.topbar {
    background-color: var(--ad-black);
    color: var(--ad-beige);
    font-size: .8rem;
    letter-spacing: .5px;
}

/* Navbar */
.navbar-ad {
    background-color: var(--ad-white);
    border-bottom: 1px solid var(--ad-border);
}
.navbar-ad .navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--ad-black) !important;
    letter-spacing: 1px;
}
.navbar-ad .navbar-brand span {
    color: var(--ad-gold);
}
.navbar-ad .nav-link {
    color: var(--ad-text) !important;
    font-weight: 500;
    letter-spacing: .3px;
    margin: 0 .5rem;
    position: relative;
}
.navbar-ad .nav-link:hover,
.navbar-ad .nav-link.active {
    color: var(--ad-gold) !important;
}
.navbar-icon-btn {
    color: var(--ad-black);
    position: relative;
    font-size: 1.1rem;
    margin-left: 1rem;
}
.navbar-icon-btn:hover { color: var(--ad-gold); }
.icon-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--ad-gold);
    color: #fff;
    font-size: .65rem;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero */
.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(120deg, rgba(28,26,23,.72), rgba(28,26,23,.35)), url('https://images.unsplash.com/photo-1616486338812-3dadae4b4ace?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    color: #fff;
}
.hero-section h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 700;
}
.hero-section p {
    font-size: 1.1rem;
    max-width: 520px;
}

/* Category cards */
.category-card {
    position: relative;
    border-radius: var(--ad-radius);
    overflow: hidden;
    display: block;
    aspect-ratio: 1 / 1;
    background-color: var(--ad-beige);
}
.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.category-card:hover img { transform: scale(1.08); }
.category-card .category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,0) 60%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 1rem;
}
.category-card .category-overlay span {
    color: #fff;
    font-weight: 600;
    letter-spacing: .5px;
}

/* Product cards */
.product-card {
    border: 1px solid var(--ad-border);
    border-radius: var(--ad-radius);
    overflow: hidden;
    background: #fff;
    transition: box-shadow .3s ease, transform .3s ease;
    height: 100%;
}
.product-card:hover {
    box-shadow: 0 12px 28px rgba(0,0,0,.09);
    transform: translateY(-4px);
}
.product-card .product-thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--ad-cream);
}
.product-card .product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.product-card:hover .product-thumb img { transform: scale(1.07); }
.product-card .badge-sale {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--ad-gold);
    color: #fff;
    font-size: .72rem;
    padding: .25rem .55rem;
    border-radius: 4px;
    letter-spacing: .3px;
}
.product-card .badge-new {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--ad-black);
    color: #fff;
    font-size: .72rem;
    padding: .25rem .55rem;
    border-radius: 4px;
}
.product-card .wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ad-black);
    border: none;
    transition: all .2s ease;
}
.product-card .wishlist-btn:hover { background: var(--ad-gold); color: #fff; }
.product-card .wishlist-btn.active { background: var(--ad-gold); color: #fff; }
.product-card .quick-view-btn {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    text-align: center;
    background: rgba(28,26,23,.85);
    color: #fff;
    padding: .5rem;
    font-size: .82rem;
    transition: bottom .3s ease;
}
.product-card:hover .quick-view-btn { bottom: 0; }
.product-card .product-body { padding: 1rem; }
.product-card .product-category {
    font-size: .72rem;
    text-transform: uppercase;
    color: var(--ad-text-muted);
    letter-spacing: .5px;
}
.product-card .product-name {
    font-weight: 600;
    color: var(--ad-black);
    font-size: .98rem;
    margin: .25rem 0 .4rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card .price-old {
    text-decoration: line-through;
    color: var(--ad-text-muted);
    font-size: .85rem;
    margin-right: .4rem;
}
.product-card .price-current {
    color: var(--ad-gold);
    font-weight: 700;
}
.product-card .stars { color: var(--ad-gold); font-size: .8rem; }

/* Sections */
.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}
.section-title small {
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--ad-gold);
    font-weight: 600;
    font-size: .78rem;
}
.section-title h2 {
    font-weight: 700;
    margin-top: .4rem;
}

/* Promo banner */
.promo-banner {
    background: linear-gradient(120deg, rgba(28,26,23,.78), rgba(28,26,23,.55)), url('https://images.unsplash.com/photo-1522444195799-478538b28823?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    color: #fff;
    border-radius: var(--ad-radius);
    padding: 4rem 2rem;
    text-align: center;
}

/* Why choose us */
.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--ad-cream);
    color: var(--ad-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 1rem;
}

/* Testimonials */
.testimonial-card {
    background: var(--ad-cream);
    border-radius: var(--ad-radius);
    padding: 1.75rem;
    height: 100%;
}
.testimonial-card .stars { color: var(--ad-gold); }

/* Newsletter */
.newsletter-section {
    background-color: var(--ad-black);
    color: #fff;
}

/* Footer */
.footer-ad {
    background-color: #131210;
    color: #cfc9bd;
}
.footer-ad h6 {
    color: #fff;
    font-weight: 700;
    letter-spacing: .5px;
    margin-bottom: 1.1rem;
}
.footer-ad a { color: #cfc9bd; }
.footer-ad a:hover { color: var(--ad-gold); }
.footer-ad .social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #454138;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #cfc9bd;
    margin-right: .5rem;
}
.footer-ad .social-icon:hover {
    background: var(--ad-gold);
    border-color: var(--ad-gold);
    color: #fff;
}

/* Breadcrumb */
.breadcrumb-bar {
    background-color: var(--ad-cream);
    padding: 1.5rem 0;
}

/* Filters sidebar */
.filter-card {
    border: 1px solid var(--ad-border);
    border-radius: var(--ad-radius);
    padding: 1.25rem;
}
.filter-card h6 {
    font-weight: 700;
    text-transform: uppercase;
    font-size: .8rem;
    letter-spacing: .5px;
    margin-bottom: 1rem;
}

/* Product details */
.product-gallery-thumb {
    width: 74px;
    height: 74px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--ad-border);
    cursor: pointer;
}
.product-gallery-thumb.active { border-color: var(--ad-gold); }
.qty-selector {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--ad-border);
    border-radius: var(--ad-radius);
}
.qty-selector button {
    background: none;
    border: none;
    width: 38px;
    height: 38px;
}
.qty-selector input {
    width: 48px;
    border: none;
    text-align: center;
}

/* Admin panel */
.admin-sidebar {
    background-color: var(--ad-black);
    min-height: 100vh;
    color: #cfc9bd;
}
.admin-sidebar .brand {
    font-family: 'Playfair Display', serif;
    color: #fff;
    font-size: 1.3rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #33302a;
}
.admin-sidebar .nav-link {
    color: #cfc9bd;
    padding: .7rem 1.5rem;
    border-left: 3px solid transparent;
}
.admin-sidebar .nav-link i { width: 20px; margin-right: .6rem; }
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(255,255,255,.05);
    color: var(--ad-gold);
    border-left-color: var(--ad-gold);
}
.admin-topbar {
    background: #fff;
    border-bottom: 1px solid var(--ad-border);
}
.stat-card {
    border-radius: var(--ad-radius);
    padding: 1.5rem;
    color: #fff;
    height: 100%;
}
.stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

@media (max-width: 767.98px) {
    .hero-section { min-height: 60vh; text-align: center; }
    .hero-section p { margin-left: auto; margin-right: auto; }
}

/* WhatsApp floating button */
.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 58px;
    height: 58px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 14px rgba(0,0,0,.25);
    z-index: 1050;
    transition: transform .2s ease, box-shadow .2s ease;
}
.whatsapp-float:hover {
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(0,0,0,.3);
}
@media (max-width: 575.98px) {
    .whatsapp-float {
        right: 16px;
        bottom: 16px;
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
    }
}
