button, input, a, .qty-btn, .add-to-cart-btn { touch-action: manipulation; }
:root { --primary: #DE5718; --primary-dark: #c04a12; --primary-dm: #FF7B3D; --primary-dark-dm: #DE5718; --secondary-dark: #1f332c; --secondary-dm: #3A5C50; --secondary-dark-dm: #2B463C; --secondary: #2B463C; --bg-color: #F8F9FA; --text-color: #333; --card-bg: #FFF; }
.dark-mode { --primary: var(--primary-dm); --primary-dark: var(--primary-dark-dm); --secondary: var(--secondary-dm); --secondary-dark: var(--secondary-dark-dm); --bg-color: #1A1A1A; --text-color: #F1F1F1; --card-bg: #2C2C2C; }
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Cairo', sans-serif; }
body { overflow-anchor: none; background-color: var(--bg-color); color: var(--text-color); transition: 0.3s; padding-top: 85px; } 
a { text-decoration: none; color: inherit; }

.navbar { position: fixed; top: 0; left: 0; width: 100%; height: 70px; background: var(--card-bg); box-shadow: 0 2px 10px rgba(0,0,0,0.08); display: flex; justify-content: space-between; align-items: center; padding: 0 20px; z-index: 1000; transition: 0.3s; }
.logo { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.logo h2 { color: var(--primary); font-weight: 900; line-height: 1; margin: 0; font-size: 1.5rem; white-space: nowrap; word-spacing: 2px; }
.logo span { font-size: 0.75rem; color: var(--secondary); font-weight: 700; letter-spacing: 1.5px; margin: 0; line-height: 1; text-transform: uppercase; }

.nav-links { display: flex; gap: 15px; }
.nav-links a { font-weight: 600; padding: 6px 12px; border-radius: 5px; transition: 0.2s; font-size: 1rem; }
.nav-links a:hover, .nav-links a.active { background: var(--primary); color: #fff; }
.actions-container { display: flex; gap: 15px; align-items: center; }

.search-btn, .theme-toggle-btn { background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--text-color); transition: 0.2s; }
.search-btn:hover { color: var(--primary); }
.cart-btn { background: var(--primary); color: white; border: none; padding: 8px 15px; border-radius: 6px; cursor: pointer; font-weight: bold; font-family: 'Cairo'; font-size: 1rem; display: flex; align-items: center; gap: 6px; transition: 0.2s; }
.cart-btn:hover { background: var(--primary-dark); }
#cart-count { background: #fff; color: var(--primary); padding: 1px 7px; border-radius: 12px; font-size: 0.8rem; font-weight: 900; }

.mobile-top-nav { display: none; position: fixed; bottom: 15px; left: 50%; transform: translateX(-50%); width: 92%; max-width: 400px; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 8px 32px rgba(0,0,0,0.1); z-index: 990; justify-content: space-between; padding: 8px 12px; border-radius: 25px; border: 1px solid rgba(255,255,255,0.4); gap: 5px; }
.dark-mode .mobile-top-nav { background: rgba(44, 44, 44, 0.85); border: 1px solid rgba(255,255,255,0.1); }
.mobile-top-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; font-size: 0.75rem; font-weight: 700; color: var(--text-color); gap: 4px; padding: 8px 0; border-radius: 18px; transition: 0.3s; background: transparent; border: none; text-decoration: none; }
.mobile-top-nav a i { font-size: 1.2rem; color: var(--secondary); transition: 0.3s; margin-bottom: 2px; }
.mobile-top-nav a.active { background: color-mix(in srgb, var(--primary) 10%, transparent); }
.mobile-top-nav a.active i, .mobile-top-nav a.active { color: var(--primary); }
.dark-mode .mobile-top-nav a.active { background: color-mix(in srgb, var(--primary) 15%, transparent); color: var(--primary); }

.search-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg-color); z-index: 3000; visibility: hidden; opacity: 0; transition: 0.3s; display: flex; flex-direction: column; }
.search-modal.open { visibility: visible; opacity: 1; }
.search-header { display: flex; padding: 15px 20px; background: var(--card-bg); box-shadow: 0 2px 10px rgba(0,0,0,0.1); gap: 15px; align-items: center; }
#search-input { flex: 1; padding: 12px 20px; border: 2px solid var(--primary); border-radius: 25px; font-size: 1.1rem; font-weight: bold; font-family: 'Cairo'; outline: none; background: var(--bg-color); color: var(--text-color); }
.close-search { background: none; border: none; font-size: 2.2rem; color: var(--text-color); cursor: pointer; padding: 0 5px; transition: 0.2s; }
.close-search:hover { color: #E74C3C; }
.search-results { padding: 20px; overflow-y: auto; flex: 1; max-width: 1200px; margin: 0 auto; width: 100%; }

.glass-badge { position: absolute; bottom: 15px; right: 15px; background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(6px); color: #fff; padding: 8px 18px; border-radius: 20px; font-weight: 900; font-size: 1.2rem; border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 4px 10px rgba(0,0,0,0.3); z-index: 10; display: block; pointer-events: none; }

.split-banners { display: flex; gap: 15px; max-width: 1200px; margin: 0 auto 20px; padding: 0 15px; }
.half-banner { flex: 1; min-width: 0; border-radius: 10px; overflow: hidden; background: transparent; box-shadow: none; }
.half-banner img { width: 100%; height: auto; display: block; object-fit: cover; }
.static-banner { max-width: 1200px; margin: 0 auto 20px; padding: 0 15px; border-radius: 10px; overflow: hidden; background: transparent; box-shadow: none; }
.static-banner img { width: 100%; height: auto; display: block; object-fit: cover; border-radius: 10px; }
.top-main-banner { margin-top: 15px; margin-bottom: 0px; }

.category-filter-bar { max-width: 1200px; margin: 15px auto; padding: 12px 15px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; background: var(--card-bg); border-radius: 10px; box-shadow: 0 2px 6px rgba(0,0,0,0.04); }
.cat-filter-btn { padding: 8px 18px; border: 1px solid var(--primary); background: transparent; color: var(--primary); border-radius: 20px; font-weight: bold; cursor: pointer; white-space: nowrap; transition: 0.2s; font-size: 0.95rem; }
.cat-filter-btn:hover, .cat-filter-btn.active { background: var(--primary); color: #fff; }

.products-section { max-width: 1200px; margin: 0 auto; padding: 15px; }
.section-header { margin-bottom: 20px; border-bottom: 2px solid var(--primary); padding-bottom: 8px; display: inline-block; font-size: 1.3rem; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin-bottom: 40px; align-items: stretch; }
.product-card { background: var(--card-bg); border-radius: 12px; padding: 15px; text-align: center; box-shadow: 0 4px 10px rgba(0,0,0,0.05); position: relative; transition: transform 0.2s; border: 1px solid rgba(0,0,0,0.03); display: flex; flex-direction: column; justify-content: space-between; height: 100%; min-width: 0; overflow: visible; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 6px 15px rgba(0,0,0,0.08); }
.discount-badge { position: absolute; top: 10px; right: 10px; background: #E74C3C; color: white; padding: 4px 10px; border-radius: 6px; font-size: 0.8rem; font-weight: bold; z-index: 2; }
.product-img { width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: contain; margin-bottom: 15px; transition: transform 0.3s ease; border-radius: 8px; background: #fff; }
.product-card:hover .product-img { transform: scale(1.05); }
.product-title { font-weight: 800; margin-bottom: 10px; font-size: 1.1rem; line-height: 1.3; flex-grow: 1; display: flex; flex-direction: column; justify-content: flex-end; }
.price-container { margin-top: 10px; margin-bottom: 12px; }
.new-price { color: var(--primary); font-weight: 900; font-size: 1.25rem; }
.old-price { text-decoration: line-through; color: #999; font-size: 0.9rem; margin-right: 8px; }
.qty-controls { display: flex; justify-content: center; align-items: center; gap: 10px; margin-bottom: 15px; }
.qty-btn { width: 32px; height: 32px; border-radius: 12px; border: 1px solid #ddd; background: #f9f9f9; cursor: pointer; font-weight: bold; font-size: 1rem; transition: 0.2s; }
.qty-btn:hover { background: #eee; }
.qty-input { width: 40px; text-align: center; border: 1px solid #ddd; border-radius: 6px; padding: 4px; font-size: 1rem; font-weight: bold; }
.add-to-cart-btn { background: var(--primary); color: white; border: none; width: 100%; padding: 10px; border-radius: 6px; cursor: pointer; font-weight: 700; font-size: 1rem; transition: 0.2s; }
.add-to-cart-btn:hover { background: var(--primary-dark); }

/* Custom Select Dropdown */
.custom-select-wrapper { position: relative; width: 100%; margin-top: auto; margin-bottom: 12px; font-family: 'Cairo', sans-serif; font-weight: 700; font-size: 0.95rem; user-select: none; }
.custom-select-display { display: flex; justify-content: center; align-items: center; padding: 0 10px; height: 45px; border-radius: 8px; border: 1px solid #ddd; background: #f0f0f0; color: #333; cursor: pointer; transition: 0.2s; font-weight: 800; }
.custom-select-display span { width: 100%; text-align: center; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.custom-select-display:hover { border-color: var(--primary); }
.custom-select-options { display: none; position: absolute; top: 100%; left: 0; right: 0; margin-top: 5px; border-radius: 12px; background: #fff; border: 1px solid #ddd; box-shadow: 0 8px 25px rgba(0,0,0,0.15); z-index: 1000; max-height: 220px; overflow-y: auto; text-align: center; }
.custom-select-options.show { display: block; animation: fadeInCustom 0.2s; }
@keyframes fadeInCustom { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
.custom-option { padding: 12px 15px; cursor: pointer; transition: 0.2s; border-bottom: 1px solid #f0f0f0; }
.custom-option:last-child { border-bottom: none; }
.custom-option:hover { background: #f5f5f5; color: var(--primary); }
body.dark-mode .custom-select-display { background: #444; border-color: #555; color: #fff; }
body.dark-mode .custom-select-options { background: #2c2c2c; border-color: #555; }
body.dark-mode .custom-option { border-bottom-color: #444; color: #fff; }
body.dark-mode .custom-option:hover { background: #333; color: var(--primary); }

.catalog-container, .about-container { max-width: 1000px; margin: 30px auto; padding: 0 15px; text-align: center; }
.about-container { display: flex; flex-direction: column; align-items: center; }
.catalog-page { margin-bottom: 30px; background: var(--card-bg); padding: 15px; border-radius: 10px; box-shadow: 0 3px 12px rgba(0,0,0,0.05); }
.catalog-page img { width: 100%; aspect-ratio: 800/1130; object-fit: contain; border-radius: 8px; display: block; }
.about-main-img { width: 160px; height: 160px; object-fit: contain; margin-bottom: 15px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); background: var(--card-bg); padding: 10px; }
.social-glass-icons { display: flex; justify-content: center; gap: 15px; margin-top: 25px; margin-bottom: 30px; }
.glass-icon { display: flex; justify-content: center; align-items: center; width: 50px; height: 50px; border-radius: 12px; background: color-mix(in srgb, var(--primary) 10%, transparent); border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent); color: var(--primary); font-size: 1.5rem; transition: 0.3s; }
.glass-icon:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }

/* ABOUT GRID - 3 COLUMNS */
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; width: 100%; margin-top: 25px; align-items: stretch; }
.qr-card { background: var(--card-bg); padding: 25px 20px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.06); display: flex; flex-direction: column; align-items: center; border-top: 5px solid var(--primary); height: 100%; }
.qr-card h3 { font-size: 1.2rem; margin-bottom: 15px; color: var(--text-color); display: flex; align-items: center; gap: 8px; }
.qr-card img { width: 180px; height: 180px; border: 2px solid #eee; border-radius: 10px; padding: 10px; margin-bottom: 20px; background: #fff; object-fit: contain; }
.qr-card .btn-primary, .qr-card .btn-secondary { margin-top: auto; }

.btn-primary, .btn-secondary { color: white; padding: 12px 20px; border-radius: 6px; font-weight: bold; font-size: 1.1rem; display: inline-block; width: 100%; text-align: center; transition: 0.2s; border: none; cursor: pointer; }
.btn-primary { background: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--secondary); }
.btn-secondary:hover { background: var(--secondary-dark); }

.cart-sidebar { position: fixed; top: 0; left: -350px; width: 350px; height: 100%; background: var(--card-bg); box-shadow: 2px 0 15px rgba(0,0,0,0.15); z-index: 2000; transition: 0.3s; display: flex; flex-direction: column; }
.cart-sidebar.open { left: 0; }
.cart-header { padding: 15px 20px; background: var(--primary); color: white; display: flex; justify-content: space-between; align-items: center; }
.close-cart { background: none; border: none; color: white; font-size: 1.6rem; cursor: pointer; }
.cart-items { flex: 1; overflow-y: auto; padding: 15px 20px; }
.cart-item { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eee; padding-bottom: 12px; margin-bottom: 12px; font-size: 1rem; }
.cart-footer { padding: 20px; border-top: 1px solid #eee; background: var(--card-bg); }
.checkout-btn { display: block; text-align: center; background: var(--primary); color: white; padding: 12px; border-radius: 6px; font-weight: bold; margin-bottom: 10px; transition: 0.2s; font-size: 1.1rem; }
.checkout-btn:hover { background: var(--primary-dark); }
.clear-cart-btn { width: 100%; background: var(--secondary); color: white; border: none; padding: 10px; border-radius: 6px; cursor: pointer; font-weight: bold; transition: 0.2s; font-size: 1rem; }
.toast-msg { position: fixed; bottom: 80px; right: 20px; background: #2ECC71; color: white; padding: 10px 20px; border-radius: 6px; font-weight: bold; font-size: 1rem; visibility: hidden; opacity: 0; pointer-events: none; transition: 0.3s; z-index: 9999; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.toast-msg.show { visibility: visible; opacity: 1; bottom: 100px; }

.quick-links-wrapper { max-width: 1200px; margin: 0 auto 20px; padding: 0 15px; cursor: grab; }
.quick-links-wrapper:active { cursor: grabbing; }
.quick-links-scroll { display: flex; overflow-x: auto; gap: 20px; padding: 15px 5px; scrollbar-width: none; }
.quick-links-scroll::-webkit-scrollbar { display: none; }
.quick-links-scroll.is-dragging { scroll-behavior: auto; pointer-events: none; }
.quick-link-item { flex: 0 0 auto; width: 140px; display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--text-color); cursor: pointer; }
.quick-link-square { width: 140px; height: 140px; border-radius: 24px; background: transparent; box-shadow: 0 4px 12px rgba(0,0,0,0.08); display: flex; justify-content: center; align-items: center; margin-bottom: 12px; transition: transform 0.2s; }
.quick-link-square:hover { transform: scale(1.05); }
.quick-link-square img { width: 100%; height: 100%; aspect-ratio: 1/1; object-fit: contain; padding: 10px; background: transparent; }
.quick-link-text { font-size: 1.05rem; font-weight: 800; text-align: center; white-space: nowrap; }

/* Image constraints */
.split-banners .half-banner img { aspect-ratio: 550/500; object-fit: cover; }

@media (max-width: 900px) {
    .about-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-links { display: none; } 
    .navbar { padding: 0 10px; height: 65px; }
    .logo h2 { font-size: 1.3rem; }
    .actions-container { gap: 10px; }
    body { padding-top: 80px; padding-bottom: 120px !important; } 
    .mobile-top-nav { display: flex; }
    .top-main-banner { margin-top: 5px; }
    
    /* Quick Links Mobile Fix: Bigger size & Proper Gap */
    .quick-links-scroll { gap: 15px !important; padding: 10px 15px !important; }
    .quick-link-item { width: 90px !important; }
    .quick-link-square { width: 90px !important; height: 90px !important; border-radius: 20px !important; box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important; background: #fff !important; }
    .quick-link-text { font-size: 0.9rem !important; }

    .about-grid { grid-template-columns: 1fr; gap: 15px; }

    .split-banners { gap: 15px !important; margin-bottom: 25px !important; padding: 0 15px !important; }
    .static-banner { margin-bottom: 25px !important; padding: 0 15px !important; }
    .products-section { padding: 10px; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 20px; }
    .product-card { padding: 10px; border-radius: 10px; }
    .product-title { font-size: 0.95rem; margin-bottom: 6px; }
    .new-price { font-size: 1.1rem; }
    .old-price { font-size: 0.8rem; }
    .qty-btn { width: 26px; height: 26px; font-size: 0.9rem; }
    .qty-input { width: 34px; font-size: 0.9rem; }
    .add-to-cart-btn { font-size: 0.95rem; padding: 8px; }
    .cart-sidebar { width: 300px; left: -300px; }
    .swipe-slider-container { margin-top: 15px !important; margin-bottom: 25px !important; }
    .slide-item img, .static-banner img { aspect-ratio: 2.3/1; border-radius: 18px; box-shadow: 0 4px 15px rgba(0,0,0,0.06); }
    .half-banner img { aspect-ratio: 1.1/1; border-radius: 18px; box-shadow: 0 4px 15px rgba(0,0,0,0.06); }
}

.page-view { animation: fadePage 0.3s ease-in-out; }
@keyframes fadePage { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ===== إضافات النسخة المدمجة ===== */
#global-loading { text-align: center; padding: 100px 20px; font-size: 1.5rem; width: 100%; color: var(--primary); font-weight: bold; }
#global-loading i { font-size: 3rem; margin-bottom: 20px; display: block; }
a.logo { text-decoration: none; }
.announce-bar { background: var(--secondary); color: #fff; text-align: center; padding: 8px 15px; font-weight: 700; font-size: 0.95rem; margin: -15px 0 10px; }
.banner-link { display: block; }
.static-banner, .split-banners { content-visibility: auto; }

/* السلايدر: يقف دائماً على سلايد كامل */
.swipe-slider-container { max-width: 1200px; margin: 15px auto; padding: 0 15px; }
.slider-stage { position: relative; }
.swipe-slider { display: flex; gap: 12px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 14px; overscroll-behavior-x: contain; cursor: grab; -webkit-overflow-scrolling: touch; }
.swipe-slider::-webkit-scrollbar { display: none; }
.swipe-slider.dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.slide-item { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; position: relative; border-radius: 14px; overflow: hidden; cursor: pointer; }
.slide-item img { width: 100%; aspect-ratio: 1080/470; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.45); background: rgba(0,0,0,0.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; cursor: pointer; z-index: 5; opacity: 0; transition: 0.2s; }
.arrow-right { right: 12px; } .arrow-left { left: 12px; }
.slider-stage:hover .slider-arrow { opacity: 1; }
.slider-arrow:hover { background: var(--primary); }
.slider-dots { display: flex; justify-content: center; gap: 7px; margin-top: 10px; }
.slider-dots button { width: 8px; height: 8px; border-radius: 8px; border: none; background: #bbb; cursor: pointer; padding: 0; transition: 0.3s; }
.slider-dots button.active { width: 24px; background: var(--primary); }
.quick-links-wrapper { cursor: grab; }
.quick-links-scroll.is-dragging { pointer-events: none; }
@media (hover: none) { .slider-arrow { display: none !important; } }

/* الشكل الزجاجي */
.navbar, .mobile-top-nav { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.navbar { background: rgba(255,255,255,0.82); }
.dark-mode .navbar { background: rgba(44,44,44,0.82); }
.glass-badge { background: rgba(255,255,255,0.18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.45); text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.social-glass-icons { gap: 16px; }
.glass-icon { width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(135deg, rgba(255,255,255,0.55), rgba(255,255,255,0.1)); border: 1px solid rgba(255,255,255,0.6); box-shadow: 0 8px 24px color-mix(in srgb, var(--primary) 18%, transparent), inset 0 1px 0 rgba(255,255,255,0.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.dark-mode .glass-icon { background: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.04)); border-color: rgba(255,255,255,0.2); box-shadow: 0 8px 24px rgba(0,0,0,0.35); }
.info-glass { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin: 18px 0 5px; padding: 14px 22px; border-radius: 16px; background: color-mix(in srgb, var(--primary) 8%, transparent); border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent); backdrop-filter: blur(10px); font-weight: 700; }
.info-glass i { color: var(--primary); margin-left: 6px; }
#about-desc-1 { font-size: 1.3rem; margin-top: 10px; font-weight: 800; }
#about-desc-2 { font-size: 1.1rem; color: var(--primary); font-weight: 900; margin-top: 5px; line-height: 1.8; }

/* فلتر الأقسام والترتيب */
.category-filter-bar { position: sticky; top: 70px; z-index: 50; }
a.cat-filter-btn { display: inline-block; }
.sort-bar { max-width: 1200px; margin: 0 auto; padding: 0 15px; display: flex; align-items: center; gap: 8px; font-weight: 700; }
.sort-bar select { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--primary); background: var(--card-bg); color: var(--text-color); font-weight: 700; }
.search-count { font-weight: 700; margin-bottom: 12px; color: #888; }
.tag-badge { background: var(--secondary); }
.product-img { background: #fff; }

/* السلة */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 1999; opacity: 0; visibility: hidden; transition: 0.3s; }
.overlay.show { opacity: 1; visibility: visible; }
.cart-items { min-height: 0; }
.cart-empty { text-align: center; color: #999; padding: 30px 0; }
.cart-item { gap: 10px; }
.ci-info { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.ci-info small { color: #888; }
.ci-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.ci-qty { display: flex; align-items: center; gap: 8px; }
.ci-qty button { width: 26px; height: 26px; border-radius: 8px; border: 1px solid #ddd; background: var(--bg-color); color: var(--text-color); cursor: pointer; font-weight: bold; }
.ci-rm { color: #E74C3C; border: none; background: none; cursor: pointer; }
.cart-footer { max-height: 62vh; overflow-y: auto; }
.cart-summary > div { display: flex; justify-content: space-between; padding: 3px 0; }
.cart-summary .grand { font-size: 1.2rem; font-weight: 900; border-top: 1px dashed #ccc; margin-top: 6px; padding-top: 8px; color: var(--primary); }
.cart-form { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.cart-form input { padding: 9px 12px; border: 1px solid #ddd; border-radius: 8px; background: var(--bg-color); color: var(--text-color); font-size: 0.95rem; outline: none; }
.cart-form input:focus { border-color: var(--primary); }
.cart-warn { font-size: 0.9rem; font-weight: 700; color: var(--primary); text-align: center; margin-bottom: 8px; }
.cart-warn:empty { display: none; }
.cart-warn.block { color: #E74C3C; }
.checkout-btn { width: 100%; border: none; cursor: pointer; font-family: 'Cairo'; }
.cart-sidebar { z-index: 2000; }

/* تكبير صور المجلة */
.catalog-page img { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 5000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: 0.25s; cursor: zoom-out; }
.lightbox.show { opacity: 1; visibility: visible; }
.lightbox img { max-width: 96%; max-height: 96%; object-fit: contain; }
.toast-msg { z-index: 6000; }
.mobile-top-nav { z-index: 990; }
@media (max-width: 768px) { .category-filter-bar { top: 65px; } .about-main-img { width: 130px; height: 130px; } }

.swipe-slider.anim { scroll-snap-type: none; }
.slide-item { backface-visibility: hidden; }
.social-glass-icons { flex-wrap: wrap; margin-top: 18px; margin-bottom: 8px; }
.about-grid { margin-top: 25px; }
@media (max-width: 768px) { .glass-icon { width: 48px; height: 48px; font-size: 1.3rem; } }

/* الشريط العلوي: خط شعار مناسب ومسافات مريحة */
.logo h2 { font-family: 'Lalezar', 'Cairo', sans-serif; font-weight: 400; font-size: 1.9rem; letter-spacing: 0.5px; }
.logo span { letter-spacing: 3px; font-size: 0.7rem; margin-top: 2px; }
.actions-container { gap: 14px; }
.search-btn, .theme-toggle-btn { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; background: color-mix(in srgb, var(--primary) 10%, transparent); border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent); color: var(--primary); }
.search-btn:hover, .theme-toggle-btn:hover { background: var(--primary); color: #fff; }
.cart-btn { margin-right: 6px; }
@media (max-width: 768px) { .logo h2 { font-size: 1.6rem; } .actions-container { gap: 10px; } .search-btn, .theme-toggle-btn { width: 38px; height: 38px; } .cart-btn { margin-right: 2px; padding: 8px 12px; } }

.sentinel { height: 1px; }
.update-bar { position: fixed; bottom: 96px; left: 50%; transform: translateX(-50%); background: var(--secondary); color: #fff; padding: 10px 20px; border-radius: 25px; font-weight: 700; z-index: 7000; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,0.3); max-width: 92%; text-align: center; }

/* كارت المنتج على الموبايل: الصورة تفضل مربعة والباقي مضغوط ونضيف (الكمبيوتر ما يتأثرش) */
.card-actions { display: contents; }
@media (max-width: 768px) {
    .products-grid { gap: 10px; }
    .product-card { padding: 8px; }
    .product-img { aspect-ratio: 1 / 1; margin-bottom: 6px; }
    .product-title { flex-grow: 0; font-size: 0.9rem; line-height: 1.25; margin-bottom: 4px; justify-content: flex-start; min-height: 0; }
    .custom-select-wrapper { margin-top: 2px; margin-bottom: 4px; font-size: 0.82rem; }
    .custom-select-display { height: 32px; border-radius: 8px; }
    .price-container { margin: auto 0 6px; padding-top: 2px; font-size: 0.8rem; }
    .new-price { font-size: 1.05rem; }
    .qty-controls { margin-bottom: 6px; gap: 8px; }
    .qty-btn { width: 28px; height: 28px; border-radius: 10px; font-size: 0.9rem; }
    .qty-input { width: 36px; padding: 2px; font-size: 0.95rem; }
    .add-to-cart-btn { padding: 7px; font-size: 0.88rem; }
    .discount-badge { top: 6px; right: 6px; padding: 2px 8px; font-size: 0.72rem; }
}

/* تعديلات: بادج السلايدر أصغر، المربعات الصغيرة أكبر بإطار رفيع جداً */
.glass-badge { bottom: 10px; right: 10px; padding: 4px 12px; font-size: 0.9rem; font-weight: 800; background: rgba(0,0,0,0.35); }
.quick-link-item { width: 160px; }
.quick-link-square { width: 160px; height: 160px; border-radius: 22px; box-shadow: none; border: 1px solid rgba(128,128,128,0.18); }
.quick-link-square img { padding: 4px; border-radius: 20px; }
.quick-link-text { font-size: 1.1rem; }
@media (max-width: 768px) {
    .glass-badge { bottom: 6px; right: 6px; padding: 2px 9px; font-size: 0.68rem; font-weight: 700; border-radius: 12px; }
    .quick-link-item { width: 106px !important; }
    .quick-link-square { width: 106px !important; height: 106px !important; border-radius: 18px !important; box-shadow: none !important; border: 1px solid rgba(128,128,128,0.18) !important; }
    .quick-link-square img { padding: 3px !important; }
    .quick-link-text { font-size: 0.95rem !important; }
    .quick-links-scroll { gap: 14px !important; }
}
.product-card.sold-out { opacity: 0.6; }
.product-card.sold-out .product-img { filter: grayscale(1); }
.add-to-cart-btn:disabled { background: #999; cursor: not-allowed; }
.site-footer { text-align: center; padding: 22px 15px 110px; color: #888; font-size: 0.9rem; line-height: 1.8; }
.wa-float { position: fixed; bottom: 24px; right: 20px; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; align-items: center; justify-content: center; font-size: 1.9rem; z-index: 900; box-shadow: 0 6px 18px rgba(0,0,0,0.3); text-decoration: none; }
@media (max-width: 768px) { .wa-float { bottom: 100px; right: 14px; width: 50px; height: 50px; font-size: 1.7rem; } }
