@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;900&display=swap');

:root {
	--primary-color: #8e1b1d; 
	--success-color: #2e7d32;
	--dark-color: #1a1a1a;
	--bg-color: #f8f9fa;
	--card-bg: #ffffff;
	--text-color: #555555;
	--heading-color: #222222;
	--border-color: #f0f0f0;
	--img-bg: #f8f8f8;
	--btn-bg: #f9f9f9;
	--gray-text: #999999;
}

body.dark-mode {
	--bg-color: #121212;
	--card-bg: #1e1e1e;
	--text-color: #bbbbbb;
	--heading-color: #ffffff;
	--border-color: #333333;
	--img-bg: #2a2a2a;
	--btn-bg: #2a2a2a;
	--gray-text: #aaaaaa;

	background-color: var(--bg-color);
	color: var(--text-color);
}


body.dark-mode .main-header,
body.dark-mode .main-footer,
body.dark-mode .footer-page-container {
	background-color: var(--card-bg);
	color: var(--text-color);
	border-color: var(--border-color);
}

body.dark-mode .search-input,
body.dark-mode .lang-select {
	background-color: var(--img-bg);
	color: var(--heading-color);
	border: 1px solid var(--border-color);
}

body.dark-mode a {
	color: var(--heading-color);
}

body.dark-mode .action-btn {
	color: var(--text-color);
}

body.dark-mode .footer-heading,
body.dark-mode .footer-brand-title {
	color: var(--heading-color);
}

body.dark-mode .store-return-btn {
	background-color: var(--btn-bg);
	color: var(--text-color);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body { 
	font-family: 'Cairo', sans-serif; 
	background: var(--bg-color); 
	color: var(--text-color); 
	transition: background 0.3s, color 0.3s;
}

.container { max-width: 1240px; margin: 0 auto; padding: 0 15px; }

input, select, textarea { font-size: 16px !important; font-family: inherit; }

.main-header { background: var(--card-bg); border-bottom: 1px solid var(--border-color); transition: 0.3s; }
.main-header { position: sticky; top: 0; z-index: 9999; box-shadow: 0 2px 10px rgba(0,0,0,0.1); } 
.header-main-wrapper { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; padding: 10px 0; }
.header-right-group { display: flex; align-items: center; gap: 12px; flex: 1; }
.logo-box { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.store-return-btn { display: flex; align-items: center; gap: 6px; color: var(--primary-color); background: rgba(142,27,29,0.05); padding: 8px 15px; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 14px; border: 1px solid rgba(142,27,29,0.1); transition: 0.3s; white-space: nowrap; }
.store-return-btn:hover { background: var(--primary-color); color: #fff; }
.admin-btn { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }
.admin-btn:hover { opacity: 0.9; }

.search-container { flex: 0 1 45%; display: flex; border: 1px solid var(--border-color); border-radius: 50px; overflow: hidden; background: var(--bg-color); }
.search-form { display: flex; width: 100%; }
.search-input { width: 100%; padding: 10px 20px; border: none; outline: none; background: transparent; color: var(--text-color); }
.search-btn { background: var(--primary-color); color: #fff; border: none; padding: 0 25px; cursor: pointer; transition: 0.3s; }
.search-btn:hover { opacity: 0.9; }

.user-actions { display: flex; align-items: center; gap: 15px; }
.action-btn { text-decoration: none; color: var(--text-color); background: none; border: none; cursor: pointer; font-size: 14px; display: flex; align-items: center; gap: 5px; font-weight: 600; transition: 0.3s; }
.action-btn:hover { color: var(--primary-color); }
.lang-selector-wrapper { display: flex; align-items: center; gap: 5px; color: var(--text-color); }
.lang-select { background: transparent; border: none; color: inherit; font-weight: bold; cursor: pointer; outline: none; padding: 5px; border-radius: 5px; }
.lang-select option { color: #333; background: #fff; }

.nav-user-avatar { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; border: 1px solid var(--primary-color); }
.cart-count { background: var(--primary-color); color: #fff; padding: 2px 8px; border-radius: 50px; font-size: 12px; font-weight: bold; }

.full-red-bar { background-color: var(--primary-color); width: 100%; padding: 10px 0; box-shadow: 0 4px 10px rgba(0,0,0,0.1); margin-bottom: 20px; }
.nav-scroll-container { display: flex; flex-wrap: nowrap; gap: 20px; overflow-x: auto; padding: 5px 15px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.nav-scroll-container::-webkit-scrollbar { display: none; }
.nav-button { text-decoration: none; display: flex; flex-direction: column; align-items: center; min-width: 75px; flex-shrink: 0; gap: 8px; transition: transform 0.2s ease; }
.icon-circle { width: 50px; height: 50px; background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; transition: 0.3s; }
.nav-button span { color: #fff; font-size: 11px; font-weight: 600; white-space: nowrap; }
.nav-button:hover .icon-circle { background: #fff; color: var(--primary-color); transform: scale(1.1); }

.home-section { padding: 30px 0; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-inline-start: 4px solid var(--primary-color); padding-inline-start: 15px; }
.section-header h3 { color: var(--heading-color); }
.view-more-link { color: var(--primary-color); text-decoration: none; font-weight: 700; font-size: 14px; }

.products-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }

.product-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; transition: 0.3s; display: flex; flex-direction: column; height: 100%; cursor: pointer; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.08); }

.img-holder { position: relative; height: 280px; background: var(--img-bg); overflow: hidden; }
.product-main-img { transition: opacity 0.6s ease-in-out !important; position: relative; z-index: 2; width: 100%; height: 100%; object-fit: cover; }
.product-bg-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; opacity: 0; transition: opacity 0.6s ease-in-out; }

.wishlist-btn { position: absolute; top: 10px; inset-inline-start: 10px; background: var(--card-bg); border: none; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; color: var(--gray-text); z-index: 5; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.wishlist-btn.active { color: #e91e63; }

.unified-discount-box { position: absolute; top: 0; inset-inline-end: 0; background: var(--primary-color); color: #fff; padding: 5px 12px; font-size: 11px; border-end-start-radius: 10px; display: flex; align-items: center; gap: 5px; z-index: 5; }

.info { padding: 15px; text-align: center; flex-grow: 1; display: flex; flex-direction: column; }
.title-wrapper { position: relative; width: 100%; margin-bottom: 25px; min-height: 45px; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.title-wrapper h4 { font-size: 0.95rem; font-weight: 600; color: var(--heading-color); }

.low-stock-badge-fixed { position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%); background: #fff3e0; color: #ffb74d; font-size: 10px; padding: 2px 12px; border-radius: 20px; font-weight: 700; white-space: nowrap; border: 1px solid #ffe0b2; }

.price { margin: auto 0 15px; }
.price .current { color: var(--primary-color); font-weight: 800; font-size: 1.15rem; }
.price .old { text-decoration: line-through; color: var(--gray-text); font-size: 0.85rem; margin-inline-end: 8px; }

.card-footer { margin-top: auto; }
.add-to-cart { width: 100%; background: var(--primary-color); color: #fff; border: none; padding: 10px; border-radius: 5px; cursor: pointer; font-family: 'Cairo'; font-weight: 600; }

.grayscale-image { filter: grayscale(100%); opacity: 0.6; }
.sold-out-center-badge { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(30, 30, 30, 0.85); color: #fff; padding: 10px 25px; border-radius: 30px; font-weight: 800; font-size: 15px; z-index: 10; border: 1px solid rgba(255,255,255,0.2); backdrop-filter: blur(4px); box-shadow: 0 4px 15px rgba(0,0,0,0.3); white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.is-sold-out .info { opacity: 0.6; transition: 0.3s; }
.is-sold-out:hover .info { opacity: 0.9; }
button.add-to-cart.btn-disabled { background: #9e9e9e !important; color: #f1f1f1 !important; cursor: not-allowed; box-shadow: none !important; border: none; }
.out-of-stock-overlay { display: none !important; }

.main-footer { background: #1a1a1a; color: #fff; padding: 40px 0 20px; margin-top: 50px; text-align: start; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; }
.footer-brand-title { color: var(--primary-color); font-size: 22px; margin-bottom: 20px; font-weight: 900; text-transform: uppercase; }
.footer-desc { color: #bbb; line-height: 1.8; font-size: 14px; }
.social-links { display: flex; gap: 15px; margin-top: 20px; }
.social-icon { color: #fff; font-size: 20px; transition: 0.3s; }
.social-icon:hover { color: var(--primary-color); transform: translateY(-3px); }

.footer-heading { color: #fff; font-size: 18px; margin-bottom: 20px; border-inline-start: 3px solid var(--primary-color); padding-inline-start: 10px; }
.footer-links-list { list-style: none; padding: 0; margin: 0; }
.footer-links-list li { margin-bottom: 12px; }
.footer-links-list a { color: #bbb; text-decoration: none; font-size: 14px; transition: 0.3s; display: inline-block; }
.footer-links-list a:hover { color: var(--primary-color); transform: translateY(-3px); }

.contact-item { color: #bbb; font-size: 14px; margin-bottom: 10px; display: flex; align-items: flex-start; gap: 10px; }
.contact-icon { color: var(--primary-color); margin-top: 4px; }
.footer-bottom { text-align: center; margin-top: 40px; border-top: 1px solid #333; padding-top: 20px; margin-bottom: 20px; }
.footer-bottom p { color: #777; font-size: 13px; margin: 0; }

.whatsapp-float { position: fixed; bottom: 30px; width: 60px; height: 60px; background-color: #25d366; color: #FFF !important; border-radius: 50px; text-align: center; font-size: 35px; box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2); z-index: 9999; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: all 0.3s ease-in-out; animation: pulse-wa 2s infinite; }
[dir="rtl"] .whatsapp-float { left: 30px; }
[dir="ltr"] .whatsapp-float { right: 30px; }
.whatsapp-float:hover { background-color: #128C7E; color: #fff; transform: scale(1.1); }
@keyframes pulse-wa { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

.page-wrapper { max-width: 800px; margin: 40px auto; padding: 0 15px; }
.about-card { background: var(--card-bg); border-radius: 25px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.05); transition: 0.3s; border: 1px solid var(--border-color); }
.about-header-strip { background: var(--primary-color); color: #fff; padding: 40px 20px; text-align: center; }
.about-header-strip i { font-size: 45px; margin-bottom: 10px; opacity: 0.9; }
.about-header-strip h1 { margin: 0; font-size: 26px; }
.about-content-body { padding: 30px; }
[dir="rtl"] .about-content-body { text-align: right; }
[dir="ltr"] .about-content-body { text-align: left; }
.about-info-box { margin-bottom: 25px; padding-bottom: 15px; border-bottom: 1px solid var(--border-color); transition: 0.3s; }
.about-info-box:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.about-info-box h3 { color: var(--primary-color); font-size: 19px; margin-bottom: 12px; }
.about-info-box p { color: var(--text-color); line-height: 1.8; font-size: 16px; margin: 0; transition: 0.3s; }

.site-closed-msg { text-align:center; padding:100px; font-family:Cairo; background:var(--bg-color); color:var(--text-color); height:100vh; }
.site-closed-icon { font-size:50px; color:var(--primary-color); }

.page-header { padding: 30px 0; text-align: center; } 
.page-header h2 { color: var(--primary-color); margin: 0; font-size: 26px; display: flex; align-items: center; justify-content: center; gap: 10px; } 
.empty-products-msg { text-align: center; padding: 60px 20px; }
.empty-products-icon { font-size: 60px; color: var(--border-color); margin-bottom: 20px; }
.empty-products-title { color: var(--gray-text); margin-bottom: 15px; }
.btn-back-home { display: inline-block; background: var(--primary-color); color: #fff; padding: 10px 25px; border-radius: 8px; text-decoration: none; transition: 0.3s; font-weight: 700; }
.btn-back-home:hover { background: #6d1416; }

.product-container { max-width: 1250px; margin: 40px auto; padding: 0 15px; }
.product-layout { display: flex; gap: 40px; align-items: flex-start; }

.gallery-section { width: 55%; display: flex; gap: 15px; position: sticky; top: 100px; }
.thumbs-vertical { display: flex; flex-direction: column; gap: 12px; width: 85px; max-height: 550px; overflow-y: auto; scrollbar-width: none; }
.thumbs-vertical::-webkit-scrollbar { display: none; }
.thumbs-vertical img { width: 85px; height: 100px; object-fit: cover; border-radius: 12px; cursor: pointer; border: 2px solid transparent; opacity: 0.6; transition: 0.3s; background: var(--card-bg); }
.thumbs-vertical img.active, .thumbs-vertical img:hover { border-color: var(--primary-color); opacity: 1; transform: scale(1.05); }

.main-image-wrapper { flex: 1; background: var(--card-bg); border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.03); display: flex; align-items: center; justify-content: center; padding: 10px; position: relative; }
.main-image-wrapper img { width: 100%; max-height: 550px; object-fit: contain; cursor: zoom-in; transition: transform 0.5s; }

.product-details-discount-badge { position: absolute; top: 15px; background: var(--primary-color); color: #fff; padding: 5px 15px; border-radius: 20px; font-weight: 800; font-size: 15px; z-index: 10; box-shadow: 0 4px 10px rgba(0,0,0,0.2); display: inline-flex; width: max-content; align-items: center; gap: 6px; }
[dir="rtl"] .product-details-discount-badge { left: 15px; }
[dir="ltr"] .product-details-discount-badge { right: 15px; }
.discount-divider { opacity: 0.7; margin: 0 2px; }
.countdown-ltr { direction: ltr; display: inline-block; }

.details-section { width: 45%; background: var(--card-bg); padding: 40px; border-radius: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.04); }
.p-category { display: inline-block; color: var(--gray-text); font-size: 14px; font-weight: 700; text-transform: uppercase; margin-bottom: 10px; border-bottom: 2px solid var(--primary-color); padding-bottom: 5px;}
.p-title { font-size: 32px; font-weight: 900; color: var(--heading-color); margin: 0 0 15px 0; line-height: 1.3;}

.top-rating { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; font-size: 14px; font-weight: 700; color: var(--gray-text); cursor: pointer;}
.top-rating i { color: #ffc107; font-size: 16px;}

.p-price-box { display: flex; align-items: baseline; gap: 15px; margin-bottom: 30px; padding-bottom: 25px; border-bottom: 1px solid var(--border-color); }
.p-price-box span { font-size: 32px; font-weight: 900; color: var(--primary-color); }
.p-price-box .old { font-size: 20px; color: var(--gray-text); text-decoration: line-through; font-weight: 600; }

.attr-group { margin-bottom: 25px; }
.attr-label { font-size: 15px; font-weight: 800; color: var(--heading-color); margin-bottom: 12px; display: block; }
.attr-swatches { display: flex; gap: 12px; flex-wrap: wrap; }
.swatch { padding: 10px 25px; border: 2px solid var(--border-color); border-radius: 30px; cursor: pointer; font-weight: 700; font-size: 14px; transition: all 0.3s; background: var(--card-bg); color: var(--text-color); }
.swatch:hover { border-color: var(--primary-color); color: var(--primary-color); }
.swatch.active { background: var(--primary-color); color: #fff; border-color: var(--primary-color); box-shadow: 0 6px 15px rgba(142,27,29,0.25); transform: translateY(-2px); }
.swatch.disabled { opacity: 0.4; cursor: not-allowed; background: var(--img-bg); border-color: var(--border-color); text-decoration: line-through; }

.stock-info { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 10px; font-weight: 700; font-size: 14px; margin-bottom: 30px; }
.in-stock { background: rgba(46, 125, 50, 0.1); color: #2e7d32; }
.out-of-stock { background: rgba(198, 40, 40, 0.1); color: #c62828; }
.warning-stock { background: rgba(245, 124, 0, 0.1); color: #e65100; }

.p-actions { display: flex; gap: 15px; align-items: stretch; }
.qty-ctrl { display: flex; background: var(--img-bg); border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; height: 55px; align-items: center; }
.qty-ctrl button { width: 45px; height: 100%; border: none; background: transparent; cursor: pointer; font-size: 20px; font-weight: bold; color: var(--text-color); transition: 0.2s;}
.qty-ctrl input { width: 40px; text-align: center; border: none; background: transparent; font-weight: 800; font-size: 18px; outline: none; color: var(--text-color); }

.btn-cart { flex: 1; background: var(--heading-color); color: var(--bg-color); border: none; border-radius: 12px; font-weight: 800; font-size: 17px; cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center; gap: 10px; height: 55px; }
.btn-cart:hover:not(:disabled) { background: var(--primary-color); box-shadow: 0 8px 20px rgba(142,27,29,0.3); transform: translateY(-2px); color: #fff;}
.btn-cart:disabled { background: var(--border-color); cursor: not-allowed; color: var(--bg-color); }

.btn-share { width: 55px; background: var(--card-bg); color: var(--text-color); border: 1px solid var(--border-color); border-radius: 12px; font-size: 20px; cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center; }
.btn-share:hover { background: var(--img-bg); color: var(--primary-color); border-color: var(--primary-color); }

.modern-tabs { margin-top: 60px; background: var(--card-bg); border-radius: 20px; padding: 40px; box-shadow: 0 10px 30px rgba(0,0,0,0.02); }
.tabs-header { display: flex; gap: 30px; border-bottom: 2px solid var(--border-color); margin-bottom: 30px; flex-wrap: wrap; }
.tab-btn { padding: 0 0 15px 0; background: none; border: none; font-size: 18px; font-weight: 800; color: var(--gray-text); cursor: pointer; position: relative; font-family: 'Cairo'; transition: 0.3s;}
.tab-btn.active { color: var(--primary-color); }
.tab-btn.active::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 100%; height: 3px; background: var(--primary-color); border-radius: 3px 3px 0 0; }
.tab-panel { display: none; color: var(--text-color); font-size: 16px; line-height: 1.9; }
.tab-panel.active { display: block; animation: slideUp 0.4s ease; }
@keyframes slideUp { from {opacity: 0; transform: translateY(15px);} to {opacity: 1; transform: translateY(0);} }

.info-table { width: 100%; border-collapse: collapse; border: 1px solid var(--border-color); border-radius: 10px; overflow: hidden;}
.info-table th, .info-table td { padding: 15px 20px; border-bottom: 1px solid var(--border-color); }
[dir="rtl"] .info-table th, [dir="rtl"] .info-table td { text-align: right; }
[dir="ltr"] .info-table th, [dir="ltr"] .info-table td { text-align: left; }
.info-table th { background: var(--img-bg); width: 25%; font-weight: 800; color: var(--heading-color); }
[dir="rtl"] .info-table th { border-left: 1px solid var(--border-color); }
[dir="ltr"] .info-table th { border-right: 1px solid var(--border-color); }
.info-table td { font-weight: 600; color: var(--text-color); }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: none; }

.review-card { background: var(--img-bg); border: 1px solid var(--border-color); padding: 20px; border-radius: 12px; margin-bottom: 15px; transition: 0.3s;}
.review-card:hover { border-color: var(--primary-color); box-shadow: 0 5px 15px rgba(0,0,0,0.05);}
.rev-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.rev-author-info { display: flex; align-items: center; gap: 10px; }
.rev-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.rev-name { font-weight: 800; color: var(--heading-color); font-size: 16px;}
.rev-date { font-size: 13px; color: var(--gray-text); }
.rev-stars i { color: #ffc107; font-size: 13px;}
.rev-comment { color: var(--text-color); font-size: 15px; line-height: 1.6; margin-top: 10px;}

.empty-reviews-msg { text-align: center; padding: 30px; color: var(--gray-text); background: var(--img-bg); border-radius: 10px; border: 1px dashed var(--border-color); }
.empty-reviews-msg i { font-size: 40px; margin-bottom: 10px; color: var(--border-color); }
.empty-reviews-msg p { font-weight: 700; }

.review-form-container { background: var(--img-bg); padding: 30px; border-radius: 15px; border: 1px dashed var(--border-color); margin-top: 40px; }
.review-form-container h3 { margin-top: 0; font-size: 20px; font-weight: 900; color: var(--heading-color); margin-bottom: 20px;}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 700; margin-bottom: 8px; color: var(--heading-color); }
.form-group input, .form-group textarea { width: 100%; padding: 15px; border: 1px solid var(--border-color); border-radius: 10px; font-family: 'Cairo'; font-size: 15px; box-sizing: border-box; transition: 0.3s; background: var(--card-bg); color: var(--text-color);}
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary-color); outline: none; }
.form-readonly-input { background: var(--img-bg) !important; }

.interactive-stars { display: flex; justify-content: flex-end; gap: 5px; }
[dir="rtl"] .interactive-stars { flex-direction: row-reverse; }
[dir="ltr"] .interactive-stars { flex-direction: row; }
.interactive-stars input { display: none; }
.interactive-stars label { font-size: 30px; color: var(--border-color); cursor: pointer; transition: 0.2s; }
.interactive-stars input:checked ~ label, .interactive-stars label:hover, .interactive-stars label:hover ~ label { color: #ffc107; }

.btn-submit-rev { background: var(--primary-color); color: #fff; border: none; padding: 15px 30px; border-radius: 10px; font-weight: 800; font-size: 16px; cursor: pointer; font-family: inherit; transition: 0.3s;}
.btn-submit-rev:hover { background: #6d1416; }
.success-review-msg { text-align: center; padding: 30px; background: rgba(46, 125, 50, 0.1); border-radius: 15px; border: 1px dashed rgba(46, 125, 50, 0.3); margin-top: 40px; }
.success-review-text { font-weight: bold; color: #2e7d32; font-size: 16px; margin: 0; }

.related-products { margin-top: 60px; padding: 0 15px; }
.section-title { font-size: 26px; font-weight: 900; color: var(--heading-color); margin-bottom: 25px; }
[dir="rtl"] .section-title { border-right: 4px solid var(--primary-color); padding-right: 15px; }
[dir="ltr"] .section-title { border-left: 4px solid var(--primary-color); padding-left: 15px; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.empty-related-msg { color: var(--gray-text); text-align: center; grid-column: 1 / -1; }

.error-page-body { margin: 0; padding: 0; display: flex; justify-content: center; align-items: center; height: 100vh; background-color: #f4f6f9; font-family: tahoma, sans-serif; }
.error-page-container { text-align: center; padding: 50px; background: #ffffff; border-radius: 10px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); max-width: 600px; width: 90%; }
.error-page-title { color: #8e1b1d; font-size: 22px; font-weight: bold; margin: 0; line-height: 1.5; }
.product-videos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; margin-top: 20px; }
.video-card { background: var(--card-bg); border-radius: 15px; overflow: hidden; border: 1px solid var(--border-color); transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; }
.video-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.video-thumb-wrapper { position: relative; cursor: pointer; aspect-ratio: 16 / 9; background: #000; }
.video-thumb-img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: 0.3s; }
.video-card:hover .video-thumb-img { opacity: 1; }
.play-overlay { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 60px; height: 60px; background: rgba(142, 27, 29, 0.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 24px; transition: 0.3s; }
.video-card:hover .play-overlay { background: var(--primary-color); transform: translate(-50%, -50%) scale(1.1); }
.video-body { padding: 15px; }
.video-card-title { margin-bottom: 8px; color: var(--heading-color); font-weight: 800; font-size: 16px; }
.video-card-desc { color: var(--text-color); font-size: 14px; line-height: 1.5; }
.v-tab-empty { text-align: center; padding: 40px; color: var(--gray-text); }

.checkout-container { max-width: 850px; margin: 40px auto; padding: 0 15px; }
.content-card { background: var(--card-bg, #fff); border: 1px solid var(--border-color, #eaeaea); border-radius: 12px; padding: 30px; margin-bottom: 25px; box-shadow: 0 4px 15px rgba(0,0,0,0.02); transition: 0.3s; }
.card-title { font-size: 20px; font-weight: 800; margin-bottom: 25px; border-bottom: 2px solid var(--border-color, #f9f9f9); padding-bottom: 15px; color: var(--heading-color, #222); display: flex; align-items: center; gap: 12px; }
.card-title i { color: var(--primary-color); font-size: 22px; background: rgba(142,27,29,0.1); width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 10px; }

.form-group { margin-bottom: 20px; text-align: start; }
.form-group label { display: block; font-weight: 700; margin-bottom: 8px; font-size: 15px; color: var(--text-color, #444); }
.input-ctrl { width: 100%; padding: 15px; border: 2px solid var(--border-color, #ddd); border-radius: 10px; font-family: 'Cairo', sans-serif; background: var(--img-bg, #fafafa); color: var(--text-color); box-sizing: border-box; transition: 0.3s; font-size: 15px; }
.input-ctrl:focus { border-color: var(--primary-color); outline: none; background: var(--card-bg, #fff); box-shadow: 0 0 0 4px rgba(142,27,29,0.1); }
.input-ctrl[readonly] { background-color: var(--border-color, #eee); color: var(--gray-text, #666); cursor: not-allowed; opacity: 0.8; border-style: dashed; }
.selection-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 15px; }
.selection-item { display: flex; align-items: center; justify-content: space-between; padding: 18px; border: 2px solid var(--border-color, #ddd); border-radius: 10px; cursor: pointer; transition: 0.2s; background: var(--card-bg, #fff); }
.selection-item.active { border-color: var(--primary-color); background: rgba(142,27,29,0.03); }
.radio-label { display: flex; align-items: center; gap: 12px; margin: 0; font-weight: 800; color: var(--heading-color, #333); font-size: 15px;}
.radio-label input { transform: scale(1.4); accent-color: var(--primary-color); margin: 0; cursor: pointer; }
.shipping-price { font-weight: 900; color: var(--primary-color); font-size: 17px; }
.products-list { max-height: none; margin-bottom: 0; }
.prod-item { display: flex; align-items: center; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--border-color, #f1f1f1); }
.prod-item:last-child { border-bottom: none; padding-bottom: 0; }
.prod-img-zoom { flex-shrink: 0; cursor: zoom-in; transition: 0.3s; width: 90px; height: 110px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border-color, #eee); }
.prod-img-zoom:hover { opacity: 0.8; transform: scale(1.05); }
.prod-info { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 10px;}
.prod-name { font-size: 16px; font-weight: 800; color: var(--heading-color, #222); margin: 0; line-height: 1.4; transition: 0.3s; }
.prod-name:hover { color: var(--primary-color); }
.variant-text { font-size: 13px; color: var(--gray-text, #666); background: var(--img-bg, #f5f5f5); padding: 4px 10px; border-radius: 6px; display: inline-block; font-weight: 700; border: 1px solid var(--border-color);}
.prod-bottom-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.prod-price-box { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; }
.qty-ctrl-cart { display: flex; align-items: center; background: var(--img-bg); border-radius: 8px; overflow: hidden; border: 1px solid var(--border-color); }
.qty-ctrl-cart button { background: none; border: none; padding: 8px 12px; cursor: pointer; color: var(--heading-color); transition: 0.2s; font-size: 12px; }
.qty-ctrl-cart button:hover { background: var(--primary-color); color: #fff; }
.qty-ctrl-cart input { width: 40px; text-align: center; border: none; background: transparent; font-weight: 800; color: var(--heading-color); pointer-events: none; }
.prod-price { font-weight: 900; color: var(--primary-color); font-size: 18px; }
.prod-remove { color: #e74c3c; font-size: 14px; font-weight: 800; text-decoration: none; background: rgba(231, 76, 60, 0.1); padding: 8px 15px; border-radius: 8px; transition: 0.2s; display: inline-flex; align-items: center; gap: 6px;}
.prod-remove:hover { background: #e74c3c; color: #fff; }
.checkout-summary-card { background: var(--img-bg, #fafafa); border: 2px dashed var(--border-color, #ccc); border-radius: 15px; padding: 30px; margin-top: 20px;}
.total-line { display: flex; justify-content: space-between; margin-bottom: 15px; font-weight: 800; color: var(--text-color, #555); font-size: 16px;}
.total-line.final { font-size: 26px; color: var(--primary-color); border-top: 2px solid var(--border-color, #eee); padding-top: 20px; margin-top: 10px; font-weight: 900;}
.btn-order { width: 100%; padding: 20px; background: var(--primary-color); color: #fff; border: none; border-radius: 12px; font-size: 20px; font-weight: 900; cursor: pointer; margin-top: 25px; font-family: 'Cairo', sans-serif; transition: 0.3s; display: flex; align-items: center; justify-content: center; gap: 10px;}
.btn-order:hover { background: #701517; transform: translateY(-3px); box-shadow: 0 10px 25px rgba(142,27,29,0.25); }

#imgModal { display: none; position: fixed; z-index: 9999; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.85); align-items: center; justify-content: center; }
#imgModal img { max-width: 90%; max-height: 85%; border-radius: 12px; box-shadow: 0 0 25px rgba(0,0,0,0.6); object-fit: contain; }
#imgModal .close-btn { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 45px; font-weight: bold; cursor: pointer; }

.empty-state-container { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 100px 20px; text-align: center; background: var(--card-bg, #fff); border-radius: 20px; margin: 60px auto; max-width: 600px; border: 1px solid var(--border-color, #eee); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.empty-state-icon { width: 130px; height: 130px; background: rgba(142, 27, 29, 0.05); color: var(--primary-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 60px; margin-bottom: 30px; }
.empty-state-container h3 { font-size: 26px; font-weight: 900; color: var(--heading-color, #333); margin-bottom: 12px; }
.empty-state-container p { color: var(--gray-text); font-size: 16px; font-weight: 600;}
.btn-explore { background: var(--primary-color); color: #fff; padding: 16px 45px; border-radius: 50px; text-decoration: none; font-weight: 800; font-size: 17px; display: inline-block; margin-top: 25px; transition: 0.3s; }
.btn-explore:hover { background: #701517; transform: translateY(-3px); color: #fff; box-shadow: 0 10px 20px rgba(142,27,29,0.2);}

.success-wrapper { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 40px 15px; }
.receipt-card { background: var(--card-bg, #fff); max-width: 550px; width: 100%; border-radius: 20px; box-shadow: 0 15px 40px rgba(0,0,0,0.06); padding: 40px 30px; text-align: center; position: relative; overflow: hidden; border: 1px solid var(--border-color, #f1f1f1); box-sizing: border-box; transition: 0.3s; }
.receipt-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 6px; background: linear-gradient(90deg, var(--primary-color), #c0392b); }
.success-icon-box { width: 90px; height: 90px; background: rgba(39, 174, 96, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 25px; color: #27ae60; font-size: 45px; animation: scaleUp 0.5s ease-in-out; }
@keyframes scaleUp { 0% { transform: scale(0); opacity: 0; } 80% { transform: scale(1.1); opacity: 1; } 100% { transform: scale(1); } }
.success-title { font-size: 28px; font-weight: 900; color: var(--heading-color, #111); margin-bottom: 10px; }
.success-desc { color: var(--gray-text, #666); font-size: 16px; margin-bottom: 30px; line-height: 1.6; }
.order-details-grid { background: var(--img-bg, #fafafa); border-radius: 12px; padding: 20px; margin-bottom: 30px; border: 1px dashed var(--border-color, #ddd); }
[dir="rtl"] .order-details-grid { text-align: right; }
[dir="ltr"] .order-details-grid { text-align: left; }
.detail-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border-color, #eee); }
.detail-row:last-child { border-bottom: none; }
.detail-label { color: var(--gray-text, #777); font-weight: 600; font-size: 15px; }
.detail-value { color: var(--heading-color, #222); font-weight: 800; font-size: 15px; }
.detail-value.highlight { color: var(--primary-color); font-size: 18px; }
.action-buttons { display: flex; gap: 15px; justify-content: center; }
.btn-primary-action { flex: 1; padding: 15px 20px; background: var(--primary-color); color: #fff; text-decoration: none; border-radius: 10px; font-weight: 800; font-size: 16px; transition: 0.3s; box-shadow: 0 5px 15px rgba(142,27,29,0.2); box-sizing: border-box; display: flex; align-items: center; justify-content: center; }
.btn-primary-action:hover { background: #701517; transform: translateY(-2px); color: #fff; }
.btn-secondary-action { flex: 1; padding: 15px 20px; background: var(--card-bg, #fff); color: var(--heading-color, #333); text-decoration: none; border-radius: 10px; font-weight: 800; font-size: 16px; transition: 0.3s; border: 2px solid var(--border-color, #eee); box-sizing: border-box; display: flex; align-items: center; justify-content: center; }
.btn-secondary-action:hover { border-color: var(--gray-text, #ccc); background: var(--img-bg, #f9f9f9); color: var(--heading-color, #111); }

.wishlist-header { padding: 40px 0; text-align: center; }
.wishlist-header i { color: var(--primary-color); font-size: 2.5rem; margin-bottom: 10px; }
.wishlist-header h2 { color: var(--heading-color, #1a1a1a); }
.wishlist-header p { color: var(--gray-text, #777); }
.product-card.removing { transform: scale(0.5); opacity: 0; transition: 0.4s; }
.wishlist-img-holder { position: relative; overflow: hidden; background-color: var(--img-bg); }
.strike-price-wishlist { text-decoration: line-through; color: var(--gray-text); font-size: 13px; margin-inline-start: 5px; }
.cursor-pointer { cursor: pointer; }
.ms-1 { margin-inline-start: 5px; }

.main-wrapper { flex: 1; display: flex; justify-content: center; align-items: center; padding: 40px 20px; min-height: 80vh; }
.login-card { background: var(--card-bg); padding: 30px 40px; border-radius: 20px; box-shadow: 0 10px 25px rgba(0,0,0,0.05); width: 100%; max-width: 400px; text-align: center; border: 1px solid var(--border-color); }
.login-card input { width: 100%; padding: 12px; border: 1px solid var(--border-color); border-radius: 10px; font-family: 'Cairo', sans-serif; box-sizing: border-box; position: relative; z-index: 1; background: var(--bg-color); color: var(--text-color); transition: 0.3s; }
.login-card input:focus { border-color: var(--primary-color); outline: none; }
[dir="rtl"] .login-card input { padding-right: 40px; padding-left: 45px; }
[dir="ltr"] .login-card input { padding-left: 40px; padding-right: 45px; }

.btn-login { background: var(--primary-color); color: #fff; border: none; width: 100%; padding: 12px; border-radius: 10px; cursor: pointer; font-weight: 700; font-size: 16px; transition: 0.3s; font-family: 'Cairo', sans-serif;}
.btn-login:hover { opacity: 0.9; transform: translateY(-2px); }

.btn-google { display: flex; align-items: center; justify-content: center; background: var(--bg-color); color: var(--text-color); border: 1px solid var(--border-color); width: 100%; padding: 10px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 14px; transition: 0.3s; margin-top: 10px;}
.btn-google:hover { background: var(--card-bg); border-color: var(--gray-text); }
[dir="rtl"] .btn-google i { margin-left: 10px; }
[dir="ltr"] .btn-google i { margin-right: 10px; }

.error-msg { background: rgba(198, 40, 40, 0.1); color: #c62828; padding: 10px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; }
[dir="rtl"] .error-msg { text-align: right; border-right: 4px solid #c62828; }
[dir="ltr"] .error-msg { text-align: left; border-left: 4px solid #c62828; }

.password-wrapper { position: relative; width: 100%; display: flex; align-items: center; }
.toggle-password { position: absolute; cursor: pointer; color: #aaa; transition: 0.3s; z-index: 12; }
.toggle-password:hover { color: var(--primary-color); }
[dir="rtl"] .toggle-password { left: 15px; }
[dir="ltr"] .toggle-password { right: 15px; }

.auth-top-actions { position: absolute; top: 20px; left: 20px; display: flex; gap: 10px; z-index: 100; }
[dir="rtl"] .auth-top-actions { left: auto; right: 20px; }
.auth-action-btn { background: var(--card-bg); border: 1px solid var(--border-color); color: var(--text-color); padding: 8px 15px; border-radius: 8px; cursor: pointer; font-family: 'Cairo', sans-serif; font-weight: bold; display: flex; align-items: center; gap: 8px; transition: 0.3s; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.auth-action-btn:hover { border-color: var(--primary-color); color: var(--primary-color); }
.auth-logo { max-width: 120px; object-fit: contain; margin-bottom: 15px; display: inline-block; }
.auth-lang-dropdown { position: relative; }

.auth-lang-menu { 
    position: absolute; 
    top: calc(100% + 8px); 
    left: 0; 
    background: var(--card-bg); 
    border: 1px solid var(--border-color); 
    border-radius: 8px; 
    display: none; 
    flex-direction: column; 
    min-width: 120px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
    z-index: 101; 
}

[dir="rtl"] .auth-lang-menu { left: auto; right: 0; }
.auth-lang-dropdown:hover .auth-lang-menu { display: flex; }

.auth-lang-menu::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
    background: transparent;
}

.auth-lang-menu a { padding: 10px 15px; color: var(--text-color); text-decoration: none; font-size: 14px; transition: 0.2s; border-bottom: 1px solid var(--border-color); text-align: center; font-weight: 600; }
.auth-lang-menu a:last-child { border-bottom: none; }
.auth-lang-menu a:hover { background: var(--primary-color); color: #fff; }

.login-title { color: var(--primary-color); margin-bottom: 25px; margin-top: 15px; }
.forgot-pass-container { text-align: start; margin-top: -15px; margin-bottom: 15px; }
.forgot-pass-link { font-size: 12px; color: #777; text-decoration: none; transition: 0.3s; }
.forgot-pass-link:hover { color: var(--primary-color); }
.google-icon { color: #DB4437; font-size: 18px; }
.register-text { margin-top: 20px; font-size: 14px; }
.register-link { color: var(--primary-color); text-decoration: none; font-weight: bold; transition: 0.3s; }
.register-link:hover { opacity: 0.8; }
.back-store-text { margin-top: 15px; }
.back-link { color: #999; font-size: 13px; text-decoration: none; display: inline-flex; align-items: center; transition: 0.3s; }
.back-link:hover { color: var(--primary-color); }

.product-link-clean { text-decoration: none; }
.saved-address-box { background: var(--img-bg); padding: 20px; border-radius: 10px; border: 1px solid var(--border-color); }
.address-icon { color: var(--primary-color); margin-inline-end: 5px; }
.address-select { font-weight: 800; cursor: pointer; margin-bottom: 0; }
.address-new-opt { font-weight: 900; color: var(--primary-color); background: rgba(142,27,29,0.05); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.phone-input-ltr { text-align: start; }
.save-address-wrapper { display: none; background: rgba(142,27,29,0.05); padding: 15px 20px; border-radius: 8px; border: 2px dashed var(--primary-color); }
.save-addr-label { display: flex; align-items: center; gap: 12px; cursor: pointer; margin: 0; color: var(--primary-color); font-size: 16px; }
.save-addr-checkbox { width: 22px; height: 22px; accent-color: var(--primary-color); cursor: pointer; }
.notes-group { margin-top: 20px; }
.payment-icon { color: #27ae60; font-size: 26px; }
.image-modal-overlay { display: none; position: fixed; z-index: 9999; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.85); align-items: center; justify-content: center; }

.nav-lang-dropdown { position: relative; display: inline-block; }
.nav-lang-menu { 
    position: absolute; 
    top: calc(100% + 10px); 
    left: 50%; 
    transform: translateX(-50%); 
    background: var(--card-bg); 
    border: 1px solid var(--border-color); 
    border-radius: 8px; 
    display: none; 
    flex-direction: column; 
    min-width: 100px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
    z-index: 1000; 
}
.nav-lang-dropdown:hover .nav-lang-menu { display: flex; }

.nav-lang-menu::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
    background: transparent;
}

.nav-lang-menu a { 
    padding: 10px 15px; 
    color: var(--text-color); 
    text-decoration: none; 
    font-size: 14px; 
    transition: 0.2s; 
    text-align: center; 
    font-weight: 600;
}
.nav-lang-menu a:hover { background: var(--primary-color); color: #fff; }
.nav-lang-menu a.active { color: var(--primary-color); background: rgba(142,27,29,0.05); }

.auth-page .auth-main { display: flex; align-items: center; justify-content: center; min-height: 70vh; padding: 40px 15px; }

.auth-input-wrapper { 
    position: relative !important; 
    display: block; 
    margin-bottom: 20px;
}

.auth-input-icon { 
    position: absolute !important; 
    top: 50% !important; 
    transform: translateY(-50%) !important; 
    color: var(--gray-text) !important; 
    z-index: 5 !important; 
    pointer-events: none; 
}

[dir="rtl"] .auth-input-icon { right: 15px !important; left: auto !important; }
[dir="ltr"] .auth-input-icon { left: 15px !important; right: auto !important; }

[dir="rtl"] .auth-input-wrapper .input-ctrl { padding-right: 45px !important; }
[dir="ltr"] .auth-input-wrapper .input-ctrl { padding-left: 45px !important; }

.password-wrapper { position: relative; width: 100%; display: block; }
.toggle-password {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    cursor: pointer;
    color: var(--gray-text) !important;
    z-index: 10;
}
[dir="rtl"] .toggle-password { left: 15px !important; right: auto !important; }
[dir="ltr"] .toggle-password { right: 15px !important; left: auto !important; }

.profile-page-body { background-color: var(--bg-color); color: var(--text-color); margin: 0; overflow-x: hidden; transition: 0.3s; }
.profile-wrapper { max-width: 1100px; margin: 40px auto; padding: 0 15px; display: grid; grid-template-columns: 280px 1fr; gap: 25px; align-items: start; }
.profile-sidebar { display: flex; flex-direction: column; gap: 15px; position: sticky; top: 20px; transition: 0.3s all ease-in-out; background: transparent; border: none; box-shadow: none; padding: 0; }
.sidebar-title { font-size: 18px; font-weight: 800; color: var(--heading-color); margin-bottom: 10px; }
.sidebar-icon { color: var(--primary-color); }
[dir="rtl"] .sidebar-icon { margin-left: 5px; }
[dir="ltr"] .sidebar-icon { margin-right: 5px; }

.info-header-card { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 10px 20px 30px; }
.avatar-edit { width: 120px; height: 120px; border-radius: 50%; position: relative; border: 4px solid var(--primary-color); cursor: pointer; background: var(--img-bg); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); }
.avatar-edit img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.avatar-edit > i.fa-user { font-size: 50px; color: var(--primary-color); line-height: 112px; display: block; }
.upload-icon { position: absolute; bottom: 0px; left: 0px; background: var(--primary-color); width: 35px; height: 35px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; border: 3px solid var(--card-bg); font-size: 15px; box-shadow: 0 2px 8px rgba(0,0,0,0.3); transition: 0.3s; z-index: 5; }
.avatar-edit:hover .upload-icon { transform: scale(1.1); background: var(--heading-color); }
.edit-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); border-radius: 50%; display: flex; align-items: center; justify-content: center; opacity: 0; transition: 0.3s; color: #fff; font-size: 14px; font-weight: bold; }
.avatar-edit:hover .edit-overlay { opacity: 1; }

.user-details-center { margin-top: 20px; }
.user-details-center h2 { margin: 0 0 8px 0; font-size: 26px; color: var(--heading-color); font-weight: 900; }
.user-details-center .user-email { color: var(--gray-text); font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }

.tab-menu { display: flex; flex-direction: column; list-style: none; padding: 0; margin: 0; gap: 10px; }
.tab-link { padding: 15px 20px; display: flex; align-items: center; gap: 12px; color: var(--text-color); text-decoration: none; border-radius: 12px; cursor: pointer; transition: 0.3s; font-weight: 700; font-size: 15px; background: var(--card-bg); border: 1px solid var(--border-color); box-shadow: 0 2px 8px rgba(0,0,0,0.02); }
[dir="rtl"] .tab-link { border-right: 4px solid transparent; }
[dir="ltr"] .tab-link { border-left: 4px solid transparent; }
.tab-link:hover { background: var(--img-bg); color: var(--primary-color); border-color: var(--border-color); transform: translateX(-3px); }
[dir="ltr"] .tab-link:hover { transform: translateX(3px); }
.tab-link.active { background: var(--primary-color); color: #fff; border-color: var(--primary-color); box-shadow: 0 4px 15px rgba(142, 27, 29, 0.2); transform: scale(1.02); }
.tab-link.logout { margin-top: 10px; background: rgba(211, 47, 47, 0.1); color: #d32f2f; border-color: rgba(211, 47, 47, 0.2); }
.tab-link.logout:hover { background: #d32f2f; color: #fff; transform: translateY(-2px); }

.profile-content { background: var(--card-bg); border-radius: 15px; padding: 35px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); min-height: 500px; border: 1px solid var(--border-color); }
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.4s ease; }

h3.section-title { margin-top: 0; border-bottom: 2px solid var(--primary-color); display: inline-block; padding-bottom: 8px; margin-bottom: 30px; color: var(--heading-color); font-weight: 800;}
.btn-save { background: var(--primary-color); color: #fff; border: none; padding: 14px 35px; border-radius: 10px; cursor: pointer; font-weight: 700; font-size: 16px; transition: 0.3s; display: inline-flex; align-items: center; gap: 8px; }
.btn-save:hover { opacity: 0.9; transform: translateY(-2px); }

.address-item { border: 2px solid var(--border-color); padding: 20px; border-radius: 12px; margin-bottom: 15px; position: relative; transition: 0.3s; background: var(--card-bg); }
.address-item.is-default { border-color: var(--success-color); background-color: rgba(46, 125, 50, 0.05); }
.badge-default { background: rgba(46, 125, 50, 0.1); color: var(--success-color); font-size: 12px; padding: 4px 10px; border-radius: 6px; font-weight: bold; }
[dir="rtl"] .badge-default { margin-right: 10px; }
[dir="ltr"] .badge-default { margin-left: 10px; }
.address-actions { display: flex; gap: 20px; margin-top: 15px; border-top: 1px solid var(--border-color); padding-top: 15px; }
.action-link { text-decoration: none; font-size: 13px; display: flex; align-items: center; gap: 6px; font-weight: 700;}

.order-item { cursor: pointer; border: 1px solid var(--border-color); padding: 15px; border-radius: 12px; margin-bottom: 15px; background: var(--card-bg); display: flex; justify-content: space-between; align-items: center; transition: 0.3s; }
.order-item:hover { border-color: var(--primary-color); background: var(--img-bg); box-shadow: 0 4px 10px rgba(0,0,0,0.05); transform: translateX(-5px); }
[dir="ltr"] .order-item:hover { transform: translateX(5px); }

.order-modal { display: none; position: fixed; z-index: 20000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); align-items: center; justify-content: center; backdrop-filter: blur(3px); }
.modal-content { background-color: var(--card-bg); color: var(--text-color); width: 95%; max-width: 650px; max-height: 85vh; border-radius: 20px; overflow-y: auto; position: relative; padding: 30px; animation: modalAnim 0.4s ease; font-family: 'Cairo'; }
@keyframes modalAnim { from {opacity: 0; transform: translateY(-30px);} to {opacity: 1; transform: translateY(0);} }
.close-modal { position: absolute; top: 20px; left: 20px; font-size: 30px; cursor: pointer; color: var(--gray-text); transition: 0.2s;}
.close-modal:hover { color: var(--primary-color); transform: scale(1.1); }
.order-badge { padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 800; display: inline-block; margin-bottom: 8px;}

.floating-menu-btn { display: none; }
.hidden-form { display: none; }
.input-disabled { background: var(--img-bg) !important; opacity: 0.6; cursor: not-allowed; border-color: var(--border-color); color: var(--gray-text) !important; }
.profile-divider { border: 0; border-top: 1px dashed var(--border-color); margin: 10px 0 30px 0; }
.profile-divider-dashed { border: 0; border-top: 2px dashed var(--border-color); margin: 40px 0; }
.order-item-flex { display: flex; align-items: center; gap: 15px; }
.order-status-icon { width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.order-id-txt { display: block; color: var(--heading-color); font-size: 16px; }
.order-date-txt { color: var(--gray-text); font-weight: 600; }
.order-price-col { text-align: left; }
[dir="rtl"] .order-price-col { text-align: left; }
[dir="ltr"] .order-price-col { text-align: right; }
.order-total-price { margin-top: 5px; font-weight: 900; font-size: 18px; color: var(--primary-color); }
.empty-state-box { text-align: center; padding: 60px 20px; background: var(--img-bg); border-radius: 15px; border: 1px dashed var(--border-color); }
.empty-icon { font-size: 60px; color: var(--border-color); margin-bottom: 15px; display: block; }
.empty-text { color: var(--gray-text); font-size: 16px; font-weight: 700; }
.addr-header-flex { display: flex; justify-content: space-between; align-items: center; }
.addr-city-name { font-size: 18px; color: var(--heading-color); }
.addr-icon { color: var(--primary-color); }
.addr-details-txt { margin: 12px 0; color: var(--text-color); font-size: 15px; line-height: 1.6; font-weight: 600; }
.link-success { color: var(--success-color); }
.link-danger { color: #dc3545; }
.add-addr-title { color: var(--heading-color); margin-bottom: 15px;}
.add-addr-title i { color: var(--primary-color); }
.add-addr-form { background: var(--img-bg); padding: 25px; border-radius: 15px; border: 1px solid var(--border-color); }
.addr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.checkbox-group { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 10px 0; width: fit-content; }
.custom-checkbox { width: 18px; height: 18px; margin: 0; cursor: pointer; accent-color: var(--primary-color); flex-shrink: 0; }
.checkbox-label { margin: 0; cursor: pointer; font-weight: 700; color: var(--heading-color); font-size: 15px; user-select: none; white-space: nowrap; }

.social-linking-box { background: rgba(24, 144, 255, 0.05); padding: 25px; border-radius: 15px; margin-bottom: 30px; border: 1px solid rgba(24, 144, 255, 0.2); }
.social-linking-title { margin-top: 0; color: #1890ff; font-size: 18px; margin-bottom: 10px;}
.social-linking-desc { font-size: 15px; color: var(--text-color); font-weight: 600; margin-bottom: 15px;}
.btn-google-link { background: #4285F4; color: #fff; padding: 14px 35px; border-radius: 10px; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; box-shadow: 0 4px 10px rgba(66, 133, 244, 0.3); font-weight: bold; }
.social-linked-success { display: flex; align-items: center; gap: 10px; color: var(--success-color); font-weight: 800; font-size: 16px; }
.success-icon { font-size: 20px; }
.social-linking-desc-small { font-size: 14px; color: var(--gray-text); margin-top: 8px; font-weight: 600; }
.icon-primary { color: var(--primary-color); }
.alert-box-warning { background: rgba(142, 27, 29, 0.1); padding: 15px; border-radius: 10px; color: var(--primary-color); margin-bottom: 25px; font-size: 14px; font-weight: 700; }
[dir="rtl"] .alert-box-warning { border-right: 4px solid var(--primary-color); }
[dir="ltr"] .alert-box-warning { border-left: 4px solid var(--primary-color); }
.alert-box-info { font-size: 14px; color: #1890ff; margin-bottom: 20px; background: rgba(24, 144, 255, 0.1); padding: 15px; border-radius: 10px; border: 1px solid rgba(24, 144, 255, 0.3); font-weight: 600; }
.modal-loader { text-align: center; padding: 40px; }
.loader-icon { font-size: 30px; color: var(--primary-color); }
.loader-icon-error { font-size: 40px; color: #d32f2f; }
.loader-txt { margin-top: 15px; font-weight: bold; color: var(--text-color); }

.order-modal-header { border-bottom: 1px dashed var(--border-color); padding-bottom: 15px; margin-bottom: 20px; }
.order-modal-header h3 { margin: 0; color: var(--primary-color); font-size: 20px; font-weight: 900; }
.order-modal-header p { margin: 5px 0 0; font-size: 13px; color: var(--gray-text); font-weight: 600; }

.order-modal-info { background: var(--img-bg); border-radius: 12px; padding: 15px; margin-bottom: 20px; border: 1px solid var(--border-color); }
.address-value { text-align: left; max-width: 60%; line-height: 1.4; color: var(--heading-color); font-weight: 800; }
[dir="rtl"] .address-value { text-align: right; }
.address-value small { color: var(--gray-text); font-weight: 600; font-size: 13px; }

.order-modal-products-title { font-size: 16px; margin-bottom: 15px; color: var(--heading-color); font-weight: 800; }
.order-modal-table-wrapper { overflow-x: auto; margin-bottom: 20px; }

.order-items-table { width: 100%; border-collapse: collapse; min-width: 500px; }
.order-items-table th { background: var(--card-bg); color: var(--text-color); border-bottom: 1px solid var(--border-color); padding: 10px; text-align: left; font-size: 13px; font-weight: 800; }
[dir="rtl"] .order-items-table th { text-align: right; }
.order-items-table th.text-center, .order-items-table td.text-center { text-align: center; }
.order-items-table td { border-bottom: 1px solid var(--border-color); padding: 12px 10px; vertical-align: middle; color: var(--text-color); }

.order-item-prod-info { display: flex; align-items: center; gap: 12px; }
.prod-img-mini { width: 50px; height: 60px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border-color); }
.prod-name-mini { display: block; font-weight: 800; font-size: 14px; color: var(--heading-color); line-height: 1.3; }
.prod-variants-mini { margin-top: 6px; display: flex; gap: 5px; flex-wrap: wrap; }
.variant-badge { font-size: 11px; background: var(--img-bg); padding: 2px 8px; border-radius: 4px; color: var(--text-color); font-weight: 700; border: 1px solid var(--border-color); }

.qty-col { font-weight: 800; font-size: 15px; }
.price-col { font-weight: 700; color: var(--gray-text); }
.total-col { font-weight: 900; color: var(--primary-color); font-size: 15px; }

.order-modal-summary { background: var(--card-bg); padding: 20px; border-radius: 12px; border: 2px dashed var(--border-color); }
.final-total-row { font-size: 20px; color: var(--primary-color); border-top: 1px solid var(--border-color); padding-top: 15px; margin-top: 10px; margin-bottom: 0; align-items: center; }
.final-total-row .detail-label { color: var(--heading-color); font-weight: 900; }
.final-total-val { font-weight: 900; }

@media (max-width: 768px) {
    .main-footer .footer-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px 15px !important;
    }
    
    .main-footer .footer-brand-section {
        grid-column: span 2; 
        text-align: center;
        margin-bottom: 10px;
    }

    .main-footer .footer-links-section, 
    .main-footer .footer-contact-section {
        grid-column: span 1; 
    }

    .main-footer .footer-heading {
        font-size: 16px !important; 
        margin-bottom: 12px !important;
    }

    .main-footer .footer-links-list li a,
    .main-footer .contact-item {
        font-size: 13px !important; 
    }

    .main-footer .social-links {
        justify-content: flex-start; 
        gap: 8px;
    }
    
    [dir="rtl"] .main-footer .social-links {
        justify-content: flex-start;
    }
}

.footer-links-list li a i.rtl-icon {
    font-size: 10px;
    margin-inline-end: 5px;
    color: var(--primary-color);
}
[dir="ltr"] .footer-links-list li a i.rtl-icon {
    transform: rotate(180deg);
}
.otp-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); z-index: 100000 !important;
    display: none; align-items: center; justify-content: center;
    backdrop-filter: blur(3px);
}
.otp-modal-overlay.active { display: flex; }
.otp-modal-box {
    background: var(--bg-color, #fff); width: 90%; max-width: 400px;
    border-radius: 12px; padding: 25px; text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative; animation: slideUp 0.3s ease;
}
.otp-modal-close {
    position: absolute; top: 15px; right: 15px;
    cursor: pointer; font-size: 1.2rem; color: #888;
}
.otp-digit-inputs {
    display: flex; justify-content: center; gap: 10px; margin: 20px 0; direction: ltr;
}
.otp-input { 
    width: 180px !important; 
    height: 55px !important; 
    font-size: 1.5rem !important; 
    text-align: center !important; 
    letter-spacing: 15px !important; 
    padding-left: 15px !important;
    border: 2px solid var(--border-color, #ddd) !important; 
    border-radius: 8px !important; 
    background-color: var(--input-bg, #fff) !important;
    color: var(--text-color, #000) !important;
    outline: none !important;
    transition: all 0.3s ease;
}
.otp-input:focus {
    border-color: #25D366 !important;
    box-shadow: 0 0 8px rgba(37, 211, 102, 0.3) !important;
}
.resend-timer { font-size: 0.9rem; color: #666; margin-top: 15px; }
.resend-btn { color: #1976d2; cursor: pointer; text-decoration: underline; background: none; border: none; padding: 0;}
.resend-btn.disabled { color: #aaa; cursor: not-allowed; text-decoration: none; }
body.no-scroll { overflow: hidden !important; }
.swal2-container { z-index: 110000 !important; }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.d-none { display: none !important; }
.whatsapp-section-divider { margin-top: 20px; padding-top: 15px; border-top: 1px dashed #eee; }
.wa-icon-label { color: #25D366; margin-inline-end: 5px; }
.phone-input-wrapper { display: flex; gap: 10px; direction: ltr; }
.country-select { width: 35%; padding: 8px; font-size: 16px !important; }
.phone-input { width: 65%; font-size: 16px !important; }
.save-phone-wrapper { margin-top: 10px; }
.otp-wa-icon { font-size: 40px; color: #25D366; margin-bottom: 15px; }
.otp-title { margin-bottom: 10px; }
.otp-desc { color: #666; font-size: 0.9rem; }


body.dark-mode .swal2-popup, 
body.dark-mode .swal2-toast { background-color: var(--card-bg) !important; color: var(--text-color) !important; }
body.dark-mode .swal2-timer-progress-bar { background-color: var(--primary-color) !important; }

@media (max-width: 992px) {
	.products-grid { grid-template-columns: repeat(3, 1fr); }
	.product-layout { flex-direction: column; gap: 20px; }
	.gallery-section { width: 100%; position: relative; top: 0; flex-direction: column-reverse; }
	.thumbs-vertical { flex-direction: row; width: 100%; overflow-x: auto; max-height: none; padding-bottom: 10px; justify-content: flex-start; }
	.thumbs-vertical img { width: 70px; height: 80px; flex-shrink: 0; }
	.main-image-wrapper img { max-height: 400px; }
	.details-section { width: 100%; padding: 25px; border-radius: 16px; margin-bottom: 20px;}
	.p-title { font-size: 24px; }
	.p-actions { position: fixed; bottom: 0; left: 0; right: 0; background: var(--card-bg); padding: 15px 20px; margin: 0; box-shadow: 0 -5px 20px rgba(0,0,0,0.1); z-index: 1000; border-radius: 20px 20px 0 0; justify-content: space-between; }
	.qty-ctrl { height: 50px; }
	.btn-cart { height: 50px; font-size: 15px; }
	.btn-share { height: 50px; width: 50px; }
	.modern-tabs { padding: 25px; }
	.related-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    
    .profile-wrapper { grid-template-columns: 1fr; }
    .profile-sidebar { position: fixed; top: 0; height: 100vh; width: 300px; background: var(--card-bg); z-index: 10001; padding: 40px 20px 20px; overflow-y: auto; transition: 0.3s; }
    [dir="rtl"] .profile-sidebar { right: -320px; box-shadow: -5px 0 20px rgba(0,0,0,0.15); border-left: 1px solid var(--border-color); }
    [dir="ltr"] .profile-sidebar { left: -320px; box-shadow: 5px 0 20px rgba(0,0,0,0.15); border-right: 1px solid var(--border-color); }
    [dir="rtl"] .profile-sidebar.open { right: 0; }
    [dir="ltr"] .profile-sidebar.open { left: 0; }
    .floating-menu-btn { display: flex; position: fixed; top: 120px; background: var(--primary-color); color: white; width: 45px; height: 45px; border-radius: 8px; align-items: center; justify-content: center; font-size: 20px; cursor: pointer; z-index: 10002; box-shadow: 0 4px 10px rgba(0,0,0,0.3); transition: 0.3s; }
    [dir="rtl"] .floating-menu-btn { right: 15px; }
    [dir="ltr"] .floating-menu-btn { left: 15px; }
    [dir="rtl"] .floating-menu-btn.open { right: 310px; background: #333; }
    [dir="ltr"] .floating-menu-btn.open { left: 310px; background: #333; }
    .order-item { flex-direction: column; align-items: flex-start; gap: 15px; }
    .order-item > div:last-child { align-self: flex-end; }
    [dir="rtl"] .order-item > div:last-child { text-align: left; }
    [dir="ltr"] .order-item > div:last-child { text-align: right; }
}

@media (max-width: 1200px) { .products-grid { grid-template-columns: repeat(4, 1fr); } }

@media (max-width: 768px) { 
	.products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } 
	.img-holder { height: 200px; }
	.icon-circle { width: 45px; height: 45px; font-size: 18px; }
	.nav-button { min-width: 65px; }
	.header-main-wrapper { flex-direction: column; gap: 12px; padding: 10px 0; }
	.header-right-group { width: 100%; flex-direction: row; justify-content: space-between; align-items: center; gap: 6px; }
	.logo-box { display: flex !important; width: auto; gap: 4px; }
	.store-return-btn { padding: 8px 8px; font-size: 11px; gap: 4px; border-radius: 6px; }
	.search-container { flex: 1; width: auto; }
	.search-input { padding: 8px 12px; font-size: 13px !important; }
	.search-btn { padding: 0 15px; }
	.user-actions { width: 100%; justify-content: center; flex-wrap: wrap; gap: 15px; }
	.action-btn { font-size: 12px; }
	.whatsapp-float { width: 50px; height: 50px; font-size: 30px; bottom: 20px; }
	[dir="rtl"] .whatsapp-float { left: 20px; }
	[dir="ltr"] .whatsapp-float { right: 20px; }
	.about-header-strip { padding: 30px 15px; } 
	.about-header-strip h1 { font-size: 22px; } 
	.checkout-container { margin: 15px auto; padding: 0 10px; }
    .content-card { padding: 20px 15px; }
    .selection-list { grid-template-columns: 1fr; }
    .prod-item { flex-direction: row; align-items: flex-start; gap: 12px; padding: 15px 0; }
    .prod-img-zoom { width: 75px; height: 95px; border-radius: 8px; }
    .prod-info { gap: 8px; }
    .prod-name { font-size: 14px; }
    .variant-text { font-size: 11px; padding: 2px 8px; }
    .prod-bottom-row { flex-wrap: wrap; gap: 10px; }
    .prod-price-box { gap: 10px; }
    .prod-price { font-size: 16px; }
    .prod-remove { padding: 6px 12px; font-size: 12px; }
    .total-line.final { font-size: 20px; }
}

@media (max-width: 600px) { 
    .action-buttons { flex-direction: column; } 
    .receipt-card { padding: 30px 20px; } 
    .success-title { font-size: 24px; } 
}

@keyframes fadeIn { from {opacity: 0;} to {opacity: 1;} }

/* ============================================================
   FIX: VIDEO GRID & FULL-SCREEN PLAYER (DESKTOP + MOBILE)
   ============================================================ */

/* 1. ضبط شكل الشبكة والكرت على الكمبيوتر (منع الحجم الضخم) */
.product-videos-grid { 
    display: grid !important; 
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
    gap: 20px !important; 
    max-width: 1100px !important; /* تقييد العرض الكلي للشبكة */
    margin: 30px auto !important; 
}

.video-card { 
    max-width: 300px !important; /* تقييد عرض كرت الفيديو الواحد */
    margin: 0 auto !important;
    border-radius: 12px !important; /* لمسة جمالية تتناسب مع متاجر الملابس */
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
}

/* 2. إصلاح مشكلة الصندوق الأسود الصغير على الموبايل عند التشغيل */
@media (max-width: 768px) {
    /* توسيع الشبكة في الموبايل */
    .product-videos-grid { 
        grid-template-columns: 1fr 1fr !important; /* فيديوين بجانب بعض في الموبايل لشكل أرتب */
        gap: 10px !important;
        padding: 0 10px !important;
    }
    
    .video-card { max-width: 100% !important; }

    /* إجبار مشغل Fancybox على ملء الشاشة */
    .fancybox-content {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 9 / 16 !important; /* مثالي لفيديوهات الريلز والعمودية */
        background: #000 !important;
    }

    .fancybox-slide--video .fancybox-content,
    .fancybox-slide--iframe .fancybox-content {
        width: 100vw !important;
        height: 85vh !important; /* ارتفاع ممتاز لملء أغلب الشاشة */
        max-width: 100% !important;
        margin: 0 !important;
    }

    .fancybox-bg {
        background: #000 !important; /* خلفية سوداء بالكامل للتركيز على الفيديو */
    }
    
    .fancybox-container {
        z-index: 999999 !important; /* التأكد من ظهوره فوق كل شيء */
    }
}

/* تحسين زر التشغيل ليناسب المظهر العصري */
.play-overlay {
    background: rgba(0, 0, 0, 0.4) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.play-overlay i {
    font-size: 40px !important;
    color: #fff !important;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.whatsapp-float, .share-float-btn { position: fixed !important; width: 55px !important; height: 55px !important; border-radius: 50% !important; display: flex !important; align-items: center !important; justify-content: center !important; font-size: 26px !important; z-index: 999 !important; color: #fff !important; border: none !important; outline: none !important; cursor: pointer !important; transition: transform 0.3s ease, background-color 0.3s ease !important; text-decoration: none !important; box-sizing: border-box !important; }
.whatsapp-float:hover, .share-float-btn:hover { transform: scale(1.1) !important; animation: none !important; }
.whatsapp-float { bottom: 30px !important; background-color: #25d366 !important; animation: pulse-wa 2s infinite !important; }
.share-float-btn { bottom: 100px !important; background-color: var(--primary-color, #b91c1c) !important; animation: pulse-share 2s infinite !important; animation-delay: 1s !important; }
.share-float-no-wa { bottom: 30px !important; }
html[dir="rtl"] .whatsapp-float, html[dir="rtl"] .share-float-btn { left: 30px !important; right: auto !important; }
html[dir="ltr"] .whatsapp-float, html[dir="ltr"] .share-float-btn { right: 30px !important; left: auto !important; }
@media (max-width: 768px) {
    .whatsapp-float, .share-float-btn { width: 50px !important; height: 50px !important; font-size: 24px !important; }
    .whatsapp-float { bottom: 20px !important; }
    .share-float-btn { bottom: 85px !important; }
    .share-float-no-wa { bottom: 20px !important; }
    html[dir="rtl"] .whatsapp-float, html[dir="rtl"] .share-float-btn { left: 20px !important; }
    html[dir="ltr"] .whatsapp-float, html[dir="ltr"] .share-float-btn { right: 20px !important; }
}
@keyframes pulse-wa { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
@keyframes pulse-share { 0% { box-shadow: 0 0 0 0 rgba(185, 28, 28, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(185, 28, 28, 0); } 100% { box-shadow: 0 0 0 0 rgba(185, 28, 28, 0); } }

.solid-action-btn { background-color: var(--card-bg, #f3f4f6); border: 1px solid var(--border-color, #e5e7eb); border-radius: 8px; padding: 8px 5px; display: inline-flex; align-items: center; gap: 8px; color: var(--heading-color, #1f2937); font-weight: 700; transition: all 0.3s ease; box-shadow: 0 2px 4px rgba(0,0,0,0.02); text-decoration: none; }
.solid-action-btn:hover { background-color: var(--primary-color, #b91c1c); border-color: var(--primary-color, #b91c1c); color: #ffffff !important; transform: translateY(-2px); }
.solid-action-btn:hover i { color: #ffffff !important; }
body.dark-mode .solid-action-btn { background-color: var(--input-bg, #1f2937); border-color: var(--border-color, #374151); color: #f3f4f6; }
body.dark-mode .solid-action-btn:hover { background-color: var(--primary-color, #b91c1c); border-color: var(--primary-color, #b91c1c); color: #ffffff !important; }
.action-btn.solid-action-btn { position: relative; }
.solid-action-btn .cart-count { position: absolute; top: -8px; right: -8px; background-color: var(--primary-color, #b91c1c); color: #fff; font-size: 11px; padding: 3px 6px; border-radius: 50%; border: 2px solid var(--bg-color, #ffffff); min-width: 20px; text-align: center; transition: border-color 0.3s ease; }
html[dir="ltr"] .solid-action-btn .cart-count { right: auto; left: -8px; }
body.dark-mode .solid-action-btn .cart-count { border-color: var(--bg-color, #121212); }
@media (max-width: 768px) { .solid-action-btn { padding: 8px 5px; } }
