/* ============================================================================
   PRODUCTS PAGE LAYOUT
============================================================================ */
.products-page-wrapper {
    width: 100%;
    max-width: 100%;
    padding: 0;
    box-sizing: border-box;
}

.products-page-wrapper .container,
.products-page-wrapper main .page-main.container {
    max-width: 100%;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.products-page-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    padding: 32px 24px 32px 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.products-list-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.products-list-header {
    margin-bottom: 8px;
}

.products-list-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 16px;
}

.products-list-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    flex: 1;
}

/* Mobile Filters Toggle Button */
.mobile-filters-toggle-btn {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    min-height: 44px;
}

.mobile-filters-toggle-btn:hover {
    background: var(--primary);
}

.mobile-filters-toggle-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.products-list-subtitle {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
}

.products-list-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ============================================================================
   DETAILED PRODUCT CARD
============================================================================ */
.product-card-detailed {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px 24px 16px 24px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    transition: box-shadow 0.2s;
    width: 100%;
}

.product-card-detailed:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-card-detailed-image-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
    overflow: visible;
}

.product-card-detailed-image {
    position: relative;
    width: 100%;
    height: 180px;
    background: #f3f4f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card-detailed-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

.product-number-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 32px;
    height: 32px;
    background: #6b7280;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    z-index: 2;
}

.product-card-detailed-image .product-wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s;
}

.product-card-detailed-image .product-wishlist-btn:hover {
    background: #ffffff;
}

.product-article-number-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.product-article-number {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    line-height: 1.3;
}

.product-article-number-copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    background: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s;
    flex-shrink: 0;
}

.product-article-number-copy-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: var(--primary, #1d4ed8);
}

.product-article-number-copy-btn:active {
    transform: scale(0.95);
}

.product-article-number-copy-btn svg {
    width: 16px;
    height: 16px;
}

.product-category-tag {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: lowercase;
    margin-top: 8px;
    margin-bottom: 8px;
}

.product-characteristics {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.6;
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.product-characteristics-label {
    font-weight: 600;
    color: var(--text-main);
    margin-right: 6px;
    display: inline-block;
}

.product-characteristics-values {
    color: #4b5563;
    display: inline;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.product-characteristics-values strong {
    color: var(--text-main);
    font-weight: 700;
}

.product-card-detailed-info {
    display: flex;
    flex-direction: column;
    position: relative;
    min-width: 0;
    flex: 1;
    margin-bottom: 8px;
    width: 100%;
}

.product-card-detailed-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 8px;
    min-width: 0;
}

.product-card-detailed-title-section {
    flex: 1;
    min-width: 0;
}

.product-card-detailed-name {
    font-size: 20px;
    font-weight: 400;
    color: var(--text-main);
    margin: 0;
}

.product-card-detailed-style {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    text-transform: lowercase;
}

.product-card-detailed-description {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}

/* Information Tabs */
.product-info-tabs {
    display: flex;
    gap: 0;
    padding: 4px;
    margin: 0;
    margin-top: 8px;
    width: auto;
    min-width: 550px;
    max-width: fit-content;
    background: #f3f4f6;
    border-radius: 9999px;
    position: relative;
    z-index: 1;
}

.product-info-tab {
    background: none;
    border: none;
    border-radius: 9999px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
    text-align: center;
    white-space: nowrap;
    min-width: 0;
}

.product-info-tab:hover {
    color: #374151;
}

.product-info-tab.active {
    background: #ffffff;
    color: #111827;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.product-info-tab-content {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    padding-bottom: 0;
    grid-column: 1 / -1;
    min-height: 0;
    height: 0;
    overflow: hidden;
}

.product-info-tab-content.has-active-tab {
    margin-top: 20px;
    margin-bottom: 0;
    height: auto;
    overflow: visible;
}

/* Fallback for browsers that support :has() */
.product-info-tab-content:has(.product-info-tab-panel.active) {
    margin-top: 20px;
    margin-bottom: 0;
    height: auto;
    overflow: visible;
}

.product-info-tab-panel {
    display: none;
    padding: 16px;
    padding-bottom: 16px;
    margin-bottom: 0;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    animation: fadeIn 0.2s ease-in;
}

.product-info-tab-panel.active {
    display: block;
}

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

.product-card-detailed-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.product-rating-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
}

.product-card-detailed-label {
    margin-bottom: 8px;
}

.product-label-text {
    font-size: 14px;
    color: #6b7280;
}

/* Tab panel content styling */
.product-info-tab-panel p {
    margin: 0;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
}

/* ============================================================================
   PRODUCT DETAILS TAB CONTENT
============================================================================ */

.product-details-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    align-items: start;
}

.product-details-image {
    width: 100%;
    max-width: 300px;
}

.product-details-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
    background: #f9fafb;
    padding: 20px;
}

.product-details-image-placeholder {
    width: 75%;
    aspect-ratio: 1;
    background: #f3f4f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.product-details-image-placeholder .product-brand-text {
    font-size: 24px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
}

.product-details-tables {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-details-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.product-details-table caption {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    text-align: left;
    padding: 12px 16px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    margin: 0;
}

.product-details-table thead {
    background: #f9fafb;
}

.product-details-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e5e7eb;
}

.product-details-table tbody tr {
    border-bottom: 1px solid #f3f4f6;
}

.product-details-table tbody tr:last-child {
    border-bottom: none;
}

.product-details-table td {
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.5;
}

.product-details-table tbody tr:hover {
    background: #f9fafb;
}

/* PDFs Section */
.product-pdfs-section {
    margin-top: 24px;
}

.product-pdfs-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 12px 0;
}

.product-pdfs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.product-pdf-item {
    margin: 0;
}

.product-pdf-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.product-pdf-link:hover {
    background: #f9fafb;
    border-color: var(--primary, #6366f1);
    color: var(--primary, #6366f1);
    transform: translateX(2px);
}

.product-pdf-icon {
    flex-shrink: 0;
    color: #6b7280;
}

.product-pdf-link:hover .product-pdf-icon {
    color: var(--primary, #6366f1);
}

/* Links Section */
.product-links-section {
    margin-top: 24px;
}

.product-links-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 12px 0;
}

.product-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.product-link-item {
    margin: 0;
}

.product-link-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.product-link-link:hover {
    background: #f9fafb;
    border-color: var(--primary, #6366f1);
    color: var(--primary, #6366f1);
    transform: translateX(2px);
}

.product-link-icon {
    flex-shrink: 0;
    color: #6b7280;
}

.product-link-link:hover .product-link-icon {
    color: var(--primary, #6366f1);
}

/* OEM Numbers Section */
.product-oem-numbers-section {
    width: 100%;
}

.product-oem-manufacturer-selector {
    margin-bottom: 20px;
}

.product-oem-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.product-oem-select {
    width: 100%;
    max-width: 300px;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #ffffff;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
}

.product-oem-select:hover {
    border-color: var(--primary, #6366f1);
}

.product-oem-select:focus {
    outline: none;
    border-color: var(--primary, #6366f1);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.product-oem-numbers-list-container {
    margin-top: 16px;
}

.product-oem-numbers-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.product-oem-number-item {
    margin: 0;
}

.product-oem-number-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.product-oem-number-link:hover {
    background: #f9fafb;
    border-color: var(--primary, #6366f1);
    color: var(--primary, #6366f1);
    transform: translateX(2px);
}

/* Linked Vehicles Section */
.product-linked-vehicles-section {
    width: 100%;
}

.product-linked-vehicles-manufacturer-selector {
    margin-bottom: 20px;
}

.product-linked-vehicles-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.product-linked-vehicles-select {
    width: 100%;
    max-width: 300px;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #ffffff;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
}

.product-linked-vehicles-select:hover {
    border-color: var(--primary, #6366f1);
}

.product-linked-vehicles-select:focus {
    outline: none;
    border-color: var(--primary, #6366f1);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.product-linked-vehicles-table-container {
    margin-top: 16px;
    width: 100%;
    overflow-x: auto;
}

.product-linked-vehicles-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #ffffff;
}

.product-linked-vehicles-table thead {
    background-color: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
}

.product-linked-vehicles-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.product-linked-vehicles-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.2s;
}

.product-linked-vehicles-table tbody tr.product-linked-vehicle-row {
    cursor: pointer;
}

.product-linked-vehicles-table tbody tr:hover {
    background-color: #f9fafb;
}

.product-linked-vehicles-table tbody tr.product-linked-vehicle-row:hover {
    background-color: #e0f2fe;
}

.product-linked-vehicles-table tbody tr:nth-child(even) {
    background-color: #ffffff;
}

.product-linked-vehicles-table tbody tr:nth-child(even):hover {
    background-color: #f9fafb;
}

.product-linked-vehicles-table td {
    padding: 12px 16px;
    vertical-align: middle;
    color: #4b5563;
    font-size: 14px;
}

.product-linked-vehicle-row td:first-child {
    font-weight: 500;
    color: #111827;
}

/* Product Actions (Price, Quantity, Add to Cart) */
.product-card-detailed-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: 0;
    flex: 0 1 auto;
}

.product-card-detailed-actions-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    max-width: 100%;
}

.product-card-detailed-actions .product-pricing {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
    height: 40px;
    gap: 8px;
}

.product-card-detailed-actions .product-price {
    margin: 0;
    line-height: 1;
    font-size: 24px;
    font-weight: 700;
    white-space: nowrap;
    display: inline-block;
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: stretch;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    overflow: hidden;
    height: 40px;
    flex-shrink: 0;
    width: 120px;
}

.quantity-btn {
    width: 36px;
    height: 100%;
    background: white;
    border: none;
    color: #374151;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
    padding: 0;
    line-height: 1;
}

.quantity-btn:hover {
    background: #f9fafb;
}

.quantity-btn:active {
    background: #f3f4f6;
}

.quantity-input {
    width: 50px;
    height: 100%;
    border: none;
    border-left: 1px solid #d1d5db;
    border-right: 1px solid #d1d5db;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-main);
    background: white;
    -moz-appearance: textfield;
    flex-shrink: 0;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

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

.quantity-input:focus {
    outline: none;
    border-color: var(--primary);
}

.product-card-detailed-actions .product-add-to-cart-btn {
    margin-top: 0;
    white-space: nowrap;
    min-width: 140px;
    max-width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    box-sizing: border-box;
    flex: 0 1 auto;
    visibility: visible;
    opacity: 1;
}

.product-card-detailed-stock {
    margin-top: 4px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
}

.product-card-detailed-stock .stock-status {
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.product-card-detailed-stock .stock-in {
    color: #10b981;
}

.product-card-detailed-stock .stock-out {
    color: #ef4444;
}

/* ============================================================================
   PRODUCTS FILTERS SIDEBAR
============================================================================ */
.products-filters-sidebar {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 24px;
}

.filters-header {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 24px 0;
}

.filter-section {
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 16px;
}

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

.filter-section-header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.filter-section-header {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    text-align: left;
}

.filter-reset-btn {
    background: none;
    border: none;
    padding: 12px 0 12px 12px;
    font-size: 14px;
    font-weight: 400;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.2s;
    flex-shrink: 0;
}

.filter-reset-btn:hover {
    color: #374151;
}

.filter-section-header:hover {
    color: var(--primary);
}

.filter-arrow {
    transition: transform 0.2s;
}

.filter-section-header.active .filter-arrow {
    transform: rotate(180deg);
}

.filter-section-content {
    padding-bottom: 16px;
}

.filter-search {
    margin-bottom: 12px;
    width: 100%;
    box-sizing: border-box;
}

.filter-search-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    color: var(--text-main);
    background: white;
    box-sizing: border-box;
}

.filter-search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

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

.filter-checkbox-item-hidden {
    display: none !important;
}

.filter-checkbox-item-hidden.show {
    display: flex !important;
}

.filter-show-more-btn {
    width: 100%;
    margin-top: 8px;
    padding: 8px 12px;
    background: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.filter-show-more-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.filter-show-more-btn:active {
    background: #e5e7eb;
}

.filter-checkbox-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-main);
    padding: 4px 0;
}

.filter-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    background: #f3f4f6;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 400;
    color: #6b7280;
    min-width: fit-content;
    flex-shrink: 0;
}

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

.filter-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

/* ============================================================================
   RESPONSIVE: PRODUCTS PAGE
============================================================================ */

/* Desktop Small (1025px - 1200px) */
@media (max-width: 1200px) {
    .products-page-container {
        padding: 28px 20px 28px 0;
        gap: 28px;
    }
    
    .product-card-detailed {
        padding: 20px;
        gap: 32px;
    }
}

/* Tablet (769px - 1024px) */
@media (max-width: 1024px) {
    .products-page-container {
        grid-template-columns: 240px 1fr;
        gap: 24px;
        padding: 24px 20px 24px 0;
    }
    
    .product-card-detailed {
        grid-template-columns: 200px 1fr;
        gap: 24px;
        padding: 20px;
    }
    
    .product-card-detailed-image {
        height: 160px;
    }
    
    .product-card-detailed-header {
        flex-direction: column;
        gap: 16px;
    }
    
    .product-card-detailed-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .products-list-title {
        font-size: 28px;
    }
}

/* Mobile Large / Small Tablet (641px - 768px) */
@media (max-width: 768px) {
    .products-page-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 16px 20px 0;
    }
    
    .mobile-filters-toggle-btn {
        display: flex;
    }
    
    .products-filters-sidebar {
        position: static;
        order: 2;
        padding: 20px;
        border-radius: 8px;
        display: none;
        margin-top: 16px;
    }
    
    .products-filters-sidebar.mobile-visible {
        display: block;
    }
    
    .filters-header {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .filter-section {
        margin-bottom: 12px;
    }
    
    .filter-section-header {
        font-size: 15px;
        padding: 10px 0;
    }
    
    .filter-section-content {
        padding-bottom: 12px;
    }
    
    .products-list-section {
        order: 1;
    }
    
    .product-card-detailed {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .product-card-detailed-image-section {
        order: 1;
    }
    
    .product-card-detailed-image {
        height: 200px;
    }
    
    .product-card-detailed-info {
        order: 2;
    }
    
    .product-info-tab-content {
        order: 3;
        margin-top: 16px;
    }
    
    .product-details-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-details-image {
        max-width: 100%;
        justify-self: center;
    }
    
    .product-details-image img {
        max-width: 100%;
    }
    
    .product-details-tables {
        gap: 16px;
    }
    
    .product-details-table {
        font-size: 13px;
    }
    
    .product-details-table caption {
        font-size: 15px;
        padding: 10px 12px;
    }
    
    .product-details-table th,
    .product-details-table td {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .product-card-detailed-header {
        flex-direction: column;
        gap: 16px;
    }
    
    .product-card-detailed-actions {
        width: 100%;
        align-items: stretch;
    }
    
    .product-card-detailed-actions-group {
        width: 100%;
        flex-direction: column;
        gap: 12px;
        display: flex !important;
        flex-wrap: nowrap;
    }
    
    .product-card-detailed-actions .product-pricing {
        width: 100%;
        justify-content: flex-start;
        min-width: auto;
    }
    
    .product-card-detailed-actions .quantity-selector {
        width: 100%;
        justify-content: center;
        flex: 0 0 auto;
    }
    
    .product-card-detailed-actions .product-add-to-cart-btn {
        width: 100%;
        min-width: 100%;
        flex: 1 1 100%;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        order: 3;
        margin-top: 0;
    }
    
    .product-card-detailed-stock {
        order: 4;
        margin-top: 8px;
        justify-content: flex-start;
    }
    
    .products-list-title {
        font-size: 26px;
    }
    
    .products-list-header-top {
        flex-wrap: wrap;
    }
}

/* Mobile Standard (481px - 640px) */
@media (max-width: 640px) {
    .products-page-container {
        padding: 16px 12px 16px 0;
        gap: 16px;
    }
    
    .mobile-filters-toggle-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .products-filters-sidebar {
        padding: 16px;
        border-radius: 8px;
        display: none;
    }
    
    .products-filters-sidebar.mobile-visible {
        display: block;
    }
    
    .filters-header {
        font-size: 16px;
        margin-bottom: 16px;
    }
    
    .filter-section-header {
        font-size: 14px;
        padding: 8px 0;
    }
    
    .filter-checkbox-item {
        padding: 10px 0;
    }
    
    .product-card-detailed {
        padding: 16px;
        gap: 16px;
    }
    
    .product-card-detailed-image {
        height: 180px;
    }
    
    .product-card-detailed-name {
        font-size: 20px;
    }
    
    .products-list-title {
        font-size: 24px;
    }
    
    .products-list-subtitle {
        font-size: 14px;
    }
    
    .product-card-detailed-actions-group {
        flex-direction: column;
        width: 100%;
        display: flex !important;
    }
    
    .product-card-detailed-actions .product-pricing {
        width: 100%;
        justify-content: flex-start;
    }
    
    .product-card-detailed-actions .quantity-selector {
        width: 100%;
        justify-content: center;
    }
    
    .product-card-detailed-actions .product-add-to-cart-btn {
        width: 100%;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .product-details-content {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .product-details-image {
        max-width: 100%;
    }
    
    .product-details-tables {
        gap: 12px;
    }
    
    .product-details-table {
        font-size: 12px;
    }
    
    .product-details-table caption {
        font-size: 14px;
        padding: 8px 10px;
    }
    
    .product-details-table th,
    .product-details-table td {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .product-details-table th {
        font-size: 11px;
    }
}

/* Mobile Small (up to 480px) */
@media (max-width: 480px) {
    .products-page-container {
        padding: 12px 8px 12px 0;
        gap: 12px;
    }
    
    .mobile-filters-toggle-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .mobile-filters-toggle-btn span {
        display: none;
    }
    
    .products-filters-sidebar {
        padding: 12px;
        border-radius: 6px;
        display: none;
    }
    
    .products-filters-sidebar.mobile-visible {
        display: block;
    }
    
    .products-list-title {
        font-size: 20px;
    }
    
    .filters-header {
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    .filter-section {
        margin-bottom: 10px;
    }
    
    .filter-section-header {
        font-size: 13px;
        padding: 8px 0;
    }
    
    .filter-section-content {
        padding-bottom: 10px;
    }
    
    .filter-checkbox-item {
        padding: 8px 0;
        font-size: 13px;
    }
    
    .filter-checkbox {
        width: 16px;
        height: 16px;
    }
    
    .filter-search-input {
        font-size: 13px;
        padding: 8px 12px;
    }
    
    .product-card-detailed {
        padding: 12px;
        gap: 12px;
        border-radius: 8px;
    }
    
    .product-card-detailed-image {
        height: 160px;
        border-radius: 6px;
    }
    
    .product-card-detailed-name {
        font-size: 18px;
    }
    
    .product-card-detailed-description {
        font-size: 14px;
    }
    
    .products-list-title {
        font-size: 22px;
        margin-bottom: 4px;
    }
    
    .products-list-subtitle {
        font-size: 13px;
    }
    
    .product-info-tabs {
        padding: 2px;
        min-width: auto;
        width: 100%;
    }
    
    .product-info-tab {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .product-info-tab-content {
        margin-top: 8px;
    }
    
    .product-info-tab-panel {
        padding: 10px;
    }
    
    .product-details-content {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .product-details-image {
        max-width: 100%;
    }
    
    .product-details-image img {
        padding: 15px;
    }
    
    .product-details-tables {
        gap: 10px;
    }
    
    .product-details-table {
        font-size: 11px;
        border-radius: 6px;
    }
    
    .product-details-table caption {
        font-size: 13px;
        padding: 8px 10px;
    }
    
    .product-details-table th,
    .product-details-table td {
        padding: 8px 10px;
        font-size: 11px;
    }
    
    .product-details-table th {
        font-size: 10px;
    }
    
    /* PDFs responsive styles for very small screens */
    .product-pdfs-list {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    /* Links responsive styles for very small screens */
    .product-links-list {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    /* OEM Numbers responsive styles for very small screens */
    .product-oem-numbers-list {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    /* Make tables scrollable on very small screens if needed */
    .product-details-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .product-details-table thead,
    .product-details-table tbody,
    .product-details-table tr {
        display: table;
        width: 100%;
        table-layout: fixed;
    }
    
    .product-card-detailed-actions-group {
        gap: 8px;
    }
    
    .product-add-to-cart-btn {
        font-size: 14px;
        padding: 10px 16px;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100%;
    }
    
    .quantity-selector {
        width: 100%;
    }
    
    .quantity-input {
        flex: 1;
    }
    
    .product-card-detailed-actions-group {
        display: flex !important;
        flex-direction: column;
    }
    
    /* Characteristics responsive styles */
    .product-characteristics {
        font-size: 13px;
        margin-top: 10px;
    }
    
    /* PDFs responsive styles */
    .product-pdfs-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .product-pdf-link {
        font-size: 12px;
        padding: 8px 10px;
    }
    
    /* Links responsive styles */
    .product-links-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .product-link-link {
        font-size: 12px;
        padding: 8px 10px;
    }
    
    /* OEM Numbers responsive styles */
    .product-oem-numbers-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .product-oem-number-link {
        font-size: 12px;
        padding: 8px 10px;
    }
    
    .product-oem-select {
        max-width: 100%;
    }
    
    /* Linked Vehicles responsive styles */
    .product-linked-vehicles-table-container {
        overflow-x: scroll;
    }
    
    .product-linked-vehicles-table {
        min-width: 800px;
    }
    
    .product-linked-vehicles-table th,
    .product-linked-vehicles-table td {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .product-linked-vehicles-select {
        max-width: 100%;
    }
}

/* ============================================================================
   PARTS LIST SECTION
   ============================================================================ */

.product-parts-list-section {
    width: 100%;
    overflow-x: auto;
}

.product-parts-list-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.product-parts-list-table thead {
    background-color: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
}

.product-parts-list-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-parts-list-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.2s;
}

.product-parts-list-table tbody tr:hover {
    background-color: #f9fafb;
}

.product-parts-list-table tbody tr:nth-child(even) {
    background-color: #ffffff;
}

.product-parts-list-table tbody tr:nth-child(even):hover {
    background-color: #f9fafb;
}

.product-parts-list-table td {
    padding: 16px;
    vertical-align: middle;
}

.product-parts-list-article-number {
    font-weight: 500;
    color: #111827;
    font-family: 'Courier New', monospace;
}

.product-parts-list-image {
    width: 80px;
    padding: 8px;
}

.product-parts-list-img {
    width: 100%;
    max-width: 80px;
    height: auto;
    border-radius: 4px;
    object-fit: contain;
    background-color: #f9fafb;
    padding: 4px;
}

.product-parts-list-description {
    color: #4b5563;
    line-height: 1.5;
}

.product-parts-list-units {
    text-align: center;
    font-weight: 500;
    color: #374151;
}

.product-parts-list-price-status {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.product-parts-list-price {
    font-weight: 600;
    color: #111827;
    font-size: 15px;
    min-width: 80px;
}

.product-parts-list-status {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    flex-shrink: 0;
}

.product-parts-list-status-in-stock {
    background-color: #d1fae5;
    color: #065f46;
}

.product-parts-list-status-out-of-stock {
    background-color: #fee2e2;
    color: #991b1b;
}

.product-parts-list-status svg {
    width: 18px;
    height: 18px;
}

.product-parts-list-quantity {
    display: flex;
    align-items: center;
}

.product-parts-list-quantity-input {
    width: 60px;
    padding: 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    -moz-appearance: textfield;
}

.product-parts-list-quantity-input::-webkit-outer-spin-button,
.product-parts-list-quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.product-parts-list-add-to-cart-btn {
    width: 40px;
    height: 40px;
    background-color: #f97316;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    flex-shrink: 0;
    padding: 0;
}

.product-parts-list-add-to-cart-btn:hover:not(.disabled) {
    background-color: #ea580c;
}

.product-parts-list-add-to-cart-btn:active:not(.disabled) {
    background-color: #c2410c;
}

.product-parts-list-add-to-cart-btn.disabled {
    background-color: #d1d5db;
    cursor: not-allowed;
    opacity: 0.6;
}

.product-parts-list-add-to-cart-btn svg {
    width: 18px;
    height: 18px;
}

/* Parts List Responsive */
@media (max-width: 768px) {
    .product-parts-list-section {
        overflow-x: scroll;
    }
    
    .product-parts-list-table {
        min-width: 600px;
    }
    
    .product-parts-list-table th,
    .product-parts-list-table td {
        padding: 12px 8px;
        font-size: 13px;
    }
    
    .product-parts-list-price-status {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .product-parts-list-quantity-input {
        width: 50px;
    }
}
