/* ==================== SHOP PAGER ==================== */
.shop-pager {
    margin: 32px 0;
    text-align: center;
}
.shop-pager ul {
    display: inline-flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.pager-btn {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 1px;
    background: #f5f5f5;
    color: #333;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    transition: background 0.2s, color 0.2s, border 0.2s;
    min-width: 36px;
    text-align: center;
}
.pager-btn:hover {
    background: #555;
    color: #fff;
    border-color: #555;
}
.pager-btn.active {
    background: #555;
    color: #fff;
    border-color: #555;
    cursor: default;
    pointer-events: none;
}
/**
 * Shop & Product Pages - Shared Styles
 * E-commerce product listing, filtering, and display
 */

/* ==================== GLOBAL RESETS ==================== */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; 
 
    color: #333; 
    line-height: 1.6; 
}

/* ==================== SHOP CONTAINER ==================== */
.shop-container { 
    --container-padding-desktop: 10px 20px 30px 20px;
    --container-padding-mobile: 20px 15px;
    /* max-width removed - parent container controls width */
    margin: 0 auto; 
    padding: var(--container-padding-desktop); 
    display: grid; 
    grid-template-columns: 260px 1fr; 
    gap: 24px; 
}

/* ==================== SIDEBAR - FILTERS ==================== */
.sidebar { 
    background: #fff; 
    border-radius: 8px; 
    height: fit-content; 
    position: sticky; 
    top: 20px; 
    overflow: hidden; 
    box-shadow: 0 0 0 1px rgba(0,0,0,0.05);
    border: 1px solid #e8e8e8;
}

.sidebar-header { 
    padding: 20px 20px 18px; 
    border-bottom: 1px solid #e8e8e8; 
    background: #fff;
}

.sidebar-header h3 { 
    font-size: 16px; 
    font-weight: 700; 
    color: #1a1a1a; 
    margin: 0;
    letter-spacing: -0.3px;
}

.filter-section { 
    padding: 20px; 
    border-bottom: 1px solid #e8e8e8; 
}

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

.filter-section h4 { 
    font-size: 13px; 
    font-weight: 700; 
    margin: 0 0 14px 0; 
    color: #1a1a1a; 
    text-transform: none;
    letter-spacing: -0.2px;
}

/* ==================== CATEGORY LIST ==================== */
.category-list { 
    list-style: none; 
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.category-item {
    margin: 0;
}

.category-link { 
    display: flex; 
    align-items: center; 
    gap: 8px;
    padding: 4px 0; 
    color: #666; 
    text-decoration: none; 
    font-size: 14px; 
    font-weight: 500;
    transition: all 0.15s ease;
    background: transparent;
}

.category-link:hover { 
    color: #1a1a1a; 
}

.category-link.active { 
    color: #1a1a1a;
    font-weight: 600;
}

.category-link i.fa-angle-right { 
    font-size: 10px; 
    color: #ccc; 
    flex-shrink: 0;
}

.category-link:hover i.fa-angle-right { 
    color: #999; 
}

.category-link.active i.fa-angle-right { 
    color: #1a1a1a; 
}

/* Back to all categories link */
.category-back {
    color: #999 !important;
    font-weight: 500 !important;
    padding-bottom: 12px !important;
    margin-bottom: 8px !important;
    border-bottom: 1px solid #f0f0f0;
}

.category-back:hover {
    color: #666 !important;
}

.category-back i {
    font-size: 11px;
    color: #999;
}

/* ==================== TOGGLE SWITCH ==================== */
.toggle-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
}

.toggle-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e0e0e0;
    border-radius: 24px;
    transition: all 0.3s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: all 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #1a1a1a;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(18px);
}

.toggle-switch:hover .toggle-slider {
    background-color: #d0d0d0;
}

.toggle-switch input:checked:hover + .toggle-slider {
    background-color: #000;
}

/* ==================== PRICE FILTER ==================== */
.price-inputs { 
    display: flex; 
    gap: 8px; 
    align-items: center; 
    margin-bottom: 16px; 
}

.price-inputs input { 
    flex: 1; 
    padding: 10px 12px; 
    border: 1px solid #e0e0e0; 
    border-radius: 8px; 
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    background: #fafafa;
    color: #333;
}

.price-inputs input:focus { 
    outline: none; 
    border-color: #1a1a1a; 
    box-shadow: 0 0 0 3px rgba(26,26,26,0.05);
    background: #fff;
}

.price-inputs input::placeholder {
    color: #999;
}

.price-inputs span { 
    color: #d0d0d0; 
    font-size: 14px; 
    font-weight: 400;
}

.price-filter-button {
    width: 36px;
    height: 36px;
    background: #f0f0f0;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.price-filter-button:hover {
    background: #e0e0e0;
}

.price-filter-button i {
    font-size: 14px;
    color: #666;
}

/* Price Range Radio Buttons */
.price-range-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.price-range-item {
    display: flex;
    align-items: center;
}

.price-range-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    flex: 1;
    padding: 8px 0;
    user-select: none;
}

.price-range-label input[type="radio"] {
    width: 18px;
    height: 18px;
    border: 1.5px solid #d0d0d0;
    border-radius: 50%;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background: #fff;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s;
}

.price-range-label input[type="radio"]:hover {
    border-color: #999;
}

.price-range-label input[type="radio"]:checked {
    border-color: #1a1a1a;
    border-width: 5px;
}

.price-range-label span {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    flex: 1;
    transition: color 0.2s;
}

.price-range-label:hover span {
    color: #1a1a1a;
}

/* ==================== BRAND FILTER ==================== */
.brand-search {
    position: relative;
    margin-bottom: 14px;
}

.brand-search input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 13px;
    background: #fafafa;
    transition: all 0.2s;
}

.brand-search input:focus {
    outline: none;
    border-color: #1a1a1a;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26,26,26,0.05);
}

.brand-search input::placeholder {
    color: #999;
}

.brand-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 13px;
}

.popular-brands-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #999;
    font-weight: 500;
}

.popular-brands-label i {
    font-size: 11px;
    color: #ccc;
}

.brand-list { 
    list-style: none; 
    margin: 0; 
    padding: 0; 
    max-height: 280px; 
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.brand-list::-webkit-scrollbar { width: 4px; }
.brand-list::-webkit-scrollbar-track { background: transparent; }
.brand-list::-webkit-scrollbar-thumb { background: #e0e0e0; border-radius: 10px; }
.brand-list::-webkit-scrollbar-thumb:hover { background: #ccc; }

.brand-item { 
    display: flex; 
    align-items: center; 
    padding: 0;
}

.brand-checkbox { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    cursor: pointer; 
    flex: 1;
    user-select: none;
    padding: 8px 0;
}

.brand-checkbox:hover span {
    color: #1a1a1a;
}

.brand-checkbox input[type="checkbox"] { 
    width: 18px; 
    height: 18px; 
    border: 1.5px solid #d0d0d0; 
    border-radius: 4px; 
    cursor: pointer; 
    transition: all 0.2s;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #fff;
    position: relative;
    flex-shrink: 0;
}

.brand-checkbox input[type="checkbox"]:hover { 
    border-color: #999; 
}

.brand-checkbox input[type="checkbox"]:checked { 
    background: #1a1a1a; 
    border-color: #1a1a1a; 
}

.brand-checkbox input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 11px;
    font-weight: bold;
}

.brand-checkbox span { 
    font-size: 14px; 
    color: #666; 
    font-weight: 500; 
    flex: 1;
    transition: color 0.2s;
}

.brand-checkbox:hover span {
    color: #1a1a1a;
}

.brand-count { 
    font-size: 11px; 
    color: #999; 
    font-weight: 500;
}

.show-all-brands-btn {
    background: transparent;
    border: none;
    color: #666;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.show-all-brands-btn:hover {
    background: #f5f5f5;
    color: #1a1a1a;
}

.show-all-brands-btn i {
    font-size: 10px;
    transition: transform 0.2s;
}

/* ==================== FILTER BUTTONS ==================== */
.filter-btn { 
    width: 100%; 
    padding: 12px 18px; 
    background: #1a1a1a; 
    color: #fff; 
    border: none; 
    border-radius: 8px; 
    font-size: 14px; 
    font-weight: 600; 
    cursor: pointer; 
    transition: all 0.2s; 
    letter-spacing: -0.2px;
}

.filter-btn:hover { 
    background: #000; 
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

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

.clear-filters { 
    width: 100%; 
    padding: 12px 20px; 
    background: #f8f8f8; 
    color: #666; 
    border: none; 
    border-radius: 12px; 
    font-size: 14px; 
    font-weight: 600;
    cursor: pointer; 
    margin-top: 10px; 
    transition: all 0.2s; 
}

.clear-filters:hover { 
    background: #efefef; 
    color: #111;
}

/* ==================== PRODUCTS AREA ==================== */
.products-area { 
    background: #fff; 
    border-radius: 8px; 

}

.products-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 5px; 
    padding-bottom: 10px; 
 
}

.products-title h2 { 
    font-size: 24px; 
    font-weight: 700; 
    color: #1a1a1a; 
    margin-bottom: 5px; 
}

.products-count { 
    font-size: 14px; 
    color: #999; 
}

.products-controls { 
    display: flex; 
    gap: 15px; 
    align-items: center; 
}

.view-toggle { 
    display: flex; 
    gap: 5px; 
}

.view-btn { 
    width: 36px; 
    height: 36px; 
    border: 1px solid #e0e0e0; 
    background: #fff; 
    border-radius: 6px; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: #999; 
    transition: all 0.2s; 
}

.view-btn:hover, 
.view-btn.active { 
    background: #1a1a1a; 
    color: #fff; 
    border-color: #1a1a1a; 
}

.sort-select { 
    padding: 10px 35px 10px 15px; 
    border: 1px solid #e0e0e0; 
    border-radius: 6px; 
    font-size: 14px; 
    background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%23666" d="M6 9L1 4h10z"/></svg>') no-repeat right 12px center; 
    appearance: none; 
    cursor: pointer; 
}

.sort-select:focus { 
    outline: none; 
    border-color: #1a1a1a; 
}

/* ==================== PRODUCTS GRID ==================== */
.products-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); 
    gap: 25px; 
}

/* ==================== VIEW MODE TOGGLE ==================== */
.view-toggle {
    display: flex;
    gap: 4px;
    margin-right: 12px;
}

.view-btn {
    width: 38px;
    height: 38px;
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: all 0.2s;
}

.view-btn:hover {
    border-color: #9ca3af;
    color: #374151;
}

.view-btn.active {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #fff;
}

/* ==================== LIST VIEW MODE ==================== */
.products-grid.view-list {
    grid-template-columns: 1fr;
    gap: 16px;
}

.products-grid.view-list .product-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    border-radius: 12px;
    overflow: hidden;
}

.products-grid.view-list .product-image {
    padding-top: 0;
    height: 200px;
    min-height: 200px;
}

.products-grid.view-list .product-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 24px;
}

.products-grid.view-list .product-name {
    font-size: 18px;
    margin-bottom: 8px;
}

.products-grid.view-list .product-excerpt {
    font-size: 13px;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    margin-bottom: 12px;
}

.products-grid.view-list .product-category {
    margin-bottom: 12px;
}

.products-grid.view-list .product-price {
    font-size: 20px;
}

.products-grid.view-list .product-price .current {
    font-size: 22px;
}

.products-grid.view-list .product-favorite {
    top: 12px;
    right: auto;
    left: 160px;
}

.products-grid.view-list .badge-sale {
    top: 12px;
    left: 12px;
}

.products-grid.view-list .product-actions {
    margin-top: auto;
    padding-top: 16px;
}

/* List view - hide badges container inside card, show inline */
.products-grid.view-list .product-badges {
    margin-top: 8px;
}

/* Mobile list view adjustments */
@media (max-width: 768px) {
    .products-grid.view-list .product-card {
        grid-template-columns: 120px 1fr;
    }
    
    .products-grid.view-list .product-image {
        height: 150px;
        min-height: 150px;
    }
    
    .products-grid.view-list .product-info {
        padding: 12px 16px;
    }
    
    .products-grid.view-list .product-name {
        font-size: 15px;
    }
    
    .products-grid.view-list .product-price .current {
        font-size: 18px;
    }
    
    .products-grid.view-list .product-favorite {
        left: 80px;
    }
    
    .view-toggle {
        margin-right: 8px;
    }
}

/* ==================== PRODUCT CARD ==================== */
.product-card { 
    background: #fff; 
    border: 1px solid #f0f0f0; 
    border-radius: 10px; 
    overflow: hidden; 
    transition: all 0.3s; 
    position: relative; 
}

.product-card:hover { 
    box-shadow: 0 8px 24px rgba(0,0,0,0.08); 
    transform: translateY(-4px); 
    border-color: #e0e0e0; 
}

.product-image { 
    position: relative; 
    padding-top: 100%; 
    overflow: hidden; 
    background: #f8f8f8; 
    border-radius: 8px;
}

.product-image img { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    object-position: center;
    transition: transform 0.4s; 
}

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

/* Product Excerpt - Short Description */
.product-excerpt {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
    margin: 4px 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Tax Label - KDV Etiketi */
.tax-label {
    font-size: 9px !important;
    color: #9ca3af !important;
    font-weight: 400 !important;
    display: block;
    margin-top: 2px;
}

/* Image Placeholder with Shimmer */
.image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f5f5 0%, #ebebeb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 20%,
        rgba(255, 255, 255, 0.5) 40%,
        rgba(255, 255, 255, 0.7) 50%,
        rgba(255, 255, 255, 0.5) 60%,
        rgba(255, 255, 255, 0.3) 80%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.placeholder-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #999;
    text-align: center;
    padding: 20px;
}

.placeholder-content i {
    font-size: 48px;
    color: #ccc;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.placeholder-content span {
    font-size: 13px;
    font-weight: 600;
    color: #aaa;
    letter-spacing: 0.3px;
}

.product-image.placeholder-loading {
    background: #f8f8f8;
}

/* Product Badges - Container (fiyat altında yanyana) */
.product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

/* Product Badge - Tek badge stili */
.product-badge { 
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px; 
    border-radius: 20px; 
    font-size: 11px; 
    font-weight: 500; 
    white-space: nowrap;
}

/* Badge renkleri - Pastel */
.product-badge.badge-new { 
    background: #dcfce7;
    color: #166534;
}

.product-badge.badge-featured {
    background: #f3e8ff;
    color: #6b21a8;
}

.product-badge.badge-sale {
    background: #ffe4e6;
    color: #be123c;
}

.product-badge.badge-free-cargo {
    background: #dbeafe;
    color: #1e40af;
}

.product-badge.badge-fast-delivery {
    background: #ffedd5;
    color: #c2410c;
}

.product-badge.badge-bestseller {
    background: #fef9c3;
    color: #a16207;
}

.product-badge svg {
    width: 12px;
    height: 12px;
}

/* Discount Badge - Görsel üzerinde indirim oranı */
.discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ef4444;
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    z-index: 3;
}

.product-favorite { 
    position: absolute; 
    top: 12px; 
    right: 12px; 
    width: 38px; 
    height: 38px; 
    background: rgba(255,255,255,0.95); 
    backdrop-filter: blur(10px); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    transition: all 0.2s; 
    z-index: 2; 
}

.product-favorite:hover { 
    background: #1a1a1a; 
    color: #fff; 
    transform: scale(1.1); 
}

.product-favorite.active { 
    background: #dc2626; 
    color: #fff; 
}

/* ==================== HOVER ADD TO CART BUTTON ==================== */
.product-add-to-cart-hover {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    color: #fff;
    border: none;
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease;
    z-index: 10;
}

.product-add-to-cart-hover i {
    font-size: 14px;
}

.product-card:hover .product-add-to-cart-hover {
    opacity: 1;
    transform: translateY(0);
}

.product-add-to-cart-hover:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.product-add-to-cart-hover:active {
    transform: translateY(0) scale(0.98);
}

.product-add-to-cart-hover:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.product-add-to-cart-hover:disabled:hover {
    background: #9ca3af;
}

/* Varyantlı ürünler için farklı renk */
.product-add-to-cart-hover[onclick*="true"] {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
}

.product-add-to-cart-hover[onclick*="true"]:hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

/* Loading state */
.product-add-to-cart-hover.loading {
    pointer-events: none;
}

.product-add-to-cart-hover.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Success state */
.product-add-to-cart-hover.success {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%) !important;
}

.product-info { 
    padding: 10px; 
}

.product-category { 
    font-size: 11px; 
    color: #999; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    margin-bottom: 1px; 
    font-weight: 500; 
    display: none;
}

.product-name { 
    font-size: 14px; 
    font-weight: 400; 
    color: #1a1a1a; 
    margin-bottom: 10px; 
    line-height: 1.4; 
    display: -webkit-box; 
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical; 
    overflow: hidden; 

}

.product-name:hover { 
    color: #666; 
}

.product-price { 
    display: flex !important; 
    flex-direction: column !important;
    align-items: flex-start !important; 
    gap: 2px !important; 
    margin-bottom: 5px; 
}

.product-price .price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.product-price .current { 
    font-size: 20px; 
    font-weight: 700; 
    color: #1a1a1a; 
}

.product-price .original { 
    font-size: 13px; 
    color: #999; 
    text-decoration: line-through; 
    display: block;
}

.product-price .discount { 
    font-size: 11px; 
    background: #fee2e2; 
    color: #dc2626; 
    padding: 4px 8px; 
    border-radius: 4px; 
    font-weight: 700; 
    display: none;
}

.product-rating { 
    display: flex; 
    align-items: center; 
    gap: 4px; 
    font-size: 13px; 
    color: #fbbf24; 
    margin-bottom: 12px; 
}

.product-rating .count { 
    color: #999; 
    margin-left: 4px; 
}

.add-to-cart { 
    width: 100%; 
    padding: 12px; 
    background: #1a1a1a; 
    color: #fff; 
    border: none; 
    border-radius: 8px; 
    font-size: 14px; 
    font-weight: 600; 
    cursor: pointer; 
    transition: all 0.2s; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px; 
}

.add-to-cart:hover { 
    background: #000; 
    transform: translateY(-2px); 
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); 
}

.add-to-cart:active { 
    transform: translateY(0); 
}

/* ==================== NO PRODUCTS ==================== */
.no-products { 
    text-align: center; 
    padding: 80px 20px; 
    color: #999; 
}

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

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

.no-products p { 
    font-size: 14px; 
}

/* ==================== BREADCRUMB ==================== */
.shop-breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    font-size: 14px;
    color: #757575;
    flex-wrap: wrap; /* ✅ Allow wrapping on small screens */
}

.shop-breadcrumb-nav a {
    color: #757575;
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px; /* ✅ Limit width on mobile */
}

.shop-breadcrumb-nav a:hover {
    color: #111;
}

.shop-breadcrumb-nav .separator {
    color: #d5d5d5;
    flex-shrink: 0; /* ✅ Prevent separator from shrinking */
}

.shop-breadcrumb-nav .current {
    color: #111;
    font-weight: 500;
    white-space: normal; /* ✅ Last item can wrap */
    overflow: visible;
    text-overflow: clip;
    max-width: none; /* ✅ Last item full width */
}

/* Mobile breadcrumb adjustments */
@media (max-width: 768px) {
    .shop-breadcrumb-nav {
        font-size: 12px;
        gap: 6px;
        padding: 10px 0;
    }
    
    .shop-breadcrumb-nav a {
        max-width: 80px; /* ✅ Shorter on mobile */
    }
}

/* ==================== MOBILE ==================== */
.mobile-header { 
    display: none; 
}

.overlay { 
    display: none; 
}

@media (max-width: 1024px) {
    .shop-container { 
        grid-template-columns: 1fr; 
        gap: 20px; 
        padding: var(--container-padding-mobile); 
    }
    
    /* ✅ Ensure mobile containers have padding */
    .container-fluid,
    .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    
    .mobile-header { 
        display: flex; 
        justify-content: space-between; 
        align-items: center; 
        background: #fff; 
        padding: 15px; 
        border-radius: 8px; 
        margin-bottom: 15px; 
    }
    
    .mobile-filter-btn { 
        display: flex; 
        align-items: center; 
        gap: 8px; 
        padding: 10px 16px; 
        background: #1a1a1a; 
        color: #fff; 
        border: none; 
        border-radius: 6px; 
        font-size: 14px; 
        font-weight: 600; 
        cursor: pointer; 
    }
    
    .sidebar { 
        position: fixed; 
        top: 0; 
        left: -100%; 
        width: 85%; 
        max-width: 320px; 
        height: 100vh; 
        z-index: 1001; 
        transition: left 0.3s; 
        overflow-y: auto; 
        border-radius: 0; 
    }
    
    .sidebar.open { 
        left: 0; 
    }
    
    .overlay { 
        display: none; 
        position: fixed; 
        top: 0; 
        left: 0; 
        width: 100%; 
        height: 100%; 
        background: rgba(0,0,0,0.5); 
        z-index: 1000; 
    }
    
    .overlay.show { 
        display: block; 
    }
    
    .products-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 15px; 
    }
    
    /* ✅ Hide hover button on tablets/touch devices */
    .product-add-to-cart-hover {
        display: none !important;
    }
    
    .products-header { 
        flex-direction: column; 
        align-items: flex-start; 
        gap: 15px; 
    }
    
    .products-controls { 
        width: 100%; 
        justify-content: space-between; 
    }
}

@media (max-width: 480px) {
    /* ✅ Extra small screens - tighter padding */
    .container-fluid,
    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    
    .shop-container {
        padding: 15px 12px;
    }
    
    .products-grid { 
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .product-card { 
        max-width: 100%; 
        margin: 0;
        border-radius: 8px;
    }
    
    .product-card .product-image {
        padding-top: 120%;
    }
    
    .product-card .product-info {
        padding: 10px;
    }
    
    .product-card .product-name {
        font-size: 12px;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        min-height: 32px;
    }
    
    .product-card .product-price {
        font-size: 14px;
        font-weight: 700;
    }
    
    .product-card .product-old-price {
        font-size: 10px;
    }
    
    .product-card .discount-badge {
        font-size: 9px;
        padding: 2px 5px;
    }
    
    .product-card .wishlist-btn {
        width: 28px;
        height: 28px;
    }
    
    .product-card .wishlist-btn svg {
        width: 14px;
        height: 14px;
    }
    
    /* ✅ Hide hover add-to-cart button on mobile - touch devices don't have hover */
    .product-add-to-cart-hover {
        display: none !important;
    }
}

/* ==================== PRICE ON REQUEST STYLES ==================== */
.price-request-text {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #b45309;
    font-weight: 600;
    font-size: 16px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #f59e0b;
}

.price-request-text i {
    color: #d97706;
}

.product-add-to-cart-hover.price-request-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.product-add-to-cart-hover.price-request-btn:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
}

@media (max-width: 768px) {
    .price-request-text {
        font-size: 14px;
        padding: 6px 10px;
    }
}

/* ==================== HORIZONTAL FILTERS LAYOUT ==================== */
.shop-layout-horizontal {
    display: block !important;
    grid-template-columns: none;
}

.horizontal-filters-bar {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.horizontal-filters-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Filter Dropdowns */
.hfilter-dropdown {
    position: relative;
}

.hfilter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    transition: all 0.2s;
    white-space: nowrap;
}

.hfilter-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.hfilter-dropdown.open .hfilter-btn {
    background: #e0f2fe;
    border-color: #0ea5e9;
    color: #0369a1;
}

.hfilter-btn i:first-child {
    font-size: 13px;
    color: #64748b;
}

.hfilter-arrow {
    font-size: 10px !important;
    transition: transform 0.2s;
}

.hfilter-dropdown.open .hfilter-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.hfilter-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    z-index: 100;
    display: none;
    max-height: 320px;
    overflow-y: auto;
}

.hfilter-dropdown.open .hfilter-dropdown-menu {
    display: block;
    animation: hfilterSlideDown 0.2s ease;
}

@keyframes hfilterSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hfilter-dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.15s;
    border-bottom: 1px solid #f1f5f9;
}

.hfilter-dropdown-menu a:last-child {
    border-bottom: none;
}

.hfilter-dropdown-menu a:hover {
    background: #f8fafc;
}

.hfilter-dropdown-menu a.active {
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 600;
}

/* Category Menu */
.hfilter-category-menu {
    min-width: 240px;
}

/* Brand Menu - Checkboxes */
.hfilter-brand-menu {
    padding: 8px 0;
}

.hfilter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    transition: background 0.15s;
}

.hfilter-checkbox:hover {
    background: #f8fafc;
}

.hfilter-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #0ea5e9;
}

.hfilter-checkbox small {
    margin-left: auto;
    color: #9ca3af;
    font-size: 12px;
}

/* Price Menu */
.hfilter-price-menu {
    padding: 12px;
    min-width: 260px;
}

.hfilter-price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.hfilter-price-inputs input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    width: 80px;
}

.hfilter-price-inputs input:focus {
    outline: none;
    border-color: #0ea5e9;
}

.hfilter-price-inputs span {
    color: #9ca3af;
}

.hfilter-price-inputs button {
    padding: 8px 12px;
    background: #0ea5e9;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.hfilter-price-inputs button:hover {
    background: #0284c7;
}

.hfilter-price-ranges {
    border-top: 1px solid #e5e7eb;
    padding-top: 12px;
}

.hfilter-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 4px;
    cursor: pointer;
    font-size: 13px;
    color: #374151;
}

.hfilter-radio input[type="radio"] {
    accent-color: #0ea5e9;
}

/* Sort Dropdown */
.hfilter-sort {
    margin-left: auto;
}

/* Clear Filters Button */
.hfilter-clear {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.hfilter-clear:hover {
    background: #fee2e2;
    border-color: #f87171;
}

/* Product Count */
.hfilter-count {
    padding: 8px 16px;
    background: #f0fdf4;
    border-radius: 8px;
    color: #166534;
    font-size: 13px;
    font-weight: 500;
}

/* Products Area Horizontal - Full Width */
.products-area-horizontal {
    width: 100%;
}

.products-area-horizontal .products-grid {
    grid-template-columns: repeat(5, 1fr);
}

/* Horizontal Layout - List View Mode */
.products-area-horizontal .products-grid.view-list {
    grid-template-columns: 1fr !important;
    gap: 16px;
}

.products-area-horizontal .products-grid.view-list .product-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    max-width: 100%;
}

.products-area-horizontal .products-grid.view-list .product-image {
    height: 200px;
    min-height: 200px;
    padding-top: 0;
}

.products-area-horizontal .products-grid.view-list .product-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 24px;
    overflow: hidden;
}

.products-area-horizontal .products-grid.view-list .product-name {
    font-size: 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.products-area-horizontal .products-grid.view-list .product-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive for Horizontal Layout */
@media (max-width: 1200px) {
    .products-area-horizontal .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .products-area-horizontal .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .horizontal-filters-inner {
        gap: 8px;
    }
    
    .hfilter-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .horizontal-filters-bar {
        padding: 10px 15px;
        border-radius: 8px;
    }
    
    .horizontal-filters-inner {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
        gap: 8px;
        -webkit-overflow-scrolling: touch;
    }
    
    .horizontal-filters-inner::-webkit-scrollbar {
        height: 4px;
    }
    
    .horizontal-filters-inner::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 2px;
    }
    
    .hfilter-dropdown {
        flex-shrink: 0;
    }
    
    .hfilter-btn {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .hfilter-sort {
        margin-left: 0;
    }
    
    .hfilter-count {
        display: none;
    }
    
    .products-area-horizontal .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Horizontal Layout - List View Mobile */
    .products-area-horizontal .products-grid.view-list {
        grid-template-columns: 1fr !important;
    }
    
    .products-area-horizontal .products-grid.view-list .product-card {
        grid-template-columns: 120px 1fr;
    }
    
    .products-area-horizontal .products-grid.view-list .product-image {
        height: 140px;
        min-height: 140px;
    }
    
    .products-area-horizontal .products-grid.view-list .product-info {
        padding: 12px 14px;
    }
    
    .products-area-horizontal .products-grid.view-list .product-name {
        font-size: 14px;
    }
    
    .hfilter-dropdown-menu {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-height: 60vh;
        border-radius: 16px 16px 0 0;
    }
}

@media (max-width: 480px) {
    .products-area-horizontal .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* ==================== CATEGORY SECTION HEADER ==================== */
.category-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.category-section-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.category-section-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.slider-nav-btns {
    display: flex;
    gap: 6px;
}

.slider-prev-btn,
.slider-next-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #666;
}

.slider-prev-btn:hover,
.slider-next-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
    color: #333;
}

.slider-prev-btn i,
.slider-next-btn i {
    font-size: 12px;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    text-decoration: none;
    transition: color 0.2s, gap 0.2s;
}

.view-all-btn:hover {
    color: #333;
    gap: 10px;
}

.view-all-btn i {
    font-size: 11px;
}

/* ==================== PRODUCT SLIDER ==================== */
.product-slider-wrapper {
    overflow: hidden;
    margin-bottom: 30px;
}

.product-slider-track {
    display: flex;
    gap: 16px;
    transition: transform 0.4s ease;
    align-items: stretch;
}

.product-slider-track .product-card {
    display: flex;
    flex-direction: column;
    height: auto;
}

.product-slider-track .product-card .product-image {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background: #f8f8f8;
    border-radius: 8px;
}

.product-slider-track .product-card .product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s;
}

.product-slider-track .product-card > a {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-slider-track .product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-slider-track .product-title {
    flex: 1;
    min-height: 40px;
}

.product-slider-track .product-price {
    margin-top: auto;
}

/* Container mode - 4 products */
.container .product-slider-track .product-card {
    flex: 0 0 calc(25% - 12px);
    min-width: 200px;
}

/* Full width mode - 7 products */
.container-fluid .product-slider-track .product-card {
    flex: 0 0 calc(14.285% - 14px);
    min-width: 180px;
}

@media (max-width: 1400px) {
    .container-fluid .product-slider-track .product-card {
        flex: 0 0 calc(16.666% - 13px);
    }
}

@media (max-width: 1200px) {
    .container .product-slider-track .product-card {
        flex: 0 0 calc(33.333% - 11px);
    }
    
    .container-fluid .product-slider-track .product-card {
        flex: 0 0 calc(20% - 13px);
    }
}

@media (max-width: 992px) {
    .container .product-slider-track .product-card,
    .container-fluid .product-slider-track .product-card {
        flex: 0 0 calc(33.333% - 11px);
    }
}

@media (max-width: 768px) {
    .container .product-slider-track .product-card,
    .container-fluid .product-slider-track .product-card {
        flex: 0 0 calc(50% - 8px);
        min-width: 150px;
    }
}

@media (max-width: 576px) {
    .product-slider-track .product-card {
        flex: 0 0 calc(50% - 8px);
        min-width: 140px;
    }
    
    .category-section-header {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .category-section-header h3 {
        font-size: 16px;
    }
    
    .slider-prev-btn,
    .slider-next-btn {
        width: 28px;
        height: 28px;
    }
    
    .slider-prev-btn i,
    .slider-next-btn i {
        font-size: 10px;
    }
    
    .view-all-btn {
        font-size: 12px;
    }
}
