/* fallback */
@font-face {
  font-family: 'Material Symbols Outlined';
  font-style: normal;
  font-weight: 100 700;
  src: url(./font/MaterialSymbolsOutlined.woff2) format('woff2');
}

.material-symbols-outlined {
    font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24
}



[data-bs-theme=dark] {
    
    /* 
    --bs-body-bg: #212529;
    --bs-body-bg-rgb: 33, 37, 41;

    --bs-secondary-bg: #343a40;
    --bs-secondary-bg-rgb: 52, 58, 64; 

    --bs-tertiary-bg: #2b3035;
    --bs-tertiary-bg-rgb: 43, 48, 53;
    
    --bs-body-bg: #2b3035;
    --bs-body-bg-rgb: 43, 48, 53;

    60, 65, 70
    42, 46, 51

    32, 35, 38
    --bs-body-font-weight: 300;
    */

    
    
    --bs-success: #31c881;
    --bs-success-rgb:49, 200, 129;

    --bs-danger: #ff4150;
    --bs-danger-rgb: 255,65,80;
    

    --bs-body-bg: rgb(23, 29, 47);
    --bs-body-bg-rgb: 21, 28, 45;
    
    --bs-secondary-bg: rgb(19, 26, 41);
    --bs-secondary-bg-rgb: 19, 26, 41; 

    --bs-tertiary-bg: rgb(17, 24, 39);
    --bs-tertiary-bg-rgb: 17, 24, 39; 

    --bs-body-color: #f7f7f7;
    --bs-body-color-rgb: 247, 247, 247;

    --bs-secondary-color: rgba(237, 239, 242, 0.7);
    --bs-secondary-color-rgb: 237, 239, 242;

    --bs-tertiary-color: rgba(237, 239, 242, 0.45);
    --bs-tertiary-color-rgb: 237, 239, 242;


}

.header .btn-user .material-symbols-outlined{
    font-variation-settings:
    'FILL' 1,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24
}

.header .btn-user.dropdown-toggle::after {
            content: none;
}

.header .total-item-cart{
    font-size: 12px;
    font-weight: 500;
    top: -13px;
    left: 60%;
    padding: 0px 7px;
    color: #fff;
    position: absolute;
    height: 18px;
    width: auto;
    background-color: #e22b2b;
}

#box-cart{
    background-color: #fff;
}

[data-bs-theme="dark"] #box-cart {
    background-color: #161e2e;
}
.header .icon-nav .material-symbols-outlined{
    font-size: 24px;
}
.header .icon-nav:hover{
    color: #e41313;
    cursor: pointer;
} 

@media (min-width: 568px) {
    .header .icon-nav .material-symbols-outlined{
        font-size: 20px;
    }
}

header .box-dropdown-item{
    background-color: #fff;
}

[data-bs-theme="dark"] header .box-dropdown-item{
    background-color: #161e2e;
}

.footer-page{
    background-color: #182030;
} 

/* Layout & Containers */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    top: 0;
    z-index: 50;
    padding: 0.5rem 2rem;
    background-color: #fff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.dropdown-item {
    cursor: pointer;
}

[data-bs-theme="dark"] .header {
    background-color: #111827;
    border-color: #374151; /* darker border */
}

.responsive-menu {
    display: none;
}

.responsive-menu i {
    color: #000000;
}

.icon-btn {
    color: #000000;
}

.header-auth {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    
}


.auth-list {
    display: flex;
    align-items: center;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.auth-list li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 8px 0px;
    border: 1px solid transparent;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-family: "Poppins", sans-serif;;
    font-size: 18px;
}

[data-bs-theme="dark"] .auth-list li a {
    color: #ffffff;
}



.auth-list li a:hover {
    color: #ff0000;
}
/* Sticky Navbar */
.header-sticky {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 999;
    transition: transform 0.3s ease-in-out;
}

/* Saat disembunyikan */
.navbar-hidden {
    transform: translateY(-100%);
}

.header-top {
    padding: 0px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 5rem; /* 80px */
}

.header-mobile {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.logo-mobile {
    display: none;
}

.logo-desktop {
    display: flex;
    align-items: center;
    width: 100px;
}

.logo-img-desktop {
    width: 100px;
    padding: 0.5rem;
}

.search-wrapper {
    padding: 0.2rem;
    width: 100%;
    display: none;
    border-radius: 70px;
    background-color: #f3f7fc;
    z-index: 1999;
}

[data-bs-theme=dark].search-wrapper {
    background-color: #cad5e2;
}

@media (min-width: 768px) {
    .search-wrapper {
        display: block;
    }
}

.search-container {
    display: flex;
    align-items: center;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    z-index: 1999;
}

.search-container.mobile {
    background-color: #f3f4f6;
    border-radius: 9999px;
}

.search-icon {
    color: #6b7280; /* gray-500 */
    margin-right: 0.5rem;
    font-size: 1.25rem;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1.125rem;
    color: #111827; /* gray-900 */
}

.mobile-search {
    display: block;
}

@media (min-width: 768px) {
    .mobile-search {
        display: none;
    }
}

/* Header Icons */
.header-icons {
    display: flex;
    align-items: center;
}

.icon-btn {
    font-size: 1.25rem;
    background: none;
    border: none;
    cursor: pointer;
}

.cart-btn {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    background-color: #fa1515; /* yellow-500 */
    color: white;
    border-radius: 9999px;
}

.menu-toggle {
    display: block;
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
}

/* Navigation */
.nav-list {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 0;
    list-style: none;
    text-align: center;
}

@media (min-width: 768px) {
    .nav-list {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
        padding: 0;
    }
}

.nav-list li {
    color: #1f2937;
}

.nav-link {
    font-weight: 600;
    text-decoration: none;
    color: #111827;
    transition: color 0.3s ease;
    cursor: pointer;
}

.nav-list li a {
    text-decoration: none;
    color: #1f2937;
}

[data-bs-theme=dark] header .nav-link {
    font-weight: 600;
}

.nav-list li a:hover {
    color: #fa1515;
}

/* Dark Mode Styles */

[data-bs-theme="dark"].header {
    background-color: #111827;
    border-color: #374151; /* darker border */
}

[data-bs-theme="dark"] .header {
    background-color: #111827;
    border-color: #374151;
    color: #ffffff;
}

[data-bs-theme="dark"] .search-wrapper {
    background-color: #1f2937;
}

[data-bs-theme="dark"] .search-container.mobile {
    background-color: #1f2937;
}

[data-bs-theme="dark"] .search-input {
    color: #ffffff;
}

[data-bs-theme="dark"] .search-input::placeholder {
    color: #9ca3af;
}

[data-bs-theme="dark"] .search-icon {
    color: #d1d5db;
}

[data-bs-theme="dark"] .nav-link {
    color: #ffffff;
}

[data-bs-theme="dark"] .nav-link:hover {
    color: #fa1515;
}

[data-bs-theme="dark"] .icon-btn,
[data-bs-theme="dark"] .fa-user,
[data-bs-theme="dark"] .fa-shopping-cart,
[data-bs-theme="dark"] .fa-bars,
[data-bs-theme="dark"] .fa-moon,
[data-bs-theme="dark"] .fa-sun {
    color: #ffffff;
}

[data-bs-theme="dark"] .cart-badge {
    background-color: #fa1515;
    color: #ffffff;
}

/* responsive styles mobile */
@media (max-width: 1210px) {
    .header {
        flex-direction: column;
        align-items: stretch;
        padding: 0.5rem 1rem;
    }

    #toggleDarkMode {
        display: none;
    }

    .responsive-menu {
        display: block;
    }

    .header-top {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        height: auto;
        gap: 1rem;
        padding: 1rem 0;
    }

    .header-container {
        display: none;
    }

    .header-mobile {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        gap: 1rem;
    }

    .logo-mobile {
        display: block;
    }

    .logo-img-mobile {
        width: 50px;
        height: 50px;
    }

    .logo-desktop {
        display: none;
    }

    .search-wrapper {
        display: none; /* tetap disembunyikan di mobile */
    }

    .mobile-search {
        padding-top: 12px;
        display: block;
        /* z-index: 1500; */
    }

    #mobileMenu {
        display: none;
    }

    .search-container.mobile {
        width: 100%;
        padding: 12px;
    }

    .navigation {
        width: 100%;
        margin-top: 0.5rem;
    }

    .nav-list {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
        background-color: #ffffff;
        display: none; /* default disembunyikan, bisa dikendalikan pakai JS toggle */
    }

    .nav-list.show {
        display: flex;
    }

    [data-bs-theme="dark"] .nav-list {
        background-color: #1f2937;
    }

    .header-icons {
        justify-content: end;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .icon-btn {
        font-size: 1.25rem;
    }

    .cart-badge {
        top: -0.25rem;
        right: -0.25rem;
    }
}




/* Login/Register Nav */
.login-reg-nav {
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.login-reg-nav li {
    margin: 0;
}

.login-reg-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

@media (max-width: 568px) {
    .login-reg-nav a {
        font-size: 12px !important;
    }   
}
.login-reg-nav a:hover {
    color: #ff0000;
}

/* Dark Mode */
[data-bs-theme="dark"] .login-reg-nav a {
    color: #ffffff;
}

[data-bs-theme="dark"] .login-reg-nav a:hover {
    color: #ff0000;
}
