/* YEMEN SHEIN - Premium CSS Variables & Base */
:root {
  --primary: #000000;
  --primary-dark: #222222;
  --secondary: #F5F5F7;
  --accent: #FF0055;
  --dark: #1D1D1F;
  --gray: #86868B;
  --gray-light: #F5F5F7;
  --white: #FFFFFF;
  --success: #34C759;
  --warning: #FF9F0A;
  --danger: #FF3B30;
  --whatsapp: #25D366;
  --gradient-primary: linear-gradient(135deg, #000000 0%, #333333 100%);
  --gradient-brand: linear-gradient(135deg, #FF0055 0%, #C50040 100%);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 30px rgba(0,0,0,0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 50%;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: 'Tajawal', sans-serif; background: #FAFAFA; color: var(--dark); line-height: 1.6; direction: rtl; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; font-family: inherit; }
ul { list-style: none; }

.app-container { max-width: 430px; margin: 0 auto; background: var(--white); min-height: 100vh; position: relative; box-shadow: var(--shadow-lg); }

/* Header */
.app-header { background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); padding: 12px 16px; position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow-sm); }
.header-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.logo { display: flex; align-items: center; gap: 8px; }
.logo-icon { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }
.logo-text { color: var(--primary); font-size: 16px; font-weight: 800; letter-spacing: -0.5px; }
.header-actions { display: flex; gap: 8px; }
.header-btn { width: 36px; height: 36px; background: var(--gray-light); border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; color: var(--dark); position: relative; transition: 0.2s; }
.header-btn:hover { background: #E5E5E7; }
.cart-badge { position: absolute; top: -2px; right: -2px; background: var(--accent); color: var(--white); font-size: 10px; font-weight: 700; width: 16px; height: 16px; border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; }
.search-bar { display: flex; background: var(--gray-light); border-radius: var(--radius-lg); padding: 6px 12px; gap: 8px; align-items: center; }
.search-bar input { flex: 1; border: none; background: transparent; font-size: 14px; padding: 6px; outline: none; color: var(--dark); }
.search-btn { background: var(--primary); color: var(--white); width: 32px; height: 32px; border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; }

/* Bottom Nav */
.bottom-nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 430px; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); display: flex; justify-content: space-around; padding: 10px 0; border-top: 1px solid rgba(0,0,0,0.05); z-index: 100; }
.nav-item { display: flex; flex-direction: column; align-items: center; padding: 6px 16px; color: var(--gray); transition: 0.2s; border-radius: var(--radius-md); gap: 4px; }
.nav-item.active { color: var(--primary); }
.nav-item:hover { color: var(--primary); background: var(--gray-light); }
.nav-icon { font-size: 20px; }
.nav-label { font-size: 10px; font-weight: 600; }

.main-content { padding-bottom: 80px; }

/* Categories */
.categories-section { padding: 16px 0 16px 16px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; padding-right: 16px; }
.section-title { font-size: 18px; font-weight: 800; color: var(--primary); }
.section-link { color: var(--gray); font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 4px; }
.categories-scroll { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; padding-right: 16px; }
.categories-scroll::-webkit-scrollbar { display: none; }
.category-card { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px; min-width: 72px; transition: 0.3s; cursor: pointer; }
.category-card:hover .category-icon { transform: scale(1.05); border-color: var(--primary); }
.category-icon { width: 56px; height: 56px; background: var(--gray-light); border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--primary); border: 2px solid transparent; transition: 0.2s; }
.category-name { font-size: 12px; font-weight: 600; text-align: center; color: var(--dark); }

/* Banner */
.banner-section { padding: 0 16px; margin-bottom: 24px; }
.banner-slide { background: var(--black); background-image: url('https://images.unsplash.com/photo-1483985988355-763728e1935b?w=800&q=80'); background-size: cover; background-position: center; padding: 24px; border-radius: var(--radius-lg); color: var(--white); min-height: 180px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.banner-slide::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); }
.banner-content { position: relative; z-index: 1; }
.banner-tag { display: inline-block; background: var(--white); color: var(--primary); padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; margin-bottom: 8px; }
.banner-title { font-size: 24px; font-weight: 800; margin-bottom: 4px; line-height: 1.2; }
.banner-subtitle { font-size: 14px; opacity: 0.9; }

/* Products Grid */
.products-section { padding: 0 16px; }
.products-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.product-card { background: var(--white); border-radius: var(--radius-md); overflow: hidden; position: relative; transition: 0.3s; border: 1px solid rgba(0,0,0,0.05); }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.product-badge { position: absolute; top: 8px; right: 8px; background: var(--accent); color: var(--white); padding: 4px 8px; border-radius: 4px; font-size: 10px; font-weight: 700; z-index: 2; }
.product-badge.new { background: var(--primary); }
.product-wishlist { position: absolute; top: 8px; left: 8px; width: 28px; height: 28px; background: rgba(255,255,255,0.9); border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; color: var(--primary); z-index: 2; transition: 0.2s; }
.product-wishlist:hover, .product-wishlist.active { background: var(--accent); color: var(--white); }
.product-image { width: 100%; height: 180px; object-fit: cover; background: var(--gray-light); }
.product-info { padding: 12px; }
.product-category { font-size: 10px; color: var(--gray); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.product-name { font-size: 13px; font-weight: 600; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 2.6em; line-height: 1.3; color: var(--dark); }
.product-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 12px; }
.current-price { font-size: 15px; font-weight: 700; color: var(--primary); }
.old-price { font-size: 11px; color: var(--gray); text-decoration: line-through; }
.product-stock { display: none; }
.add-to-cart-btn { width: 100%; padding: 10px; background: var(--primary); color: var(--white); border-radius: var(--radius-sm); font-weight: 600; font-size: 12px; margin-top: 0; display: flex; align-items: center; justify-content: center; gap: 6px; transition: 0.2s; }
.add-to-cart-btn:hover { background: var(--primary-dark); }
