/**
 * Figma homepage restyle (2026-10) — layered on homepage.css.
 * Design tokens extracted from docs/design/figma-home-2026-10/.
 */
:root {
    --figma-navy: #0b2e6b;
    --figma-navy-deep: #072456;
    --figma-heading: #3a4556;
    --figma-muted: #8a93a3;
    --figma-yellow: #f5c518;
    --figma-price: #e85d04;
    --figma-footer-bg: #f0f1f3;
    --figma-card-bg: #f7f8fa;
    --figma-radius: 10px;
    --figma-shadow: 0 6px 22px rgba(15, 30, 60, 0.08);
    --figma-shadow-sm: 0 2px 10px rgba(15, 30, 60, 0.06);
    --primary: #1e4db7;
    --primary-hover: #163d94;
    --primary-light: #e8eef9;
    --accent: var(--figma-yellow);
    --accent-hover: #e0b410;
    --bg-dark: var(--figma-navy);
    --text-primary: var(--figma-heading);
    --radius-md: var(--figma-radius);
    --shadow-sm: var(--figma-shadow-sm);
    --shadow-md: var(--figma-shadow);
}

/* --- Section titles (Figma: uppercase, no underline bar) --- */
.section-title-wrapper {
    margin-bottom: 40px;
}

.section-title {
    font-size: clamp(1.65rem, 2.4vw, 2.1rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--figma-heading);
    padding-bottom: 0;
}

.section-title::after {
    display: none;
}

.section-subtitle {
    color: var(--figma-muted);
    margin-top: 10px;
    font-size: 0.98rem;
}

.section-padding {
    padding: 48px 0;
}

/* --- Hero: full-bleed designed slides --- */
.hero-banner {
    display: none; /* designed anniversary art lives in hero-slider slides */
}

.hero-slider {
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 1920 / 720;
}

.slide-bg {
    background-size: cover;
    background-position: center center;
}

.slider-arrow {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.85);
    color: var(--figma-heading);
    border-radius: 50%;
    font-size: 0.95rem;
    box-shadow: var(--figma-shadow-sm);
}

.slider-arrow:hover {
    background: var(--figma-navy);
    color: #fff;
}

.slider-dots {
    display: none; /* Figma hero uses arrows only */
}

/* --- Brand story: single large 16:9 video --- */
.brand-story-section {
    background: #fff;
    padding-bottom: 36px;
}

.brand-story-section .section-title-wrapper {
    margin-bottom: 28px;
    text-align: center;
}

.brand-story-section .section-subtitle {
    font-style: italic;
    color: var(--figma-muted);
}

.brand-story-main {
    max-width: 1100px;
    margin: 0 auto;
}

.brand-story-hero {
    border-radius: 12px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    box-shadow: var(--figma-shadow);
    background: linear-gradient(135deg, #dbeafe, #e2e8f0);
    position: relative;
}

.brand-story-hero img,
.brand-story-hero .brand-story-poster,
.brand-story-hero .brand-story-iframe,
.brand-story-hero video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.brand-story-hero .brand-story-iframe,
.brand-story-hero video {
    border: 0;
    background: #0a0a0a;
}

.brand-story-play {
    width: 72px;
    height: 72px;
    background: rgba(220, 38, 38, 0.95);
}

.brand-story-hero .techtra-yt-facade {
    width: 100%;
    height: 100%;
}

.brand-story-hero .techtra-yt-watch {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 2;
}

/* Legacy collage / banner / gallery — hidden if old markup still present */
.brand-story-collage .brand-story-side,
.brand-story-banner,
.brand-story-gallery,
.brand-story-text {
    display: none;
}

/* --- Experts: 4×2 grid --- */
.experts-section {
    background: #fff;
}

.experts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.expert-card {
    text-align: left;
    background: #fff;
    border-radius: var(--figma-radius);
    padding: 0;
    border: 1px solid #e8ebf0;
    box-shadow: var(--figma-shadow-sm);
    overflow: hidden;
}

.expert-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--figma-shadow);
}

.expert-photo {
    aspect-ratio: 1 / 1;
    border-radius: 0;
    margin-bottom: 0;
}

.expert-name,
.expert-role {
    padding-left: 14px;
    padding-right: 14px;
}

.expert-name {
    margin-top: 12px;
    margin-bottom: 4px;
    font-size: 0.98rem;
    color: var(--figma-heading);
}

.expert-role {
    padding-bottom: 16px;
    font-size: 0.82rem;
    color: var(--figma-muted);
    line-height: 1.45;
}

/* --- Fields carousel (Figma: light cards, pale icon ring, side chevrons) --- */
.fields-section {
    background: #fff;
    padding-top: 40px;
    padding-bottom: 48px;
}

/* No Elementor Offset-Y hacks: keep normal section rhythm (do not pad for overlap). */
.elementor-widget-techtra_fields .fields-section {
    padding-bottom: 48px;
}

.fields-section .section-title-wrapper {
    text-align: center;
    margin-bottom: 32px;
}

.fields-carousel {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 8px;
    touch-action: pan-y;
}

.fields-carousel__viewport {
    flex: 1;
    min-width: 0;
    /* Horizontal clip for the track; bottom padding keeps card radius +
       shadow inside the overflow box (overflow-y:visible is ignored when
       overflow-x is hidden per CSS). */
    overflow: hidden;
    padding-bottom: 16px;
    margin-bottom: -4px;
    cursor: grab;
}

.fields-carousel__viewport:active {
    cursor: grabbing;
}

.fields-grid,
.values-grid {
    display: flex;
    gap: 20px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.fields-grid:not(.fields-carousel__track),
.values-grid:not(.fields-carousel__track) {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.fields-carousel__track.fields-grid,
.fields-carousel__track.values-grid {
    display: flex;
    grid-template-columns: none;
}

a.field-card,
a.value-card {
    text-decoration: none;
    color: inherit;
}

.field-card,
.value-card {
    flex: 0 0 calc((100% - 60px) / 4);
    text-align: center;
    padding: 40px 20px 36px;
    min-height: 260px;
    background: #fff;
    border: 1px solid #e6e9ef;
    border-radius: 12px;
    box-shadow: var(--figma-shadow-sm);
    box-sizing: border-box;
    user-select: none;
}

.field-card:hover,
.value-card:hover {
    border-color: #c9d4e8;
    box-shadow: var(--figma-shadow);
}

.value-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #e8f0fb;
    color: var(--figma-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    overflow: hidden;
}

.value-icon--image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.value-title {
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--figma-heading);
    margin-bottom: 8px;
}

.value-desc {
    color: var(--figma-muted);
    font-size: 0.9rem;
    margin: 0;
}

.fields-carousel__arrow {
    flex: 0 0 auto;
    align-self: center;
    width: 40px;
    height: 40px;
    border-radius: 0;
    border: 0;
    background: transparent;
    color: #1a1a1a;
    font-size: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.2s ease, opacity 0.2s ease;
    z-index: 2;
}

.fields-carousel__arrow:hover {
    color: var(--figma-navy);
    background: transparent;
}

.fields-carousel__arrow:disabled,
.fields-carousel__arrow[aria-disabled="true"] {
    opacity: 0.25;
    cursor: default;
}

/* --- Best sellers / product lines --- */
.best-sellers-section {
    background: #fff;
    padding: 48px 0 56px;
}

.best-sellers-top {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 28px;
    align-items: stretch;
    margin-bottom: 28px;
}

.best-sellers-intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
}

.best-sellers-intro .section-title-wrapper {
    text-align: left;
    margin: 0;
}

.best-sellers-intro .section-title {
    font-size: clamp(1.5rem, 2vw, 1.9rem);
    letter-spacing: 0.06em;
    color: #9aa3b2;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    /* Stack words like Figma vertical title block */
    max-width: 10ch;
    line-height: 1.25;
}

.best-sellers-intro .section-subtitle {
    display: none;
}

.best-sellers-intro__cta,
.btn.best-sellers-intro__cta {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 9999px;
    background: var(--figma-navy);
    color: #fff;
    font-weight: 600;
    border: none;
}

.best-sellers-intro__cta:hover {
    background: var(--primary);
    color: #fff;
}

.best-sellers-promos.promo-banners-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin: 0;
    align-items: start;
}

.best-sellers-promos .promo-banner-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: auto;
    min-height: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    background: transparent;
}

.best-sellers-promos .promo-banner-card:hover {
    transform: none;
    box-shadow: none;
}

.best-sellers-promos .promo-banner-caption {
    display: block;
    text-align: center;
    margin: 0 0 12px;
    padding: 0 8px;
    position: static;
    z-index: auto;
}

.best-sellers-promos .promo-banner-caption .promo-title {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    font-weight: 700;
    color: var(--figma-heading, #1e293b);
    line-height: 1.3;
}

.best-sellers-promos .promo-banner-media {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--figma-radius);
    overflow: hidden;
    background: #e8eef8;
    box-shadow: var(--figma-shadow-sm);
    position: relative;
}

.best-sellers-promos .promo-banner-img {
    position: static;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.best-sellers-promos .promo-banner-card:hover .promo-banner-img {
    transform: scale(1.04);
}

.best-sellers-promos .promo-banner-content,
.best-sellers-promos .promo-tag {
    display: none;
}

.best-sellers-tabs-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 16px 24px;
    margin-bottom: 28px;
    border-bottom: 1px solid #e5e8ee;
}

.best-sellers-tabs-bar .tabs-nav {
    justify-content: center;
    grid-column: 1 / -1;
    margin: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.best-sellers-tabs-bar:not(.best-sellers-tabs-bar--single) .tabs-nav {
    grid-column: 1 / 2;
    justify-content: center;
}

.best-sellers-tabs-bar .best-sellers-view-all,
.btn.best-sellers-view-all {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 9999px;
    border: 1.5px solid var(--figma-navy);
    background: transparent;
    color: var(--figma-navy);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    white-space: nowrap;
    margin-bottom: 10px;
}

.best-sellers-tabs-bar .best-sellers-view-all:hover {
    background: var(--figma-navy);
    color: #fff;
}

.best-sellers-tabs-bar--single .tabs-nav {
    display: none;
}

.best-sellers-tabs-bar--single {
    grid-template-columns: 1fr auto;
    border-bottom: none;
}

.best-sellers-tabs-bar--single .best-sellers-view-all {
    margin-left: auto;
    margin-bottom: 16px;
}

@media (max-width: 900px) {
    .best-sellers-top {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .best-sellers-intro .section-title {
        max-width: none;
        text-align: center;
    }

    .best-sellers-intro {
        align-items: center;
    }

    .best-sellers-intro__cta {
        align-self: center;
    }

    .best-sellers-tabs-bar {
        grid-template-columns: 1fr;
    }

    .best-sellers-tabs-bar .best-sellers-view-all,
    .best-sellers-tabs-bar:not(.best-sellers-tabs-bar--single) .tabs-nav {
        grid-column: 1;
        justify-self: center;
    }
}

@media (max-width: 640px) {
    .best-sellers-promos.promo-banners-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}

/* Ensure product images fill in carousel cards */
.products-carousel .product-img-link {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f3f5f8;
}

.products-carousel .product-img,
.products-carousel .product-card .product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.best-sellers-main .tabs-nav,
.best-sellers-section .tabs-nav {
    justify-content: flex-start;
    gap: 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid #e5e8ee;
    padding-bottom: 0;
}

.best-sellers-section .tab-btn,
.tab-btn {
    padding: 10px 4px 14px;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    color: var(--figma-muted);
    font-weight: 600;
    position: relative;
}

.best-sellers-section .tab-btn:hover,
.tab-btn:hover {
    background: transparent;
    color: var(--figma-navy);
}

.best-sellers-section .tab-btn.active,
.tab-btn.active {
    background: transparent;
    color: var(--figma-navy);
    box-shadow: none;
    border: none;
}

.best-sellers-section .tab-btn.active::after,
.tab-btn.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    background: var(--figma-navy);
    border-radius: 2px 2px 0 0;
}

.products-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.products-carousel__viewport {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.products-carousel .products-grid {
    display: flex;
    gap: 20px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.products-carousel .product-card {
    flex: 0 0 calc((100% - 40px) / 3);
}

.products-carousel__arrow {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #d5dae3;
    background: #fff;
    color: var(--figma-heading);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.products-carousel__arrow:hover {
    background: var(--figma-navy);
    border-color: var(--figma-navy);
    color: #fff;
}

.product-card {
    border-radius: var(--figma-radius);
    border: 1px solid #e8ebf0;
    box-shadow: var(--figma-shadow-sm);
    overflow: hidden;
    background: #fff;
}

.product-price {
    color: var(--figma-price);
    font-size: 1.1rem;
}

.product-old-price {
    color: #a0a8b4;
}

.product-title a {
    color: var(--figma-navy);
}

.best-sellers-more .btn,
.blog-section-more .btn {
    border: 1.5px solid var(--figma-navy);
    color: var(--figma-navy);
    border-radius: 9999px;
    background: transparent;
    padding: 10px 22px;
}

.best-sellers-more .btn:hover {
    background: var(--figma-navy);
    color: #fff;
}

/* Promo banners row above tabs (optional) */
.best-sellers-promos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
}

.best-sellers-promos .promo-banner-card {
    border-radius: var(--figma-radius);
    overflow: hidden;
    min-height: 200px;
}

/* --- Testimonials: 3×2 video cards --- */
.testimonials-section {
    background: #fff;
    padding-bottom: 40px;
}

.testimonials-section .section-subtitle:empty {
    display: none;
}

.testimonials-section .section-title-wrapper {
    text-align: left;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.testimonial-phone,
.testimonial-card {
    width: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-radius: var(--figma-radius);
    box-shadow: var(--figma-shadow);
    overflow: hidden;
    border: 1px solid #e8ebf0;
}

.testimonial-phone--featured,
.testimonial-card--featured {
    width: auto;
    transform: none;
}

.testimonial-media {
    aspect-ratio: 9 / 16;
    border-radius: 0;
    box-shadow: none;
}

.testimonial-media img,
.testimonial-phone .testimonial-media img,
.testimonial-card .testimonial-media img {
    opacity: 1;
}

.testimonial-play {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--figma-navy);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

button.testimonial-media:hover .testimonial-play,
button.testimonial-media:focus-visible .testimonial-play {
    background: #fff;
    color: var(--figma-navy);
}

.testimonial-caption {
    margin-top: 0;
    text-align: left;
    padding: 14px 16px 18px;
}

.testimonial-caption strong {
    font-size: 0.95rem;
    color: var(--figma-navy);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.testimonial-caption p {
    font-size: 0.82rem;
    color: var(--figma-muted);
    margin-top: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Blog / Tin tức --- */
.blog-section {
    padding-bottom: 28px;
    margin-bottom: 0;
}

.blog-section .section-title-wrapper {
    text-align: left;
}

.blog-img-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-section .section-title::after {
    display: none;
}

.blog-slider-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #d5dae3;
    background: #fff;
    color: var(--figma-heading);
}

.blog-slider-arrow:hover {
    background: var(--figma-navy);
    border-color: var(--figma-navy);
    color: #fff;
}

.blog-img-link {
    border-radius: var(--figma-radius);
    aspect-ratio: 16 / 10;
}

.blog-title a {
    color: var(--figma-navy);
    font-weight: 700;
}

.blog-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
    font-size: 0.82rem;
    color: var(--figma-muted);
}

.blog-meta__brand {
    font-weight: 700;
    color: #6b7280;
}

.blog-date {
    color: var(--figma-muted);
}

/* --- Footer (light Figma grid) --- */
footer,
.techtra-elements-footer,
.site-footer {
    background: var(--figma-footer-bg) !important;
    color: var(--figma-heading);
    padding: 0;
    margin-top: 0;
    overflow-x: clip;
}

main + .techtra-elements-footer,
.site-main + .techtra-elements-footer {
    margin-top: 0;
}

.techtra-elements-footer .elementor-8930,
.techtra-elements-footer .elementor {
    max-width: 100%;
}

/* Boxed content width matching homepage .container */
.techtra-elements-footer .techtra-hf-footer-main > .elementor-container,
.techtra-elements-footer .techtra-hf-footer-bottom > .elementor-container {
    max-width: 1240px;
    width: 100%;
    margin-inline: auto;
    padding-inline: 20px;
    box-sizing: border-box;
}

.techtra-elements-footer .techtra-hf-footer-main {
    padding: 48px 0 36px;
}

.techtra-elements-footer .techtra-hf-footer-main > .elementor-container {
    align-items: flex-start;
    gap: 28px 24px;
}

.techtra-elements-footer .techtra-hf-footer-main .elementor-column > .elementor-widget-wrap {
    gap: 14px;
}

.techtra-elements-footer .techtra-hf-footer-float {
    display: contents;
}

.techtra-elements-footer .techtra-hf-footer-float > .elementor-container {
    display: contents;
}

.techtra-elements-footer .techtra-hf-footer-float .elementor-column,
.techtra-elements-footer .techtra-hf-footer-float .elementor-widget-wrap,
.techtra-elements-footer .techtra-hf-footer-float .elementor-widget {
    position: static !important;
    width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

/* Brand / about */
.techtra-footer-about .footer-about__logo,
.techtra-elements-footer .footer-logo {
    margin-bottom: 12px;
}

.techtra-elements-footer .footer-about__logo,
.techtra-elements-footer .footer-logo,
.techtra-elements-footer .techtra-site-logo {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    padding: 0 !important;
    display: inline-block;
    max-width: 160px;
}

.techtra-elements-footer .footer-about__logo img,
.techtra-elements-footer .footer-logo img,
.techtra-elements-footer .techtra-site-logo img,
.techtra-elements-footer .elementor-widget-techtra_footer_about img {
    filter: none;
    height: auto !important;
    max-width: 150px !important;
    width: auto !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    padding: 0 !important;
    display: block;
}

.footer-about__name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--figma-navy);
    line-height: 1.45;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.footer-about__text,
.footer-about__address {
    font-size: 0.84rem;
    line-height: 1.55;
    color: var(--figma-muted);
    margin: 0 0 8px;
}

.footer-about,
.footer-links a,
.footer-contact li,
.copyright {
    color: var(--figma-heading);
}

.footer-column h4 {
    color: var(--figma-navy);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 14px;
}

.footer-column h4::after {
    display: none;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin: 0 0 10px;
}

.footer-links a {
    color: var(--figma-heading);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.4;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 0;
}

.footer-contact {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-contact li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 0 0 12px;
    line-height: 1.45;
}

.footer-contact i {
    color: var(--figma-navy);
    margin-top: 3px;
    flex: 0 0 auto;
}

.footer-contact span {
    min-width: 0;
    flex: 1;
    word-break: break-word;
}

.footer-contact span strong {
    color: var(--figma-navy);
    display: inline;
    margin-right: 4px;
}

.techtra-social-icons.footer-socials,
.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 4px 0 12px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--figma-navy);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex: 0 0 auto;
}

.social-icon:hover {
    background: var(--primary);
    color: #fff;
}

.footer-newsletter {
    display: flex;
    align-items: stretch;
    background: var(--figma-navy);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 14px;
    min-height: 48px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.footer-newsletter__label {
    flex: 1;
    min-width: 0;
    color: #fff;
    padding: 8px 12px;
    font-size: 0.86rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

.footer-newsletter__label-text {
    display: block;
    line-height: 1.3;
}

.footer-newsletter__input {
    width: 100%;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 0.9rem;
    padding: 2px 0 0;
    outline: none;
}

.footer-newsletter__input::placeholder {
    color: rgba(255, 255, 255, 0.65);
}

.footer-newsletter__btn {
    background: var(--figma-yellow);
    color: var(--figma-navy-deep);
    font-weight: 700;
    padding: 12px 18px;
    border: 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    white-space: nowrap;
    flex: 0 0 auto;
}

.footer-newsletter__btn:hover {
    background: #ffd84a;
}

.footer-contact-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-contact-box {
    border: 1px solid #d8dde6;
    border-radius: 8px;
    padding: 12px 12px;
    background: #fff;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    min-width: 0;
    box-sizing: border-box;
}

.footer-contact-box i {
    color: var(--figma-navy);
    margin-top: 2px;
    flex: 0 0 auto;
}

.footer-contact-box strong {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: var(--figma-navy);
    margin-bottom: 2px;
}

.footer-contact-box span,
.footer-contact-box a {
    font-size: 0.84rem;
    color: var(--figma-heading);
    word-break: break-word;
    text-decoration: none;
}

.techtra-elements-footer .techtra-hf-footer-bottom {
    background: var(--figma-navy) !important;
    padding: 14px 0;
    margin-top: 0;
}

.techtra-elements-footer .techtra-hf-footer-bottom .copyright,
.techtra-elements-footer .techtra-copyright {
    color: rgba(255, 255, 255, 0.88);
    width: 100%;
    text-align: center;
    font-size: 0.82rem;
    line-height: 1.45;
    margin: 0;
    padding-inline: 8px;
    box-sizing: border-box;
}

.footer-certs,
.techtra-footer-certs {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: stretch;
    margin-top: 4px;
    max-width: 100%;
}

.footer-certs img,
.footer-certs svg {
    height: 36px;
    opacity: 1;
    display: block;
}

.footer-cert {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: center;
    line-height: 1;
    text-decoration: none;
    box-sizing: border-box;
    white-space: nowrap;
    flex: 0 0 auto;
}

.footer-cert > span,
.footer-cert > img {
    white-space: nowrap;
}

.footer-cert--bct {
    background: #0b2e6b;
    color: #fff;
    border-radius: 6px;
    width: auto;
    min-width: 0;
    text-transform: uppercase;
}

.footer-cert--dmca {
    background: #2f3542;
    color: #fff;
    border: 1px solid #9aa3b2;
    letter-spacing: 0.06em;
}

/* Floating contact stack — clear footer content */
.techtra-float-contacts {
    position: fixed;
    right: 16px;
    bottom: 24px;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.techtra-elements-footer {
    padding-right: 0;
}

body {
    padding-bottom: 0;
}

.techtra-float-contacts a {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--figma-navy);
    color: #fff;
    box-shadow: var(--figma-shadow);
    font-size: 1.15rem;
    transition: transform 0.2s ease, background 0.2s ease;
}

.techtra-float-contacts a:hover {
    transform: translateY(-2px);
    background: var(--primary);
}

.techtra-float-contacts a.is-zalo {
    background: #0068ff;
}

/* --- Responsive --- */
@media (max-width: 1200px) {
    .best-sellers-top {
        grid-template-columns: 1fr;
    }

    .best-sellers-intro .section-title {
        max-width: none;
        color: var(--figma-heading);
        letter-spacing: 0.02em;
    }

    .products-carousel .product-card {
        flex: 0 0 calc((100% - 20px) / 2);
    }

    .field-card,
    .value-card {
        min-height: 240px;
    }
}

@media (max-width: 900px) {
    .experts-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: none;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fields-grid:not(.fields-carousel__track),
    .values-grid:not(.fields-carousel__track) {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-slider {
        aspect-ratio: 4 / 3;
        height: auto;
        min-height: 260px;
    }

    .section-padding {
        padding: 36px 0;
    }

    .brand-story-hero {
        aspect-ratio: 16 / 9;
        border-radius: 10px;
    }

    .brand-story-play {
        width: 56px;
        height: 56px;
    }

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

    .testimonials-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .testimonial-phone,
    .testimonial-phone--featured,
    .testimonial-card,
    .testimonial-card--featured {
        width: auto;
        transform: none;
    }

    .products-carousel .product-card {
        flex: 0 0 85%;
    }

    .field-card,
    .value-card {
        min-height: 220px;
        padding: 28px 14px 28px;
    }

    .best-sellers-promos {
        grid-template-columns: 1fr;
    }

    .techtra-elements-footer .techtra-hf-footer-main {
        padding: 36px 0 28px;
    }

    .techtra-elements-footer .techtra-hf-footer-main > .elementor-container,
    .techtra-elements-footer .techtra-hf-footer-bottom > .elementor-container {
        padding-inline: 18px;
        flex-wrap: wrap;
    }

    .techtra-elements-footer .techtra-hf-footer-main .elementor-column {
        width: 100% !important;
    }

    .footer-contact-boxes {
        grid-template-columns: 1fr 1fr;
    }

    .footer-newsletter {
        flex-direction: row;
    }

    .techtra-float-contacts {
        right: 12px;
        bottom: 16px;
    }

    .techtra-float-contacts a {
        width: 44px;
        height: 44px;
    }

    /* Keep footer text clear of floating chat/phone */
    .techtra-elements-footer .techtra-hf-footer-bottom .copyright,
    .techtra-elements-footer .techtra-copyright {
        padding-inline: 56px 12px;
    }
}

@media (max-width: 560px) {
    .experts-grid {
        grid-template-columns: 1fr 1fr;
        max-width: none;
        margin: 0;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .expert-photo {
        aspect-ratio: 1 / 1;
    }

    .techtra-elements-footer .techtra-hf-footer-main > .elementor-container,
    .techtra-elements-footer .techtra-hf-footer-bottom > .elementor-container {
        padding-inline: 18px;
    }

    .techtra-elements-footer .elementor-widget-techtra_footer_about img {
        max-width: 130px !important;
    }

    .footer-contact-boxes {
        grid-template-columns: 1fr;
    }

    .footer-newsletter {
        flex-direction: column;
    }

    .footer-newsletter__btn {
        width: 100%;
        padding: 12px 16px;
    }

    .footer-certs,
    .techtra-footer-certs {
        flex-wrap: wrap;
    }

    .footer-cert {
        height: 36px;
        min-height: 36px;
        padding: 0 12px;
        font-size: 0.68rem;
        max-width: 100%;
    }

    .techtra-elements-footer .techtra-hf-footer-bottom .copyright,
    .techtra-elements-footer .techtra-copyright {
        padding-inline: 52px 8px;
        font-size: 0.78rem;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .techtra-elements-footer .techtra-hf-footer-main > .elementor-container {
        flex-wrap: wrap;
    }

    .techtra-elements-footer .techtra-hf-footer-main .elementor-column {
        width: 50% !important;
    }
}
