/* ========================================
   TruckCenter Chile - Catalog Styles
   ======================================== */

/* ========================================
   Catalog Hero Banner - Bridgestone Style
   ======================================== */
.catalog-hero-banner {
    position: relative;
    min-height: 580px;
    padding: 130px 0 100px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.catalog-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    z-index: 1;
    overflow: hidden;
}

.catalog-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    transform: translateY(0);
    transition: transform 0.1s ease-out;
    will-change: transform;
}

.catalog-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(13, 27, 42, 0.7) 0%, rgba(13, 27, 42, 0.3) 50%, rgba(13, 27, 42, 0.1) 100%);
    z-index: 2;
}

.catalog-hero-banner .container {
    position: relative;
    z-index: 3;
}

.catalog-hero-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.catalog-hero-left {
    flex: 1;
    max-width: 650px;
}

.catalog-hero-banner .breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    margin-bottom: 16px;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.catalog-hero-banner .breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.3s ease;
    text-decoration: none;
    font-weight: 500;
}

.catalog-hero-banner .breadcrumb a:hover {
    color: var(--primary-color);
}

.catalog-hero-banner .breadcrumb i {
    font-size: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
}

.catalog-hero-banner .breadcrumb span {
    color: var(--primary-color);
    font-weight: 600;
}

.catalog-hero-banner h1 {
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.catalog-hero-banner .hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 24px;
    line-height: 1.5;
    max-width: 450px;
    font-weight: 400;
}

/* Hero Category Icons - Circular icons with labels */
.hero-category-icons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.hero-cat-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-cat-icon svg {
    width: 50px;
    height: 50px;
    padding: 12px;
    background: rgba(223, 130, 35, 0.9);
    border-radius: 50%;
    stroke: #fff;
    transition: all 0.3s ease;
}

.hero-cat-icon span {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.hero-cat-icon:hover svg {
    background: #fff;
    stroke: var(--primary-color);
    transform: scale(1.1);
}

.hero-cat-icon:hover span {
    color: var(--primary-color);
    opacity: 1;
}

.hero-features {
    display: flex;
    gap: 24px;
    margin-bottom: 28px;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    font-weight: 500;
}

.hero-feature i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.btn-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #df8223 0%, #ff9800 100%);
    color: #0d1b2a;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(223, 130, 35, 0.4);
}

.btn-hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(223, 130, 35, 0.5);
    background: linear-gradient(135deg, #ff9800 0%, #ffb74d 100%);
}

/* Tire element removed - keeping keyframe for potential future use */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsive Hero Banner */
@media (max-width: 991.98px) {
    .catalog-hero-banner {
        min-height: 240px;
        padding: 95px 20px 45px;
    }

    .catalog-hero-content {
        text-align: center;
    }

    .catalog-hero-left {
        max-width: 100%;
    }

    .catalog-hero-banner .breadcrumb {
        display: none;
    }

    .catalog-hero-banner .hero-subtitle {
        max-width: 100%;
        margin: 0 auto;
        font-style: normal;
    }

    .hero-features {
        display: none;
    }

    .btn-hero-cta {
        display: none;
    }

    .catalog-hero-overlay {
        background: linear-gradient(180deg, rgba(13, 27, 42, 0.6) 0%, rgba(13, 27, 42, 0.4) 100%);
    }
}

@media (max-width: 575.98px) {
    .catalog-hero-banner {
        min-height: 200px;
        padding: 75px 16px 40px;
    }

    .catalog-hero-overlay {
        background: linear-gradient(180deg, rgba(13, 27, 42, 0.5) 0%, rgba(13, 27, 42, 0.3) 100%);
    }

    .catalog-hero-banner .breadcrumb {
        display: none;
    }

    .catalog-hero-banner h1 {
        font-size: 1.4rem;
        margin-bottom: 10px;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    }

    .catalog-hero-banner .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 0;
        font-style: normal;
        font-weight: 400;
        color: rgba(255, 255, 255, 0.95);
        text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
    }

    .hero-features {
        display: none;
    }

    .btn-hero-cta {
        display: none;
    }
}

/* ========================================
   Loading State
   ======================================== */
.catalog-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

.catalog-loading p {
    color: #666;
    font-size: 1rem;
}

/* ========================================
   Vehicle Type Selector - Professional Clean Design
   ======================================== */
.vehicle-type-selector {
    margin-bottom: 24px;
    text-align: center;
}

.vehicle-selector-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.vehicle-type-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.vehicle-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 28px;
    min-width: 130px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vehicle-type-btn:hover {
    border-color: #1a1a1a;
    background: #fafafa;
}

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

.vehicle-type-btn i {
    font-size: 1.6rem;
    margin-bottom: 8px;
    color: #666;
    transition: all 0.2s ease;
}

.vehicle-type-btn:hover i {
    color: #1a1a1a;
}

.vehicle-type-btn.active i {
    color: #fff;
}

.vehicle-type-btn .vehicle-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    transition: all 0.2s ease;
}

.vehicle-type-btn.active .vehicle-name {
    color: #fff;
}

.vehicle-type-btn .vehicle-desc {
    font-size: 0.7rem;
    color: #999;
    margin-top: 2px;
    transition: all 0.2s ease;
}

.vehicle-type-btn.active .vehicle-desc {
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive vehicle selector */
@media (max-width: 768px) {
    .vehicle-type-buttons {
        gap: 12px;
    }

    .vehicle-type-btn {
        padding: 18px 25px;
        min-width: 100px;
        flex: 1;
        max-width: 140px;
    }

    .vehicle-type-btn i {
        font-size: 2rem;
        margin-bottom: 8px;
    }

    .vehicle-type-btn .vehicle-name {
        font-size: 0.95rem;
    }

    .vehicle-type-btn .vehicle-desc {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .vehicle-type-btn {
        padding: 15px 15px;
        min-width: 90px;
    }

    .vehicle-type-btn i {
        font-size: 1.6rem;
    }

    .vehicle-type-btn .vehicle-name {
        font-size: 0.85rem;
    }
}

/* ========================================
   Tire Search Section - Professional Bridgestone Style
   ======================================== */
.tire-search-section {
    padding: 40px 0 50px;
    background: #f5f5f5;
    position: relative;
}

.tire-search-box {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    min-height: 110px;
    transition: all 0.3s ease;
    border: none;
}

.tire-search-content {
    flex: 1;
    padding: 20px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}

.tire-search-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 2px;
}

.tire-search-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #333;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.tire-search-badge i {
    font-size: 1rem;
    color: #333;
}

.tire-search-subtitle {
    display: none;
}

.tire-search-filters {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.tire-filter-group {
    flex: 1;
    min-width: 100px;
    max-width: 150px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.tire-filter-group label {
    display: none;
}

/* Filter Display - Shows selected value - Clean Professional Style */
.filter-display {
    display: flex;
    align-items: baseline;
    gap: 2px;
    padding: 0;
    transition: all 0.2s ease;
    min-height: 28px;
}

.filter-display .filter-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
    transition: all 0.2s ease;
    font-family: 'Roboto', sans-serif;
    letter-spacing: -0.3px;
}

.filter-display .filter-unit {
    font-size: 0.65rem;
    font-weight: 500;
    color: #999;
    text-transform: lowercase;
    margin-left: 2px;
    align-self: flex-end;
    margin-bottom: 2px;
}

/* Empty/Sold out state */
.filter-display.empty .filter-value {
    color: #ccc;
}

.filter-display.empty .filter-unit {
    color: #ccc;
}

/* Active state */
.filter-display.active .filter-value {
    color: #1a1a1a;
}

.filter-display.active .filter-unit {
    color: #666;
}

/* Brand display with icon */
.filter-display.brand-display {
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.filter-brand-icon {
    width: 28px;
    height: 28px;
    display: none;
    align-items: center;
    justify-content: center;
}

.filter-brand-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.filter-display.brand-display.active .filter-brand-icon {
    display: flex;
}

.filter-display.brand-display .filter-value {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Roboto', sans-serif;
}

.tire-filter-select {
    width: 100%;
    padding: 10px 28px 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #666;
    background: #f8f8f8;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 14px;
    transition: all 0.2s ease;
}

.tire-filter-select:hover {
    border-color: #ccc;
    background: #fff;
}

.tire-filter-select:focus {
    outline: none;
    border-color: #1a1a1a;
    background: #fff;
}

.tire-filter-select.has-value {
    border-color: #1a1a1a;
    background: #fff;
    color: #1a1a1a;
    font-weight: 600;
}

/* Unavailable options in dropdown */
.tire-filter-select option.unavailable {
    color: #ccc;
    font-style: italic;
}

/* Results count - Professional clean style */
.tire-search-results-count {
    display: flex;
    align-items: baseline;
    gap: 6px;
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateX(-10px);
}

.tire-search-results-count.visible {
    opacity: 1;
    transform: translateX(0);
}

.tire-search-results-count .results-number {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
    font-family: 'Roboto', sans-serif;
    line-height: 1;
}

.tire-search-results-count.no-results .results-number {
    color: #999;
}

.tire-search-results-count .results-text {
    font-size: 0.7rem;
    font-weight: 500;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tire Preview Section - Clean White Background */
.tire-search-preview {
    width: 0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    background: #ffffff;
    overflow: hidden;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: width, padding;
    transform: translateZ(0);
}

.tire-search-preview.visible {
    width: 200px;
    padding: 16px;
}

.tire-search-preview img {
    max-width: 140px;
    max-height: 120px;
    object-fit: contain;
    background: #ffffff;
    opacity: 0;
    transform: scale(0.85) translateZ(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
    transition-delay: 0.1s;
    backface-visibility: hidden;
    will-change: opacity, transform;
}

.tire-search-preview.visible img {
    opacity: 1;
    transform: scale(1) translateZ(0);
}

.tire-preview-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-top: 8px;
    opacity: 0;
    transform: translateY(6px) translateZ(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
    transition-delay: 0.2s;
    will-change: opacity, transform;
    backface-visibility: hidden;
}

.tire-search-preview.visible .tire-preview-info {
    opacity: 1;
    transform: translateY(0) translateZ(0);
}

.tire-preview-brand {
    font-size: 0.65rem;
    font-weight: 700;
    color: #df8223;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tire-preview-size {
    font-size: 0.7rem;
    font-weight: 600;
    color: #333;
}

/* Responsive Tire Search */
@media (max-width: 991.98px) {
    .tire-search-box {
        flex-wrap: wrap;
    }

    .tire-search-content {
        flex: 1;
        min-width: 100%;
        padding: 20px 25px;
    }

    .tire-search-header {
        flex-wrap: wrap;
        gap: 10px;
    }

    .tire-search-filters {
        flex-wrap: wrap;
        gap: 15px 12px;
    }

    .tire-filter-group {
        flex: 1 1 calc(50% - 6px);
        min-width: 100px;
        max-width: none;
    }

    .filter-display .filter-value {
        font-size: 1.4rem;
    }

    .tire-search-preview {
        display: none;
    }

    .tire-search-preview.visible {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .tire-search-section {
        padding: 20px 0;
    }

    .tire-search-box {
        flex-direction: column;
        border-radius: 12px;
    }

    .tire-search-content {
        padding: 20px;
        width: 100%;
    }

    .tire-search-badge {
        font-size: 0.75rem;
    }

    .tire-filter-group {
        flex: 1 1 calc(50% - 6px);
        gap: 6px;
    }

    .filter-display .filter-value {
        font-size: 1.3rem;
    }

    .filter-display .filter-unit {
        font-size: 0.6rem;
    }

    .tire-filter-select {
        padding: 8px 26px 8px 10px;
        font-size: 0.75rem;
    }

    .tire-search-results-count .results-number {
        font-size: 1.4rem;
    }

    .tire-search-results-count .results-text {
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {
    .tire-search-section {
        padding: 15px 0;
    }

    .tire-search-content {
        padding: 15px;
        gap: 12px;
    }

    .tire-search-badge {
        font-size: 0.7rem;
        gap: 6px;
    }

    .tire-search-filters {
        gap: 12px 10px;
    }

    .tire-filter-group {
        gap: 5px;
    }

    .filter-display .filter-value {
        font-size: 1.2rem;
    }

    .tire-filter-select {
        padding: 7px 24px 7px 8px;
        font-size: 0.7rem;
    }
}

/* Page Header - Modern Banner for internal pages (legacy) */
.page-header-simple {
    background: linear-gradient(135deg, #0d1b2a 0%, #1b3a4b 50%, #0d1b2a 100%);
    padding: 180px 0 80px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

/* Decorative elements */
.page-header-simple::before {
    content: '';
    position: absolute;
    top: 0;
    right: -10%;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(223, 130, 35, 0.08) 50%, transparent 100%);
    transform: skewX(-15deg);
    pointer-events: none;
}

.page-header-simple::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #ff9800, var(--primary-color));
}

.page-header-content {
    max-width: 700px;
    position: relative;
    z-index: 2;
}

.page-header-simple .breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.875rem;
    margin-bottom: 20px;
}

.page-header-simple .breadcrumb a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.page-header-simple .breadcrumb a:hover {
    color: var(--primary-color);
}

.page-header-simple .breadcrumb i {
    font-size: 0.625rem;
    color: rgba(255, 255, 255, 0.4);
}

.page-header-simple .breadcrumb span {
    color: var(--primary-color);
}

.page-header-simple h1 {
    color: var(--white);
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

.page-header-simple p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.15rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    max-width: 500px;
}

/* Catalog Section */
.catalog-section {
    padding: 50px 0 80px;
    background: #f8f9fa;
}

.catalog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
}

/* Sidebar */
.catalog-sidebar {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    position: sticky;
    top: 100px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--gray-100);
}

.sidebar-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: var(--dark-color);
}

.sidebar-close {
    display: none;
    width: 36px;
    height: 36px;
    background: var(--gray-100);
    border: none;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-close:hover {
    background: var(--primary-color);
    color: white;
}

/* Filter Groups */
.filter-group {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-200);
}

.filter-group:last-of-type {
    border-bottom: none;
    margin-bottom: 20px;
}

.filter-group h4 {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--gray-800);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group h4::before {
    content: '';
    width: 4px;
    height: 14px;
    background: var(--primary-color);
    border-radius: 2px;
}

.filter-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Filter as Chips/Tags */
.filter-list.chips {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-list.chips .filter-checkbox {
    padding: 8px 14px;
    background: var(--gray-100);
    border-radius: 20px;
    border: 1px solid var(--gray-200);
    font-size: 0.8rem;
    gap: 0;
}

.filter-list.chips .filter-checkbox .checkmark {
    display: none;
}

.filter-list.chips .filter-checkbox:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.filter-list.chips .filter-checkbox input:checked ~ span:last-child,
.filter-list.chips .filter-checkbox.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Custom Checkbox */
.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--gray-700);
    transition: all 0.2s ease;
    padding: 6px 0;
}

.filter-checkbox:hover {
    color: var(--dark-color);
}

.filter-checkbox input {
    display: none;
}

.filter-checkbox .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.filter-checkbox input[type="radio"] + .checkmark {
    border-radius: 50%;
}

.filter-checkbox:hover .checkmark {
    border-color: var(--primary-color);
}

.filter-checkbox input:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.filter-checkbox input:checked + .checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.65rem;
    color: white;
}

/* Filter Count Badge */
.filter-checkbox .filter-count {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--gray-500);
    background: var(--gray-100);
    padding: 2px 8px;
    border-radius: 10px;
}

/* Filter Select */
.filter-select {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    font-size: 0.9rem;
    background: var(--white);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236c757d'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    transition: border-color 0.2s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Price Range */
.price-range {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.price-inputs input {
    width: 100%;
    max-width: 100px;
    flex: 1;
    padding: 10px 12px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s ease;
    text-align: center;
    -moz-appearance: textfield;
}

.price-inputs input::-webkit-outer-spin-button,
.price-inputs input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.price-inputs input:focus {
    border-color: var(--primary-color);
}

.price-inputs span {
    color: var(--gray-400);
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.price-range .btn {
    width: 100%;
    padding: 10px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.price-range .btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Clear Filters Button */
.btn-outline-dark {
    background: #ffffff;
    color: var(--gray-700);
    border: 2px solid var(--gray-300);
    width: 100%;
    margin-top: 16px;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-outline-dark:hover {
    background: var(--gray-100);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Catalog Main */
.catalog-main {
    min-height: 500px;
}

/* Catalog Header */
.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
    gap: 14px;
    border: 1px solid #f0f0f0;
}

.catalog-results {
    font-size: 0.95rem;
    color: var(--gray-600);
    font-weight: 500;
}

.catalog-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.filter-toggle-btn {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.catalog-sort {
    display: flex;
    align-items: center;
    gap: 12px;
}

.catalog-sort label {
    font-size: 0.9rem;
    color: var(--gray-600);
    font-weight: 500;
}

.catalog-sort select {
    padding: 12px 40px 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    font-size: 0.9rem;
    background: var(--white);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236c757d'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    transition: border-color 0.2s ease;
}

.catalog-sort select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.catalog-view {
    display: flex;
    gap: 6px;
}

.view-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--gray-200);
    background: var(--white);
    border-radius: 10px;
    color: var(--gray-500);
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.view-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Active Filters */
.active-filters {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.active-filters > span {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
}

.active-filters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.active-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--primary-color);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 20px;
}

.active-filter-tag button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    font-size: 1rem;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.active-filter-tag button:hover {
    opacity: 1;
}

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

.catalog-products.list-view {
    grid-template-columns: 1fr;
}

/* List View Product Card */
.catalog-products.list-view .product-card {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: 24px;
}

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

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

.catalog-products.list-view .product-title {
    font-size: 1.125rem;
}

.catalog-products.list-view .product-description {
    display: block;
    color: var(--gray-600);
    font-size: 0.9375rem;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.catalog-products.list-view .product-footer {
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    min-width: 180px;
}

.catalog-products.list-view .product-price {
    flex-direction: column;
    align-items: flex-end;
    margin-bottom: 16px;
}

/* Empty State */
.catalog-empty {
    text-align: center;
    padding: 60px 24px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.catalog-empty i {
    font-size: 3.5rem;
    color: var(--gray-300);
    margin-bottom: 20px;
    display: block;
}

.catalog-empty h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
    color: var(--gray-800);
}

.catalog-empty p {
    color: var(--gray-600);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

/* Pagination */
.catalog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.pagination-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--gray-200);
    background: var(--white);
    border-radius: 10px;
    color: var(--gray-700);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-ellipsis {
    padding: 0 8px;
    color: var(--gray-500);
}

/* Sidebar Overlay (Mobile) */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.sidebar-overlay.active {
    display: block;
}

/* Product Card Adjustments for Catalog - E-commerce Style */
.catalog-products .product-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    border: 1px solid #e8e8e8;
    position: relative;
    display: flex;
    flex-direction: column;
    /* Performance: Use GPU acceleration and optimize compositing */
    transform: translateZ(0);
    will-change: auto;
    contain: layout style paint;
}

.catalog-products .product-card:hover {
    transform: translateY(-6px) translateZ(0);
    box-shadow: 0 12px 30px rgba(223, 130, 35, 0.18);
    border-color: var(--primary-color);
    /* Hint to browser about composition layer */
    will-change: transform;
}

.catalog-products .product-actions {
    opacity: 0;
}

.catalog-products .product-card:hover .product-actions {
    opacity: 1;
}

/* Product Badges - E-commerce Style Premium */
.catalog-products .product-badge {
    position: absolute;
    z-index: 5;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    /* Performance: GPU acceleration */
    transform: translateZ(0);
    backface-visibility: hidden;
}

.catalog-products .product-badge.sale {
    top: 12px;
    left: 12px;
    padding: 8px 12px;
    border-radius: 6px;
    background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
    color: white;
    box-shadow: 0 4px 10px rgba(229, 57, 53, 0.4);
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 0.85rem;
    line-height: 1;
    /* Performance optimization */
    will-change: auto;
}

.catalog-products .product-badge.sale::after {
    content: 'OFF';
    font-size: 0.65rem;
    font-weight: 600;
    opacity: 0.9;
}

.catalog-products .product-badge.new {
    top: 12px;
    right: 12px;
    left: auto;
    padding: 8px 14px;
    border-radius: 4px;
    background: linear-gradient(135deg, #1565c0 0%, #1976d2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.4);
    font-size: 0.7rem;
}

.catalog-products .product-badge.out-of-stock {
    top: 12px;
    left: 12px;
    padding: 8px 14px;
    border-radius: 4px;
    background: #78909c;
    color: white;
    font-size: 0.7rem;
}

/* Multiple Badges */
.catalog-products .product-badges {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
    pointer-events: none;
}

.catalog-products .product-badges .product-badge {
    position: absolute;
    pointer-events: auto;
}

/* Product Image Container */
.catalog-products .product-image {
    position: relative;
    height: 220px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.catalog-products .product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(223, 130, 35, 0.03) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.catalog-products .product-card:hover .product-image::before {
    opacity: 1;
}

.catalog-products .product-image img {
    position: static !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
    max-width: 100%;
    max-height: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.catalog-products .product-card:hover .product-image img {
    transform: scale(1.08) translateY(-5px) !important;
}

/* Lazy loading placeholder */
.catalog-products .product-image img.lazy-image {
    background: #f0f0f0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.catalog-products .product-image img.lazy-loaded {
    opacity: 1;
}

/* Product Info */
.catalog-products .product-info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-top: 1px solid #f5f5f5;
}

.catalog-products .product-category {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #ffffff;
    background: linear-gradient(135deg, #1565c0 0%, #1976d2 100%);
    padding: 6px 12px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 10px;
    width: fit-content;
    box-shadow: 0 2px 8px rgba(21, 101, 192, 0.3);
}

.catalog-products .product-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 4px;
    color: var(--dark-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.catalog-products .product-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.catalog-products .product-title a:hover {
    color: var(--primary-dark);
}

.catalog-products .product-brand {
    font-size: 0.8rem;
    color: var(--gray-600);
    margin-bottom: 8px;
}

/* Product Specs Tags */
.catalog-products .product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.catalog-products .product-spec-tag {
    font-size: 0.78rem;
    padding: 5px 12px;
    background: #e3f2fd;
    color: #1565c0;
    border-radius: 4px;
    font-weight: 600;
    border: 1px solid #90caf9;
}

.catalog-products .product-spec-tag.highlight {
    background: linear-gradient(135deg, #1565c0 0%, #1976d2 100%);
    color: #ffffff;
    border-color: transparent;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(21, 101, 192, 0.25);
}

/* Product Price - E-commerce Style */
.catalog-products .product-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.catalog-products .price-current {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.catalog-products .price-original {
    font-size: 0.85rem;
    color: var(--gray-500);
    text-decoration: line-through;
}

/* Discount Percentage */
.catalog-products .discount-tag {
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(223, 130, 35, 0.1);
    color: var(--primary-color);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Volume Discount Info */
.volume-discount-info {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 8px 10px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 8px;
    font-size: 0.75rem;
    color: #2e7d32;
    font-weight: 600;
    /* Performance: Prevent reflow during animations */
    contain: layout style paint;
}

.volume-discount-info i {
    font-size: 0.85rem;
    color: #43a047;
    /* Performance: Prevent icon from causing reflow */
    transform: translateZ(0);
}

/* Product Footer */
.catalog-products .product-footer {
    padding: 0 16px 16px;
    display: flex;
    gap: 10px;
    background: #ffffff;
}

.catalog-products .product-footer .btn {
    flex: 1;
    padding: 12px 14px;
    font-size: 0.85rem;
    border-radius: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.catalog-products .product-footer .btn-add-cart {
    background: var(--primary-color);
    color: white;
    border: none;
}

.catalog-products .product-footer .btn-add-cart:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(223, 130, 35, 0.35);
}

.catalog-products .product-footer .btn-view {
    background: #ffffff;
    color: var(--gray-700);
    border: 2px solid var(--gray-200);
    flex: 0;
    padding: 12px 16px;
}

.catalog-products .product-footer .btn-view:hover {
    background: var(--dark-color);
    color: white;
    border-color: var(--dark-color);
}

/* Loading State */
.catalog-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* CTA Section for Catalog */
.catalog-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #0a1018 0%, #1a2a3a 50%, #0a1018 100%);
    position: relative;
    overflow: hidden;
}

.catalog-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.05;
    filter: blur(100px);
}

.catalog-cta .cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.catalog-cta h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
}

.catalog-cta p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
}

.catalog-cta .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.catalog-cta .btn-dark {
    background: var(--white);
    color: var(--dark-color);
}

.catalog-cta .btn-dark:hover {
    background: var(--primary-color);
}

.btn-dark {
    background: var(--dark-color);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-dark:hover {
    background: #1a2a3a;
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: #df8223;
    color: var(--white);
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background: #c67320;
    transform: translateY(-2px);
}

/* Responsive Adjustments */
@media (max-width: 1199.98px) {
    .catalog-products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991.98px) {
    .page-header-simple {
        padding: 120px 0 50px;
    }

    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .catalog-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 320px;
        z-index: 1001;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        border-radius: 0;
        overflow-y: auto;
        padding-top: 20px;
    }

    .catalog-sidebar.active {
        transform: translateX(0);
    }

    .sidebar-close {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .filter-toggle-btn {
        display: flex;
    }

    .catalog-products {
        grid-template-columns: repeat(3, 1fr);
    }

    .catalog-header {
        padding: 14px 18px;
    }
}

@media (max-width: 767.98px) {
    .page-header-simple {
        padding: 110px 0 40px;
    }

    .page-header-simple h1 {
        font-size: 1.75rem;
    }

    .catalog-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .catalog-results {
        text-align: center;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--gray-200);
    }

    .catalog-controls {
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
    }

    .filter-toggle-btn {
        flex: 1;
        justify-content: center;
    }

    .catalog-sort {
        flex: 1;
    }

    .catalog-sort label {
        display: none;
    }

    .catalog-sort select {
        width: 100%;
    }

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

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

    .catalog-products .product-info {
        padding: 12px;
    }

    .catalog-products .product-title {
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .catalog-products .product-brand {
        font-size: 0.75rem;
    }

    .catalog-products .product-price {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .catalog-products .price-current {
        font-size: 1rem;
    }

    .catalog-products .price-original {
        font-size: 0.8rem;
    }

    .catalog-products .product-footer {
        padding: 0 12px 12px;
        gap: 8px;
    }

    .catalog-products .product-footer .btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .catalog-products.list-view {
        grid-template-columns: 1fr;
    }

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

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

    .catalog-products.list-view .product-footer {
        align-items: stretch;
        padding: 0 16px 16px;
    }

    .catalog-products.list-view .product-price {
        flex-direction: row;
        align-items: center;
    }

    .catalog-cta {
        padding: 60px 0;
    }

    .catalog-pagination {
        padding: 16px;
        gap: 6px;
    }

    .pagination-btn {
        width: 38px;
        height: 38px;
        font-size: 0.85rem;
    }
}

@media (max-width: 575.98px) {
    .page-header-simple {
        padding: 100px 0 30px;
    }

    .page-header-simple h1 {
        font-size: 1.5rem;
    }

    .page-header-simple p {
        font-size: 0.95rem;
    }

    .catalog-section {
        padding: 30px 0 60px;
    }

    .catalog-sidebar {
        width: 100%;
    }

    .catalog-products {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .catalog-products .product-card {
        border-radius: 10px;
    }

    .catalog-products .product-image {
        height: 140px;
        padding: 10px;
        background: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: visible;
    }

    .catalog-products .product-image img {
        position: static !important;
        transform: none !important;
        max-width: 100%;
        max-height: 120px;
        width: auto;
        height: auto;
        object-fit: contain;
        display: block;
        opacity: 1 !important;
    }

    .catalog-products .product-info {
        padding: 10px;
    }

    .catalog-products .product-title {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
        line-height: 1.25;
        margin-bottom: 2px;
    }

    .catalog-products .product-category {
        font-size: 0.6rem;
        padding: 4px 8px;
        margin-bottom: 6px;
    }

    .catalog-products .product-brand {
        font-size: 0.7rem;
        margin-bottom: 4px;
    }

    .catalog-products .product-specs {
        display: none;
    }

    .catalog-products .product-price {
        padding-top: 8px;
        gap: 6px;
    }

    .catalog-products .price-current {
        font-size: 0.95rem;
    }

    .catalog-products .price-original {
        font-size: 0.7rem;
    }

    .catalog-products .product-footer {
        padding: 0 10px 10px;
        gap: 6px;
    }

    .catalog-products .product-footer .btn {
        padding: 8px 10px;
        font-size: 0.75rem;
        border-radius: 8px;
    }

    .catalog-products .product-footer .btn span {
        display: inline;
        font-size: 0.7rem;
    }

    .catalog-products .product-footer .btn i {
        margin-right: 4px;
        font-size: 0.75rem;
    }

    .catalog-products .product-badge.sale {
        top: 8px;
        left: 8px;
        padding: 4px 8px;
        font-size: 0.7rem;
    }

    .catalog-products .product-badge.sale::after {
        font-size: 0.55rem;
    }

    .catalog-view {
        display: none;
    }

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

    .active-filter-tag {
        font-size: 0.75rem;
        padding: 6px 10px;
    }

    .catalog-cta h2 {
        font-size: 1.5rem;
    }

    .catalog-cta p {
        font-size: 0.95rem;
    }

    .catalog-cta .cta-buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
    }

    .catalog-cta .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 380px) {
    .catalog-products {
        grid-template-columns: 1fr;
    }

    .catalog-products .product-image {
        height: 180px;
        padding: 15px;
        background: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: visible;
    }

    .catalog-products .product-image img {
        position: static !important;
        transform: none !important;
        max-width: 100%;
        max-height: 150px;
        width: auto;
        height: auto;
        object-fit: contain;
        display: block;
        opacity: 1 !important;
    }

    .catalog-products .product-title {
        font-size: 0.9rem;
    }

    .catalog-products .product-specs {
        display: flex;
    }

    .catalog-products .product-footer .btn span {
        display: inline;
    }
}

/* ========================================
   Brand Logo Badge on Product Cards
   ======================================== */
.product-brand-logo {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 55px;
    height: 26px;
    background: transparent;
    border-radius: 4px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
}

.product-brand-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.product-brand-logo.text-logo {
    font-size: 0.55rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #1a1a1a;
    width: auto;
    padding: 4px 8px;
}

@media (max-width: 575.98px) {
    .product-brand-logo {
        width: 40px;
        height: 18px;
        bottom: 6px;
        right: 6px;
        padding: 2px 4px;
    }

    .product-brand-logo.text-logo {
        font-size: 0.45rem;
        padding: 2px 5px;
    }
}

/* ========================================
   Universal Product Search Section
   ======================================== */
.product-search-section {
    padding: 0;
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.product-search-box {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

/* Category Tabs */
.search-category-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 0;
}

.search-cat-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 24px;
    background: transparent;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.search-cat-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px 3px 0 0;
    transition: width 0.3s ease;
}

.search-cat-tab:hover {
    background: rgba(223, 130, 35, 0.05);
    color: var(--primary-color);
}

.search-cat-tab.active {
    color: var(--primary-color);
    background: var(--white);
}

.search-cat-tab.active::after {
    width: 60%;
}

.search-cat-tab i,
.search-cat-tab .tab-icon-svg {
    font-size: 1.2rem;
    width: 22px;
    height: 22px;
}

.tab-count {
    background: var(--primary-color);
    color: var(--dark-color);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    min-width: 28px;
    text-align: center;
}

.search-cat-tab:not(.active) .tab-count {
    background: #e9ecef;
    color: var(--gray-600);
}

/* Search Content Area */
.search-content-area {
    padding: 24px 30px 20px;
}

/* Universal Search Bar */
.universal-search-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    padding: 12px 24px;
    margin-bottom: 20px;
    transition: all 0.25s ease;
}

.universal-search-bar:focus-within {
    background: var(--white);
    border-color: #ccc;
}

.universal-search-bar i {
    color: var(--gray-500);
    font-size: 1.1rem;
}

.universal-search-bar input {
    flex: 1;
    border: none !important;
    background: transparent;
    font-size: 1rem;
    color: var(--dark-color);
    outline: none !important;
    box-shadow: none !important;
}

.universal-search-bar input:focus {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.universal-search-bar input::placeholder {
    color: var(--gray-400);
}

.clear-search-btn {
    background: #e9ecef;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--gray-600);
    transition: all 0.2s ease;
}

.clear-search-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Category Filters */
.category-filters {
    margin-bottom: 16px;
    padding-top: 16px;
}

.category-filters.hidden {
    display: none;
}

.filter-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.smart-filter {
    flex: 1;
    min-width: 130px;
}

.smart-filter label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.smart-filter select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--dark-color);
    background: #fafafa;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.smart-filter select:hover {
    border-color: #bbb;
    background: var(--white);
}

.smart-filter select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: none;
}

/* Results Summary */
.search-results-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
}

.results-count {
    font-size: 0.9rem;
    color: var(--gray-600);
}

.results-count strong {
    color: var(--dark-color);
    font-weight: 700;
}

.btn-clear-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: var(--gray-500);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-clear-filters:hover {
    background: #f8f9fa;
    color: var(--primary-color);
}

/* Responsive - Product Search Section */
@media (max-width: 992px) {
    .product-search-section {
        margin-top: -40px;
    }

    .search-cat-tab {
        padding: 14px 12px;
        font-size: 0.8rem;
        gap: 6px;
    }

    .search-cat-tab span:not(.tab-count) {
        display: none;
    }

    .search-cat-tab .tab-count {
        display: none;
    }

    .search-content-area {
        padding: 20px;
    }

    .filter-row {
        gap: 10px;
    }

    .smart-filter {
        min-width: calc(50% - 5px);
        flex: 0 0 calc(50% - 5px);
    }
}

@media (max-width: 768px) {
    .product-search-section {
        margin-top: -30px;
        padding: 0 12px;
    }

    .product-search-box {
        border-radius: 16px;
        box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
    }

    .search-category-tabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        justify-content: flex-start;
        gap: 0;
        padding: 0 4px;
    }

    .search-category-tabs::-webkit-scrollbar {
        display: none;
    }

    .search-cat-tab {
        padding: 12px 8px !important;
        white-space: nowrap !important;
        min-width: fit-content !important;
        flex: 0 0 auto !important;
        text-align: center !important;
        font-size: 0.75rem !important;
        justify-content: center !important;
        gap: 6px !important;
    }

    .search-cat-tab span:not(.tab-count) {
        display: inline !important;
    }

    .search-cat-tab i,
    .search-cat-tab .tab-icon-svg {
        font-size: 0.95rem !important;
        width: 18px !important;
        height: 18px !important;
    }

    .tab-count {
        display: none !important;
    }

    .search-content-area {
        padding: 16px;
    }

    .universal-search-bar {
        padding: 10px 18px;
        gap: 10px;
    }

    .filter-row {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }

    .smart-filter {
        min-width: calc(50% - 5px);
        flex: 0 0 calc(50% - 5px);
    }

    .smart-filter label {
        font-size: 0.65rem;
        margin-bottom: 4px;
    }

    .smart-filter select {
        padding: 8px 10px;
        font-size: 0.85rem;
        border-radius: 6px;
    }

    .search-results-summary {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
        padding-top: 12px;
    }

    .results-count {
        text-align: center;
        font-size: 0.85rem;
    }

    .btn-clear-filters {
        justify-content: center;
        padding: 10px 16px;
        background: #f5f5f5;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .product-search-section {
        margin-top: -25px;
        padding: 0 10px;
    }

    .product-search-box {
        border-radius: 12px;
    }

    .search-category-tabs {
        padding: 0 2px;
        gap: 0;
    }

    .search-cat-tab {
        padding: 10px 6px !important;
        font-size: 0.7rem !important;
        gap: 4px !important;
    }

    .search-cat-tab i,
    .search-cat-tab .tab-icon-svg {
        font-size: 0.9rem !important;
        width: 16px !important;
        height: 16px !important;
    }

    .search-cat-tab span:not(.tab-count) {
        font-size: 0.7rem !important;
    }

    .search-content-area {
        padding: 14px;
    }

    .universal-search-bar {
        padding: 10px 14px;
        border-radius: 30px;
    }

    .universal-search-bar i {
        font-size: 1rem;
    }

    .universal-search-bar input {
        font-size: 0.9rem;
    }

    .category-filters {
        padding-top: 12px;
    }

    .filter-row {
        gap: 8px;
    }

    .smart-filter {
        min-width: calc(50% - 4px);
        flex: 0 0 calc(50% - 4px);
    }

    .smart-filter select {
        padding: 8px 8px;
        font-size: 0.8rem;
        background-position: right 8px center;
    }
}

@media (max-width: 360px) {
    .product-search-section {
        margin-top: -20px;
        padding: 0 8px;
    }

    .search-cat-tab {
        padding: 8px 10px;
    }

    .search-content-area {
        padding: 12px;
    }

    .smart-filter {
        min-width: 100%;
        flex: 0 0 100%;
    }
}

/* ========================================
   Mobile View Toggle - 1 or 2 columns
   ======================================== */
.mobile-view-toggle {
    display: none;
    gap: 6px;
    margin-left: auto;
}

.mobile-view-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--gray-200);
    background: var(--white);
    border-radius: 8px;
    color: var(--gray-500);
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-view-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.mobile-view-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.mobile-view-btn svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 767.98px) {
    .mobile-view-toggle {
        display: flex;
    }

    /* Single column view */
    .catalog-products.mobile-single-col {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    .catalog-products.mobile-single-col .product-card {
        border-radius: 14px;
    }

    .catalog-products.mobile-single-col .product-image {
        height: 200px;
        padding: 20px;
    }

    .catalog-products.mobile-single-col .product-image img {
        max-height: 160px;
    }

    .catalog-products.mobile-single-col .product-info {
        padding: 16px;
    }

    .catalog-products.mobile-single-col .product-title {
        font-size: 1rem;
        -webkit-line-clamp: 3;
    }

    .catalog-products.mobile-single-col .product-specs {
        display: flex;
    }

    .catalog-products.mobile-single-col .price-current {
        font-size: 1.2rem;
    }

    .catalog-products.mobile-single-col .product-footer {
        padding: 0 16px 16px;
    }

    .catalog-products.mobile-single-col .product-footer .btn {
        padding: 12px 16px;
        font-size: 0.85rem;
    }

    .catalog-products.mobile-single-col .product-footer .btn span {
        display: inline;
        font-size: 0.85rem;
    }

    .catalog-products.mobile-single-col .product-footer .btn i {
        margin-right: 6px;
    }

    /* Two column view (default) */
    .catalog-products.mobile-two-col {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px;
    }
}

@media (max-width: 575.98px) {
    .catalog-products.mobile-single-col .product-image {
        height: 180px;
    }

    .catalog-products.mobile-single-col .product-image img {
        max-height: 150px;
    }
}
