/* =========================================
   CSS Variables & Global Styles
   ========================================= */
:root {
    --primary-color: #C89B62; /* Matching the logo gold/wood color */
    --primary-hover: #a67c4b;
    --text-color: #e0e0e0;
    --text-light: #999999;
    --bg-color: #121212; /* Dark background matching the cards */
    --surface-color: #1e1e1e; /* Card background */
    --border-color: #333333;
    --white: #ffffff;
    --success-color: #2ecc71;
    --danger-color: #e74c3c;
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.6);
}

body.light-mode {
    --text-color: #222222;
    --text-light: #666666;
    --bg-color: #F8F9FA;
    --surface-color: #FFFFFF;
    --border-color: #E5E5E5;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* =========================================
   Buttons
   ========================================= */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    border: none;
    transition: var(--transition);
}

.btn i {
    margin-right: 8px; /* RTL - icon on right */
    margin-left: 0;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-color); /* Dark text on gold button */
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
}

.btn-block {
    display: block;
    width: 100%;
}

/* =========================================
   Header & Navigation
   ========================================= */
.top-bar {
    background-color: #000000;
    color: #ffffff;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid #333333;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info span {
    margin-left: 20px;
}

.contact-info i {
    color: var(--primary-color);
    margin-left: 5px;
}

.top-links a {
    margin-right: 20px;
    color: var(--text-light);
}

.top-links a:hover {
    color: var(--primary-color);
}

.header {
    background-color: var(--surface-color);
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 100;
}

.header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    animation: slideDown 0.5s ease forwards;
    box-shadow: var(--shadow-md);
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo a {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    text-align: right;
}

.search-bar {
    flex: 0 1 500px;
    display: flex;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 12px 20px;
    padding-left: 50px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-color);
    color: var(--text-color);
    border-radius: 30px;
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    outline: none;
    transition: var(--transition);
}

.search-bar input:focus {
    border-color: var(--primary-color);
}

.search-bar button {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.search-bar button:hover {
    color: var(--primary-color);
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    position: relative;
    background-color: transparent;
    transition: var(--transition);
    gap: 4px;
}

.icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-text {
    font-size: 11px;
    font-weight: 600;
    transition: var(--transition);
}

.icon-link:hover .icon-text {
    color: var(--primary-color);
}

.icon-link svg, .icon-link i {
    width: 26px;
    height: 26px;
    font-size: 24px;
    transition: var(--transition);
    color: var(--text-color);
}

.icon-link:hover {
    transform: translateY(-2px);
}

.icon-link:hover svg, .icon-link:hover i {
    color: var(--primary-color);
    transform: scale(1.1);
}

.badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: var(--danger-color);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(231, 76, 60, 0.4);
}

.mobile-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
}

.close-main-nav {
    display: none;
}

/* Main Nav */
.main-nav {
    border-top: 1px solid var(--border-color);
    background-color: var(--surface-color);
}

.nav-links {
    display: flex;
    justify-content: center;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    display: block;
    padding: 15px 10px;
    font-size: 16px;
    font-weight: 600;
    position: relative;
    color: var(--text-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--primary-color);
}

.sale-link {
    color: var(--danger-color) !important;
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    position: relative;
    background-size: cover;
    background-position: center;
    height: 600px;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to left, rgba(18,18,18,0.9), rgba(18,18,18,0.4));
}

.hero-content {
    position: relative;
    z-index: 10;
    color: var(--white);
    max-width: 600px;
    margin-right: 0;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--primary-color);
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* =========================================
   Features Section
   ========================================= */
.features {
    padding: 50px 0;
    background-color: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.feature-item i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--text-color);
}

.feature-item p {
    font-size: 14px;
    color: var(--text-light);
}

/* =========================================
   Products Section
   ========================================= */
.products-section {
    padding: 80px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 32px;
    position: relative;
    padding-bottom: 10px;
    color: var(--primary-color);
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.view-all {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-light);
}

.view-all:hover {
    color: var(--primary-color);
}

.view-all i {
    margin-right: 5px;
    font-size: 14px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.product-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1;
    background-color: #2a2a2a;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 10px;
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    border-radius: 3px;
    z-index: 2;
}

.product-badge.new { background-color: var(--success-color); }
.product-badge.sale { background-color: var(--danger-color); }
.product-badge.exclusive { background-color: var(--primary-color); color: var(--bg-color); }

.product-actions {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateX(-20px);
    transition: var(--transition);
    z-index: 2;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 18px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
}

.action-btn:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
    border-color: var(--primary-color);
}

/* ================================================
   Card Action Bar - Wishlist Heart + Add to Cart
   ================================================ */
.card-action-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: auto;
    padding-top: 10px;
}

/* ---- Add to Cart Button (Gold) ---- */
.add-to-cart-btn {
    flex: 1;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
    border-radius: 12px;
    background-color: var(--primary-color);
    color: #1a1a1a;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    transition: all 0.25s ease;
}

.add-to-cart-btn svg {
    flex-shrink: 0;
    stroke: #1a1a1a;
    transition: stroke 0.25s ease;
}

.add-to-cart-btn:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb, 180,140,60), 0.3);
}

.add-to-cart-btn:hover svg {
    stroke: var(--primary-color);
}

/* ---- Wishlist Heart Button (SVG, Borderless) ---- */
.wishlist-btn {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 50%;
    background-color: transparent;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
}

.wishlist-btn .heart-icon {
    stroke: var(--text-light);
    fill: none;
    transition: all 0.25s ease;
}

.wishlist-btn:hover {
    border-color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.08);
}

.wishlist-btn:hover .heart-icon {
    stroke: #e74c3c;
    transform: scale(1.1);
}

.wishlist-btn.active {
    border-color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.1);
    animation: heartbeat 0.4s ease;
}

.wishlist-btn.active .heart-icon {
    stroke: #e74c3c;
    fill: #e74c3c;
}

@keyframes heartbeat {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.25); }
    70%  { transform: scale(0.92); }
    100% { transform: scale(1); }
}

.product-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.product-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.3;
}

.product-title a:hover {
    color: var(--primary-color);
}

/* وصف المنتج داخل بطاقة المنتج */
.product-desc {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 10px;
    /* عرض 2 سطر فقط مع ... */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    border-right: 2px solid var(--primary-color);
    padding-right: 8px;
    border-radius: 1px;
}

.product-rating {
    color: var(--primary-color);
    font-size: 12px;
    margin-bottom: 10px;
}

.product-rating span {
    color: var(--text-light);
    margin-right: 5px;
}

.product-price {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.current-price.price-agreement {
    color: var(--primary-color) !important;
    font-size: 13px;
    font-weight: 700;
}

.current-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.old-price {
    font-size: 14px;
    color: var(--text-light);
    text-decoration: line-through;
}

.price-currency-icon {
    height: 1.2em; /* Scales perfectly with the surrounding price font size */
    width: auto;
    display: inline-block;
    vertical-align: middle;
    margin-inline-start: 5px;
    filter: invert(1);
    mix-blend-mode: screen;
    opacity: 0.9;
    position: relative;
    top: -1px; /* Micro-adjustment for perfect vertical centering */
    object-fit: contain;
}

body.light-mode .price-currency-icon {
    filter: none;
    mix-blend-mode: multiply;
}

/* =========================================
   Footer
   ========================================= */
.footer {
    background-color: #000000;
    color: #e0e0e0;
    padding-top: 60px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.2fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.about-col p {
    margin-bottom: 20px;
    opacity: 0.8;
}

.footer-location {
    margin-top: 15px;
    margin-bottom: 20px;
}

.footer-location a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 10px 18px;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.footer-location a i {
    color: var(--primary-color);
    font-size: 16px;
    transition: var(--transition);
}

.footer-location a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(200, 155, 98, 0.15);
}

.footer-location a:hover i {
    transform: scale(1.2);
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.social-links a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    text-decoration: none;
}

.social-links a .icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.social-links a .social-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    transition: var(--transition);
}

/* Hover Actions & Brand Glows */
.social-links a:hover {
    transform: translateY(-5px);
}

.social-links a:hover .icon-circle {
    transform: scale(1.05);
}

.social-links a.facebook:hover .icon-circle {
    background-color: #1877F2;
    border-color: #1877F2;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.35);
}

.social-links a.facebook:hover .social-label {
    color: #1877F2;
}

.social-links a.instagram:hover .icon-circle {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(220, 39, 67, 0.35);
}

.social-links a.instagram:hover .social-label {
    color: #dc2743;
}

.social-links a.snapchat:hover .icon-circle {
    background-color: #FFFC00;
    border-color: #FFFC00;
    color: #000000;
    box-shadow: 0 8px 20px rgba(255, 252, 0, 0.35);
}

.social-links a.snapchat:hover .social-label {
    color: #FFFC00;
}

.footer-col h3 {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    opacity: 0.8;
}

.footer-col ul a:hover {
    opacity: 1;
    color: var(--primary-color);
    padding-right: 5px;
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-left: none;
    background-color: var(--surface-color);
    color: var(--text-color);
    border-radius: 0 4px 4px 0;
    outline: none;
    font-family: 'Cairo', sans-serif;
}

.newsletter-form button {
    background-color: var(--primary-color);
    color: var(--bg-color);
    border: none;
    padding: 0 20px;
    border-radius: 4px 0 0 4px;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: var(--primary-hover);
}

.footer-bottom {
    background-color: #080808;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ================================================
   Developer Credit Card Styling (Tech Builders)
   ================================================ */
.developer-credit-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 20px;
    transition: var(--transition);
    max-width: 420px;
}

body.light-mode .developer-credit-card {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.06);
}

.developer-credit-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(200, 155, 98, 0.1);
    transform: translateY(-2px);
}

.dev-logo-wrap {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1.5px solid var(--primary-color);
    box-shadow: 0 0 8px rgba(200, 155, 98, 0.2);
}

body.light-mode .dev-logo-wrap {
    border-color: var(--primary-color);
}

.dev-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dev-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: right;
}

html[dir="ltr"] .dev-info {
    text-align: left;
}

.dev-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    white-space: nowrap;
}

.dev-title {
    color: var(--text-light);
}

.dev-name {
    color: var(--primary-color);
    font-weight: 700;
    transition: var(--transition);
}

.dev-name:hover {
    color: var(--primary-hover);
}

.dev-slogan {
    font-size: 11px;
    color: var(--text-light);
    font-style: italic;
    white-space: nowrap;
}

.dev-phone {
    font-size: 12px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

.dev-phone:hover {
    color: var(--primary-color);
}

.payment-methods {
    font-size: 24px;
    display: flex;
    gap: 15px;
    color: var(--text-light);
}

/* =========================================
   Toast Notifications
   ========================================= */
.toast-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background-color: var(--surface-color);
    color: var(--text-color);
    padding: 15px 20px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 300px;
    transform: translateX(-120%);
    transition: transform 0.3s ease;
    border-right: 4px solid var(--primary-color);
}

.toast.show {
    transform: translateX(0);
}

.toast i {
    font-size: 20px;
    color: var(--success-color);
}



/* =========================================
   Popup Ticket (Feedback)
   ========================================= */
#feedback-mmos {
    position: fixed;
    left: 0;
    top: 300px;
    height: 100px;
    margin-left: -3px;
    margin-bottom: -3px;
    z-index: 500;
}

#feedback-mmos-tab {
    float: left;
    color: var(--bg-color);
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    text-align: center;
    width: 150px;
    height: 42px;
    background-color: var(--primary-color);
    margin-top: 0;
    margin-left: -55px;
    padding-top: 9px;
    border-radius: 3px;
    transform-origin: 50% center 0px !important;
    transform: rotate(-90deg) translateZ(0px) !important;
    line-height: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

#feedback-mmos-tab:hover {
    background-color: var(--primary-hover);
}

#mmos-ticket {
    display: none;
    position: fixed;
    left: 45px;
    top: 300px;
    background-color: var(--surface-color);
    width: 300px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 15px;
    box-shadow: var(--shadow-lg);
    z-index: 500;
    transition: var(--transition);
}

#mmos-ticket.show {
    display: block;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

#mmos-ticket .list-group {
    list-style: none;
    padding: 0;
    margin: 0;
}

#mmos-ticket .list-group-item {
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 12px 15px;
    font-size: 14px;
    border-radius: 4px;
    margin: 10px 0;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

#mmos-ticket .list-group-item:hover {
    border-color: var(--primary-color);
}

#mmos-ticket .list-group-item p {
    margin: 0;
    color: var(--text-light);
}

#mmos-ticket .icon-support {
    font-size: 24px;
    color: var(--primary-color);
    padding-left: 15px;
}

#mmos-ticket .btn-mmos {
    display: block;
    text-align: center;
    padding: 12px;
    background-color: var(--primary-color);
    color: var(--bg-color);
    font-weight: 700;
    border-radius: 4px;
    font-size: 16px;
    transition: var(--transition);
    margin-top: 15px;
    text-decoration: none;
}

#mmos-ticket .btn-mmos i {
    margin-left: 8px;
}

html[dir="ltr"] #mmos-ticket .btn-mmos i {
    margin-left: 0;
    margin-right: 8px;
}

#mmos-ticket .btn-mmos:hover {
    background-color: var(--primary-hover);
    color: var(--bg-color);
}

#mmos-ticket .btn-mmos.call-btn {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    margin-top: 10px;
}

#mmos-ticket .btn-mmos.call-btn:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
}

/* =========================================
   Promo Banner Marquee
   ========================================= */
.promo-banner {
    background-color: var(--surface-color);
    color: var(--text-color);
    padding: 12px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
    width: 100%;
    display: flex;
    direction: ltr; /* Force LTR direction for the marquee physics */
}

.promo-banner-inner {
    display: flex;
    flex-shrink: 0;
    width: max-content;
    animation: marquee-scroll 25s linear infinite;
    will-change: transform;
}

[dir="rtl"] .promo-banner-inner {
    animation: marquee-scroll 25s linear infinite;
}

.promo-item {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 0 80px; /* تقسيم المسافات بالتساوي بين الإعلانين */
}

.promo-highlight {
    color: var(--primary-color);
    font-weight: 700;
    margin-left: 5px;
    margin-right: 5px;
}

@keyframes marquee-scroll {
    0% {
        transform: translate3d(-100%, 0, 0);
    }
    100% {
        transform: translate3d(0, 0, 0);
    }
}

/* =========================================
   Responsive Design
   ========================================= */
.mobile-only-menu-item {
    display: none;
}

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
    }
}

@media (max-width: 992px) {
    .search-bar { flex: 0 1 300px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid { grid-template-columns: repeat(3, 1fr); gap: 15px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}

@media (max-width: 768px) {
    /* تفعيل شريط اللغة والإدارة العلوي بشكل مبسط وممركز */
    .top-bar {
        display: none !important;
    }

    /* تنسيق رأس الصفحة المرن */
    .header-main {
        flex-wrap: nowrap;
        padding: 8px 0;
        gap: 8px;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    .mobile-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        order: 1;
        font-size: 18px;
        cursor: pointer;
        width: 38px;
        height: 38px;
        border: 1.5px solid var(--primary-color);
        border-radius: 8px;
        color: var(--primary-color) !important;
        background: transparent !important;
        transition: var(--transition);
        flex-shrink: 0;
        box-shadow: 0 2px 8px rgba(200, 155, 98, 0.15);
    }
    .mobile-toggle:hover {
        background: rgba(200, 155, 98, 0.08) !important;
        border-color: var(--primary-hover) !important;
        color: var(--primary-hover) !important;
    }
    .close-main-nav {
        display: flex !important;
        position: absolute;
        top: 20px;
        left: 20px;
        width: 36px;
        height: 36px;
        border-radius: 8px !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        background: #000000 !important;
        color: #ffffff !important;
        font-size: 16px;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
        z-index: 101;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .close-main-nav:hover {
        background: var(--primary-color) !important;
        color: #1a1a1a !important;
        border-color: var(--primary-color) !important;
        transform: scale(1.08) rotate(90deg);
        box-shadow: 0 4px 14px rgba(200, 155, 98, 0.4);
    }
    html[dir="ltr"] .close-main-nav {
        left: auto;
        right: 20px;
    }
    .mobile-toggle, .logo, .header-icons, .search-bar {
        transition: all 0.25s ease-in-out;
    }
    
    .header-main.search-focused .mobile-toggle,
    .header-main.search-focused .logo,
    .header-main.search-focused .header-icons {
        opacity: 0 !important;
        visibility: hidden !important;
        width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        flex-shrink: 1 !important;
        flex-grow: 0 !important;
    }
    .header-main.search-focused .search-bar {
        margin: 0 !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
    }

    .logo {
        order: 2;
        flex-shrink: 0;
    }
    .logo a {
        font-size: 18px;
        font-weight: 700;
        line-height: 1.2;
    }
    .logo a span {
        font-size: 10px;
        font-weight: 400;
    }
    .header-icons {
        order: 4;
        gap: 8px;
        flex-shrink: 0;
    }
    .header-icons .icon-text {
        display: none;
    }
    .icon-link {
        margin-right: 0;
    }
    .icon-link svg, .icon-link i {
        width: 22px;
        height: 22px;
        font-size: 20px;
    }

    /* عرض شريط البحث في صف كامل أسفل الهيدر */
    .search-bar {
        display: flex !important;
        order: 3;
        flex: 1;
        margin: 0 10px;
        position: relative;
        min-width: 80px;
    }
    .search-bar input {
        width: 100%;
        height: 36px;
        padding: 6px 12px;
        padding-left: 32px;
        font-size: 12px;
        border-radius: 18px;
        font-family: 'Cairo', sans-serif;
    }
    html[dir="ltr"] .search-bar input {
        padding-left: 12px;
        padding-right: 32px;
    }
    .search-bar button {
        left: 10px;
        font-size: 14px;
    }
    html[dir="ltr"] .search-bar button {
        left: auto;
        right: 10px;
    }

    /* درج التنقل الجانبي الفاخر */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 290px;
        height: 100vh;
        background-color: rgba(30, 30, 30, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        box-shadow: -8px 0 30px rgba(0,0,0,0.6);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 99;
        overflow-y: auto;
        padding-top: 80px; /* ترك مساحة للهيدر المتداخل */
        border-left: 1px solid var(--border-color);
        display: block !important;
    }
    body.light-mode .main-nav {
        background-color: rgba(255, 255, 255, 0.98);
    }
    .main-nav.active {
        right: 0;
    }
    html[dir="ltr"] .main-nav {
        right: auto;
        left: -100%;
        border-left: none;
        border-right: 1px solid var(--border-color);
        box-shadow: 8px 0 30px rgba(0,0,0,0.6);
    }
    html[dir="ltr"] .main-nav.active {
        left: 0;
    }

    .nav-links {
        flex-direction: column;
        padding: 0 20px 40px;
    }
    .nav-links li {
        margin: 8px 0;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
    }
    .nav-links a {
        padding: 12px 5px;
        font-size: 16px;
        width: 100%;
        display: block;
    }
    .nav-links a::after {
        display: none; /* إخفاء الخط السفلي للتأثير المكتبي */
    }

    /* أزرار اللغة والآدمن داخل القائمة للموبايل */
    .mobile-only-menu-item {
        display: block !important;
        border-bottom: none !important;
        margin-top: 25px !important;
        padding-top: 15px;
        border-top: 1px dashed var(--border-color);
    }
    .lang-admin-mobile-row .lang-switcher {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    .lang-admin-mobile-row .lang-btn {
        width: 100%;
        justify-content: center;
        height: 44px;
        border-radius: 10px;
    }

    /* تنسيق لوحة الإدارة على الهواتف */
    .admin-form .form-row {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }
    .admin-tabs {
        gap: 4px;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 4px;
    }
    .admin-tab {
        padding: 8px 12px;
        font-size: 12.5px;
    }

    .hero { height: 400px; }
    .hero-content h1 { font-size: 32px; }
    
    .features-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .footer-grid { grid-template-columns: 1fr; }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    #feedback-mmos {
        top: 50%;
    }
    
    #mmos-ticket {
        top: 30%;
        left: 20px;
        right: 20px;
        width: auto;
    }
}

@media (max-width: 576px) {
    /* شبكة مميزات الموقع المدمجة */
    .features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        padding: 25px 0;
    }
    .feature-item {
        padding: 12px 8px;
    }
    .feature-item i {
        font-size: 28px;
        margin-bottom: 8px;
    }
    .feature-item h3 {
        font-size: 14px;
    }
    .feature-item p {
        font-size: 11px;
    }

    /* شبكة عرض المنتجات بعمودين - مظهر احترافي ومحكم */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .product-card {
        border-radius: 12px;
    }
    .product-info {
        padding: 10px;
        gap: 2px;
    }
    .product-badge {
        top: 8px;
        right: 8px;
        padding: 2px 6px;
        font-size: 10px;
    }
    html[dir="ltr"] .product-badge {
        left: 8px;
        right: auto;
    }
    .product-title {
        font-size: 13px;
        font-weight: 600;
        margin-bottom: 4px;
        height: 36px;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        line-height: 1.4;
    }
    .product-desc {
        display: none !important; /* إخفاء الوصف بالكامل في وضع الهواتف للمظهر النظيف */
    }
    .product-rating {
        font-size: 10px;
        margin-bottom: 6px;
    }
    .product-price {
        margin-bottom: 8px;
        gap: 6px;
    }
    .current-price {
        font-size: 15px;
    }
    .old-price {
        font-size: 12px;
    }

    /* أزرار الإجراءات الدائرية المتناسقة داخل البطاقات لمنع التفاف النصوص */
    .card-action-bar {
        gap: 8px;
        margin-top: auto;
        padding-top: 6px;
    }
    .add-to-cart-btn {
        font-size: 0 !important; /* إخفاء نص "أضف إلى السلة" */
        width: 38px;
        height: 38px;
        min-width: 38px;
        border-radius: 50% !important;
        padding: 0 !important;
        border: 2px solid var(--primary-color);
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .add-to-cart-btn svg {
        width: 18px;
        height: 18px;
        margin: 0;
    }
    .wishlist-btn {
        width: 38px;
        height: 38px;
        min-width: 38px;
        border-radius: 50% !important;
        padding: 0 !important;
    }
    .wishlist-btn svg {
        width: 22px;
        height: 22px;
    }

    /* تحسين عرض الهيرو (Hero) */
    .hero {
        height: 350px;
    }
    .hero-content {
        text-align: center;
        padding: 0 10px;
    }
    .hero-content h1 {
        font-size: 28px;
        margin-bottom: 12px;
    }
    .hero-content p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    /* تعديل النوافذ المنبثقة لتناسب أبعاد هواتف الأندرويد */
    .modal-box {
        padding: 24px 16px;
        border-radius: 16px;
    }
    .modal-title {
        font-size: 18px;
    }
    .modal-sub {
        font-size: 12px;
        margin-bottom: 15px;
    }
    .hours-item, .branch-item {
        padding: 12px;
        gap: 10px;
    }
    .hours-details strong, .branch-details strong {
        font-size: 13px;
    }
    .hours-details span, .branch-details span {
        font-size: 11px;
    }
    .btn-consult {
        padding: 12px;
        font-size: 13.5px;
        border-radius: 10px;
    }

    /* تحسين تصميم وعرض أقسام استعراض الأقسام المميزة */
    .category-showcase {
        padding: 40px 0;
    }
    .category-showcase-image {
        aspect-ratio: 16/9;
        border-radius: 12px;
    }
    .category-showcase-info {
        gap: 10px;
    }
    .cat-label {
        font-size: 11px;
        padding: 4px 10px;
    }
    .cat-title {
        font-size: 20px;
    }
    .cat-desc {
        font-size: 13.5px;
        line-height: 1.6;
    }
    .cat-specs {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .cat-specs li {
        font-size: 12.5px;
    }
    .cat-price-row {
        padding: 10px 0;
        gap: 8px;
    }
    .cat-price {
        font-size: 24px;
    }
    .cat-price span {
        font-size: 13px;
    }
    .cat-cart-btn {
        height: 44px;
        font-size: 14px;
        border-radius: 10px;
    }
    .cat-actions .wishlist-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        border-radius: 50% !important;
    }
}

/* =========================================
   Language Switcher Styles
   ========================================= */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Cairo', sans-serif;
    outline: none;
}

.lang-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.lang-btn .icon {
    font-size: 15px;
}

/* Directional adjustments for LTR */
html[dir="ltr"] .fa-arrow-left::before {
    content: "\f061"; /* Change to arrow-right */
}
html[dir="ltr"] .fa-arrow-right::before {
    content: "\f060"; /* Change to arrow-left */
}

/* ================================================
   Admin Button (Top Bar) — inherits lang-btn styles
   ================================================ */
.admin-btn.logged-in {
    background: rgba(46, 204, 113, 0.12);
    color: #2ecc71;
    border-color: #2ecc71;
}
.admin-btn.logged-in:hover {
    background: #2ecc71;
    color: #fff;
    border-color: #2ecc71;
    box-shadow: 0 4px 14px rgba(46,204,113,0.4);
}


/* ================================================
   Modal Overlay
   ================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.72);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.25s ease;
}
.modal-overlay[style*="display:none"],
.modal-overlay[style*="display: none"] {
    display: none !important;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-box {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 36px;
    width: 100%;
    max-width: 440px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    animation: slideUp 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-box--wide { max-width: 640px; }
@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

.modal-close {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: #000000;
    color: #ffffff;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-close:hover {
    background: var(--primary-color);
    color: #1a1a1a;
    border-color: var(--primary-color);
    transform: scale(1.08) rotate(90deg);
    box-shadow: 0 4px 14px rgba(200, 155, 98, 0.4);
}

.modal-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #b8860b);
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: #fff;
    margin: 0 auto 16px;
    box-shadow: 0 6px 20px rgba(var(--primary-rgb,180,140,60),0.4);
}

.modal-title {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 4px;
}
.modal-sub {
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 24px;
}

/* ================================================
   About Us Modal Custom Styling
   ================================================ */
.about-modal-box {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 85vh;
}

.about-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 10px;
    text-align: right;
}

html[dir="ltr"] .about-content-wrapper {
    text-align: left;
}

.about-section h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.about-section p {
    font-size: 14.5px;
    color: var(--text-color);
    line-height: 1.6;
}

.about-features-list, .about-offers-list {
    margin-top: 8px;
    padding-right: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

html[dir="ltr"] .about-features-list, 
html[dir="ltr"] .about-offers-list {
    padding-right: 0;
    padding-left: 15px;
}

.about-features-list li, .about-offers-list li {
    font-size: 14px;
    position: relative;
    padding-right: 15px;
    color: var(--text-color);
}

html[dir="ltr"] .about-features-list li, 
html[dir="ltr"] .about-offers-list li {
    padding-right: 0;
    padding-left: 15px;
}

.about-features-list li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    right: 0;
}

html[dir="ltr"] .about-features-list li::before {
    right: auto;
    left: 0;
}

.about-offers-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding-right: 0;
}

html[dir="ltr"] .about-offers-list li {
    padding-left: 0;
}

.about-offers-list li i {
    margin-top: 3px;
    font-size: 14px;
    color: var(--primary-color);
}

.about-section.highlight-box {
    background: rgba(200, 155, 98, 0.05);
    border: 1px dashed var(--primary-color);
    border-radius: 12px;
    padding: 15px;
    transition: var(--transition);
}

.about-section.highlight-box:hover {
    background: rgba(200, 155, 98, 0.08);
    transform: translateY(-2px);
}

.modal-footer-actions {
    margin-top: 15px;
}

/* ================================================
   Additional Footer Modals Custom Styling
   ================================================ */
.hours-list, .branches-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.hours-item, .branch-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: var(--transition);
}

body.light-mode .hours-item, body.light-mode .branch-item {
    background: rgba(0, 0, 0, 0.02);
}

.hours-item:hover, .branch-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.hours-item i, .branch-item i {
    font-size: 18px;
    color: var(--primary-color);
    margin-top: 3px;
}

.hours-details, .branch-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    text-align: right;
}

html[dir="ltr"] .hours-details, html[dir="ltr"] .branch-details {
    text-align: left;
}

.hours-details strong, .branch-details strong {
    font-size: 15px;
    color: var(--text-color);
}

.hours-details span, .branch-details span {
    font-size: 13.5px;
    color: var(--text-light);
}

.consult-buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

@media (max-width: 480px) {
    .consult-buttons-grid {
        grid-template-columns: 1fr;
    }
}

.btn-consult {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.btn-consult.btn-phone {
    background: linear-gradient(135deg, var(--primary-color), #b8860b);
    color: #1a1a1a;
}

.btn-consult.btn-phone:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb, 180, 140, 60), 0.4);
}

.btn-consult.btn-whatsapp {
    background: #25D366;
    color: #ffffff;
}

.btn-consult.btn-whatsapp:hover {
    background: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.map-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 8px 16px;
    background: rgba(200, 155, 98, 0.1);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    width: fit-content;
    transition: var(--transition);
}

.map-btn:hover {
    background: var(--primary-color);
    color: var(--bg-color);
}

/* ================================================
   Admin Form Fields
   ================================================ */
.admin-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.admin-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}
.admin-form label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 6px;
}
.admin-form label i { color: var(--primary-color); font-size: 12px; }
.admin-form input,
.admin-form select,
.admin-form textarea {
    padding: 11px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-color);
    color: var(--text-color);
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
    box-sizing: border-box;
}
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb,180,140,60),0.15);
}
.admin-form textarea { resize: vertical; }

.login-error {
    color: #e74c3c;
    font-size: 13px;
    text-align: center;
    margin-bottom: 12px;
    background: rgba(231,76,60,0.1);
    padding: 8px 12px;
    border-radius: 8px;
}

.btn-admin-submit {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, var(--primary-color), #b8860b);
    color: #1a1a1a;
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
    margin-top: 4px;
}
.btn-admin-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb,180,140,60),0.4);
}

/* Edit button variant — blue tint */
.btn-edit-submit {
    background: linear-gradient(135deg, #2980b9, #1a5276);
    color: #fff;
}
.btn-edit-submit:hover {
    box-shadow: 0 6px 20px rgba(41,128,185,0.4);
}

/* =========================================
   Admin Panel Header
   ========================================= */
.admin-panel-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-color);
}

.admin-panel-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-color), #b8860b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #1a1a1a;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(var(--primary-rgb,180,140,60),0.35);
}

/* =========================================
   Admin Tabs
   ========================================= */
.admin-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0;
}

.admin-tab {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 22px;
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
    background: transparent;
    color: var(--text-light);
    transition: all 0.25s ease;
    margin-bottom: -2px;
    border-bottom: 2px solid transparent;
}

.admin-tab:hover {
    color: var(--primary-color);
    background: rgba(var(--primary-rgb,180,140,60),0.06);
}

.admin-tab.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    background: rgba(var(--primary-rgb,180,140,60),0.08);
}

/* Delete tab in red when active */
.admin-tab[data-tab="delete"].active {
    color: #e74c3c;
    border-bottom-color: #e74c3c;
    background: rgba(231,76,60,0.06);
}

/* Edit tab in blue when active */
.admin-tab[data-tab="edit"].active {
    color: #2980b9;
    border-bottom-color: #2980b9;
    background: rgba(41,128,185,0.06);
}

/* Tab Content Panes */
.admin-tab-content {
    display: none;
    animation: fadeIn 0.25s ease;
}

.admin-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Tab hint text */
.tab-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: var(--text-light);
    margin-bottom: 16px;
    padding: 10px 14px;
    background: var(--surface-color);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

/* =========================================
   Product Picker Grid (Edit & Delete tabs)
   ========================================= */
.product-picker-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 360px;
    overflow-y: auto;
    padding-right: 4px;
}

.product-picker-grid::-webkit-scrollbar { width: 5px; }
.product-picker-grid::-webkit-scrollbar-track { background: transparent; }
.product-picker-grid::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }

.picker-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: var(--surface-color);
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.picker-item:hover {
    border-color: var(--primary-color);
    background: rgba(var(--primary-rgb,180,140,60),0.04);
    transform: translateX(-2px);
}

.picker-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
    background: var(--bg-color);
    flex-shrink: 0;
}

.picker-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.picker-item-info strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.picker-cat {
    font-size: 12px;
    color: var(--text-light);
}

.picker-price {
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 600;
}

.picker-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.edit-action {
    background: rgba(41,128,185,0.12);
    color: #2980b9;
    border: 1px solid rgba(41,128,185,0.25);
}

.edit-action:hover {
    background: #2980b9;
    color: #fff;
    transform: scale(1.04);
}

.delete-action {
    background: rgba(231,76,60,0.1);
    color: #e74c3c;
    border: 1px solid rgba(231,76,60,0.25);
}

.delete-action:hover {
    background: #e74c3c;
    color: #fff;
    transform: scale(1.04);
}

/* Empty picker state */
.picker-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px 20px;
    color: var(--text-light);
    font-size: 14px;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    text-align: center;
}

.picker-empty i {
    font-size: 22px;
    opacity: 0.5;
}

/* Back to picker button */
.btn-back-picker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    margin-bottom: 18px;
    background: var(--surface-color);
    color: var(--text-color);
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-back-picker:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* =========================================
   Delete Confirm Box
   ========================================= */
.delete-confirm-box {
    position: sticky;
    bottom: 0;
    margin-top: 20px;
    animation: slideDown 0.3s ease;
}

.delete-confirm-inner {
    background: var(--surface-color);
    border: 2px solid rgba(231,76,60,0.35);
    border-radius: 14px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 -4px 20px rgba(231,76,60,0.12);
}

.delete-confirm-inner > i {
    font-size: 40px;
    color: #e74c3c;
    margin-bottom: 10px;
    display: block;
}

.delete-confirm-inner h3 {
    font-size: 17px;
    font-weight: 700;
    color: #e74c3c;
    margin: 0 0 8px;
}

.delete-confirm-inner p {
    font-size: 13.5px;
    color: var(--text-light);
    margin: 0 0 18px;
    line-height: 1.6;
}

.delete-confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-confirm-delete {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-confirm-delete:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(231,76,60,0.4);
}

.btn-cancel-delete {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--bg-color);
    color: var(--text-color);
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel-delete:hover {
    border-color: var(--text-light);
    transform: translateY(-1px);
}


/* Image Upload Area */
.image-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    background: var(--bg-color);
}
.image-upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(var(--primary-rgb,180,140,60),0.05);
}
.image-upload-area i {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: block;
}
.image-upload-area p { font-size: 13px; color: var(--text-light); margin: 0; }
.image-upload-area span { color: var(--primary-color); font-weight: 600; }

.btn-remove-img {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 6px 14px;
    background: rgba(231,76,60,0.1);
    color: #e74c3c;
    border: 1px solid rgba(231,76,60,0.3);
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    font-size: 13px;
    transition: all 0.2s;
}
.btn-remove-img:hover { background: #e74c3c; color: #fff; }

/* =========================================
   Admin – Quantity Stepper
   ========================================= */
.qty-input-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-color);
    transition: border-color 0.2s;
}

.qty-input-wrap:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(200,155,98,0.12);
}

.qty-btn {
    width: 40px;
    height: 44px;
    border: none;
    background: var(--surface-color);
    color: var(--primary-color);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.qty-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: #1a1a1a;
}

.qty-btn:disabled {
    cursor: not-allowed;
}

.qty-input-wrap input[type="number"] {
    flex: 1;
    height: 44px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
    color: var(--text-color);
    background: transparent;
    outline: none;
    -moz-appearance: textfield;
    min-width: 0;
}

.qty-input-wrap input[type="number"]::-webkit-inner-spin-button,
.qty-input-wrap input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

/* Field hint text */
.field-hint {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    color: var(--text-light);
    margin-top: 7px;
}

.field-hint i { color: var(--primary-color); font-size: 11px; }

/* =========================================
   Admin – Discount Field
   ========================================= */
.discount-group-wrap {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.discount-input-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-color);
    transition: border-color 0.2s;
}

.discount-input-wrap:focus-within {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 3px rgba(231,76,60,0.12);
}

.discount-input-wrap input[type="number"] {
    flex: 1;
    height: 44px;
    border: none;
    padding: 0 14px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
    color: var(--text-color);
    background: transparent;
    outline: none;
    -moz-appearance: textfield;
}

.discount-input-wrap input[type="number"]::-webkit-inner-spin-button,
.discount-input-wrap input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

.discount-unit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 44px;
    background: rgba(231,76,60,0.1);
    color: #e74c3c;
    font-size: 20px;
    font-weight: 700;
    border-right: 1.5px solid rgba(231,76,60,0.2);
    flex-shrink: 0;
}

/* Discount live preview */
.discount-preview {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    padding: 10px 14px;
    background: rgba(231,76,60,0.05);
    border: 1px dashed rgba(231,76,60,0.3);
    border-radius: 10px;
    font-size: 13px;
    min-height: 0;
    transition: all 0.3s;
}

.discount-preview:empty { display: none; }

.dp-old {
    color: var(--text-light);
    text-decoration: line-through;
    font-size: 13px;
}

.dp-arrow {
    color: var(--text-light);
    font-size: 12px;
}

.dp-new {
    color: #2ecc71;
    font-weight: 700;
    font-size: 15px;
}

.dp-saved {
    background: rgba(231,76,60,0.12);
    color: #e74c3c;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-right: auto;
}

/* =========================================
   Product Card – Stock Badge
   ========================================= */
.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.stock-badge.stock-ok {
    background: rgba(46,204,113,0.1);
    color: #2ecc71;
    border: 1px solid rgba(46,204,113,0.25);
}

.stock-badge.service-stock {
    background: rgba(200, 155, 98, 0.12);
    color: var(--primary-color);
    border: 1px solid rgba(200, 155, 98, 0.35);
}

.stock-badge.stock-med {
    background: rgba(243,156,18,0.1);
    color: #f39c12;
    border: 1px solid rgba(243,156,18,0.25);
}

.stock-badge.stock-low {
    background: rgba(231,76,60,0.1);
    color: #e74c3c;
    border: 1px solid rgba(231,76,60,0.25);
    animation: pulse-stock 1.5s ease infinite;
}

@keyframes pulse-stock {
    0%, 100% { box-shadow: 0 0 0 0 rgba(231,76,60,0.3); }
    50%       { box-shadow: 0 0 0 5px rgba(231,76,60,0); }
}


/* =========================================
   Category Showcase Sections
   ========================================= */

.category-showcase {
    padding: 90px 0;
    background-color: var(--bg-color);
    position: relative;
    overflow: hidden;
}

.category-showcase--alt {
    background-color: var(--surface-color);
}

/* Subtle decorative background pattern */
.category-showcase::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200,155,98,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.category-showcase-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

/* Reversed layout: image on right, text on left */
.category-showcase-inner.reverse {
    direction: ltr;
}

.category-showcase-inner.reverse .category-showcase-info {
    direction: rtl;
}

/* ---- Image Side ---- */
.category-showcase-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3;
    background-color: #2a2a2a;
}

.category-showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.category-showcase:hover .category-showcase-image img {
    transform: scale(1.04);
}

/* Image Overlay label at bottom */
.cat-img-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 25px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: opacity 0.3s ease;
}

/* Category Badges on image */
.cat-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    z-index: 5;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
}

.cat-badge--new {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: #fff;
}

.cat-badge--sale {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
}

.cat-badge--exclusive {
    background: linear-gradient(135deg, #C89B62, #a67c4b);
    color: #1a1a1a;
}

/* ---- Info Side ---- */
.category-showcase-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cat-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 14px;
    border: 1px solid var(--primary-color);
    border-radius: 30px;
    width: fit-content;
}

.cat-label i {
    font-size: 14px;
}

.cat-title {
    font-size: 34px;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.3;
    margin: 0;
}

.cat-desc {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
    margin: 0;
}

/* Specs List */
.cat-specs {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
}

.cat-specs li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-color);
    font-weight: 500;
}

.cat-specs li i {
    color: var(--primary-color);
    font-size: 12px;
    flex-shrink: 0;
    background: rgba(200,155,98,0.12);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Price + Rating Row */
.cat-price-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin: 5px 0;
}

.cat-price-label {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.cat-price {
    font-size: 38px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.cat-price span {
    font-size: 18px;
    font-weight: 500;
    margin-right: 4px;
}

.cat-price-old {
    font-size: 16px;
    color: var(--text-light);
    text-decoration: line-through;
    margin-top: 5px;
}

.cat-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-direction: column;
    align-items: flex-end;
    color: var(--primary-color);
    font-size: 16px;
}

.cat-rating span {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 4px;
}

/* Actions */
.cat-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.cat-cart-btn {
    flex: 1;
    height: 52px;
    font-size: 16px;
    border-radius: 14px;
}

/* Divider between sections */
.category-showcase + .category-showcase {
    border-top: 1px solid var(--border-color);
}

/* =========================================
   Responsive – Category Showcase
   ========================================= */
@media (max-width: 900px) {
    .category-showcase-inner,
    .category-showcase-inner.reverse {
        grid-template-columns: 1fr;
        direction: rtl;
        gap: 40px;
    }

    .category-showcase-inner.reverse .category-showcase-info {
        direction: rtl;
    }

    .cat-title {
        font-size: 26px;
    }

    .cat-price {
        font-size: 30px;
    }

    .category-showcase {
        padding: 60px 0;
    }

    .cat-specs {
        grid-template-columns: 1fr;
    }

    .cat-price-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .cat-rating {
        flex-direction: row;
        align-items: center;
    }
}

@media (max-width: 600px) {
    .cat-title {
        font-size: 22px;
    }

    .cat-price {
        font-size: 26px;
    }

    .cat-actions {
        flex-direction: column;
    }

    .cat-actions .wishlist-btn {
        width: 100%;
        border-radius: 14px;
    }
}

/* =========================================
   Toast Notifications
   ========================================= */
#toast-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: none;
}

.toast {
    background: var(--surface-color);
    color: var(--text-color);
    padding: 16px 22px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 15px;
    transform: translateX(-150%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid var(--primary-color);
    pointer-events: auto;
    min-width: 280px;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast i {
    font-size: 24px;
    color: var(--primary-color);
}

.toast div strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
    color: var(--text-color);
}

.toast div p {
    margin: 0;
    font-size: 13.5px;
    color: var(--text-light);
}

@media (max-width: 480px) {
    #toast-container {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }
    .toast {
        min-width: auto;
        width: 100%;
        transform: translateY(100%);
    }
    .toast.show {
        transform: translateY(0);
    }
}

/* =========================================
   Side Drawer — Cart & Wishlist
   ========================================= */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    backdrop-filter: blur(3px);
}

.drawer-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.side-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 100%;
    height: 100vh;
    background: var(--surface-color);
    z-index: 1200;
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 40px rgba(0,0,0,0.5);
    transition: right 0.38s cubic-bezier(0.4,0,0.2,1);
    border-left: 1px solid var(--border-color);
}

.side-drawer.open {
    right: 0;
}

/* Drawer Header */
.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-color);
    flex-shrink: 0;
}

.drawer-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-color);
}

.drawer-title i {
    color: var(--primary-color);
    font-size: 18px;
}

.drawer-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    background: var(--primary-color);
    color: #1a1a1a;
    font-size: 12px;
    font-weight: 700;
    border-radius: 50px;
}

.drawer-close {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: #000000;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.drawer-close:hover {
    background: var(--primary-color);
    color: #1a1a1a;
    border-color: var(--primary-color);
    transform: scale(1.08) rotate(90deg);
    box-shadow: 0 4px 14px rgba(200, 155, 98, 0.4);
}

/* Drawer Body */
.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.drawer-body::-webkit-scrollbar { width: 5px; }
.drawer-body::-webkit-scrollbar-track { background: transparent; }
.drawer-body::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }

/* Empty State */
.drawer-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 60px 20px;
    text-align: center;
    color: var(--text-light);
    gap: 12px;
    min-height: 260px;
}

.drawer-empty i {
    font-size: 52px;
    opacity: 0.25;
    color: var(--primary-color);
}

.drawer-empty p {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.drawer-empty span {
    font-size: 13px;
    color: var(--text-light);
}

/* Drawer Item Card */
.drawer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: border-color 0.2s;
    animation: slideIn 0.25s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(12px); }
    to   { opacity: 1; transform: translateX(0); }
}

.drawer-item:hover {
    border-color: var(--primary-color);
}

.drawer-item img {
    width: 68px;
    height: 68px;
    object-fit: cover;
    border-radius: 10px;
    background: var(--surface-color);
    flex-shrink: 0;
}

.drawer-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.drawer-item-name {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.drawer-item-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
}

/* Qty Stepper inside drawer */
.drawer-item-qty {
    display: flex;
    align-items: center;
    gap: 6px;
}

.drawer-item-qty span {
    font-size: 14px;
    font-weight: 700;
    min-width: 22px;
    text-align: center;
    color: var(--text-color);
}

.dqty-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1.5px solid var(--border-color);
    background: var(--surface-color);
    color: var(--text-color);
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s;
    flex-shrink: 0;
}

.dqty-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #1a1a1a;
}

/* Add to cart from wishlist */
.wish-add-to-cart {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: rgba(var(--primary-rgb,200,155,98),0.12);
    color: var(--primary-color);
    border: 1px solid rgba(var(--primary-rgb,200,155,98),0.3);
    border-radius: 6px;
    font-family: 'Cairo', sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: fit-content;
}

.wish-add-to-cart:hover {
    background: var(--primary-color);
    color: #1a1a1a;
}

/* Unified Vertical Delete / Remove Button */
.drawer-item-remove, .picker-delete-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    align-self: center;
    transition: transform 0.2s ease;
}

.drawer-item-remove:hover, .picker-delete-btn:hover {
    transform: scale(1.08);
}

.remove-icon-circle {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: all 0.25s ease;
}
.drawer-item-remove:hover .remove-icon-circle,
.picker-delete-btn:hover .remove-icon-circle {
    background: #e74c3c;
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.remove-text-label {
    font-family: 'Cairo', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #e74c3c;
    transition: color 0.2s ease;
}

.drawer-item-remove:hover .remove-text-label,
.picker-delete-btn:hover .remove-text-label {
    color: #c0392b;
}

/* Drawer Footer */
.drawer-footer {
    padding: 18px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.drawer-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    color: var(--text-color);
    padding: 4px 0;
}

.drawer-total strong {
    font-size: 19px;
    font-weight: 700;
    color: var(--primary-color);
}

.drawer-checkout-btn {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, var(--primary-color), #b8860b);
    color: #1a1a1a;
    border: none;
    border-radius: 12px;
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.drawer-checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200,155,98,0.4);
}

.drawer-clear-btn {
    width: 100%;
    padding: 9px;
    background: transparent;
    color: #e74c3c;
    border: 1.5px solid rgba(231,76,60,0.3);
    border-radius: 10px;
    font-family: 'Cairo', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: all 0.2s;
}

.drawer-clear-btn:hover {
    background: #e74c3c;
    border-color: #e74c3c;
    color: #fff;
}

/* Mobile: full-width drawer */
@media (max-width: 480px) {
    .side-drawer {
        width: 100%;
        right: -100%;
    }
}

/* =========================================
   User Account Modal
   ========================================= */
.user-account-box {
    max-width: 500px;
    padding: 0;
    overflow: hidden;
    background: var(--bg-color);
}

.user-auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background: var(--surface-color);
}

.auth-tab {
    flex: 1;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
    color: var(--text-light);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
}

.auth-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: rgba(var(--primary-rgb, 200, 155, 98), 0.05);
}

.auth-content {
    padding: 30px;
}

.auth-title {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-color);
}

.auth-input-group {
    margin-bottom: 15px;
}

.auth-input-group input {
    width: 100%;
    padding: 14px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    transition: all 0.3s;
    outline: none;
}

.auth-input-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(200, 155, 98, 0.15);
}

.phone-group {
    display: flex;
    gap: 10px;
}

.country-code-select {
    width: 130px;
    padding: 14px 10px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    outline: none;
    direction: ltr;
}

.country-code-select option {
    direction: rtl;
}

.phone-group input {
    flex: 1;
    direction: ltr;
    text-align: right;
}

.phone-group input::placeholder {
    text-align: right;
}

.checkbox-group {
    margin-bottom: 15px;
}

.checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13.5px;
    color: var(--text-light);
    line-height: 1.6;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 4px;
    cursor: pointer;
    accent-color: var(--primary-color);
    width: 16px;
    height: 16px;
}

.auth-btn {
    width: 100%;
    padding: 15px;
    margin-top: 10px;
    font-size: 16px;
}

.auth-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    font-size: 14px;
}

.auth-footer.center {
    justify-content: center;
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.auth-footer a:hover {
    color: #a67c00;
    text-decoration: underline;
}

@media (max-width: 480px) {
    .auth-content { padding: 20px; }
    .form-row { flex-direction: column; gap: 0; }
    
    /* Android Mobile Compactness */
    .logo a span { display: none; }
    .logo a { font-size: 16px; }
    .mobile-toggle { width: 32px !important; height: 32px !important; }
    .hamburger-icon { width: 20px; height: 20px; }
    .header-icons { gap: 4px; }
    .icon-link svg { width: 18px; height: 18px; }
    .search-bar { min-width: 50px; margin: 0 4px; }
    .search-bar input { padding: 4px 10px; padding-left: 24px; font-size: 11px; height: 32px; }
    html[dir="ltr"] .search-bar input { padding-left: 10px; padding-right: 24px; }
    .search-bar button { font-size: 12px; }
    
    .hero-content h1 { font-size: 22px; margin-bottom: 8px; }
    .hero-content p { font-size: 13px; margin-bottom: 15px; }
    
    .products-grid { gap: 8px !important; }
    .product-title { font-size: 12px; }
    .product-price { font-size: 13px; }
    .product-info { padding: 8px; }
    
    .cat-title { font-size: 20px; }
    .category-showcase-inner { gap: 30px; }
}

/* =========================================
   LTR / English Language Layout Overrides
   ========================================= */
html[dir="ltr"] body,
html[dir="ltr"] .lang-btn,
html[dir="ltr"] .admin-form input,
html[dir="ltr"] .admin-form select,
html[dir="ltr"] .admin-form textarea,
html[dir="ltr"] .btn-admin-submit,
html[dir="ltr"] .auth-tab,
html[dir="ltr"] .auth-input-group input,
html[dir="ltr"] .country-code-select {
    font-family: 'Outfit', 'Inter', 'Cairo', sans-serif;
}

html[dir="ltr"] .logo a {
    text-align: left;
}

html[dir="ltr"] .contact-info span {
    margin-left: 0;
    margin-right: 20px;
}

html[dir="ltr"] .contact-info span:last-child {
    margin-right: 0;
}

html[dir="ltr"] .contact-info i {
    margin-left: 0;
    margin-right: 5px;
}

html[dir="ltr"] .search-bar input {
    padding-left: 20px;
    padding-right: 50px;
}

html[dir="ltr"] .search-bar button {
    left: auto;
    right: 15px;
}

html[dir="ltr"] .btn i {
    margin-right: 0;
    margin-left: 8px;
}

html[dir="ltr"] .hero-content {
    margin-right: auto;
    margin-left: 0;
    text-align: left;
}

html[dir="ltr"] .hero-overlay {
    background: linear-gradient(to right, rgba(18,18,18,0.95), rgba(18,18,18,0.4));
}

html[dir="ltr"] .section-header h2::after {
    right: auto;
    left: 0;
}

html[dir="ltr"] .view-all i {
    margin-right: 5px;
    margin-left: 0;
    transform: rotate(180deg);
}

html[dir="ltr"] .product-badge {
    right: auto;
    left: 15px;
}

html[dir="ltr"] .product-actions {
    left: auto;
    right: 15px;
    transform: translateX(20px);
}

html[dir="ltr"] .product-card:hover .product-actions {
    transform: translateX(0);
}

html[dir="ltr"] .product-desc {
    border-right: none;
    border-left: 2px solid var(--primary-color);
    padding-right: 0;
    padding-left: 8px;
}

html[dir="ltr"] .product-rating span {
    margin-right: 0;
    margin-left: 5px;
}

/* Category Showcases Alternating Order in LTR */
html[dir="ltr"] .category-showcase-inner {
    direction: ltr;
}

html[dir="ltr"] .category-showcase-inner.reverse {
    direction: rtl; /* this flips column ordering visually in grid */
}

html[dir="ltr"] .category-showcase-inner.reverse .category-showcase-info {
    direction: ltr; /* keep internal text running left-to-right */
}

html[dir="ltr"] .cat-label {
    letter-spacing: 1px;
}

html[dir="ltr"] .cat-specs li {
    gap: 10px;
}

html[dir="ltr"] .cat-specs li i {
    margin-right: 0;
}

html[dir="ltr"] .cat-price span {
    margin-right: 0;
    margin-left: 4px;
}

html[dir="ltr"] .cat-rating {
    align-items: flex-start; /* aligns properly to the left */
}

html[dir="ltr"] .cat-badge {
    right: auto;
    left: 18px;
}

/* Newsletters Footer Layout */
html[dir="ltr"] .newsletter-form input {
    border-radius: 4px 0 0 4px;
    border-left: 1px solid var(--border-color);
    border-right: none;
}

html[dir="ltr"] .newsletter-form button {
    border-radius: 0 4px 4px 0;
}

html[dir="ltr"] .footer-col h3::after {
    right: auto;
    left: 0;
}

html[dir="ltr"] .footer-col ul a:hover {
    padding-right: 0;
    padding-left: 5px;
}

/* Form inputs & phone fields */
html[dir="ltr"] .phone-group input {
    text-align: left;
}

html[dir="ltr"] .phone-group input::placeholder {
    text-align: left;
}

html[dir="ltr"] .modal-close {
    left: auto;
    right: 16px;
}

html[dir="ltr"] .toast {
    border-right: none;
    border-left: 4px solid var(--primary-color);
    transform: translateX(-150%);
}

html[dir="ltr"] .toast.show {
    transform: translateX(0);
}

/* =========================================
   Offer Countdown Timer Card Bar
   ========================================= */
.offer-countdown {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
    padding: 8px 12px;
    background: rgba(231, 76, 60, 0.05);
    border: 1px dashed rgba(231, 76, 60, 0.25);
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: #e74c3c;
    animation: fadeIn 0.3s ease;
}

body.light-mode .offer-countdown {
    background: rgba(231, 76, 60, 0.04);
    border-color: rgba(231, 76, 60, 0.2);
}

.offer-countdown i.timer-icon {
    font-size: 13px;
    animation: pulse-timer 1.2s infinite alternate;
}

@keyframes pulse-timer {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.15); opacity: 1; color: var(--primary-color); }
}

.countdown-label {
    opacity: 0.85;
}

.countdown-time {
    font-family: monospace, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* =========================================
   Special Offers Admin Layout
   ========================================= */
.special-offers-admin-wrap {
    padding: 10px 5px;
    animation: fadeIn 0.3s ease;
}

.special-header {
    margin-bottom: 24px;
    border-bottom: 1.5px dashed var(--border-color);
    padding-bottom: 15px;
}

.special-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.special-header p {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

.special-sub-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    background: var(--bg-color);
    padding: 6px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.special-sub-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-light);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.special-sub-tab:hover {
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.03);
}

body.light-mode .special-sub-tab:hover {
    background: rgba(0, 0, 0, 0.02);
}

.special-sub-tab.active {
    background: var(--surface-color);
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(200, 155, 98, 0.2);
}

.special-sub-content {
    animation: fadeIn 0.3s ease;
}

/* Nav link offers notification badge */
.offers-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e74c3c;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    height: 18px;
    min-width: 18px;
    padding: 0 5px;
    border-radius: 10px;
    margin-right: 6px;
    vertical-align: middle;
    box-shadow: 0 0 8px rgba(231, 76, 60, 0.6);
}

html[dir="ltr"] .offers-count-badge {
    margin-right: 0;
    margin-left: 6px;
}

.offers-count-badge.pulse-badge {
    animation: badge-pulse 1.5s infinite;
}

@keyframes badge-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(231, 76, 60, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
    }
}

/* =========================================
   Light Mode Close/Cancel Buttons
   ========================================= */
body.light-mode .modal-close,
body.light-mode .drawer-close {
    background: #ffffff;
    color: #000000;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

body.light-mode .modal-close:hover,
body.light-mode .drawer-close:hover {
    background: var(--primary-color);
    color: #1a1a1a;
    border-color: var(--primary-color);
    box-shadow: 0 4px 14px rgba(200, 155, 98, 0.4);
}


/* =========================================
   Search Dropdown Styles
   ========================================= */
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    margin-top: 10px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.search-results-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    cursor: pointer;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--bg-color);
}

.search-result-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    margin-left: 15px;
}

html[dir="ltr"] .search-result-img {
    margin-left: 0;
    margin-right: 15px;
}

.search-result-info {
    flex: 1;
}

.search-result-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-color);
}

.search-result-price {
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 700;
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
}
