/* Products Page Styles */

:root {
    --primary-blue-50: rgba(0, 107, 179, 0.05);
    --primary-blue-600: #005a96;
    --green-500: #10b981;
    --red-500: #ef4444;
}

/* Products Header */
.products-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--medical-teal) 100%);
    color: white;
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
}

.products-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,120L48,110C96,100,192,80,288,70C384,60,480,60,576,65C672,70,768,80,864,85C960,90,1056,90,1152,85L1200,80L1200,0L1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z" fill="rgba(255,255,255,0.1)"/></svg>') repeat-x;
    background-size: 1200px 120px;
    opacity: 0.1;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.breadcrumb a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 0.8;
}

.breadcrumb i {
    font-size: 0.8rem;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    line-height: 1.6;
}

/* Products Content Layout */
.products-content {
    padding: 60px 0;
    min-height: 60vh;
}

.products-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
}

/* Sidebar Styles */
.products-sidebar {
    position: sticky;
    top: 100px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.sidebar-header {
    padding: 24px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.sidebar-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

/* Category Switcher */
.category-switcher {
    padding: 20px;
    border-bottom: 1px solid var(--gray-200);
}

.category-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    background: white;
    color: var(--gray-700);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 8px;
    position: relative;
}

.category-btn:last-child {
    margin-bottom: 0;
}

.category-btn i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.category-btn span {
    flex: 1;
    text-align: left;
}

.category-count {
    background: var(--gray-300);
    color: var(--gray-700);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    min-width: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.category-btn:hover {
    border-color: var(--primary-blue);
    background: var(--primary-blue-50);
    color: var(--primary-blue);
}

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

.category-btn.active .category-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Categories List */
.categories-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 0 20px 20px;
}

.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 4px;
}

.category-item:hover {
    background: var(--gray-50);
}

.category-item.active {
    background: var(--primary-blue-50);
    color: var(--primary-blue);
    font-weight: 500;
}

.category-name {
    font-size: 0.9rem;
    flex: 1;
}

.category-product-count {
    font-size: 0.8rem;
    color: var(--gray-500);
    background: var(--gray-100);
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.category-item.active .category-product-count {
    background: var(--primary-blue);
    color: white;
}

.category-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* Filters Section */
.filters-section {
    padding: 20px;
    border-top: 1px solid var(--gray-200);
}

.filters-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 16px 0;
}

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

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.search-input {
    position: relative;
}

.search-input input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-input input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 107, 179, 0.1);
}

.search-input i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 0.9rem;
}

.filter-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 107, 179, 0.1);
}

/* Main Content Area */
.products-main {
    min-height: 600px;
}

/* Products Bar */
.products-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 1px solid var(--gray-200);
}

.products-info h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 4px 0;
}

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

.view-options {
    display: flex;
    gap: 8px;
}

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

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

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

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

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

/* Product Card */
.product-card {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--gray-200);
    overflow: visible;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 480px;
}

.product-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 8px 32px rgba(0, 107, 179, 0.12);
    transform: translateY(-2px);
}

.product-image {
    width: 100%;
    height: 220px;
    background: #ffffff;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
    border: 2px solid white;
    border-radius: 8px;
    background: white;
}

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

.product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    color: var(--gray-400);
    font-size: 2rem;
}

.product-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.product-title-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.product-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
    line-height: 1.5;
}

.product-category {
    font-size: 0.75rem;
    color: var(--primary-blue);
    background: var(--primary-blue-50);
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
    white-space: nowrap;
    align-self: flex-start;
}

.product-model {
    font-size: 0.95rem;
    color: var(--gray-600);
    font-weight: 500;
    margin: 0 0 4px 0;
}

.product-description {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin: 16px 0 20px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.product-feature {
    font-size: 0.8rem;
    color: var(--gray-600);
    background: var(--gray-100);
    padding: 6px 10px;
    border-radius: 6px;
}

.product-actions {
    display: flex;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
    margin-top: auto;
}

.product-btn {
    flex: 1;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.product-btn.primary {
    background: var(--primary-blue);
    color: white;
}

.product-btn.primary:hover {
    background: var(--primary-blue-600);
}

.product-btn.secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.product-btn.secondary:hover {
    background: var(--gray-200);
}

/* List View Styles */
.products-grid.list-view .product-card {
    display: flex;
    align-items: stretch;
}

.products-grid.list-view .product-image {
    width: 200px;
    height: 140px;
    flex-shrink: 0;
}

.products-grid.list-view .product-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.products-grid.list-view .product-description {
    -webkit-line-clamp: 2;
}

/* Loading States */
.products-loading, .category-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--gray-500);
}

.loading-spinner {
    font-size: 2rem;
    margin-bottom: 16px;
    color: var(--primary-blue);
}

.products-loading p {
    font-size: 1.1rem;
    margin: 0;
}

/* No Products State */
.no-products {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.no-products-icon {
    font-size: 4rem;
    color: var(--gray-300);
    margin-bottom: 20px;
}

.no-products h3 {
    font-size: 1.5rem;
    color: var(--gray-700);
    margin: 0 0 8px 0;
}

.no-products p {
    font-size: 1rem;
    color: var(--gray-500);
    max-width: 400px;
    margin: 0;
}

/* Product Modal */
.product-modal, .inquiry-modal, .share-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-modal.active, .inquiry-modal.active, .share-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
    flex: 1;
}

.modal-breadcrumb {
    flex: 1;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    color: var(--gray-500);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 16px;
}

.modal-close:hover {
    background: var(--gray-200);
    color: var(--gray-700);
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

/* Product Detail Styles */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 500px;
}

.product-detail-image {
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border: 3px solid white;
    border-radius: 12px;
    background: white;
}

.product-detail-info {
    padding: 32px;
    display: flex;
    flex-direction: column;
}

.product-detail-header {
    margin-bottom: 24px;
}

.product-detail-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.product-detail-category {
    font-size: 0.9rem;
    color: var(--primary-blue);
    background: var(--primary-blue-50);
    padding: 6px 12px;
    border-radius: 16px;
    font-weight: 500;
    display: inline-block;
}

.product-detail-description {
    font-size: 1rem;
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 24px;
}

.product-detail-features {
    margin-bottom: 24px;
}

.product-detail-features h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 12px 0;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.feature-item i {
    color: var(--green-500);
    font-size: 0.8rem;
}

.product-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}

.detail-btn {
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex: 1;
    justify-content: center;
    min-width: 140px;
}

.detail-btn.primary {
    background: var(--primary-blue);
    color: white;
}

.detail-btn.primary:hover {
    background: var(--primary-blue-600);
    transform: translateY(-1px);
}

.detail-btn.secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.detail-btn.secondary:hover {
    background: var(--gray-200);
}

/* YouTube Section */
.product-youtube {
    grid-column: 1 / -1;
    background: var(--gray-50);
    padding: 32px;
    border-top: 1px solid var(--gray-200);
}

.youtube-header {
    text-align: center;
    margin-bottom: 24px;
}

.youtube-header h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 8px 0;
}

.youtube-header p {
    font-size: 0.95rem;
    color: var(--gray-600);
    margin: 0;
}

.youtube-embed {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
}

.youtube-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.youtube-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gray-200) 0%, var(--gray-300) 100%);
    color: var(--gray-500);
}

.youtube-placeholder i {
    font-size: 3rem;
    margin-bottom: 12px;
}

/* Form Styles */
.inquiry-form, .share-options {
    padding: 24px;
}

.inquiry-product-info, .share-product-info {
    padding: 20px 24px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 16px;
}

.inquiry-product-image, .share-product-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.inquiry-product-image img, .share-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border: 2px solid white;
    border-radius: 6px;
}

.inquiry-product-details h4, .share-product-details h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 4px 0;
}

.inquiry-product-details p, .share-product-details p {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 107, 179, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

/* Share Styles */
.share-link {
    margin-bottom: 24px;
}

.share-link label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.link-input {
    display: flex;
    gap: 8px;
}

.link-input input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 0.9rem;
    background: var(--gray-50);
}

.copy-btn {
    padding: 12px 20px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.copy-btn:hover {
    background: var(--primary-blue-600);
}

.copy-btn.copied {
    background: var(--green-500);
}

.share-social label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 12px;
}

.social-share-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.social-share-btn {
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.social-share-btn.facebook {
    background: #1877f2;
    color: white;
}

.social-share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.social-share-btn.linkedin {
    background: #0077b5;
    color: white;
}

.social-share-btn.email {
    background: var(--gray-600);
    color: white;
}

.social-share-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    border-left: 4px solid var(--green-500);
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.toast.show {
    transform: translateX(0);
}

.toast.error {
    border-left-color: var(--red-500);
}

.toast-icon {
    font-size: 1.1rem;
    color: var(--green-500);
}

.toast.error .toast-icon {
    color: var(--red-500);
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 2px 0;
}

.toast-message {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .products-layout {
        grid-template-columns: 280px 1fr;
        gap: 30px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .products-header {
        padding: 80px 0 40px;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
    }
    
    .products-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .products-sidebar {
        position: static;
        order: 1;
    }
    
    .products-main {
        order: 2;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .products-grid.list-view .product-card {
        flex-direction: column;
    }
    
    .products-grid.list-view .product-image {
        width: 100%;
        height: 200px;
    }
    
    .product-detail {
        grid-template-columns: 1fr;
    }
    
    .product-detail-info {
        padding: 24px;
    }
    
    .modal-content {
        margin: 10px;
        max-height: calc(100vh - 20px);
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .social-share-buttons {
        grid-template-columns: 1fr;
    }
    
    .toast-container {
        left: 20px;
        right: 20px;
    }
    
    .toast {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .products-content {
        padding: 40px 0;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .products-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .category-switcher {
        padding: 16px;
    }
    
    .product-detail-info {
        padding: 20px;
    }
    
    .detail-btn {
        min-width: auto;
        flex: none;
        width: 100%;
    }
    
    .product-youtube {
        padding: 20px;
    }
}

/* Repair Services Banner */
.repair-services-banner {
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.repair-division-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--primary-blue);
}

.repair-banner-content {
    text-align: center;
    margin-bottom: 40px;
}

.repair-banner-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 16px;
}

.repair-banner-content p {
    font-size: 1.125rem;
    color: var(--gray-700);
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
}

.repair-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.repair-service-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.repair-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.repair-service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--gray-100);
}

.repair-service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.repair-service-title {
    padding: 16px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    text-align: center;
    margin: 0;
}

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

@media (max-width: 768px) {
    .repair-services-banner {
        padding: 24px;
        margin-bottom: 24px;
    }
    
    .repair-banner-content h2 {
        font-size: 1.5rem;
    }
    
    .repair-banner-content p {
        font-size: 1rem;
    }
    
    .repair-services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .repair-service-image {
        height: 180px;
    }
}

/* Probe Services Section */
.probe-services-section {
    background: white;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.probe-services-header {
    text-align: center;
    margin-bottom: 40px;
}

.probe-services-header p {
    font-size: 1.125rem;
    color: var(--gray-700);
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
}

.probe-service-block {
    margin-bottom: 48px;
}

.probe-service-block:last-child {
    margin-bottom: 0;
}

.probe-service-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 12px;
}

.probe-service-description {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 24px;
}

.probe-images-grid {
    display: grid;
    gap: 20px;
}

.probe-images-grid.compatible-probes {
    grid-template-columns: repeat(4, 1fr);
}

.probe-images-grid.probe-repairs {
    grid-template-columns: repeat(4, 1fr);
}

.probe-image-item {
    background: var(--gray-50);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.probe-image-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.probe-image-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.probe-image-label {
    padding: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-800);
    text-align: center;
    margin: 0;
    background: white;
}

@media (max-width: 1024px) {
    .probe-images-grid.compatible-probes,
    .probe-images-grid.probe-repairs {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .probe-services-section {
        padding: 24px;
        margin-bottom: 24px;
    }
    
    .probe-services-header p {
        font-size: 1rem;
    }
    
    .probe-service-title {
        font-size: 1.25rem;
    }
    
    .probe-service-block {
        margin-bottom: 32px;
    }
    
    .probe-images-grid.compatible-probes,
    .probe-images-grid.probe-repairs {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .probe-image-item img {
        height: 180px;
    }
    
    .repair-division-title {
        font-size: 1.75rem;
    }
}

/* Products Page Footer Styles */
.products-page ~ .footer .footer-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.products-page ~ .footer .footer-logo {
    margin-bottom: 16px;
}

.products-page ~ .footer .footer-text {
    max-width: 500px;
    text-align: center;
}
