/* E-Commerce Module Styles */

/* Category Pills Styling */
.btn-category-pill {
    background-color: #ffffff !important;
    color: var(--text-muted) !important;
    border: 1px solid var(--border-light) !important;
    border-radius: 30px !important;
    padding: 8px 20px !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    display: inline-flex !important;
    align-items: center !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
}
.btn-category-pill:hover {
    background-color: var(--primary-bg) !important;
    color: var(--primary) !important;
    border-color: rgba(var(--primary-rgb), 0.2) !important;
}
.btn-category-pill.active {
    background-color: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.2) !important;
}
.btn-category-pill.active .badge {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

.scrollbar-hidden::-webkit-scrollbar {
    display: none;
}
.scrollbar-hidden {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Product Card animations */
.product-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08) !important;
}
.product-card:hover .product-img {
    transform: scale(1.06);
}

/* Text & Typography Helpers */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.fw-extrabold {
    font-weight: 800 !important;
}
.cursor-pointer { cursor: pointer; }
.hover-border-primary:hover { border-color: var(--bs-primary) !important; }
.transition-all { transition: all 0.3s ease; }

/* Quantity Capsule styling */
.qty-capsule {
    background: #ffffff;
    border: 1px solid var(--border-light) !important;
    border-radius: 10px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.02) !important;
    transition: border-color 0.2s ease;
}
.qty-capsule:hover {
    border-color: rgba(var(--primary-rgb), 0.2) !important;
}
.qty-btn-custom {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-light) !important;
    background-color: transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
}
.qty-btn-custom:hover {
    background-color: var(--primary-bg);
    color: var(--primary) !important;
    text-decoration: none !important;
}
.qty-btn-custom:active {
    background-color: rgba(var(--primary-rgb), 0.1);
}
.qty-input-custom {
    border: none !important;
    background: transparent !important;
    text-align: center;
    color: var(--text-dark) !important;
    font-weight: 800 !important;
    padding: 0;
    margin: 0;
    outline: none !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}
.qty-input-custom::-webkit-outer-spin-button,
.qty-input-custom::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.qty-input-custom[type=number] {
    -moz-appearance: textfield;
}

/* Cart Item Row */
.cart-item-row {
    transition: all 0.25s ease;
}
.cart-item-row:hover {
    background-color: rgba(var(--primary-rgb), 0.015);
}
.hover-text-primary:hover {
    color: var(--primary) !important;
}
.shadow-2xs {
    box-shadow: 0 1px 3px rgba(0,0,0,0.03) !important;
}
.max-w-sm {
    max-width: 380px !important;
}
.text-sm {
    font-size: 0.875rem !important;
}

/* Custom Checkout Input & Textarea */
.checkout-input, .checkout-textarea {
    width: 100% !important;
    border: 1px solid var(--border-light) !important;
    background-color: var(--bg-subtle) !important;
    color: var(--text-dark) !important;
    padding: 12px 16px !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    border-radius: 12px !important;
    outline: none !important;
    transition: all 0.25s ease !important;
}
.checkout-textarea {
    resize: vertical;
    min-height: 100px;
}
.checkout-input:focus, .checkout-textarea:focus {
    border-color: var(--primary) !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.12) !important;
}
.checkout-input.is-invalid, .checkout-textarea.is-invalid {
    border-color: #dc2626 !important;
    background-color: #fef2f2 !important;
}
.checkout-input.is-invalid:focus, .checkout-textarea.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.15) !important;
}

/* Payment Cards Grid */
.payment-method-card {
    position: relative;
    background-color: #ffffff;
    border: 2px solid var(--border-light) !important;
    border-radius: 16px !important;
    padding: 1.5rem 1rem !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden;
}
.payment-method-card:hover {
    border-color: rgba(var(--primary-rgb), 0.3) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04) !important;
}
.payment-method-card.active-method {
    border-color: var(--primary) !important;
    background-color: rgba(var(--primary-rgb), 0.02) !important;
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.12) !important;
    transform: translateY(-2px);
}
.payment-method-card::after {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 12px;
    right: 12px;
    color: var(--primary);
    font-size: 1.15rem;
    opacity: 0;
    transform: scale(0.6);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.payment-method-card.active-method::after {
    opacity: 1;
    transform: scale(1);
}
.logo-wrapper {
    min-height: 40px;
}
.payment-logo {
    max-width: 118px;
    max-height: 34px;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.78;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}
.payment-method-card:hover .payment-logo,
.payment-method-card.active-method .payment-logo {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.02);
}
.bank-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 104px;
    min-height: 38px;
    padding: 0.5rem 0.9rem;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    opacity: 0.8;
    transform: scale(0.98);
    transition: all 0.3s ease;
}
.payment-method-card:hover .bank-badge,
.payment-method-card.active-method .bank-badge {
    opacity: 1;
    transform: scale(1);
}
.bank-badge-bca {
    background: linear-gradient(135deg, #0056a6 0%, #0072ce 100%);
    color: #ffffff;
}
.bank-badge-bni {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-color: rgba(15, 23, 42, 0.08);
    color: #f97316;
}
.bank-badge-bri {
    background: linear-gradient(135deg, #0047ba 0%, #0f6fff 100%);
    color: #ffffff;
}
.bank-badge-mandiri {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-color: rgba(0, 70, 174, 0.12);
    color: #0046ae;
    overflow: hidden;
}
.bank-badge-mandiri::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 12px;
    right: 12px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f7b500 0%, #ffd54f 100%);
}
.bank-badge-permata {
    background: linear-gradient(135deg, #00875a 0%, #10b981 100%);
    color: #ffffff;
}
.bank-badge-default {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    color: #1e293b;
}
.order-items-scroll::-webkit-scrollbar {
    width: 6px;
}
.order-items-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.order-items-scroll::-webkit-scrollbar-thumb {
    background-color: var(--border-light);
    border-radius: 20px;
}
