/* Dark Mode Variables for Home Layout */
:root {
    --home-dark-bg-color: #121212;
    --home-dark-card-bg: #1e1e1e;
    --home-dark-text-color: #e0e0e0;
    --home-dark-border-color: #444;
    --home-dark-primary-color: #aa8318;
    --home-dark-secondary-color: #6c757d;
    --home-dark-input-bg: #2d2d2d;
    --home-dark-input-border: #555;
    --home-dark-input-text: #f8f9fa;
    --home-dark-shadow-color: rgba(0, 0, 0, 0.5);
    --home-dark-navbar-bg: #1a1a1a;
    --home-dark-footer-bg: #0d0d0d;
}

/* Dark Mode Body Styles */
body.dark_mode {
    background-color: var(--home-dark-bg-color) !important;
    color: var(--home-dark-text-color) !important;
}

/* Navbar Dark Mode */
body.dark_mode .navbar {
    background-color: var(--home-dark-navbar-bg) !important;
    border-bottom: 1px solid var(--home-dark-border-color) !important;
}

body.dark_mode .navbar .btn {
    color: var(--home-dark-text-color) !important;
}

body.dark_mode .navbar .btn-outline {
    border-color: var(--home-dark-primary-color) !important;
    color: var(--home-dark-primary-color) !important;
}

body.dark_mode .navbar .btn-outline:hover {
    background-color: var(--home-dark-primary-color) !important;
    color: #fff !important;
}

body.dark_mode .navbar .btn-dark {
    background-color: var(--home-dark-primary-color) !important;
    border-color: var(--home-dark-primary-color) !important;
    color: #fff !important;
}

body.dark_mode .navbar .btn-dark:hover {
    background-color: #8a6a14 !important;
    border-color: #8a6a14 !important;
}

/* Language and Currency Section */
body.dark_mode .lang_curanc h4 {
    color: var(--home-dark-text-color) !important;
}

/* Icons */
body.dark_mode .navbar i {
    color: var(--home-dark-text-color) !important;
}

/* Badge */
body.dark_mode .badge {
    background-color: var(--home-dark-primary-color) !important;
}

/* Sidebar Dark Mode */
body.dark_mode .sidebar {
    background-color: var(--home-dark-navbar-bg) !important;
    border-right: 1px solid var(--home-dark-border-color) !important;
}

body.dark_mode .sidebar .user h4 {
    color: var(--home-dark-text-color) !important;
}

body.dark_mode .sidebar ul li a {
    color: var(--home-dark-text-color) !important;
}

body.dark_mode .sidebar ul li a:hover {
    background-color: var(--home-dark-card-bg) !important;
    color: var(--home-dark-primary-color) !important;
}

body.dark_mode .sidebar .exit i {
    color: var(--home-dark-text-color) !important;
}

/* Sections Dark Mode */
body.dark_mode section {
    background-color: var(--home-dark-bg-color) !important;
}

body.dark_mode .intro h3 {
    color: var(--home-dark-text-color) !important;
}

body.dark_mode .intro p {
    color: #aaa !important;
}

body.dark_mode .intro hr {
    border-color: var(--home-dark-border-color) !important;
}

/* Cards and Boxes */
body.dark_mode .box {
    background-color: var(--home-dark-card-bg) !important;
    border-color: var(--home-dark-border-color) !important;
}

body.dark_mode .box h3,
body.dark_mode .box h4,
body.dark_mode .box p {
    color: var(--home-dark-text-color) !important;
}

body.dark_mode .box span {
    color: #aaa !important;
}

/* Product Cards */
body.dark_mode .item {
    background-color: var(--home-dark-card-bg) !important;
    border: 1px solid var(--home-dark-border-color) !important;
}

body.dark_mode .item h3 a {
    color: var(--home-dark-text-color) !important;
}

body.dark_mode .item span {
    color: #aaa !important;
}

body.dark_mode .sold_out {
    background-color: rgba(220, 53, 69, 0.8) !important;
    color: #fff !important;
}

/* Buttons */
body.dark_mode .link_button {
    background-color: var(--home-dark-primary-color) !important;
    border-color: var(--home-dark-primary-color) !important;
    color: #fff !important;
}

body.dark_mode .link_button:hover {
    background-color: #8a6a14 !important;
    border-color: #8a6a14 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(170, 131, 24, 0.4);
}

body.dark_mode .link_button.heart {
    background-color: transparent !important;
    border: 1px solid var(--home-dark-primary-color) !important;
}

body.dark_mode .link_button.heart:hover {
    background-color: var(--home-dark-primary-color) !important;
}

/* Counter Section — Glassmorphism Dark Mode */
body.dark_mode #counter .box {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(212, 175, 55, 0.1) !important;
}

body.dark_mode #counter .box i {
    color: #D4AF37 !important;
}

body.dark_mode #counter .box h3 {
    color: rgba(255, 255, 255, 0.7) !important;
}

body.dark_mode #counter .counter-value,
body.dark_mode #counter .stat-label {
    color: #D4AF37 !important;
}

/* Footer Dark Mode */
body.dark_mode .footer {
    background-color: var(--home-dark-footer-bg) !important;
    border-top: 1px solid var(--home-dark-border-color) !important;
}

body.dark_mode .footer h3 {
    color: var(--home-dark-text-color) !important;
}

body.dark_mode .footer p {
    color: #aaa !important;
}

body.dark_mode .footer ul li a {
    color: var(--home-dark-text-color) !important;
}

body.dark_mode .footer ul li a:hover {
    color: var(--home-dark-primary-color) !important;
}

body.dark_mode .footer .scroll_up {
    background-color: var(--home-dark-primary-color) !important;
    color: #fff !important;
}

body.dark_mode .footer .scroll_up:hover {
    background-color: #8a6a14 !important;
}

/* Social Icons */
body.dark_mode .sochial li a {
    background-color: var(--home-dark-card-bg) !important;
    border: 1px solid var(--home-dark-border-color) !important;
    color: var(--home-dark-text-color) !important;
}

body.dark_mode .sochial li a:hover {
    background-color: var(--home-dark-primary-color) !important;
    color: #fff !important;
}

/* WhatsApp Button - Premium Gold Overrides */
body.dark_mode .WahtsApp a {
    background-color: var(--home-dark-primary-color) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.4s ease !important;
}

body.dark_mode .WahtsApp a:hover {
    background-color: #d4af37 !important;
    color: #000 !important;
    transform: scale(1.15) rotate(5deg) !important;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.7) !important;
}

/* Form Controls */
body.dark_mode .form-control {
    background-color: var(--home-dark-input-bg) !important;
    border-color: var(--home-dark-input-border) !important;
    color: var(--home-dark-input-text) !important;
}

body.dark_mode .form-control::placeholder {
    color: #aaa !important;
}

body.dark_mode .form-control:focus {
    background-color: var(--home-dark-input-bg) !important;
    border-color: var(--home-dark-primary-color) !important;
    color: var(--home-dark-input-text) !important;
    box-shadow: 0 0 0 0.25rem rgba(170, 131, 24, 0.25) !important;
}

/* Form Check Switch - Dark Mode Toggle */
body.dark_mode .form-check-input {
    background-color: var(--home-dark-input-bg) !important;
    border-color: var(--home-dark-input-border) !important;
}

body.dark_mode .form-check-input:checked {
    background-color: var(--home-dark-primary-color) !important;
    border-color: var(--home-dark-primary-color) !important;
}

body.dark_mode .form-check-input:focus {
    border-color: var(--home-dark-primary-color) !important;
    box-shadow: 0 0 0 0.25rem rgba(170, 131, 24, 0.25) !important;
}

/* Moon/Sun Icon Styling */
.moon_icon {
    width: 30px;
    height: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.moon_icon:hover {
    transform: scale(1.1) rotate(15deg);
}

.sun_icon {
    filter: brightness(1.2);
}

/* Modal Dark Mode */
body.dark_mode .modal-content {
    background-color: var(--home-dark-card-bg) !important;
    border: 1px solid var(--home-dark-border-color) !important;
}

body.dark_mode .modal-header {
    border-bottom-color: var(--home-dark-border-color) !important;
}

body.dark_mode .modal-footer {
    border-top-color: var(--home-dark-border-color) !important;
}

body.dark_mode .modal-title {
    color: var(--home-dark-text-color) !important;
}

body.dark_mode .modal-body {
    color: var(--home-dark-text-color) !important;
}

body.dark_mode .close {
    color: var(--home-dark-text-color) !important;
}

/* Loading Container Dark Mode */
body.dark_mode #loading-container {
    background-color: var(--home-dark-bg-color) !important;
}

/* Stars Rating */
body.dark_mode .fa-star {
    color: var(--home-dark-primary-color) !important;
}

/* Payment Icons */
body.dark_mode .payment li img {
    filter: brightness(0.9);
}

/* Carousel Dark Mode */
body.dark_mode .owl-carousel .owl-nav button {
    background-color: var(--home-dark-card-bg) !important;
    color: var(--home-dark-text-color) !important;
    border: 1px solid var(--home-dark-border-color) !important;
}

body.dark_mode .owl-carousel .owl-nav button:hover {
    background-color: var(--home-dark-primary-color) !important;
    color: #fff !important;
}

body.dark_mode .owl-carousel .owl-dots .owl-dot span {
    background-color: var(--home-dark-border-color) !important;
}

body.dark_mode .owl-carousel .owl-dots .owl-dot.active span {
    background-color: var(--home-dark-primary-color) !important;
}

/* Search Modal */
body.dark_mode #exampleModalToggle_search .modal-content {
    background-color: var(--home-dark-card-bg) !important;
}

/* Tables */
body.dark_mode table {
    color: var(--home-dark-text-color) !important;
}

body.dark_mode table thead {
    background-color: var(--home-dark-card-bg) !important;
}

body.dark_mode table tbody tr {
    background-color: var(--home-dark-navbar-bg) !important;
    border-bottom: 1px solid var(--home-dark-border-color) !important;
}

body.dark_mode table tbody tr:hover {
    background-color: var(--home-dark-card-bg) !important;
}

/* Alerts */
body.dark_mode .alert {
    background-color: var(--home-dark-card-bg) !important;
    border-color: var(--home-dark-border-color) !important;
    color: var(--home-dark-text-color) !important;
}

body.dark_mode .alert-success {
    background-color: rgba(25, 135, 84, 0.2) !important;
    border-color: #198754 !important;
    color: #d1e7dd !important;
}

body.dark_mode .alert-danger {
    background-color: rgba(220, 53, 69, 0.2) !important;
    border-color: #dc3545 !important;
    color: #f8d7da !important;
}

body.dark_mode .alert-warning {
    background-color: rgba(255, 193, 7, 0.2) !important;
    border-color: #ffc107 !important;
    color: #fff3cd !important;
}

body.dark_mode .alert-info {
    background-color: rgba(13, 202, 240, 0.2) !important;
    border-color: #0dcaf0 !important;
    color: #cff4fc !important;
}

/* Smooth Transitions */
body,
.navbar,
.sidebar,
.footer,
.box,
.item,
.btn,
.form-control,
.modal-content {
    transition: background-color 0.3s ease, color 0.3s ease,
        border-color 0.3s ease !important;
}

/* Hover Effects Enhancement */
body.dark_mode a:not(.btn):hover {
    color: var(--home-dark-primary-color) !important;
}

/* Scrollbar Dark Mode */
body.dark_mode::-webkit-scrollbar {
    width: 10px;
}

body.dark_mode::-webkit-scrollbar-track {
    background: var(--home-dark-navbar-bg);
}

body.dark_mode::-webkit-scrollbar-thumb {
    background: var(--home-dark-primary-color);
    border-radius: 5px;
}

body.dark_mode::-webkit-scrollbar-thumb:hover {
    background: #8a6a14;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    body.dark_mode .navbar {
        padding: 10px;
    }

    body.dark_mode .sidebar {
        width: 100%;
    }
}

body.dark_mode h1,
body.dark_mode h2,
body.dark_mode h3,
body.dark_mode h4,
body.dark_mode h5,
body.dark_mode h6 {
    color: var(--home-dark-text-color) !important;
}
