

.breadcrumb {
    padding: 15px 0;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.breadcrumb ol {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
    color: #6b7280;
}

.breadcrumb a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.breadcrumb-separator {
    color: #9ca3af;
}

.breadcrumb-current {
    color: #1f2937;
    font-weight: 500;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filters-section {
    padding: 40px 0;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.filters-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.filters-form {
    width: 100%;
}

.filter-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 20px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-group label i {
    color: #2563eb;
    font-size: 14px;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #f9fafb;
    color: #1f2937;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #2563eb;
    background: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.filter-group .search-field-wrap {
    position: relative;
}

.filter-group .search-suggestions {
    top: calc(100% + 4px);
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.filter-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232563eb' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 45px;
}

.filter-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-filter {
    padding: 12px 24px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-filter:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    background: #1d4ed8;
}

.btn-clear {
    padding: 12px 20px;
    background: #f3f4f6;
    color: #374151;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-clear:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

.active-filters {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.active-filters strong {
    color: #374151;
    font-size: 14px;
}

.filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: #eff6ff;
    border: 1px solid #3b82f6;
    border-radius: 20px;
    font-size: 13px;
    color: #1e40af;
}

.filter-badge a {
    color: #3b82f6;
    text-decoration: none;
    margin-left: 4px;
    transition: color 0.3s ease;
}

.filter-badge a:hover {
    color: #1e3a8a;
}

.products-list-section {
    padding: 60px 0 80px;
    background: #ffffff;
}

.products-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.products-count {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.products-count strong {
    font-size: 1.5rem;
    color: #1f2937;
    font-weight: 700;
}

.products-count span {
    color: #6b7280;
    font-size: 1rem;
}

.view-options {
    display: flex;
    gap: 8px;
    background: #f3f4f6;
    padding: 4px;
    border-radius: 10px;
}

.view-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: #6b7280;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn:hover {
    background: white;
    color: #2563eb;
}

.view-btn.active {
    background: white;
    color: #2563eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.products-grid-modern.list-view {
    grid-template-columns: 1fr;
    gap: 20px;
}

.products-grid-modern.list-view .product-card-modern {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 30px;
    padding: 20px;
}

.products-grid-modern.list-view .product-image {
    height: 200px;
}

.products-grid-modern.list-view .product-content {
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.products-grid-modern.list-view .product-actions {
    position: static;
    opacity: 1;
    transform: none;
    flex-direction: row;
    gap: 10px;
}

.product-card-modern {
    position: relative;
}

.product-category {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #2563eb;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.product-category i {
    font-size: 10px;
}

.product-card-modern h3 {
    margin-bottom: 10px;
}

.product-card-modern h3 a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1.1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-modern h3 a:hover {
    color: #2563eb;
}

.product-sku {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 12px;
}

.product-sku strong {
    color: #374151;
    font-weight: 600;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.price-current {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
}

.price-old {
    font-size: 1.1rem;
    color: #9ca3af;
    text-decoration: line-through;
}

.price-new {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ef4444;
}

.price-hidden {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

.price-hidden i {
    color: #9ca3af;
}

.pagination-modern {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.page-numbers {
    display: flex;
    gap: 8px;
    align-items: center;
}

.page-link {
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    color: #374151;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    gap: 6px;
}

.page-link:hover {
    border-color: #2563eb;
    color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.page-link.active {
    background: #2563eb;
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.page-ellipsis {
    color: #9ca3af;
    padding: 0 8px;
}

.no-products {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.no-products-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #9ca3af;
}

.no-products h3 {
    font-size: 1.75rem;
    color: #1f2937;
    margin-bottom: 15px;
}

.no-products p {
    color: #6b7280;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

@media (max-width: 1024px) {
    .filter-row {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .filter-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {

    .filters-card {
        padding: 20px;
    }

    .filter-row {
        grid-template-columns: 1fr;
    }

    .filter-actions {
        grid-column: 1;
    }

    .products-header-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .products-grid-modern.list-view .product-card-modern {
        grid-template-columns: 1fr;
    }

    .products-grid-modern.list-view .product-image {
        height: 250px;
    }
}

@media (max-width: 640px) {
    .filters-card {
        padding: 15px;
    }

    .filter-group label {
        font-size: 13px;
    }

    .filter-group input,
    .filter-group select {
        padding: 12px 14px;
        font-size: 16px !important;
        
        min-height: 44px;
        touch-action: manipulation;
        width: 100%;
        box-sizing: border-box;
    }

    .filter-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 500;
        font-size: 14px;
    }

    .btn-filter,
    .btn-clear {
        padding: 12px 18px;
        font-size: 14px;
        min-height: 44px;
        touch-action: manipulation;
        width: 100%;
    }

    .view-options button {
        min-width: 44px;
        min-height: 44px;
        touch-action: manipulation;
    }

    .page-link {
        min-width: 44px;
        min-height: 44px;
        touch-action: manipulation;
    }

    .products-header-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .products-count {
        flex-direction: column;
        align-items: flex-start;
    }

    .products-count strong {
        font-size: 1.25rem;
    }

    .view-options {
        align-self: flex-start;
    }

    
    .products-grid {
        grid-template-columns: 1fr !important;
        
        gap: 12px;
    }

    .products-grid-modern {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .products-grid-modern.list-view .product-card-modern {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .products-grid-modern.list-view .product-image {
        height: 200px;
    }

    .pagination-modern {
        gap: 6px;
        margin-top: 40px;
    }

    .page-link {
        min-width: 38px;
        height: 38px;
        padding: 0 10px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .products-hero .hero-title {
        font-size: 1.75rem;
    }

    .products-hero .hero-subtitle {
        font-size: 0.9rem;
    }

    .filters-card {
        padding: 12px;
    }

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

    .active-filters {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .filter-badge {
        font-size: 12px;
        padding: 5px 10px;
    }

    .products-grid-modern {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .product-card-modern {
        border-radius: 12px;
    }

    .product-image {
        height: 200px;
    }

    .product-content {
        padding: 15px;
    }

    .product-content h3 {
        font-size: 1rem;
    }

    .pagination-modern {
        gap: 5px;
    }

    .page-link {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        font-size: 12px;
    }

    .no-products {
        padding: 60px 15px;
    }

    .no-products-icon {
        width: 80px;
        height: 80px;
        font-size: 36px;
    }

    .no-products h3 {
        font-size: 1.5rem;
    }

    .no-products p {
        font-size: 1rem;
    }
}

.quick-view-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quick-view-modal.active {
    display: flex;
    opacity: 1;
}

.quick-view-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.quick-view-content {
    position: relative;
    background: white;
    border-radius: 20px;
    max-width: 1200px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10001;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.quick-view-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    transition: all 0.3s ease;
    font-size: 18px;
    color: #374151;
}

.quick-view-close:hover {
    background: #e5e7eb;
    transform: rotate(90deg);
}

.quick-view-body {
    padding: 40px;
}

.quick-view-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.quick-view-images .main-image {
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    background: #f9fafb;
}

.quick-view-images .main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.quick-view-images .thumbnail-images {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.quick-view-images .thumbnail-images img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.quick-view-images .thumbnail-images img:hover {
    border-color: #2563eb;
    transform: scale(1.05);
}

.quick-view-info h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #1f2937;
}

.quick-view-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.quick-view-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 14px;
}

.quick-view-description {
    margin-bottom: 25px;
    color: #4b5563;
    line-height: 1.7;
}

.quick-view-price {
    margin-bottom: 20px;
}

.quick-view-price .current-price {
    font-size: 32px;
    font-weight: 900;
    color: #2563eb;
}

.quick-view-price .compare-price {
    font-size: 20px;
    color: #9ca3af;
    text-decoration: line-through;
    margin-right: 10px;
}

.quick-view-stock {
    margin-bottom: 25px;
}

.quick-view-actions {
    margin-bottom: 25px;
}

.quick-view-actions .quantity-selector {
    margin-bottom: 15px;
}

.quick-view-actions .quantity-input {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.quick-view-actions .quantity-input button {
    background: #f3f4f6;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.3s ease;
}

.quick-view-actions .quantity-input button:hover {
    background: #e5e7eb;
}

.quick-view-actions .quantity-input input {
    width: 80px;
    padding: 10px;
    border: none;
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    text-align: center;
    font-size: 16px;
    -moz-appearance: textfield;
    appearance: textfield;
    caret-color: #1f2937;
}

.quick-view-actions .quantity-input input::-webkit-outer-spin-button,
.quick-view-actions .quantity-input input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quick-view-actions .quantity-input input:focus,
.quick-view-actions .quantity-input input:focus-visible {
    outline: none;
    box-shadow: none;
}

.quick-view-footer {
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.loading-spinner {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner i {
    font-size: 48px;
    color: #2563eb;
    margin-bottom: 20px;
}

.error-message {
    text-align: center;
    padding: 60px 20px;
    color: #ef4444;
}

.price-range-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-range-inputs input {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
}

.price-range-inputs span {
    color: #6b7280;
    font-weight: 600;
}

.product-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.product-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #374151;
    font-size: 16px;
}

.product-btn:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.product-btn.active {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
}

.wishlist-btn i.fas {
    color: #ef4444;
}

.compare-btn.active {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

@media (max-width: 968px) {
    .quick-view-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .quick-view-content {
        width: 98%;
        max-height: 95vh;
    }

    .quick-view-body {
        padding: 30px 20px;
    }

    .quick-view-info h2 {
        font-size: 24px;
    }
}

@media (max-width: 640px) {
    .product-actions {
        gap: 6px;
    }

    .product-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .price-range-inputs {
        flex-direction: column;
        gap: 8px;
    }

    .price-range-inputs span {
        display: none;
    }
}