/**
 * Verdeno Garden Enhanced Shop Styles
 * Professional shop page styling with improved UX and performance
 * 
 * @version 2.0.0
 */

/* ========================================
   SHOP HEADER SECTION
======================================== */
#subheader {
    padding: 120px 0 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

#subheader .jarallax-img {
    opacity: 0.1;
}


#bird-on-breadcrumb{
    top: 40%;
}

.shop-stats {
    display: flex;
    gap: 30px;
    justify-content: flex-end;
    margin-top: 20px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    min-width: 100px;
}

.stat-item i {
    font-size: 24px;
    color: #2D7B2C;
    display: block;
    margin-bottom: 8px;
}

.stat-number {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #145714;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   SHOP TOP BAR
======================================== */
.shop-top-bar {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.shop-search .input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.shop-search .form-control {
    border: 2px solid #e9ecef;
    border-radius: 30px 0 0 30px !important;
    padding: 12px 55px 12px 20px;
    font-size: 14px;
    transition: all 0.3s ease;
    height: 48px;
    width: 100%;
    border-right: none;
}

.shop-search .form-control:focus {
    border-color: #2D7B2C;
    box-shadow: 0 0 0 3px rgba(45, 123, 44, 0.1);
    outline: none;
    border-right: none;
}

.shop-search .btn {
    position: absolute;
    right: 0;
    top: 0;
    border-radius: 0 30px 30px 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2D7B2C;
    border: 2px solid #2D7B2C;
    border-left: none;
    z-index: 10;
    padding: 0;
}

.shop-search .btn:hover {
    background: #145714;
}

.shop-search .btn i {
    font-size: 16px;
    color: white;
}

.results-summary {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

.shop-sorting .form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.shop-sorting .form-select:focus {
    border-color: #2D7B2C;
    box-shadow: 0 0 0 3px rgba(45, 123, 44, 0.1);
}

/* ========================================
   SHOP SIDEBAR
======================================== */
.shop-sidebar {
    position: sticky;
    top: 20px;
}

.mobile-filter-toggle {
    width: 100%;
    padding: 12px 20px;
    background: #2D7B2C;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.mobile-filter-toggle:hover {
    background: #145714;
}

.mobile-filter-toggle.active {
    background: #145714;
}

.filters-container {
    display: none;
}

@media (min-width: 992px) {
    .filters-container {
        display: block !important;
    }
    
    .mobile-filter-toggle {
        display: none !important;
    }
}

/* Filter Widgets */
.filter-widget {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.widget-title {
    font-size: 16px;
    font-weight: 700;
    color: #2D7B2C;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget-title i {
    font-size: 14px;
    opacity: 0.7;
}

/* Active Filters */
.active-filters {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
}

.active-filters h5 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.clear-all-filters {
    color: #dc3545;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.clear-all-filters:hover {
    color: #a02622;
}

.filter-tag {
    display: inline-block;
    background: white;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 5px 12px;
    margin: 5px 5px 0 0;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tag:hover {
    background: #f8f9fa;
    border-color: #2D7B2C;
    color: #2D7B2C;
}

.filter-tag i {
    margin-left: 5px;
    font-size: 10px;
    opacity: 0.7;
}

/* Price Filter */
.price-filter-wrapper {
    padding: 10px 0;
}

.price-inputs {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.price-field {
    flex: 1;
}

.price-field label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-field input {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.price-field input:focus {
    outline: none;
    border-color: #2D7B2C;
    box-shadow: 0 0 0 3px rgba(45, 123, 44, 0.1);
}

.price-slider-wrapper {
    margin: 30px 0 20px;
    padding: 0 10px;
    position: relative;
}

#price-slider {
    height: 6px;
    position: relative;
    background: #e9ecef;
    border-radius: 3px;
}

#price-slider .noUi-base {
    height: 6px;
}

#price-slider .noUi-connects {
    height: 6px;
    border-radius: 3px;
}

#price-slider .noUi-connect {
    background: linear-gradient(135deg, #2D7B2C 0%, #145714 100%);
    height: 6px;
}

#price-slider .noUi-handle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2D7B2C;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: grab;
    top: -7px;
    right: -10px;
}

#price-slider .noUi-handle:before,
#price-slider .noUi-handle:after {
    display: none;
}

#price-slider .noUi-handle:active {
    cursor: grabbing;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.price-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    font-weight: 600;
    color: #2D7B2C;
}

/* Custom Checkboxes */
.custom-checkbox {
    display: flex;
    align-items: flex-start;
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    user-select: none;
    transition: all 0.3s ease;
    min-height: 20px;
}

.custom-checkbox:hover {
    color: #2D7B2C;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-mark {
    position: absolute;
    left: 0;
    top: 1px;
    height: 18px;
    width: 18px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.custom-checkbox:hover .checkbox-mark {
    border-color: #2D7B2C;
}

.custom-checkbox input:checked ~ .checkbox-mark {
    background: #2D7B2C;
    border-color: #2D7B2C;
}

.checkbox-mark:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox input:checked ~ .checkbox-mark:after {
    display: block;
}

.category-name,
.attribute-name {
    font-weight: 500;
    display: inline-block;
    line-height: 1.4;
    padding-top: 1px;
}

.category-name .count,
.attribute-name .count {
    color: #999;
    font-weight: 400;
    font-size: 12px;
    margin-left: 5px;
}

.subcategory-list {
    margin-left: 28px;
    margin-top: 8px;
    padding-left: 10px;
    border-left: 2px solid #f0f0f0;
}

.subcategory {
    font-size: 13px;
}

.subcategory .custom-checkbox {
    margin-bottom: 8px;
}

/* Special Filters Alignment */
.special-filters .custom-checkbox {
    margin-bottom: 10px;
}

.special-filters .custom-checkbox:last-child {
    margin-bottom: 0;
}

/* Category List Item Alignment */
.category-item {
    margin-bottom: 8px;
}

.category-list,
.attribute-list,
.special-filters {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

.category-list::-webkit-scrollbar,
.attribute-list::-webkit-scrollbar,
.special-filters::-webkit-scrollbar {
    width: 6px;
}

.category-list::-webkit-scrollbar-track,
.attribute-list::-webkit-scrollbar-track,
.special-filters::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.category-list::-webkit-scrollbar-thumb,
.attribute-list::-webkit-scrollbar-thumb,
.special-filters::-webkit-scrollbar-thumb {
    background: #2D7B2C;
    border-radius: 3px;
}

.category-list::-webkit-scrollbar-thumb:hover,
.attribute-list::-webkit-scrollbar-thumb:hover,
.special-filters::-webkit-scrollbar-thumb:hover {
    background: #145714;
}

/* ========================================
   PRODUCTS GRID
======================================== */
#products-container {
    position: relative;
    min-height: 200px;
}

/* Prevent layout shift on initial load */
#products-container .row {
    min-height: inherit;
}


/* Product Card - Grid View */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Proper positioning for sale badge */
.product-card .badge-sale {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    background: #dc3545;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.product-card .product-image {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed from cover to contain to fit entire image */
    transition: transform 0.3s ease;
}

/* Fix for AJAX filtered products - maintain aspect ratio */
.product-card .product-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.woocommerce ul.products li.product img,
.product-card .product-image img,
.product-card .product-image a img {
    contain-intrinsic-size: initial !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: contain !important; /* Changed to contain to fit entire image */
}

.product-image-secondary {
    display: none;
}

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

.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.badge-sale,
.badge-featured,
.badge-new {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-sale {
    background: #4A6741;
    color: white;
}

.badge-featured {
    background: #ffc107;
    color: #333;
}

.badge-new {
    background: #17a2b8;
    color: white;
}

.product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
    z-index: 1;
}

.action-btn {
    width: 36px;
    height: 36px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #2D7B2C;
    color: white;
    transform: scale(1.1);
}

.action-btn.active {
    background: #dc3545;
    color: white;
}

.product-card .product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-rating {
    display: flex;
    gap: 2px;
    margin-bottom: 10px;
}

.product-rating .star {
    color: #ffc107;
    font-size: 14px;
}

.product-rating .star.empty {
    color: #ddd;
}

.product-card .product-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
    line-height: 1.4;
    min-height: 44px;
}

.product-card .product-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.product-title a:hover {
    color: #2D7B2C;
}

/* Product Price Styling */
.product-card .product-price {
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: 700;
    color: #2D7B2C;
}

/* Sale prices */
.product-card .product-price del {
    opacity: 0.6;
    font-size: 14px;
    color: #999;
    font-weight: 400;
    margin-right: 8px;
}

.product-card .product-price ins {
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    color: #2D7B2C;
}

.product-card .product-price .amount {
    font-size: 20px;
    font-weight: 700;
    color: #2D7B2C;
}

.price-discount {
    background: #dc3545;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    position: absolute;
    top: 10px;
    right: 10px;
}

.product-meta {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

.product-colors {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.color-option {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.active {
    border-color: #2D7B2C;
}

.color-option.active::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.product-card .add-to-cart-btn {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #66BB6A 0%, #4CAF50 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    margin-top: auto;
}

.add-to-cart-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.add-to-cart-btn:hover {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(76, 175, 80, 0.3);
}

.add-to-cart-btn:hover:before {
    left: 100%;
}

.add-to-cart-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.add-to-cart-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}


/* ========================================
   LOADING & EMPTY STATES
======================================== */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 10px;
}

.no-products i {
    font-size: 60px;
    color: #ddd;
    margin-bottom: 20px;
}

.no-products h3 {
    color: #666;
    margin-bottom: 10px;
}

.no-products p {
    color: #999;
}

/* ========================================
   PAGINATION
======================================== */
.shop-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 40px;
    padding: 20px 0;
}

.pagination {
    display: flex;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.page-item {
    list-style: none;
    display: inline-block;
}

.page-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 30px; /* Adjusted for better vertical centering */
    text-align: center;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    color: #666;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0;
    vertical-align: middle;
}

.page-link:hover {
    border-color: #2D7B2C;
    color: #2D7B2C;
}

.page-item.active .page-link {
    background: #2D7B2C;
    border-color: #2D7B2C;
    color: white;
}

/* ========================================
   CART SIDEBAR
======================================== */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: white;
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 99999;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

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

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

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

.cart-header h4 {
    margin: 0;
    color: #2D7B2C;
}

.close-cart {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.close-cart:hover {
    color: #333;
}

.cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Cart Items Styling */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    position: relative;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.cart-item-title a {
    color: #333;
    text-decoration: none;
}

.cart-item-title a:hover {
    color: #2D7B2C;
}

.cart-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.cart-item-meta .quantity {
    color: #666;
}

.cart-item-meta .price {
    color: #2D7B2C;
    font-weight: 600;
}

.remove-from-cart {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #999;
}

.remove-from-cart:hover {
    background: #dc3545;
    color: white;
    transform: scale(1.1);
}

/* Empty Cart Styling */
.empty-cart {
    padding: 40px 20px;
}

.empty-cart h5 {
    color: #333;
    margin-bottom: 10px;
}

.empty-cart .btn {
    margin-top: 20px;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.cart-total span:first-child {
    font-size: 16px;
    font-weight: 500;
    color: #666;
}

.total-amount {
    font-size: 22px;
    font-weight: 700;
    color: #2D7B2C;
}

/* Cart Sidebar Buttons - Final Fix */
#cart-sidebar .cart-footer a.btn,
#cart-sidebar .cart-footer a.btn.btn-outline-primary,
#cart-sidebar .cart-footer a.btn.btn-primary,
#cart-sidebar .empty-cart a.btn,
#cart-sidebar .empty-cart a.btn.btn-primary,
#cart-sidebar .empty-cart a.btn.btn-sm {
    display: inline-block !important;
    width: 100% !important;
    height: 48px !important;
    line-height: 28px !important;
    padding: 10px 20px !important;
    margin: 0 0 10px 0 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-align: center !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    position: static !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
}

#cart-sidebar .cart-footer a.btn:last-child {
    margin-bottom: 0 !important;
}

#cart-sidebar .cart-footer a.btn i {
    display: inline !important;
    margin-right: 6px !important;
    font-size: 14px !important;
    vertical-align: middle !important;
}

/* View Cart Button */
#cart-sidebar .cart-footer a.btn.btn-outline-primary {
    background: white !important;
    color: #2D7B2C !important;
    border: 2px solid #2D7B2C !important;
}

#cart-sidebar .cart-footer a.btn.btn-outline-primary:hover {
    background: #2D7B2C !important;
    color: white !important;
}

#cart-sidebar .cart-footer a.btn.btn-outline-primary:active,
#cart-sidebar .cart-footer a.btn.btn-outline-primary:focus {
    background: #145714 !important;
    color: white !important;
    border-color: #145714 !important;
}

/* Checkout Button */
#cart-sidebar .cart-footer a.btn.btn-primary {
    background: #4CAF50 !important;
    color: white !important;
    border: 2px solid #4CAF50 !important;
}

#cart-sidebar .cart-footer a.btn.btn-primary:hover {
    background: #388E3C !important;
    border-color: #388E3C !important;
    color: white !important;
}

#cart-sidebar .cart-footer a.btn.btn-primary:active,
#cart-sidebar .cart-footer a.btn.btn-primary:focus {
    background: #2E7D32 !important;
    border-color: #2E7D32 !important;
    color: white !important;
}

/* Empty Cart Specific Button */
#cart-sidebar .empty-cart a.btn.btn-primary {
    background: linear-gradient(135deg, #4CAF50 0%, #2D7B2C 100%) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3) !important;
    max-width: 200px !important;
    margin: 0 auto !important;
}

#cart-sidebar .empty-cart a.btn.btn-primary:hover {
    background: linear-gradient(135deg, #388E3C 0%, #1B5E20 100%) !important;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4) !important;
    transform: none !important;
    height: 48px !important;
}

/* Override all states and prevent style injection */
#cart-sidebar .cart-footer a.btn,
#cart-sidebar .cart-footer a.btn:link,
#cart-sidebar .cart-footer a.btn:visited,
#cart-sidebar .cart-footer a.btn:hover,
#cart-sidebar .cart-footer a.btn:active,
#cart-sidebar .cart-footer a.btn:focus,
#cart-sidebar .empty-cart a.btn,
#cart-sidebar .empty-cart a.btn:link,
#cart-sidebar .empty-cart a.btn:visited,
#cart-sidebar .empty-cart a.btn:hover,
#cart-sidebar .empty-cart a.btn:active,
#cart-sidebar .empty-cart a.btn:focus {
    height: 48px !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
    position: static !important;
}

/* Prevent any pseudo-elements */
#cart-sidebar .cart-footer a.btn::before,
#cart-sidebar .cart-footer a.btn::after {
    display: none !important;
    content: none !important;
}

/* Remove all unwanted effects */
#cart-sidebar .cart-footer a.btn {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* ========================================
   TOAST NOTIFICATIONS
======================================== */
.toast-notification {
    position: fixed;
    top: 20px;
    right: -400px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 300px;
    z-index: 1060;
    transition: right 0.3s ease;
}

.toast-notification.show {
    right: 20px;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
}

.toast-content i {
    font-size: 20px;
}

.toast-success .toast-content {
    border-left: 4px solid #28a745;
}

.toast-success i {
    color: #28a745;
}

.toast-error .toast-content {
    border-left: 4px solid #dc3545;
}

.toast-error i {
    color: #dc3545;
}

.toast-info .toast-content {
    border-left: 4px solid #17a2b8;
}

.toast-info i {
    color: #17a2b8;
}

.toast-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #999;
}

/* ========================================
   ANIMATIONS
======================================== */
.fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}

#btn-cart.bounce {
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */
/* Responsive adjustments - Keep same structure */
@media (max-width: 1199px) {
    .product-card .product-title {
        font-size: 15px;
    }
    .product-card .product-price {
        font-size: 18px;
    }
}

/* Tablets */
@media (max-width: 991px) {
    
    .shop-stats {
        justify-content: center;
        margin-top: 30px;
    }
    
    .shop-top-bar .row > div {
        margin-bottom: 15px;
    }
    
    .shop-top-bar .row > div:last-child {
        margin-bottom: 0;
    }
    
    .results-summary {
        text-align: left;
    }
    
    .shop-sidebar {
        position: static;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}

/* Mobile */
@media (max-width: 767px) {
    
    #subheader {
        padding: 100px 0 60px;
    }
    
    .shop-stats {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .stat-item {
        flex: 1 1 calc(33.333% - 10px);
        min-width: 90px;
    }
    
    .product-info {
        padding: 15px;
    }
    
    .product-title {
        font-size: 14px;
        min-height: 38px;
    }
    
    .price-current {
        font-size: 16px;
    }
    
    .products-list .product-image-wrapper {
        width: 120px;
        min-width: 120px;
        height: 120px;
    }
}

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