  /* =============================================================================
     MINI CART ICON & BADGE
     ============================================================================= */
  .lms-mini-cart {
      position: relative;
      display: inline-block;
  }

  /* Disable EAEL wrapper link invisible overlay so it doesn't steal clicks from buttons */
  [data-eael-wrapper-link] > a[class*="eael-wrapper-link"] {
      pointer-events: none !important;
  }

  /* Make cart buttons clickable above EAEL wrapper overlay (fallback) */
  [data-eael-wrapper-link] .elementor-widget-button {
      position: relative;
      z-index: 10;
  }

  .lms-mini-cart .cart-icon {
      display: flex;
      align-items: center;
      cursor: pointer;
      position: relative;
      padding: 8px;
      text-decoration: none;
      color: inherit;
      background: transparent;
      border: none;
  }

  .lms-mini-cart .cart-icon:hover {
      opacity: 0.8;
  }

  .lms-mini-cart .cart-icon svg {
      width: 24px;
      height: 24px;
  }

  .lms-mini-cart .cart-count {
      position: absolute;
      top: 0;
      right: 0;
      background: #1b581f;
      color: white;
      border-radius: 50%;
      min-width: 18px;
      height: 18px;
      font-size: 11px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: bold;
      padding: 0 4px;
  }

  /* =============================================================================
     DROPDOWN - DESKTOP (inside .lms-mini-cart)
     ============================================================================= */
  .lms-mini-cart .cart-dropdown {
      display: none;
      flex-direction: column;
      position: absolute;
      top: calc(100% + 10px);
      right: -16px;
      background: white;
      border: 1px solid #e5e7eb;
      border-radius: 16px;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
      width: 380px;
      max-width: calc(100vw - 32px);
      z-index: 9999999;
      max-height: 70vh;
      overflow: hidden;
  }

  .lms-mini-cart .cart-dropdown.show {
      display: flex;
  }

  /* =============================================================================
     DROPDOWN CHILDREN - scoped to .cart-dropdown so they work
     both inside .lms-mini-cart (desktop) and at body level (mobile)
     ============================================================================= */

  /* Dropdown Header */
  .cart-dropdown .dropdown-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 20px 24px 16px;
      border-bottom: 1px solid #f0f0f0;
      flex-shrink: 0;
  }

  .cart-dropdown .dropdown-title {
      margin: 0;
      padding: 0;
      font-size: 18px;
      font-weight: 700;
      color: #1f2937;
      line-height: 1.3;
  }

  .cart-dropdown .close-dropdown {
      display: none;
      background: none;
      border: none;
      font-size: 28px;
      color: #6b7280;
      cursor: pointer;
      padding: 0;
      line-height: 1;
      width: 32px;
      height: 32px;
      align-items: center;
      justify-content: center;
      border-radius: 8px;
      transition: all 0.2s;
      flex-shrink: 0;
  }

  .cart-dropdown .close-dropdown:hover {
      background: #f3f4f6;
      color: #1f2937;
  }

  /* Cart Items Container */
  .cart-dropdown .cart-items {
      flex: 1;
      overflow-y: auto;
      padding: 16px 24px;
      max-height: 280px;
  }

  .cart-dropdown .cart-items::-webkit-scrollbar {
      width: 4px;
  }

  .cart-dropdown .cart-items::-webkit-scrollbar-track {
      background: #f3f4f6;
      border-radius: 2px;
  }

  .cart-dropdown .cart-items::-webkit-scrollbar-thumb {
      background: #d1d5db;
      border-radius: 2px;
  }

  /* Cart Item */
  .cart-dropdown .cart-item {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      padding: 14px 16px;
      background: #f9fafb;
      border-radius: 12px;
      margin-bottom: 10px;
  }

  .cart-dropdown .cart-item:last-child {
      margin-bottom: 0;
  }

  .cart-dropdown .item-info {
      flex: 1;
      min-width: 0;
      padding-right: 16px;
  }

  .cart-dropdown .item-title {
      display: block;
      font-weight: 600;
      font-size: 14px;
      color: #1f2937;
      margin-bottom: 4px;
      line-height: 1.4;
      word-wrap: break-word;
  }

  .cart-dropdown .item-qty {
      font-size: 13px;
      color: #6b7280;
  }

  /* Quantity Controls (+/- buttons) */
  .cart-dropdown .qty-controls {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-top: 6px;
  }

  .cart-dropdown .qty-btn {
      width: 28px;
      height: 28px;
      border-radius: 6px;
      border: 1px solid #d1d5db;
      background: white;
      color: #374151;
      font-size: 16px;
      font-weight: 600;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.15s;
      padding: 0;
      line-height: 1;
  }

  .cart-dropdown .qty-btn:hover {
      background: #f3f4f6;
      border-color: #9ca3af;
  }

  .cart-dropdown .qty-btn:active {
      transform: scale(0.95);
  }

  .cart-dropdown .qty-value {
      font-size: 14px;
      font-weight: 600;
      color: #1f2937;
      min-width: 20px;
      text-align: center;
  }

  .cart-dropdown .item-actions {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 6px;
      flex-shrink: 0;
  }

  .cart-dropdown .item-price {
      font-weight: 700;
      font-size: 14px;
      color: #1b581f;
      white-space: nowrap;
  }

  .cart-dropdown .remove-item {
      background: none;
      border: none;
      color: #9ca3af;
      font-size: 20px;
      cursor: pointer;
      padding: 4px 8px;
      line-height: 1;
      border-radius: 6px;
      transition: all 0.2s;
  }

  .cart-dropdown .remove-item:hover {
      background: #fee2e2;
      color: #ef4444;
  }

  /* Empty Cart Message */
  .cart-dropdown .empty-msg {
      text-align: center;
      color: #6b7280;
      padding: 32px 16px;
      font-size: 15px;
      margin: 0;
  }

  /* Cart Footer */
  .cart-dropdown .cart-footer {
      border-top: 1px solid #f0f0f0;
      padding: 20px 24px 24px;
      background: white;
      flex-shrink: 0;
  }

  .cart-dropdown .cart-total {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 16px;
      font-weight: 600;
      color: #1f2937;
      margin-bottom: 16px;
  }

  .cart-dropdown .total-amount {
      color: #1b581f;
      font-size: 18px;
      font-weight: 700;
  }

  .cart-dropdown .checkout-btn {
      display: block;
      width: 100%;
      background: #1b581f;
      color: white;
      border: none;
      padding: 14px 20px;
      border-radius: 10px;
      font-size: 15px;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.2s, transform 0.15s;
      text-align: center;
      text-decoration: none;
  }

  .cart-dropdown .checkout-btn:hover {
      background: #144217;
      transform: translateY(-1px);
  }

  .cart-dropdown .checkout-btn:active {
      transform: translateY(0);
  }

  /* =============================================================================
     MOBILE OVERLAY BACKDROP
     ============================================================================= */
  .lms-cart-overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.5);
      z-index: 99998;
      opacity: 0;
      transition: opacity 0.3s ease;
  }

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

  /* =============================================================================
     MOBILE BOTTOM-SHEET - when dropdown is moved to body by JS
     ============================================================================= */
  body > .cart-dropdown {
      display: none;
      flex-direction: column;
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      width: 100%;
      max-width: 100%;
      background: white;
      border-radius: 20px 20px 0 0;
      box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
      max-height: 85vh;
      z-index: 99999;
      overflow: hidden;
      transform: translateY(100%);
      transition: transform 0.3s ease;
      border: none;
  }

  body > .cart-dropdown.show {
      display: flex;
      transform: translateY(0);
  }

  /* Drag Handle */
  body > .cart-dropdown::before {
      content: '';
      display: block;
      width: 40px;
      height: 4px;
      background: #d1d5db;
      border-radius: 2px;
      margin: 12px auto 0;
      flex-shrink: 0;
  }

  /* Show close button when at body level (mobile) */
  body > .cart-dropdown .close-dropdown {
      display: flex;
  }

  body > .cart-dropdown .dropdown-header {
      padding: 16px 24px;
  }

  body > .cart-dropdown .dropdown-title {
      font-size: 17px;
  }

  body > .cart-dropdown .cart-items {
      max-height: calc(85vh - 220px);
      -webkit-overflow-scrolling: touch;
  }

  body > .cart-dropdown .cart-item {
      padding: 14px 16px;
  }

  body > .cart-dropdown .item-title {
      font-size: 15px;
  }

  body > .cart-dropdown .item-price {
      font-size: 15px;
  }

  body > .cart-dropdown .cart-footer {
      padding: 20px 24px;
      padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }

  body > .cart-dropdown .cart-total {
      font-size: 17px;
  }

  body > .cart-dropdown .total-amount {
      font-size: 20px;
  }

  body > .cart-dropdown .checkout-btn {
      padding: 16px 24px;
      font-size: 16px;
      border-radius: 12px;
  }

  body > .cart-dropdown .empty-msg {
      padding: 48px 24px;
  }

  /* =============================================================================
     MOBILE STYLES - for dropdown still inside .lms-mini-cart (fallback)
     ============================================================================= */
  @media (max-width: 768px) {
      .lms-mini-cart .cart-dropdown {
          position: fixed;
          top: auto;
          bottom: 0;
          left: 0;
          right: 0;
          width: 100%;
          max-width: 100%;
          border-radius: 20px 20px 0 0;
          box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
          max-height: 85vh;
          transform: translateY(100%);
          transition: transform 0.3s ease;
          border: none;
      }

      .lms-mini-cart .cart-dropdown.show {
          transform: translateY(0);
      }

      /* Drag Handle */
      .lms-mini-cart .cart-dropdown::before {
          content: '';
          display: block;
          width: 40px;
          height: 4px;
          background: #d1d5db;
          border-radius: 2px;
          margin: 12px auto 0;
          flex-shrink: 0;
      }

      /* Show close button on mobile */
      .lms-mini-cart .close-dropdown {
          display: flex;
      }

      .lms-mini-cart .dropdown-header {
          padding: 16px 24px;
      }

      .lms-mini-cart .dropdown-title {
          font-size: 17px;
      }

      .lms-mini-cart .cart-items {
          padding: 16px 24px;
          max-height: calc(85vh - 220px);
          overflow-y: auto;
          -webkit-overflow-scrolling: touch;
      }

      .lms-mini-cart .cart-item {
          padding: 14px 16px;
      }

      .lms-mini-cart .item-title {
          font-size: 15px;
      }

      .lms-mini-cart .item-price {
          font-size: 15px;
      }

      .lms-mini-cart .cart-footer {
          padding: 20px 24px;
          padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
      }

      .lms-mini-cart .cart-total {
          font-size: 17px;
      }

      .lms-mini-cart .total-amount {
          font-size: 20px;
      }

      .lms-mini-cart .checkout-btn {
          padding: 16px 24px;
          font-size: 16px;
          border-radius: 12px;
      }

      .lms-mini-cart .empty-msg {
          padding: 48px 24px;
      }
  }

  /* =============================================================================
     NOTIFICATION TOAST
     ============================================================================= */
  .lms-notification {
      position: fixed;
      bottom: 24px;
      right: 24px;
      background: #1b581f;
      color: white;
      padding: 14px 24px;
      border-radius: 12px;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
      z-index: 100000;
      opacity: 0;
      transform: translateY(20px);
      transition: all 0.3s ease;
      font-size: 14px;
      font-weight: 500;
      max-width: 320px;
  }

  .lms-notification.show {
      opacity: 1;
      transform: translateY(0);
  }

  .lms-notification.error {
      background: #ef4444;
  }

  @media (max-width: 768px) {
      .lms-notification {
          left: 16px;
          right: 16px;
          bottom: 16px;
          max-width: none;
          text-align: center;
      }
  }
