/* Shared site styles: cart, nav overlay, navbar. Loaded by includes/header.php */
  /* ==============================================
     CART MENU STYLING - All cart styles consolidated here
     ============================================== */
  
  /* Main cart container */
  .cedilla-cart-count {
    color: #fff;
    font-size: 0.7em;
  }

  .cart-menu {
    position: fixed;
    top: 55px;
    right: -35%;
    bottom: 20px;
    width: 30%;
    background: rgba(15, 15, 25, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    z-index: 10000;
    overflow-y: auto;
    transition: right 0.3s ease;
    padding: 25px;
    display: flex;
    flex-direction: column;
  }
  
  .cart-menu.open {
    right: 20px !important;
  }
  
  /* Cart header and close button */
  .cart-close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    font-size: 0;
    color: white;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    background-image: url('/assets/close.png');
    background-size: 16px 16px;
    background-repeat: no-repeat;
    background-position: center;
  }
  
  .cart-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
  }
  
  .cart-title {
    color: white;
    font-size: 1.2em;
    margin: 0 0 25px 0;
    text-align: left;
    font-weight: 200;
    letter-spacing: 2px;
  }
  
  /* Cart total styling */
  .cart-total {
    font-size: 1em;
    margin: 0px 0;
    padding: 15px 0;
    color: white;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  #cartTotal {
    color: #fff;
  }
  
  /* Checkout button */
  .checkout-btn {
    width: 100%;
    background: #5164f6;
    color: white;
    border: none;
    padding: 15px;
    font-size: 1em;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
  }
  
  .checkout-btn:hover:not(:disabled) {
    background: #4151e6;
    transform: translateY(-1px);
  }
  
  .checkout-btn:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
  }
  
  /* Cart items styling */
  .cart-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
  }
  
  .cart-item:last-child {
    border-bottom: none;
  }
  
  .cart-item-details {
    flex: 1;
    margin-right: 10px;
  }
  
  .cart-item-name {
    font-weight: 500;
    margin-bottom: 5px;
    color: #fff;
    font-size: 0.9em;
    line-height: 1.3;
  }
  
  .cart-item-price {
    color: #fff;
    font-size: 0.8em;
    font-weight: normal;
    margin-bottom: 8px;
  }
  
  /* Enhanced cart items with images */
  .enhanced-cart-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
  }
  
  .enhanced-cart-item:last-child {
    border-bottom: none;
  }
  
  .enhanced-cart-item img {
    width: 85px;
    height: 85px;
    border-radius: 8px;
    margin-right: 15px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  /* Quantity controls */
  .quantity-controls {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 0.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 2px;
    width: fit-content;
    margin-top: 8px;
  }
  
  .quantity-btn {
    background: none;
    border: none;
    color: #fff;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    border-radius: 6px;
    transition: background-color 0.2s ease;
  }
  
  .quantity-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
  }
  
  .quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
  
  .quantity-display {
    color: #fff;
    font-size: 0.8em;
    font-weight: bold;
    min-width: 16px;
    text-align: center;
    padding: 0 6px;
  }
  
  /* Remove button */
  .remove-item {
    background: rgba(255, 59, 48, 0.2);
    border: 1px solid rgba(255, 59, 48, 0.3);
    margin-right: 10px;
    color: #ff3b30;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0;
    white-space: nowrap;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('/assets/bin.png');
    background-size: 14px 14px;
    background-repeat: no-repeat;
    background-position: center;
  }
  
  .remove-item:hover {
    background: rgba(255, 59, 48, 0.3);
    border-color: rgba(255, 59, 48, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('/assets/bin.png');
    background-size: 14px 14px;
    background-repeat: no-repeat;
    background-position: center;
  }
  
  /* Empty cart message */
  .empty-cart-message {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    padding: 40px 20px;
  }
  
  .empty-cart-icon {
    font-size: 3em;
    margin-bottom: 15px;
    opacity: 0.5;
  }
  
  .empty-cart-title {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: #fff;
  }
  
  .empty-cart-subtitle {
    font-size: 0.9em;
    opacity: 0.7;
  }
  
  /* Mobile responsiveness */
  @media (max-width: 600px) {
    /* Prevent horizontal scrolling */
    html, body {
      overflow-x: hidden !important;
      max-width: 100vw !important;
    }
    
    /* Ensure navbar stays fixed */
    .navbar {
      position: fixed !important;
      top: 0 !important;
      width: 100% !important;
      z-index: 9999 !important;
    }
    
    /* Fix icon spacing and alignment */
    .nav-container {
      gap: 20px !important;
      margin-right: 15px !important;
      align-items: center !important;
    }
    
    /* Align menu icon with basket icon */
    .menu-icon {
      position: relative !important;
      right: auto !important;
      margin-top: 0 !important;
    }
    
    /* Adjust basket icon */
    .cart-checkout-btn {
      margin-right: 5px !important;
    }
    
    /* Close button mobile */
    .cart-close-btn {
      background-size: 14px 14px !important;
    }
    
    /* Hide cart menu completely when closed */
    .cart-menu {
      width: 70%;
      right: -100% !important;
      top: 60px;
      bottom: 50px;
    }
    
    .cart-menu.open {
      right: 23px !important;
    }
    
    /* Keep horizontal layout on mobile, just bigger for readability */
    .enhanced-cart-item img {
      width: 70px !important;
      height: 70px !important;
      margin-right: 10px !important;
    }
    
    .cart-item-name {
      font-size: 1em !important;
      line-height: 1.2 !important;
    }
    
    .cart-item-price {
      font-size: 0.85em !important;
    }
    
    .remove-item {
      font-size: 0.85em !important;
      padding: 4px 6px !important;
    }
    
    .quantity-controls {
      margin-top: 6px !important;
    }
    
    .quantity-btn {
      width: 20px !important;
      height: 20px !important;
      font-size: 11px !important;
    }
    
    .quantity-display {
      font-size: 0.7em !important;
      padding: 0 4px !important;
    }
  }
  
  /* Cart icon and basket styling */
  .basket-text-hidden {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
  
  .items-snip.hidden {
    display: none;
  }
  
  /* Ensure overlay is hidden by default */
  #overlay {
    display: none;
  }
  
  #overlay.active {
    display: block !important;
  }

  /* Nav submenus */
  .submenu-list {
    display: none;
  }
  .submenu-list.open {
    display: block;
  }

  /* The logo <img> has width/height attributes (to reserve space while it
     loads). styles.css sets only its width, so keep the height in proportion. */
  .navbar .logo {
    height: auto;
  }
