/* ============================================================
   PC Hay El Qods - Storefront Stylesheet
   ============================================================ */
:root {
    --primary: #1a6fe8;
    --primary-dark: #1558c0;
    --primary-light: #60a5fa;
    --dark: #0b1120;
    --dark-2: #131e35;
    --dark-3: #1e3a5f;
    --bg: #f0f4fa;
    --white: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #dde4f0;
    --success: #16a34a;
    --warning: #d97706;
    --danger: #dc2626;
    --radius: 10px;
    --shadow-sm: 0 1px 3px rgba(15,23,42,.08);
    --shadow-md: 0 4px 12px rgba(26,111,232,.12);
    --shadow-lg: 0 10px 30px rgba(26,111,232,.18);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 15px; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ===== Top Bar ===== */
.top-bar { background: var(--dark); color: #94a3b8; font-size: 13px; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.top-bar a { color: #cbd5e1; transition: color .2s; }
.top-bar a:hover { color: var(--primary-light); }
.top-bar-left { display: flex; align-items: center; gap: 20px; }
.top-bar-right { display: flex; align-items: center; gap: 18px; }
.lang-switcher { display: flex; align-items: center; gap: 6px; }
.lang-switcher a { font-weight: 600; text-transform: uppercase; letter-spacing: .5px; font-size: 12px; }
.lang-switcher a.active { color: var(--primary-light); }
.lang-divider { color: #475569; }

/* ===== Header ===== */
.main-header { background: var(--white); box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 100; }
.main-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 78px; }
.logo { font-size: 26px; font-weight: 800; letter-spacing: -1px; color: var(--dark); display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo .logo-img { height: 44px; max-width: 180px; object-fit: contain; }
.logo span { color: var(--primary); }
.logo .logo-badge { background: var(--dark); color: #fff; font-size: 11px; padding: 3px 8px; border-radius: 6px; letter-spacing: .5px; font-weight: 600; }
.header-search { flex: 1; max-width: 560px; position: relative; }
.header-search form { display: flex; }
.header-search input { flex: 1; border: 2px solid var(--border); border-right: none; border-radius: 8px 0 0 8px; padding: 11px 16px; outline: none; transition: border-color .2s; }
.header-search input:focus { border-color: var(--primary); }
.header-search button { background: var(--primary); color: #fff; border: 2px solid var(--primary); border-radius: 0 8px 8px 0; padding: 0 22px; font-size: 16px; transition: background .2s; }
.header-search button:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.header-icon { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 12px; border-radius: 8px; transition: background .2s; position: relative; text-align: center; }
.header-icon:hover { background: var(--bg); }
.header-icon i { font-size: 22px; color: var(--dark); }
.header-icon .label { font-size: 11px; color: var(--text-muted); }
.header-icon .cart-count { position: absolute; top: 2px; right: 4px; background: var(--primary); color: #fff; font-size: 10px; font-weight: 700; min-width: 17px; height: 17px; border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

/* ===== Nav ===== */
.main-nav { background: var(--dark); }
.main-nav .container { display: flex; align-items: center; height: 50px; position: relative; }
.nav-menu { display: flex; align-items: center; height: 100%; }
.nav-menu > li { position: relative; height: 100%; }
.nav-menu > li > a { display: flex; align-items: center; height: 100%; padding: 0 18px; color: #e2e8f0; font-weight: 600; font-size: 14px; gap: 6px; transition: background .2s, color .2s; }
.nav-menu > li > a:hover, .nav-menu > li > a.active { background: var(--primary); color: #fff; }
.nav-menu .caret { font-size: 10px; opacity: .7; }
.dropdown { position: absolute; top: 100%; left: 0; background: var(--white); min-width: 240px; border-radius: 0 0 10px 10px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s; z-index: 90; }
.nav-menu > li:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 11px 20px; color: var(--text); font-size: 14px; border-left: 3px solid transparent; transition: all .2s; }
.dropdown a:hover { background: var(--bg); border-left-color: var(--primary); color: var(--primary); }

/* ===== Mobile Nav ===== */
.mobile-toggle { display: none; background: none; border: none; color: var(--text); padding: 4px; flex-shrink: 0; }
.mobile-nav { display: none; background: var(--dark); border-bottom: 2px solid var(--primary); }
.mobile-nav a { display: block; padding: 14px 20px; color: #e2e8f0; border-bottom: 1px solid var(--dark-3); font-weight: 600; transition: background .2s, color .2s; }
.mobile-nav a:hover { background: var(--primary); color: #fff; }
.mobile-nav.open { display: block; }
.mobile-search-bar { display: none; background: var(--white); border-bottom: 1px solid var(--border); padding: 10px 16px; }
.mobile-search-bar form { display: flex; }
.mobile-search-bar input { flex: 1; border: 2px solid var(--border); border-right: none; border-radius: 8px 0 0 8px; padding: 10px 14px; outline: none; font-size: 14px; transition: border-color .2s; }
.mobile-search-bar input:focus { border-color: var(--primary); }
.mobile-search-bar button { background: var(--primary); color: #fff; border: 2px solid var(--primary); border-radius: 0 8px 8px 0; padding: 0 18px; transition: background .2s; }

/* ===== Hero ===== */
.hero { background: linear-gradient(120deg,#0b1120 0%,#131e35 55%,#0d2a5e 100%); color: #fff; padding: 64px 0; position: relative; overflow: hidden; }
.hero::before, .hero::after { content: ''; position: absolute; border-radius: 50%; background: rgba(26,111,232,.18); }
.hero::before { width: 420px; height: 420px; top: -160px; right: -100px; }
.hero::after { width: 320px; height: 320px; bottom: -140px; left: -80px; background: rgba(26,111,232,.12); }
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero-slider .container { display: block; }
.hero-slides { position: relative; min-height: 440px; }
.hero-slide { display: none; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; animation: heroFade .7s ease; }
.hero-slide.active { display: grid; }
@keyframes heroFade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-slide-img { width: 100%; max-width: 480px; display: block; }
.hero-dots { display: flex; gap: 10px; justify-content: center; margin-top: 26px; }
.hero-dot { width: 12px; height: 12px; border-radius: 50%; border: none; background: rgba(255,255,255,.28); cursor: pointer; transition: all .25s; padding: 0; }
.hero-dot.active { background: var(--primary-light); width: 30px; border-radius: 8px; }
.hero-dot:hover { background: rgba(255,255,255,.6); }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(26,111,232,.2); border: 1px solid rgba(26,111,232,.4); color: #93c5fd; font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 50px; margin-bottom: 18px; text-transform: uppercase; letter-spacing: 1px; }
.hero h1 { font-size: 42px; line-height: 1.15; margin-bottom: 16px; font-weight: 800; letter-spacing: -1px; }
.hero h1 em { font-style: normal; color: var(--primary-light); }
.hero p { color: #cbd5e1; font-size: 16px; max-width: 480px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; border-radius: 8px; transition: all .2s; border: 2px solid transparent; }
.btn-lg { padding: 14px 32px; font-size: 15px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline-light { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.hero-stats { display: flex; gap: 40px; margin-top: 34px; }
.hero-stats .stat strong { font-size: 24px; display: block; }
.hero-stats .stat span { color: #94a3b8; font-size: 13px; }
.hero-image { display: flex; justify-content: center; }
.hero-image .hero-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 20px; padding: 22px; width: 380px; backdrop-filter: blur(6px); }
.hero-image .hero-card img { border-radius: 12px; margin-bottom: 16px; }
.hero-card .hc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.hero-card .hc-top strong { font-size: 18px; }
.hero-card .hc-price { color: var(--primary-light); font-size: 20px; font-weight: 700; }
.hero-card .hc-sub { color: #94a3b8; font-size: 13px; margin-bottom: 14px; }

/* ===== Features ===== */
.features { background: var(--white); border-bottom: 1px solid var(--border); }
.features .container { display: grid; grid-template-columns: repeat(4,1fr); }
.feature { display: flex; align-items: center; gap: 14px; padding: 20px; }
.feature i { font-size: 30px; color: var(--primary); }
.feature strong { font-size: 14px; display: block; }
.feature span { font-size: 12px; color: var(--text-muted); }

/* ===== Sections ===== */
.section { padding: 48px 0; }
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.section-head h2 { font-size: 26px; font-weight: 800; letter-spacing: -.5px; position: relative; padding-left: 16px; }
.section-head h2::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; background: var(--primary); border-radius: 3px; }
.section-link { color: var(--primary); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.section-link:hover { color: var(--primary-dark); }

/* ===== Categories ===== */
.categories-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.category-card { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: all .25s; position: relative; display: flex; flex-direction: column; }
.category-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.category-card .cat-image { position: relative; aspect-ratio: 1/1; overflow: hidden; }
.category-card .cat-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; display: block; }
.category-card:hover .cat-image img { transform: scale(1.07); }
.category-card .cat-count { position: absolute; top: 12px; left: 12px; background: rgba(15,23,42,.72); color: #fff; font-size: 11px; padding: 4px 10px; border-radius: 20px; backdrop-filter: blur(4px); }
.category-card .cat-arrow { position: absolute; right: 12px; bottom: 12px; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--primary); display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(8px); transition: all .25s; }
.category-card:hover .cat-arrow { opacity: 1; transform: translateY(0); }
.category-card .cat-arrow svg { transform: rotate(-90deg); }
.category-card .cat-body { padding: 16px 18px 18px; }
.category-card h3 { font-size: 16px; margin-bottom: 4px; }
.category-card .cat-body > span { font-size: 13px; color: var(--text-muted); }
.category-card .cat-body > span::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); margin-right: 7px; vertical-align: 1px; }

/* ===== Products ===== */
.product-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.product-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all .25s; position: relative; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.product-card .pc-image { position: relative; background: #f8fafc; overflow: hidden; }
.product-card .pc-image img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .35s; }
.product-card:hover .pc-image img { transform: scale(1.05); }
.pc-badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.badge { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 5px; color: #fff; text-transform: uppercase; letter-spacing: .4px; }
.badge.sale { background: var(--danger); }
.badge.featured { background: var(--dark); }
.badge.out { background: #64748b; }
.pc-wishlist { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.9); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: all .2s; z-index: 2; }
.pc-wishlist:hover { color: var(--danger); border-color: var(--danger); transform: scale(1.1); }
.pc-wishlist.active { color: var(--danger); }
.pc-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.pc-brand { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 4px; }
.pc-title { font-size: 14px; font-weight: 600; line-height: 1.35; margin-bottom: 8px; color: var(--text); min-height: 38px; }
.pc-title:hover { color: var(--primary); }
.pc-rating { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.pc-rating .stars { color: var(--warning); }
.pc-price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; margin-bottom: 12px; }
.pc-price .current { font-size: 18px; font-weight: 800; color: var(--dark); }
.pc-price .old { font-size: 13px; color: var(--text-muted); text-decoration: line-through; }
.pc-actions { display: flex; gap: 8px; }
.pc-actions .add-cart { flex: 1; background: var(--dark); color: #fff; border: none; padding: 10px; border-radius: 8px; font-weight: 600; font-size: 13px; transition: background .2s; }
.pc-actions .add-cart:hover { background: var(--primary); }
.pc-actions .buy-now { width: 44px; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 8px; display: flex; align-items: center; justify-content: center; transition: all .2s; }
.pc-actions .buy-now:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.out-of-stock-btn { flex: 1; background: var(--bg); color: var(--text-muted); border: none; padding: 10px; border-radius: 8px; font-weight: 600; font-size: 13px; cursor: not-allowed; }

/* ===== Brands ===== */
.brands { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.brands .container { display: flex; align-items: center; gap: 40px; padding: 22px 20px; overflow-x: auto; }
.brand-item { color: var(--text-muted); font-size: 22px; font-weight: 800; white-space: nowrap; opacity: .55; transition: all .2s; display: inline-flex; align-items: center; }
.brand-item:hover { opacity: 1; color: var(--primary); }
.brand-logo { height: 44px; max-width: 130px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: all .25s; }
.brand-item:hover .brand-logo { filter: grayscale(0); opacity: 1; }

/* ===== Newsletter ===== */
.newsletter { background: linear-gradient(135deg,var(--dark) 0%,var(--dark-2) 100%); padding: 56px 0; color: #fff; position: relative; overflow: hidden; }
.newsletter::after { content: ''; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: rgba(26,111,232,.2); top: -120px; right: -80px; }
.newsletter .container { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; position: relative; z-index: 2; }
.newsletter h2 { font-size: 28px; margin-bottom: 8px; }
.newsletter p { color: #94a3b8; }
.newsletter form { display: flex; }
.newsletter input { flex: 1; border: none; padding: 14px 18px; border-radius: 8px 0 0 8px; outline: none; background: #fff; }
.newsletter button { background: var(--primary); color: #fff; border: none; padding: 0 26px; border-radius: 0 8px 8px 0; font-weight: 600; transition: background .2s; }
.newsletter button:hover { background: var(--primary-dark); }

/* ===== Footer ===== */
.site-footer { background: var(--dark); color: #94a3b8; padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 30px; height: 2px; background: var(--primary); }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { transition: color .2s, padding-left .2s; }
.footer-col ul a:hover { color: var(--primary-light); padding-left: 4px; }
.footer-col p { margin-bottom: 14px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.footer-contact i { color: var(--primary); margin-top: 3px; }
.social-links { display: flex; gap: 10px; margin-top: 16px; }
.social-links a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--dark-3); display: flex; align-items: center; justify-content: center; transition: all .2s; color: #cbd5e1; }
.social-links a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.footer-bottom { border-top: 1px solid var(--dark-3); padding: 18px 0; display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.footer-payments { display: flex; gap: 8px; }
.pay-badge { background: var(--dark-2); border: 1px solid var(--dark-3); padding: 4px 10px; border-radius: 5px; font-size: 11px; color: #cbd5e1; }

/* ===== Flash ===== */
.flash { position: fixed; top: 24px; right: 24px; z-index: 1000; max-width: 360px; }
.flash-msg { padding: 14px 18px; border-radius: 8px; color: #fff; font-weight: 600; box-shadow: var(--shadow-lg); margin-bottom: 10px; animation: slideIn .3s ease; display: flex; align-items: center; gap: 10px; }
.flash-msg.success { background: var(--success); }
.flash-msg.error { background: var(--danger); }
.flash-msg.info { background: var(--dark-3); }
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ===== Page Hero ===== */
.page-hero { background: linear-gradient(120deg,var(--dark),var(--dark-2)); color: #fff; padding: 36px 0; }
.page-hero-bg { position: absolute; inset: 0; z-index: 1; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .28; filter: blur(1px) saturate(1.2); }
.page-hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(11,17,32,.88),rgba(11,17,32,.45)); }
.page-hero h1 { font-size: 28px; margin-bottom: 6px; }
.breadcrumb { display: flex; gap: 8px; font-size: 13px; color: #94a3b8; align-items: center; }
.breadcrumb a:hover { color: var(--primary-light); }
.breadcrumb .sep { color: #475569; }

/* ===== Shop ===== */
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 28px; padding: 34px 0; align-items: start; }
.shop-sidebar { position: sticky; top: 100px; }
.filter-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; }
.filter-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.filter-card .cat-tree a { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; font-size: 14px; color: var(--text); transition: color .2s; }
.filter-card .cat-tree a:hover, .filter-card .cat-tree a.active { color: var(--primary); }
.filter-card .cat-tree a span { color: var(--text-muted); font-size: 12px; }
.filter-card .cat-tree .child { padding-left: 14px; font-size: 13px; }
.filter-list { display: flex; flex-direction: column; gap: 6px; }
.filter-list label { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.filter-list input[type="checkbox"] { accent-color: var(--primary); width: 15px; height: 15px; }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 18px; }
.toolbar-count { font-size: 14px; color: var(--text-muted); }
.toolbar-count strong { color: var(--text); }
.toolbar-sort select { border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; outline: none; background: var(--white); }

/* ===== Pagination ===== */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 34px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--white); border: 1px solid var(--border); border-radius: 8px; font-weight: 600; font-size: 14px; transition: all .2s; }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .disabled { opacity: .5; }

/* ===== Product Detail ===== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; padding: 40px 0; }
.pd-gallery .main-image { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; }
.pd-gallery .main-image img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.pd-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.pd-thumbs img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; border: 2px solid var(--border); cursor: pointer; transition: border-color .2s; }
.pd-thumbs img.active { border-color: var(--primary); }
.pd-info .pd-brand { color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; font-size: 13px; margin-bottom: 6px; }
.pd-info h1 { font-size: 26px; line-height: 1.3; margin-bottom: 10px; }
.pd-rating { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 14px; color: var(--text-muted); }
.pd-rating .stars { color: var(--warning); font-size: 15px; }
.pd-price-row { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.pd-price-row .current { font-size: 30px; font-weight: 800; color: var(--dark); }
.pd-price-row .old { font-size: 18px; color: var(--text-muted); text-decoration: line-through; }
.pd-price-row .discount-tag { background: var(--danger); color: #fff; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 5px; }
.pd-short { color: var(--text-muted); margin-bottom: 20px; }
.pd-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px; }
.pd-meta .meta-item { background: var(--bg); border-radius: 8px; padding: 10px 14px; font-size: 13px; }
.pd-meta .meta-item span { color: var(--text-muted); }
.pd-meta .meta-item strong { display: block; margin-top: 2px; }
.pd-stock { font-size: 14px; font-weight: 600; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.pd-stock.in { color: var(--success); }
.pd-stock.out { color: var(--danger); }
.pd-actions { display: flex; gap: 12px; margin-bottom: 20px; align-items: center; flex-wrap: wrap; }
.qty-control { display: flex; align-items: center; border: 2px solid var(--border); border-radius: 8px; overflow: hidden; }
.qty-control button { width: 42px; height: 48px; border: none; background: var(--bg); font-size: 18px; color: var(--text); transition: background .2s; }
.qty-control button:hover { background: var(--primary); color: #fff; }
.qty-control input { width: 56px; height: 48px; text-align: center; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); font-weight: 700; outline: none; }
.pd-actions .btn { height: 48px; }
.btn-add-cart { background: var(--primary); color: #fff; padding: 0 28px; }
.btn-add-cart:hover { background: var(--primary-dark); }
.btn-buy { background: var(--dark); color: #fff; padding: 0 28px; }
.btn-buy:hover { background: var(--dark-3); }
.pd-wishlist { width: 48px; height: 48px; border-radius: 8px; border: 2px solid var(--border); background: var(--white); font-size: 18px; color: var(--text-muted); transition: all .2s; }
.pd-wishlist:hover, .pd-wishlist.active { border-color: var(--danger); color: var(--danger); }
.pd-trust { display: flex; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 18px; }
.pd-trust span { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-muted); }
.pd-trust i { color: var(--success); }
.pd-tabs { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 48px; }
.tabs-head { display: flex; border-bottom: 1px solid var(--border); overflow-x: auto; }
.tabs-head button { flex: 1; padding: 16px; background: none; border: none; font-weight: 700; font-size: 15px; color: var(--text-muted); border-bottom: 3px solid transparent; transition: all .2s; max-width: 220px; white-space: nowrap; min-width: 120px; }
.tabs-head button.active { color: var(--primary); border-bottom-color: var(--primary); }
.tabs-panel { padding: 28px; display: none; }
.tabs-panel.active { display: block; }
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr:nth-child(odd) { background: var(--bg); }
.specs-table td { padding: 12px 16px; font-size: 14px; }
.specs-table td:first-child { font-weight: 600; width: 40%; color: var(--dark); }
.review-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.review-item:last-child { border-bottom: none; }
.review-item .review-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.review-item .review-name { font-weight: 700; font-size: 14px; }
.review-item .review-date { font-size: 12px; color: var(--text-muted); }
.review-item .stars { color: var(--warning); font-size: 14px; }
.review-item p { font-size: 14px; color: var(--text); }

/* ===== Cart ===== */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; padding: 40px 0; align-items: start; }
.cart-empty { text-align: center; padding: 70px 0; }
.cart-empty .empty-icon { font-size: 70px; color: var(--border); margin-bottom: 18px; }
.cart-empty h2 { font-size: 24px; margin-bottom: 10px; }
.cart-empty p { color: var(--text-muted); margin-bottom: 26px; }
.cart-items { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.cart-item { display: grid; grid-template-columns: 90px 1fr auto; gap: 18px; padding: 18px 20px; border-bottom: 1px solid var(--border); align-items: center; }
.cart-item:last-child { border-bottom: none; }
.cart-item img { width: 90px; height: 90px; object-fit: cover; border-radius: 8px; }
.cart-item .ci-title { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.cart-item .ci-title a:hover { color: var(--primary); }
.cart-item .ci-brand { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.cart-item .ci-price { font-size: 13px; color: var(--text-muted); }
.cart-item .ci-price strong { color: var(--primary); font-size: 15px; }
.ci-actions { display: flex; align-items: center; gap: 12px; }
.ci-remove { background: none; border: none; color: var(--text-muted); font-size: 16px; transition: color .2s; }
.ci-remove:hover { color: var(--danger); }
.cart-summary { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; position: sticky; top: 100px; }
.cart-summary h3 { font-size: 18px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 14px; }
.summary-row.total { border-top: 1px solid var(--border); padding-top: 14px; margin-top: 6px; font-size: 18px; font-weight: 800; }
.summary-row .free { color: var(--success); font-weight: 600; }
.cart-summary .btn { width: 100%; padding: 14px; margin-top: 6px; }
.summary-note { font-size: 12px; color: var(--text-muted); margin-top: 12px; text-align: center; }

/* ===== Forms ===== */
.auth-wrap { max-width: 460px; margin: 50px auto; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; }
.auth-wrap h1 { font-size: 24px; margin-bottom: 6px; text-align: center; }
.auth-wrap .auth-sub { text-align: center; color: var(--text-muted); margin-bottom: 24px; font-size: 14px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; border: 2px solid var(--border); border-radius: 8px; padding: 12px 14px; outline: none; transition: border-color .2s; background: var(--white); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { min-height: 100px; resize: vertical; }
.form-group .error { color: var(--danger); font-size: 12px; margin-top: 5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.input-error { border-color: var(--danger) !important; }
.btn-block { width: 100%; padding: 14px; font-size: 15px; }
.auth-links { text-align: center; margin-top: 18px; font-size: 14px; }
.auth-links a { color: var(--primary); font-weight: 600; }
.auth-links a:hover { text-decoration: underline; }
.remember-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.remember-row label { display: flex; align-items: center; gap: 7px; cursor: pointer; }
.remember-row input { accent-color: var(--primary); }

/* ===== Checkout ===== */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 28px; padding: 40px 0; align-items: start; }
.checkout-form { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.checkout-form h2 { font-size: 20px; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.payment-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.payment-option { border: 2px solid var(--border); border-radius: 8px; padding: 16px; cursor: pointer; transition: all .2s; display: flex; align-items: center; gap: 10px; }
.payment-option:hover { border-color: var(--primary); }
.payment-option.selected { border-color: var(--primary); background: rgba(26,111,232,.04); }
.payment-option input { accent-color: var(--primary); }
.payment-option i { font-size: 22px; color: var(--primary); }
.order-summary-box { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; position: sticky; top: 100px; }
.order-summary-box h3 { font-size: 17px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.summary-product { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); align-items: center; }
.summary-product img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.summary-product .sp-title { font-size: 13px; font-weight: 600; }
.summary-product .sp-meta { font-size: 12px; color: var(--text-muted); }
.summary-product .sp-price { margin-left: auto; font-weight: 700; font-size: 13px; white-space: nowrap; }

/* ===== Success ===== */
.success-page { padding: 60px 0; text-align: center; }
.success-icon { width: 90px; height: 90px; border-radius: 50%; background: var(--success); color: #fff; font-size: 42px; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; }
.success-page h1 { font-size: 30px; margin-bottom: 10px; }
.success-page > p { color: var(--text-muted); margin-bottom: 34px; }
.success-box { max-width: 520px; margin: 0 auto; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; text-align: left; }
.success-box .sb-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.success-box .sb-row span:first-child { color: var(--text-muted); }
.success-box .sb-row strong { color: var(--primary); }
.success-box .sb-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }

/* ===== Account ===== */
.account-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; padding: 40px 0; align-items: start; }
.account-nav { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.account-nav a { display: flex; align-items: center; gap: 10px; padding: 14px 20px; font-size: 14px; font-weight: 500; border-bottom: 1px solid var(--border); transition: all .2s; }
.account-nav a:last-child { border-bottom: none; }
.account-nav a i { width: 20px; text-align: center; color: var(--text-muted); }
.account-nav a:hover { background: var(--bg); color: var(--primary); }
.account-nav a.active { background: var(--primary); color: #fff; }
.account-nav a.active i { color: #fff; }
.account-panel { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.account-panel h2 { font-size: 20px; margin-bottom: 20px; }
.welcome-banner { background: linear-gradient(120deg,var(--dark),var(--dark-2)); color: #fff; border-radius: var(--radius); padding: 26px; margin-bottom: 22px; }
.welcome-banner h3 { font-size: 22px; margin-bottom: 6px; }
.welcome-banner p { color: #94a3b8; font-size: 14px; }
.stat-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 26px; }
.stat-card { background: var(--bg); border-radius: var(--radius); padding: 18px; }
.stat-card .sc-label { font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.stat-card .sc-value { font-size: 26px; font-weight: 800; }
.stat-card .sc-value i { font-size: 20px; margin-right: 6px; color: var(--primary); }

/* ===== Tables ===== */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { padding: 13px 16px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--border); }
.table th { background: var(--bg); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: #fafbfc; }
.table img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; }

/* ===== Buttons ===== */
.btn-outline { border-color: var(--border); color: var(--text); background: var(--white); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-danger-soft { background: #fef2f2; color: var(--danger); border: 1px solid #fecaca; }
.btn-danger-soft:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #15803d; }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: var(--dark-3); }

/* ===== Status ===== */
.status-pill { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; text-transform: capitalize; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-confirmed { background: #dbeafe; color: #1e40af; }
.status-processing { background: #ede9fe; color: #6d28d9; }
.status-shipped { background: #cffafe; color: #155e75; }
.status-delivered { background: #dcfce7; color: #166534; }
.status-cancelled { background: #fee2e2; color: #991b1b; }

/* ===== Responsive 1024px ===== */
@media (max-width: 1024px) {
    .categories-grid { grid-template-columns: repeat(3,1fr); }
    .product-grid { grid-template-columns: repeat(3,1fr); }
    .features .container { grid-template-columns: repeat(2,1fr); }
    .footer-grid { grid-template-columns: repeat(2,1fr); }
    .hero-slide, .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero p { margin: 0 auto 28px; }
    .hero-actions, .hero-stats { justify-content: center; }
    .hero-slide .hero-content { order: 1; }
    .hero-slide .hero-image { order: 2; margin-top: 8px; }
    .hero-slides { min-height: 0; }
    .hero-slide-img { max-width: 100%; margin: 0 auto; }
    .hero-image { justify-content: center; }
    .newsletter .container { grid-template-columns: 1fr; }
    .shop-layout { grid-template-columns: 1fr; }
    .shop-sidebar { position: static; }
    .cart-layout, .checkout-layout, .account-layout { grid-template-columns: 1fr; }
    .product-detail { grid-template-columns: 1fr; }
    .cart-summary, .order-summary-box { position: static; }
}

/* ===== Responsive 768px ===== */
@media (max-width: 768px) {
    .container { padding: 0 16px; }
    .top-bar-left .top-item-mid { display: none; }
    .top-bar .container { height: 36px; font-size: 11px; }
    .top-bar-left, .top-bar-right { gap: 12px; }
    .main-header .container { height: 62px; gap: 12px; }
    .header-search { display: none; }
    .header-actions { gap: 4px; }
    .header-icon { padding: 6px 8px; }
    .header-icon .label { display: none; }
    .main-nav .container { display: none; }
    .mobile-toggle { display: flex; align-items: center; justify-content: center; }
    .mobile-search-bar { display: block; }
    .hero { padding: 36px 0; }
    .hero h1 { font-size: 26px; letter-spacing: -.5px; }
    .hero p { font-size: 14px; }
    .hero-slide-img { border-radius: 14px; max-width: 280px; }
    .hero-dots { margin-top: 16px; }
    .hero-stats { gap: 20px; flex-wrap: wrap; justify-content: center; }
    .hero-stats .stat strong { font-size: 20px; }
    .hero-actions { gap: 10px; }
    .btn-lg { padding: 12px 22px; font-size: 14px; }
    .hero-image .hero-card { width: 100%; max-width: 320px; }
    .features .container { grid-template-columns: 1fr 1fr; }
    .feature { padding: 14px 12px; gap: 10px; }
    .feature strong { font-size: 13px; }
    .feature span { font-size: 11px; }
    .categories-grid { grid-template-columns: repeat(2,1fr); gap: 12px; }
    .product-grid { grid-template-columns: repeat(2,1fr); gap: 12px; }
    .section { padding: 28px 0; }
    .section-head h2 { font-size: 20px; }
    .section-head { margin-bottom: 18px; }
    .pc-body { padding: 12px; }
    .pc-title { font-size: 13px; min-height: 34px; }
    .pc-price .current { font-size: 16px; }
    .pc-actions .add-cart { font-size: 12px; padding: 9px; }
    .form-row { grid-template-columns: 1fr; }
    .auth-wrap { margin: 24px 16px; padding: 24px 20px; }
    .cart-layout { padding: 20px 0; gap: 16px; }
    .cart-item { grid-template-columns: 70px 1fr; gap: 12px; padding: 14px 16px; }
    .cart-item img { width: 70px; height: 70px; }
    .cart-item .ci-actions { grid-column: 1 / -1; justify-content: flex-end; }
    .cart-summary { padding: 18px; }
    .checkout-layout { padding: 20px 0; gap: 16px; }
    .checkout-form { padding: 20px 16px; }
    .payment-options { grid-template-columns: 1fr; }
    .product-detail { gap: 24px; padding: 20px 0; }
    .pd-info h1 { font-size: 22px; }
    .pd-price-row .current { font-size: 26px; }
    .pd-thumbs img { width: 64px; height: 64px; }
    .tabs-panel { padding: 18px; }
    .specs-table td { padding: 10px 12px; font-size: 13px; }
    .account-layout { padding: 20px 0; gap: 16px; }
    .account-nav { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
    .account-nav a { white-space: nowrap; border-bottom: none; border-right: 1px solid var(--border); padding: 12px 16px; }
    .account-nav a:last-child { border-right: none; }
    .account-panel { padding: 20px 16px; }
    .stat-cards { gap: 10px; }
    .stat-card { padding: 14px 12px; }
    .stat-card .sc-value { font-size: 22px; }
    .newsletter { padding: 36px 0; }
    .newsletter h2 { font-size: 22px; }
    .newsletter form { flex-direction: column; gap: 10px; }
    .newsletter input { border-radius: 8px; padding: 14px 18px; }
    .newsletter button { border-radius: 8px; padding: 14px 26px; }
    .site-footer { padding: 36px 0 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; padding-bottom: 28px; }
    .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }
    .footer-payments { flex-wrap: wrap; justify-content: center; }
    .flash { top: 70px; right: 12px; left: 12px; max-width: none; }
    .page-hero { padding: 24px 0; }
    .page-hero h1 { font-size: 22px; }
}

/* ===== Responsive 480px ===== */
@media (max-width: 480px) {
    .container { padding: 0 12px; }
    .top-bar { display: none; }
    .main-header .container { height: 58px; gap: 8px; }
    .logo .logo-img { height: 36px; max-width: 140px; }
    .logo { font-size: 20px; }
    .hero { padding: 28px 0; }
    .hero h1 { font-size: 22px; }
    .hero-badge { font-size: 11px; padding: 5px 10px; }
    .hero-stats { gap: 16px; }
    .hero-stats .stat strong { font-size: 18px; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .product-grid { grid-template-columns: repeat(2,1fr); gap: 10px; }
    .pc-body { padding: 10px; }
    .pc-title { font-size: 12px; min-height: 30px; }
    .pc-price .current { font-size: 15px; }
    .pc-actions { gap: 6px; }
    .pc-actions .buy-now { width: 36px; }
    .categories-grid { grid-template-columns: repeat(2,1fr); gap: 10px; }
    .category-card .cat-body { padding: 12px 14px 14px; }
    .category-card h3 { font-size: 14px; }
    .features .container { grid-template-columns: 1fr; }
    .feature { padding: 14px 16px; border-bottom: 1px solid var(--border); }
    .feature:last-child { border-bottom: none; }
    .cart-item { grid-template-columns: 60px 1fr; gap: 10px; padding: 12px; }
    .cart-item img { width: 60px; height: 60px; }
    .stat-cards { grid-template-columns: 1fr; }
    .auth-wrap { margin: 16px 8px; padding: 20px 16px; }
    .auth-wrap h1 { font-size: 20px; }
    .success-box .sb-actions { flex-direction: column; }
    .success-box .sb-actions .btn { width: 100%; justify-content: center; }
    .checkout-form { padding: 16px 14px; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .tabs-head button { font-size: 13px; padding: 13px 10px; min-width: 100px; }
    .tabs-panel { padding: 14px; }
    .section { padding: 24px 0; }
    .section-head h2 { font-size: 18px; }
}

/* ===== WhatsApp Float ===== */
.whatsapp-float { position: fixed; right: 22px; bottom: 22px; z-index: 999; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(37,211,102,.45); transition: transform .2s; }
.whatsapp-float:hover { transform: scale(1.1); color: #fff; }
.whatsapp-float::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(37,211,102,.6); animation: wa-pulse 2s infinite; }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.55); opacity: 0; } }
@media (max-width: 480px) { .whatsapp-float { width: 50px; height: 50px; right: 14px; bottom: 14px; } }
