sstart/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f7fa;
    color: #1a1a2e;
    max-width: 100%;
    margin: 0 auto;
    padding-bottom: 20px;
    overflow-x: hidden;
    min-height: 100vh;
    transition: background 0.3s ease, color 0.3s ease;
}

/* ========== FLOATING FUNNY SHAPES ========== */
.floating-shapes {
    position: relative;
    width: 100%;
    min-height: 250px;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    margin-top: -40px;
}

.floating-shapes.layer-2 {
    position: relative;
    min-height: 0;
    height: 0;
    opacity: 0;
}

.floating-shape {
    position: absolute;
    width: 40px;
    height: 40px;
    opacity: 0.25;
    will-change: transform;
    animation: floatShape 8s ease-in-out infinite;
}

.floating-shape:nth-child(1) { left: 5%; animation-duration: 7s; animation-delay: 0s; width: 50px; height: 50px; }
.floating-shape:nth-child(2) { left: 15%; animation-duration: 9s; animation-delay: 0.5s; width: 35px; height: 35px; }
.floating-shape:nth-child(3) { left: 25%; animation-duration: 6s; animation-delay: 1s; width: 45px; height: 45px; }
.floating-shape:nth-child(4) { left: 35%; animation-duration: 10s; animation-delay: 0.3s; width: 30px; height: 30px; }
.floating-shape:nth-child(5) { left: 45%; animation-duration: 8s; animation-delay: 1.5s; width: 55px; height: 55px; }
.floating-shape:nth-child(6) { left: 55%; animation-duration: 7.5s; animation-delay: 0.8s; width: 38px; height: 38px; }
.floating-shape:nth-child(7) { left: 65%; animation-duration: 9.5s; animation-delay: 2s; width: 48px; height: 48px; }
.floating-shape:nth-child(8) { left: 75%; animation-duration: 6.5s; animation-delay: 1.2s; width: 42px; height: 42px; }
.floating-shape:nth-child(9) { left: 85%; animation-duration: 8.5s; animation-delay: 0.7s; width: 36px; height: 36px; }
.floating-shape:nth-child(10) { left: 92%; animation-duration: 11s; animation-delay: 1.8s; width: 50px; height: 50px; }

.layer-2 .floating-shape:nth-child(1) { left: 8%; animation-duration: 11s; animation-delay: 0.2s; width: 32px; height: 32px; }
.layer-2 .floating-shape:nth-child(2) { left: 20%; animation-duration: 7s; animation-delay: 1s; width: 44px; height: 44px; }
.layer-2 .floating-shape:nth-child(3) { left: 30%; animation-duration: 13s; animation-delay: 0.5s; width: 28px; height: 28px; }
.layer-2 .floating-shape:nth-child(4) { left: 40%; animation-duration: 8s; animation-delay: 1.5s; width: 50px; height: 50px; }
.layer-2 .floating-shape:nth-child(5) { left: 50%; animation-duration: 10s; animation-delay: 0s; width: 35px; height: 35px; }
.layer-2 .floating-shape:nth-child(6) { left: 60%; animation-duration: 9s; animation-delay: 2s; width: 46px; height: 46px; }
.layer-2 .floating-shape:nth-child(7) { left: 70%; animation-duration: 12s; animation-delay: 0.8s; width: 30px; height: 30px; }
.layer-2 .floating-shape:nth-child(8) { left: 80%; animation-duration: 7s; animation-delay: 1.3s; width: 52px; height: 52px; }
.layer-2 .floating-shape:nth-child(9) { left: 88%; animation-duration: 10s; animation-delay: 0.3s; width: 38px; height: 38px; }
.layer-2 .floating-shape:nth-child(10) { left: 95%; animation-duration: 14s; animation-delay: 1.7s; width: 42px; height: 42px; }

.shape-circle { border-radius: 50%; }
.shape-square { border-radius: 4px; }
.shape-triangle {
    width: 0 !important; height: 0 !important;
    background: transparent !important;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-bottom: 30px solid;
}
.shape-star {
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    border-radius: 0;
}
.shape-hexagon {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    border-radius: 0;
}
.shape-blob {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: blobMorph 4s ease-in-out infinite !important;
}

@keyframes floatShape {
    0%   { transform: translateY(0) translateX(0) rotate(0deg); }
    25%  { transform: translateY(-60px) translateX(15px) rotate(90deg); }
    50%  { transform: translateY(-120px) translateX(-10px) rotate(180deg); }
    75%  { transform: translateY(-60px) translateX(20px) rotate(270deg); }
    100% { transform: translateY(0) translateX(0) rotate(360deg); }
}

@keyframes blobMorph {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}

/* ========== GSAP SCROLL ANIMATION CLASSES ========== */
.gsap-fade-up {
    opacity: 0;
    transform: translateY(40px);
}

.gsap-fade-left {
    opacity: 0;
    transform: translateX(-40px);
}

.gsap-fade-right {
    opacity: 0;
    transform: translateX(40px);
}

.gsap-scale-in {
    opacity: 0;
    transform: scale(0.8);
}

.gsap-rotate-in {
    opacity: 0;
    transform: rotate(-10deg) scale(0.9);
}

/* ========== SCROLL PROGRESS BAR ========== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    z-index: 1000;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

/* ========== DARK THEME ========== */
body.dark-theme {
    background: #121212;
    color: #e0e0e0;
}

body.dark-theme .header {
    background: #1e1e1e;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

body.dark-theme .icon-btn {
    background: #2a2a2a;
    color: #e0e0e0;
}

body.dark-theme .search-bar input {
    background: #2a2a2a;
    border-color: #333;
    color: #e0e0e0;
}

body.dark-theme .search-bar input:focus {
    border-color: #667eea;
}

body.dark-theme .product-card {
    background: #1e1e1e;
}

body.dark-theme .cat-icon {
    background: #2a2a2a;
}

body.dark-theme .category-item span {
    color: #aaa;
}

body.dark-theme .cart-drawer {
    background: #1e1e1e;
}

body.dark-theme .cart-header {
    border-color: #333;
}

body.dark-theme .cart-item {
    border-color: #333;
}

body.dark-theme .cart-item-emoji {
    background: #2a2a2a;
}

body.dark-theme .cart-footer {
    border-color: #333;
}

body.dark-theme .modal-detail {
    background: #1e1e1e;
}

body.dark-theme .wishlist-drawer {
    background: #1e1e1e;
}

body.dark-theme .wishlist-header {
    border-color: #333;
}

body.dark-theme .toolbar {
    background: #1e1e1e;
}

body.dark-theme .toolbar select {
    background: #2a2a2a;
    color: #e0e0e0;
    border-color: #333;
}

body.dark-theme .cart-coupon input {
    background: #2a2a2a;
    border-color: #333;
    color: #e0e0e0;
}

/* ========== HEADER ========== */
.header {
    background: white;
    padding: 12px 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    font-size: 28px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.icon-btn {
    background: #f0f2f5;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:active {
    transform: scale(0.9);
}

.cart-badge, .wishlist-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ff4757;
    color: white;
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: popIn 0.3s ease;
}

@keyframes popIn {
    0%   { transform: scale(0); }
    70%  { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* ========== SEARCH BAR ========== */
.search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}

.search-bar.open {
    max-height: 60px;
    opacity: 1;
}

.search-bar input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.search-bar input:focus {
    border-color: #667eea;
}

.search-bar button {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    color: #666;
}

/* ========== HERO BANNER ========== */
.hero-banner {
    position: relative;
    margin: 12px 16px;
    border-radius: 20px;
    overflow: hidden;
    height: 200px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 26px;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    animation: slideInLeft 0.6s ease-out 0.3s both;
}

@keyframes slideInLeft {
    from { transform: translateX(-40px); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

.hero-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    margin: 6px 0 14px;
    animation: slideInLeft 0.6s ease-out 0.4s both;
}

.hero-btn {
    background: white;
    border: none;
    padding: 10px 22px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    animation: slideInLeft 0.6s ease-out 0.5s both;
}

.hero-btn:active {
    transform: scale(0.95);
}

.hero-emoji {
    font-size: 70px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-12px) rotate(5deg); }
}

.hero-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    width: 24px;
    border-radius: 4px;
    background: white;
}

/* ========== CATEGORIES ========== */
.categories {
    padding: 0 16px;
    margin-top: 20px;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, #667eea, transparent);
}

.category-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 0 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-scroll::-webkit-scrollbar { display: none; }

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 70px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px 4px;
    border-radius: 16px;
}

.category-item:active {
    transform: scale(0.9);
}

.category-item.active .cat-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 4px 15px rgba(102,126,234,0.4);
}

.cat-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.category-item span {
    font-size: 12px;
    font-weight: 600;
    color: #555;
}

/* ========== TOOLBAR ========== */
.toolbar {
    padding: 8px 16px;
    margin-top: 8px;
    background: white;
    border-radius: 14px;
    margin-left: 16px;
    margin-right: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    animation: fadeInUp 0.6s ease-out 0.35s both;
}

.toolbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.toolbar-count {
    font-size: 13px;
    font-weight: 600;
    color: #888;
}

.sort-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sort-group label {
    font-size: 12px;
    color: #888;
    font-weight: 600;
}

.sort-group select {
    padding: 6px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    background: #f9f9f9;
    cursor: pointer;
    outline: none;
    font-family: inherit;
    transition: border-color 0.3s;
}

.sort-group select:focus {
    border-color: #667eea;
}

/* ========== PRODUCTS ========== */
.products {
    padding: 0 16px;
    margin-top: 12px;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.product-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    animation: cardAppear 0.5s ease-out both;
    cursor: pointer;
}

.product-card:active {
    transform: scale(0.97);
}

@keyframes cardAppear {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.3s; }

.product-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    position: relative;
    overflow: hidden;
}

.product-image::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.3) 50%, transparent 60%);
    animation: shimmer 3s infinite;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img {
    transform: scale(1.08);
}

.product-image .product-discount-badge,
.product-image .product-wish-btn {
    z-index: 3;
}

@keyframes shimmer {
    0%   { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.product-discount-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ff4757;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 8px;
    z-index: 2;
}

.product-wish-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255,255,255,0.9);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-wish-btn.active {
    background: #ff4757;
    color: white;
}

.product-info {
    padding: 12px 14px 16px;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-rating {
    font-size: 11px;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.product-price {
    font-size: 16px;
    font-weight: 800;
    color: #667eea;
}

.product-old-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
    margin-left: 6px;
}

.add-to-cart {
    width: 100%;
    margin-top: 10px;
    padding: 8px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-cart:active {
    transform: scale(0.95);
}

.add-to-cart.added {
    background: #2ed573;
    pointer-events: none;
}

/* ========== PRODUCT DETAIL MODAL ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 300;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-detail {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: calc(100% - 32px);
    max-width: 440px;
    max-height: 85vh;
    background: white;
    border-radius: 24px;
    z-index: 301;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-detail.open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.1);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: all 0.3s ease;
}

.modal-close:active {
    transform: scale(0.85);
}

.modal-content {
    display: flex;
    flex-direction: column;
}

.modal-image {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 90px;
    position: relative;
}

.modal-body {
    padding: 20px 24px 24px;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.modal-rating {
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: #f39c12;
}

.modal-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
}

.modal-price {
    font-size: 24px;
    font-weight: 800;
    color: #667eea;
}

.modal-old-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.modal-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
}

.modal-category {
    font-size: 12px;
    font-weight: 600;
    color: #888;
    margin-bottom: 16px;
    padding: 4px 10px;
    background: #f0f2f5;
    border-radius: 8px;
    display: inline-block;
}

.modal-qty-selector {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.modal-qty-selector button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f0f2f5;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-qty-selector button:active {
    transform: scale(0.85);
}

.modal-qty-selector span {
    font-size: 20px;
    font-weight: 700;
    min-width: 30px;
    text-align: center;
}

.modal-add-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(102,126,234,0.4);
    margin-bottom: 10px;
}

.modal-add-btn:active {
    transform: scale(0.97);
}

.modal-wish-btn {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 14px;
    background: transparent;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    font-family: inherit;
}

.modal-wish-btn:active {
    transform: scale(0.97);
}

.modal-wish-btn.active {
    border-color: #ff4757;
    color: #ff4757;
    background: #fff5f5;
}

/* ========== WISHLIST DRAWER ========== */
.wishlist-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.wishlist-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.wishlist-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 70vh;
    background: white;
    border-radius: 24px 24px 0 0;
    z-index: 201;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.15);
}

.wishlist-drawer.open {
    transform: translateY(0);
}

.wishlist-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.wishlist-header h2 {
    font-size: 20px;
    font-weight: 700;
}

.wishlist-header button {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #666;
    padding: 4px;
}

.wishlist-items {
    flex: 1;
    overflow-y: auto;
    padding: 12px 20px;
    max-height: 45vh;
}

.wishlist-empty {
    text-align: center;
    padding: 40px 0;
    color: #999;
    font-size: 16px;
}

.wishlist-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
    animation: slideInRight 0.3s ease;
}

.wishlist-item-emoji {
    font-size: 32px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f7fa;
    border-radius: 12px;
}

.wishlist-item-info {
    flex: 1;
}

.wishlist-item-name {
    font-weight: 600;
    font-size: 14px;
}

.wishlist-item-price {
    font-size: 14px;
    font-weight: 700;
    color: #667eea;
    margin-top: 2px;
}

.wishlist-item-add {
    padding: 8px 14px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wishlist-item-add:active {
    transform: scale(0.9);
}

.wishlist-item-remove {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #ff4757;
    padding: 4px;
}

/* ========== CART DRAWER ========== */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cart-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 80vh;
    background: white;
    border-radius: 24px 24px 0 0;
    z-index: 201;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.15);
}

.cart-drawer.open {
    transform: translateY(0);
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.cart-header h2 {
    font-size: 20px;
    font-weight: 700;
}

.cart-header button {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #666;
    padding: 4px;
}

/* Coupon */
.cart-coupon {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.cart-coupon input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 13px;
    outline: none;
    font-family: inherit;
    transition: border-color 0.3s;
}

.cart-coupon input:focus {
    border-color: #667eea;
}

.cart-coupon button {
    padding: 10px 18px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cart-coupon button:active {
    transform: scale(0.95);
}

.cart-coupon button.applied {
    background: #2ed573;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 12px 20px;
    max-height: 40vh;
}

.cart-empty {
    text-align: center;
    padding: 40px 0;
    color: #999;
    font-size: 16px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from { transform: translateX(40px); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

.cart-item-emoji {
    font-size: 36px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f7fa;
    border-radius: 12px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    font-size: 14px;
}

.cart-item-price {
    font-size: 14px;
    font-weight: 700;
    color: #667eea;
    margin-top: 2px;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-item-qty button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #f0f2f5;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.cart-item-qty button:active {
    transform: scale(0.85);
}

.cart-item-qty span {
    font-weight: 700;
    font-size: 15px;
    min-width: 20px;
    text-align: center;
}

.cart-item-remove {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #ff4757;
    padding: 4px;
}

.cart-footer {
    padding: 16px 20px 24px;
    border-top: 1px solid #f0f0f0;
}

.cart-discount {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #2ed573;
    font-weight: 700;
    margin-bottom: 6px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 12px;
}

.checkout-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(102,126,234,0.4);
}

.checkout-btn:active {
    transform: scale(0.97);
}

/* ========== TOAST ========== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: #1a1a2e;
    color: white;
    padding: 12px 24px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    z-index: 300;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ========== CONFETTI (for checkout) ========== */
.confetti-piece {
    position: fixed;
    width: 10px;
    height: 10px;
    z-index: 999;
    pointer-events: none;
    animation: confettiFall 1.5s ease-out forwards;
}

@keyframes confettiFall {
    0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* ========== BACK TO TOP ========== */
.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    z-index: 50;
    box-shadow: 0 4px 20px rgba(102,126,234,0.4);
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    transform: scale(1);
}

.back-to-top:active {
    transform: scale(0.9);
}

/* ========== RESPONSIVE ========== */
@media (min-width: 480px) {
    body {
        border-left: 1px solid #e0e0e0;
        border-right: 1px solid #e0e0e0;
        box-shadow: 0 0 30px rgba(0,0,0,0.05);
    }
}