:root {
    --bg-light: #ffffff;
    --bg-gray: #f8f8f8;
    --text-dark: #111111;
    --text-muted: #555555;
    --border-color: #e5e5e5;
    --label-red: #d9534f;
    --label-black: #111111;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { width: 100%; margin: 0 auto; padding: 0 40px; }

/* --- Header --- */
header {
    position: fixed; /* Berubah menjadi fixed agar ikut di-scroll */
    width: 100%;
    top: 0;
    left: 0;
    padding: 20px 0;
    z-index: 1000;
    background: transparent;
    transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

/* Pengganjal tinggi header (lihat header.php). Nilai var(--header-height)
   di-set otomatis lewat JS; angka di sini hanya fallback sebelum JS jalan. */
.header-spacer {
    width: 100%;
    height: var(--header-height, 96px);
}

/* Class baru untuk efek background putih saat di-scroll */
header.header-scrolled {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    padding: 15px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.nav-wrapper {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
}
.nav-left {
    display: flex;
    align-items: center;
    gap: 25px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    justify-self: start;
}
.menu-toggle {
    display: none;
    font-size: 1.3rem;
    cursor: pointer;
}
.nav-links {
    display: flex;
    gap: 25px;
}
.nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    justify-self: end;
}
.nav-left a:hover, .nav-right a:hover { text-decoration: underline; }
.nav-right .icons { 
    display: flex; 
    align-items: center;
    gap: 20px; 
    font-size: 1.1rem; 
}

/* --- CSS Khusus untuk lencana keranjang agar sesuai gambar --- */
.bag-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.bag-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #fff;
    color: #000;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 5px;
    line-height: 1;
    border: 1px solid #ccc; /* Opsional, menambah visual */
}

.logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-self: center;
}
.logo-name {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: -5px;
}
.logo-sub {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 400;
    color: #fff;
}
header.header-scrolled .logo-sub {
    color: #333; /* Supaya teks subtitle tetap terbaca saat background putih */
}

/* --- Hero Section --- */
/* .hero ditarik naik lagi sebesar tinggi header-spacer supaya header
   transparan tetap "melayang" di atas hero seperti desain aslinya,
   sekalipun sekarang setiap halaman punya spacer di bawah header. */
.hero {
    position: relative;
    margin-top: calc(-1 * var(--header-height, 96px));
    height: 85vh;
    min-height: 600px;
    background: url('https://images.unsplash.com/photo-1526047932273-341f2a7631f9?w=1600&h=1000&fit=crop&auto=format') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.hero::before {
    content: '';
    position: absolute;
    top:0; left:0; right:0; bottom:0;
    background: rgba(0,0,0,0.2);
}
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    background: #fff;
    padding: 40px 60px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 500px;
}
.hero-content h1 {
    font-size: 4rem;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.hero-content .sub-est {
    font-size: 0.8rem;
    letter-spacing: 6px;
    display: block;
    margin-top: 10px;
    font-weight: 400;
    color: #333;
}
.hero-content .sub-loc {
    font-size: 0.85rem;
    letter-spacing: 2px;
    display: block;
    font-weight: 600;
    margin-bottom: 20px;
}
.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}
.btn-outline-dark {
    background: transparent;
    border: 1px solid #000;
    padding: 12px 25px;
    font-size: 0.7rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 600;
    letter-spacing: 1px;
}
.btn-outline-dark:hover { background: #000; color: #fff; }
.btn-dark {
    background: #000;
    border: 1px solid #000;
    color: #fff;
    padding: 12px 25px;
    font-size: 0.7rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 600;
    letter-spacing: 1px;
}
.btn-dark:hover { background: #fff; color: #000; border-color: #000; }

/* --- Intro Section --- */
.intro-section {
    padding: 60px 0 30px;
    text-align: center;
}
.intro-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.intro-section p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* --- Featured In Logos --- */
.featured-wrapper {
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 30px 0;
    margin-bottom: 60px;
}
.featured-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}
.featured-flex span { font-weight: 600; font-size: 0.8rem; opacity: 0.7; }
.featured-flex .brand-text {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* --- Product Grid 1 (Kain & Keffiyeh) --- */
.section-title { text-align: center; font-size: 1.2rem; font-weight: 600; margin: 40px 0; }
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}
.product-card {
    position: relative;
    text-align: center;
}
.product-card img {
    width: 100%;
    height: 400px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: var(--bg-gray);
    margin-bottom: 15px;
}
.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--label-red);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 4px 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.badge.black { background: var(--label-black); }
.product-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}
.product-price {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.product-sold-out { color: var(--label-red); font-weight: 600; }

/* --- Discover Brands (Special Grid Layout) --- */
.discover-section { margin-bottom: 80px; }
.discover-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.discover-desc {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 0.9rem;
}
.discover-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    grid-template-rows: auto auto;
    gap: 15px;
}
.discover-item {
    position: relative;
    min-height: 250px;
    overflow: hidden;
}
.discover-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.discover-overlay {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: #fff;
    padding: 15px;
    max-width: 80%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.discover-overlay h4 { font-size: 0.85rem; font-weight: 700; }
.discover-overlay span { font-size: 0.75rem; color: var(--text-muted); }

/* --- Product Grid 2 (Accessories) --- */
.accessories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}
.accessories-grid .product-card img { aspect-ratio: 1 / 1; height: 400px; }

/* --- Newsletter Signup --- */
.newsletter-section {
    background: #fafafa;
    padding: 80px 0;
    text-align: center;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}
.newsletter-section h2 { font-weight: 700; margin-bottom: 10px; }
.newsletter-section p { color: var(--text-muted); margin-bottom: 30px; }
.newsletter-form {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
    max-width: 400px;
}
.newsletter-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 0;
    outline: none;
}
.newsletter-form button {
    width: 100%;
    background: var(--text-dark);
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 0;
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
}

/* --- Footer --- */
footer {
    background: var(--text-dark);
    color: #fff;
    padding: 80px 0 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 30px;
}
.footer-col h4 { font-size: 0.85rem; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col ul a {
    font-size: 0.8rem;
    opacity: 0.7;
    transition: 0.2s;
}
.footer-col ul a:hover { opacity: 1; }

.footer-brand { display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-start; }
.footer-brand .logo-name { font-size: 1.8rem; color: #fff; }
.footer-brand .logo-sub { color: rgba(255,255,255,0.6); font-size: 0.7rem; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    opacity: 0.6;
}
.social-icons { display: flex; gap: 20px; font-size: 1rem; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .product-grid, .accessories-grid { grid-template-columns: repeat(3, 1fr); }
    .discover-grid { grid-template-columns: 1fr; }
    .discover-item { min-height: 200px; }
    /* Tablet Header: Hamburger Menu */
    .nav-links { display: none; }
    .menu-toggle { display: block; }
}
@media (max-width: 768px) {
    header { background: transparent; position: fixed; padding: 15px 0; }
    header.header-scrolled { background: var(--bg-light); padding: 15px 0; }
    
    /* Mobile Header Structure */
    .nav-left { display: flex; }
    .nav-right .icons { font-size: 1.1rem; gap: 15px; }
    .user-icon { display: none; } /* Sembunyikan icon profil sesuai referensi HP */
    
    .logo-wrapper { justify-self: center; align-items: center; text-align: center; }
    .logo-name { font-size: 1.5rem; color: inherit; }
    .logo-sub { color: inherit; font-size: 0.55rem; }
    .hero { height: auto; min-height: 400px; }
    .hero-content { padding: 30px; max-width: 90%; margin: 20px 0; }
    .hero-content h1 { font-size: 2.5rem; }
    .product-grid, .accessories-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .product-card img, .accessories-grid .product-card img { height: 250px; }
    .discover-grid { grid-template-columns: 1fr; gap: 20px; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .footer-brand { align-items: center; }
    .footer-bottom { flex-direction: column; gap: 20px; }
    .featured-flex { gap: 20px; }
    .featured-flex .brand-text { font-size: 0.9rem; }
}
/* =========================================
   LOGIN PAGE STYLES (SOFT FLAT - LOZY INSPIRED)
   ========================================= */
.login-page {
    background-color: #ffffff; /* Background putih bersih */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-y: auto;
    font-family: 'Inter', sans-serif;
}

.login-header {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    text-align: center;
    padding: 25px 0 15px;
    background: transparent;
    z-index: 1000;
}
.login-header .logo-name {
    color: var(--text-dark);
    font-size: 2.2rem;
    letter-spacing: 2px;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.login-header .logo-name:hover {
    transform: scale(1.03);
}

.login-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 140px 20px 60px;
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
    transform: translateY(15px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-box {
    background: transparent;
    width: 100%;
    max-width: 450px;
    padding: 0; 
    border-radius: 0;
    box-shadow: none;
    text-align: center;
}

.login-box h2 {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: #222;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.login-subtitle {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 30px;
}

/* Tab Navigation */
.login-tabs {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 25px;
    border-bottom: 1px solid #ebebeb;
    padding-bottom: 10px;
}
.login-tab-btn {
    background: none;
    border: none;
    font-size: 0.8rem;
    font-weight: 600;
    color: #999;
    cursor: pointer;
    padding: 5px 10px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}
.login-tab-btn:hover {
    color: #555;
}
.login-tab-btn.active {
    color: #111;
    border-bottom: 2px solid #111;
}

/* Google Button Styling */
.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px;
    background: #ffffff; /* Dibuat putih agar kontras dengan background */
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px; /* Sudut tumpul yang elegan */
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.google-btn:hover {
    background: #fafafa;
    border-color: rgba(0,0,0,0.15);
    transform: translateY(-2px); /* Animasi mengambang */
    box-shadow: 0 6px 15px rgba(0,0,0,0.04);
}
.google-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.google-btn img {
    width: 20px;
    height: 20px;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: #aaa;
    font-size: 0.85rem;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ebebeb;
}

.divider span {
    padding: 0 15px;
}

/* Form Styles */
.login-form {
    text-align: left;
}

/* Honeypot anti-bot: sembunyikan dari manusia (visual & screen reader)
   tapi tetap ada di DOM & bisa "terlihat" oleh bot yang auto-fill form.
   Sengaja TIDAK pakai display:none/visibility:hidden karena beberapa
   bot sudah tahu mengabaikan field dengan style itu. */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-group {
    margin-bottom: 16px;
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 15px 18px;
    background-color: rgba(0, 0, 0, 0.035); /* Sedikit gelap dari background agar menonjol */
    border: 1px solid rgba(0, 0, 0, 0.05); /* Border sangat halus */
    border-radius: 12px; /* Sudut lebih membulat dan lembut */
    font-family: inherit;
    font-size: 0.95rem;
    color: #333;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: #999;
    font-weight: 400;
}

.form-group input:focus {
    border-color: #111;
    background-color: #ffffff; /* Menjadi terang saat sedang diisi */
    box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.06); /* Ring shadow animasi fokus */
}

.forgot-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    font-weight: 600;
    color: #888;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.forgot-password:hover {
    color: #111;
    transform: translateY(-50%) scale(1.05); /* Sedikit membesar saat di-hover */
}

.btn-login-submit {
    width: 100%;
    background: #111;
    color: #fff;
    padding: 16px;
    border: none;
    border-radius: 12px; /* Sudut membulat selaras dengan input */
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin-top: 10px;
}

.btn-login-submit:hover {
    background: #333;
    transform: translateY(-2px); /* Animasi naik saat hover */
    box-shadow: 0 8px 20px rgba(17, 17, 17, 0.2);
}

.btn-login-submit:active {
    transform: translateY(0);
    box-shadow: none;
}

.create-account {
    margin-top: 25px;
    font-size: 0.9rem;
    color: #666;
}

.create-account a {
    color: #111;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
    display: inline-block;
    transition: all 0.3s ease;
}

.create-account a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #111;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.create-account a:hover {
    transform: translateY(-1px);
}

.create-account a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

body.login-page header .logo-sub {
    color: var(--text-dark) !important;
}

/* Standalone Auth Page Header */
.login-page-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 0;
    text-align: center;
    background: transparent;
    z-index: 1000;
}

.auth-logo {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.auth-logo:hover {
    transform: scale(1.03);
}

.auth-logo .logo-name {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: -5px;
}

.auth-logo .logo-sub {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 400;
    color: var(--text-dark);
}

/* =========================================
   MOBILE SIDEBAR (GLASSMORPHISM STYLE)
   ========================================= */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px); /* Efek blur halus di latar belakang saat sidebar buka */
    -webkit-backdrop-filter: blur(4px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100vh;
    /* Menerapkan efek Glassmorphism (Kaca Buram) */
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-right: 1px solid rgba(255, 255, 255, 0.6);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transition: left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
    font-family: 'Inter', sans-serif;
}

.mobile-sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: 25px 25px 15px;
    display: flex;
    justify-content: flex-start;
}

.close-sidebar {
    font-size: 1.3rem;
    cursor: pointer;
    color: #111;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}

.close-sidebar:hover {
    background: rgba(0, 0, 0, 0.08);
    transform: scale(1.05);
}

.sidebar-menu {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 10px 25px;
}

.sidebar-menu a {
    padding: 18px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.85rem;
    font-weight: 600;
    color: #111;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.2s;
}

.sidebar-menu a:hover {
    color: #d9534f;
}

.sidebar-footer {
    padding: 25px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.5);
}

.sidebar-login {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
}
.sidebar-login i {
    font-size: 1.2rem;
}

.sidebar-login-mobile-only {
    display: none;
}
@media (max-width: 768px) {
    .sidebar-login-mobile-only {
        display: flex;
    }
}
/* =========================================
   PROFILE DROPDOWN MENU (IMPROVED)
   ========================================= */
/* --- Efek Glassmorphism pada Dropdown Profil --- */
.profile-dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
    width: 280px; /* Diperlebar sedikit agar muat 1 baris */
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1001;
    text-align: left;
}

/* Bentuk Panah (Caret) dengan nuansa Glass */
.profile-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 10px;
    width: 14px;
    height: 14px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    transform: rotate(45deg);
    border-top: 1px solid rgba(255, 255, 255, 0.6);
    border-left: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 2px;
}

.profile-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown-menu .dropdown-header {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    line-height: 1.3;
}

.profile-dropdown-menu .dropdown-links {
    padding: 10px 0;
}

.profile-dropdown-menu .dropdown-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    font-size: 0.85rem;
    color: #333;
    text-transform: none;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
    letter-spacing: 0;
}

.profile-dropdown-menu .dropdown-links a:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #111;
    text-decoration: none;
}
/* Sembunyikan ikon profil di kanan atas pada layar mobile (lebar <= 768px) */
@media (max-width: 768px) {
    .desktop-only-profile {
        display: none !important;
    }
}

.profile-dropdown-menu .dropdown-header .email {
    display: block;
    font-size: 0.75rem;
    color: #666;
    margin-top: 5px;
    /* KUNCI AGAR 1 BARIS & TIDAK TURUN */
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis;
    text-transform: lowercase !important;
}

/* Styling untuk latar belakang overlay saat sidebar terbuka */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.25); /* Lapisan gelap tipis agar lebih kontras */
    backdrop-filter: blur(8px); /* Efek blur untuk halaman di belakangnya */
    -webkit-backdrop-filter: blur(8px); /* Dukungan untuk browser Safari */
    z-index: 1999; /* Berada tepat di bawah sidebar (z-index: 2000) */
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

/* Kelas aktif saat sidebar dibuka (sesuaikan dengan JavaScript toggle Anda) */
.sidebar-overlay.active {
    visibility: visible;
    opacity: 1;
}
/* =====================================================================
   CART DRAWER - panel keranjang belanja geser dari kanan
   (lihat includes/cart_drawer.php & cart-drawer.js)
   ===================================================================== */
.ot-cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 2099; /* di atas mobile sidebar (2000) */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.ot-cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.ot-cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: min(420px, 100vw);
    background: #fff;
    z-index: 2100;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: -12px 0 32px rgba(0, 0, 0, 0.12);
    font-family: 'Inter', sans-serif;
}
.ot-cart-drawer.open {
    transform: translateX(0);
}

.ot-cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}
.ot-cart-drawer-header h2 {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: #111;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}
.ot-cart-drawer-close {
    background: none;
    border: none;
    font-size: 1.05rem;
    color: #888;
    cursor: pointer;
    padding: 6px;
    line-height: 1;
    transition: color 0.2s ease;
}
.ot-cart-drawer-close:hover { color: #111; }

.ot-cart-drawer-flash {
    margin: 14px 22px 0;
    padding: 10px 14px;
    border-radius: 10px;
    background: #fdecea;
    color: #b3261e;
    font-size: 0.8rem;
    font-weight: 600;
}

.ot-cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px 22px 22px;
}
.ot-cart-drawer-loading,
.ot-cart-drawer-empty {
    text-align: center;
    color: #888;
    font-size: 0.85rem;
    padding: 60px 10px;
}
.ot-cart-drawer-empty .emoji {
    font-size: 2.2rem;
    display: block;
    margin-bottom: 10px;
}
.ot-cart-drawer-empty a {
    display: inline-block;
    margin-top: 14px;
    padding: 10px 20px;
    background: #111;
    color: #fff;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.4px;
}

.ot-cart-drawer-item {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid #f1f1f1;
}
.ot-cart-drawer-item img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #eee;
    background: #fafafa;
    flex-shrink: 0;
}
.ot-cart-drawer-item-info {
    flex: 1;
    min-width: 0;
}
.ot-cart-drawer-item-info h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ot-cart-drawer-item-price {
    font-size: 0.78rem;
    color: #888;
    margin: 0 0 10px;
}
.ot-cart-drawer-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.ot-cart-drawer-qty {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}
.ot-cart-drawer-qty button {
    border: none;
    background: #fafafa;
    width: 26px;
    height: 26px;
    font-weight: 700;
    color: #444;
    cursor: pointer;
    font-size: 0.8rem;
}
.ot-cart-drawer-qty button:hover { background: #eee; }
.ot-cart-drawer-qty span {
    width: 30px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #111;
}
.ot-cart-drawer-item-subtotal {
    font-size: 0.82rem;
    font-weight: 800;
    color: #111;
}
.ot-cart-drawer-item-remove {
    background: none;
    border: none;
    color: #b3261e;
    font-size: 0.75rem;
    cursor: pointer;
    padding: 4px;
}

.ot-cart-drawer-footer {
    flex-shrink: 0;
    padding: 18px 22px 24px;
    border-top: 1px solid #eee;
}
.ot-cart-drawer-subtotal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #444;
    margin-bottom: 14px;
}
.ot-cart-drawer-subtotal strong {
    font-size: 1.1rem;
    color: #111;
}
.ot-cart-drawer-checkout-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px;
    background: #111;
    color: #fff;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.4px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 0.2s ease, opacity 0.2s ease;
}
.ot-cart-drawer-checkout-btn:hover { background: #000; }
.ot-cart-drawer-checkout-btn[aria-disabled="true"] {
    pointer-events: none;
    opacity: 0.4;
}
.ot-cart-drawer-fulllink {
    display: block;
    text-align: center;
    margin-top: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #888;
    text-decoration: none;
}
.ot-cart-drawer-fulllink:hover { color: #111; text-decoration: underline; }

/* Animasi badge keranjang saat berubah (dipakai cart-drawer.js & cart.php) */
@keyframes otCartBadgeBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.35); background-color: #111; color: #fff; }
}
.cart-animate-bounce {
    animation: otCartBadgeBounce 0.4s ease-in-out;
}

@media (max-width: 480px) {
    .ot-cart-drawer { width: 100vw; }
}
