/* ====================================
   BiakDagang.com - Custom Stylesheet
   Marketplace UMKM Lokal Biak
   ==================================== */

/* ---------- CSS Variables ---------- */
:root {
    --primary: #008B7A;
    --primary-dark: #007365;
    --primary-light: #26A69A;
    --secondary: #687188;
    --secondary-dark: #292B2C;
    --accent: #008B7A;
    --accent-dark: #007365;
    --dark: #292B2C;
    --darker: #1A1A1A;
    --gray-50: #F4F6FA;
    --gray-100: #E9ECEF;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --danger: #EF4444;
    --info: #06B6D4;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Native System Fonts (0ms load time) */
    --font-system: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

/* ---------- Base ---------- */
.btn {
    border-radius: var(--radius-sm);
    font-weight: 500;
}

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

body {
    font-family: var(--font-system);
    background-color: var(--gray-50);
    color: var(--dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a:hover {
    color: var(--primary-dark);
}

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

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--gray-100);
}
::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* ---------- Navbar ---------- */
.bg-navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    padding: 0.8rem 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
}

.brand-icon {
    font-size: 1.6rem;
}

.brand-text {
    color: var(--dark);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.search-form {
    max-width: 580px;
    width: 100%;
}

.search-box-wrapper {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 4px;
    transition: var(--transition);
}

.search-box-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 139, 122, 0.1);
}

.search-box-icon {
    font-size: 1.1rem;
    color: var(--gray-400) !important;
}

.search-box-input {
    border: none !important;
    background: transparent !important;
    color: var(--dark) !important;
    box-shadow: none !important;
    padding: 0.4rem 0.8rem !important;
    font-size: 0.95rem;
}

.search-box-input::placeholder {
    color: var(--gray-400);
}

.search-box-btn {
    border-radius: var(--radius-sm) !important;
    padding: 0.5rem 1.5rem !important;
    font-size: 0.95rem;
}

.nav-link {
    color: var(--dark) !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    border-radius: 4px;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary) !important;
    background: transparent;
}

.cart-badge {
    font-size: 0.65rem;
    padding: 0.2em 0.5em;
    animation: pulse 2s infinite;
}

.bg-accent {
    background-color: var(--accent) !important;
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #fff;
    border: none;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.btn-accent:hover {
    background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16,185,129,0.4);
}

.avatar-sm {
    font-size: 1.2rem;
}

.dropdown-menu {
    border-radius: var(--radius-md);
    padding: 0.5rem;
    animation: fadeInDown 0.2s ease;
}

.dropdown-item {
    border-radius: var(--radius-sm);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--gray-100);
}

/* ---------- Hero Section ---------- */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.08) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -20%;
    width: 60%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(245,158,11,0.12) 0%, transparent 70%);
    animation: float 10s ease-in-out infinite reverse;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 1.2rem;
}

.hero-title .highlight {
    color: var(--primary-light);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.85);
    max-width: 500px;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 2.5rem;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
}

.hero-stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    margin-top: 0.2rem;
}

.hero-glass-card {
    background: #ffffff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

/* ---------- Section Titles ---------- */
.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--gray-500);
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* ---------- Category Cards ---------- */
.category-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    display: block;
}

.category-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark);
    margin-bottom: 0.3rem;
}

.category-count {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* ---------- Product Cards ---------- */
.product-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    padding-top: 75%;
    background: var(--gray-100);
}

.product-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image-wrapper img {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

.product-body {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(37,99,235,0.08);
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.product-name a {
    color: inherit;
}

.product-name a:hover {
    color: var(--primary);
}

.product-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
    margin-top: auto;
    margin-bottom: 0.5rem;
}

.product-store {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.product-store i {
    color: var(--accent);
}

.product-footer {
    padding: 0.8rem 1.2rem;
    border-top: 1px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ---------- Buttons ---------- */
.btn-primary {
    background: var(--primary);
    border: 1px solid var(--primary);
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.2);
}

.btn-secondary {
    background: var(--gray-100);
    border: none;
    color: var(--dark);
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--gray-200);
    color: var(--dark);
    transform: translateY(-1px);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

.btn-cart {
    background: var(--secondary);
    color: var(--dark);
    border: none;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.btn-cart:hover {
    background: var(--secondary-dark);
    color: #fff;
    transform: scale(1.05);
}

/* ---------- Auth Pages ---------- */
.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-card {
    background: #fff;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-lg) !important;
    overflow: hidden;
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    border: 1px solid var(--gray-200);
}

.auth-header {
    background: #fff;
    padding: 2rem 2rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-header h2 {
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 0;
}

.auth-header .auth-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
}

.auth-body {
    padding: 1rem 2rem 2rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--gray-400);
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--gray-200);
}

.auth-divider:not(:empty)::before {
    margin-right: .5em;
}

.auth-divider:not(:empty)::after {
    margin-left: .5em;
}

.form-control, .form-select {
    border-radius: var(--radius-sm);
    padding: 0.7rem 1rem;
    border: 1.5px solid var(--gray-200);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-700);
    margin-bottom: 0.4rem;
}

/* ---------- Product Detail ---------- */
.detail-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.detail-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.detail-price {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
}

.detail-info-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    animation: curtainDrop 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* ---------- Cart Page ---------- */
.cart-item {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 1.2rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.cart-item:hover {
    box-shadow: var(--shadow-md);
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.cart-summary {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    position: sticky;
    top: 90px;
}

/* ---------- Dashboard ---------- */
.stat-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.stat-card.stat-primary::before { background: var(--primary); }
.stat-card.stat-secondary::before { background: var(--secondary); }
.stat-card.stat-accent::before { background: var(--accent); }
.stat-card.stat-danger::before { background: var(--danger); }

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon.bg-primary-soft { background: rgba(37,99,235,0.1); color: var(--primary); }
.stat-icon.bg-secondary-soft { background: rgba(245,158,11,0.1); color: var(--secondary); }
.stat-icon.bg-accent-soft { background: rgba(16,185,129,0.1); color: var(--accent); }
.stat-icon.bg-danger-soft { background: rgba(239,68,68,0.1); color: var(--danger); }

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* ---------- Seller Sidebar ---------- */
.seller-sidebar {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    position: sticky;
    top: 80px;
}

.seller-sidebar .nav-link {
    color: var(--gray-600) !important;
    font-weight: 500;
    padding: 0.7rem 1rem !important;
    border-radius: var(--radius-sm);
    margin-bottom: 0.2rem;
    font-size: 0.9rem;
}

.seller-sidebar .nav-link:hover,
.seller-sidebar .nav-link.active {
    color: var(--primary) !important;
    background: rgba(37,99,235,0.08);
}

.seller-sidebar .nav-link.active {
    font-weight: 700;
}

.seller-sidebar .nav-link i {
    width: 24px;
    text-align: center;
}

/* ---------- Tables ---------- */
.table-modern {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.table-modern th {
    background: var(--gray-50);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-600);
    padding: 1rem;
    border-bottom: 2px solid var(--gray-200);
}

.table-modern td {
    padding: 1rem;
    vertical-align: middle;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--gray-100);
}

.table-modern tr:hover td {
    background: var(--gray-50);
}

/* ---------- Empty State ---------- */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--gray-300);
    margin-bottom: 1rem;
}

.empty-state h4 {
    font-weight: 700;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--gray-500);
    max-width: 400px;
    margin: 0 auto;
}

/* ---------- Footer ---------- */
.footer {
    background: linear-gradient(135deg, var(--dark) 0%, var(--darker) 100%);
    color: #fff;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a,
.footer-links li {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--secondary);
    color: var(--dark);
    transform: translateY(-3px);
}

/* ---------- Badges ---------- */
.badge {
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.3em 0.7em;
    border-radius: 50px;
}

/* ---------- Page Header ---------- */
.page-header {
    background: #ffffff;
    border-bottom: 1px solid var(--gray-200);
    padding: 1.25rem 0;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(0, 122, 255, 0.03) 0%, transparent 70%);
}

.page-header h1 {
    color: var(--dark);
    font-weight: 800;
    font-size: 2rem;
    position: relative;
    z-index: 2;
}

.page-header .breadcrumb {
    position: relative;
    z-index: 2;
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.page-header .breadcrumb-item.active {
    color: var(--dark);
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: var(--gray-400);
}

/* ---------- Store Profile ---------- */
.store-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    color: #fff;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.store-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 50%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.store-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border: 3px solid rgba(255,255,255,0.3);
}

/* ---------- Quantity Input ---------- */
.qty-input {
    display: flex;
    align-items: center;
    gap: 0;
}

.qty-input .btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 1rem;
    border: 1.5px solid var(--gray-200);
    background: var(--gray-50);
    color: var(--dark);
}

.qty-input .btn:first-child {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.qty-input .btn:last-child {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.qty-input input {
    width: 50px;
    height: 36px;
    text-align: center;
    border: 1.5px solid var(--gray-200);
    border-left: none;
    border-right: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.qty-input input:focus {
    outline: none;
    border-color: var(--primary);
}

/* ---------- Pagination ---------- */
.pagination .page-link {
    border: none;
    color: var(--gray-600);
    font-weight: 500;
    padding: 0.5rem 0.9rem;
    margin: 0 2px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(37,99,235,0.3);
}

.pagination .page-link:hover {
    background: var(--gray-100);
    color: var(--primary);
}

/* ---------- Sort & Filter Bar ---------- */
.filter-bar {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    margin-bottom: 1.5rem;
    animation: curtainDrop 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* ---------- 404 Page ---------- */
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.error-code {
    font-size: 8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

/* ---------- Toast ---------- */
.toast {
    border-radius: var(--radius-md);
    border: none;
    box-shadow: var(--shadow-lg);
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes curtainDrop {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.curtain-drop {
    animation: curtainDrop 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-in-up-delay-1 { animation-delay: 0.1s; opacity: 0; }
.fade-in-up-delay-2 { animation-delay: 0.2s; opacity: 0; }
.fade-in-up-delay-3 { animation-delay: 0.3s; opacity: 0; }
.fade-in-up-delay-4 { animation-delay: 0.4s; opacity: 0; }

/* ---------- No Image Placeholder ---------- */
.no-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    color: var(--gray-400);
    font-size: 3rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-stats {
        gap: 1.5rem;
    }
    .search-form {
        max-width: 100%;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 3rem 0;
    }
    .hero-title {
        font-size: 1.8rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .hero-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }
    .hero-stat-value {
        font-size: 1.5rem;
    }
    .section-title {
        font-size: 1.4rem;
    }
    .detail-image img {
        height: 280px;
    }
    .stat-value {
        font-size: 1.4rem;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.5rem;
    }
    .category-card {
        padding: 1rem;
    }
    .category-icon {
        font-size: 2rem;
    }
}

/* ---------- Custom Utilities ---------- */
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Kontainer Kategori Pintar */
.category-scroll-container {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.category-scroll-container::-webkit-scrollbar {
    display: none;
}

/* Di layar komputer/tablet, biarkan kategori membungkus rapi ke bawah daripada di-scroll */
@media (min-width: 768px) {
    .category-scroll-container {
        flex-wrap: wrap;
        white-space: normal;
        overflow-x: visible;
        padding-bottom: 0;
    }
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-feed-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-feed-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

.bg-primary { background-color: var(--primary) !important; }
.text-primary { color: var(--primary) !important; }

/* Override bootstrap success background to match theme primary color */
.toast.text-bg-success {
    background-color: var(--primary) !important;
    color: #fff !important;
}

/* ---------- Tooltip Customization ---------- */
.tooltip {
    --bs-tooltip-bg: var(--darker);
    --bs-tooltip-color: #ffffff;
    --bs-tooltip-border-radius: var(--radius-sm);
    --bs-tooltip-padding-x: 0.75rem;
    --bs-tooltip-padding-y: 0.4rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    opacity: 0.95 !important;
}

.tooltip-inner {
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---------- Navbar Search Desktop ---------- */
@media (min-width: 992px) {
    .search-form-desktop {
        width: auto !important;
        flex: 1 1 auto !important;
    }
}
