
/* Cart Drawer Styles */

    :root {
      --ag-cart-bg: #ffffff;
      --ag-cart-accent: #2e5c42;
      /* Matching the theme's accent */
      --ag-cart-text: #1a1a1a;
      --ag-cart-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
      --ag-cart-transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    }

    /* Cart Overlay */
    .ag-cart-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.4);
      backdrop-filter: blur(4px);
      z-index: 9998;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .ag-cart-overlay.active {
      opacity: 1;
      visibility: visible;
    }

    /* Side Cart Container */
    .ag-side-cart {
      position: fixed;
      top: 0;
      right: 0;
      width: 450px;
      max-width: 90%;
      height: 100vh;
      background: var(--ag-cart-bg);
      z-index: 9999;
      transform: translateX(100%);
      display: flex;
      flex-direction: column;
      box-shadow: var(--ag-cart-shadow);
      transition: var(--ag-cart-transition);
    }

    .ag-side-cart.active {
      transform: translateX(0);
    }

    /* Header */
    .ag-cart-header {
      padding: 20px;
      border-bottom: 1px solid #eee;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .ag-cart-header h2 {
      margin: 0;
      font-size: 1.8rem;
      font-weight: 700;
      color: var(--ag-cart-text);
      font-family: var(--font-heading-family);
    }

    .ag-close-cart {
      background: none;
      border: none;
      cursor: pointer;
      padding: 5px;
      display: flex;
      align-items: center;
      transition: opacity 0.2s;
    }

    .ag-close-cart:hover {
      opacity: 0.7;
    }

    /* Content Area */
    .ag-cart-content {
      flex: 1;
      overflow-y: auto;
      padding: 20px;
    }

    /* Free Shipping Bar */
    .ag-shipping-progress {
      margin-bottom: 25px;
      padding: 15px;
      background: #f9f9f9;
      border-radius: 12px;
    }

    .ag-shipping-text {
      font-size: 1.3rem;
      margin-bottom: 10px;
      display: block;
      color: #444;
    }

    .ag-shipping-text strong {
      color: var(--ag-cart-accent);
    }

    .ag-progress-track {
      width: 100%;
      height: 8px;
      background: #e0e0e0;
      border-radius: 4px;
      overflow: hidden;
      position: relative;
    }

    .ag-progress-fill {
      height: 100%;
      background: linear-gradient(90deg, var(--ag-cart-accent), #4f6b5b);
      width: 0%;
      transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s ease;
    }

    .ag-progress-fill.success {
      background: linear-gradient(90deg, #22c55e, #16a34a) !important;
    }

    /* Scarcity Triggers */
    .ag-scarcity-badge {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 15px;
      background: #fff8f8;
      border: 1px solid #ffebeb;
      border-radius: 8px;
      margin-bottom: 20px;
      color: #d0021b;
      font-size: 1.3rem;
      font-weight: 600;
    }

    .ag-scarcity-badge svg {
      animation: ag-pulse 2s infinite;
    }

    @keyframes ag-pulse {
      0% {
        transform: scale(1);
        opacity: 1;
      }

      50% {
        transform: scale(1.1);
        opacity: 0.8;
      }

      100% {
        transform: scale(1);
        opacity: 1;
      }
    }

    @keyframes ag-blink {
      0% {
        opacity: 1;
      }

      50% {
        opacity: 0.3;
      }

      100% {
        opacity: 1;
      }
    }

    .ag-timer-badge {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 1.2rem;
      color: #666;
      margin-bottom: 15px;
      justify-content: center;
    }

    #ag-cart-timer-val {
      font-weight: 700;
      color: #d0021b;
    }

    /* Cart Items */
    .ag-cart-items-list {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .ag-cart-item {
      display: grid;
      grid-template-columns: 80px 1fr;
      gap: 15px;
      align-items: start;
      padding-bottom: 20px;
      border-bottom: 1px solid #f0f0f0;
    }

    .ag-item-img {
      width: 80px;
      height: 80px;
      border-radius: 8px;
      background: #f5f5f5;
      object-fit: contain;
    }

    .ag-item-info h4 {
      margin: 0 0 5px 0;
      font-size: 1.4rem;
      color: var(--ag-cart-text);
    }

    .ag-item-price {
      font-weight: 700;
      color: var(--ag-cart-accent);
      margin-bottom: 10px;
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 1.5rem;
    }

    .ag-item-old-price {
      text-decoration: line-through;
      color: #999;
      font-weight: 400;
      font-size: 1.2rem;
    }

    .ag-item-controls {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .ag-qty-selector {
      display: flex;
      align-items: center;
      border: 1.5px solid #eee;
      border-radius: 20px;
      padding: 2px 10px;
    }

    .ag-qty-btn {
      background: none;
      border: none;
      font-size: 1.6rem;
      cursor: pointer;
      color: #888;
      padding: 5px 10px;
    }

    .ag-qty-val {
      padding: 0 10px;
      font-weight: 600;
      min-width: 20px;
      text-align: center;
    }

    .ag-remove-item {
      color: #999;
      background: none;
      border: none;
      cursor: pointer;
      font-size: 1.2rem;
      text-decoration: underline;
    }

    /* Footer */
    .ag-cart-footer {
      padding: 25px;
      border-top: 1px solid #eee;
      background: #fff;
    }

    .ag-total-row {
      display: flex;
      justify-content: space-between;
      margin-bottom: 20px;
      font-size: 1.8rem;
      font-weight: 700;
    }

    .ag-checkout-btn {
      width: 100%;
      background: var(--ag-cart-accent);
      color: white;
      border: none;
      padding: 16px;
      border-radius: 40px;
      font-size: 1.6rem;
      font-weight: 700;
      cursor: pointer;
      transition: transform 0.2s, background 0.2s;
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 10px;
      margin-bottom: 15px;
      box-shadow: 0 4px 15px rgba(46, 92, 66, 0.3);
    }

    .ag-checkout-btn:hover {
      background: #244834;
      transform: translateY(-2px);
    }

    .ag-trust-badges {
      display: flex;
      justify-content: center;
      gap: 15px;
      opacity: 0.6;
    }

    .ag-trust-badges img {
      height: 20px;
    }

    /* Mobile adjustments */
    @media (max-width: 480px) {
      .ag-side-cart {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        border-radius: 0 !important;
      }
    }
  
/* Payment Widget */
.payment-widget {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
}

.payment-header {
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 16px;
}

.payment-text {
    font-size: 13px;
    color: #777;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-methods {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 12px;
}

.payment-icons {
    display: flex;
    gap: 24px;
}

.payment-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.payment-label {
    font-size: 11px;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 32px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
}

.payment-icon:active, .payment-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.payment-icon svg {
    width: 28px;
    height: 28px;
}

.installment-info {
    text-align: center;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
}

.installment-text {
    font-size: 13px;
    color: #777;
}

.installment-highlight {
    color: #2ecc71;
    font-weight: 600;
}
