/* =============================================
   Products Page Styles
   ============================================= */

/* Global Overflow Prevention for Product Pages */
.products-page,
.products-page * {
    box-sizing: border-box;
}

/* Filters Sidebar */
.filter-sidebar {
    background-color: var(--white);
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 100px;
}

.filter-title {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.filter-group {
    margin-bottom: 25px;
}

.filter-group-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-group .form-control,
.filter-group .form-select {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 14px;
}

.filter-group .form-control:focus,
.filter-group .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

.price-inputs {
    display: flex;
    gap: 10px;
}

.price-inputs input {
    flex: 1;
}

.btn-filter {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px;
    width: 100%;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.btn-filter:hover {
    background-color: var(--primary-dark);
    color: var(--white);
}

.btn-clear-filter {
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid var(--border-color);
    padding: 10px;
    width: 100%;
    border-radius: 8px;
    font-size: 13px;
    margin-top: 10px;
    transition: var(--transition);
}

.btn-clear-filter:hover {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

/* Products Header */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.products-count {
    font-size: 14px;
    color: var(--text-light);
}

.products-sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.products-sort label {
    font-size: 14px;
    color: var(--text-dark);
    white-space: nowrap;
}

.products-sort select {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 15px;
    font-size: 13px;
    min-width: 180px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

@media (max-width: 991.98px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .products-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 80px;
    color: var(--border-color);
    margin-bottom: 20px;
}

.empty-state h4 {
    font-family: var(--font-primary);
    font-size: 24px;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Pagination - Modern Style like ecommet.xyz */
.pagination-wrapper {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pagination-wrapper nav {
    display: flex;
    justify-content: center;
}

.pagination-wrapper .pagination,
.pagination-wrapper nav > div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}

/* Hide Tailwind pagination text */
.pagination-wrapper nav > div:first-child {
    display: none !important;
}

.pagination-wrapper nav > div:last-child {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Style for Laravel pagination links */
.pagination-wrapper .pagination .page-item,
.pagination-wrapper nav span,
.pagination-wrapper nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pagination-wrapper .pagination .page-link,
.pagination-wrapper nav a,
.pagination-wrapper nav span[aria-current="page"] span,
.pagination-wrapper nav span:not([aria-current]) {
    min-width: 40px;
    height: 40px;
    padding: 8px 14px;
    margin: 0 3px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    background-color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pagination-wrapper .pagination .page-link:hover,
.pagination-wrapper nav a:hover {
    background-color: var(--primary-color, #c9a86c);
    border-color: var(--primary-color, #c9a86c);
    color: #fff;
}

.pagination-wrapper .pagination .page-item.active .page-link,
.pagination-wrapper nav span[aria-current="page"] span {
    background-color: var(--primary-color, #c9a86c);
    border-color: var(--primary-color, #c9a86c);
    color: #fff;
}

.pagination-wrapper .pagination .page-item.disabled .page-link,
.pagination-wrapper nav span.cursor-default {
    color: #ccc;
    pointer-events: none;
    background-color: #f9f9f9;
}

/* Previous/Next arrows */
.pagination-wrapper .page-link[rel="prev"],
.pagination-wrapper .page-link[rel="next"],
.pagination-wrapper nav a[rel="prev"],
.pagination-wrapper nav a[rel="next"] {
    font-size: 18px;
}

/* Responsive */
@media (max-width: 576px) {
    .pagination-wrapper .pagination .page-link,
    .pagination-wrapper nav a,
    .pagination-wrapper nav span[aria-current="page"] span {
        min-width: 35px;
        height: 35px;
        padding: 6px 10px;
        font-size: 13px;
        margin: 0 2px;
    }
}

/* =============================================
   Product Detail Page
   ============================================= */
.product-detail-section {
    padding: 40px 0 80px;
}

.product-gallery {
    position: sticky;
    top: 100px;
}

.main-image-wrapper {
    background-color: var(--bg-cream);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
}

.main-image-wrapper img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.thumbnail-gallery {
    display: flex;
    gap: 10px;
}

.thumbnail-item {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.thumbnail-item:hover,
.thumbnail-item.active {
    border-color: var(--primary-color);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-info {
    padding-left: 30px;
}

.product-detail-category {
    font-size: 13px;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.product-detail-title {
    font-family: var(--font-primary);
    font-size: 36px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

.product-detail-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.product-detail-rating i {
    color: var(--primary-color);
}

.product-detail-rating span {
    font-size: 14px;
    color: var(--text-muted);
}

.product-detail-price {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.product-detail-price .price-current {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #000;
}

.product-detail-price .price-original {
    font-size: 20px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-detail-price .discount-badge {
    background-color: #e74c3c;
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.product-short-desc {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 25px;
}

.product-meta {
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.product-meta-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.product-meta-item:last-child {
    border-bottom: none;
}

.product-meta-item label {
    font-weight: 600;
    color: var(--text-dark);
}

.product-meta-item span {
    color: var(--text-light);
}

.stock-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.stock-status.in-stock {
    background-color: #d4edda;
    color: #155724;
}

.stock-status.out-of-stock {
    background-color: #f8d7da;
    color: #721c24;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.quantity-selector label {
    font-weight: 600;
    color: var(--text-dark);
}

.quantity-input-group {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.quantity-input-group button {
    width: 45px;
    height: 45px;
    background-color: var(--bg-light);
    border: none;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.quantity-input-group button:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.quantity-input-group input {
    width: 60px;
    height: 45px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

.quantity-input-group input:focus {
    outline: none;
}

/* Listing page: price + quantity on one row (desktop) - keeps card height same */
.product-price-qty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
    flex-wrap: wrap;
}
.product-price-qty-row .product-price {
    margin-bottom: 0;
    flex-shrink: 0;
}
.product-price-qty-row .listing-qty-wrap {
    margin: 0;
    flex-shrink: 0;
}

/* Small "In cart" tag on listing cards - no extra height */
.listing-in-cart-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--primary-color, #28a745);
    margin-bottom: 4px;
    line-height: 1.2;
}
.listing-in-cart-tag i {
    font-size: 10px;
}

/* Listing page quantity controls (retail/wholesale product cards) */
.listing-qty-wrap {
    margin-bottom: 0;
}
.listing-qty-input {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-color, #dee2e6);
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-light, #f8f9fa);
}
.listing-qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    color: var(--secondary-color, #333);
    transition: background 0.2s, color 0.2s;
}
.listing-qty-btn:hover {
    background: var(--primary-color, #c9a86c);
    color: #fff;
}
.listing-qty-input-field {
    width: 42px;
    height: 32px;
    border: none;
    border-left: 1px solid var(--border-color, #dee2e6);
    border-right: 1px solid var(--border-color, #dee2e6);
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    background: #fff;
}
.listing-qty-input-field:focus {
    outline: none;
}
.listing-qty-input-field::-webkit-outer-spin-button,
.listing-qty-input-field::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.listing-qty-input-field[type=number] {
    -moz-appearance: textfield;
}

.product-action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.btn-add-to-cart-lg {
    flex: 1;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    transition: var(--transition);
}

.btn-add-to-cart-lg:hover {
    background-color: var(--primary-dark);
    color: var(--white);
}

.btn-wishlist-lg {
    width: 55px;
    height: 55px;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: var(--transition);
}

.btn-wishlist-lg:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.vendor-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background-color: var(--bg-light);
    border-radius: 10px;
}

.vendor-info i {
    font-size: 24px;
    color: var(--primary-color);
}

.vendor-info span {
    font-size: 14px;
    color: var(--text-light);
}

.vendor-info strong {
    color: var(--text-dark);
}

/* Product Description Tabs */
.product-tabs {
    margin-top: 60px;
}

.product-tabs .nav-tabs {
    border-bottom: 2px solid var(--border-color);
}

.product-tabs .nav-link {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-light);
    border: none;
    padding: 15px 30px;
    position: relative;
}

.product-tabs .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.product-tabs .nav-link.active {
    color: var(--primary-color);
    background: none;
}

.product-tabs .nav-link.active::after {
    width: 100%;
}

.product-tabs .tab-content {
    padding: 30px 0;
}

.product-description {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
}

/* Related Products */
.related-products {
    margin-top: 80px;
}

/* =============================================
   Mobile Responsive Styles
   ============================================= */

@media (max-width: 991.98px) {
    /* Filter Sidebar - Collapsible on Tablet/Mobile */
    .filter-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 30px;
    }
    
    .filter-title {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .filter-group {
        margin-bottom: 20px;
    }
    
    /* Product Detail */
    .product-detail-info {
        padding-left: 0;
        margin-top: 30px;
    }
    
    .main-image-wrapper img {
        height: 400px;
    }
    
    .product-gallery {
        position: relative;
        top: 0;
    }
}

@media (max-width: 767.98px) {
    /* Page Header Mobile */
    .page-header {
        padding: 30px 0;
    }
    
    .page-header h1 {
        font-size: 24px;
    }
    
    .page-header p {
        font-size: 14px;
    }
    
    /* Product Type Tabs Mobile */
    .py-3.bg-light .d-flex {
        flex-direction: column;
        gap: 10px !important;
    }
    
    .py-3.bg-light .btn {
        width: 100%;
    }
    
    /* Filter Sidebar Mobile */
    .filter-sidebar {
        padding: 15px;
        border-radius: 10px;
    }
    
    .filter-title {
        font-size: 16px;
        margin-bottom: 15px;
        padding-bottom: 10px;
    }
    
    .filter-group {
        margin-bottom: 15px;
    }
    
    .filter-group-title {
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .btn-filter {
        padding: 10px;
        font-size: 12px;
    }
    
    /* Products Header Mobile */
    .products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding-bottom: 15px;
        margin-bottom: 20px;
    }
    
    .products-count {
        font-size: 13px;
    }
    
    .products-sort {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .products-sort select {
        width: 100%;
        min-width: auto;
    }
    
    /* Active Filters Banner Mobile */
    .active-filters-banner .d-flex {
        flex-direction: column !important;
        text-align: center;
    }
    
    .active-filters-banner .badge {
        font-size: 12px !important;
        padding: 8px 12px !important;
    }
    
    /* Product Grid */
    .products-grid {
        gap: 15px;
    }
    
    /* Per Page Selector */
    .row .col-12 .d-flex.justify-content-between {
        flex-direction: column;
        gap: 15px;
    }
    
    /* Search Input in Product Pages */
    .mb-4 .input-group {
        flex-wrap: wrap;
    }
    
    .mb-4 .input-group input {
        flex: 1 1 100%;
        border-radius: 8px !important;
        margin-bottom: 10px;
    }
    
    .mb-4 .input-group .btn {
        flex: 1;
        border-radius: 8px !important;
    }
    
    /* Product Detail Page */
    .product-detail-section {
        padding: 30px 0 50px;
    }
    
    .product-detail-title {
        font-size: 24px;
    }
    
    .product-detail-category {
        font-size: 11px;
    }
    
    .product-detail-price {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .product-detail-price .price-current {
        font-size: 28px;
    }
    
    .product-detail-price .price-original {
        font-size: 16px;
    }
    
    .product-short-desc {
        font-size: 14px;
    }
    
    .product-meta {
        padding: 15px;
    }
    
    .product-meta-item {
        padding: 6px 0;
        font-size: 13px;
    }
    
    .quantity-selector {
        flex-wrap: wrap;
    }
    
    .quantity-input-group button {
        width: 40px;
        height: 40px;
    }
    
    .quantity-input-group input {
        width: 50px;
        height: 40px;
    }
    
    .product-action-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-add-to-cart-lg {
        padding: 12px 20px;
        font-size: 13px;
    }
    
    .btn-wishlist-lg {
        width: 100%;
        height: 45px;
    }
    
    /* Thumbnail Gallery */
    .thumbnail-gallery {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .thumbnail-item {
        width: 60px;
        height: 60px;
    }
    
    /* Product Tabs Mobile */
    .product-tabs {
        margin-top: 40px;
    }
    
    .product-tabs .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .product-tabs .nav-link {
        font-size: 14px;
        padding: 10px 15px;
        white-space: nowrap;
    }
    
    .product-tabs .tab-content {
        padding: 20px 0;
    }
    
    .product-description {
        font-size: 14px;
    }
    
    /* Related Products */
    .related-products {
        margin-top: 50px;
    }
    
    /* Empty State Mobile */
    .empty-state {
        padding: 40px 15px;
    }
    
    .empty-state i {
        font-size: 60px;
    }
    
    .empty-state h4 {
        font-size: 20px;
    }
    
    .empty-state p {
        font-size: 13px;
    }
}

@media (max-width: 575.98px) {
    /* Extra Small Devices */
    .page-header h1 {
        font-size: 20px;
    }
    
    .page-header h1 i {
        display: none;
    }
    
    .filter-sidebar {
        padding: 12px;
    }
    
    .main-image-wrapper img {
        height: 250px;
    }
    
    .product-detail-title {
        font-size: 20px;
    }
    
    .product-detail-price .price-current {
        font-size: 24px;
    }
    
    .product-detail-price .price-original {
        font-size: 14px;
    }
    
    .product-detail-price .discount-badge {
        font-size: 10px;
        padding: 4px 10px;
    }
    
    .stock-status {
        font-size: 11px;
        padding: 6px 12px;
    }
    
    .vendor-info {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .product-tabs .nav-link {
        font-size: 13px;
        padding: 8px 12px;
    }
}

/* Utility classes for responsive product pages */
@media (max-width: 767.98px) {
    .flex-mobile-column {
        flex-direction: column !important;
    }
    
    .gap-mobile-sm {
        gap: 10px !important;
    }
    
    .text-mobile-center {
        text-align: center !important;
    }
    
    .w-mobile-100 {
        width: 100% !important;
    }
    
    /* Fix Bootstrap row/col issues on mobile */
    .row.g-4 {
        --bs-gutter-y: 1rem;
    }
    
    /* Prevent horizontal overflow on mobile */
    .section-padding,
    .page-header,
    .filter-sidebar,
    .products-grid,
    .product-search-box,
    .products-header,
    .active-filters-banner {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Fix column overflow */
    .col-lg-3,
    .col-lg-9 {
        max-width: 100%;
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* =============================================
   Enhanced Product Search Box
   ============================================= */

.product-search-box {
    width: 100%;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef;
    border-radius: 50px;
    padding: 8px 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-input-wrapper:focus-within {
    border-color: var(--primary-color, #c9a86c);
    box-shadow: 0 4px 20px rgba(201, 168, 108, 0.2);
    background: #ffffff;
}

.search-input-wrapper:hover {
    border-color: var(--primary-color, #c9a86c);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.search-input-wrapper .search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color, #c9a86c) 0%, #b8975b 100%);
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.search-input-wrapper:focus-within .search-icon {
    transform: scale(1.1);
}

.search-input-wrapper .search-icon i {
    color: #ffffff;
    font-size: 14px;
}

.search-input-wrapper .search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    padding: 8px 0;
    outline: none;
    min-width: 0;
}

.search-input-wrapper .search-input::placeholder {
    color: #999;
    font-weight: 400;
}

.search-input-wrapper .search-input:focus {
    outline: none;
}

/* Search Input Error Animation */
.search-input.search-input-error {
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
}

/* Search Actions (Clear + Submit) */
.search-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
}

.search-clear-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f3f4;
    color: #666;
    text-decoration: none;
    transition: all 0.2s ease;
}

.search-clear-btn:hover {
    background: #e74c3c;
    color: #fff;
}

.search-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color, #c9a86c) 0%, #b8975b 100%);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-submit-btn:hover {
    background: linear-gradient(135deg, #b8975b 0%, #a78649 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(201, 168, 108, 0.4);
}

.search-submit-btn:active {
    transform: translateY(0);
}

/* Loading Indicator */
.search-loading {
    position: absolute;
    right: 120px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color, #c9a86c);
    font-size: 16px;
}

/* Search Results Info */
.search-results-info {
    font-size: 13px;
    color: #666;
    margin-bottom: 0;
    padding-left: 15px;
}

.search-results-info strong {
    color: var(--primary-color, #c9a86c);
}

/* =============================================
   Search Box Responsive Styles
   ============================================= */

/* Tablet */
@media (max-width: 991.98px) {
    .search-input-wrapper {
        padding: 6px 10px;
    }
    
    .search-input-wrapper .search-icon {
        width: 36px;
        height: 36px;
        margin-right: 10px;
    }
    
    .search-input-wrapper .search-input {
        font-size: 14px;
    }
    
    .search-submit-btn {
        padding: 8px 18px;
        font-size: 13px;
    }
    
    .search-loading {
        right: 100px;
    }
}

/* Mobile */
@media (max-width: 767.98px) {
    .search-input-wrapper {
        padding: 5px 8px;
        border-radius: 40px;
    }
    
    .search-input-wrapper .search-icon {
        width: 34px;
        height: 34px;
        margin-right: 8px;
    }
    
    .search-input-wrapper .search-icon i {
        font-size: 12px;
    }
    
    .search-input-wrapper .search-input {
        font-size: 14px;
        padding: 6px 0;
    }
    
    .search-submit-btn {
        padding: 8px 12px;
        font-size: 12px;
        border-radius: 25px;
    }
    
    .search-submit-btn span {
        display: none;
    }
    
    .search-submit-btn i {
        display: inline-block !important;
    }
    
    .search-clear-btn {
        width: 28px;
        height: 28px;
    }
    
    .search-actions {
        gap: 5px;
        margin-left: 5px;
    }
    
    .search-loading {
        right: 80px;
        font-size: 14px;
    }
    
    .search-results-info {
        font-size: 12px;
        padding-left: 10px;
    }
}

/* Extra Small Mobile */
@media (max-width: 575.98px) {
    .search-input-wrapper {
        padding: 4px 6px;
        border-radius: 35px;
    }
    
    .search-input-wrapper .search-icon {
        width: 30px;
        height: 30px;
        margin-right: 6px;
    }
    
    .search-input-wrapper .search-icon i {
        font-size: 11px;
    }
    
    .search-input-wrapper .search-input {
        font-size: 13px;
    }
    
    .search-input-wrapper .search-input::placeholder {
        font-size: 12px;
    }
    
    .search-submit-btn {
        width: 36px;
        height: 36px;
        padding: 0;
        border-radius: 50%;
    }
    
    .search-submit-btn i {
        font-size: 14px;
    }
    
    .search-clear-btn {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }
    
    .search-loading {
        right: 70px;
        font-size: 12px;
    }
}

/* =============================================
   CRITICAL: Persistent Cart Button - MUST BE AT END OF FILE
   Maximum specificity selectors ensure visibility on ALL pages
   ============================================= */

/* Desktop & Tablet (default) */
html body a.persistent-cart-btn,
html body a#persistentCartBtn,
body > a.persistent-cart-btn,
body > a#persistentCartBtn,
main ~ a.persistent-cart-btn,
main ~ a#persistentCartBtn,
.persistent-cart-btn,
#persistentCartBtn {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    left: auto !important;
    top: auto !important;
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    min-width: auto !important;
    min-height: auto !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 2147483647 !important;
    background: linear-gradient(135deg, #c9a86c 0%, #d4a84a 100%) !important;
    color: #ffffff !important;
    padding: 14px 24px !important;
    border-radius: 50px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    font-family: 'Poppins', sans-serif !important;
    text-decoration: none !important;
    box-shadow: 0 8px 30px rgba(201, 168, 108, 0.5) !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    clip: auto !important;
    clip-path: none !important;
    overflow: visible !important;
    transform: none !important;
    -webkit-transform: none !important;
    margin: 0 !important;
    border: none !important;
    outline: none !important;
    float: none !important;
    clear: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    mix-blend-mode: normal !important;
    isolation: auto !important;
    transition: all 0.3s ease !important;
}

/* Hover state */
html body a.persistent-cart-btn:hover,
html body a#persistentCartBtn:hover,
.persistent-cart-btn:hover,
#persistentCartBtn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 40px rgba(201, 168, 108, 0.6) !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Icon */
html body a.persistent-cart-btn i,
html body a#persistentCartBtn i,
.persistent-cart-btn i,
#persistentCartBtn i {
    font-size: 18px !important;
    display: inline-block !important;
    visibility: visible !important;
    color: #ffffff !important;
    line-height: 1 !important;
}

/* Text */
html body .persistent-cart-text,
.persistent-cart-text {
    display: inline !important;
    visibility: visible !important;
    white-space: nowrap !important;
    color: #ffffff !important;
}

/* Count Badge */
html body .persistent-cart-count,
.persistent-cart-count {
    display: inline-flex !important;
    visibility: visible !important;
    align-items: center !important;
    justify-content: center !important;
    background: #e74c3c !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    min-width: 22px !important;
    height: 22px !important;
    padding: 0 6px !important;
    border-radius: 12px !important;
    line-height: 1 !important;
}

/* Empty cart state */
html body a.persistent-cart-btn.empty-cart,
.persistent-cart-btn.empty-cart {
    background: linear-gradient(135deg, #888888 0%, #666666 100%) !important;
}

html body a.persistent-cart-btn.empty-cart:hover,
.persistent-cart-btn.empty-cart:hover {
    background: linear-gradient(135deg, #c9a86c 0%, #d4a84a 100%) !important;
}

/* =============================================
   Tablet (max-width: 991.98px)
   ============================================= */
@media (max-width: 991.98px) {
    html body a.persistent-cart-btn,
    html body a#persistentCartBtn,
    .persistent-cart-btn,
    #persistentCartBtn {
        bottom: 15px !important;
        right: 15px !important;
        padding: 12px 20px !important;
    }
}

/* =============================================
   Mobile (max-width: 767.98px) - Circular FAB
   ============================================= */
@media (max-width: 767.98px) {
    html body a.persistent-cart-btn,
    html body a#persistentCartBtn,
    body > a.persistent-cart-btn,
    body > a#persistentCartBtn,
    .persistent-cart-btn,
    #persistentCartBtn {
        bottom: 15px !important;
        right: 15px !important;
        width: 60px !important;
        height: 60px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        gap: 0 !important;
    }
    
    html body .persistent-cart-text,
    .persistent-cart-text {
        display: none !important;
    }
    
    html body a.persistent-cart-btn i,
    html body a#persistentCartBtn i,
    .persistent-cart-btn i,
    #persistentCartBtn i {
        font-size: 24px !important;
        margin: 0 !important;
    }
    
    html body .persistent-cart-count,
    .persistent-cart-count {
        position: absolute !important;
        top: -5px !important;
        right: -5px !important;
        font-size: 10px !important;
        min-width: 22px !important;
        height: 22px !important;
        border: 2px solid #ffffff !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    }
}

/* =============================================
   Extra Small Mobile (max-width: 575.98px)
   ============================================= */
@media (max-width: 575.98px) {
    html body a.persistent-cart-btn,
    html body a#persistentCartBtn,
    .persistent-cart-btn,
    #persistentCartBtn {
        bottom: 12px !important;
        right: 12px !important;
        width: 56px !important;
        height: 56px !important;
    }
    
    html body a.persistent-cart-btn i,
    html body a#persistentCartBtn i,
    .persistent-cart-btn i,
    #persistentCartBtn i {
        font-size: 22px !important;
    }
    
    html body .persistent-cart-count,
    .persistent-cart-count {
        top: -4px !important;
        right: -4px !important;
        font-size: 9px !important;
        min-width: 20px !important;
        height: 20px !important;
    }
}