/* ===== KOKKHO SPACE DARK MODE ===== */

body.dark-mode {
    background-color: #121212 !important;
    color: #e0e0e0 !important;
}

/* Header */
body.dark-mode .axil-header,
body.dark-mode .header-top-nav,
body.dark-mode .header-main-nav,
body.dark-mode .sticky-header.sticky .axil-header {
    background-color: #1e1e1e !important;
    border-bottom-color: #333 !important;
}

body.dark-mode .header-search-bar,
body.dark-mode .axil-search input,
body.dark-mode .axil-search .input-group {
    background-color: #2a2a2a !important;
    border-color: #444 !important;
    color: #e0e0e0 !important;
}

body.dark-mode .axil-search input::placeholder {
    color: #888 !important;
}

/* Bottom Nav */
body.dark-mode .bottom-nav-bar {
    background-color: #1e1e1e !important;
    border-top-color: #333 !important;
}

body.dark-mode .nav-link-item {
    color: #aaa !important;
}

body.dark-mode .nav-link-item.active-yellow {
    color: #f7a000 !important;
}

/* Cards / Sections */
body.dark-mode .axil-product .product,
body.dark-mode .product-list-item,
body.dark-mode .single-product-card,
body.dark-mode .axil-single-product-thumb {
    background-color: #1e1e1e !important;
    border-color: #333 !important;
}

body.dark-mode .product-title a,
body.dark-mode .product-title,
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: #e0e0e0 !important;
}

/* Section Background */
body.dark-mode section,
body.dark-mode .axil-section,
body.dark-mode .section-padding,
body.dark-mode .axil-categorie-area,
body.dark-mode .axil-new-arrivals-area,
body.dark-mode .axil-banner-area,
body.dark-mode .axil-brands-area {
    background-color: #121212 !important;
}

/* Category */
body.dark-mode .categrie-product,
body.dark-mode .categrie-product-wrap,
body.dark-mode .categries-wrapper {
    background-color: #1e1e1e !important;
    border-color: #333 !important;
}

body.dark-mode .categrie-product .cat-name,
body.dark-mode .categrie-product p {
    color: #ccc !important;
}

/* Product Price */
body.dark-mode .price-amount,
body.dark-mode .price-amount .amount,
body.dark-mode del .amount,
body.dark-mode .product-price {
    color: #f7a000 !important;
}

body.dark-mode del .amount {
    color: #777 !important;
}

/* Buttons */
body.dark-mode .axil-btn,
body.dark-mode .btn-primary {
    background-color: #f7a000 !important;
    color: #fff !important;
    border-color: #f7a000 !important;
}

/* Cart / Sidebar */
body.dark-mode .cart-dropdown-btn,
body.dark-mode .cart-sidebar,
body.dark-mode .axil-offcanvas-panel {
    background-color: #1e1e1e !important;
    color: #e0e0e0 !important;
}

/* Forms */
body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea,
body.dark-mode .form-control {
    background-color: #2a2a2a !important;
    border-color: #444 !important;
    color: #e0e0e0 !important;
}

/* Tables */
body.dark-mode table,
body.dark-mode .table {
    background-color: #1e1e1e !important;
    color: #e0e0e0 !important;
}

body.dark-mode .table thead th,
body.dark-mode .table td,
body.dark-mode .table tr {
    border-color: #333 !important;
    color: #e0e0e0 !important;
}

body.dark-mode .table-striped tbody tr:nth-of-type(odd) {
    background-color: #252525 !important;
}

/* Footer */
body.dark-mode .axil-footer-area,
body.dark-mode footer {
    background-color: #1a1a1a !important;
    color: #aaa !important;
}

body.dark-mode .footer-top,
body.dark-mode .footer-bottom {
    background-color: #1a1a1a !important;
    border-color: #333 !important;
}

body.dark-mode footer a,
body.dark-mode .footer-widget a {
    color: #bbb !important;
}

/* Breadcrumb */
body.dark-mode .breadcrum-area,
body.dark-mode .breadcrumb-item,
body.dark-mode .breadcrumb-item.active {
    background-color: #1a1a1a !important;
    color: #aaa !important;
}

/* Marquee / Announcement */
body.dark-mode .top-bar,
body.dark-mode .announcement-bar {
    background-color: #1e1e1e !important;
    color: #ccc !important;
}

/* Modals */
body.dark-mode .modal-content {
    background-color: #1e1e1e !important;
    color: #e0e0e0 !important;
    border-color: #333 !important;
}

body.dark-mode .modal-header,
body.dark-mode .modal-footer {
    border-color: #333 !important;
}

/* ═══════════════════════════════════════
   PREMIUM DARK MODE TOGGLE BUTTON
═══════════════════════════════════════ */

/* Conic gradient ring — spins in dark mode */
@keyframes kkRingSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

#dark-mode-toggle {
    position: relative;
    background: none;
    border: none;
    padding: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    overflow: visible;
    transition: box-shadow 0.4s ease;
    flex-shrink: 0;
}

/* Ring layer */
#darkModeRing {
    position: absolute;
    inset: -3px;
    border-radius: 13px;
    background: conic-gradient(#f7c948, #ff6200, #a78bfa, #38bdf8, #f7c948);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    animation: kkRingSpin 3s linear infinite;
}

/* White/dark bg layer (masks ring center) */
#dark-mode-toggle span:nth-child(2) {
    position: absolute;
    inset: 1px;
    border-radius: 9px;
    background: #fff;
    z-index: 1;
    transition: background 0.35s ease;
}

/* Icon */
#dark-mode-toggle i {
    position: relative;
    z-index: 2;
    font-size: 18px;
    color: #555;
    transition: transform 0.5s cubic-bezier(.34,1.56,.64,1), 
                color 0.3s ease, 
                filter 0.3s ease;
}

/* Dark mode active state */
body.dark-mode #dark-mode-toggle i {
    color: #f7c948;
    filter: drop-shadow(0 0 5px #f7c94880);
}

body.dark-mode #darkModeRing {
    opacity: 1;
}

body.dark-mode #dark-mode-toggle span:nth-child(2) {
    background: #1a1a2e;
}

body.dark-mode #dark-mode-toggle {
    box-shadow: 0 0 0 2px #f7c94840;
}

/* Hover glow (light mode) */
#dark-mode-toggle:hover i {
    color: #FF6200;
    filter: drop-shadow(0 0 4px #FF620060);
}

/* Scrollbar */
body.dark-mode ::-webkit-scrollbar {
    background: #1e1e1e;
}
body.dark-mode ::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}
