.hero-banner{
    padding: 12px 0;
    height: 150px;
    background-color: #D8D9D5;
}
.hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Promotional Banners Stack */
.promotional-banners-stack {
    margin: 80px 0; /* Space between the stack and next elements */
}

.promo-banner-item {
    margin-bottom: 20px; /* Space between each banner in the stack */
}

.promo-banner-item:last-child {
    margin-bottom: 0;
}

/* Sports Banner Section - Renamed to Collection Banner */
.collection-banner-section {
    position: relative;
    overflow: hidden;
}

/* Banner Content */
.collection-banner-content {
    background: transparent; /* Remove gradient if image is main focus, or keep generic */
    /* If the user wants the image to be the hero, maybe no background or simple one */
    border-radius: 20px;
    margin: 20px 0; /* Adjust margin */
    padding: 0; /* Remove padding so image hits edges if desired, or keep small */
    position: relative;
    overflow: hidden;
    color: #000;
    min-height: auto;
    display: block; /* Layout is block/flow now, not side-by-side flex */
}

/* Text Section */
.collection-banner-content .text-section {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column; /* Stack items */
    justify-content: flex-start;
    align-items: flex-end; /* Right align for RTL context */
}

[dir="ltr"] .collection-banner-content .text-section {
    align-items: flex-start;
}

.collection-banner-content h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: #1A3718;
    line-height: 1.2;
    text-align: right;
    width: 100%;
    padding: 0 30px;
}

/* Image */
.collection-banner-content img {
    position: relative; /* No longer absolute */
    left: auto;
    bottom: auto;
    width: 100%; /* Take full width */
    height: auto; /* Maintain aspect */
    max-height: 400px; /* Limit height if needed */
    object-fit: cover; /* Cover the area */
    display: block;
    margin-top: 10px;
}

/* Remove old complex media queries since stack is mobile-friendly */
/* Responsive adjustments */
@media (max-width: 768px) {
    .collection-banner-content h2 {
        font-size: 2rem;
    }
    .collection-banner-content .text-section {
        align-items: center; /* Center on mobile */
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .collection-banner-content h2 {
        font-size: 1.5rem; /* Smaller for mobile phones */
        margin-bottom: 10px;
    }
    .collection-banner-content .text-section {
        padding: 15px;
    }
    .collection-products-slider-section {
        padding-top: 10px;
    }
    .collection-product-card {
        flex: 0 0 240px; /* Slightly smaller cards on small screens */
    }
    .collection-product-card .card-img-top {
        height: 180px; /* Adjust image height */
    }
}
/* Sports Products Slider */
.collection-products-slider-section {
    padding: 20px 0;
    margin-top: -20px;
    position: relative; /* Context for the static rail */
}

/* The Continuous Static Rail */

.collection-products-wrapper {
    display: flex;
    overflow-x: auto;
    padding: 20px 10px 40px 10px; /* Bottom padding for shadows and border action */
    gap: 10px;
    scroll-behavior: smooth;
    /* Hide scrollbar for cleaner look */
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    direction: ltr; /* Force LTR so items start from Left */
    position: relative;
    z-index: 2; /* Ensure scroll content sits above the static rail */
}

.collection-products-wrapper::-webkit-scrollbar {
    display: none;
}

/* Card Styling to match reference */
.collection-product-card {
    flex: 0 0 280px; /* Fixed width like a slider item */
    background: #fff;
    border-radius: 20px;
    position: relative;
    box-shadow: 0px 3px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: 2px solid transparent; /* Prepare for active border */
    direction: rtl; /* Keep content RTL even if slider is LTR */
}

@media (min-width: 992px) {
    .collection-product-card {
        flex: 0 0 24% !important;
    }
    .collection-product-card2{
       flex: 0 0 11.6% !important;
    }
    .collection-product-card3 {
       flex: 0 0 13.2% !important;
    }
}

.collection-product-card .card-inner {
    padding: 10px;
}

/* First item active border */
.collection-product-card.active {
    border-color: #e63a19;
}

/* Image Area */
.collection-product-card .card-img-top {
    position: relative;
    height: 220px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 10px;
    margin-top: 18px;
}

.collection-product-card .card-img-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Badges */
.collection-product-card .badge-circle-green {
    position: absolute;
    top: 10px;
    left: 10px; /* RTL flip will be handled if dir=rtl, usually left is actually left visual */
    background-color: #84B74A; /* Green tone */
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.6rem;
    line-height: 1.2;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(255, 0, 0, 0.4);
    border: 1px solid #fff;
}

.collection-product-card .badge-custom {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #b71c1c; /* Dark red */
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.6rem;
    line-height: 1.2;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(255, 0, 0, 0.4);
    border: 1px solid #fff;
}

/* Icons overlay */
.collection-product-card .icons {
    position: absolute;
    top: 10px;
    right: 10px; /* Or left depending on design specifics */
    z-index: 3;
    display: flex;
    gap: 2px;
}

/* If generic icons conflict with badge position */
[dir="rtl"] .collection-product-card .icons {
    right: auto;
    left: 10px;
    align-items: center;
}
[dir="rtl"] .collection-product-card .badge-circle-green {
    left: auto;
    right: 10px;
}

.collection-product-card .icons i {
    background: #1a3718;
    color: #fff;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
}
.collection-product-card .icons i.fa-heart {
    background: transparent;
    color: #ea1d2c;
    font-size: 20px;
}
.collection-product-card .icons .show-details-product  i{
    background: none !important;
    color: #1a3718;
}

/* Override background for quantity control icons */
.collection-product-card .icons .quantity-control i {
    background: transparent !important;
    width: auto !important;
    height: auto !important;
    box-shadow: none !important;
}


/* Text Body */
.collection-product-card .card-body {
    padding: 10px 5px;
}

.collection-product-card .rating {
    font-size: 12px;
}

.collection-product-card .card-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: #000;
}

.collection-product-card .prices {
    font-size: 1.1rem;
}


/* Cursor styles for draggable slider */
.collection-products-wrapper {
    cursor: grab;
}
.collection-products-wrapper:active {
    cursor: grabbing;
}


/* Navbar Scroll State */
.navbar-custom {
    transition: all 0.3s ease;
}

.navbar-scrolled {
    background-color: #fff !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding-top: 5px !important;
    padding-bottom: 12px !important;
}

/* Text Color Toggle */
.navbar-scrolled .nav-link,
.navbar-scrolled a,
.navbar-scrolled i {
    color: #333 !important; /* Force dark text */
}

/* Logo Toggle */
.logo-dark { display: none; }
.logo-white { display: block; }

.navbar-scrolled .logo-white { display: none; }
.navbar-scrolled .logo-dark { display: block; }

/* Icon Toggle */
.icon-dark { display: none !important; }
.icon-white { display: block !important; }

.navbar-scrolled .icon-white { display: none !important; }
.navbar-scrolled .icon-dark { display: block !important; }

/* In case of specific overrides */
.navbar-scrolled .text-white {
    color: #333 !important;
}

/* Toggler Icon Color */
.navbar-scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar.active.navbar-scrolled .navbar-toggler {
    color: #000 !important;
    border: 0 !important;
}
/* --- Language Modal Premium Redesign --- */

.modal-premium-rounded {
    border-radius: 24px;
    overflow: hidden;
}

.lang-modal-header h5 {
    font-size: 1.25rem;
    color: #1A3718;
}

.lang-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lang-option-card {
    text-decoration: none;
    color: #333;
    background-color: #f8f9fa;
    border: 1px solid transparent;
    border-radius: 16px;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.lang-option-card:hover {
    background-color: #fff;
    border-color: #e63a19;
    box-shadow: 0 4px 12px rgba(230, 58, 25, 0.08);
    transform: translateY(-1px);
    color: #333;
}

.lang-option-card.active {
    background-color: #fff;
    border-color: #e63a19;
    box-shadow: 0 0 0 1px #e63a19 inset; /* Inner border feeling */
}

/* Flag Circle */
.flag-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flag-circle svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Close Button Custom */
.btn-close-custom {
    background: #f1f1f1;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    transition: all 0.2s;
    font-size: 14px;
}
.btn-close-custom:hover {
    background: #e63a19;
    color: #fff;
    transform: rotate(90deg);
}
/* --- Offcanvas Menu Premium Redesign --- */

.offcanvas {
    background-color: #ffffff; /* Clean white background */
    /* Optional: Add a subtle texture or gradient if permitted, but keeping it clean for premium feel */
    box-shadow: 0 0 30px rgba(0,0,0,0.1); /* Soft shadow */
    border: none; /* Remove default border */
}

/* Header */
.offcanvas-header {
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 20px 25px;
}

.offcanvas-title {
    font-weight: 800; /* Bold title */
    font-size: 1.5rem;
    color: #1A3718;
    letter-spacing: -0.5px;
}

.offcanvas-header .btn-close {
    opacity: 0.8;
    transition: all 0.3s;
}
.offcanvas-header .btn-close:hover {
    opacity: 1;
    transform: rotate(90deg); /* Playful interaction */
}

/* Body */
.offcanvas-body {
    padding: 25px;
}

/* Custom Scrollbar */
.offcanvas-body::-webkit-scrollbar {
    width: 6px;
}
.offcanvas-body::-webkit-scrollbar-track {
    background: transparent;
}
.offcanvas-body::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.1);
    border-radius: 10px;
}

/* Navigation Links */
.offcanvas-body .nav-link {
    font-weight: 600;
    font-size: 1.1rem;
    color: #4a4a4a;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.offcanvas-body .nav-link:hover,
.offcanvas-body .nav-link:focus {
    color: #e63a19; /* Brand color */
    background-color: rgba(230, 58, 25, 0.02); /* Very subtle background */
    padding-left: 10px; /* Slight movement */
    padding-right: 10px; /* Movement for RTL/LTR handled visually by padding shift */
}

/* RTL Specific Movement */
[dir="rtl"] .offcanvas-body .nav-link:hover {
    padding-left: 0;
    padding-right: 10px;
}
[dir="ltr"] .offcanvas-body .nav-link:hover {
    padding-left: 10px;
    padding-right: 0;
}


/* Submenu Styling */
.offcanvas-body .collapse {
    background-color: #fafafa; /* Slightly distinct background for nested items */
    border-radius: 8px;
    margin-top: 5px;
    margin-bottom: 15px;
}

.offcanvas-body .collapse .nav-link {
    font-size: 1rem;
    font-weight: 500;
    border-bottom: none; /* Remove border for sub-items */
    padding: 10px 15px;
    color: #666;
}

/* Icons */
.offcanvas-body i {
    font-size: 0.9rem;
    color: #aaa;
    transition: color 0.3s;
}

.nav-link[aria-expanded="true"] {
    color: #e63a19;
}

.nav-link[aria-expanded="true"] i {
    color: #e63a19;
    transform: rotate(180deg);
}

/* Search Bar in Menu */
.offcanvas-body .form-control {
    border-radius: 50px; /* Pill shape */
    padding: 12px 20px;
    border: 1px solid #eee;
    background-color: #f9f9f9;
    margin-bottom: 25px; /* Spacing */
    box-shadow: none;
    transition: all 0.3s;
}

/* Offcanvas Mobile Icons Premium */
.offcanvas-icons-wrapper {
    padding: 10px 0;
    margin-bottom: 20px !important;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 25px;
}

.mobile-icon-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px; /* Space between icon and label */
    transition: transform 0.3s ease;
}

.mobile-icon-link:hover {
    transform: translateY(-3px);
}

.mobile-icon-link .icon-circle {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-color: #f8f9fa; /* Light gray bg */
    display: flex; /* Flex to center icon */
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #333;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
}

.mobile-icon-link:hover .icon-circle {
    background-color: #e63a19; /* Brand color on hover */
    color: #fff;
    box-shadow: 0 5px 15px rgba(230, 58, 25, 0.3);
    border-color: #e63a19;
}

.mobile-icon-link .icon-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    transition: color 0.3s;
}

.mobile-icon-link:hover .icon-label {
    color: #e63a19;
}
.mobile-icon-link:hover i {
    color: #fff;
}

/* Badge specific fix for circle */

/* Mobile Language Button Premium */
.mobile-lang-btn {
    border-color: #eee;
    color: #555;
    background-color: #f9f9f9;
    font-weight: 600;
    transition: all 0.3s ease;
}

.mobile-lang-btn:hover,
.mobile-lang-btn:focus {
    background-color: #fff;
    border-color: #e63a19;
    color: #e63a19;
    box-shadow: 0 4px 10px rgba(230, 58, 25, 0.15);
    transform: translateY(-2px);
}

/* --- Offers Grid Section (Refined) --- */
.offers-grid-section {
    padding: 0 15px;
    margin-top: 30px;
}

.offer-card {
    background: #fff;
    border-radius: 16px; /* Slightly more rounded */
    padding: 20px;
    position: relative;
    min-height: 235px; /* Ensure height for absolute positioning */
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.offer-text {
    text-align: right; /* Arabic Layout */
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.offer-text h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #002b36; /* Dark greenish/blue text */
    margin-bottom: 5px;
}

.offer-text p {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

.offer-visual {
    position: absolute;
    bottom: -23px;
    right: 15px; /* Image on right, usually under text */
    width: 140px;
    height: 140px;
    z-index: 1;
}

.offer-visual img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.offer-card:hover .offer-visual img {
    transform: scale(1.15) translateY(-5px);
}

.btn-offer {
    position: absolute;
    bottom: 25px;
    left: 25px;
    border-radius: 8px; /* Soft rounded */
    padding: 10px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff !important;
    text-decoration: none;
    z-index: 3;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* --- Specific Styles --- */

/* Card 1: "Best Discounts" - Blue Border, Brown Button */
/* .style-blue-brown {
    border-color: #4285f4;
} */
.style-blue-brown .btn-brown {
    background-color: #6d4c41; /* Brown */
}

/* Card 2: "Back to School" - Orange Border, Green Button */
.style-orange-green {
    border-color: #ff7043; /* Deep Orange */
}
.style-orange-green .btn-green {
    background-color: #388e3c; /* Green */
}

/* Card 3: "Kitchen" - Blue Border, Dark Blue Button */
 /* .style-blue-dark {
    border-color: #90caf9;
}  */
.style-blue-dark .btn-darkblue {
    background-color: #2c3e50; /* Dark Blue */
}

/* Typography Utils */
.text-orange {
    color: #e63a19 !important;
    font-weight: 700;
}

/* --- Premium Welcome Modal --- */
.premium-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.premium-modal-backdrop.active {
    display: flex;
    opacity: 1;
}

.premium-modal-content {
    background: #fff;
    width: 90%;
    max-width: 450px;
    border-radius: 24px;
    padding: 0;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    transform: translateY(50px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    background-image: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
    overflow: hidden;
}

.premium-modal-backdrop.active .premium-modal-content {
    transform: translateY(0) scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px; /* LTR default, check RTL */
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: #999;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
}

/* --- Empty State Card Premium Design --- */
.empty-products-card {
    border-radius: 24px;
    padding: 20px 0;
    text-align: center;
    max-width: 70%;
    margin: 40px auto;
    /* box-shadow: 0 10px 40px rgba(0,0,0,0.06); */
    /* border: 1px solid rgba(0,0,0,0.03); */
    position: relative;
    overflow: hidden;
}

/* .empty-products-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #e63a19, #ff7043);
} */

.empty-icon {
    width: 100px;
    height: 100px;
    background: #fff5f3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 3rem;
    color: #e63a19;
    box-shadow: 0 10px 25px rgba(230, 58, 25, 0.15);
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.empty-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1A3718;
    margin-bottom: 10px;
}

.empty-subtitle {
    color: #888;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.btn-empty-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1A3718;
    color: #fff !important;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(26, 55, 24, 0.2);
    gap: 8px;
}

.btn-empty-action:hover {
    background: #e63a19;
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(230, 58, 25, 0.3);
}

[dir="rtl"] .btn-empty-action .fa-arrow-right-long {
    transform: rotate(180deg);
}

[dir="rtl"] .modal-close-btn {
    right: auto;
    left: 15px;
}

.modal-close-btn:hover {
    color: #333;
}

/* Visual Section */
.modal-visual {
    height: 160px;
    background: linear-gradient(135deg, #e63a19 0%, #ff7043 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom-left-radius: 50% 20px;
    border-bottom-right-radius: 50% 20px;
}

.floating-icon {
    font-size: 4rem;
    color: #fff;
    animation: floatIcon 3s ease-in-out infinite;
    z-index: 2;
    text-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.visual-circle {
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    top: -50px;
    right: -20px;
}
.visual-circle.small {
    width: 100px;
    height: 100px;
    bottom: 10px;
    left: 20%;
    right: auto;
    top: auto;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Body Section */
.modal-body {
    padding: 30px;
}

.welcome-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 10px;
}

.welcome-text {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Coupon Box */
.coupon-box {
    background: #f0f2f5;
    border: 2px dashed #dcdcdc;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    cursor: pointer;
    transition: background 0.2s;
}
.coupon-box:active {
    background: #e9ecef;
}

.coupon-label {
    font-size: 0.85rem;
    color: #888;
}

.coupon-code {
    font-weight: 700;
    font-size: 1.2rem;
    color: #002b36;
    letter-spacing: 1px;
}

.copy-icon {
    color: #e63a19;
}

/* CTA Button */
.btn-welcome-action {
    display: block;
    width: 100%;
    padding: 14px;
    background: #e63a19;
    color: #fff !important;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(230, 58, 25, 0.2);
    transition: all 0.3s;
    text-decoration: none;
}
.btn-welcome-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(230, 58, 25, 0.3);
}

.dont-show-again {
    margin-top: 20px;
    font-size: 0.85rem;
    color: #999;
}
.dont-show-again input {
    margin-left: 5px; /* RTL */
    vertical-align: middle;
}
/* Email Subscription Box */
.email-subscription-box {
    margin-bottom: 25px;
}

.premium-input-group {
    background: #f0f2f5;
    border: 1px solid #dcdcdc;
    border-radius: 12px;
    padding: 5px;
    transition: all 0.3s ease;
}

.premium-input-group:focus-within {
    background: #fff;
    border-color: #e63a19;
    box-shadow: 0 0 0 4px rgba(230, 58, 25, 0.1);
}

.premium-input-group .input-group-text {
    background: transparent;
    border: none;
    color: #888;
    padding: 10px 15px;
}

.premium-input-group .form-control {
    border: none;
    background: transparent;
    box-shadow: none;
    font-size: 1rem;
    color: #333;
    padding: 10px;
    text-align: right; /* RTL */
}

.premium-input-group .form-control::placeholder {
    color: #999;
}

/* Scroll To Top Button */
.scroll-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e63a19 0%, #ff7043 100%);
    color: #fff !important;
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(230, 58, 25, 0.4);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.scroll-to-top-btn:hover {
    background: linear-gradient(135deg, #ff7043 0%, #e63a19 100%);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(230, 58, 25, 0.6);
}

.scroll-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* --- Interaction Animations --- */

/* 1. Pop Effect (For Buttons/Numbers) */
@keyframes pop-animation {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
.anim-pop {
    animation: pop-animation 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 2. Shake Effect (For Delete/Error) */
@keyframes shake-animation {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px) rotate(-5deg); }
    50% { transform: translateX(5px) rotate(5deg); }
    75% { transform: translateX(-5px) rotate(-5deg); }
    100% { transform: translateX(0); }
}
.anim-shake {
    animation: shake-animation 0.4s ease-in-out;
}

/* 3. Heart Burst (For Wishlist) */
@keyframes heart-burst-animation {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}
.anim-heart-burst {
    animation: heart-burst-animation 0.4s ease-out;
    color: #e63a19 !important; /* Force red color during burst */
}

/* 4. Cart Bump (For Navbar Icons) */
@keyframes cart-bump-animation {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

/* --- Premium Toast Notifications --- */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px; /* RTL aware if needed, or left */
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.toast-message {
    min-width: 300px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-left: 5px solid #ff690b; /* Default Orange */
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
    position: relative;
    font-family: 'Tajawal', sans-serif;
}

.toast-message.show {
    transform: translateX(0);
}

.toast-message.success { border-left-color: #28a745; }
.toast-message.error { border-left-color: #dc3545; }
.toast-message.info { border-left-color: #17a2b8; }

.toast-icon {
    font-size: 24px;
}
.toast-message.success .toast-icon { color: #28a745; }
.toast-message.error .toast-icon { color: #dc3545; }

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 2px;
    color: #333;
}

.toast-desc {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.toast-close {
    cursor: pointer;
    color: #999;
    font-size: 18px;
    transition: color 0.3s;
}
.toast-close:hover { color: #333; }

/* Progress Bar */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0; /* RTL: right */
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1));
}
.toast-progress-bar {
    height: 100%;
    width: 100%;
    background-color: #ff690b;
    transform-origin: left;
    transform: scaleX(1);
    transition: transform linear;
}
.toast-message.success .toast-progress-bar { background-color: #28a745; }
.toast-message.error .toast-progress-bar { background-color: #dc3545; }

html[dir="rtl"] #toast-container {
    right: auto;
    left: 20px;
}
html[dir="rtl"] .toast-message {
    border-left: none;
    border-right: 5px solid #ff690b;
    transform: translateX(-120%);
}
html[dir="rtl"] .toast-message.show {
    transform: translateX(0);
}
html[dir="rtl"] .toast-message.success { border-right-color: #28a745; }
html[dir="rtl"] .toast-message.error { border-right-color: #dc3545; }

/* Product Grid Container */
.products {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start; /* Or center, depending on preference */
    padding: 20px 0;
}

@media (max-width: 768px) {
    .products {
        justify-content: center;
    }
}

/* Hide scrollbar for collection wrapper */
.collection-products-wrapper::-webkit-scrollbar { display: none; }
.collection-products-wrapper { -ms-overflow-style: none; scrollbar-width: none; }

/* --- Premium Skeleton Loader --- */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.skeleton-card {
    background: #fff;
    border-radius: 20px;
    padding: 10px;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

.skeleton-shimmer {
    animation: shimmer 2s infinite linear;
    background: linear-gradient(to right, #f6f7f8 4%, #edeef1 25%, #f6f7f8 36%);
    background-size: 1000px 100%;
}

.skeleton-img {
    height: 220px;
    width: 100%;
    border-radius: 15px;
    margin-bottom: 15px;
}

.skeleton-title {
    height: 20px;
    width: 80%;
    margin: 0 auto 10px auto;
    border-radius: 10px;
}

.skeleton-price {
    height: 15px;
    width: 40%;
    margin: 0 auto;
    border-radius: 8px;
}

.skeleton-actions {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.skeleton-btn {
    height: 30px;
    width: 30px;
    border-radius: 50%;
}

/* --- Elegant Global Loader --- */
#global-loader {
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95); /* High opacity for cleanliness */
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-chic-container {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Outer Ring */
.chic-ring {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(230, 58, 25, 0.1);
    border-top-color: #e63a19; /* Brand Orange */
    border-radius: 50%;
    animation: chic-spin 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

/* Inner Circle */
.chic-circle {
    width: 15px;
    height: 15px;
    background-color: #e63a19;
    border-radius: 50%;
    animation: chic-pulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(230, 58, 25, 0.4);
}

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

@keyframes chic-pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

/* --- Category Page Premium Enhancements --- */

/* 1. Header Area */
.section-top-category-page {
    margin-bottom: 40px;
    padding: 20px 0;
    position: relative;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.section-top-category-page h1 {
    font-size: 2.2rem;
    color: #1A3718;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}


/* 2. Filter Dropdowns */
.category-page .dropdown-toggle {
    background: #fff !important;
    border: 1px solid #eee !important;
    border-radius: 20px !important; /* Pill shape */
    padding: 10px 25px !important;
    font-weight: 600 !important;
    color: #333 !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05) !important;
    transition: all 0.3s ease !important;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-top-category-page .header-category-page{
    justify-content: space-between !important;
}
.section-top-category-page .header-category-page .search-order button{
  padding: 11px 44px !important;
}
.category-page .dropdown-toggle::after {
    margin-left: 8px; /* Spacing for arrow */
    transition: transform 0.3s;
}

.category-page .dropdown-toggle:hover,
.category-page .dropdown.show .dropdown-toggle {
    background: #fff !important;
    border-color: #e63a19 !important;
    color: #e63a19 !important;
    box-shadow: 0 6px 15px rgba(230, 58, 25, 0.15) !important;
    transform: translateY(-2px);
}

.category-page .dropdown.show .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.category-page .dropdown-menu {
    border: none;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    margin-top: 15px !important;
    /* animation: fadeInUp 0.3s cubic-bezier(0.165, 0.84, 0.44, 1); Remove animation to fix Popper conflict */
}

/* @keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
} */

/* Filter Items (Sort) */
.category-page .dropdown-item {
    border-radius: 10px;
    padding: 10px 15px;
    margin-bottom: 5px;
    font-weight: 500;
    transition: all 0.2s;
    text-align: right; /* RTL friendly */
}

.category-page .dropdown-item:hover,
.category-page .dropdown-item.active {
    background-color: #fcece9; /* Light brand bg */
    color: #e63a19;
}

/* 3. Search & Colors & Brands Inside Menu */
.search-element input {
    border-radius: 50px;
    padding: 12px 20px;
    background: #f8f9fa;
    border: 1px solid #eee;
    transition: 0.3s;
}
.search-element input:focus {
    box-shadow: none;
    border-color: #e63a19;
    background: #fff;
}

/* Brands Grid - Text Tags */
.brands {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
    max-height: 250px;
    overflow-y: auto;
    padding: 5px;
}

.brands .element {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 50px; /* Pill shape */
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
    text-align: center;
    white-space: nowrap;
}

.brands .element:hover {
    border-color: #e63a19;
    color: #e63a19;
    background: #fff5f3;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(230, 58, 25, 0.1);
}

.brands .element.active {
    background: #e63a19;
    color: #fff;
    border-color: #e63a19;
    box-shadow: 0 4px 12px rgba(230, 58, 25, 0.3);
}

/* Remove old image styles */
.brands img { display: none; }

/* Colors */
.app-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.color-filter {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.color-filter:hover {
    transform: scale(1.1);
}

.color-filter.active {
    transform: scale(1.1);
    box-shadow: 0 0 0 3px #e63a19; /* Highlighting ring */
    border-color: #fff;
}

/* 4. Empty State */
.empty-products-card {
    border-radius: 20px;
    padding: 60px 20px;
    text-align: center;
    /* box-shadow: 0 10px 40px rgba(0,0,0,0.05); */
    margin-top: 40px;
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.empty-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 10px;
}

.empty-subtitle {
    color: #777;
    margin-bottom: 30px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.btn-empty-action {
    display: inline-block;
    background: #e63a19;
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(230, 58, 25, 0.3);
}

.btn-empty-action:hover {
    background: #d63214;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(230, 58, 25, 0.4);
    color: #fff;
}



/* --- Active Filter Tags --- */
.active-filter-tag {
    background-color: #fcece9; /* Light Brand BG */
    color: #e63a19;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    cursor: pointer;
    border: 1px solid rgba(230, 58, 25, 0.2);
    transition: all 0.2s ease;
}

.active-filter-tag:hover {
    background-color: #e63a19;
    color: #fff;
    border-color: #e63a19;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(230, 58, 25, 0.2);
}

.active-filter-tag i {
    font-size: 0.8rem;
    padding: 2px;
    border-radius: 50%;
    transition: background 0.2s;
}

.active-filter-tag:hover i {
    background: rgba(255, 255, 255, 0.2);
}
/* --- Cart Reminder Notification --- */
.cart-reminder {
    position: fixed;
    bottom: 30px;
    right: 30px; /* Aligned right usually for LTR, check RTL handling */
    background: #fff;
    padding: 15px 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 5px solid #1A3718;
    animation: slideUpFade 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    max-width: 350px;
}

[dir="rtl"] .cart-reminder {
    right: auto;
    left: 30px;
    border-left: none;
    border-right: 5px solid #1A3718;
}

.cart-reminder-icon {
    width: 40px;
    height: 40px;
    background: #e9f5eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1A3718;
    font-size: 1.2rem;
}

.cart-reminder-content h5 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: #333;
}

.cart-reminder-content p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

.cart-reminder-close {
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
    font-size: 1.1rem;
}

.cart-reminder-close:hover {
    color: #e63a19;
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Premium Product Details Page --- */
.product-details {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 30px;
    margin-bottom: 60px;
}

/* Gallery Section */
.product-gallery {
    flex: 1 1 500px;
    display: flex;
    flex-direction: column-reverse; /* Thumbnails below main image usually, but let's try a modern side layout or standard */
    gap: 20px;
    position: relative;
}

@media (min-width: 992px) {
    .product-details {
        display: grid;
        grid-template-columns: 1.2fr 1fr; /* Gallery wider than info */
        align-items: start;
    }

    .product-gallery {
        position: sticky;
        top: 100px; /* Sticky on scroll */
        flex-direction: row; /* Thumbnails on left for desktop */
        height: fit-content;
    }
    
    .thumbnail-images {
        flex-direction: column;
        width: 100px; /* Slightly wider for better touch */
        height: 500px; /* Fixed height for scrollable thumbnails */
        overflow-y: auto;
        padding-right: 10px;
        scrollbar-width: thin; /* Firefox */
    }
    
    .thumbnail-images::-webkit-scrollbar {
        width: 6px;
    }
    .thumbnail-images::-webkit-scrollbar-thumb {
        background-color: rgba(0,0,0,0.1);
        border-radius: 4px;
    }

    .main-image {
        flex: 1;
        height: auto;
        /* max-height: 600px; Remove fixed max-height to let aspect ratio rule, or keep if images are huge */
        object-fit: contain;
    }
}

/* Main Image Styling */
.main-image {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    background: #fff;
    transition: transform 0.3s ease;
    cursor: zoom-in;
    border: 1px solid #f0f0f0;
    min-width: 0;
    flex-shrink: 1;
}

.main-image:hover {
    transform: scale(1.02); /* Subtle zoom */
}

/* Thumbnails Styling */
.thumbnail-images {
    display: flex;
    gap: 15px;
    overflow-x: auto;
}

.thumbnail-images img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 2px solid transparent;
    object-fit: cover;
    background: #fff;
}

.thumbnail-images img:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.thumbnail-images img.active {
    opacity: 1;
    border-color: #1a3718;
    box-shadow: 0 4px 12px rgba(26, 55, 24, 0.15);
}

/* Product Info Section */
.product-info {
    flex: 1 1 400px;
    padding: 10px;
}

.product-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1a3718;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.product-price-discount {
    font-size: 1.2rem;
    color: #999;
    text-decoration: line-through;
    margin-right: 10px;
}

.product-price {
    font-size: 2rem;
    font-weight: 700;
    color: #e63a19;
}

/* Mobile Optimizations */
@media (max-width: 991px) {
    .product-details {
        flex-direction: column;
        gap: 30px;
    }
    
    .product-gallery {
        flex-direction: column; /* Stack on mobile: Image top, thumbnails below */
    }

    .thumbnail-images {
        flex-direction: row;
        width: 100%;
        height: auto;
        justify-content: start; /* align to start */
        padding: 10px 0;
    }
    
    .main-image {
        border-radius: 15px; /* Slightly smaller radius on mobile */
    }

    .product-title {
                font-size: 21px !important;
    }
}

/* --- Unique Cart Item Redesign (Enforced Layout) --- */
.cart-item-unique {
    display: flex;
    flex-direction: row;
    background: #fff;
    border-radius: 40px !important;
    padding: 38px;
    margin-bottom: 2rem;
box-shadow: 10px 10px 17px -8px rgba(0,0,0,0.18);
-webkit-box-shadow: 10px 10px 17px -8px rgba(0,0,0,0.18);
-moz-box-shadow: 10px 10px 17px -8px rgba(0,0,0,0.18);    align-items: stretch;
    gap: 15px;
    position: relative;
    /* In RTL: First child is Right, Last child is Left. */
}

/* Right Section: Image & Info (Visually Right in RTL) */
.cart-right-section {
    display: flex;
    flex-grow: 1;
    gap: 15px;
    align-items: center;
    /* Ensure content flows correctly */
    min-width: 0; 
}

.cart-item-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 20px;
    flex-shrink: 0;
}

.cart-item-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0; /* Important for text truncation */
}

/* Title Styling with Truncation */
.cart-item-details h2 {
    font-size: 1.1rem !important;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    color: #000;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-details h2 b {
    font-weight: 700;
}

/* Attributes */
.cart-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
}

.meta-attribute {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Color Dot */
.meta-color-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid #ddd;
}

/* Price */
.cart-item-price {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-new {
    font-size: 1.2rem;
    color: #e63a19;
    font-weight: bold;
}

.price-old {
    font-size: 0.9rem;
    text-decoration: line-through;
    color: #999;
}

/* Left Section: Brand & Controls (Visually Left in RTL) */
.cart-left-section {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 140px;
    padding-right: 15px;
    margin-bottom: 0 !important;
 
    border-right: none;
    padding-right: 0;
    padding-left: 15px;
    align-items: flex-end; /* Align content to the left (End in RTL means Left) */
}

.brand-text-logo {
    max-width: 80px;
    object-fit: contain;
    margin-bottom: auto;
}

.cart-control-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Quantity Controls */
.unique-qty-control {
    border: 1px solid #333;
    border-radius: 8px;
    padding: 2px 5px;
    display: flex;
    align-items: center;
    background: #fff;
    height: 35px;
}

.unique-qty-control button {
    color: #1a3718;
    font-size: 1rem;
    width: 25px;
}

.unique-qty-value {
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .cart-item-unique {
        flex-direction: column;
        align-items: center;
    }
    
    .cart-right-section {
        flex-direction: column; /* Image top, text bottom */
        width: 100%;
        text-align: center;
    }

    .cart-left-section {
        flex-direction: row;
        width: 100%;
        border-left: none;
        border-bottom: 1px solid #eee;
        padding-left: 0;
        padding-bottom: 10px;
        margin-bottom: 15px !important;
        justify-content: space-between;
        align-items: center;
    }
    
    .cart-item-meta {
        justify-content: center;
    }
    
    .cart-item-details h2 {
         -webkit-line-clamp: 3; /* Allow more lines on mobile? */
    }
}
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075);
    align-items: stretch;
    gap: 15px;
    position: relative;
}

/* Left Side: Brand & Controls */
.cart-item-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 140px;
    border-right: 1px solid #f0f0f0;
    padding-right: 15px;
    margin-bottom: 0 !important;
}

.brand-logo {
    max-width: 80px;
    object-fit: contain;
}

.cart-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

/* Right Side: Visuals */
.favorite-item-visual {
    display: flex;
    flex-grow: 1;
    gap: 20px;
    align-items: center;
    overflow: hidden; /* Ensure truncation works within flex child */
}

/* Image on the FAR RIGHT -> Order 2 */
.favorite-item-visual img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 20px;
    order: 2; /* Move to right */
    flex-shrink: 0;
}

/* Details in the MIDDLE -> Order 1 */
.cart-details {
    flex-grow: 1;
    order: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0; /* Critical for truncation in flexbox */
}

/* Title Styling */
.name-meta-info h2 {
    font-size: 1.1rem !important;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    color: #000;
    /* Truncate text after 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.name-meta-info h2 b {
    font-weight: 700;
}

/* Attributes */
.cart-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
}

.variant-attribute {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Color Dot */
.color-dot, .product-color-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid #ddd;
}

/* Price */
.cart-pricing {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-pricing .price-two {
    font-size: 1.2rem;
    color: #e63a19;
}

.cart-pricing .price-one {
    font-size: 0.9rem;
}

/* Quantity Controls styling */
.quantity-control {
    border: 1px solid #333;
    border-radius: 8px;
    padding: 2px 5px;
    display: flex;
    align-items: center;
    background: #fff;
    height: 35px;
}
.collection-product-card .quantity-control {
    border:none;
}
.quantity-control button {
    color: #1a3718;
    font-size: 1rem;
    width: 25px;
}

.qty-value {
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

/* Wishlist Icon */
.add-to-fav-btn i {
    color: #e63a19;
    font-size: 1.5rem;
}

/* Edit Button */
.update-product-for-cart {
    background: #eee;
    color: #333;
    font-weight: bold;
    border-radius: 50px;
    padding: 5px 15px;
    font-size: 0.85rem;
    border: none;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .cart-item {
        flex-direction: column;
        align-items: center;
    }
    
    .cart-item-info {
        flex-direction: row;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-right: 0;
        padding-bottom: 10px;
        margin-bottom: 15px !important;
        justify-content: space-between;
        align-items: center;
    }
    
    .favorite-item-visual {
        flex-direction: column-reverse;
        width: 100%;
        text-align: center;
    }

    .favorite-item-visual img {
        order: 0;
        width: 100px;
        height: 100px;
        margin-bottom: 10px;
    }

    .cart-details {
        order: 1;
        align-items: center;
    }

    .cart-meta-info {
        justify-content: center;
    }
}


/* --- Perfect Cart Design Refinements --- */
.cart-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Quantity Control Segmented Look */
.quantity-control-segmented {
    height: 35px;
    width: 100px;
    background: #fff;
    border: 1px solid #777; /* Darker border as per image */
    border-radius: 5px; /* SLightly rounded corners like image [ + | 1 | - ] */
    display: flex;
    align-items: center;
    overflow: hidden;
}

.quantity-control-segmented .btn-qty {
    width: 30px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #1a3718;
    cursor: pointer;
}

.quantity-control-segmented .qty-divider {
    width: 1px;
    height: 100%;
    background-color: #777;
}

.quantity-control-segmented .qty-display {
    flex-grow: 1;
    text-align: center;
    font-weight: bold;
    font-size: 1rem;
    color: #1a3718;
}

/* Edit Button specific tweaking */
.btn-edit-pill {
    background-color: #eee;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
    gap: 5px;
    border: none;
}

.current-price{
    color:#ec5328;
}