/* ==========================================================================
   Custom WooCommerce Single Product CSS
   Scope: .amlab-single-product-wrapper
   ========================================================================== */

:root {
    --amlab-primary-color: #1aa64b;
    --amlab-primary-hover: #004b2e;
    --amlab-secondary-color: #f8f9fa;
    --amlab-text-color: #333333;
    --amlab-text-light: #666666;
    --amlab-border-color: #e5e5e5;
    --amlab-badge-bg: #e6f2ed;
    --amlab-badge-color: #005E3A;
    --brand: #1aa64b;
    /* xanh lá PrintPoss */
    --brand-dark: #14863c;
    --nav-ink: #2d3748;
    --ink: #14161a;
    --muted: #5b6170;
    --line: #e6e8ec;
    --bg: #ffffff;
    --bg-soft: #f6f7f9;
    --radius: 14px;
}

.amlab-single-product-wrapper {
    font-family: 'Inter', sans-serif;
    color: var(--amlab-text-color);
    background-color: #ffffff;
}

.amlab-container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- Utilities --- */
.amlab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 16px;
}

.amlab-btn-primary {
    background-color: var(--amlab-primary-color);
    color: #fff;
}

.amlab-btn-primary:hover {
    background-color: var(--amlab-primary-hover);
    color: #fff;
}

.amlab-btn-outline {
    background-color: transparent;
    color: var(--amlab-primary-color);
    border: 1px solid var(--amlab-primary-color);
}

.amlab-btn-outline:hover {
    background-color: var(--amlab-badge-bg);
}

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

.amlab-btn svg {
    margin-right: 8px;
}

.amlab-section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--amlab-primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.amlab-section-small-title {
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #66726B;
    margin-bottom: 14px;
}

/* ==========================================================================
   1. HERO SECTION
   ========================================================================== */
.amlab-product-hero {
    padding: 20px 0 40px;
}

.amlab-hero-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.amlab-breadcrumbs {
    font-size: 14px;
    color: var(--amlab-text-light);
}

.amlab-btn-edit-design {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #d35400;
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.amlab-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 50px;
}

/* Gallery */
.amlab-hero-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-self: start;
    /* Prevent grid stretching */
    min-width: 0;
}

.amlab-hero-gallery {
    display: flex;
    gap: 20px;
    align-items: stretch;
    min-width: 0;
}

.amlab-gallery-thumbnails-wrapper {
    width: 80px;
    flex-shrink: 0;
    position: relative;
}

.amlab-gallery-thumbnails {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.amlab-thumb-item {
    border: 1px solid var(--amlab-border-color);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
    transition: border-color 0.2s;
    height: 80px !important;
}

.amlab-thumb-item.swiper-slide-thumb-active {
    border-color: var(--amlab-primary-color);
    border-width: 2px;
}

.amlab-thumb-item img {
    width: 100%;
    height: auto;
    display: block;
}

.amlab-gallery-main {
    flex: 1;
    min-width: 0;
    /* Prevent Swiper from blowing out flex container */
    background-color: var(--amlab-secondary-color);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 1;
}

.amlab-gallery-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}

.amlab-gallery-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    height: 100%;
    position: relative;
}

.amlab-gallery-slide img,
.amlab-gallery-slide video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.amlab-gallery-slide img {
    cursor: crosshair;
}

.amlab-gallery-slide video {
    background-color: #000;
    border-radius: 8px;
}

.amlab-thumb-video {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #333;
    position: relative;
}

.amlab-thumb-video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.amlab-thumb-video-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    backdrop-filter: blur(4px);
    position: relative;
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Image Zoom Lens & External Window */
.amlab-zoom-lens {
    position: absolute !important;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.4);
    cursor: crosshair;
    pointer-events: none;
    z-index: 10;
    border-radius: 4px;
}

.amlab-zoom-window {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 100;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    pointer-events: none;
}

.amlab-zoom-window.active {
    opacity: 1;
    visibility: visible;
}

.amlab-zoom-image {
    display: block;
    max-width: none;
    transform-origin: top left;
}

/* Info */
.amlab-hero-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.amlab-product-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.amlab-badge {
    background-color: var(--amlab-badge-bg);
    color: var(--amlab-badge-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
}

.amlab-badge.amlab-badge-outline {
    background-color: transparent;
    border: 1px solid currentColor;
}

.amlab-badge.amlab-badge-best_seller {
    color: #f57c00;
}

.amlab-badge.amlab-badge-magsafe {
    color: #9c27b0;
}

.amlab-badge.amlab-badge-doc_dao {
    color: #2196f3;
}

.amlab-badge.amlab-badge-loi_nhuan_cao {
    color: #4caf50;
}

.amlab-badge.amlab-badge-combo {
    color: #ff9800;
}

.amlab-badge.amlab-badge-sap_ra_mat {
    color: #607d8b;
}

.amlab-badge.amlab-badge-sale {
    color: #000;
}

.amlab-product-title {
    font-size: 32px;
    font-weight: 900;
    margin: 0;
    text-transform: uppercase;
    color: #000;
    line-height: 1.2;
}

.amlab-product-subtitle {
    font-size: 15px;
    color: var(--amlab-text-light);
    margin: -10px 0 0 0;
}

/* Pricing Simple Layout */
.amlab-pricing-simple {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 10px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--amlab-border-color);
    flex-direction: column;
}

.amlab-pricing-label {
    font-size: 24px;
    color: var(--amlab-text-light);
    font-weight: 500;
    line-height: 1;
}

.amlab-pricing-simple .amlab-price-highlight {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    line-height: normal;
}

.amlab-pricing-simple .amlab-price-highlight strong {
    font-size: 40px;
    font-weight: 800;
    color: var(--amlab-primary-color);
    line-height: 1;
}

.amlab-price-group {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: center;
    gap: 10px;
}

.amlab-price-regular {
    font-size: 20px;
    color: #999;
    text-decoration: line-through;
    margin: 0 0 2px 0;
    font-weight: 500;
    line-height: 1;
}

.amlab-pricing-unit {
    font-size: 16px;
    color: var(--amlab-text-light);
    font-weight: 500;
}

.amlab-product-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--amlab-text-color);
    background-color: #eef8ef;
    border-radius: 20px;
    border: 1px solid #cfe8d3;
    padding: 40px;
}

/* Seller Resources Box */
.amlab-seller-resources-box {
    background-color: #F4FBF7;
    border: 1px solid var(--amlab-border-color);
    border-radius: 12px;
    padding: 24px;
    margin-top: 10px;
}

.amlab-seller-resources-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.amlab-seller-resources-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    color: #111;
    width: fit-content;
}

.amlab-seller-badge {
    background-color: var(--amlab-primary-color);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.amlab-seller-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.amlab-seller-checklist li {
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #444;
}

.amlab-seller-checklist li svg {
    flex-shrink: 0;
}

.amlab-seller-platforms {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.amlab-platform-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease-in;
}

.amlab-platform-tag:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.amlab-platform-tiktok {
    background-color: #000;
    color: #fff;
}

.amlab-platform-tiktok:hover {
    color: #fff !important;
}

.amlab-platform-etsy {
    background-color: #f16100;
    color: #fff;
}

.amlab-platform-shopify {
    background-color: #96bf48;
    color: #fff;
}

.amlab-actions-secondary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.amlab-hero-alert-box {
    background-color: var(--amlab-badge-bg);
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
}

.amlab-alert-title {
    color: var(--amlab-primary-color);
    font-weight: 700;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.amlab-alert-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.amlab-alert-list li {
    font-size: 13px;
    margin-bottom: 6px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

/* ==========================================================================
   2. TABS & CONTENT
   ========================================================================== */
.amlab-product-tabs-section {
    border-top: 1px solid var(--amlab-border-color);
    padding-top: 30px;
}

.amlab-tabs-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 30px;
}

.amlab-tab-item {
    font-size: 18px;
    font-weight: 600;
    color: var(--amlab-text-light);
    cursor: pointer;
    padding-bottom: 10px;
    position: relative;
}

.amlab-tab-item.active {
    color: var(--amlab-text-color);
}

.amlab-tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--amlab-primary-color);
}

.amlab-tabs-divider {
    border: none;
    border-top: 2px solid var(--amlab-border-color);
    margin: 0;
}

.amlab-product-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px 15px;
    max-width: 1170px;
    margin: 0 auto;
}

/* Advantages */
.amlab-advantages-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.amlab-adv-card {
    background-color: #fff;
    border: 1px solid var(--amlab-border-color);
    border-radius: 8px;
    padding: 20px;
}

.amlab-adv-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 15px;
}

.amlab-adv-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 8px;
}

.amlab-adv-desc {
    font-size: 13px;
    color: var(--amlab-text-light);
    margin: 0;
}

.amlab-adv-disclaimer {
    font-size: 12px;
    color: var(--amlab-text-light);
    margin-top: 20px;
    font-style: italic;
}

/* Stats */
.amlab-stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.amlab-stat-card {
    flex: 0 0 calc(50% - 20px);
    background-color: #fff;
    border: 1px solid var(--amlab-border-color);
    border-radius: 8px;
    padding: 20px;
    border-top: 3px solid var(--amlab-primary-color);
    padding-top: 15px;
}

.amlab-stat-number {
    font-size: 48px;
    font-weight: 800;
    margin: 0 0 10px;
    color: var(--amlab-text-color);
}

.amlab-stat-title {
    font-size: 13px;
    font-weight: normal;
    margin: 0 0 5px;
    color: var(--amlab-text-light);
}

.amlab-stat-desc {
    font-size: 13px;
    color: var(--amlab-text-light);
    margin: 0;
}

.amlab-stat-tags {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.amlab-tag {
    background-color: var(--amlab-badge-bg);
    color: var(--amlab-primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* ==========================================================================
   3. RESOURCES SECTION
   ========================================================================== */
.amlab-resources-section {
    background-color: #F8FAF8;
    border-top: 1px solid var(--amlab-border-color);
    padding: 60px 0;
}

.amlab-resources-header {
    margin-bottom: 40px;
}

.amlab-section-subtitle {
    color: var(--amlab-primary-color);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 1px;
}

.amlab-resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.amlab-resource-card {
    background-color: #fff;
    border-radius: 12px;
    flex-direction: column;
    border: 1.5px solid #D2D9D4;
    padding: 20px;
    display: flex;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    transition: transform 200ms cubic-bezier(0.2, 0.0, 0.0, 1.0), box-shadow 200ms cubic-bezier(0.2, 0.0, 0.0, 1.0);
}

.amlab-resource-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(20, 36, 27, 0.08), 0 2px 4px rgba(20, 36, 27, 0.04);
}

.amlab-res-icon-wrapper {
    flex-shrink: 0;
}

.amlab-res-icon {
    width: 40px;
    height: 40px;
}

.amlab-res-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 5px;
}

.amlab-res-desc {
    font-size: 13px;
    color: var(--amlab-text-light);
    margin: 0 0 15px;
}

.amlab-btn-download-sm {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background-color: white;
    border: 1px solid #C3C9C3;
    color: var(--amlab-primary-color);
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    width: 100% !important;
    transition: all 0.2s ease-in;
}

.amlab-btn-download-sm:hover {
    background-color: #e6f2ed;
    border-color: #97D0AF;
}

/* ==========================================================================
   4. PREVIEW GALLERY
   ========================================================================== */
.amlab-preview-gallery-section {
    background-color: #FBFCF3;
    padding: 20px 0 40px;
}

.amlab-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.amlab-preview-item {
    background-color: #ebebeb;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/9;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.amlab-preview-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.amlab-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.amlab-preview-item:hover img {
    transform: scale(1.05);
}

/* Lightbox Styles */
.amlab-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.amlab-lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.amlab-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

.amlab-lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: block;
}

.amlab-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.amlab-lightbox-close:hover {
    color: #ccc;
}

/* ==========================================================================
   5. SETUP STEPS
   ========================================================================== */
.amlab-setup-steps-section {
    background-color: #FBFCF3;
    padding: 20px 0 60px;
}

.amlab-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.amlab-step-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    border: 1.5px solid #D2D9D4;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.amlab-step-number {
    width: 32px;
    height: 32px;
    border: 2px solid var(--amlab-primary-color);
    color: var(--amlab-primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 15px;
}

.amlab-step-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 8px;
}

.amlab-step-desc {
    font-size: 13px;
    color: var(--amlab-text-light);
    margin: 0;
}

.amlab-step-notice {
    margin-top: 16px;
    background-color: var(--amlab-badge-bg);
    color: var(--amlab-primary-color);
    border: 1.5px solid #97D0AF;
    padding: 14px 18px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.amlab-stat-desc-general {
    text-align: left;
    color: var(--amlab-text-light);
    margin-top: 20px;
    font-size: 14px;
}

/* Supported Models */
.amlab-supported-models-section {
    padding: 60px 0;
    border-top: 1px solid var(--amlab-border-color);
}

.amlab-models-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.amlab-models-title {
    font-size: 28px;
    font-weight: 900;
    color: #0F4D26;
    margin: 0;
    text-transform: uppercase;
}

.amlab-models-tabs {
    display: flex;
    gap: 12px;
}

.amlab-model-tab-btn {
    background-color: transparent;
    border: 1px solid var(--amlab-border-color);
    color: #0F4D26;
    font-weight: 700;
    font-size: 14px;
    padding: 5px 24px;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s;
}

.amlab-model-tab-btn:hover {
    border-color: var(--amlab-primary-color);
}

.amlab-model-tab-btn.active {
    background-color: var(--amlab-primary-color);
    border-color: var(--amlab-primary-color);
    color: #fff;
}

.amlab-models-wrap {
    background-color: #f5f6f2;
    border-radius: 16px;
    padding: 30px;
    padding-bottom: 10px;
    border: 1px solid var(--amlab-border-color);
}

.amlab-models-content-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    align-items: center;
}

.amlab-model-panel {
    display: none;
    width: 100%;
    height: 100%;
}

.amlab-model-panel.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.amlab-model-badge {
    position: absolute;
    top: 0;
    left: 0;
    background-color: var(--amlab-primary-color);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
    z-index: 2;
}

.amlab-model-image {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    aspect-ratio: 16 / 9;
}

/* ==========================================================================
   4. RELATED PRODUCTS SECTION
   ========================================================================== */
.amlab-related-products-section {
    padding: 60px 0;
    background-color: #fff;
    border-top: 1px solid var(--amlab-border-color);
}

.amlab-related-products-section .amlab-section-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 30px;
}

.amlab-related-products-section .amlab-section-subtitle {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--brand);
    margin: 0 auto;
    text-transform: uppercase;
}

.amlab-related-products-section .amlab-section-title {
    font-size: clamp(26px, 3.5vw, 36px);
    font-weight: 800;
    margin: 6px 0 12px;
    justify-content: center !important; 
    color: #000;
}

.amlab-resources-header .amlab-section-title {
    margin-top: 15px;
}

/* Swiper for Related Products */
.related-swiper {
    padding-bottom: 40px !important;
    /* For pagination */
}

.related-swiper .swiper-slide {
    height: auto;
    /* Allow equal heights */
}

.related-swiper .swiper-pagination {
    bottom: 0 !important;
}

/* Product Card */
.amlab-product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1.5px solid #D2D9D4;
    box-shadow: 0 1px 3px rgba(20, 36, 27, 0.08), 0 1px 2px rgba(20, 36, 27, 0.04);
    height: 100%;
    padding: 20px 18px;
}

.amlab-product-card:hover {
    box-shadow: 0 12px 28px rgba(20, 36, 27, 0.12), 0 4px 8px rgba(20, 36, 27, 0.05);
}

.card-image-wrap {
    position: relative;
    background: white;
    border-radius: 14px;
    margin-bottom: 15px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image-wrap img {
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    z-index: 2;
}

.badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 9999px;
    text-transform: uppercase;
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
}

.badge-magsafe {
    background: #9c27b0;
    color: #fff;
}

.badge-best_seller {
    background: #ff5722;
    color: #fff;
}

.badge-doc_dao {
    background: #2196f3;
    color: #fff;
}

.badge-loi_nhuan_cao {
    background: #4caf50;
    color: #fff;
}

.badge-combo {
    background: #ff9800;
    color: #fff;
}

.badge-sap_ra_mat {
    background: #607d8b;
    color: #fff;
}

.badge-sale {
    background: #000;
    color: #fff;
}

.card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.card-title a {
    color: #333;
    text-decoration: none;
}

.card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    font-size: 13px;
    color: #555;
    flex-grow: 1;
}

.card-features li {
    margin-bottom: 5px;
    display: flex;
    align-items: flex-start;
    gap: 5px;
}

.check-icon {
    color: #4caf50;
    font-weight: bold;
}

.card-highlight {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
    display: inline-block;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: auto;
}

.card-price {
    font-weight: 700;
    font-size: 16px;
}

.card-btn-view {
    color: #000;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

.amlab-product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1.5px solid #D2D9D4;
    box-shadow: 0 1px 3px rgba(20, 36, 27, 0.08), 0 1px 2px rgba(20, 36, 27, 0.04);
    height: 100%;
    padding: 20px 18px;
}

.amlab-product-card:hover {
    box-shadow: 0 12px 28px rgba(20, 36, 27, 0.12), 0 4px 8px rgba(20, 36, 27, 0.05);
}

.card-image-wrap {
    position: relative;
    background: white;
    border-radius: 14px;
    margin-bottom: 15px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image-wrap img {
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    z-index: 2;
}

.badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 9999px;
    text-transform: uppercase;
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
}

.badge-magsafe {
    background: #9c27b0;
    color: #fff;
}

.badge-best_seller {
    background: #ff5722;
    color: #fff;
}

.badge-doc_dao {
    background: #2196f3;
    color: #fff;
}

.badge-loi_nhuan_cao {
    background: #4caf50;
    color: #fff;
}

.badge-combo {
    background: #ff9800;
    color: #fff;
}

.badge-sap_ra_mat {
    background: #607d8b;
    color: #fff;
}

.badge-sale {
    background: #000;
    color: #fff;
}

.card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.card-title a {
    color: #333;
    text-decoration: none;
}

.card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    font-size: 13px;
    color: #555;
    flex-grow: 1;
}

.card-features li {
    margin-bottom: 5px;
    display: flex;
    align-items: flex-start;
    gap: 5px;
}

.check-icon {
    color: #4caf50;
    font-weight: bold;
}

.card-highlight {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
    display: inline-block;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: auto;
}

.card-price {
    font-weight: 700;
    font-size: 16px;
}

.card-btn-view {
    color: #000;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

.compat-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border: 1px solid #e6e8ec;
    border-radius: 10px;
    padding: 16px 20px;
    margin: 20px 0;
    font-weight: 600;
}

.compat-link span.go {
    color: #1aa64b;
    white-space: nowrap;
}

.compat-link:hover {
    border-color: #1aa64b;
}

.compat-link strong {
    font-size: 18px;
    font-weight: 800;
}

.amlab-models-footer {
    text-align: right;
    margin-top: 15px;
}

.amlab-models-footer button#mdFull {
    margin: 0 !important;
    font-size: 14px;
    color: #1aa64b;
}

.resources {
    background: var(--bg-soft);
    padding: 60px 0;
    border-top: 1px solid var(--amlab-border-color);
}

.res-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 40px
}

.res-head p {
    color: var(--muted)
}

.res-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px
}

.res-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid var(--line)
}

.res-card h3 {
    font-size: 20px;
    font-weight: 800
}

.res-card p {
    color: var(--muted);
    flex: 1
}

.res-card .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600;
    border: 2px solid var(--brand);
    background: var(--brand);
    color: #fff;
    cursor: pointer;
    transition: .2s;
    font-size: 15px;
    align-self: flex-start
}

.section-title {
    font-size: clamp(26px, 3.5vw, 36px);
    font-weight: 800;
    margin: 6px 0 12px;
    justify-content: center !important;
}

.res-card .btn.btn-outline {
    background: transparent;
    color: var(--brand);
}

.res-card .btn-outline:hover {
    background: var(--brand);
    color: #fff;
}

.eyebrow {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--brand);
    text-transform: uppercase;
}

/* ==========================================================================
   6. RESPONSIVE (MOBILE)
   ========================================================================== */
@media only screen and (max-width: 48em) {
    .amlab-model-badge {
        top: 0;
        left: 0;
        font-size: 10px;
    }

    .amlab-models-wrap {
        padding: 15px;
    }

    .amlab-product-description {
        padding: 15px;
    }

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

    .amlab-stat-number {
        font-size: 32px;
    }

    .amlab-hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .amlab-hero-gallery {
        flex-direction: column-reverse;
        width: 100%;
        max-width: 100%;
    }

    .amlab-gallery-main {
        width: 100%;
        max-width: 100%;
        flex: none;
    }

    .amlab-gallery-thumbnails-wrapper {
        width: 100%;
        height: 80px;
    }

    .amlab-gallery-thumbnails {
        width: 100%;
        height: 100%;
        position: absolute;
    }

    .amlab-thumb-item {
        width: 80px !important;
        flex-shrink: 0;
    }

    .amlab-product-details-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .amlab-resources-grid,
    .amlab-preview-grid,
    .amlab-steps-grid {
        grid-template-columns: 1fr;
    }

    .amlab-actions-secondary {
        grid-template-columns: 1fr;
    }

    .amlab-tabs-nav {
        flex-wrap: wrap;
    }

    .amlab-pricing-simple .amlab-price-highlight strong {
        font-size: 28px;
    }

    .amlab-product-title {
        font-size: 26px;
    }

    .amlab-seller-resources-box {
        padding: 16px;
    }

    .amlab-platform-tag {
        width: fit-content;
        justify-content: center;
    }

    .amlab-models-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .amlab-models-title {
        font-size: 24px;
    }
}