/**
 * Bhaskar Masale - Main Customer Styles
 * Theme aligned with bhasker-food-xmlh.vercel.app (teal + gold)
 */

:root {
    --primary: #073b2e;
    --primary-dark: #04251d;
    --primary-light: #0d644d;
    --accent: #d99414;
    --accent-light: #f2ae2b;
    --secondary: #1a1a1a;
    --secondary-light: #707070;
    --cream: #faf6ee;
    --cream-dark: #f0e9dc;
    --bg-light: #faf6ee;
    --text-muted: #707070;
    --border-color: rgba(0, 0, 0, 0.08);
    --teal-dark: #073b2e;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --transition: all 0.3s ease;
}

/* Base */
body {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.625;
    color: var(--secondary);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.font-display,
.font-heading,
.section-title,
.page-title,
.product-name,
.product-title,
.auth-title,
.footer-heading,
.hero-title-ref,
.card-title,
.accordion-button {
    font-family: var(--font-heading);
}

.font-display,
.font-heading {
    font-weight: 600;
}

.section-title,
.page-title {
    font-weight: 700;
    letter-spacing: -0.01em;
}

.hero-kicker,
.text-accent.text-uppercase {
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.2em;
}

.mega-nav-link,
.header-action-link,
.btn,
.form-control,
.form-select,
.navbar-brand,
.footer-links a,
.footer-meta,
.footer-tagline {
    font-family: var(--font-body);
}

a {
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* Bootstrap Overrides */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
}

.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.2rem rgba(7, 59, 46, 0.12);
}

.text-accent {
    color: var(--accent) !important;
}

.bg-cream {
    background-color: var(--cream) !important;
}

.bg-soft-white {
    background-color: var(--cream) !important;
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border: none;
    color: #fff;
    font-weight: 600;
}

.btn-accent:hover {
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    color: #fff;
}

.btn-outline-light-hero {
    border: 2px solid rgba(255, 255, 255, 0.85);
    color: #fff;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.65rem 1.75rem;
}

.btn-outline-light-hero:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: #fff;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
}

.pagination .page-link {
    color: var(--primary);
}

.pagination .page-link:hover {
    color: var(--primary-dark);
}

/* Header */
.site-header {
    z-index: 1030;
}

.site-header .navbar {
    --bs-navbar-padding-y: 0;
    position: relative;
    z-index: 1035;
}

.header-actions {
    position: relative;
    z-index: 1040;
}

.header-actions .dropdown {
    position: relative;
}

.header-row {
    min-height: 48px;
}

.navbar-brand {
    padding-top: 0;
    padding-bottom: 0;
}

.site-logo {
    height: 52px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
}

.site-header.theme-bhaskar .site-logo {
    height: 48px;
    max-width: 170px;
}

.site-logo-sm {
    height: 40px;
    max-width: 140px;
}

.footer-logo {
    height: 56px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.auth-logo img,
.auth-visual-logo {
    height: 64px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

.auth-visual-logo {
    height: 88px;
    max-width: 260px;
}

.header-action-link {
    color: var(--secondary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem;
    line-height: 1;
    transition: var(--transition);
}

.header-action-link:hover,
.header-action-link:focus {
    color: var(--primary);
}

.header-actions .dropdown-toggle::after {
    margin-left: 0.25rem;
    vertical-align: middle;
}

.header-actions .dropdown-menu {
    margin-top: 0.5rem !important;
    min-width: 210px;
    padding: 0.375rem 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 1040;
}

.header-actions .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.header-actions .dropdown-item i {
    width: 1.125rem;
    text-align: center;
    flex-shrink: 0;
}

.header-actions .dropdown-menu form {
    margin: 0;
}

.header-actions .dropdown-menu form .dropdown-item {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(25%, -25%);
    font-size: 0.65rem;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.35rem;
}

/* Mega Menu — teal bar like reference site */
.mega-menu-bar {
    background: var(--primary);
    position: relative;
    z-index: 1020;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header.theme-bhaskar {
    background: rgba(7, 59, 46, 0.97) !important;
    box-shadow: 0 4px 24px rgba(4, 37, 29, 0.25);
}

.site-header.theme-bhaskar .navbar {
    background: transparent;
}

.site-header.theme-bhaskar .header-action-link {
    color: rgba(255, 255, 255, 0.92);
}

.site-header.theme-bhaskar .header-action-link:hover {
    color: var(--accent-light);
}

.site-header.theme-bhaskar .navbar-toggler {
    color: #fff;
}

.site-header.theme-bhaskar .form-control {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.site-header.theme-bhaskar .form-control::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.site-header.theme-bhaskar .search-form .btn-primary {
    background: var(--accent);
    border-color: var(--accent);
}

.header-logo-pill {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 0.35rem 0.75rem;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.top-bar.theme-bhaskar {
    background: var(--primary-dark) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mega-nav {
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0;
}

.mega-nav-item {
    position: relative;
    display: flex;
    align-items: stretch;
}

.mega-nav-item.has-dropdown {
    position: static;
}

.mega-nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.875rem 1rem;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.2;
    transition: var(--transition);
    white-space: nowrap;
    height: 100%;
}

.mega-nav-link:hover {
    color: var(--accent-light);
    background: rgba(255, 255, 255, 0.06);
}

.mega-nav-item.has-dropdown:hover > .mega-nav-link,
.mega-nav-item.has-dropdown:focus-within > .mega-nav-link {
    color: var(--accent-light);
    background: rgba(255, 255, 255, 0.06);
}

.mega-nav-link.text-primary {
    color: var(--accent-light) !important;
}

.mega-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: #fff;
    box-shadow: var(--shadow-lg);
    border-top: 3px solid var(--primary);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 1020;
    pointer-events: none;
}

.mega-nav-item.has-dropdown:hover .mega-dropdown,
.mega-nav-item.has-dropdown:focus-within .mega-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.mega-dropdown-link {
    color: var(--secondary);
    text-decoration: none;
    font-size: 0.875rem;
    padding: 0.25rem 0;
    display: block;
}

.mega-dropdown-link:hover {
    color: var(--primary);
}

.mega-promo {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

/* Mobile Nav */
.mobile-nav-link {
    display: block;
    padding: 0.75rem 0;
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-link:hover {
    color: var(--primary);
}

/* Hero (reference-style full viewport slider) */
.hero-slider-ref {
    position: relative;
}

.hero-slider-ref .carousel-inner,
.hero-slider-ref .carousel-item {
    min-height: min(92vh, 820px);
}

.hero-slide-ref {
    min-height: min(92vh, 820px);
    display: flex;
    align-items: center;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
}

.hero-slide-ref::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(4, 37, 29, 0.88) 0%, rgba(7, 59, 46, 0.55) 45%, rgba(7, 59, 46, 0.25) 100%);
    pointer-events: none;
}

.hero-slide-ref::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent 55%);
    pointer-events: none;
}

.hero-slide-inner {
    position: relative;
    z-index: 2;
    padding-top: 5.5rem;
    padding-bottom: 4rem;
}

.hero-kicker {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.hero-title-ref {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.12;
    color: #fff;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.hero-title-ref .text-shimmer {
    background: linear-gradient(90deg, #fff 0%, var(--accent-light) 50%, #fff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-sub-ref {
    color: rgba(255, 255, 255, 0.82);
    max-width: 32rem;
}

.hero-glass-card {
    background: rgba(4, 37, 29, 0.45);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    color: #fff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.hero-slider-ref .carousel-indicators {
    margin-bottom: 1.5rem;
}

.hero-slider-ref .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.45);
    border: none;
}

.hero-slider-ref .carousel-indicators .active {
    background-color: var(--accent);
}

.hero-slider-ref .carousel-control-prev-icon,
.hero-slider-ref .carousel-control-next-icon {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

/* Legacy hero (inner pages) */
.hero-slide {
    min-height: 520px;
    display: flex;
    align-items: center;
    background-position: center;
    background-size: cover;
}

.hero-slide-content {
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.hero-title {
    font-weight: 700;
    line-height: 1.2;
}

.hero-badge {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
    letter-spacing: 0.5px;
    background: var(--accent) !important;
}

/* Sections */
.section-title {
    font-weight: 700;
    color: var(--secondary);
}

/* Category Cards */
.category-card-inner {
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.category-card:hover .category-card-inner {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.category-image {
    height: 140px;
    overflow: hidden;
    background: var(--bg-light);
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.08);
}

/* Product Cards */
.product-card {
    transition: var(--transition);
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md) !important;
}

.product-card-image {
    overflow: hidden;
    background: #fff;
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 14px;
}

.product-card-image > a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.product-card-image img,
.product-card-image .card-img-top {
    max-height: 100%;
    max-width: 100%;
    width: auto !important;
    height: auto;
    object-fit: contain;
    object-position: center;
    transition: transform 0.5s ease;
}

.product-card:hover .product-card-image img {
    transform: scale(1.04);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.product-badge-right {
    left: auto;
    right: 10px;
}

.btn-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #fff;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-wishlist:hover,
.btn-wishlist.active {
    color: #dc3545;
    background: #fff;
}

/* Product detail — wishlist must not use card overlay positioning */
.product-detail .btn-wishlist--detail {
    position: static;
    width: auto;
    height: auto;
    min-height: 48px;
    box-shadow: none;
    flex-shrink: 0;
}

.product-detail .btn-wishlist--detail.active {
    color: #dc3545;
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.06);
}

.product-detail .btn-wishlist--gallery {
    top: 14px;
    right: 14px;
}

.product-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
}

.product-card:hover .product-card-overlay {
    opacity: 1;
    transform: translateY(0);
}

.product-title a:hover {
    color: var(--primary) !important;
}

/* Promo Banner */
.promo-banner {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 50%, var(--primary) 100%);
}

/* Reviews */
.review-avatar {
    width: 44px;
    height: 44px;
    font-weight: 600;
}

.review-card {
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md) !important;
}

.star-rating-input {
    display: inline-flex;
    gap: 4px;
}

.star-rating-btn {
    border: none;
    background: none;
    padding: 0;
    line-height: 1;
    color: #ffc107;
    font-size: 1.35rem;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.star-rating-btn:hover,
.star-rating-btn:focus {
    transform: scale(1.1);
    outline: none;
}

.star-rating-btn .bi-star {
    color: #dee2e6;
}

.review-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 0, 0.15);
}

.review-display-compact {
    padding-top: 0.25rem;
}

/* Newsletter */
.newsletter-box {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

/* FAQ Accordion */
.faq-accordion .accordion-button:not(.collapsed) {
    background: rgba(7, 59, 46, 0.06);
    color: var(--primary);
    box-shadow: none;
}

.faq-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: var(--border-color);
}

/* Footer (reference layout) */
.site-footer {
    background: var(--primary-dark) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: #fff;
}

.footer-heading {
    color: var(--accent);
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.62);
    text-decoration: none;
    font-size: 0.875rem;
    line-height: 2.1;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(3px);
}

.footer-brand-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 0.5rem 1rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.footer-brand-box .footer-logo {
    height: 56px;
    max-width: 220px;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.875rem;
    line-height: 1.65;
    max-width: 22rem;
}

.footer-meta {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    line-height: 1.7;
    max-width: 22rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent);
    color: #fff;
    transform: scale(1.08);
}

.footer-bottom-ref {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-ref a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.875rem;
}

.footer-bottom-ref a:hover {
    color: #fff;
}

/* Auth Pages */
.auth-body {
    background: var(--bg-light);
}

.auth-visual {
    width: 45%;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    min-height: 100vh;
}

.auth-form-panel {
    max-width: 520px;
    margin: 0 auto;
}

.auth-card {
    max-width: 420px;
}

.auth-alert {
    max-width: 420px;
}

.auth-title {
    font-weight: 700;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.btn-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: #fff;
    border: 1px solid #dadce0;
    color: #3c4043;
    font-weight: 500;
    transition: var(--transition);
}

.btn-google:hover,
.btn-google:focus {
    background: #f8f9fa;
    border-color: #dadce0;
    color: #202124;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.15);
}

.google-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Account Pages */
.account-nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: var(--transition);
    line-height: 1.4;
}

.account-nav-link i {
    width: 1.25rem;
    text-align: center;
    flex-shrink: 0;
}

.account-nav-link:hover,
.account-nav-link.active {
    color: var(--primary);
    background: rgba(255, 107, 0, 0.06);
    border-left-color: var(--primary);
}

.account-nav-link.btn-logout:hover {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.06);
    border-left-color: #dc3545;
}

/* Cart & Checkout */
.cart-item-image {
    object-fit: contain;
    background: #fff;
    padding: 4px;
}

.checkout-steps {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.checkout-steps .step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.checkout-steps .step.active {
    color: var(--primary);
    font-weight: 600;
}

.checkout-steps .step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.checkout-steps .step.active .step-num {
    background: var(--primary);
    color: #fff;
}

.checkout-steps .step-line {
    flex: 1;
    height: 2px;
    background: var(--border-color);
    max-width: 60px;
}

.payment-option,
.address-option {
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid var(--border-color) !important;
}

.payment-option:has(input:checked),
.address-option:has(input:checked) {
    border-color: var(--primary) !important;
    background: rgba(255, 107, 0, 0.04);
}

/* Contact page forms */
.contact-page-lead {
    max-width: 36rem;
}

.contact-form-block {
    height: auto;
}

.contact-form-card {
    height: auto;
    overflow: hidden;
}

.contact-form-card .card-body {
    height: auto;
}

.contact-form-card--distributor {
    border-left: 4px solid var(--accent) !important;
}

.contact-form .row:last-child {
    margin-bottom: 0;
}

/* Contact */
.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #f0b429;
    background: rgba(255, 193, 7, 0.08);
    color: #d4a017;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.15rem;
}

.contact-value {
    color: var(--secondary);
    font-weight: 600;
    font-size: 1.05rem;
}

.contact-value:hover {
    color: var(--primary);
}

.contact-label {
    color: var(--secondary);
    font-weight: 600;
}

/* Contact locations (reference section) */
.location-section-lead {
    max-width: 36rem;
}

.about-snippet-text {
    font-size: 1.05rem;
    line-height: 1.75;
}

.location-company-bar {
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.location-company-item {
    min-width: 0;
}

.location-company-body {
    min-width: 0;
    flex: 1 1 auto;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (min-width: 992px) {
    .location-company-item--email {
        padding-right: 0.25rem;
    }
}

.location-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(7, 59, 46, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.15rem;
}

.location-factory-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.location-factory-card:hover {
    box-shadow: 0 20px 50px rgba(7, 59, 46, 0.12);
}

.btn-location-directions {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
    white-space: nowrap;
}

.btn-location-directions:hover {
    background: var(--accent);
    color: #fff;
}

.location-map-wrap {
    position: relative;
    width: 100%;
    height: 300px;
}

@media (min-width: 992px) {
    .location-map-wrap {
        height: 400px;
    }
}

.location-map-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.mega-nav-item .btn-accent {
    font-size: 0.8125rem;
    font-weight: 600;
}

/* Error Pages */
.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg-light);
}

.error-code {
    line-height: 1;
    opacity: 0.9;
}

/* Search Suggestions */
.search-form {
    position: relative;
    max-width: 560px;
    min-width: 0;
}

.search-form .input-group {
    width: 100%;
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    width: 100%;
    max-height: 320px;
    overflow-y: auto;
    display: none;
    margin: 0;
    padding: 0.375rem 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.search-suggestions.show {
    display: block;
}

.search-suggestions .dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    white-space: normal;
}

.search-suggestions .dropdown-item:hover {
    background: rgba(255, 107, 0, 0.06);
}

/* Product Detail */
.product-gallery .main-image {
    background: #fff;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.product-gallery .main-image img {
    max-height: 360px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.product-gallery .thumbnail-btn img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    background: #fff;
    padding: 4px;
}

.thumbnail-btn {
    border: 2px solid transparent !important;
    transition: var(--transition);
}

.thumbnail-btn.active,
.thumbnail-btn:hover {
    border-color: var(--primary) !important;
}

/* Filters */
.filters-sidebar .form-check-label {
    font-size: 0.875rem;
    cursor: pointer;
}

/* Breadcrumbs */
.breadcrumb-nav {
    font-size: 0.875rem;
}

.breadcrumb-item a {
    color: var(--text-muted);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 991.98px) {
    .hero-slide {
        min-height: 360px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .product-card-image {
        height: 165px;
        padding: 10px 12px;
    }

    .auth-visual {
        display: none !important;
    }

    .header-actions .dropdown-menu {
        position: absolute;
        right: 0;
        left: auto;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .mega-nav-link {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 575.98px) {
    .hero-slide {
        min-height: 300px;
    }

    .product-card-image {
        height: 145px;
        padding: 8px 10px;
    }

    .product-gallery .main-image {
        min-height: 260px;
        padding: 1rem;
    }

    .product-gallery .main-image img {
        max-height: 280px;
    }
}

.footer-visitor-count {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.02em;
}

.terms-modal-content {
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.18);
}

.terms-modal-body.cms-page-content {
    font-size: 0.925rem;
    line-height: 1.65;
    color: #444;
}

.terms-modal-body.cms-page-content h2,
.terms-modal-body.cms-page-content h3 {
    color: #2d2d2d;
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
}

.terms-modal-body.cms-page-content h2 {
    font-size: 1.15rem;
}

.terms-modal-body.cms-page-content h3 {
    font-size: 1rem;
}

.terms-modal-body.cms-page-content ul {
    padding-left: 1.25rem;
}

.terms-modal-body.cms-page-content li {
    margin-bottom: 0.35rem;
}

/* Utilities */
.cursor-pointer {
    cursor: pointer;
}

.object-fit-cover {
    object-fit: cover;
}

/* Loading spinner for AJAX */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.object-cover {
    object-fit: cover;
}

/* Homepage About / sourcing (reference #sourcing) */
.sourcing-photo-wrap {
    position: relative;
    max-width: 36rem;
}

.sourcing-photo {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #1a1a1a;
}

.sourcing-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sourcing-photo-caption {
    position: absolute;
    left: 1.25rem;
    bottom: 1.25rem;
    background: rgba(7, 59, 46, 0.95);
    color: #fff;
    border-radius: 1rem;
    padding: 0.85rem 1.25rem;
    box-shadow: var(--shadow-md);
}

.sourcing-caption-kicker {
    color: var(--accent);
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-bottom: 0.15rem;
}

.sourcing-iso-badge {
    position: absolute;
    top: -0.75rem;
    right: -0.5rem;
    background: var(--accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.5rem 0.85rem;
    border-radius: 0.75rem;
    transform: rotate(6deg);
    box-shadow: var(--shadow-md);
    z-index: 2;
}

.sourcing-point-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: rgba(7, 59, 46, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.sourcing-point:hover .sourcing-point-icon {
    background: var(--primary);
    color: #fff;
}

/* About page */
.about-hero {
    position: relative;
    min-height: 420px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.about-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 37, 29, 0.72) 0%, rgba(7, 59, 46, 0.82) 100%);
}

.about-hero-kicker {
    display: inline-block;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    border: 1px solid rgba(217, 148, 20, 0.45);
    border-radius: 999px;
    padding: 0.4rem 1rem;
    margin-bottom: 1rem;
}

.about-stats .col-md-3 + .col-md-3 {
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.about-timeline {
    position: relative;
    max-width: 52rem;
}

.about-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent), rgba(7, 59, 46, 0.25), transparent);
    transform: translateX(-50%);
}

.about-timeline-item {
    width: 46%;
    margin-bottom: 1.75rem;
}

.about-timeline-item:nth-child(odd) {
    margin-right: auto;
}

.about-timeline-item--alt {
    margin-left: auto;
}

.about-quality {
    background: var(--primary);
}

.about-quality-photo {
    position: relative;
}

.about-quality-iso {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: var(--accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.45rem 0.85rem;
    border-radius: 0.75rem;
}

.about-quality-pure {
    position: absolute;
    left: -0.5rem;
    bottom: -1rem;
    background: #fff;
    border-radius: 1rem;
    padding: 0.85rem 1.15rem;
    box-shadow: var(--shadow-lg);
}

.about-quality-pill {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.75rem;
    padding: 0.7rem 0.9rem;
    font-size: 0.875rem;
}

.about-value-icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    background: rgba(217, 148, 20, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.about-mission {
    background: var(--cream-dark);
}

.about-vision {
    background: var(--primary);
}

.about-est-badge {
    position: absolute;
    left: 1.25rem;
    bottom: 1.25rem;
    background: rgba(7, 59, 46, 0.95);
    color: var(--accent);
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 0.45rem 0.9rem;
    border-radius: 0.85rem;
}

.about-location-chip {
    background: rgba(250, 246, 238, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 0.75rem 1rem;
}

.about-cta {
    background: linear-gradient(135deg, #1a1a1a, var(--primary-dark));
}

@media (max-width: 767.98px) {
    .about-timeline::before {
        display: none;
    }

    .about-timeline-item,
    .about-timeline-item--alt {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .about-stats .col-md-3 + .col-md-3 {
        border-left: 0;
    }

    .sourcing-iso-badge {
        right: 0.5rem;
    }

    .about-quality-pure {
        left: 0.75rem;
        bottom: 0.75rem;
    }
}
