:root {
    --bg-primary: #1d1f1f;
    --bg-secondary: #0e0f0f;
    --card-bg: #1a1a1a;
    --text-main: #ffffff;
    --text-muted: #9c9c9c;
    --primary-color: #2196f3;
    --glass-border: rgba(255, 255, 255, 0.08);
    --whatsapp: #25D366;
    --danger: #ef4444;
}

@media (prefers-color-scheme: light) {
    .main-big-logo,
    .header-logo {
        filter: invert(1) brightness(0) drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
    }
}

* {
    box-sizing: border-box;
    transition: all 0.3s ease;
}

body {
    font-family: 'Tajawal', sans-serif;
    margin: 0;
    color: var(--text-main);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

.top-brand-container {
    text-align: center;
    padding: 40px 20px 20px;
}

.main-big-logo {
    height: 75px;
    cursor: pointer;
    transition: 0.3s;
    filter: drop-shadow(0 5px 15px rgba(203, 162, 106, 0.15));
}

.main-big-logo:hover {
    transform: scale(1.05);
}

.sticky-wrapper {
    position: sticky;
    top: 15px;
    z-index: 1000;
    display: flex;
    justify-content: center;
    padding: 0 15px;
    margin-bottom: 30px;
}

.floating-header {
    width: 100%;
    max-width: 650px;
    background: rgba(20, 20, 20, 0.65);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.floating-header.scrolled {
    max-width: 1200px;
    background: rgba(10, 10, 10, 0.95);
    border-color: rgba(203, 162, 106, 0.2);
    padding: 6px 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
}

.header-logo {
    height: 35px;
    max-width: 0;
    opacity: 0;
    margin-left: 0;
    transform: scale(0.5);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
    pointer-events: none;
}

.floating-header.scrolled .header-logo {
    max-width: 140px;
    opacity: 1;
    margin-left: 0px;
    transform: scale(1);
    pointer-events: auto;
}

.header-search {
    flex: 1;
    margin: 0 5px;
    position: relative;
    transition: 0.3s;
}

.floating-header.scrolled .header-search {
    margin: 0 15px;
}

.header-search input {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid transparent;
    color: #fff;
    padding: 12px 40px 12px 15px;
    border-radius: 30px;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    transition: 0.3s;
}

.header-search input:focus {
    background: rgba(0, 0, 0, 0.7);
    border-color: var(--primary-color);
}

.header-search i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 16px;
    pointer-events: none;
}

.header-cart,
.install-btn {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: 0.3s;
    flex-shrink: 0;
}

.install-btn {
    margin-left: 5px;
    display: flex;
    color: var(--primary-color);
}

.floating-header.scrolled .header-cart,
.floating-header.scrolled .install-btn {
    width: 40px;
    height: 40px;
}

.header-cart:hover,
.install-btn:hover {
    background: var(--primary-color);
    color: #ffffff;
}

.header-cart:hover i,
.install-btn:hover svg {
    color: #ffffff;
}

.header-cart i {
    font-size: 20px;
    color: var(--primary-color);
    transition: 0.3s;
}

.install-btn svg {
    width: 22px;
    height: 22px;
    transition: 0.3s;
}

.cart-badge {
    position: absolute;
    top: -5px;
    left: -5px;
    background: var(--danger);
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    border: 2px solid #000;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 15px 50px;
}

.home-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (min-width: 768px) {
    .home-categories {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 30px;
    }
}

.cat-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1 / 1.2;
    border: 1px solid var(--glass-border);
    background: var(--bg-secondary);
}

.cat-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.5);
}

.cat-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.65);
}

.cat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 5%, transparent 60%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 25px;
}

.cat-overlay h2 {
    margin: 0;
    font-size: 1.3rem;
    color: #fff;
    text-align: center;
}

.products-view {
    display: none;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.back-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 8px 15px;
    border-radius: 30px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
}

.sub-cats-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.sub-cats {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; 
    padding: 5px 0;
    flex: 1;
}

.sub-cats::-webkit-scrollbar {
    display: none; 
}

.sub-cats.dragging {
    scroll-behavior: auto;
    cursor: grabbing;
}

.sub-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 8px 25px;
    border-radius: 30px;
    cursor: pointer;
    white-space: nowrap;
    font-weight: bold;
    font-family: inherit;
    font-size: 14px;
    transition: 0.3s;
}

.sub-btn.active {
    background: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
}

.sub-btn-more {
    background: rgba(203, 162, 106, 0.1);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 5px;
}

.sub-btn-more:hover {
    background: var(--primary-color);
    color: #ffffff;
}

img.riyal-icon {
    height: 16px !important;
    width: auto !important;
    max-width: 30px !important;
    vertical-align: middle !important;
    margin-right: 3px !important;
    display: inline-block !important;
    object-fit: contain !important;
}

.price-after img.riyal-icon {
    filter: brightness(0) invert(73%) sepia(19%) saturate(1008%) hue-rotate(345deg) brightness(91%) contrast(89%) !important;
}

.price-before img.riyal-icon {
    filter: brightness(0) invert(41%) sepia(0%) saturate(22%) hue-rotate(159deg) brightness(96%) contrast(88%) !important;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 100;
    min-width: 200px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    background: transparent;
    border: none;
    color: #fff;
    padding: 12px 15px;
    border-radius: 10px;
    cursor: pointer;
    text-align: right;
    font-family: inherit;
    font-size: 14px;
    font-weight: bold;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.dropdown-item.active {
    background: var(--primary-color);
    color: #000;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (min-width: 768px) {
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 25px;
    }
}

.product-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-image {
    width: 100%;
    height: 200px;
    background: #111;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

@media (min-width: 768px) {
    .card-image {
        height: 280px;
    }
}

.card-image img {
    width: 100%;
    height: 110%;
    object-fit: cover;
}

.card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: center;
}

.card-title {
    font-size: clamp(11px, 3.5vw, 13px);
    font-weight: bold;
    color: var(--text-main);
    margin: 0 0 10px 0;
    line-height: 1.4;
    cursor: pointer;
    text-wrap: balance;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.price-after {
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 900;
}

.price-before {
    color: #666;
    font-size: 11px;
    text-decoration: line-through;
}

.size-select {
    width: 100%;
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(203, 162, 106, 0.5);
    color: #fff;
    border-radius: 8px;
    margin-bottom: 12px;
    font-family: inherit;
    font-weight: bold;
    font-size: 13px;
    outline: none;
    cursor: pointer;
}

.size-select:focus {
    border-color: var(--primary-color);
    background: rgba(0, 0, 0, 0.8);
}

.inv-badges {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 12px;
}

.inv-badge {
    background: rgba(203, 162, 106, 0.15);
    border: 1px solid var(--primary-color);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    color: var(--primary-color);
    font-weight: bold;
}

.card-actions-row {
    display: flex;
    gap: 8px;
    margin-top: auto;
    width: 100%;
}

.cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 5px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 8px;
    font-weight: bold;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
    transition: 0.3s;
    white-space: nowrap;
}

.cart-btn:hover {
    background: var(--primary-color);
    color: #ffffff;
}

.wa-btn {
    background: var(--whatsapp);
    color: #fff;
    border: none;
    font-size: 18px;
    padding: 8px;
}

.wa-btn:hover {
    background: #20b858;
    color: #fff;
}

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10001;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--bg-secondary);
    z-index: 10002;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-left: 1px solid var(--glass-border);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
}

.cart-drawer.open {
    right: 0;
}

.cart-overlay.open {
    display: block;
    opacity: 1;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.close-cart {
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-item {
    display: flex;
    gap: 15px;
    background: var(--card-bg);
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    align-items: center;
}

.cart-item img {
    width: 60px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cart-item-title {
    font-size: 13px;
    font-weight: bold;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.delete-item {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 6px;
    color: var(--danger);
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    transition: 0.3s;
    height: 160px;
}

.delete-item:hover {
    background: var(--danger);
    color: #fff;
}

.effect-pills {
    display: inline-grid;
    gap: 8px;
    margin-top: 5px;
    flex-wrap: wrap;
}

.pill {
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    font-family: inherit;
    transition: 0.3s;
}

.pill:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.pill.active {
    background: var(--primary-color);
    color: var(--bg-secondary);
    border-color: var(--primary-color);
}

.cart-size-btn {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--glass-border) !important;
    color: #fff !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    font-size: 11px !important;
}

.cart-size-btn:hover {
    border-color: var(--primary-color) !important;
    color: white;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--glass-border);
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px;
    background: var(--whatsapp);
    color: #fff;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: 0.3s;
}

.checkout-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.checkout-btn:hover:not(:disabled) {
    filter: brightness(1.1);
}

.empty-cart-msg {
    text-align: center;
    color: var(--text-muted);
    margin-top: 50px;
    font-size: 15px;
}

#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(14, 15, 15, 0.98);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0;
    transition: background-color 0.3s, opacity 0.3s;
}

#lightbox.active {
    display: flex;
    opacity: 1;
}

.close-lb {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 35px;
    color: #fff;
    cursor: pointer;
    z-index: 10000;
}

.img-container {
    position: relative;
    max-width: 90%;
    max-height: 60vh;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    touch-action: none;
    transition: transform 0.3s ease;
}

#preview-img {
    width: 100%;
    height: 100%;
    max-height: 60vh;
    object-fit: contain;
    display: block;
    position: relative;
    z-index: 1;
    pointer-events: none;
}

.effect-matte img {
    filter: contrast(0.98) brightness(0.95) saturate(1);
}

.effect-matte::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0.10;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.effect-glossy img {
    filter: contrast(1.05) brightness(1.02);
}

.effect-glossy::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(135deg, transparent 0%, transparent 45%, rgba(255, 255, 255, 0.15) 50%, transparent 55%, transparent 100%);
    background-size: 200% 200%;
    animation: shine 6s infinite linear;
}

@keyframes shine {
    0% {
        background-position: 200% 200%;
    }

    100% {
        background-position: -200% -200%;
    }
}

.lb-controls {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 0px;
    width: 90%;
    max-width: 400px;
    align-items: center;
    transition: opacity 0.3s;
}

.effect-toggles {
    display: flex;
    gap: 10px;
    width: 100%;
}

.eff-btn {
    flex: 5;
    padding: 12px;
    border-radius: 26px;
    border: 1px solid var(--glass-border);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-family: inherit;
    transition: 0.3s;
    font-weight: bold;
    margin-bottom: 13px;
}

.eff-btn.active {
    border-color: var(--primary-color);
    color: #ffffff;
    background: var(--primary-color);
}

.s-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: 15px;
}

.s-btn-solid {
    background: #666666;
    color: #ffffff;
    transition: 0.3s;
}

.s-btn-solid:hover {
    background: var(--primary-color);
    color: #fff;
}

.toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #000;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: bold;
    display: none;
    z-index: 10005;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#loader {
    display: flex;
    justify-content: center;
    padding: 50px;
    color: var(--primary-color);
    font-size: 30px;
    grid-column: 1/-1;
}

.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.size-popup {
    position: fixed;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid var(--primary-color);
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    z-index: 10005;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    display: none;
    backdrop-filter: blur(10px);
    pointer-events: none;
    line-height: 1.6;
}

.size-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 15px;
}

.size-pill {
    padding: 8px 15px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid var(--glass-border);
}

.size-pill.active {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

#lbPriceDisplay {
    font-size: 18px;
    font-weight: 900;
    margin: 10px 0;
    color: var(--primary-color);
}
/* 🌟 تنسيق كرت الطلب الخاص ليكون متناسقاً مع المتجر */
.custom-order-card {
    background: #000000 !important;
    border: 2px solid #ffffff52 !important;
    border-radius: 30px !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    width: 100%;
    max-width: 280px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

/* 🌟 حاوية الصور (نفس ارتفاع كرت المنتج العادي في الجوال) */
.custom-order-card .card-image {
    height: 250px !important; 
    width: 100%;
    background: #0a0a0a;
    position: relative;
}

/* 🌟 منع قص الصور وعرضها بالكامل داخل السلايدر */
.slider-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.slider-img.active { opacity: 1; }

/* 🌟 تنسيق الشاشات الكبيرة (يتحول لجهتين) */
@media (min-width: 850px) {
    .custom-order-card {
        flex-direction: row !important; /* تقسيم جهتين */
        max-width: 800px !important; /* عرض مريح للعين */
        height: 350px;
        align-items: stretch;
    }

    .custom-order-card .card-image {
        flex: 1; /* الجهة الأولى: الصور */
        height: 100% !important;
    }

    .custom-order-card .card-body {
        flex: 1.2; /* الجهة الثانية: الكلام والأزرار */
        padding: 30px !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: right !important; /* محاذاة لليمين للفخامة */
    }
}

/* وهج خفيف خلف الكرت لتمييزه */
.custom-order-card {
    position: relative;
    z-index: 1;
}
.custom-order-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(45deg, transparent, rgba(33, 150, 243, 0.2), transparent);
    z-index: -1;
    border-radius: 12px;
}
/* ✅ تنسيق السلايدر الإعلاني للبنر */
.banner-slider-container {
    position: relative;
    width: 100%;
    /* 🌟 تحديد ارتفاع فخم ومتناسق للبنر عشان ما يخرب الواجهة */
    height: 350px; 
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

/* تعديل الارتفاع في الجوال ليصبح أنسب */
@media (max-width: 600px) {
    .banner-slider-container {
        height: 200px; 
    }
}

.banner-slider-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    /* 🌟 السر هنا: عرض الصورة كاملة بأفضل طريقة داخل المساحة */
    object-fit: cover; 
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    cursor: pointer;
}

.banner-slider-img.active {
    opacity: 1;
}

/* ✅ تنسيق أزرار التقليب (Arrows) */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
    opacity: 0; /* مخفية وتظهر عند تمرير الماوس */
}

/* إظهار الأزرار عند تمرير الماوس على البنر */
.banner-slider-container:hover .slider-arrow {
    opacity: 1;
}

.slider-arrow:hover {
    background: var(--primary-color);
    color: #000;
}

.slider-arrow.prev { left: 15px; }
.slider-arrow.next { right: 15px; }