/* Laahika - Women's Shringara Marketplace Custom Styles */

:root {
    --primary-maroon: #7E1F35;
    --primary-hover: #611527;
    --gold-accent: #C5A059;
    --gold-light: #E6D095;
    --bg-cream: #FAF6F0;
    --card-bg: #FFFFFF;
    --text-dark: #2D0B13;
    --text-muted: #6C757D;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-cream);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.site-bg {
    background:
        linear-gradient(rgba(250, 246, 240, 0.78),
            rgba(250, 246, 240, 0.86)),
        url("../images/background.jpeg") center top / cover no-repeat fixed;

    color: var(--text-dark);
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
.brand-font {
    font-family: var(--font-heading);
}

/* Navbar & Header */
.navbar-laahika {
    background:

        url("../images/header-bg.png") center/cover no-repeat;
    box-shadow: 0 4px 12px rgba(126, 31, 53, 0.15);
}

.navbar-laahika .navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-maroon);
    letter-spacing: 1px;
}

.navbar-laahika .nav-link {
    color: var(--primary-maroon) !important;
    font-weight: 500;
    transition: all 0.2s ease;
}

.navbar-laahika .nav-link:hover {
    color: var(--gold-accent) !important;
}

.search-input-group .form-control {
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    border: none;
}

.search-input-group .btn {
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    background-color: var(--gold-accent);
    color: #FFFFFF;
    border: none;
}

.search-input-group .btn:hover {
    background-color: #B38E46;
}

/* Buttons */
.btn-laahika {
    background-color: var(--primary-maroon);
    color: #FFFFFF;
    border-radius: 8px;
    padding: 0.6rem 1.4rem;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
}

.btn-laahika:hover {
    background-color: var(--primary-hover);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(126, 31, 53, 0.25);
}

.btn-gold {
    background-color: var(--gold-accent);
    color: #FFFFFF;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background-color: #B38E46;
    color: #FFFFFF;
}

/* Dynamic Sidebar */
.category-sidebar {
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 1.25rem;
    border-left: 4px solid var(--gold-accent);
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-maroon);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #F0E6D8;
}

.category-menu .list-group-item {
    border: none;
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    margin-bottom: 2px;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.2s ease;
}

.category-menu .list-group-item:hover,
.category-menu .list-group-item.active {
    background-color: #F8ECEE;
    color: var(--primary-maroon);
    font-weight: 600;
    padding-left: 1.2rem;
}

.subcategory-menu {
    padding-left: 1rem;
    font-size: 0.9rem;
}

/* Product Cards */
.product-card {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(197, 160, 89, 0.2);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(126, 31, 53, 0.12);
    border-color: var(--gold-accent);
}

.product-img-wrap {
    position: relative;
    padding-top: 100%;
    /* 1:1 Aspect Ratio */
    overflow: hidden;
    background-color: #FAF5F6;
}

.product-img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img-wrap img {
    transform: scale(1.08);
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #E63946, #C51104);
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.out-of-stock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #6C757D;
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
}

.product-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}

.product-title:hover {
    color: var(--primary-maroon);
}

.price-box {
    margin-top: auto;
    padding-top: 0.5rem;
}

.selling-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-maroon);
}

.original-price {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 0.5rem;
}

/* Image Zoom Effect in Product Detail */
.product-detail-img-container {
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #E6D095;
    background: #FFFFFF;
}

.product-detail-img-container img {
    transition: transform 0.4s ease;
    cursor: zoom-in;
}

.product-detail-img-container:hover img {
    transform: scale(1.25);
}

/* Hero Section */
.hero-banner {
    /*background: linear-gradient(135deg, rgba(126, 31, 53, 0.95), rgba(45, 11, 19, 0.9)), url('https://images.unsplash.com/photo-1611591475140-62e92c231718?auto=format&fit=crop&w=1600&q=80') center/cover;
    */
    min-height: 700px;
    background-image: url("../images/hero-banner.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #FFFFFF;
    padding: 4.5rem 4rem;

    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(126, 31, 53, 0.2);
}

/* Footer */
footer {
    background-color: #1F070D;
    color: #E2D3CD;
    margin-top: auto;
}

footer a {
    color: #D4B895;
    text-decoration: none;
}

footer a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #F1F1F1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-maroon);
    border-radius: 4px;
}