/* css/style.css */
:root {
    --primary-color: #b45f4b;
    --secondary-color: #d4a373;
    --dark-color: #2c2c2c;
    --light-bg: #faf7f2;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light-bg);
    color: #333;
}

/* Top Address Bar */
.top-address-bar {
    background-color: var(--dark-color);
    color: #fff;
    padding: 10px 0;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

.top-address-bar i {
    color: var(--secondary-color);
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
}

.navbar-brand .text-primary {
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 500;
    color: #555;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #9a4f3d;
    border-color: #9a4f3d;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #fff5f0 0%, #fae9e0 100%);
    border-radius: 30px;
    padding: 60px 40px;
    margin: 30px 0;
}

.hero-badge {
    background-color: var(--secondary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
}

/* Product Cards */
.product-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
    background: white;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.product-image {
    height: 280px;
    object-fit: cover;
    background-color: #f5f0eb;
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-badge.new {
    background: var(--secondary-color);
}

.cod-badge {
    background: #e9ecef;
    color: var(--dark-color);
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    display: inline-block;
    margin-bottom: 8px;
}

.price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-color);
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
    margin-left: 8px;
}

.rating {
    color: #ffc107;
    font-size: 0.85rem;
}

/* Cart Page */
.cart-item {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.03);
}

.quantity-input {
    width: 80px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 5px;
}

/* Checkout Page */
.checkout-form {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-control, .form-select {
    border-radius: 12px;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(180, 95, 75, 0.15);
}

.order-summary {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: #fff;
    padding: 60px 0 20px;
}

.footer .text-muted {
    color: #aaa !important;
}

.footer a {
    color: #ddd;
    text-decoration: none;
}

.footer a:hover {
    color: var(--secondary-color);
}

.social-links a {
    display: inline-block;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--secondary-color);
    color: var(--dark-color);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 20px;
    }
    
    .product-image {
        height: 220px;
    }
}
/* Dynamic Ecommerce Update */
.category-card { overflow: hidden; border-radius: 22px; }
.category-card img { transition: transform .35s ease; }
.category-card:hover img { transform: scale(1.06); }
.product-title { min-height: 40px; line-height: 1.35; }
.product-badge.discount { left: auto; right: 15px; background: #dc3545; }
.product-badge.out { background: #6c757d; }
.variant-pill { border: 1px solid #dee2e6; border-radius: 999px; padding: 8px 14px; cursor: pointer; background: #fff; transition: all .2s ease; }
.variant-pill input { display: none; }
.variant-pill.active, .variant-pill:hover { border-color: var(--primary-color); color: var(--primary-color); box-shadow: 0 4px 14px rgba(180,95,75,.12); }
.product-gallery-thumb { height: 82px; width: 82px; object-fit: cover; border-radius: 14px; border: 2px solid transparent; cursor: pointer; }
.product-gallery-thumb.active { border-color: var(--primary-color); }
.shop-filter-card { border: 0; border-radius: 20px; box-shadow: 0 8px 24px rgba(0,0,0,.05); }
.order-source-badge { text-transform: capitalize; }
@media (max-width: 768px) {
    .hero-section { padding: 35px 20px; border-radius: 22px; }
    .product-image { height: 220px; }
    .footer .col-lg-6 { text-align: left !important; }
}

/* Hero auto-slider */
.hero-slider-wrap {
    padding: 0;
    overflow: hidden;
}
.hero-carousel {
    position: relative;
    min-height: 430px;
}
.hero-slide-row {
    min-height: 430px;
    padding: 60px 40px;
}
.hero-slide-image {
    width: 100%;
    height: 420px;
    object-fit: cover;
}
.hero-image-frame {
    position: relative;
}
.hero-indicators {
    margin-bottom: 12px;
}
.hero-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary-color);
    opacity: .35;
}
.hero-indicators .active {
    opacity: 1;
    width: 24px;
    border-radius: 999px;
}
.hero-control {
    width: 44px;
    height: 44px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    background: rgba(0,0,0,.28);
    opacity: 1;
}
.hero-control.carousel-control-prev { left: 16px; }
.hero-control.carousel-control-next { right: 16px; }
.hero-control:hover { background: rgba(0,0,0,.42); }

@media (max-width: 991px) {
    .hero-slide-row {
        padding: 44px 22px 58px;
        text-align: center;
        min-height: auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-slide-image {
        height: 320px;
    }
    .hero-control {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero-section {
        margin: 16px 0;
        border-radius: 22px;
    }
    .hero-slide-row {
        padding: 32px 16px 52px;
    }
    .hero-slide-image {
        height: 230px;
        border-radius: 24px !important;
    }
    .hero-carousel .display-4 {
        font-size: 2rem;
    }
    .hero-carousel .lead {
        font-size: 1rem;
    }
}

/* Clean icon category cards */
.category-icon-card {
    background: #fff;
    border: 1px solid rgba(44,44,44,.07);
    border-radius: 22px;
    padding: 28px 18px;
    text-align: center;
    color: var(--dark-color);
    box-shadow: 0 10px 28px rgba(0,0,0,.04);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.category-icon-card:hover {
    transform: translateY(-5px);
    border-color: rgba(180,95,75,.35);
    box-shadow: 0 18px 36px rgba(180,95,75,.10);
}
.category-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 24px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fff5f0, #f2dfd5);
    color: var(--primary-color);
    font-size: 1.8rem;
}
.category-icon-card small { color: #777; }

/* Navbar hover dropdown */
.navbar .dropdown-menu {
    border: 0;
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 18px 45px rgba(0,0,0,.12);
    margin-top: 12px;
}
.navbar .dropdown-item {
    border-radius: 10px;
    padding: 9px 12px;
    font-weight: 500;
}
.navbar .dropdown-item:hover {
    background: #fff3ed;
    color: var(--primary-color);
}
@media (min-width: 992px) {
    .navbar .dropdown:hover > .dropdown-menu,
    .navbar .dropdown:focus-within > .dropdown-menu {
        display: block;
    }
    .navbar .dropdown:hover > .nav-link,
    .navbar .dropdown:focus-within > .nav-link {
        color: var(--primary-color) !important;
    }
}

/* Shop page grouped category layout */
.shop-hero {
    background: #fff;
    border: 1px solid rgba(44,44,44,.06);
    border-radius: 26px;
    padding: 24px;
    box-shadow: 0 10px 28px rgba(0,0,0,.04);
}
.shop-kicker {
    color: var(--primary-color);
    background: #fff3ed;
    border-radius: 999px;
    padding: 7px 12px;
    font-weight: 700;
    font-size: .82rem;
}
.shop-search { min-width: min(100%, 390px); }
.category-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 2px 12px;
}
.category-strip::-webkit-scrollbar { height: 6px; }
.category-strip::-webkit-scrollbar-thumb { background: rgba(180,95,75,.22); border-radius: 99px; }
.category-chip {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #fff;
    color: #555;
    border: 1px solid rgba(44,44,44,.08);
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(0,0,0,.035);
}
.category-chip:hover,
.category-chip.active {
    color: var(--primary-color);
    border-color: rgba(180,95,75,.35);
    background: #fff8f4;
}
.category-products-block {
    background: rgba(255,255,255,.42);
    border-radius: 26px;
}
.category-section-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff3ed;
    color: var(--primary-color);
    font-size: 1.35rem;
    flex: 0 0 auto;
}
.empty-category-box {
    background: #fff;
    border: 1px dashed rgba(44,44,44,.15);
    border-radius: 20px;
    padding: 24px;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

@media (max-width: 576px) {
    .category-icon-card { padding: 22px 12px; border-radius: 18px; }
    .category-icon-wrap { width: 58px; height: 58px; border-radius: 20px; font-size: 1.45rem; }
    .shop-hero { padding: 18px; border-radius: 20px; }
    .shop-search { width: 100%; }
    .product-title { min-height: auto; }
}
