/**
 * TechShop - Storefront Pages Stylesheet
 * Dành riêng cho 3 trang: Home, Products Catalog, Product Detail
 * Thiết kế chuẩn UI/UX, tương thích Bootstrap 5, loại bỏ hoàn toàn inline CSS
 */

/* ==========================================================================
   1. RESET & BOOTSTRAP OVERRIDES (Chống biến chữ thành màu xanh gạch chân)
   ========================================================================== */
a.product-card,
a.category-card,
a.side-banner,
.ts-breadcrumb a,
.pagination-btn {
    text-decoration: none !important;
    color: inherit;
}

a.product-card:hover,
a.category-card:hover,
a.side-banner:hover {
    text-decoration: none !important;
    color: inherit;
}

/* Breadcrumb tùy chỉnh chống đè Bootstrap 5 */
.ts-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #64748b;
    margin-bottom: 24px;
    flex-wrap: wrap;
    background: transparent !important;
    padding: 0 !important;
}

.ts-breadcrumb a {
    color: #0f172a;
    font-weight: 500;
    transition: color 0.2s;
}

.ts-breadcrumb a:hover {
    color: #2563eb;
}

.ts-breadcrumb strong {
    color: #1e293b;
    font-weight: 600;
}

.ts-breadcrumb span {
    color: #cbd5e1;
}

/* ==========================================================================
   2. HERO SLIDER & SIDE BANNERS (Trang chủ)
   ========================================================================== */
.hero-banners {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin: 15px 0 35px 0;
}

@media (max-width: 992px) {
    .hero-banners {
        grid-template-columns: 1fr;
    }
}

.hero-slider {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    height: 380px;
    background: #0f172a;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.hero-slider .slides {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.hero-slider .slide {
    min-width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-slider .slide img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

/* Lớp phủ gradient tạo độ tương phản cao cho chữ */
.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.90) 0%, rgba(15, 23, 42, 0.50) 55%, rgba(15, 23, 42, 0.05) 100%);
    z-index: 1;
}

.hero-slider .slide-content {
    position: absolute;
    left: 45px;
    bottom: 45px;
    max-width: 500px;
    color: #ffffff;
    z-index: 2;
}

.slide-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.hero-slider .slide-content h2 {
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.25;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-slider .slide-content p {
    font-size: 15px;
    color: #e2e8f0;
    margin-bottom: 20px;
    line-height: 1.5;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

.hero-slider .slide-content .btn {
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

/* Nút mũi tên slider */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    border: none;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.25s;
    z-index: 5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.slider-arrow:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.08);
}

.slider-arrow.prev { left: 16px; }
.slider-arrow.next { right: 16px; }

/* Dot indicators */
.slider-dots {
    position: absolute;
    bottom: 20px;
    right: 30px;
    display: flex;
    gap: 8px;
    z-index: 5;
}

.slider-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.45);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dots .dot.active {
    width: 28px;
    background: #3b82f6;
}

/* Side Banners */
.hero-side-banners {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 380px;
}

.side-banner {
    flex: 1;
    border-radius: 18px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #ffffff !important;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
}

.side-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.side-banner-1 {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

.side-banner-2 {
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
}

.side-banner-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.22);
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.side-banner h4 {
    font-size: 19px;
    font-weight: 700;
    margin: 8px 0 4px 0;
    color: #ffffff;
}

.side-banner-desc {
    font-size: 13px;
    color: #cbd5e1;
    margin-bottom: 12px;
}

.side-banner-link {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: underline;
}

.side-banner-icon {
    font-size: 56px;
    opacity: 0.25;
    margin-left: 12px;
}

/* ==========================================================================
   3. DANH MỤC SẢN PHẨM (Category Grid)
   ========================================================================== */
.categories-section {
    margin-bottom: 40px;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 35px 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.section-title h2 {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.section-title a {
    font-size: 14px;
    color: #2563eb;
    font-weight: 600;
    text-decoration: none !important;
    transition: color 0.2s;
}

.section-title a:hover {
    color: #1d4ed8;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 16px;
}

.category-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 22px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #1e293b !important;
    transition: all 0.25s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.category-card:hover {
    border-color: #3b82f6;
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(59, 130, 246, 0.12);
}

.category-card .category-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #2563eb;
    margin-bottom: 12px;
    transition: all 0.25s;
}

.category-card:hover .category-icon {
    background: #2563eb;
    color: #ffffff;
    transform: scale(1.05);
}

.category-card .category-name {
    font-weight: 600;
    font-size: 15px;
    color: #1e293b;
}

/* ==========================================================================
   4. THẺ SẢN PHẨM CHUẨN (Product Card trên cả 3 trang)
   ========================================================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 22px;
}

.product-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.25s ease-in-out;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: #cbd5e1;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

/* Badges */
.discount-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #e11d48;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(225, 29, 72, 0.3);
}

.stock-badge.out-of-stock {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #64748b;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    z-index: 2;
}

/* Khung ảnh sản phẩm cao cố định 210px */
.product-img {
    height: 210px;
    background: #ffffff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    margin-bottom: 14px;
    overflow: hidden;
}

.product-img img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

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

/* Thông tin sản phẩm */
.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-brand {
    font-size: 12px;
    color: #2563eb;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.product-name {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.4;
    min-height: 42px;
    max-height: 42px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.product-card:hover .product-name {
    color: #2563eb;
}

/* Khối giá đẩy xuống đáy card */
.product-price {
    margin-top: auto;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 6px;
}

.price-sale {
    font-size: 18px;
    font-weight: 800;
    color: #e11d48;
}

.price-original {
    font-size: 13px;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 500;
}

/* Skeletons */
.skeleton-card {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    pointer-events: none;
}

.skeleton-icon {
    width: 100%;
    height: 180px;
    border-radius: 10px;
    background: #e2e8f0;
    animation: pulse 1.5s infinite;
}

.skeleton-text {
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* ==========================================================================
   5. FEATURES BAR (Trang chủ)
   ========================================================================== */
.features-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 50px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 26px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 3px 0;
}

.feature-text p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

/* ==========================================================================
   6. TRANG DANH SÁCH SẢN PHẨM (Catalog Page)
   ========================================================================== */
.products-page {
    padding: 15px 0 50px 0;
}

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

@media (max-width: 992px) {
    .catalog-layout {
        grid-template-columns: 1fr;
    }
    .catalog-sidebar {
        display: none;
        margin-bottom: 24px;
    }
    .catalog-sidebar.show-mobile {
        display: block;
    }
}

.catalog-sidebar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 20px;
}

.filter-header h3 {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.btn-clear-filter {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: opacity 0.2s;
    padding: 0;
}

.btn-clear-filter:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.filter-group {
    margin-bottom: 22px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

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

.filter-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}

.filter-search-box {
    display: flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    overflow: hidden;
    background: #f8fafc;
}

.filter-search-box input {
    flex: 1;
    border: none;
    padding: 10px 14px;
    font-size: 13px;
    background: transparent;
    outline: none;
}

.filter-search-box button {
    border: none;
    background: #2563eb;
    color: #ffffff;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.filter-search-box button:hover {
    background: #1d4ed8;
}

.filter-radio-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 220px;
    overflow-y: auto;
}

.filter-radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #334155;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background 0.15s;
    margin: 0;
}

.filter-radio-item:hover {
    background: #f1f5f9;
}

.filter-radio-item input {
    cursor: pointer;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.filter-chip {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-chip:hover {
    border-color: #94a3b8;
}

.filter-chip.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

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

.price-inputs input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    outline: none;
}

.price-separator {
    color: #94a3b8;
    font-weight: 700;
}

.quick-price-pills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 10px;
}

.price-pill {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 7px 6px;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.price-pill:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.price-pill.active {
    background: #eff6ff;
    color: #2563eb;
    border-color: #3b82f6;
    font-weight: 700;
}

.filter-checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    cursor: pointer;
    margin: 0;
}

.filter-checkbox-item input {
    cursor: pointer;
    width: 16px;
    height: 16px;
}

/* Toolbar */
.catalog-toolbar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.results-count {
    font-size: 14px;
    color: #64748b;
    font-weight: 600;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
    margin: 0;
}

.sort-select {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 13px;
    color: #0f172a;
    outline: none;
    cursor: pointer;
    background: #ffffff;
}

.btn-toggle-filter-mobile {
    display: none;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    margin-right: 12px;
}

@media (max-width: 992px) {
    .btn-toggle-filter-mobile {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }
}

@media (max-width: 575.98px) {
    .catalog-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
        padding: 14px;
    }

    .toolbar-left,
    .toolbar-right {
        width: 100%;
    }

    .toolbar-right {
        justify-content: space-between;
    }

    .btn-toggle-filter-mobile {
        margin-right: 8px;
    }

    .sort-select {
        flex: 1;
        min-width: 0;
    }
}

/* Active Chips */
.active-filters-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.active-filters-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}

.active-chips-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.active-chip {
    background: #e0e7ff;
    color: #3730a3;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.active-chip-remove {
    cursor: pointer;
    font-size: 14px;
    color: #4f46e5;
    transition: color 0.15s;
}

.active-chip-remove:hover {
    color: #ef4444;
}

/* Empty State */
.catalog-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    margin: 20px 0;
}

.empty-icon {
    font-size: 60px;
    color: #94a3b8;
    margin-bottom: 16px;
}

.catalog-empty-state h3 {
    font-size: 18px;
    color: #0f172a;
    margin-bottom: 6px;
}

.catalog-empty-state p {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 20px;
}

/* Phân trang */
.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 35px;
}

.pagination-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    border-radius: 10px;
    color: #1e293b;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #2563eb;
    color: #2563eb;
    background: #eff6ff;
}

.pagination-btn.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

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

.pagination-dots {
    color: #94a3b8;
    padding: 0 6px;
}

/* ==========================================================================
   7. TRANG CHI TIẾT SẢN PHẨM (Product Detail Page)
   ========================================================================== */
.product-detail-page {
    padding: 15px 0 50px 0;
}

.detail-main-grid {
    display: grid;
    grid-template-columns: 460px 1fr;
    gap: 40px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 35px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

@media (max-width: 992px) {
    .detail-main-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px;
    }
}

/* Gallery */
.detail-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.main-image-wrapper {
    position: relative;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.main-image-wrapper img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.3s;
}

.main-image-wrapper:hover img {
    transform: scale(1.04);
}

.detail-discount-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #e11d48;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(225, 29, 72, 0.3);
    z-index: 2;
}

.thumbnails-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.thumb-item {
    width: 74px;
    height: 74px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    overflow: hidden;
    cursor: pointer;
    background: #ffffff;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 4px;
}

.thumb-item:hover {
    border-color: #94a3b8;
}

.thumb-item.active {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
}

.thumb-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Detail Content */
.detail-content {
    display: flex;
    flex-direction: column;
}

.brand-badge {
    display: inline-block;
    align-self: flex-start;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 16px;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.product-title {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 10px;
}

.meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #64748b;
    margin-bottom: 20px;
}

.meta-item strong {
    color: #1e293b;
}

.meta-divider {
    color: #cbd5e1;
}

.stock-status.in-stock {
    color: #16a34a;
}

.stock-status.out-of-stock {
    color: #e11d48;
}

/* Price Box */
.price-box {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.current-price {
    font-size: 32px;
    font-weight: 800;
    color: #e11d48;
}

.original-price {
    font-size: 16px;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 500;
}

.discount-pill {
    background: #fee2e2;
    color: #e11d48;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 12px;
}

/* Variant Selector */
.variant-section {
    margin-bottom: 26px;
}

.variant-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #475569;
    margin-bottom: 12px;
}

.variant-label strong {
    color: #0f172a;
}

.variant-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.variant-pill {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.variant-pill:hover {
    border-color: #94a3b8;
}

.variant-pill.active {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
    box-shadow: 0 0 0 1px #2563eb;
}

.variant-pill.disabled {
    opacity: 0.5;
    background: #f1f5f9;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Purchase Section */
.purchase-section {
    margin-bottom: 28px;
}

.quantity-group {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.quantity-label {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin: 0;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
}

.btn-qty {
    width: 42px;
    height: 42px;
    border: none;
    background: #f8fafc;
    color: #1e293b;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-qty:hover {
    background: #e2e8f0;
}

.btn-qty:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.quantity-control input {
    width: 55px;
    height: 42px;
    border: none;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    outline: none;
}

.action-buttons-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 576px) {
    .action-buttons-group {
        grid-template-columns: 1fr;
    }
}

.btn-add-cart {
    background: #eff6ff;
    border: 2px solid #2563eb;
    color: #2563eb;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 20px;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s;
}

.btn-add-cart:hover:not(:disabled) {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}

.btn-buy-now {
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    border: none;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 20px;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s;
    box-shadow: 0 6px 18px rgba(225, 29, 72, 0.25);
}

.btn-buy-now:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(225, 29, 72, 0.35);
}

.btn-add-cart:disabled,
.btn-buy-now:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn-add-favorite {
    width: 100%;
    margin-top: 12px;
    padding: 11px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    color: #475569;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
}

.btn-add-favorite:hover,
.btn-add-favorite.is-favorite { border-color: #fb7185; background: #fff1f2; color: #e11d48; }

.favorites-page { padding: 12px 0 56px; }
.favorites-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 22px 0 28px; }
.favorites-heading h1 { margin: 0; color: #0f172a; font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -0.04em; }
.favorites-heading p:not(.editorial-eyebrow) { margin: 8px 0 0; color: #64748b; }
.editorial-button-outline { border-color: #bfdbfe; background: #ffffff; color: #2563eb; }
.favorite-product-card { position: relative; }
.product-card-link { display: block; height: 100%; color: inherit; }
.favorite-remove-button { position: absolute; z-index: 2; top: 10px; right: 10px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #fff1f2; color: #e11d48; }
.favorites-empty { padding: 64px 20px; border: 1px dashed #cbd5e1; border-radius: 20px; text-align: center; background: #ffffff; }
.favorites-empty > i { color: #e11d48; font-size: 42px; }.favorites-empty h2 { margin: 16px 0 6px; font-size: 21px; }.favorites-empty p { color: #64748b; }
@media (max-width: 575.98px) { .favorites-heading { align-items: flex-start; flex-direction: column; margin-top: 16px; }.favorites-heading .editorial-button { width: 100%; } }

/* Policy Box */
.policy-box {
    border-top: 1px solid #f1f5f9;
    padding-top: 22px;
    margin-top: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.policy-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #475569;
}

.policy-item i {
    color: #2563eb;
    font-size: 16px;
}

/* ==========================================================================
   9. TECHSHOP EDITORIAL HOME
   Trang chủ kể chuyện sản phẩm, dùng dữ liệu và ảnh từ Catalog nội bộ.
   ========================================================================== */
.home-editorial {
    padding: 8px 0 56px;
}

.editorial-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    min-height: 570px;
    margin-bottom: 24px;
    overflow: hidden;
    border-radius: 28px;
    background: #0f172a;
    color: #ffffff;
}

.editorial-hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 64px clamp(32px, 6vw, 84px);
}

.editorial-eyebrow {
    margin: 0 0 12px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.editorial-hero .editorial-eyebrow {
    color: #93c5fd;
}

.editorial-eyebrow-sale {
    color: #e11d48;
}

.editorial-hero h1,
.editorial-section-heading h2,
.editorial-assurance h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(28px, 3.6vw, 52px);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 1.05;
}

.editorial-hero h1 {
    color: #ffffff;
}

.editorial-hero-description {
    max-width: 430px;
    margin: 20px 0 8px;
    color: #cbd5e1;
    font-size: 17px;
    line-height: 1.55;
}

.editorial-price {
    min-height: 26px;
    margin: 0 0 28px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
}

.editorial-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.editorial-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.editorial-button:hover {
    transform: translateY(-2px);
}

.editorial-button:focus-visible,
.editorial-text-link:focus-visible,
.editorial-campaign-card:focus-within {
    outline: 3px solid #93c5fd;
    outline-offset: 3px;
}

.editorial-button-primary {
    background: #ffffff;
    color: #0f172a;
}

.editorial-button-primary:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.editorial-button-secondary {
    border-color: rgba(255, 255, 255, 0.45);
    color: #ffffff;
}

.editorial-button-secondary:hover {
    border-color: #ffffff;
    color: #ffffff;
}

.editorial-hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    padding: 42px;
    background: radial-gradient(circle at 50% 42%, #334155 0%, #172033 48%, #0f172a 74%);
}

.editorial-hero-visual::after {
    position: absolute;
    inset: auto 16% 9%;
    height: 18px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    content: '';
    filter: blur(11px);
}

.editorial-hero-visual img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    max-height: 450px;
    object-fit: contain;
}

/*
 * Compact desktop hero: màn hình lớn giữ bố cục cân đối, không làm chữ/ảnh
 * phóng đại. Các breakpoint tablet và mobile phía dưới không bị tác động.
 */
@media (min-width: 1200px) {
    .home-editorial {
        padding-top: 0;
        padding-bottom: 44px;
    }

    .editorial-hero {
        min-height: 480px;
        margin-bottom: 20px;
        border-radius: 24px;
    }

    .editorial-hero-copy {
        padding: 48px clamp(40px, 4vw, 64px);
    }

    .editorial-hero h1 {
        font-size: clamp(36px, 3.2vw, 46px);
    }

    .editorial-hero-description {
        margin-top: 16px;
        font-size: 16px;
    }

    .editorial-price {
        margin-bottom: 24px;
        font-size: 18px;
    }

    .editorial-hero-visual {
        min-height: 360px;
        padding: 32px;
    }

    .editorial-hero-visual img {
        max-height: 365px;
    }

    .editorial-section {
        margin-bottom: 64px;
    }
}

.editorial-image-placeholder {
    display: grid;
    width: 160px;
    height: 160px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #93c5fd;
    font-size: 56px;
}

.editorial-campaigns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 72px;
}

.editorial-campaign-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(170px, 1.05fr);
    min-height: 300px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    background: #ffffff;
}

.editorial-campaign-copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 34px;
}

.editorial-campaign-copy h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(24px, 2.2vw, 32px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.editorial-campaign-copy p:not(.editorial-eyebrow) {
    margin: 14px 0 20px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.editorial-campaign-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 24px 20px;
}

.editorial-campaign-image img {
    width: 100%;
    height: 100%;
    max-height: 250px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.editorial-campaign-card:hover .editorial-campaign-image img {
    transform: scale(1.045);
}

.editorial-campaign-laptop {
    background: #eef4ff;
}

.editorial-campaign-audio {
    background: #fff7ed;
}

.editorial-text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2563eb;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.editorial-text-link:hover {
    color: #1d4ed8;
}

.editorial-section {
    margin-bottom: 78px;
}

.editorial-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.editorial-section-heading h2,
.editorial-assurance h2 {
    max-width: 760px;
    font-size: clamp(27px, 3vw, 42px);
}

.editorial-section-heading .editorial-eyebrow,
.editorial-assurance .editorial-eyebrow {
    margin-bottom: 10px;
}

.editorial-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
}

.home-editorial .category-card {
    display: flex;
    min-height: 150px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #ffffff;
    color: #0f172a;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-editorial .category-card:hover {
    transform: translateY(-3px);
    border-color: #93c5fd;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
    color: #0f172a;
}

.home-editorial .category-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 14px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 19px;
}

.home-editorial .category-name {
    margin-top: auto;
    font-size: 15px;
    font-weight: 700;
}

.home-editorial .category-arrow {
    align-self: flex-end;
    color: #64748b;
    font-size: 13px;
}

.editorial-empty-state {
    grid-column: 1 / -1;
    margin: 0;
    padding: 28px;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    color: #64748b;
    text-align: center;
}

.editorial-assurance,
.editorial-how-it-works,
.editorial-faq {
    margin-bottom: 78px;
    padding: clamp(28px, 5vw, 64px);
    border-radius: 28px;
}

.editorial-assurance {
    background: #0f172a;
}

.editorial-assurance .editorial-eyebrow {
    color: #93c5fd;
}

.editorial-assurance h2 {
    color: #ffffff;
}

.editorial-assurance-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
    margin-top: 42px;
}

.editorial-assurance-grid article {
    min-width: 0;
}

.editorial-assurance-grid i {
    color: #93c5fd;
    font-size: 22px;
}

.editorial-assurance-grid h3 {
    margin: 16px 0 8px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
}

.editorial-assurance-grid p {
    margin: 0;
    color: #cbd5e1;
    font-size: 13.5px;
    line-height: 1.55;
}

.editorial-how-it-works {
    border: 1px solid #e2e8f0;
    background: #ffffff;
}

.editorial-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin: 38px 0 0;
    padding: 0;
    list-style: none;
}

.editorial-steps li {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.editorial-steps span {
    color: #2563eb;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.editorial-steps h3 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 17px;
    font-weight: 700;
}

.editorial-steps p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.editorial-faq {
    padding-right: 0;
    padding-left: 0;
}

.editorial-faq-list {
    border-top: 1px solid #e2e8f0;
}

.editorial-faq-list details {
    border-bottom: 1px solid #e2e8f0;
}

.editorial-faq-list summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 0;
    color: #0f172a;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.editorial-faq-list summary::-webkit-details-marker {
    display: none;
}

.editorial-faq-list summary::after {
    flex: 0 0 auto;
    color: #2563eb;
    content: '+';
    font-size: 24px;
    font-weight: 400;
}

.editorial-faq-list details[open] summary::after {
    content: '–';
}

.editorial-faq-list p {
    max-width: 760px;
    margin: -6px 0 22px;
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
}

.home-editorial .skeleton-card {
    pointer-events: none;
}

.home-editorial .skeleton-icon,
.home-editorial .skeleton-text {
    display: block;
    border-radius: 8px;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 37%, #f1f5f9 63%);
    background-size: 400% 100%;
    animation: editorial-skeleton 1.4s ease infinite;
}

.home-editorial .skeleton-icon {
    width: 44px;
    height: 44px;
}

.home-editorial .skeleton-text {
    width: 72%;
    height: 13px;
}

@keyframes editorial-skeleton {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

@media (max-width: 992px) {
    .editorial-hero {
        grid-template-columns: 1fr;
    }

    .editorial-hero-copy {
        min-height: 390px;
    }

    .editorial-hero-visual {
        min-height: 370px;
    }

    .editorial-campaigns,
    .editorial-assurance-grid,
    .editorial-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .home-editorial {
        padding-bottom: 32px;
    }

    .editorial-hero {
        min-height: 0;
        border-radius: 20px;
    }

    .editorial-hero-copy {
        min-height: 0;
        padding: 40px 24px 32px;
    }

    .editorial-hero h1 {
        font-size: 34px;
    }

    .editorial-hero-description {
        font-size: 15px;
    }

    .editorial-hero-visual {
        min-height: 270px;
        padding: 24px;
    }

    .editorial-hero-visual img {
        max-height: 255px;
    }

    .editorial-actions,
    .editorial-actions .editorial-button {
        width: 100%;
    }

    .editorial-campaigns,
    .editorial-assurance-grid,
    .editorial-steps {
        grid-template-columns: 1fr;
    }

    .editorial-campaigns {
        gap: 16px;
        margin-bottom: 54px;
    }

    .editorial-campaign-card {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .editorial-campaign-copy {
        padding: 26px 24px 8px;
    }

    .editorial-campaign-image {
        min-height: 210px;
        padding: 20px;
    }

    .editorial-section,
    .editorial-assurance,
    .editorial-how-it-works,
    .editorial-faq {
        margin-bottom: 54px;
    }

    .editorial-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        margin-bottom: 20px;
    }

    .editorial-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .home-editorial .category-card {
        min-height: 130px;
        padding: 16px;
    }

    .editorial-assurance,
    .editorial-how-it-works {
        border-radius: 20px;
        padding: 28px 22px;
    }

    .editorial-assurance-grid,
    .editorial-steps {
        gap: 26px;
        margin-top: 30px;
    }

    .editorial-faq-list summary {
        padding: 18px 0;
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-editorial *,
    .home-editorial *::before,
    .home-editorial *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Bottom Grid (Description & Specs) */
.detail-bottom-section {
    margin-bottom: 50px;
}

.bottom-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 30px;
}

@media (max-width: 992px) {
    .bottom-grid {
        grid-template-columns: 1fr;
    }
}

.description-card,
.specs-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

/* Đổi tên class card-header và card-body thành ts-card-header và ts-card-body để chống đè Bootstrap 5 */
.ts-card-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 18px 24px;
}

.ts-card-header h3 {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.ts-card-body {
    padding: 24px;
}

.description-content {
    font-size: 15px;
    line-height: 1.8;
    color: #334155;
    white-space: pre-line;
}

/* Gợi ý sản phẩm thông minh tại trang kết quả tìm kiếm */
.ai-recommendation-panel {
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid #dbeafe;
    border-radius: 18px;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 58%, #f5f3ff 100%);
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.08);
}

.ai-recommendation-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.ai-recommendation-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ai-recommendation-heading h2 {
    margin: 6px 0 4px;
    color: #0f172a;
    font-size: 20px;
    font-weight: 800;
}

.ai-recommendation-heading p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.ai-recommendation-note {
    padding: 6px 9px;
    border-radius: 999px;
    background: #ffffff;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.ai-recommendation-signals {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 14px 0;
}

.ai-recommendation-signal {
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
}

.ai-recommendation-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.ai-recommendation-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 10px;
    border: 1px solid #dbe4f0;
    border-radius: 12px;
    background: #ffffff;
    color: inherit;
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.ai-recommendation-item:hover {
    transform: translateY(-2px);
    border-color: #93c5fd;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.1);
}

.ai-recommendation-image {
    display: flex;
    flex: 0 0 52px;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    overflow: hidden;
    border-radius: 10px;
    background: #f8fafc;
    color: #94a3b8;
}

.ai-recommendation-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ai-recommendation-content {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.ai-recommendation-content strong,
.ai-recommendation-content small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ai-recommendation-content strong {
    color: #0f172a;
    font-size: 13px;
}

.ai-recommendation-content small {
    color: #64748b;
    font-size: 11px;
}

.ai-recommendation-content b {
    color: #dc2626;
    font-size: 13px;
}

.ai-recommendation-item > .fa-arrow-right {
    margin-left: auto;
    color: #64748b;
    font-size: 12px;
}

@media (max-width: 640px) {
    .ai-recommendation-panel {
        padding: 16px;
    }

    .ai-recommendation-heading {
        display: block;
    }

    .ai-recommendation-note {
        display: inline-block;
        margin-top: 10px;
    }

    .ai-recommendation-list {
        grid-template-columns: 1fr;
    }
}

/* Specs Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid #f1f5f9;
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table th {
    text-align: left;
    width: 40%;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    background: #f8fafc;
    border-radius: 6px;
}

.specs-table td {
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #0f172a;
}
