:root {
    --bg-color: #ffffff;
    --text-color: #111111;
    --header-bg: #ffffff;
    --primary: #1e3a8a; /* Main Blue (Logo Blue) */
    --secondary: #172554; /* Darker Blue */
    --accent: #1e3a8a; /* Blue Accent */
}

/* BRAND COLOR OVERRIDES */
.text-primary {
    color: var(--primary) !important;
}

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

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

.btn-primary:hover {
    background-color: #172554; /* Darker Blue */
    border-color: #172554;
}

.text-danger {
    color: #dc2626 !important; /* Restore standard danger red */
}

.bg-danger {
    background-color: #dc2626 !important;
}

.btn-danger {
    background-color: #dc2626;
    border-color: #dc2626;
}

.btn-danger:hover {
    background-color: #b91c1c; /* Darker Red */
    border-color: #b91c1c;
}

body.dark {
    --bg-color: #0f172a;
    --text-color: #e5e7eb;
    --header-bg: #020617;
    --primary: #60a5fa; /* Lighter Blue for Dark Mode */
    --bg-light: #1e293b; /* Dark Slate for bg-light */
    --card-bg: #27354f; /* Slightly lighter than bg-light for contrast */
    --card-border: #334155;
}

/* DARK MODE OVERRIDES */
body.dark .bg-light {
    background-color: var(--bg-light) !important;
    color: var(--text-color) !important;
}

body.dark .card {
    background-color: var(--card-bg);
    border-color: var(--card-border);
    color: var(--text-color);
}

body.dark .text-muted {
    color: #94a3b8 !important; /* Lighter Gray */
}

body.dark .text-dark {
    color: #f1f5f9 !important; /* White text for text-dark elements */
}

body.dark .shadow-sm {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3) !important;
}

/* Ensure placeholder icons in cards are visible */
body.dark .bg-light i.text-secondary {
    color: #cbd5e1 !important; /* Lighter secondary icon color */
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: 0.3s ease;
    font-family: "Siemreap", sans-serif;
    font-weight: 400;
    font-style: normal;
}

/* Global Responsive Typography */
/*@media (max-width: 768px) {*/
/*    h1, .h1 { font-size: 1.75rem !important; }*/
/*    h2, .h2 { font-size: 1.5rem !important; }*/
/*    h3, .h3 { font-size: 1.25rem !important; }*/
/*    h4, .h4 { font-size: 1.15rem !important; }*/
/*    h5, .h5 { font-size: 1rem !important; }*/
/*    p { font-size: 0.95rem !important; }*/
    
/*    .container { padding-left: 15px !important; padding-right: 15px !important; }*/
/*    .section-title { margin-bottom: 2rem !important; }*/
/*}*/

/*@media (max-width: 576px) {*/
/*    h1, .h1 { font-size: 1.5rem !important; }*/
/*    h2, .h2 { font-size: 1.35rem !important; }*/
/*    h3, .h3 { font-size: 1.15rem !important; }*/
/*    p { font-size: 0.85rem !important; }*/
    
/*    .btn-lg { padding: 0.6rem 1.2rem !important; font-size: 0.9rem !important; }*/
    
    /* Specific overrides for Home/Catalog pages */
/*    .textTitle h2 { font-size: 1.5rem !important; }*/
/*    .textTitle p { font-size: 0.9rem !important; }*/
/*    .textCollection { font-size: 1.5rem !important; margin-top: 2rem !important; }*/
/*    .product-title { font-size: 1rem !important; }*/
/*    .product-description { font-size: 0.8rem !important; }*/
/*    .product-price { font-size: 0.9rem !important; }*/
    
    /* Detail page titles */
/*    .product-title-detail { font-size: 1.5rem !important; }*/
/*    .product-price-detail { font-size: 1.25rem !important; }*/
/*}*/

/* HEADER */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--header-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    position: relative;
}
.navbar-brand {
    /* font-family: "Caveat", cursive; */
    font-optical-sizing: auto;
    font-style: normal;
    font-size: 25px;
}
.textBrowseType {
    /* font-family: "Caveat", cursive; */
    font-optical-sizing: auto;
    font-style: normal;
    /* text-decoration: underline; */
}
/* Existing hover underline */
.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

/* Active page underline like hover */
.nav-link.active::after {
    width: 100%;
}

.theme-toggle {
    cursor: pointer;
    font-size: 22px;
    border: none;
    background: none;
    color: var(--text-color);
}

.navbar-toggler {
    border: none;
}

body.dark .navbar-toggler-icon {
    filter: invert(1);
}

/* CAROUSEL */
/* CAROUSEL BASE */
.carousel-item img {
    width: 100%;
    height: 80vh;
    object-fit: cover;

    /* initial animation state */
    transform: scale(1.08);
    transition: transform 1.2s ease;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.55);
    padding: 20px;
    border-radius: 12px;

    /* initial animation state */
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

/* Animate ONLY when carousel is ready */
.carousel.carousel-loaded .carousel-item.active img {
    transform: scale(1);
}

.carousel.carousel-loaded .carousel-item.active .carousel-caption {
    opacity: 1;
    transform: translateY(0);
}

/* MOBILE FIX */
@media (max-width: 768px) {
    .carousel-item img {
        height: auto;
        max-height: 60vh;
        object-fit: contain;
        background: #000;
    }

    .carousel-caption {
        padding: 12px;
    }

    .carousel-caption p {
        font-size: 14px;
    }
}


/* Catalog Points Section */
.mainPoint {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 15px;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.mainPoint .firstPoint,
.mainPoint .secondPoint,
.mainPoint .thirdPoint {
    flex: 1;
    min-width: 300px;
    background-color: #fff;
    padding: 30px 25px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.mainPoint .firstPoint:hover,
.mainPoint .secondPoint:hover,
.mainPoint .thirdPoint:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: rgba(227, 30, 36, 0.1);
}

/* Icons */
.mainPoint i {
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
}

/* Text Styling */
.mainPoint .text p.fw-bold {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: #1f2937;
    font-weight: 700 !important;
}

.mainPoint .text p:last-child {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Dark Mode Support */
body.dark .mainPoint .firstPoint,
body.dark .mainPoint .secondPoint,
body.dark .mainPoint .thirdPoint {
    background-color: #1e293b;
    border-color: #334155;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

body.dark .mainPoint .firstPoint:hover,
body.dark .mainPoint .secondPoint:hover,
body.dark .mainPoint .thirdPoint:hover {
    background-color: #263345;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
    border-color: #ef4444;
}

body.dark .mainPoint .text p.fw-bold {
    color: #f3f4f6;
}

body.dark .mainPoint .text p:last-child {
    color: #94a3b8;
}

@media (max-width: 992px) {
    .mainPoint {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .mainPoint {
        flex-direction: column;
        align-items: center;
        margin: 30px auto;
    }

    .mainPoint .firstPoint,
    .mainPoint .secondPoint,
    .mainPoint .thirdPoint {
        width: 100%;
        min-width: unset;
        padding: 20px;
    }
}

.hover-card {
    overflow: hidden;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

/* =========================================
   ABOUT PAGE STYLES
   ========================================= */

.about-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 100px 0;
}

.about-image-wrapper {
    padding: 20px;
}

.about-img-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    height: 90%;
    background-color: var(--primary);
    border-radius: 20px;
    z-index: 0;
    opacity: 0.1;
}

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

.icon-box {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hover-card-up {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-card-up:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid var(--primary); /* Add border on hover */
}

/* Dark Mode for About Page */
body.dark .about-hero {
    background-color: #0f172a;
}

body.dark .about-description {
    color: #cbd5e1 !important;
}

body.dark .hover-card-up {
    background-color: #1e293b;
    color: #f1f5f9;
}

body.dark .hover-card-up .text-muted {
    color: #94a3b8 !important;
}

body.dark .icon-box.bg-danger {
    background-color: rgba(220, 53, 69, 0.2) !important;
}

body.dark .icon-box.bg-primary {
    background-color: rgba(30, 58, 138, 0.2) !important; /* Brand Blue transparent */
}

body.dark .about-img-bg {
    background-color: var(--primary);
    opacity: 0.2;
}

/* =========================================
   CONTACT PAGE STYLES
   ========================================= */

.contact-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); /* Blue gradient */
    padding: 100px 0;
}

.map-wrapper {
    min-height: 500px;
    background-color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
}

/* Dark Mode for Contact Page */
body.dark .contact-hero {
    background: linear-gradient(135deg, var(--secondary) 0%, #0f172a 100%);
}

body.dark .map-wrapper {
    background-color: #1e293b;
}

body.dark .map-wrapper .badge {
    background-color: #334155 !important;
    color: #f1f5f9 !important;
    border-color: #475569 !important;
}

body.dark .section-title .text-muted {
    color: #94a3b8 !important;
}

body.dark .contact-cards .card {
    background-color: #1e293b;
    color: #f1f5f9;
}

body.dark .contact-cards .card .text-muted {
    color: #94a3b8 !important;
}

body.dark .contact-cards .icon-box.bg-warning {
    background-color: rgba(255, 193, 7, 0.2) !important;
}

body.dark .contact-cards .icon-box.bg-success {
    background-color: rgba(25, 135, 84, 0.2) !important;
}

/* Optional: zoom on hover */
.hover-card:hover img {
    transform: scale(1.05);
}

/* Overlay button */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    background: rgba(0, 0, 0, 0.35);
    transition: opacity 0.3s ease;
}

.hover-card:hover .overlay {
    opacity: 1;
}

.overlay .btn {
    opacity: 1;
    transform: scale(1);
    transition: transform 0.3s ease;
}

.hover-card:hover .overlay .btn {
    transform: scale(1.1);
}
.textTitle {
    text-align: center;
    margin: 40px 0;
}
body.dark .hover-card {
    background-color: #1e293b;
    color: #f1f5f9;
    border: 1px solid #334155;
    transition: background-color 0.3s, color 0.3s;
}

body.dark .hover-card .card-title,
body.dark .hover-card .card-text {
    color: #f1f5f9;
}

body.dark .hover-card .product-title a {
    color: #f1f5f9 !important;
}

body.dark .hover-card .product-category {
    color: #94a3b8;
}

body.dark .hover-card .product-description {
    color: #cbd5e1;
}

body.dark .hover-card .product-price {
    color: #fbbf24;
}

body.dark .hover-card .overlay {
    background-color: rgba(0, 0, 0, 0.5);
}

body.dark .hover-card .overlay .btn-danger {
    background-color: #dc2626;
    border: none;
}
.card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}
.browse-wrapper {
    display: grid;
    gap: 20px;
    margin: 20px auto;
}

/* Responsive columns */
@media (max-width: 575px) {
    .browse-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 576px) and (max-width: 991px) {
    .browse-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .browse-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }
}

.browse-box {
    position: relative;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
}

/* Image fills box */
.browse-box img {
    width: 100%;
    height: 100%;
    /* object-fit: cover; */
    transition: transform 0.5s ease;
}

/* Zoom image on hover */
.browse-box:hover img {
    transform: scale(1.08);
}

/* Center title */
.browse-box .title {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.35);
    transition: opacity 0.3s ease;
    z-index: 2;
}

/* Hover overlay */
.hover-content {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.browse-box:hover .hover-content {
    opacity: 1;
}

.browse-box:hover .title {
    opacity: 0;
}

.footerIcon i {
    font-size: 24px;
    margin: 0 10px;
    padding-bottom: 5px; /* space between icon and underline */
    border-bottom: 2px solid #ffb703; /* underline color */
    display: inline-block; /* needed for border-bottom to work */
    transition: transform 0.3s;
}

.footerIcon i:hover {
    transform: translateY(-2px); /* optional hover effect */
}

/* ===================== FOOTER ===================== */
.footer {
    background-color: #0B1120; /* Darker blue/black */
    color: #94a3b8;
    padding-top: 60px;
    padding-bottom: 30px;
    font-size: 0.95rem;
    width: 100%;
}

body.dark .footer {
    background-color: #020617; /* Even darker for dark mode */
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col {
    flex: 1;
    min-width: 220px;
}

.footer-col h5 {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.footer-col p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #64748b;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    font-size: 0.9rem;
}

.footer-col ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

/* Social Icons */
.social-links {
    display: flex;
    gap: 10px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.social-icon:hover {
    background-color: #fff;
    color: #0B1120;
    transform: translateY(-2px);
}

/* Contact Items */
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: #64748b;
    font-size: 0.9rem;
}

.footer-contact-item i {
    color: #64748b;
    margin-right: 15px;
    font-size: 1rem;
    margin-top: 3px;
    width: 20px;
    text-align: center;
}

.footer-copy {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #64748b;
    font-size: 0.8rem;
    margin-bottom: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-row {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-col {
        width: 100%;
    }
}

/* Search Suggestions Styles */
.suggestion-item:hover {
    background-color: #f8f9fa;
}
body.dark .suggestion-item:hover {
    background-color: #334155 !important;
}
body.dark #searchSuggestions {
    background-color: #1e293b !important;
    border: 1px solid #334155;
}
body.dark .suggestion-item {
    border-bottom-color: #334155 !important;
    color: #f1f5f9;
}

/* Dark mode modal ViewDetail */

.dark-mode-bg {
    background-color: #121212 !important;
}
.dark-mode-text {
    color: #f1f1f1 !important;
}
.card.dark-mode-bg {
    background-color: #1e1e1e !important;
}
.card.dark-mode-text {
    color: #f1f1f1 !important;
}
.modal-content.dark-mode-bg {
    background-color: #1e1e1e !important;
}
.modal-content.dark-mode-text {
    color: #f1f1f1 !important;
}
body.dark-mode-bg {
    background-color: #121212 !important;
}
body.dark-mode-text {
    color: #f1f1f1 !important;
}
/* Add this to your existing CSS file */
.social-icon {
    color: #555;
    font-size: 20px;
    margin-right: 12px;
    transition: color 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    color: #007bff; /* Change to your preferred hover color */
}

body.dark .social-icon {
    color: #ccc;
}

body.dark .social-icon:hover {
    color: #fff;
}

/* ===================== DARK MODE CATALOG FILTER ===================== */
body.dark .card {
    background-color: #1e293b;
    color: #f1f5f9;
    border-color: #334155;
}

/* Form Inputs in Dark Mode */
body.dark .form-control,
body.dark .form-select {
    background-color: #0f172a;
    border-color: #334155;
    color: #f1f5f9;
}

body.dark .form-control::placeholder {
    color: #94a3b8;
}

body.dark .form-check-input {
    background-color: #0f172a;
    border-color: #334155;
}

body.dark .form-check-input:checked {
    background-color: #dc2626; /* Match btn-danger */
    border-color: #dc2626;
}

body.dark .form-check-label {
    color: #e2e8f0;
}

/* General Text Colors */
body.dark .text-muted {
    color: #cbd5e1 !important;
}

body.dark .text-dark {
    color: #f1f5f9 !important;
}

/* Dropdowns */
body.dark .dropdown-menu {
    background-color: #1e293b;
    border-color: #334155;
}

body.dark .dropdown-item {
    color: #f1f5f9;
}

body.dark .dropdown-item:hover {
    background-color: #334155;
    color: #fff;
}

/* Buttons */
body.dark .btn-outline-secondary {
    color: #cbd5e1;
    border-color: #475569;
}

body.dark .btn-outline-secondary:hover {
    background-color: #475569;
    color: #fff;
}

/* Icons */
body.dark .fa-fan,
body.dark .text-danger {
    color: #ef4444 !important; /* Make red text/icons slightly lighter/brighter in dark mode */
}
