/* ==========================================================================
   B2C E-COMMERCE STYLESHEET
   Brand Colors: Gold (#FBBF24) & Black (#111111)
   ========================================================================== */

:root {
    --b2c-primary: #006C35;
    --b2c-primary-hover: #004F27;
    --b2c-secondary: #111111;
    --b2c-secondary-light: #333333;
    --b2c-accent: #D4AF37;
    --b2c-bg: #F8F9FA;
    --b2c-bg-card: #FFFFFF;
    --b2c-border: #E5E7EB;
    --b2c-text: #1F2937;
    --b2c-text-light: #6B7280;
    --b2c-white: #FFFFFF;
    --b2c-success: #10B981;
    --b2c-warning: #F59E0B;
    --b2c-danger: #EF4444;
    --b2c-info: #3B82F6;
    --b2c-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --b2c-shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --b2c-radius: 12px;
    --b2c-radius-lg: 20px;
    --b2c-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --b2c-font: 'Outfit', sans-serif;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--b2c-font);
    background-color: var(--b2c-bg);
    color: var(--b2c-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--b2c-transition);
}

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

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--b2c-secondary);
}

.text-gradient {
    background: linear-gradient(135deg, var(--b2c-secondary) 0%, #333333 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-light {
    color: var(--b2c-text-light);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--b2c-font);
    font-size: 15px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--b2c-radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--b2c-transition);
}

.btn-primary {
    background-color: var(--b2c-primary);
    color: var(--b2c-white);
}
.btn-primary:hover {
    background-color: var(--b2c-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--b2c-primary);
    border: 1px solid var(--b2c-primary);
}
.btn-secondary:hover {
    background-color: var(--b2c-primary);
    color: var(--b2c-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--b2c-border);
    color: var(--b2c-text);
}
.btn-outline:hover {
    background-color: var(--b2c-primary);
    border-color: var(--b2c-primary);
    color: var(--b2c-white);
}

.btn-danger {
    background-color: var(--b2c-danger);
    color: var(--b2c-white);
}
.btn-danger:hover {
    background-color: #DC2626;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 8px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */
.b2c-header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--b2c-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--b2c-shadow);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--b2c-secondary);
}
.nav-logo span {
    color: var(--b2c-primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
    margin-right: 30px;
}

/* Nav menu now visible on all devices since subnav is removed */

.nav-item {
    font-weight: 500;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 8px;
}
.nav-item:hover, .nav-item.active {
    color: var(--b2c-secondary);
    background-color: rgba(0, 0, 0, 0.05);
}

.nav-dropdown {
    position: relative;
}

.dropdown-trigger {
    cursor: pointer;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--b2c-white);
    border: 1px solid var(--b2c-border);
    border-radius: var(--b2c-radius);
    min-width: 200px;
    box-shadow: var(--b2c-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--b2c-transition);
    z-index: 1000;
    overflow: hidden;
}

.nav-dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.dropdown-content a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--b2c-border);
}
.dropdown-content a:last-child {
    border-bottom: none;
}
.dropdown-content a:hover {
    background-color: rgba(0, 0, 0, 0.03);
    color: var(--b2c-secondary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--b2c-text-light);
}
.lang-switch a.active {
    color: var(--b2c-secondary);
}

.nav-cart-btn {
    position: relative;
    font-size: 20px;
    color: var(--b2c-secondary);
    padding: 6px;
}
.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: var(--b2c-danger);
    color: var(--b2c-white);
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--b2c-secondary);
    cursor: pointer;
}

/* ==========================================================================
   MAIN LAYOUT & SKELETON
   ========================================================================== */
.b2c-main-content {
    padding: 30px 0;
    min-height: calc(100vh - 350px);
}

/* ==========================================================================
   PRODUCT CARDS & GRIDS
   ========================================================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.product-card {
    background-color: var(--b2c-bg-card);
    border: 1px solid var(--b2c-border);
    border-radius: var(--b2c-radius);
    overflow: hidden;
    transition: var(--b2c-transition);
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.card-img-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    height: auto;
    overflow: hidden;
    background-color: #E5E7EB;
}
.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--b2c-transition);
}
.product-card:hover .card-img-wrapper img {
    transform: scale(1.1);
}

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}
.badge-haji { background-color: #FFFBEB; color: #D97706; border: 1px solid #FDE68A; }
.badge-umroh { background-color: #E6F3EA; color: #006C35; border: 1px solid #BFE3CD; }
.badge-hotel { background-color: #F3F4F6; color: #4B5563; border: 1px solid #E5E7EB; }
.badge-transport { background-color: #F3F4F6; color: #4B5563; border: 1px solid #E5E7EB; }
.badge-mutawwif { background-color: #F3F4F6; color: #4B5563; border: 1px solid #E5E7EB; }
.badge-handling { background-color: #F3F4F6; color: #4B5563; border: 1px solid #E5E7EB; }

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 18px;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-details {
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--b2c-text-light);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-details i {
    width: 16px;
    color: var(--b2c-secondary);
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    border-top: 1px solid var(--b2c-border);
    padding-top: 16px;
}

.card-price {
    display: flex;
    flex-direction: column;
}
.price-label {
    font-size: 11px;
    color: var(--b2c-text-light);
    text-transform: uppercase;
}
.price-amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--b2c-secondary);
}

/* ==========================================================================
   CATEGORY TABS
   ========================================================================== */
.category-tabs {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    overflow-x: auto;
    padding-bottom: 8px;
}
.category-tab {
    padding: 8px 16px;
    border-radius: 20px;
    background-color: var(--b2c-white);
    border: 1px solid var(--b2c-border);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.category-tab.active {
    background-color: var(--b2c-secondary);
    color: var(--b2c-white);
    border-color: var(--b2c-secondary);
}

/* ==========================================================================
   HERO / BILLBOARD
   ========================================================================== */
.catalog-hero {
    background: linear-gradient(135deg, var(--b2c-secondary) 0%, #222222 100%);
    color: var(--b2c-white);
    border-radius: var(--b2c-radius-lg);
    padding: 60px 40px;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}
.catalog-hero h1 {
    color: var(--b2c-primary);
    font-size: 36px;
    margin-bottom: 12px;
}
.catalog-hero p {
    font-size: 16px;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto 30px;
}
.search-bar-wrapper {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    border-radius: 30px;
    transition: all 0.3s ease;
}
.search-bar-glow {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}
.search-bar-glow:focus-within {
    box-shadow: 0 0 30px rgba(255, 140, 0, 0.6);
    transform: scale(1.02);
}
.search-input {
    width: 100%;
    padding: 14px 20px;
    border-radius: 30px;
    border: none;
    outline: none;
    font-family: var(--b2c-font);
    font-size: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--b2c-secondary);
    color: var(--b2c-white);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
}

/* ==========================================================================
   AUTH PAGE SPLIT SCREEN
   ========================================================================== */
.auth-container {
    display: flex;
    max-width: 1000px;
    margin: 0 auto;
    background-color: var(--b2c-white);
    border-radius: var(--b2c-radius-lg);
    box-shadow: var(--b2c-shadow-lg);
    overflow: hidden;
    min-height: 550px;
}

.auth-panel {
    flex: 1;
    background: linear-gradient(135deg, var(--b2c-primary) 0%, #004F27 100%);
    padding: 60px;
    color: var(--b2c-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.auth-panel h2 {
    color: var(--b2c-white);
    font-size: 32px;
    margin-bottom: 20px;
}

.auth-form {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.auth-form h2 {
    margin-bottom: 30px;
    font-size: 26px;
}

/* ==========================================================================
   FORMS & INPUTS
   ========================================================================== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--b2c-text);
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--b2c-border);
    border-radius: var(--b2c-radius);
    outline: none;
    font-family: var(--b2c-font);
    font-size: 14px;
    transition: var(--b2c-transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--b2c-secondary);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--b2c-white);
    border-left: 5px solid #10B981;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    animation: slideInRight 0.3s ease-out;
    min-width: 300px;
}
.toast.success { border-left-color: var(--b2c-success); }
.toast.error { border-left-color: var(--b2c-danger); }
.toast button {
    background: none;
    border: none;
    font-size: 18px;
    margin-left: auto;
    cursor: pointer;
    color: var(--b2c-text-light);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.b2c-footer {
    background-color: var(--b2c-white);
    color: #4B5563;
    padding: 60px 0 20px;
    border-top: 1px solid var(--b2c-border);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
    font-size: 13px;
}

.footer-col h3 {
    color: var(--b2c-secondary);
    margin-bottom: 20px;
    font-size: 22px;
}
.footer-col h3 span { color: var(--b2c-primary); }

.footer-col h4 {
    color: var(--b2c-secondary);
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 700;
}

.footer-col p {
    line-height: 1.6;
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #4B5563;
    text-decoration: none;
    transition: var(--b2c-transition);
}
.footer-col ul li a:hover {
    color: var(--b2c-primary);
    padding-left: 4px;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}
.social-links a {
    font-size: 20px;
    background-color: #1F1532;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.social-links a:hover {
    background-color: var(--b2c-primary);
    color: var(--b2c-secondary);
}

.payment-icons-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.payment-icon {
    background: #fff;
    color: #333;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    min-width: 50px;
    text-align: center;
}

.social-list-shopee {
    list-style: none;
    padding: 0;
}
.social-list-shopee li {
    margin-bottom: 12px;
}
.social-list-shopee a {
    color: #4B5563;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: color 0.2s;
}
.social-list-shopee a:hover {
    color: var(--b2c-primary);
}
.social-list-shopee i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.security-badge {
    border: 1px solid var(--b2c-primary);
    color: var(--b2c-primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-bottom {
    border-top: 1px solid var(--b2c-border);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: #6B7280;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .footer-col h4 {
        margin-bottom: 10px;
    }
    .footer-hide-mobile {
        display: none !important;
    }
    .hamburger { display: block; }
    .nav-menu {
        display: none; /* Mobile JS handles toggle */
    }
    .auth-container {
        flex-direction: column;
    }
    .auth-panel {
        padding: 40px;
    }
    .auth-form {
        padding: 40px;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ==========================================================================
   PRODUCT SLIDER CAROUSEL
   ========================================================================== */
.slider-container-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    margin-top: 0;
}

.product-slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    width: 100%;
    padding: 15px 5px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.product-slider::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.product-slider .product-card {
    flex: 0 0 285px; /* Maintain fixed card width in slider */
    max-width: 285px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--b2c-white);
    border: 1px solid var(--b2c-border);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--b2c-secondary);
    font-size: 14px;
    transition: var(--b2c-transition);
    z-index: 10;
}

.slider-arrow:hover {
    background-color: var(--b2c-secondary);
    color: var(--b2c-white);
    box-shadow: var(--b2c-shadow-lg);
}

.slider-arrow.prev {
    left: -16px;
}

.slider-arrow.next {
    right: -16px;
}

@media (max-width: 768px) {
    .slider-arrow {
        display: none !important;
    }
    .slider-container-wrapper {
        padding: 0;
    }
}

/* ==========================================================================
   SUB-NAVBAR CATEGORIES
   ========================================================================== */
.header-sub-nav {
    border-top: 1px solid var(--b2c-border);
    background-color: rgba(255, 255, 255, 0.95);
    padding: 8px 0;
}
.sub-nav-container {
    display: flex;
    justify-content: center;
    gap: 32px;
    align-items: center;
    flex-wrap: wrap;
}
.header-sub-nav a {
    font-size: 14px;
    font-weight: 600;
    color: var(--b2c-text-light);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    transition: var(--b2c-transition);
}
.header-sub-nav a:hover, .header-sub-nav a.active {
    color: var(--b2c-secondary);
    background-color: rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .header-sub-nav {
        display: none !important; /* Hide sub-nav on mobile to keep layout clean */
    }
}

/* ==========================================================================
   PAGINATION STYLING
   ========================================================================== */
.pagination-container ul {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.pagination-container li a, .pagination-container li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid var(--b2c-border);
    background-color: var(--b2c-white);
    color: var(--b2c-text);
    font-weight: 600;
    font-size: 14px;
    transition: var(--b2c-transition);
}
.pagination-container li a:hover {
    border-color: var(--b2c-secondary);
    color: var(--b2c-secondary);
    background-color: rgba(0, 0, 0, 0.05);
}
.pagination-container li.active span {
    background-color: var(--b2c-secondary);
    color: var(--b2c-white);
    border-color: var(--b2c-secondary);
}
.pagination-container li.disabled span {
    color: var(--b2c-text-light);
    background-color: var(--b2c-bg);
    cursor: not-allowed;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .stats-bar {
        margin-top: 20px !important;
        flex-direction: column;
        gap: 20px !important;
        padding: 20px !important;
    }
    .stats-divider {
        border-left: none !important;
        border-top: 1px solid var(--b2c-border);
        padding-top: 20px !important;
    }
}

/* ==========================================================================
   PARTNERS SLIDER
   ========================================================================== */
.partners-wrapper {
    overflow-x: auto;
    width: 100%;
    position: relative;
    scroll-behavior: smooth;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
    scroll-snap-type: x mandatory;
    /* Optional fading edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.partners-wrapper::-webkit-scrollbar {
    display: none;
}

.partners-track {
    display: flex;
    align-items: center;
    gap: 20px;
    width: max-content;
}

.partner-logo {
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: transparent;
    border: none;
    height: 110px;
    width: 200px;
    flex-shrink: 0;
    transition: var(--b2c-transition);
}

.partner-logo:hover {
    transform: translateY(-5px);
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: var(--b2c-transition);
}

.partner-text {
    font-weight: 700;
    color: var(--b2c-text-light);
    font-size: 18px;
}






/* ==========================================================================
   SHOPEE THEME HEADER
   ========================================================================== */
.shopee-header {
    background: var(--b2c-primary);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.shopee-topbar {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.shopee-topbar a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s;
}

.shopee-topbar a:hover {
    opacity: 0.8;
}

.shopee-top-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.shopee-header-main {
    display: flex;
    align-items: flex-start;
    padding: 20px 0 10px;
    gap: 40px;
}

.shopee-logo {
    display: flex;
    align-items: center;
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.5px;
    margin-top: 2px;
}
.shopee-logo span {
    font-family: 'Inter', 'Roboto', 'Segoe UI', sans-serif !important;
}
.shopee-logo i {
    font-size: 38px;
    margin-right: 10px;
}
.shopee-logo img {
    height: 45px;
    width: auto;
    object-fit: contain;
    /* If the logo is already gold/black, no need to invert it completely, or maybe brightness(1) */
}

.shopee-search-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.shopee-search-bar {
    display: flex;
    background: #fff;
    border-radius: 2px;
    padding: 3px;
    height: 40px;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,.09);
}

.shopee-search-input {
    flex: 1;
    border: none;
    padding: 0 15px;
    font-size: 14px;
    outline: none;
    color: #333;
    border-radius: 2px 0 0 2px;
}

.shopee-search-btn {
    background: var(--b2c-primary);
    border: none;
    color: #fff;
    padding: 0 24px;
    border-radius: 2px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.shopee-search-btn:hover {
    opacity: 0.9;
}

.shopee-search-tags {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    font-size: 12px;
}

.shopee-search-tags a {
    color: #aaa;
    text-decoration: none;
}
.shopee-search-tags a:hover {
    color: var(--b2c-primary);
}

.shopee-cart-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    margin-top: 6px;
}

.shopee-cart {
    position: relative;
    color: #fff;
    font-size: 26px;
    text-decoration: none;
}
.shopee-cart-badge {
    position: absolute;
    top: -8px;
    right: -14px;
    background: #fff;
    color: var(--b2c-primary);
    font-size: 12px;
    font-weight: bold;
    border-radius: 40px;
    padding: 0 6px;
    min-width: 14px;
    text-align: center;
    border: 2px solid var(--b2c-primary);
}

/* User Menu Dropdown Shopee Style */
.shopee-dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--b2c-white);
    border: 1px solid var(--b2c-border);
    border-radius: 2px;
    min-width: 160px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--b2c-transition);
    z-index: 1000;
    overflow: hidden;
}

.nav-dropdown:hover .shopee-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.shopee-dropdown-content a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--b2c-text) !important;
}
.shopee-dropdown-content a:hover {
    background-color: rgba(0, 0, 0, 0.03);
    color: var(--b2c-primary) !important;
}

/* Hide desktop elements on mobile */
@media (max-width: 768px) {
    .shopee-topbar {
        display: flex;
        padding: 8px 15px;
    }
    .shopee-topbar > div:first-child {
        display: none;
    }
    .shopee-top-links {
        width: 100%;
        justify-content: flex-end;
        gap: 12px;
        font-size: 11px;
    }
    .shopee-header-main {
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px 15px;
        align-items: center;
    }
    .shopee-logo {
        margin-top: 0;
    }
    .shopee-cart-wrapper {
        margin-top: 0;
    }
    .shopee-logo {
        flex: 1;
        font-size: 20px;
    }
    .shopee-logo i {
        font-size: 24px;
    }
    .shopee-logo img {
        height: 30px;
    }
    .shopee-search-container {
        order: 3;
        width: 100%;
        flex: 0 0 100%;
    }
    .shopee-cart-wrapper {
        order: 2;
        width: auto;
    }
    .shopee-search-tags {
        display: none;
    }
}
