/* style.css - Enhanced Black Boutique Theme */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;600;700;900&display=swap');

:root {
    --bg-main: #07090e;
    --bg-card: rgba(18, 24, 38, 0.7);
    --bg-card-hover: rgba(28, 36, 56, 0.9);
    --accent-red: #d60036;
    --accent-red-glow: rgba(214, 0, 54, 0.5);
    --accent-green: #25d366;
    --text-primary: #ffffff;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(10, 14, 23, 0.85);
    --radius-lg: 20px;
    --radius-md: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', -apple-system, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Inputs & Form Elements */
.admin-input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: #fff;
    margin-bottom: 12px;
    outline: none;
    transition: var(--transition);
}
.admin-input:focus {
    border-color: var(--accent-red);
    box-shadow: 0 0 10px var(--accent-red-glow);
}

.admin-btn {
    background: linear-gradient(135deg, var(--accent-red), #900024);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}
.admin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px var(--accent-red-glow);
}

.admin-btn-secondary {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}
.admin-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: var(--accent-red);
    color: #fff;
}

.size-box-grid {
    display: flex;
    flex-wrap: wrap;
    margin-top: 8px;
}

/* باکس نتایج جستجوی زنده */
#live-search-results {
    display: none;
    position: absolute;
    top: 44px;
    right: 0;
    left: 0;
    background: #0e131f;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    z-index: 1500;
    max-height: 400px;
    overflow-y: auto;
}
#live-search-results.show { display: block; }
.search-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    text-decoration: none;
    color: #fff;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: rgba(214, 0, 54, 0.1); }
.search-result-item img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; }
.search-result-item .sr-title { font-size: 13px; flex: 1; }
.search-result-item .sr-price { font-size: 12px; color: var(--accent-red); font-weight: 700; }

@media (max-width: 768px) {
    .search-box-wrap { display: none !important; }
}

/* چک‌باکس افزودن به مقایسه روی کارت محصول */
.compare-checkbox-label {
    position: absolute;
    top: 66px;
    left: 22px;
    z-index: 3;
    background: rgba(0,0,0,0.65);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}
.compare-checkbox-label input { margin: 0; cursor: pointer; }

/* نوار شناور مقایسه محصولات */
#compare-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0e131f;
    border-top: 1px solid var(--border-color);
    padding: 12px 5%;
    display: none;
    align-items: center;
    justify-content: space-between;
    z-index: 1500;
    box-shadow: 0 -5px 25px rgba(0,0,0,0.6);
}
#compare-bar.show { display: flex; }

/* Header */
#main-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 80px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    z-index: 1000;
}

.logo-container { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-img { width: 48px; height: 48px; object-fit: cover; border-radius: 50%; border: 2px solid var(--accent-red); box-shadow: 0 0 15px var(--accent-red-glow); }
.logo-title-wrap h1 { font-size: 20px; font-weight: 900; color: #fff; line-height: 1.2; }
.logo-title-wrap span { font-size: 10px; letter-spacing: 2px; color: var(--accent-red); font-weight: 700; }

.header-actions { display: flex; align-items: center; gap: 15px; }

.cart-icon-btn { 
    background: linear-gradient(135deg, var(--accent-red), #900024); 
    color: #fff; 
    border: none; 
    padding: 10px 18px; 
    border-radius: var(--radius-md); 
    font-weight: 700; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    box-shadow: 0 4px 20px var(--accent-red-glow); 
    transition: var(--transition); 
}
.cart-icon-btn:hover { transform: translateY(-2px); scale: 1.03; }
.cart-badge { background: #fff; color: var(--accent-red); padding: 2px 7px; border-radius: 20px; font-size: 12px; }

/* Menu Dropdown */
.menu-dropdown { position: relative; cursor: pointer; }
.dots { font-size: 20px; padding: 6px 14px; background: rgba(255, 255, 255, 0.05); border-radius: var(--radius-md); border: 1px solid var(--border-color); }
.dropdown-content { display: none; position: absolute; left: 0; top: 50px; background: #0e131f; border: 1px solid var(--border-color); border-radius: var(--radius-md); min-width: 190px; box-shadow: 0 10px 30px rgba(0,0,0,0.8); overflow: hidden; z-index: 100; }
.dropdown-content.show { display: block; }
.dropdown-content a { color: var(--text-primary); padding: 12px 16px; text-decoration: none; display: block; font-size: 13px; transition: var(--transition); }
.dropdown-content a:hover { background: rgba(214, 0, 54, 0.15); color: var(--accent-red); }

/* Hero Banner */
.hero-banner {
    position: relative;
    padding: 130px 5% 70px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    background: radial-gradient(circle at top, rgba(214, 0, 54, 0.18) 0%, transparent 60%);
}
.hero-content { max-width: 850px; margin: 0 auto; }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; background: rgba(214, 0, 54, 0.12); border: 1px solid var(--accent-red); color: var(--accent-red); padding: 6px 18px; border-radius: 30px; font-size: 13px; font-weight: 700; margin-bottom: 20px; }
.pulse-dot { width: 8px; height: 8px; background: var(--accent-red); border-radius: 50%; box-shadow: 0 0 10px var(--accent-red); animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { opacity: 0.4; } 50% { opacity: 1; } 100% { opacity: 0.4; } }

.hero-content h2 { font-size: 40px; font-weight: 900; margin-bottom: 15px; line-height: 1.3; }
.highlight-text { background: linear-gradient(135deg, #fff, var(--accent-red)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-content p { color: var(--text-muted); font-size: 16px; margin-bottom: 35px; }

/* Sliders & Cards */
.category-section { padding: 40px 5%; }
.category-title { font-size: 22px; font-weight: 800; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.category-title::before { content: ''; width: 4px; height: 22px; background: var(--accent-red); border-radius: 4px; }

.slider-wrapper { position: relative; }
.products-container { display: flex; gap: 20px; overflow-x: auto; scroll-behavior: smooth; padding: 10px 5px 25px; }
.products-container::-webkit-scrollbar { display: none; }

.product-card { 
    min-width: 260px; 
    max-width: 260px; 
    background: var(--bg-card); 
    border: 1px solid var(--border-color); 
    border-radius: var(--radius-lg); 
    padding: 15px; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    transition: var(--transition); 
    backdrop-filter: blur(10px);
    position: relative;
}
.product-card:hover { 
    background: var(--bg-card-hover); 
    transform: translateY(-8px); 
    border-color: rgba(214, 0, 54, 0.5); 
    box-shadow: 0 15px 35px rgba(0,0,0,0.7), 0 0 15px rgba(214, 0, 54, 0.2); 
}

/* دکمه دایره‌ای علاقه‌مندی‌ها (طبق درخواست شما) */
.wishlist-btn {
    position: absolute;
    top: 22px;
    left: 22px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: var(--transition);
}
.wishlist-btn:hover {
    transform: scale(1.1);
    background: #ffffff;
}
.wishlist-btn.active {
    background: #d60036;
    border-color: #d60036;
    color: #fff;
    box-shadow: 0 0 12px rgba(214, 0, 54, 0.6);
}

.card-img-link { width: 100%; height: 240px; border-radius: var(--radius-md); overflow: hidden; cursor: pointer; margin-bottom: 12px; }
.card-img-link img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.product-card:hover .card-img-link img { transform: scale(1.08); }

/* افکت اسکلتون (Shimmer) هنگام لود شدن تصویر محصول */
.card-shimmer-img {
    background: linear-gradient(110deg, rgba(255,255,255,0.03) 8%, rgba(255,255,255,0.08) 18%, rgba(255,255,255,0.03) 33%);
    background-size: 200% 100%;
    animation: shimmerLoad 1.5s ease-in-out infinite;
}
.card-shimmer-img.loaded {
    animation: none;
    background: none;
}
@keyframes shimmerLoad {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.quick-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.product-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.price { color: var(--accent-red); font-weight: 800; font-size: 16px; margin-bottom: 12px; }

.view-detail-btn { 
    display: block; text-align: center; background: rgba(255, 255, 255, 0.04); 
    border: 1px solid var(--border-color); color: var(--text-primary); 
    padding: 10px; border-radius: var(--radius-md); text-decoration: none; 
    font-size: 13px; font-weight: 600; transition: var(--transition); 
}
.view-detail-btn:hover { background: var(--accent-red); border-color: var(--accent-red); box-shadow: 0 4px 15px var(--accent-red-glow); }

.scroll-btn { position: absolute; top: 42%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; background: var(--glass-bg); border: 1px solid var(--border-color); color: #fff; font-size: 18px; cursor: pointer; z-index: 10; backdrop-filter: blur(10px); }
.scroll-right { right: -15px; }
.scroll-left { left: -15px; }

/* Cart Drawer */
.cart-drawer-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(6px);
    z-index: 2000; opacity: 0; visibility: hidden; transition: var(--transition);
}
.cart-drawer-overlay.active { opacity: 1; visibility: visible; }

.cart-drawer {
    position: fixed; top: 0; left: -420px; width: 100%; max-width: 400px; height: 100%;
    background: #0d121d; border-right: 1px solid var(--border-color);
    z-index: 2001; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex; flex-direction: column; justify-content: space-between;
    box-shadow: 20px 0 50px rgba(0,0,0,0.8);
}
.cart-drawer.active { left: 0; }

.cart-drawer-header {
    padding: 20px; border-bottom: 1px solid var(--border-color);
    display: flex; justify-content: space-between; align-items: center;
}
.cart-drawer-header h3 { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.close-drawer { font-size: 24px; cursor: pointer; color: var(--text-muted); transition: var(--transition); }
.close-drawer:hover { color: var(--accent-red); }

.drawer-tabs { display: flex; border-bottom: 1px solid var(--border-color); background: rgba(0,0,0,0.2); }
.drawer-tab { flex: 1; padding: 12px; text-align: center; font-size: 13px; font-weight: 700; cursor: pointer; color: var(--text-muted); transition: var(--transition); border-bottom: 2px solid transparent; }
.drawer-tab.active { color: #fff; border-bottom-color: var(--accent-red); background: rgba(214,0,54,0.08); }

.cart-drawer-body { padding: 20px; flex: 1; overflow-y: auto; }

.cart-item-card {
    display: flex; gap: 12px; align-items: center;
    background: rgba(255,255,255,0.02); border: 1px solid var(--border-color);
    padding: 12px; border-radius: var(--radius-md); margin-bottom: 12px;
}
.cart-item-img { width: 60px; height: 60px; object-item: cover; border-radius: 8px; }
.cart-item-info { flex: 1; }
.cart-item-title { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.cart-item-details { font-size: 12px; color: var(--text-muted); }
.cart-item-price { color: var(--accent-red); font-weight: 800; font-size: 13px; margin-top: 4px; }
.remove-cart-btn { background: rgba(214, 0, 54, 0.1); border: none; color: var(--accent-red); width: 30px; height: 30px; border-radius: 8px; cursor: pointer; font-size: 16px; transition: var(--transition); }
.remove-cart-btn:hover { background: var(--accent-red); color: #fff; }

.cart-drawer-footer { padding: 20px; border-top: 1px solid var(--border-color); background: rgba(0,0,0,0.2); }
.cart-total-row { display: flex; justify-content: space-between; font-size: 16px; font-weight: 800; margin-bottom: 15px; }
.whatsapp-checkout-btn {
    width: 100%; background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff; border: none; padding: 14px; border-radius: var(--radius-md);
    font-weight: 800; font-size: 15px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.3); transition: var(--transition);
}
.whatsapp-checkout-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5); }

/* Product Detail View */
.product-detail-wrap { padding: 120px 5% 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 1200px; margin: 0 auto; }
@media (max-width: 768px) { .product-detail-wrap { grid-template-columns: 1fr; padding-top: 100px; } }
.main-preview-img { width: 100%; height: 480px; object-fit: cover; border-radius: var(--radius-lg); border: 1px solid var(--border-color); }
.thumbnail-list { display: flex; gap: 10px; margin-top: 15px; overflow-x: auto; }
.thumb-img { width: 75px; height: 75px; object-fit: cover; border-radius: var(--radius-md); cursor: pointer; border: 2px solid transparent; opacity: 0.5; transition: var(--transition); }
.thumb-img.active, .thumb-img:hover { border-color: var(--accent-red); opacity: 1; }
.selection-select { width: 100%; padding: 12px; background: var(--bg-card); border: 1px solid var(--border-color); color: #fff; border-radius: var(--radius-md); margin-top: 8px; outline: none; font-size: 14px; }
.desc-box { background: var(--bg-card); padding: 18px; border-radius: var(--radius-md); border: 1px solid var(--border-color); margin-top: 20px; font-size: 14px; color: var(--text-muted); }

/* WhatsApp Float Button */
.whatsapp-float { position: fixed; bottom: 25px; right: 25px; background: var(--accent-green); color: #fff; width: 58px; height: 58px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 28px; box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4); text-decoration: none; z-index: 999; transition: var(--transition); }
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6); }

/* Footer */
footer { background: #04060a; border-top: 1px solid var(--border-color); padding: 60px 5% 25px; margin-top: 60px; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 35px; margin-bottom: 40px; }
.footer-col h3 { font-size: 17px; margin-bottom: 18px; color: var(--accent-red); font-weight: 800; }
.footer-col p, .footer-col ul { color: var(--text-muted); font-size: 14px; list-style: none; }
.footer-col ul li { margin-bottom: 12px; display: flex; align-items: flex-start; gap: 8px; }
.footer-col a { color: var(--text-muted); text-decoration: none; transition: var(--transition); }
.footer-col a:hover { color: var(--accent-red); }
.social-links-footer { display: flex; gap: 12px; margin-top: 15px; }
.social-btn { background: rgba(255,255,255,0.05); border: 1px solid var(--border-color); color: #fff; padding: 8px 16px; border-radius: var(--radius-md); text-decoration: none; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; transition: var(--transition); }
.social-btn:hover { background: var(--accent-red); border-color: var(--accent-red); transform: translateY(-2px); }
.footer-bottom { text-align: center; border-top: 1px solid var(--border-color); padding-top: 25px; font-size: 13px; color: var(--text-muted); }