/* Shopping Cart Custom Styles */

/* ==================== Shop Index Page ==================== */
.shop-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index:1000;
}

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

.product-image {
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-image-placeholder {
    height: 250px;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9e9e9e;
    font-weight: 600;
}

.product-price {
    color: #667eea;
    font-weight: 700;
}

.product-title {
    min-height: 3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-description {
    min-height: 4.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #6c757d;
}

.search-box {
    position: relative;
}

.search-box input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
}

/* ==================== Product Detail Page ==================== */
.product-detail-image {
    max-height: 500px;
    width: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-detail-image-placeholder {
    height: 500px;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-price {
    font-size: 2rem;
    color: #667eea;
    font-weight: 700;
}

.product-detail-content h1 {
    color:#000 !important;
}

.breadcrumb {
    background: transparent;
    padding: 0.5rem 0;
    margin-bottom: 1.5rem;
}

.breadcrumb-item a {
    color: #667eea;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.quantity-input {
    max-width: 120px;
}

/* ==================== Shopping Cart Page ==================== */
.cart-header {
    border-bottom: 3px solid #667eea;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}
.cart-header h1 {
    color:#000 !important;
}
.cart-item {
    transition: background-color 0.2s ease;
    padding: 1rem;
    border-radius: 0.5rem;
}

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

.cart-item-image {
    height: 100px;
    width: 100px;
    object-fit: cover;
    border-radius: 0.5rem;
}

.cart-item-image-placeholder {
    height: 100px;
    width: 100px;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-title {
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    color: #6c757d;
    font-size: 0.9rem;
}

.cart-quantity-input {
    max-width: 80px;
}

.cart-subtotal {
    font-weight: 600;
    font-size: 1.1rem;
}

.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-cart-icon {
    font-size: 5rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

.order-summary-card {
    position: sticky;
    top: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.order-summary-title {
    font-weight: 700;
    color: #212529;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.summary-total {
    font-size: 1.25rem;
    font-weight: 700;
    color: #667eea;
}

.btn-checkout {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform 0.2s ease;
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

/* ==================== Checkout Page ==================== */
.checkout-header {
    border-bottom: 3px solid #667eea;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}
.checkout-header h1 {
    color:#000 !important;
}
.checkout-section {
    margin-bottom: 2rem;
}

.checkout-section-header {
    background-color: #f8f9fa;
    padding: 1rem;
    border-left: 4px solid #667eea;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
}

#payment-element {
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    min-height: 200px;
}

#payment-errors {
    min-height: 1.5rem;
    margin-top: 0.5rem;
}

.checkout-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

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

.checkout-summary-total {
    font-size: 1.5rem;
    font-weight: 700;
    padding-top: 1rem;
    border-top: 2px solid #667eea;
    margin-top: 1rem;
}

.btn-place-order {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-place-order:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-place-order:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==================== Alerts & Messages ==================== */
.alert {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* ==================== Buttons ==================== */
.btn-primary {
    background-color: #667eea;
    border-color: #667eea;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #5568d3;
    border-color: #5568d3;
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: #667eea;
    border-color: #667eea;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: #667eea;
    border-color: #667eea;
    transform: translateY(-1px);
}

.btn-outline-danger:hover {
    transform: translateY(-1px);
}

.btn-outline-secondary:hover {
    transform: translateY(-1px);
}

/* ==================== Badges ==================== */
.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.cart-count-badge {
    font-size: 0.7rem;
    padding: 0.25em 0.5em;
}

/* ==================== Cart Dropdown ==================== */
.cart-dropdown {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.cart-dropdown.active {
    right: 0;
}

.cart-dropdown-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.cart-dropdown-header .btn-close {
    filter: brightness(0) invert(1);
}

.cart-dropdown-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.cart-dropdown-item {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

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

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

.cart-dropdown-footer {
    padding: 1.5rem;
    border-top: 2px solid #e9ecef;
    background-color: #f8f9fa;
}

.cart-dropdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

#cart-toggle-btn {
    transition: transform 0.2s ease;
    color:#fff;
}

#cart-toggle-btn:hover {
    transform: scale(1.05);
    color:#000;
}

@media (max-width: 576px) {
    .cart-dropdown {
        width: 100%;
        right: -100%;
    }
}

/* ==================== Loading Spinner ==================== */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* ==================== Pagination ==================== */
.pagination {
    gap: 0.5rem;
}

.page-link {
    color: #667eea;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
}

.page-link:hover {
    color: #5568d3;
    background-color: #f8f9fa;
}

.page-item.active .page-link {
    background-color: #667eea;
    border-color: #667eea;
}

/* ==================== Responsive Design ==================== */
@media (max-width: 768px) {
    .product-image,
    .product-image-placeholder {
        height: 200px;
    }

    .cart-item {
        flex-direction: column;
    }

    .cart-item-image,
    .cart-item-image-placeholder {
        height: 150px;
        width: 100%;
        margin-bottom: 1rem;
    }

    .order-summary-card {
        position: static;
        margin-top: 2rem;
    }

    .product-detail-image,
    .product-detail-image-placeholder {
        max-height: 300px;
    }

    .product-detail-price {
        font-size: 1.5rem;
    }

    .checkout-summary-total {
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    .shop-header {
        padding: 2rem 0;
    }

    .btn-checkout,
    .btn-place-order {
        padding: 0.875rem;
        font-size: 0.9rem;
    }

    .cart-quantity-input {
        max-width: 60px;
    }
}

/* ==================== Utilities ==================== */
.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ==================== Animations ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide-in {
    animation: slideIn 0.4s ease-out;
}

/**
new view product page
 */
.event-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.event-detail-image {
    width: 100%;
    border-radius: 1rem;
}

.event-detail-image-placeholder {
    height: 480px;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.booking-card {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: none;
    top: 20px;
}

.event-category-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #212529;
    line-height: 1.3;
}

.event-price-container {
    border-top: 2px solid #e9ecef;
    border-bottom: 2px solid #e9ecef;
    padding: 1rem 0;
}

.event-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #667eea;
    display: inline-block;
    margin-right: 0.5rem;
}

.quick-info-box {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 4px solid #667eea;
}

.vehicle-registration-section {
    background: #fff3cd;
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 4px solid #ffc107;
}
.carpark-selection-section {
    background: #e7f3ff;
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 4px solid #0d6efd;
}

.invite-mail-section {
    background: #d0f4b9;
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 4px solid #186308;
}
.carpark-selection-section .form-select {
    border: 2px solid #0d6efd;
}
.carpark-selection-section .alert-info {
    background-color: #cfe2ff;
    border-color: #0d6efd;
    color: #084298;
}
.btn-book-now {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform 0.2s ease;
}

.btn-book-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.booking-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 0.75rem;
}

.feature-item i {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.event-details-grid {
    display: grid;
    gap: 1.5rem;
}

.detail-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.detail-item i {
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.detail-item strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #212529;
}

.detail-item p {
    color: #6c757d;
}

.event-highlights-list {
    list-style: none;
    padding: 0;
}

.event-highlights-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.event-highlights-list li:last-child {
    border-bottom: none;
}

.nav-tabs .nav-link {
    color: #6c757d;
    border: none;
    border-bottom: 2px solid transparent;
}

.nav-tabs .nav-link.active {
    color: #667eea;
    background: transparent;
    border-bottom: 2px solid #667eea;
}

@media (max-width: 991px) {
    .booking-card {
        position: static !important;
        margin-top: 2rem;
    }

    .event-detail-image,
    .event-detail-image-placeholder {
        height: 300px;
    }
}
/**
categories index
 */
.categories-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 5rem 0 3rem;
    margin-bottom: 3rem;
}

.category-card {
    height: 100%;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.category-image-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

.category-card:hover .category-image {
    transform: scale(1.1);
}

.category-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.category-badge {
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.875rem;
}

.category-content {
    padding: 1.5rem;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.75rem;
}

.category-description {
    color: #6c757d;
    margin-bottom: 1rem;
    min-height: 3rem;
}

.category-link {
    color: #667eea;
    font-weight: 600;
    display: flex;
    align-items: center;
    transition: gap 0.3s ease;
}

.category-card:hover .category-link {
    gap: 0.5rem;
}

.category-link i {
    transition: transform 0.3s ease;
}

.category-card:hover .category-link i {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .categories-hero {
        padding: 3rem 0 2rem;
    }

    .category-image-wrapper {
        height: 200px;
    }
}
/* Product Card Styles */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.product-image {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-image-placeholder {
    height: 200px;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9e9e9e;
    font-weight: 600;
}

.product-price {
    color: #667eea;
    font-weight: 700;
}

.product-title {
    min-height: 3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-description {
    min-height: 4rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #6c757d;
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .category-hero {
        padding: 3rem 0 2rem;
    }
}
/* Category Items */
.categories-slider {

}

.category-item-link {
    text-decoration: none;
    display: block;
}

.category-item {
    position: relative;
    height: 150px;
    border-radius: 0.75rem;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

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

.category-item:hover .category-item-image {
    transform: scale(1.1);
}

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

.category-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    padding: 1rem;
    color: white;
}

.category-item-name {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 75px;
}

.category-item-count {
    font-size: 0.75rem;
    opacity: 0.9;
    background: #fff;
    color: #000;
    display: inline-block;
    border: 2px solid #000;
    border-radius: 10px;
    padding: 1px 5px;
}

.category-background {
    padding-bottom: 56px;
    padding-top:40px;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
    border-top: 3px solid #e9ecef
}
/* Related Products Section */
.related-products-section {
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
    padding: 5rem 0;
    margin-top: 5rem;
    border-top: 3px solid #e9ecef;
}

.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.5rem;
}

.related-product-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.related-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.related-product-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

.related-product-card:hover .related-product-image {
    transform: scale(1.1);
}

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

.related-product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(102, 126, 234, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
}

.related-product-card:hover .related-product-overlay {
    opacity: 1;
}

.related-product-content {
    padding: 1.5rem;
}

.related-product-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.75rem;
    min-height: 2.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-product-date,
.related-product-location {
    color: #6c757d;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.related-product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    margin: 1rem 0;
}

.related-product-action {
    margin-top: 1rem;
}

.related-product-action .btn {
    transition: all 0.3s ease;
}

.related-product-card:hover .related-product-action .btn {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

@media (max-width: 768px) {
    .related-products-section {
        padding: 3rem 0;
        margin-top: 3rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .related-product-image-wrapper {
        height: 180px;
    }
}
/* Sort Container */
.sort-container {
    position: relative;
}

/* Overlay */
.sort-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

/* Slide Panel */
.sort-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    max-width: 90vw;
    height: 100%;
    background-color: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.sort-panel.active {
    right: 0;
}

/* Panel Header */
.sort-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    background-color: #f8f9fa;
}

.sort-panel-header h5 {
    font-weight: 600;
    color: #212529;
}

.sort-panel-header .btn-close {
    font-size: 0.875rem;
}

/* Panel Body */
.sort-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

/* Sort Option */
.sort-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.sort-option:hover {
    background-color: #f8f9fa;
    transform: translateX(-5px);
}

.sort-option.active {
    background-color: #e7f3ff;
    border-color: #0d6efd;
}

.sort-option-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-right: 1rem;
    flex-shrink: 0;
}

.sort-option.active .sort-option-icon {
    background-color: #0d6efd;
    color: white;
}

.sort-option-icon i {
    font-size: 1.1rem;
    color: #6c757d;
}

.sort-option.active .sort-option-icon i {
    color: white;
}

.sort-option-content {
    flex: 1;
}

.sort-option-title {
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.25rem;
}

.sort-option-desc {
    font-size: 0.875rem;
    color: #6c757d;
}

.sort-option-check {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.sort-option.active .sort-option-check {
    opacity: 1;
}

.sort-option-check i {
    color: #0d6efd;
    font-size: 1.2rem;
}

/* Sort Divider */
.sort-divider {
    margin: 1.5rem 0 1rem;
    text-align: center;
    position: relative;
}

.sort-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #e9ecef;
}

.sort-divider span {
    position: relative;
    display: inline-block;
    padding: 0 1rem;
    background-color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Prevent body scroll when panel is open */
body.sort-panel-open {
    overflow: hidden;
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .sort-panel {
        width: 100%;
        right: -100%;
    }

    .sort-panel.active {
        right: 0;
    }
}
/* Filter Container */
.filter-container {
    position: relative;
}

/* Overlay */
.filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

/* Slide Panel */
.filter-panel {
    position: fixed;
    top: 0;
    left: -450px;
    width: 450px;
    max-width: 90vw;
    height: 100%;
    background-color: #fff;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
}

.filter-panel.active {
    left: 0;
}

/* Panel Header */
.filter-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    background-color: #f8f9fa;
    flex-shrink: 0;
}

.filter-panel-header h5 {
    font-weight: 600;
    color: #212529;
}

.filter-panel-header .btn-close {
    font-size: 0.875rem;
}

/* Panel Body */
.filter-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

/* Panel Footer */
.filter-panel-footer {
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
    background-color: #f8f9fa;
    flex-shrink: 0;
}

/* Filter Section */
.filter-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-section-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

.filter-section-title i {
    color: #6c757d;
}

.filter-section-content {
    padding-left: 0.25rem;
}

/* Collapsible Toggle */
.filter-collapse-toggle {
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    padding: 0.5rem;
    margin: -0.5rem -0.5rem 1rem -0.5rem;
    border-radius: 6px;
}

.filter-collapse-toggle:hover {
    background-color: #f8f9fa;
}

.collapse-icon {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.filter-collapse-toggle[aria-expanded="false"] .collapse-icon {
    transform: rotate(-90deg);
}

/* Checkbox List */
.filter-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-checkbox-item {
    padding: 0.5rem;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

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

.filter-checkbox-item .form-check-input {
    cursor: pointer;
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.15rem;
}

.filter-checkbox-item .form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.filter-checkbox-item .form-check-label {
    cursor: pointer;
    font-size: 0.95rem;
    color: #212529;
    display: flex;
    align-items: center;
    width: 100%;
}

.filter-checkbox-item .badge {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.25em 0.5em;
}

/* Price Range Display */
.price-range-display {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
}

.price-range-display strong {
    color: #0d6efd;
    font-size: 1.1rem;
}

/* Range Sliders */
.form-range {
    cursor: pointer;
}

.form-range::-webkit-slider-thumb {
    background-color: #0d6efd;
    cursor: pointer;
}

.form-range::-moz-range-thumb {
    background-color: #0d6efd;
    cursor: pointer;
}

/* Form Controls */
.filter-section .form-select,
.filter-section .form-control {
    border-radius: 8px;
}

.filter-section .form-select:focus,
.filter-section .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* Badge on Filter Button */
.filter-container .badge {
    font-size: 0.7rem;
    padding: 0.25em 0.5em;
}

/* Prevent body scroll when panel is open */
body.filter-panel-open {
    overflow: hidden;
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .filter-panel {
        width: 100%;
        left: -100%;
    }

    .filter-panel.active {
        left: 0;
    }
}

/* Physical Product Delivery Section */

.delivery-section {
    margin: 30px 0;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.delivery-options {
    margin-top: 20px;
}

.delivery-option {
    position: relative;
    margin-bottom: 15px;
}

.delivery-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.delivery-option label {
    display: block;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.delivery-option input[type="radio"]:checked + label {
    border-color: #5865F2;
    background: linear-gradient(135deg, #f0f1ff 0%, #faf8ff 100%);
}

.delivery-option-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.delivery-icon {
    font-size: 2rem;
    color: #666;
    flex-shrink: 0;
    width: 50px;
    text-align: center;
}

.delivery-option input[type="radio"]:checked + label .delivery-icon {
    color: #5865F2;
}

.delivery-details {
    flex-grow: 1;
}

.delivery-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 5px;
}

.delivery-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.delivery-cost {
    font-weight: 600;
    font-size: 1rem;
    margin-top: 8px;
}

.delivery-cost.shipping {
    color: #5865F2;
}

.delivery-cost.free {
    color: #28a745;
}

.delivery-time {
    color: #666;
    font-size: 0.85rem;
}

.delivery-check {
    font-size: 1.5rem;
    color: #5865F2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.delivery-option input[type="radio"]:checked + label .delivery-check {
    opacity: 1;
}

.info-box {
    background: #f8f9fa;
    border-left: 4px solid #5865F2;
    padding: 15px 20px;
    margin-top: 20px;
    border-radius: 4px;
}

.info-box p {
    margin: 0;
    color: #495057;
    font-size: 0.9rem;
}

.products-list-home {
    margin-bottom:40px;
}
