/* Custom Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background: #f1f1f1;
}

/* Swiper Customization */
.swiper-button-next,
.swiper-button-prev {
    color: #ed0030 !important;
    background: white;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 16px !important;
    font-weight: bold;
}

.swiper-pagination-bullet {
    background: #ed0030 !important;
    opacity: 0.3 !important;
}

.swiper-pagination-bullet-active {
    opacity: 1 !important;
}

/* Product Card Hover Effects */
.product-card {
    transition: none;
    border-radius: 0;
    box-shadow: none;
}

.product-card:hover {
    transform: none;
    box-shadow: none;
}

.product-card img {
    transition: none;
}

.product-card:hover img {
    transform: none;
}

/* Ensure 1:1 aspect ratio for product images */
.product-card .aspect-square {
    aspect-ratio: 1 / 1;
}

/* Button Hover Effects */
.btn-primary {
    background: #ed0030;
    color: white;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #c5002a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(237, 0, 48, 0.3);
}

.btn-secondary {
    border: 1px solid #ed0030;
    color: #ed0030;
    background: white;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #ed0030;
    color: white;
    transform: translateY(-1px);
}

/* Cart Drawer Animation */
#cart-drawer.show #cart-content {
    transform: translateX(0);
}

/* Mobile Navigation */
.mobile-menu {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu.show {
    transform: translateX(0);
}

/* Toast Animation */
.toast-show {
    transform: translateX(0) !important;
}

/* Global Toast Style - differentiate from primary theme color */
#toast {
    background-color: #111827 !important; /* gray-900 */
    color: #ffffff !important;
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    /* animation: fadeIn 0.6s ease-out; */
}

/* Loading Spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #ed0030;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form Styles */
.form-input {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    border-color: #ed0030;
    box-shadow: 0 0 0 3px rgba(237, 0, 48, 0.1);
}

/* Quantity Selector */
.quantity-selector {
    display: inline-block;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
}

.quantity-selector button {
    background: #f9fafb;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.quantity-selector button:hover {
    background: #e5e7eb;
}

.quantity-selector input {
    border: none;
    text-align: center;
    width: 60px;
    padding: 8px 4px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
    
    /* Mobile product list spacing */
    .grid-view #products-grid {
        gap: 0.75rem !important;
    }
    
    .list-view #products-grid {
        gap: 0.5rem !important;
    }
    
    /* Mobile product card adjustments */
    .product-card {
        margin-bottom: 0.75rem;
    }
    
    /* Mobile grid view card padding and spacing */
    .grid-view .product-card .p-3 {
        padding: 0.5rem !important;
    }
    
    .grid-view .product-card h3 {
        font-size: 0.75rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.125rem !important;
    }
    
    .grid-view .product-card .flex.items-center.mb-2 {
        margin-bottom: 0.125rem !important;
    }
    
    .grid-view .product-card .flex.items-center.justify-between.mb-2 {
        margin-bottom: 0.125rem !important;
    }
    
    .grid-view .product-card .text-base {
        font-size: 0.75rem !important;
    }
    
    .grid-view .product-card .text-xs {
        font-size: 0.625rem !important;
    }
    
    .grid-view .product-card button {
        padding: 0.125rem 0.375rem !important;
        font-size: 0.625rem !important;
    }
    
    /* Mobile list view card padding and spacing */
    .list-view .product-card .p-4 {
        padding: 0.125rem !important;
    }
    
    .list-view .product-card h3 {
        font-size: 0.75rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.125rem !important;
    }
    
    .list-view .product-card .flex.items-center.mb-2 {
        margin-bottom: 0.125rem !important;
    }
    
    .list-view .product-card .text-gray-600.mb-2 {
        font-size: 0.625rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.125rem !important;
    }
    
    .list-view .product-card .text-lg {
        font-size: 0.75rem !important;
    }
    
    .list-view .product-card .text-sm {
        font-size: 0.625rem !important;
    }
    
    .list-view .product-card button {
        padding: 0.125rem 0.375rem !important;
        font-size: 0.625rem !important;
    }
    
    /* Mobile wishlist button sizing */
    .wishlist-btn {
        width: 1.5rem !important;
        height: 1.5rem !important;
        top: 0.25rem !important;
        right: 0.25rem !important;
    }
    
    .wishlist-btn i {
        font-size: 0.625rem !important;
    }
    
    /* Mobile wishlist page spacing */
    .wishlist-item {
        margin-bottom: 0.5rem !important;
    }
    
    .wishlist-item .mt-2 {
        margin-top: 0.25rem !important;
        padding: 0 0.5rem !important;
    }
    
    .wishlist-item button {
        font-size: 0.625rem !important;
        padding: 0.125rem 0.25rem !important;
    }
    
    /* Mobile swiper product cards spacing */
    .swiper-slide .product-card {
        margin-bottom: 0.75rem !important;
    }
    
    .swiper-slide .product-card .p-3 {
        padding: 0.5rem !important;
    }
    
    .swiper-slide .product-card h3 {
        font-size: 0.75rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.25rem !important;
    }
    
    .swiper-slide .product-card .flex.items-center.mb-2 {
        margin-bottom: 0.25rem !important;
    }
    
    .swiper-slide .product-card .flex.items-center.justify-between.mb-2 {
        margin-bottom: 0.25rem !important;
    }
    
    .swiper-slide .product-card .text-base {
        font-size: 0.75rem !important;
    }
    
    .swiper-slide .product-card .text-xs {
        font-size: 0.625rem !important;
    }
    
    .swiper-slide .product-card button {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.625rem !important;
    }
    
    .swiper-slide .wishlist-btn {
        width: 1.5rem !important;
        height: 1.5rem !important;
        top: 0.25rem !important;
        right: 0.25rem !important;
    }
    
    .swiper-slide .wishlist-btn i {
        font-size: 0.625rem !important;
    }
    
    /* Mobile related products spacing */
    .related-products-swiper .swiper-slide .product-card {
        margin-bottom: 0.75rem !important;
    }
    
    .related-products-swiper .swiper-slide .product-card .p-3 {
        padding: 0.5rem !important;
    }
    
    .related-products-swiper .swiper-slide .product-card h3 {
        font-size: 0.75rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.25rem !important;
    }
    
    .related-products-swiper .swiper-slide .product-card .flex.items-center.mb-2 {
        margin-bottom: 0.25rem !important;
    }
    
    .related-products-swiper .swiper-slide .product-card .flex.items-center.justify-between.mb-2 {
        margin-bottom: 0.25rem !important;
    }
    
    .related-products-swiper .swiper-slide .product-card .text-base {
        font-size: 0.75rem !important;
    }
    
    .related-products-swiper .swiper-slide .product-card .text-xs {
        font-size: 0.625rem !important;
    }
    
    .related-products-swiper .swiper-slide .product-card button {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.625rem !important;
    }
    
    .related-products-swiper .swiper-slide .wishlist-btn {
        width: 1.5rem !important;
        height: 1.5rem !important;
        top: 0.25rem !important;
        right: 0.25rem !important;
    }
    
    .related-products-swiper .swiper-slide .wishlist-btn i {
        font-size: 0.625rem !important;
    }
    
    /* Mobile product list spacing for all containers */
    
    /* Homepage coupon section */
    .grid.gap-6 {
        gap: 0.75rem !important;
    }
    
    /* Shop page product grid */
    #products-grid {
        gap: 0.75rem !important;
    }
    
    /* Wishlist page spacing */
    .space-y-6 {
        gap: 0.75rem !important;
    }
    
    /* Product detail page spacing */
    .grid.gap-12 {
        gap: 1rem !important;
    }
    
    .space-y-4 {
        gap: 0.5rem !important;
    }
    
    /* Swiper spacing adjustments */
    .swiper-slide {
        margin-right: 0.5rem !important;
    }
    
    /* Mobile swiper spacing overrides */
    .new-products-swiper .swiper-slide,
    .popular-products-swiper .swiper-slide,
    .related-products-swiper .swiper-slide {
        margin-right: 0.5rem !important;
    }

    .banner-swiper .swiper-slide {
        margin-right: 0rem !important;
    }
    
    /* Additional mobile spacing for specific containers */
    .coupon-item {
        margin-bottom: 0.5rem;
    }
    
    /* Mobile form spacing */
    .space-y-8 {
        gap: 1rem !important;
    }
    
    .space-y-2 {
        gap: 0.25rem !important;
    }
    
    /* Mobile section spacing adjustments */
    .py-16 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .py-8 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    .py-12 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    /* Mobile margin adjustments for sections */
    .mb-12 {
        margin-bottom: 1.5rem !important;
    }
    
    .mb-16 {
        margin-bottom: 2rem !important;
    }
    
    .mb-8 {
        margin-bottom: 1rem !important;
    }
    
    /* Mobile page-specific section spacing */
    
    /* Shop page section spacing */
    .shop-page .py-8 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    /* Product detail page section spacing */
    .product-page .py-8 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    .product-page .mb-16 {
        margin-bottom: 2rem !important;
    }
    
    /* Wishlist page section spacing */
    .wishlist-page .py-8 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    /* About page section spacing */
    .about-page .py-8 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    /* Contact page section spacing */
    .contact-page .py-8 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    /* Checkout page section spacing */
    .checkout-page .py-8 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    /* Order success page section spacing */
    .order-success-page .py-16 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Terms, Privacy, Returns pages section spacing */
    .legal-page .py-8 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    /* Mobile wishlist list-view optimizations */
    .wishlist-item {
        margin-bottom: 0.75rem !important;
    }
    
    .wishlist-item .product-card {
        margin-bottom: 0 !important;
    }
    
    /* Mobile wishlist image sizing - 1:1 ratio */
    .wishlist-item .product-card .aspect-square {
        height: 100px !important;
        width: 100px !important;
    }
    
    /* Mobile wishlist content width optimization */
    .wishlist-item .product-card .flex-1 {
        min-width: 0 !important;
        flex: 1 1 0% !important;
    }
    
    /* Mobile wishlist list-view specific adjustments */
    .wishlist-item .product-card .flex {
        flex-direction: row !important;
        /* align-items: stretch !important; */
    }
    
    .wishlist-item .product-card .relative {
        flex-shrink: 0 !important;
        margin: auto 0;
    }
    
    .wishlist-item .product-card .relative .discount-badge {
        display: none;
    }
    
    .wishlist-item .product-card .flex-1 {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        padding: 0.5rem !important;
    }
    
    /* Mobile wishlist text sizing */
    .wishlist-item .product-card h3 {
        font-size: 0.75rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.125rem !important;
    }
    
    .wishlist-item .product-card .text-gray-600 {
        font-size: 0.625rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.125rem !important;
    }
    
    .wishlist-item .product-card .text-lg {
        font-size: 0.75rem !important;
    }
    
    .wishlist-item .product-card .text-sm {
        font-size: 0.625rem !important;
    }
    
    /* Mobile wishlist button sizing */
    .wishlist-item .product-card button {
        padding: 0.125rem 0.375rem !important;
        font-size: 0.625rem !important;
    }
    
    .wishlist-item .product-card .wishlist-btn,
    .wishlist-item .product-card .delete-btn {
        width: 1.5rem !important;
        height: 1.5rem !important;
    }
    
    .wishlist-item .product-card .wishlist-btn i,
    .wishlist-item .product-card .delete-btn i {
        font-size: 0.625rem !important;
    }
    
    /* Mobile delete button styling */
    .wishlist-item .product-card .delete-btn {
        background-color: #ef4444 !important;
        /* border-radius: 50% !important; */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* Grid Layout Toggle */
.grid-view .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.list-view .product-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.list-view .product-card {
    display: flex;
    align-items: center;
    padding: 1rem;
}

.list-view .product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Discount Badge */
.discount-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ed0030;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.625rem;
    font-weight: 600;
    z-index: 10;
}

/* Wishlist Heart Animation */
.wishlist-btn {
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
}

.wishlist-btn.active {
    color: #ed0030;
    transform: scale(1.1);
}

/* Search Bar */
.search-container {
    position: relative;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.search-suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.3s ease;
}

.search-suggestion-item:hover {
    background: #f9fafb;
}

.search-suggestion-item:last-child {
    border-bottom: none;
}
