/* ==========================================================================
   Origin Goods - Main Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Variables & Theme Tokens
   -------------------------------------------------------------------------- */
:root {
    --primary: #e8521a;
    --primary-dark: #c43d0a;
    --secondary: #2d6a4f;
    --accent: #f4a261;
    --gold: #f7c948;
    --dark: #1a1a2e;
    --light-bg: #fdf8f3;
}

/* --------------------------------------------------------------------------
   2. Base Typography & Global Elements
   -------------------------------------------------------------------------- */
* {
    font-family: 'Poppins', sans-serif;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    background: var(--light-bg);
    color: #333;
}

/* --------------------------------------------------------------------------
   3. Responsive Container Widths
   -------------------------------------------------------------------------- */
@media (min-width: 1200px) {
    .container {
        max-width: 1280px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1460px;
    }
}

@media (min-width: 1600px) {
    .container {
        max-width: 1580px;
    }
}

/* --------------------------------------------------------------------------
   4. Navbar & Navigation
   -------------------------------------------------------------------------- */
.navbar {
    background: #fff !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, .08);
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--primary) !important;
}

.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .15);
    z-index: 1000;
    max-height: 350px;
    overflow-y: auto;
}

.search-result-item {
    padding: 10px 15px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-result-item:hover {
    background: #fdf8f3;
}

.search-result-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
}

.cart-badge {
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: .65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -8px;
    right: -8px;
}

.breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   5. Buttons & Badges
   -------------------------------------------------------------------------- */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

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

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

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

.btn-cart {
    background: var(--primary);
    color: #fff;
    border-radius: 30px;
    padding: 8px 20px;
    border: none;
    font-size: .85rem;
    transition: all .3s;
}

.btn-cart:hover {
    background: var(--primary-dark);
    color: #fff;
}

.btn-cart-icon {
    background: #fff;
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all .25s ease;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .05);
}

.btn-cart-icon:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: scale(1.08);
}

.btn-cart-icon.btn-cart-icon-lg {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
}

.btn-wishlist {
    background: #fff;
    color: #e53e3e;
    border: 1px solid #e53e3e;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s;
}

.btn-wishlist.active,
.btn-wishlist:hover {
    background: #e53e3e;
    color: #fff;
}

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

.bg-primary {
    background: var(--primary) !important;
}

.stars {
    color: #f7c948;
}

/* --------------------------------------------------------------------------
   6. Product Cards & Pricing
   -------------------------------------------------------------------------- */
.product-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .07);
    transition: all .3s ease;
    background: #fff;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .15);
}

.product-card .card-img-top {
    height: 220px;
    object-fit: cover;
    transition: transform .4s ease;
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

.product-card .badge-offer {
    background: var(--primary);
    color: #fff;
    font-size: .7rem;
    border-radius: 20px;
    padding: 3px 10px;
}

.price-original {
    text-decoration: line-through;
    color: #999;
    font-size: .85rem;
}

.price-current {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
}

/* --------------------------------------------------------------------------
   7. Sections & Headings
   -------------------------------------------------------------------------- */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
    margin-top: 8px;
}

.section-badge {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
}

/* --------------------------------------------------------------------------
   8. State & District Cards
   -------------------------------------------------------------------------- */
.state-card {
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all .3s;
    border: 2px solid transparent;
}

.state-card:hover,
.state-card.active {
    border-color: var(--primary);
}

.state-card img {
    height: 80px;
    width: 100%;
    object-fit: cover;
}

/* --------------------------------------------------------------------------
   9. Footer
   -------------------------------------------------------------------------- */
.footer {
    background: var(--dark);
    color: #ccc;
}

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

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

/* --------------------------------------------------------------------------
   10. Toast & Notifications
   -------------------------------------------------------------------------- */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

/* --------------------------------------------------------------------------
   11. Customer Dashboard & Common Utilities
   -------------------------------------------------------------------------- */
.card-shadow {
    box-shadow: 0 4px 20px rgba(0, 0, 0, .07);
}

.stat-card-orange {
    background: linear-gradient(135deg, #e8521a, #f4a261);
}

.stat-card-green {
    background: linear-gradient(135deg, #2d6a4f, #52b788);
}

.stat-card-red {
    background: linear-gradient(135deg, #e63946, #f4a261);
}

.customer-sidebar-header {
    background: linear-gradient(135deg, #1a1a2e, #2d2d4a);
}

.customer-sidebar-avatar {
    width: 60px;
    height: 60px;
}

.customer-nav-item {
    transition: all .2s;
}

.customer-nav-item:hover {
    background: #fdf0e8;
}

.customer-nav-item.active {
    background: var(--primary) !important;
    color: #fff !important;
}

/* --------------------------------------------------------------------------
   12. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .navbar-search-wrap {
        width: 100% !important;
        max-width: 100% !important;
        order: 3;
        margin-top: 0.6rem;
    }
}

@media (max-width: 768px) {
    .product-card .card-img-top {
        height: 180px;
    }
    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .product-title-lg {
        font-size: 1.35rem !important;
    }
    .product-price-highlight {
        font-size: 1.65rem !important;
    }
    .img-product-detail {
        height: 280px !important;
    }
    .img-product-thumb {
        width: 56px !important;
        height: 56px !important;
    }
    .nav-tabs .nav-link {
        padding: 0.45rem 0.65rem !important;
        font-size: 0.85rem !important;
    }
    .star-rating-select .star-item {
        font-size: 1.5rem !important;
    }
}

/* --------------------------------------------------------------------------
   13. Lightweight Shared Utilities & Component Classes
   -------------------------------------------------------------------------- */
.fs-xs { font-size: .7rem !important; }
.fs-sm-75 { font-size: .75rem !important; }
.fs-sm-8 { font-size: .8rem !important; }
.fs-sm-85 { font-size: .85rem !important; }
.fs-md-9 { font-size: .9rem !important; }
.fs-icon-xs { font-size: .5rem !important; }
.fs-icon-sm { font-size: .7rem; }
.fs-icon-md { font-size: .9rem; }
.fs-icon-xl { font-size: 1.8rem; }
.fs-icon-2xl { font-size: 2rem; }
.fs-icon-3xl { font-size: 2.5rem; }
.fs-icon-4xl { font-size: 3rem; }
.fs-icon-5xl { font-size: 4rem; }
.fs-icon-hero { font-size: 5rem; }
.lh-12 { line-height: 1.2 !important; }
.lh-13 { line-height: 1.3 !important; }
.lh-18 { line-height: 1.8 !important; }

/* Containers & Max Widths */
.navbar-search-wrap { width: 380px; max-width: 100%; }
.mw-450 { max-width: 450px; }
.mw-480 { max-width: 480px; }
.mw-560 { max-width: 560px; }
.mw-680 { max-width: 680px; }
.min-w-80 { min-width: 80px; }
.min-w-90 { min-width: 90px; }
.sticky-top-checkout { top: 80px; }
.payment-option-label { cursor: pointer; }

/* Thumbnails & Image Dimensions */
.navbar-logo-img { height: 36px; width: auto; object-fit: contain; }
.footer-logo-img { height: 28px; width: auto; object-fit: contain; vertical-align: -6px; }
.footer-font-playfair { font-family: 'Playfair Display', serif; }
.footer-divider { border-color: #333; }
.thumb-40 { width: 40px; height: 40px; object-fit: cover; }
.thumb-55 { width: 55px; height: 55px; object-fit: cover; border-radius: 10px; }
.thumb-60 { width: 60px; height: 60px; object-fit: cover; border-radius: 10px; }
.thumb-70 { width: 70px; height: 70px; object-fit: cover; }
.thumb-80 { width: 80px; height: 80px; object-fit: cover; border-radius: 12px; }
.img-product-detail { height: 420px; object-fit: cover; cursor: zoom-in; }
.img-product-thumb { width: 70px; height: 70px; object-fit: cover; cursor: pointer; border: 2px solid transparent; }
.img-product-thumb.active-thumb { border-color: var(--primary) !important; }
.img-blog-card { height: 200px; object-fit: cover; }
.img-blog-main { height: 350px; object-fit: cover; }
.img-blog-related { height: 140px; object-fit: cover; }
.img-wishlist { height: 200px; object-fit: cover; }
.product-card-preview-img { height: 160px; object-fit: cover; }

/* Hero & Page Banners */
.hero-carousel-height { min-height: 500px; }
.hero-gradient-fallback { background: linear-gradient(135deg, #1a1a2e 0%, #2d6a4f 50%, #e8521a 100%); min-height: 500px; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.2) 100%); z-index: 0; }
.hero-container { min-height: 500px; z-index: 1; }
.badge-hero { background: var(--accent); color: #1a1a2e; }
.section-dark-gradient { background: linear-gradient(135deg, #1a1a2e, #2d2d4a); }
.banner-state-gradient { background: linear-gradient(135deg, #1a1a2e, #2d6a4f); }
.banner-district-gradient { background: linear-gradient(135deg, #e8521a, #f4a261); }
.text-accent-review { color: #f4a261; }
.card-review-glass { background: rgba(255, 255, 255, .07); }
.avatar-review { width: 40px; height: 40px; }
.feature-card {
    background: linear-gradient(135deg, #fff8f3, #fff);
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
    transition: all .3s;
}
.feature-card:hover {
    transform: translateY(-5px);
}

/* Product Show Page */
.badge-product-category { background: #fdf0e8; color: var(--primary); }
.product-title-lg { font-size: 1.6rem; }
.product-price-box { background: #fdf8f3; }
.product-price-highlight { font-size: 2rem; }
.product-qty-input { width: 60px; }
.btn-wishlist-lg { width: 48px; height: 48px; }

/* Shadows & Subtles */
.auth-card-shadow { box-shadow: 0 8px 40px rgba(0,0,0,.1); }
.card-shadow-lg { box-shadow: 0 4px 30px rgba(0,0,0,.1); }
.card-shadow-xl { box-shadow: 0 4px 24px rgba(0,0,0,.09); }
.card-shadow-sm { box-shadow: 0 4px 15px rgba(0,0,0,.07); }
.bg-subtle-order { background: #fdf8ff; }

/* Stepper / Timeline */
.step-circle { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.step-circle.step-done { background: var(--primary); color: #fff; }
.step-circle.step-pending { background: #e9ecef; color: #6c757d; }
.step-line { height: 3px; min-width: 20px; }
.step-line.step-done { background: var(--primary); }
.step-line.step-pending { background: #e9ecef; }
.step-text.step-done { color: var(--primary); font-weight: 600; }
.step-text.step-pending { color: #adb5bd; font-weight: 400; }
.step-order-detail-line { top: 20px; left: 5%; right: 5%; height: 3px; background: #e9ecef; z-index: 0; }
.step-circle-detail { width: 40px; height: 40px; border-radius: 50%; }
.step-circle-detail.step-done { background: var(--primary); color: #fff; }
.step-circle-detail.step-pending { background: #e9ecef; color: #999; }
.step-detail-text.step-done { color: var(--primary); }
.step-detail-text.step-pending { color: #999; }

/* Direct Review Modal & Interactive Star Rating */
.star-rating-select .star-item {
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
    color: #dee2e6;
}
.star-rating-select .star-item.active,
.star-rating-select .star-item.hovered {
    color: #ffc107;
}
.star-rating-select .star-item:hover {
    transform: scale(1.2);
}
.review-modal-thumb {
    width: 54px;
    height: 54px;
    object-fit: cover;
}


