
    /* Dashed Border Button */
    .btn-dashed-border {
      border: 2px dashed #adb5bd !important;
      transition: all 0.3s ease;
      text-decoration: none;
      color: #6c757d;
    }

    .btn-dashed-border:hover {
      border-color:
        var(--primary-color)
        !important;
      background-color: rgba(var(--primary-color-rgb), 0.05) !important;
      transform: translateY(-2px);
      color:
        var(--primary-color)
      ;
    }

    .product-card-img {
      height: 250px;
      object-fit: cover;
    }

    /* Cart widget styles in navbar */
    .navbar-cart {
      position: relative;
      display: flex;
      align-items: center;
    }

    .cart-btn {
      background: none;
      border: none;
      position: relative;
      padding: 0.5rem;
      border-radius: 0.375rem;
      transition: all 0.2s;
    }

    .cart-btn:hover {
      background-color: rgba(0, 0, 0, 0.1);
    }

    .cart-count {
      position: absolute;
      top: 0;
      right: 0;
      background-color: #dc3545;
      color: white;
      border-radius: 50%;
      width: 20px;
      height: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.7rem;
      font-weight: bold;
    }

    .cart-dropdown {
      position: absolute;
      top: 100%;
      right: 0;
      width: 350px;
      background: white;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      display: none;
      z-index: 1000;
      margin-top: 5px;
      max-height: 80vh;
      overflow-y: auto;
    }

    .cart-dropdown.show {
      display: block;
    }

    .cart-item {
      display: flex;
      align-items: center;
      padding: 10px 15px;
      border-bottom: 1px solid #eee;
    }

    .cart-item:last-child {
      border-bottom: none;
    }

    .cart-item img {
      width: 50px;
      height: 50px;
      object-fit: cover;
      margin-right: 10px;
      border-radius: 4px;
    }

    .cart-item-details {
      flex: 1;
    }

    .cart-item-title {
      font-size: 0.9rem;
      margin: 0 0 5px 0;
    }

    .cart-item-price {
      font-size: 0.8rem;
      color: #666;
    }

    .cart-item-total {
      font-weight: bold;
    }

    .cart-dropdown-header {
      padding: 10px 15px;
      border-bottom: 1px solid #eee;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .cart-dropdown-footer {
      padding: 15px;
      border-top: 1px solid #eee;
    }

    /* Remove item button */
    .remove-item-btn {
      background: none;
      border: none;
      color: #dc3545;
      cursor: pointer;
      padding: 2px 5px;
      border-radius: 3px;
    }

    .remove-item-btn:hover {
      background-color: rgba(220, 53, 69, 0.1);
    }

    /* Out of stock overlay */
    .out-of-stock-overlay {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.7);
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-weight: bold;
      text-align: center;
      padding: 10px;
      border-radius: calc(0.375rem - 1px) calc(0.375rem - 1px) 0 0;
    }

    .product-card {
      position: relative;
    }

    /* Product added badge */
    .product-added-badge {
      position: absolute;
      top: 10px;
      right: 10px;
      background-color: #28a745;
      color: white;
      border-radius: 50%;
      width: 25px;
      height: 25px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.7rem;
      font-weight: bold;
      z-index: 10;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    /* Enhanced Subcategories with Hover Dropdown */
    .subcategories-section {
      margin-bottom: 2rem;
      position: relative;
    }

    .subcategories-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 1.5rem;
      padding-bottom: 0.5rem;
      border-bottom: 2px solid #e9ecef;
    }

    .subcategories-container {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
      gap: 1.5rem;
    }

    .subcategory-card {
      background: white;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
      transition: all 0.3s ease;
      border: 1px solid #e9ecef;
      position: relative;
      height: 100%;
      display: flex;
      flex-direction: column;
      position: relative;
    }

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

    .subcategory-image-container {
      height: 180px;
      position: relative;
      overflow: hidden;
    }

    .subcategory-image {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.3s ease;
    }

    .subcategory-card:hover .subcategory-image {
      transform: scale(1.05);
    }

    .subcategory-placeholder {
      width: 100%;
      height: 100%;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 2.5rem;
    }

    .subcategory-content {
      padding: 1.5rem;
      flex-grow: 1;
      display: flex;
      flex-direction: column;
    }

    .subcategory-title {
      font-size: 1.1rem;
      font-weight: 600;
      color: #2c3e50;
      margin-bottom: 0.5rem;
      text-align: center;
    }

    .subcategory-description {
      color: #6c757d;
      font-size: 0.9rem;
      margin-bottom: 1rem;
      flex-grow: 1;
      text-align: center;
    }

    .subcategory-link {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-end;
      text-decoration: none;
      color: white;
      height: 200px;
      position: relative;
      overflow: hidden;
      width: 100%;
      padding-bottom: 1rem;
    }

    /* Dark gradient overlay to make text readable */
    .subcategory-link::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.1) 100%);
      z-index: 1;
      transition: opacity 0.3s ease;
    }

    .subcategory-link:hover::after {
      background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.2) 100%);
    }

    .subcategory-actions {
      display: flex;
      gap: 0.5rem;
    }

    .subcategory-btn {
      flex: 1;
      border-radius: 25px;
      font-weight: 600;
      padding: 0.5rem;
      transition: all 0.3s ease;
      text-align: center;
    }

    .subcategory-btn-primary {
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      color: white;
      border: none;
    }

    .subcategory-btn-outline {
      background: transparent;
      border: 1px solid #667eea;
      color: #667eea;
    }

    .subcategory-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    }

    /* Hover Dropdown for subcategories */
    .subcategory-dropdown {
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: white;
      border-radius: 8px;
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
      padding: 1rem;
      z-index: 100;
      display: none;
      margin-top: 0.5rem;
      border: 1px solid #e9ecef;
      opacity: 0;
      transform: translateY(-10px);
      transition: all 0.3s ease;
    }

    .subcategory-card:hover .subcategory-dropdown {
      display: block;
      opacity: 1;
      transform: translateY(0);
    }

    .subcategory-dropdown-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 1rem;
      padding-bottom: 0.5rem;
      border-bottom: 1px solid #e9ecef;
    }

    .subcategory-dropdown-title {
      font-size: 1.1rem;
      font-weight: 600;
      color: #2c3e50;
      margin: 0;
    }

    .subcategory-dropdown-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
      gap: 1rem;
    }

    .subcategory-dropdown-item {
      padding: 0.75rem;
      border-radius: 6px;
      transition: all 0.2s ease;
      text-align: center;
      background: #f8f9fa;
      text-decoration: none;
      color: #495057;
      display: block;
    }

    .subcategory-dropdown-item:hover {
      background-color: #e9ecef;
      color: #667eea;
      transform: translateY(-2px);
    }

    .subcategory-dropdown-item i {
      display: block;
      margin-bottom: 0.5rem;
      font-size: 1.5rem;
    }

    /* Mobile enhancements */
    @media (max-width: 768px) {
      .subcategories-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
      }

      .subcategory-image-container {
        height: 150px;
      }

      .subcategory-dropdown-grid {
        grid-template-columns: repeat(2, 1fr);
      }

      /* On mobile, still use click instead of hover */
      .subcategory-dropdown {
        position: static;
        opacity: 1;
        transform: none;
        display: none;
        margin-top: 1rem;
      }

      .subcategory-card.active .subcategory-dropdown {
        display: block;
      }
    }

    @media (max-width: 576px) {
      .subcategories-container {
        grid-template-columns: 1fr;
      }

      .subcategory-image-container {
        height: 180px;
      }

      .subcategory-dropdown-grid {
        grid-template-columns: 1fr;
      }
    }

    /* Product Quick View Modal Styles */
    .product-modal-image-container {
      height: 300px;
      /* Fixed height for consistency */
      width: 100%;
      background: #f8f9fa;
      border-radius: 15px;
      overflow: hidden;
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    #modalProductImage {
      max-height: 100%;
      width: 100%;
      object-fit: cover;
      /* Fill the container completely */
    }

    #modalProductAttributes {
      max-height: 200px;
      overflow-y: auto;
    }

    /* ... scrollbar styles ... */
    #modalProductAttributes::-webkit-scrollbar {
      width: 6px;
    }

    #modalProductAttributes::-webkit-scrollbar-track {
      background: #f1f1f1;
      border-radius: 10px;
    }

    #modalProductAttributes::-webkit-scrollbar-thumb {
      background: #888;
      border-radius: 10px;
    }

    #modalProductAttributes::-webkit-scrollbar-thumb:hover {
      background: #555;
    }

    .attribute-item {
      display: flex;
      align-items: center;
      /* justify-content: flex-start;  Default for RTL */
      padding: 8px 12px;
      /* Standard padding */
      border-bottom: 1px solid #f0f0f0;
      transition: all 0.2s ease;
      cursor: pointer;
      gap: 12px;
      /* Space between checkbox and text */
    }

    .attribute-item:hover {
      background-color: #f8f9fa;
    }

    .attribute-item:last-child {
      border-bottom: none;
    }

    /* Style container label to fill space */
    .attribute-label {
      flex: 1;
      font-size: 0.9rem;
      color: #2c3e50;
      cursor: pointer;
      text-align: right;
      /* RTL support */
      padding-left: 8px;
    }

    .attribute-checkbox {
      width: 20px;
      /* Smaller checkbox */
      height: 20px;
      margin: 0;
      /* Remove default margin */
      cursor: pointer;
      accent-color: #198754;
      /* Success Green */
      transform: scale(1);
    }

    /* Checked state styling for row */
    .attribute-checkbox:checked+.attribute-label {
      color: #198754;
      /* Green text */
      font-weight: bold;
    }

    /* Selection effects removed as requested */
    .attribute-item:has(.attribute-checkbox:checked) {
      /* background-color: transparent; */
      /* border-right: none; */
    }

    .attribute-icon {
      width: 32px;
      height: 32px;
      margin-left: 12px;
      /* Space between icon and text */
      border-radius: 6px;
      object-fit: cover;
    }

    /* Improved Modal Close Button */
    #productQuickViewModal .btn-close {
      background-color: #dc3545;
      /* Red circle */
      background-image: none;
      /* Remove default SVG */
      border-radius: 50%;
      width: 35px;
      height: 35px;
      opacity: 1;
      padding: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s ease;
      box-shadow: 0 4px 10px rgba(220, 53, 69, 0.3);
      /* Reddish shadow */
      color: white;
      position: relative;
      cursor: pointer;
      /* Ensure hand cursor */
    }

    /* Create X icon using CSS */
    #productQuickViewModal .btn-close::before {
      content: "\00d7";
      /* Multiplication sign */
      font-size: 28px;
      font-family: Arial, sans-serif;
      line-height: 1;
      margin-top: -3px;
      /* Visual centering */
      pointer-events: none;
      /* Click passes through to the button */
    }

    /* Invisible Hit Area Expansion (Touch Target) */
    #productQuickViewModal .btn-close::after {
      content: '';
      position: absolute;
      top: -15px;
      left: -15px;
      right: -15px;
      bottom: -15px;
      /* background: rgba(0,0,0,0.2); Uncomment to debug hit area */
      cursor: pointer;
    }

    #productQuickViewModal .btn-close:active {
      transform: scale(0.95);
      background-color: #bb2d3b;
      /* Darker on press */
      box-shadow: 0 2px 5px rgba(220, 53, 69, 0.2);
    }

    @media (max-width: 768px) {
      .product-modal-image-container {
        height: 160px;
      }

      #modalProductAttributes {
        max-height: 180px;
      }
    }

    @media (max-width: 576px) {
      .product-modal-image-container {
        height: 140px;
        /* Fixed smaller height for mobile */
      }

      .modal-body {
        padding: 0 !important;
        /* Less padding */
      }

      .attribute-item {
        padding: 8px 12px;
        /* Restore horizontal padding for mobile */
      }

      .attribute-label {
        font-size: 0.85rem;
      }

      .attribute-icon {
        width: 28px;
        height: 28px;
      }
    }

    /* Soft Red Add to Cart Button */
    #modalAddToCartBtn {
      background-color: #dc3545 !important;
      color: white !important;
      border: none;
      border-radius: 50px !important;
      /* Soft pill shape */
      padding: 12px;
      font-weight: bold;
      font-size: 1.1rem;
      box-shadow: 0 4px 10px rgba(220, 53, 69, 0.2);
      transition: all 0.3s ease;
    }

    #modalAddToCartBtn:hover {
      background-color: #c82333 !important;
      /* Slightly darker on hover */
      transform: translateY(-2px);
      box-shadow: 0 6px 15px rgba(220, 53, 69, 0.3);
    }

    /* Multi-step Modal Navigation */
    .modal-step-indicator-container {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 6px 12px;
      background: #f8f9fa;
      border-radius: 10px;
      margin-bottom: 1rem;
    }
    
    .modal-step-indicator {
      font-weight: bold;
      color: #2c3e50;
      font-size: 0.9rem;
    }
    
    .modal-step-name {
      font-weight: bold;
      color: #2c3e50;
      font-size: 0.9rem;
    }

    .modal-navigation {
      display: flex;
      justify-content: space-between;
      gap: 10px;
      margin-top: 10px;
    }

    .nav-btn {
      flex: 1;
      padding: 6px;
      border-radius: 40px;
      border: none;
      font-weight: bold;
      font-size: 0.85rem;
      transition: all 0.3s ease;
    }

    .modal-navigation {
      display: flex;
      justify-content: space-between;
      gap: 10px;
      margin-top: 10px;
    }

    .nav-btn {
      flex: 1;
      padding: 12px;
      border-radius: 50px;
      border: none;
      font-weight: bold;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }

    .nav-btn-next {
      background-color: #dc3545;
      color: white;
      box-shadow: 0 4px 10px rgba(220, 53, 69, 0.2);
    }

    .nav-btn-back {
      background-color: #e9ecef;
      color: #2c3e50;
    }

    .nav-btn:hover {
      opacity: 0.9;
      transform: translateY(-1px);
    }

    /* Horizontal Subcategories Carousel */
    .subcategories-section {
      margin-bottom: 2rem;
      position: relative;
    }

    .subcategories-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 1.5rem;
      padding-bottom: 0.5rem;
      border-bottom: 2px solid #e9ecef;
    }

    /* Hide scrollbar for Chrome, Safari and Opera */
    .modal-body::-webkit-scrollbar,
    .modal::-webkit-scrollbar {
      display: none;
    }

    /* Hide scrollbar for IE, Edge and Firefox */
    .modal-body,
    .modal {
      -ms-overflow-style: none;  /* IE and Edge */
      scrollbar-width: none;  /* Firefox */
    }

    /* =========================================
       n90-AI INVISIBLE MODAL (CORRECTED & FORCED)
       ========================================= */

    /* 1. The Backdrop - Portrait Mode Effect (Strong Blur & Darkening) */
    .modal-backdrop.show {
        opacity: 0.7 !important; /* Strong darkening */
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        background-color: rgba(0, 0, 0, 0.5) !important;
        z-index: 1040 !important;
    }

    /* 2. The Container - Centered & Scrollable */
    #productQuickViewModal .modal-dialog {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 auto !important;
        max-width: 330px !important;
        width: 90% !important;
        min-height: 100vh !important;
        pointer-events: none !important;
    }

    /* 3. STRIP ALL BACKGROUNDS FROM WRAPPERS */
    #productQuickViewModal .modal-content,
    #productQuickViewModal .modal-body, /* This is div[2] */
    #productQuickViewModal .modal-header,
    #productQuickViewModal .modal-footer {
        background: transparent !important;
        background-color: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        pointer-events: auto !important; /* Re-enable clicks on content */
    }

    /* 4. The Product Image Card - Floating White Island */
    .product-modal-image-container {
        display: block !important;
        background: #ffffff !important;
        border-radius: 15px !important;
        overflow: hidden !important;
        margin-bottom: 12px !important;
        height: 160px !important;
        position: relative !important;
        z-index: 1050 !important;
    }

    #modalProductImage {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        padding: 0 !important;
    }

    /* 5. The Details Panel - Floating Glass Island */
    /* We attach these styles to the ROW inside modal-body because modal-body is now transparent */
    #productQuickViewModal .modal-body > .row {
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border-radius: 20px !important;
        padding: 8px !important;
        box-shadow: 0 8px 25px rgba(0,0,0,0.25) !important;
        margin: 0 !important; /* Fix row negative margins */
        display: block !important; /* Stack vertically */
        border: 1px dashed #ff69b4 !important; /* Pink dashed border - thin */
        box-shadow: 0 0 0 2px rgba(255, 105, 180, 0.2), 0 8px 25px rgba(0,0,0,0.25) !important;
    }

    /* 6. Typography Fixes */
    #modalProductTitle {
        font-family: 'Segoe UI', sans-serif !important;
        font-size: 1.1rem !important;
        font-weight: 700 !important;
        text-align: right !important;
        color: #2c3e50 !important;
        margin-top: 8px !important;
        margin-bottom: 8px !important;
        line-height: 1.3 !important;
    }

    #modalProductPrice {
        width: 100% !important;
        display: block !important;
        margin: 8px 0 10px 0 !important;
    }
    
    /* Price text sizes */
    #modalProductPrice .header-total-price {
        font-size: 1.4rem !important;
        font-weight: 800 !important;
        color: #2c3e50 !important;
        letter-spacing: -0.5px !important;
    }
    
    #modalProductPrice .price-breakdown-box {
        font-size: 0.85rem !important;
        padding: 8px !important;
        border-radius: 10px !important;
    }
    
    #modalProductPrice .quantity-pill {
        padding: 4px 12px !important;
        border-radius: 40px !important;
    }
    
    #modalProductPrice .quantity-pill span {
        font-size: 1rem !important;
        min-width: 25px !important;
    }
    
    .row.g-2 {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
    }

    .col-6.col-sm-4 {
        width: 100% !important;
    }

    .attribute-option-label {
        background: #fff !important;
        border: 1px solid #e0e0e0 !important;
        border-radius: 10px !important;
        padding: 8px !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05) !important;
        font-size: 0.85rem !important;
    }

    .attribute-input-field:checked + .attribute-option-label {
        border-color: #d32f2f !important;
        background-color: #fff9f9 !important;
        box-shadow: 0 5px 15px rgba(211, 47, 47, 0.2) !important;
        transform: translateY(-2px) !important;
    }

    /* 8. Close Button - Floating Orb (Fixed Position) */
    .super-close-btn {
        position: absolute !important;
        top: -10px !important; /* Half out of the image */
        left: -10px !important;
        width: 32px !important;
        height: 32px !important;
        background: #d32f2f !important;
        border: 2px solid #fff !important; /* White border to separate from bg */
        border-radius: 50% !important;
        z-index: 1100 !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
        opacity: 1 !important;
        /* Icon */
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") !important;
        background-size: 45% !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
    }

    /* 9. Action Button - Wide & Bold */
    #modalAddToCartBtn {
        width: 100% !important;
        border-radius: 12px !important;
        padding: 8px !important;
        font-size: 0.9rem !important;
        font-weight: 700 !important;
        margin-top: 8px !important;
        background: linear-gradient(135deg, #d32f2f, #b71c1c) !important;
        box-shadow: 0 6px 15px rgba(211, 47, 47, 0.35) !important;
        border: none !important;
    }
    
    /* Responsive Modal Styles */
    @media (max-width: 576px) {
        #productQuickViewModal .modal-dialog {
            max-width: 300px !important;
            width: 90% !important;
        }
        
        .product-modal-image-container {
            height: 140px !important;
            margin-bottom: 10px !important;
        }
        
        #modalProductTitle {
            font-size: 1rem !important;
        }
        
        #modalProductPrice .header-total-price {
            font-size: 1.2rem !important;
        }
        
        #modalProductPrice .quantity-pill {
            padding: 3px 10px !important;
        }
        
        #modalProductPrice .quantity-pill span {
            font-size: 0.9rem !important;
        }
        
        #modalAddToCartBtn {
            font-size: 0.85rem !important;
            padding: 7px !important;
        }
        
        .super-close-btn {
            width: 28px !important;
            height: 28px !important;
            top: -8px !important;
            left: -8px !important;
        }
    }
    
    /* Hide redundant elements if any */
    .modal-footer {
        display: none !important;
    }
    .subcategories-carousel-container {
      position: relative;
      overflow: hidden;
      padding: 1rem 0;
    }

    .subcategories-carousel {
      display: flex;
      overflow-x: auto;
      scrollbar-width: none;
      /* Firefox */
      -ms-overflow-style: none;
      /* IE 10+ */
      scroll-behavior: smooth;
      padding: 0.5rem;
      gap: 1rem;
    }

    .subcategories-carousel::-webkit-scrollbar {
      display: none;
      /* Chrome Safari */
    }

    .subcategory-item {
      flex: 0 0 auto;
      width: 120px;
      text-align: center;
      background: white;
      border-radius: 12px;
      padding: 0;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
      transition: all 0.3s ease;
      border: none;
      overflow: hidden;
    }

    .subcategory-item:hover {
      transform: translateY(-3px);
      box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    }

    .subcategory-badge {
      position: relative;
      z-index: 2;
    }

    /* Custom CSS for this page */

    /* Mobile responsive */
    @media (max-width: 768px) {
      .subcategory-item {
        width: 100px;
      }

      .subcategory-image-wrapper {
        width: 50px;
        height: 50px;
        min-width: 50px;
        min-height: 50px;
      }

      .subcategory-name {
        font-size: 0.75rem;
      }
    }

    @media (max-width: 576px) {
      .subcategory-item {
        width: 90px;
      }

      .subcategory-image-wrapper {
        width: 45px;
        height: 45px;
        min-width: 45px;
        min-height: 45px;
      }

      .subcategory-name {
        font-size: 0.7rem;
      }

      .carousel-nav {
        width: 32px;
        height: 32px;
      }

      .carousel-nav i {
        font-size: 1rem;
      }
    }

    @media (max-width: 400px) {
      .subcategory-item {
        width: 80px;
      }
    }
  


    /* Force hide global live search dropdown on this page */
    .live-search-results {
      display: none !important;
    }

    /* Premium Aesthetic Adjustments */
    body {
      background-color: #e5dac9 !important; /* Creamy background */
    }

    .category-item {
      text-align: center;
      background: white !important; /* White solid background */
      border: 2px solid #d4af37 !important; /* Golden border */
      border-radius: 0.75rem !important;
      overflow: hidden;
      box-shadow: 0 4px 15px rgba(212, 175, 55, 0.1) !important;
      transition: all 0.3s ease !important;
    }

    .category-item:hover {
      transform: translateY(-5px) !important;
      box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3) !important;
      border-color: #ffd700 !important;
    }

    .category-link {
      text-decoration: none;
      color: inherit;
      display: block;
      background: transparent !important;
      border: none !important;
      box-shadow: none !important;
    }

    .categories-grid .category-image-wrapper {
      position: relative;
      width: 100%;
      aspect-ratio: auto !important;
      height: 180px !important;
      margin-bottom: 0 !important;
      border-radius: 0 !important;
      border: none !important;
      background-color: transparent !important;
      display: flex;
      align-items: flex-start !important; /* Touch top edge */
      justify-content: center;
      overflow: hidden;
      padding: 0 !important;
    }

    .categories-grid .category-image {
      width: 100%;
      height: 100%;
      object-fit: cover !important;
      border-radius: 0 !important;
    }

    .categories-grid .category-info-content {
      padding: 8px 10px; /* تقليل الحشو لرفع المحتوى للأعلى */
      min-height: 100px;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      text-align: center;
    }

    .categories-grid .category-name {
      font-size: 1.05rem;
      font-weight: 700;
      margin: 0 0 2px 0; /* تقليل المسافة لرفعه للأعلى */
      color: #2c3e50;
      display: -webkit-box;
      -webkit-line-clamp: 1;
      -webkit-box-orient: vertical;
      overflow: hidden;
      padding: 0 !important;
    }

    .description-separator {
      margin: 4px auto 8px auto; /* تضييق المساحة */
      border: 0;
      border-top: 1px solid #d4af37;
      opacity: 0.4;
      width: 35%;
      flex-shrink: 0;
    }

    .category-description {
      font-size: 0.85rem;
      margin: 0;
      color: #444; /* Changed from #666 to #444 for better contrast */
      line-height: 1.4;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
      text-overflow: ellipsis;
      font-weight: 500;
    }

    /* Product Cards Styling */
    .product-card {
      border: 2px solid #d4af37 !important; /* Golden border */
      border-radius: 0.75rem !important;
      background-color: white !important; /* White solid background */
      overflow: hidden;
      box-shadow: 0 4px 15px rgba(212, 175, 55, 0.1) !important;
      transition: all 0.3s ease !important;
    }

    .product-card:hover {
      transform: translateY(-5px) !important;
      box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3) !important;
      border-color: #ffd700 !important;
    }

    .product-card .card-text {
      font-size: 1.1rem !important; /* Adjusted price font size */
      color: #198754 !important; /* Green color for prices */
    }

    #modalProductPrice {
      color: #198754 !important;
    }

    /* Dark Gold Product Code */
    .product-card .text-muted.small, .product-code-text {
      color: #996515 !important;
      font-weight: 600;
    }

    /* Bold and Larger Product Names */
    .product-card .card-title {
      font-size: 1.15rem !important;
      font-weight: 700 !important;
      color: #2c3e50 !important;
      margin-bottom: 10px !important;
    }

    /* Solid Green View Button */
    .btn-outline-primary {
      background-color: #198754 !important; /* Solid Green */
      color: white !important;
      border-color: #198754 !important;
    }

    .btn-outline-primary:hover {
      background-color: #157347 !important;
      border-color: #146c43 !important;
      transform: translateY(-1px);
    }

    .product-card-img {
      height: 200px !important;
      object-fit: cover !important;
      border-radius: 0.75rem 0.75rem 0 0 !important;
      margin-top: 0 !important;
    }

    .category-header-section {
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      padding: 60px 0;
      position: relative;
      overflow: hidden;
      border-radius: 0 0 30px 30px;
      margin-bottom: 30px;
    }
    
    .category-header-section::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: inherit;
      z-index: 0;
    }
    
    .category-header-has-image::before {
      display: none;
    }
    
    .category-header-bg-image {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 0;
      overflow: hidden;
    }
    
    .category-header-bg-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      display: block;
    }
    
    .category-header-overlay {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: linear-gradient(135deg, rgba(102, 126, 234, 0.85) 0%, rgba(118, 75, 162, 0.85) 100%);
      z-index: 1;
    }
    
    .category-header-has-image .category-header-overlay {
      background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
      backdrop-filter: blur(2px);
      -webkit-backdrop-filter: blur(2px);
    }

    .category-title {
      font-weight: 800;
      color: #ffffff;
      margin-bottom: 15px;
      text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
      font-size: 2.5rem;
      letter-spacing: -0.5px;
    }
    
    .category-header-section .category-description {
      color: rgba(255, 255, 255, 0.95) !important;
      text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
    }
    
    @media (max-width: 768px) {
      .category-header-section {
        padding: 40px 0;
        border-radius: 0 0 20px 20px;
      }
      
      .category-title {
        font-size: 1.8rem;
      }
    }

    /* Back to Top Button */
    .back-to-top-btn {
      position: fixed;
      bottom: 80px;
      right: 20px;
      width: 45px;
      height: 45px;
      background-color: #f2711c; /* Vibrant Orange */
      color: white;
      border: 3px solid white;
      border-radius: 50%;
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 1050;
      cursor: pointer;
      box-shadow: 0 0 0 2px #f2711c, 0 4px 12px rgba(0,0,0,0.2);
      transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      font-size: 1.2rem;
      padding: 0;
      outline: none;
    }

    .back-to-top-btn:hover {
      transform: scale(1.1);
      background-color: #e0610e;
      box-shadow: 0 0 0 2px #e0610e, 0 6px 15px rgba(0,0,0,0.3);
    }
    
    .back-to-top-btn.show {
      display: flex;
    }


    /* =========================================
       PRODUCT QUICK VIEW MODAL
       MOVED TO: assets/components/product-modal/product-modal.css
       ========================================= */






  


    @keyframes slideDownBanner { from { transform: translateY(-100%); } to { transform: translateY(0); } }
    body.store-is-closed #store-closed-banner { display: block !important; animation: slideDownBanner 0.4s ease; }
  

@keyframes slideDownBanner { from { transform: translateY(-100%); } to { transform: translateY(0); } }
body.store-is-closed #store-closed-banner { display: block !important; animation: slideDownBanner 0.4s ease; }
