:root { 
    --brand-yellow: #ffcc00; 
    --brand-black: #1d1d1f; 
    --apple-bg: #f5f0e6;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Inter', sans-serif; 
}

body { 
    background-color: var(--apple-bg); 
    color: var(--brand-black); 
    min-height: 100vh; 
    display: flex; 
    flex-direction: column; 
}

/* ============================================
   HERO SLIDER (FLASH DEALS)
   ============================================ */
.hero-slider-container {
    position: relative;
    width: 100%;
    margin-bottom: 40px;
    overflow: hidden;
    border-radius: 28px;
}

.hero-slider {
    position: relative;
    width: 100%;
    min-height: 380px;
}

.hero-slide {
    display: none;
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border-radius: 28px;
    padding: 30px;
    border: 1px solid rgba(255, 204, 0, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.hero-slide.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

.hero-slide-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
}

.hero-slide-image {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.hero-slide-image img {
    max-width: 100%;
    max-height: 220px;
    object-fit: contain;
    border-radius: 20px;
}

.hero-slide-info {
    flex: 1.5;
    min-width: 250px;
}

.hero-flash-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff3b30, #ff9500);
    color: white;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.hero-slide-info h2 {
    color: white;
    font-size: 24px;
    margin-bottom: 12px;
    font-weight: 700;
}

.hero-slide-desc {
    color: #aaa;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.hero-discount-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 59, 48, 0.2);
    padding: 6px 14px;
    border-radius: 40px;
    margin-bottom: 15px;
}

.hero-discount-badge span {
    background: #ff3b30;
    color: white;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
}

.hero-discount-badge small {
    color: #ff9500;
    font-size: 13px;
}

.hero-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
}

.hero-old-price {
    text-decoration: line-through;
    color: #888;
    font-size: 16px;
}

.hero-sale-price {
    font-size: 32px;
    font-weight: 800;
    color: #ffcc00;
}

.hero-timer {
    background: rgba(0,0,0,0.5);
    border: 1px solid #ff9500;
    border-radius: 50px;
    padding: 10px 20px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-family: monospace;
}

.hero-timer span {
    font-size: 20px;
    font-weight: 700;
    color: #ff9500;
}

.hero-timer label {
    font-size: 12px;
    color: #aaa;
}

.hero-add-to-cart {
    background: #ffcc00;
    color: #1a1a1a;
    border: none;
    border-radius: 40px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    max-width: 200px;
}

.hero-add-to-cart:hover {
    background: #ffdd44;
    transform: scale(0.98);
}

/* Slider Controls */
.slider-prev, .slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: #ffcc00;
    border: 1px solid #ffcc00;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.slider-prev {
    left: 15px;
}

.slider-next {
    right: 15px;
}

.slider-prev:hover, .slider-next:hover {
    background: #ffcc00;
    color: #1a1a1a;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.2s;
}

.slider-dot.active {
    background: #ffcc00;
    width: 25px;
    border-radius: 10px;
}

/* Responsive Hero */
@media (max-width: 768px) {
    .hero-slide-content {
        flex-direction: column;
        text-align: center;
    }
    .hero-slide-info h2 {
        font-size: 20px;
    }
    .hero-sale-price {
        font-size: 26px;
    }
    .hero-timer span {
        font-size: 16px;
    }
    .hero-add-to-cart {
        max-width: 100%;
    }
    .slider-prev, .slider-next {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    .hero-slider-container {
        margin-bottom: 25px;
    }
}

/* ============================================
   GRID - UNIFORM CARDS (FIXED)
   ============================================ */
.grid { 
    display: grid; 
    gap: 20px; 
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ALL CARDS UNIFORM */
.card { 
    background: white; 
    border-radius: 20px; 
    border: 2px solid #ffcc00;
    padding: 16px; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    display: flex; 
    flex-direction: column; 
    position: relative; 
    box-shadow: 0 0 0 rgba(255, 204, 0, 0);
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.card:hover { 
    transform: translateY(-6px); 
    border-color: #ffdd44;
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.4), 0 5px 15px rgba(0,0,0,0.1);
}

.card:active {
    transform: translateY(2px);
}

/* Flash card also uniform */
.card.flash-card {
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border: 2px solid #ffcc00;
    position: relative;
    overflow: hidden;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* ============================================
   CUSTOMER HEADER
   ============================================ */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(29, 29, 31, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.sticky-header.scrolled {
    background: rgba(29, 29, 31, 0.95);
}

.sticky-header.scrolled nav {
    padding: 8px 5%;
}

nav {
    background: transparent;
    padding: 0 5%;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1000;
    color: white;
    transition: padding 0.3s ease;
}

.logo { 
    font-weight: 700; 
    font-size: 1.5rem; 
    cursor: pointer; 
    text-decoration: none; 
    color: white; 
}

.logo span { 
    color: var(--brand-yellow); 
}

.nav-links { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    flex-wrap: wrap; 
    justify-content: flex-end; 
}

.nav-btn { 
    display: none;
}

.menu-btn {
    background: rgba(255,255,255,0.15);
    color: var(--brand-yellow);
    border: 1px solid rgba(255,204,0,0.3);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.menu-btn:hover {
    background: rgba(255,255,255,0.25);
    border-color: var(--brand-yellow);
}

.hamburger-menu {
    position: absolute;
    top: 70px;
    right: 5%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    border: 2px solid #ffcc00;
    border-radius: 16px;
    min-width: 180px;
    z-index: 1001;
    display: none;
    overflow: hidden;
}

.hamburger-menu.show {
    display: block;
}

.hamburger-menu a {
    color: white;
    padding: 14px 20px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.hamburger-menu a:hover {
    background: rgba(255, 204, 0, 0.2);
}

.dropdown { 
    display: none;
}

/* ============================================
   ADMIN HEADER
   ============================================ */
.admin-sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(29, 29, 31, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.admin-sticky-header.scrolled {
    background: rgba(29, 29, 31, 0.95);
}

.admin-sticky-header.scrolled .admin-nav {
    padding: 8px 5%;
}

.admin-nav {
    background: transparent;
    padding: 0 5%;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1000;
    color: white;
    transition: padding 0.3s ease;
}

.admin-logo {
    font-weight: 700;
    font-size: 1.5rem;
    cursor: pointer;
    text-decoration: none;
    color: white;
}

.admin-logo span {
    color: var(--brand-yellow);
}

.admin-nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.admin-dropdown {
    position: relative;
    display: inline-block;
}

.admin-dropdown-btn {
    background: rgba(255,255,255,0.15);
    color: var(--brand-yellow);
    border: 1px solid rgba(255,204,0,0.3);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.admin-dropdown-btn:hover {
    background: rgba(255,255,255,0.25);
    border-color: var(--brand-yellow);
}

.admin-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 45px;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-radius: 12px;
    z-index: 1001;
}

.admin-dropdown-content a {
    color: var(--brand-black);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    font-weight: 500;
}

.admin-dropdown-content a:hover {
    background-color: #f5f5f7;
}

.admin-dropdown-content a.active {
    background-color: var(--brand-yellow);
    color: var(--brand-black);
}

.admin-dropdown:hover .admin-dropdown-content {
    display: block;
}

.order-badge {
    background: #ff3b30;
    color: white;
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 11px;
    margin-left: 8px;
    display: inline-block;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); background-color: #ff0000; }
    100% { transform: scale(1); opacity: 1; }
}

/* ============================================
   CATEGORY NAVIGATION - No background
   ============================================ */
.category-nav { 
    background: transparent;
    padding: 15px 0;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    white-space: nowrap;
    margin-bottom: 20px;
}

.category-nav::-webkit-scrollbar {
    display: none;
}

.cat-btn { 
    background: rgba(0,0,0,0.05);
    border: 1px solid #ddd;
    padding: 8px 18px; 
    border-radius: 30px; 
    font-size: 13px; 
    font-weight: 600; 
    cursor: pointer; 
    transition: all 0.2s;
}

.cat-btn.active { 
    background: var(--brand-black); 
    color: var(--brand-yellow);
    border-color: var(--brand-yellow);
}

.cat-btn:hover {
    background: var(--brand-black);
    color: var(--brand-yellow);
    border-color: var(--brand-yellow);
}

/* ============================================
   CONTAINER
   ============================================ */
.container { 
    padding: 20px 5%; 
    max-width: 1400px; 
    margin: 0 auto; 
    flex: 1; 
    width: 100%; 
}

/* ============================================
   SECTION TITLE
   ============================================ */
.section-title { 
    font-size: 28px; 
    font-weight: 600; 
    text-align: center; 
    margin: 20px 0 30px; 
}

.section-title span { 
    color: var(--brand-yellow); 
}

/* ============================================
   IMAGE CONTAINER
   ============================================ */
.img-container { 
    width: 100%; 
    height: 180px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-bottom: 12px; 
    background: #fafafa; 
    border-radius: 12px; 
}

.card img { 
    max-width: 100%; 
    max-height: 100%; 
    object-fit: contain; 
}

.card h4 { 
    font-size: 15px; 
    font-weight: 600; 
    margin-bottom: 6px; 
    white-space: normal;
    word-wrap: break-word;
}

.card-desc { 
    font-size: 12px; 
    color: #666; 
    margin-bottom: 10px; 
    line-height: 1.3; 
    min-height: 45px; 
    overflow: hidden; 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
}

.price { 
    font-weight: 700; 
    font-size: 16px; 
    color: var(--brand-black); 
    margin-top: auto; 
}

.old-price { 
    text-decoration: line-through; 
    font-size: 13px; 
    color: #999; 
    margin-right: 8px; 
}

.sale-price { 
    font-weight: 700; 
    font-size: 16px; 
    color: #ff3b30; 
}

.flash-badge { 
    position: absolute; 
    top: 12px; 
    left: 12px; 
    background: linear-gradient(135deg, #ffcc00, #ffdd44);
    color: #1d1d1f;
    font-size: 10px; 
    font-weight: bold; 
    padding: 4px 8px; 
    border-radius: 20px; 
    z-index: 1;
}

/* ============================================
   ADMIN CARDS & FORMS
   ============================================ */
.admin-card { 
    background: white; 
    padding: 24px; 
    border-radius: 24px; 
    margin-bottom: 24px; 
    border: 1px solid #e5e5e5; 
}

.admin-card h4 { 
    margin-bottom: 16px; 
    font-size: 18px; 
    font-weight: 600; 
}

.admin-card input, 
.admin-card select, 
.admin-card textarea { 
    width: 100%; 
    padding: 12px; 
    margin-bottom: 12px; 
    border: 1px solid #ddd; 
    border-radius: 12px; 
    font-size: 14px; 
}

.btn { 
    background: var(--brand-black); 
    color: var(--brand-yellow); 
    padding: 12px; 
    border-radius: 30px; 
    border: none; 
    cursor: pointer; 
    font-weight: 600; 
    width: 100%; 
    margin-top: 8px; 
    font-size: 14px; 
}

.btn:hover { 
    opacity: 0.9; 
}

.btn-secondary { 
    background: #f0f0f0; 
    color: #333; 
}

.btn-success { 
    background: #28a745; 
    color: white; 
}

.filter-row { 
    display: flex; 
    gap: 10px; 
    flex-wrap: wrap; 
    margin-bottom: 20px; 
    align-items: center; 
}

.filter-row input, 
.filter-row select { 
    flex: 1; 
    min-width: 120px; 
}

.small-btn { 
    background: var(--brand-black); 
    color: var(--brand-yellow); 
    border: none; 
    padding: 8px 16px; 
    border-radius: 25px; 
    font-size: 12px; 
    font-weight: 600; 
    cursor: pointer; 
    margin: 2px; 
}

.small-btn.reject { 
    background: #ff3b30; 
    color: white; 
}

.search-bar { 
    width: 100%; 
    padding: 12px 16px; 
    border: 1px solid #ddd; 
    border-radius: 30px; 
    font-size: 14px; 
    margin-bottom: 20px; 
}

/* ============================================
   MODAL - Smaller size, click outside to close
   ============================================ */
.modal { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.7); 
    z-index: 3000; 
    justify-content: center; 
    align-items: center; 
    cursor: pointer;
}

.glass-modal { 
    background: white; 
    padding: 24px; 
    border-radius: 28px; 
    width: 90%; 
    max-width: 400px; 
    max-height: 80vh; 
    overflow-y: auto; 
    cursor: default;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.modal-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 16px; 
}

.close-modal { 
    background: none; 
    border: none; 
    font-size: 24px; 
    cursor: pointer; 
    color: #999; 
    padding: 0 8px; 
    transition: color 0.2s;
}

.close-modal:hover {
    color: #ff3b30;
}

/* ============================================
   CART
   ============================================ */
.cart-item { 
    background: white; 
    border-radius: 16px; 
    padding: 16px; 
    margin-bottom: 12px; 
    border: 1px solid #eee; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    flex-wrap: wrap; 
    gap: 12px; 
}

.cart-item-info { 
    flex: 2; 
}

.cart-item-info h4 { 
    font-size: 14px; 
    margin-bottom: 4px; 
}

.cart-item-actions { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
}

.qty-btn { 
    width: 40px; 
    height: 40px; 
    border-radius: 12px; 
    border: 1px solid #ddd; 
    background: white; 
    font-size: 20px; 
    font-weight: bold; 
    cursor: pointer; 
}

.remove-btn { 
    background: none; 
    border: none; 
    font-size: 24px; 
    cursor: pointer; 
    color: #ff3b30; 
    padding: 0 8px; 
}

.cart-qty { 
    font-size: 18px; 
    font-weight: 600; 
    min-width: 40px; 
    text-align: center; 
}

.empty-cart { 
    text-align: center; 
    padding: 60px 20px; 
}

.empty-cart h2 { 
    font-size: 24px; 
    margin-bottom: 10px; 
}

.category-shortcuts { 
    display: flex; 
    gap: 8px; 
    flex-wrap: wrap; 
    justify-content: center; 
    margin-top: 20px; 
}

.cat-shortcut { 
    background: #eee; 
    border: none; 
    padding: 8px 16px; 
    border-radius: 30px; 
    font-size: 12px; 
    cursor: pointer; 
}

/* ============================================
   FOOTER
   ============================================ */
footer { 
    background: white; 
    padding: 30px 5% 25px; 
    text-align: center; 
    border-top: 2px solid #1d1d1f;
    margin-top: 40px; 
}

.footer-contact {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 15px;
    color: var(--brand-black);
}

.social-links { 
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 0 0 15px 0;
}

.social-links a { 
    text-decoration: none; 
    font-size: 28px;
    transition: transform 0.2s ease;
}

.social-links a:hover { 
    transform: scale(1.1);
}

.social-links .tiktok-link {
    color: #000000;
}

.social-links .whatsapp-link {
    color: #25D366;
}

.shop-name { 
    font-weight: 700; 
    font-size: 16px; 
    margin: 8px 0 4px; 
}

.shop-address { 
    font-size: 12px; 
    color: #888; 
}

.copyright { 
    font-size: 10px; 
    color: #bbb; 
    margin-top: 20px; 
}

/* ============================================
   FEATURED BANNER - HIDDEN
   ============================================ */
.featured-banner {
    display: none;
}

/* ============================================
   TOAST
   ============================================ */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: #1d1d1f;
    color: #ffcc00;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10000;
    animation: toastFadeInUp 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    white-space: nowrap;
}

@keyframes toastFadeInUp {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@media (max-width: 600px) {
    .toast {
        white-space: normal;
        text-align: center;
        max-width: 80%;
        font-size: 12px;
        padding: 10px 18px;
        bottom: 80px;
    }
}

/* ============================================
   FLOATING CART BUTTON
   ============================================ */
.floating-cart {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #1d1d1f;
    color: #ffcc00;
    width: 60px;
    height: 60px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: all 0.2s ease;
    border: none;
    font-size: 24px;
}

.floating-cart:hover {
    transform: scale(1.05);
    background: #2d2d2f;
}

.floating-cart .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff3b30;
    color: white;
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

@media (max-width: 768px) {
    .floating-cart {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 20px;
    }
}

/* ============================================
   SKELETON & UTILITIES
   ============================================ */
.skeleton-card {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 20px;
    height: 280px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.btn, .cat-btn, .small-btn, .qty-btn, .floating-cart, .menu-btn, .hero-add-to-cart {
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn:active, .cat-btn:active, .small-btn:active, .qty-btn:active, .menu-btn:active, .hero-add-to-cart:active {
    transform: scale(0.97);
}

.card {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}

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

.badge-update {
    animation: badgeBounce 0.3s ease;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 600px) { 
    .admin-card { padding: 16px; } 
    .nav-links { gap: 6px; } 
    .menu-btn { padding: 6px 14px; font-size: 12px; } 
    .section-heading { font-size: 28px; margin: 5px 0 20px; } 
    .grid { gap: 12px; }
    .card { padding: 12px; }
    .img-container { height: 140px; }
    .card h4 { font-size: 13px; }
    .price, .sale-price { font-size: 14px; }
    .admin-nav { padding: 0 4%; }
    .admin-logo { font-size: 1.2rem; }
    .hamburger-menu {
        top: 60px;
        right: 4%;
        min-width: 150px;
    }
    .hamburger-menu a {
        padding: 12px 16px;
        font-size: 13px;
    }
    footer {
        padding: 20px 5% 20px;
    }
    .social-links a {
        font-size: 24px;
    }
    .section-title {
        font-size: 22px;
        margin: 15px 0 20px;
    }
}