/*-------------------
Table of content

1.header
2.Footer
-----------------*/

:root {
    --primary-color: #0118d8;
    --secondary-color: #e53637;
    --btn-hover-color: #0012b3;
    --text-color: #111111;
    --text-light-color: #555555;
    --background-color: #ffffff;
    --light-gray-color: #f8f9fa;
    --border-color: #eeeeee;
    --header-height: 80px;
    --border-radius: 20px;
    --box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Nunito Sans", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-gray-color);
    padding-top: var(--header-height);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

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

.btn-primary:hover {
    background-color: #0012b3;
    border-color: #0012b3;
    color: #ffffff;
}

.btn-checkout {
    background: #0118d8;
    color: #fff;
    border: none;
    border-radius: 24px;
    padding: 8px 24px;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s;
    box-shadow: 0 2px 8px rgba(1,24,216,0.08);
    outline: none;
    cursor: pointer;
    margin-top: 8px;
}

.btn-checkout:hover {
    background: #0012b3;
    color: #fff;
}

.btn-wishlist-toggle,
.wishlist-item-remove {
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #aaa;
    transition: color 0.2s;
    border-radius: 50%;
    padding: 6px;
}

.btn-wishlist-toggle.active i,
.wishlist-item-remove.active i {
    color: #e74c3c !important;
}

.btn-wishlist-toggle i,
.wishlist-item-remove i {
    transition: color 0.2s;
}

/*-------------------------
1. Header dan Body Semua Page
----------------------------*/
/* Header Styles */
.site-header {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-logo a {
    display: inline-block;
}

.header-logo img {
    max-height: 40px;
}

.main-navigation {
    margin-left: auto;
    margin-right: 30px;
}

.main-navigation ul {
    display: flex;
    align-items: center;
}

.main-navigation ul li {
    margin-left: 30px;
}

.main-navigation ul li:first-child {
    margin-left: 0;
}

.main-navigation ul li a {
    color: var(--text-color);
    font-weight: 600;
    font-size: 15px;
    padding: 10px 0;
    position: relative;
}

.main-navigation ul li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-navigation ul li a:hover::after,
.main-navigation ul li.active a::after {
    width: 100%;
}

.header-search {
    display: flex;
    align-items: center;
    background-color: var(--light-gray-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0px 5px 0px 15px;
    height: 40px;
    width: 250px;
    transition: width 0.3s ease, box-shadow 0.3s ease;
}

.header-search:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(1, 24, 216, 0.1);
    width: 300px;
}

.header-search input[type="search"] {
    border: none;
    background: transparent;
    outline: none;
    flex-grow: 1;
    font-size: 14px;
    color: var(--text-color);
    height: 100%;
}

.header-search input[type="search"]::placeholder {
    color: var(--text-light-color);
}

.header-search button {
    background: transparent;
    border: none;
    color: var(--text-light-color);
    font-size: 1rem;
    cursor: pointer;
    padding: 0 10px;
    height: 100%;
    display: flex;
    align-items: center;
}

.header-search button:hover {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.header-actions .action-item {
    margin-left: 20px;
    position: relative;
    color: var(--text-color);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.header-actions .action-item:hover {
    color: var(--primary-color);
}

.header-actions .action-item .cart-count-badge {
    position: absolute;
    top: 0px;
    right: 0px;
    background-color: var(--secondary-color);
    color: white;
    font-size: 10px;
    font-weight: bold;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Profile Dropdown Modern Update */
.user-profile-dropdown {
    position: relative;
    margin-left: 15px;
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 20px;
    transition: all 0.3s ease;
    background: rgba(1, 24, 216, 0.1);
}

.profile-trigger:hover {
    background: rgba(1, 24, 216, 0.2);
}

.profile-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0118d8, #00b4d8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 600;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dropdown-menu-custom {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    min-width: 280px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-menu-custom.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0118d8, #00b4d8);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    color: white;
    font-size: 18px;
    font-weight: 600;
    border: 3px solid white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.dropdown-name {
    font-size: 16px;
    font-weight: 600;
    color: #111;
    margin-bottom: 4px;
}

.dropdown-email {
    color: #666;
    font-size: 13px;
}

.dropdown-menu-list {
    padding: 8px 0;
}

.dropdown-menu-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #333;
    font-size: 14px;
    transition: all 0.2s ease;
}

.dropdown-menu-item i {
    width: 24px;
    margin-right: 12px;
    color: #666;
    font-size: 16px;
    transition: all 0.2s ease;
}

.dropdown-menu-item:hover {
    background: rgba(1, 24, 216, 0.05);
    color: #0118d8;
}

.dropdown-menu-item:hover i {
    color: #0118d8;
}

.dropdown-menu-item.logout {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: #e74c3c;
}

.dropdown-menu-item.logout:hover {
    background: rgba(231, 76, 60, 0.05);
}

.dropdown-menu-item.logout i {
    color: #e74c3c;
}

/* Chevron icon */
.profile-trigger .fa-chevron-down {
    font-size: 12px;
    color: #0118d8;
    transition: transform 0.3s ease;
}

.profile-trigger.active .fa-chevron-down {
    transform: rotate(180deg);
}

/* Mobile Navigation Styles */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100%;
    background-color: var(--background-color);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 1002;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav-close {
    font-size: 1.5rem;
    color: var(--text-color);
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 15px;
}

.mobile-nav ul {
    margin-top: 30px;
}

.mobile-nav ul li {
    margin-bottom: 15px;
}

.mobile-nav ul li a {
    color: var(--text-color);
    font-weight: 600;
    font-size: 16px;
    display: block;
}

.mobile-nav ul li a:hover {
    color: var(--primary-color);
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

.mobile-nav-overlay.active {
    display: block;
}

/* Responsive Styles Buat Header */
@media (max-width: 1199px) {
    .header-search {
        width: 200px;
    }

    .header-search:focus-within {
        width: 250px;
    }

    .main-navigation ul li {
        margin-left: 20px;
    }
}

@media (max-width: 991px) {
    .main-navigation {
        display: none;
    }

    .header-search {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .header-actions .action-item {
        margin-left: 15px;
    }
}

@media (max-width: 767px) {
    body {
        padding-top: 70px;
    }

    .site-header {
        height: 70px;
    }

    .header-logo img {
        max-height: 35px;
    }

    .header-actions .action-item {
        margin-left: 10px;
        font-size: 1rem;
        width: 32px;
        height: 32px;
    }

    .profile-icon-wrapper {
        width: 32px;
        height: 32px;
    }

    .profile-icon-wrapper i {
        font-size: 0.9rem;
    }

    .header-actions .action-item .cart-count-badge {
        width: 14px;
        height: 14px;
        font-size: 9px;
        top: -2px;
        right: -2px;
    }
}

@media (max-width: 480px) {
    .header-actions .action-item {
        margin-left: 8px;
    }
}

@media (max-width: 360px) {
    .header-actions .action-item {
        margin-left: 5px;
    }

    .header-actions .action-item .cart-count-badge {
        width: 12px;
        height: 12px;
        font-size: 8px;
        top: -2px;
        right: -2px;
    }
}

/*---Footer---*/
/* Footer Styles */
.site-footer {
    background-color: #0118d8;
    color: #fff;
    padding: 60px 0 20px;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-widget h5 {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget ul li a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-widget ul li a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-widget p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
}

.social-icons a {
    color: #fff;
    margin-right: 15px;
    font-size: 1.2rem;
}

.social-icons a:hover {
    color: #ffffff;
    opacity: 0.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.footer-widget form input[type="email"] {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.footer-widget form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer-widget form button {
    background: #fff;
    color: var(--primary-color);
}

.footer-widget form button:hover {
    background: var(--light-gray-color);
    color: var(--primary-color);
}
