/**
 * Cards & Homepage Components
 *
 * Styles for feature cards, product cards, template cards, and CTAs.
 * Uses the --smx-* theme tokens that ThemeService prints in the page head.
 */

/* ========================================
   Page Section
   ======================================== */

.section {
    padding: calc(80px * var(--smx-space)) 0;
}

.section--gray {
    background-color: var(--smx-surface-alt);
}

.section--dark {
    background-color: var(--smx-header-bg);
    color: var(--smx-header-text);
}

.section__header {
    text-align: center;
    margin-bottom: 50px;
}

.section__title {
    font-family: var(--smx-font-heading);
    text-transform: var(--smx-heading-case);
    letter-spacing: var(--smx-heading-tracking);
    font-size: calc(2.5rem * var(--smx-title-scale));
    font-weight: var(--smx-heading-weight);
    margin: 0 0 15px;
    color: var(--smx-title);
    text-shadow: var(--smx-title-shadow);
    text-align: var(--smx-title-text-align);
    width: fit-content;
    max-width: 100%;
    margin-inline: var(--smx-title-underline-margin);
}

.section__title::after {
    content: "";
    display: var(--smx-title-underline-display);
    width: var(--smx-title-underline-width);
    height: var(--smx-title-underline-height);
    background: var(--smx-title-underline-color);
    margin: .35em var(--smx-title-underline-margin) 0;
}

.section--dark .section__title {
    color: var(--smx-header-text);
}

.section__subtitle {
    font-size: 1.1rem;
    color: var(--smx-text);
    margin: 0;
}

.section--dark .section__subtitle {
    color: color-mix(in srgb, var(--smx-header-text) 80%, transparent);
}

/* ========================================
   Feature Cards
   ======================================== */

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

.feature-card {
    background: var(--smx-surface);
    color: var(--smx-on-surface);
    padding: 30px;
    border: var(--smx-card-border);
    border-radius: var(--smx-radius-card);
    outline: var(--smx-card-outline);
    outline-offset: var(--smx-card-outline-offset);
    box-shadow: var(--smx-card-shadow);
    text-align: center;
    transition: transform .15s;
}

.feature-card:hover {
    transform: var(--smx-card-hover-transform);
}

.feature-card__icon {
    font-size: 3rem;
    color: var(--smx-brand);
    margin-bottom: 20px;
    line-height: 1;
}

.feature-card__title {
    font-family: var(--smx-font-body);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 15px;
    color: var(--smx-on-surface);
}

.feature-card__text {
    font-size: 1rem;
    color: var(--smx-on-surface);
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   Product Cards
   ======================================== */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-content: center;
    width: 100%;
    max-width: 100%;
}

/* Featured products - use flexbox to center last row items */
.product-grid--2:not(.categories-horizontal-scroll),
.product-grid--3:not(.categories-horizontal-scroll),
.product-grid--4:not(.categories-horizontal-scroll),
.product-grid--5:not(.categories-horizontal-scroll) {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
}

/* Set flex-basis for consistent column widths + ensure equal heights */
.product-grid--2:not(.categories-horizontal-scroll) > *,
.product-grid--3:not(.categories-horizontal-scroll) > *,
.product-grid--4:not(.categories-horizontal-scroll) > *,
.product-grid--5:not(.categories-horizontal-scroll) > * {
    display: flex;
    flex-direction: column;
}

.product-grid--2:not(.categories-horizontal-scroll) > * {
    flex: 0 1 calc(50% - 15px);
    max-width: 450px;
}

.product-grid--3:not(.categories-horizontal-scroll) > * {
    flex: 0 1 calc(33.333% - 20px);
    max-width: 400px;
}

.product-grid--4:not(.categories-horizontal-scroll) > * {
    flex: 0 1 calc(25% - 22.5px);
    max-width: none;
}

.product-grid--5:not(.categories-horizontal-scroll) > * {
    flex: 0 1 calc(20% - 24px);
    max-width: none;
}

/* Categories - flexbox, shrink to fit, never wrap until 768px */
.categories-horizontal-scroll {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 30px;
}

.categories-horizontal-scroll > * {
    flex: 1 1 0;
    min-width: 0;
    max-width: 280px;
}

/* Categories with specific column counts */
.product-grid--2.categories-horizontal-scroll > * {
    flex: 0 1 calc(50% - 15px);
    max-width: 450px;
}

.product-grid--3.categories-horizontal-scroll > * {
    flex: 0 1 calc(33.333% - 20px);
    max-width: 350px;
}

.product-grid--4.categories-horizontal-scroll > * {
    flex: 0 1 calc(25% - 22.5px);
    max-width: 300px;
}

.product-grid--5.categories-horizontal-scroll > * {
    flex: 0 1 calc(20% - 24px);
    max-width: 260px;
}

/* Aspect ratio modifiers */
.product-grid--aspect-4-3 .product-card__image {
    aspect-ratio: 4 / 3 !important;
}

.product-grid--aspect-1-1 .product-card__image {
    aspect-ratio: 1 / 1 !important;
}

/* Circle aspect - make entire chain transparent and non-clipping */
.product-grid--aspect-circle {
    overflow: visible;
}

.product-grid--aspect-circle .product-card-link {
    overflow: visible;
    padding: 5px 0 5px 0; /* Room for shadow and lift */
}

.product-grid--aspect-circle .product-card {
    background: transparent !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    border-radius: 0;
    overflow: visible !important;
}

.product-grid--aspect-circle .product-card:hover {
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

.product-grid--aspect-circle .product-card__image {
    aspect-ratio: 1 / 1 !important;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--smx-surface);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.product-grid--aspect-circle .product-card:hover .product-card__image {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

/* Circle with hidden titles/descriptions - add gap to prevent overlap */
.product-grid--aspect-circle.hide-titles.hide-descriptions {
    gap: 40px;
}

/* Circle titles - tighter, balanced padding */
.product-grid--aspect-circle .product-card__body {
    padding: 12px 15px 8px 15px;
}

.product-grid--aspect-circle .product-card__title {
    margin-bottom: 5px;
}

/* Floating titles - transparent card body, shadow on image only.
   With no card behind it, the text sits on the section, so it takes the section's inks, not the card's. */
.product-grid--floating-titles .product-card {
    color: var(--smx-text);
    background: transparent !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}
.product-grid--floating-titles .product-card .product-card__title,
.product-grid--floating-titles .product-card .product-card__text {
    color: var(--smx-text);
}
.product-grid--floating-titles .product-card:hover {
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}
.product-grid--floating-titles .product-card__image {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.product-grid--floating-titles .product-card:hover .product-card__image {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}
.product-grid--floating-titles .product-card__body {
    padding: 12px 15px 8px 15px;
}

/* Override min-height for circles/squares in image-only mode */
.product-grid--aspect-circle.hide-titles.hide-descriptions .product-card__image,
.product-grid--aspect-1-1.hide-titles.hide-descriptions .product-card__image {
    min-height: auto;
}

/* Hide titles when setting is off */
.hide-titles .product-card__title {
    display: none;
}

/* Hide descriptions when setting is off */
.hide-descriptions .product-card__text {
    display: none;
}

/* Hide prices when setting is off */
.hide-prices .product-card__price {
    display: none;
}

/* When both titles and descriptions are hidden, hide the entire body and let image fill card */
.hide-titles.hide-descriptions .product-card__body {
    display: none;
}

.hide-titles.hide-descriptions .product-card__image {
    aspect-ratio: auto;
    min-height: 200px;
}

.hide-titles.hide-descriptions .product-card {
    overflow: hidden;
}

.hide-titles.hide-descriptions .product-card__image img {
    border-radius: var(--smx-radius-card);
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.product-card-link:hover {
    text-decoration: none;
}

.product-card {
    background: var(--smx-surface);
    color: var(--smx-on-surface);
    border: var(--smx-card-border);
    outline: var(--smx-card-outline);
    outline-offset: var(--smx-card-outline-offset);
    border-radius: var(--smx-radius-card);
    overflow: hidden;
    box-shadow: var(--smx-card-shadow);
    transition: transform .15s;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card:hover {
    transform: var(--smx-card-hover-transform);
}

.product-card__image {
    position: relative;
    aspect-ratio: 4 / 3;
    background-color: var(--smx-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--smx-card-img-radius);
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s;
}

.product-card:hover .product-card__image img {
    transform: scale(var(--smx-card-img-scale));
}

.product-card__placeholder {
    font-size: 4rem;
    color: var(--smx-card-muted);
}

/* Homepage featured products - aspect ratio maintained, no min-height to allow 4-5 column grids */
.product-card--featured .product-card__image {
    aspect-ratio: 4 / 3;
}

.product-card--featured .product-card__placeholder {
    font-size: 5rem;
}

.product-card--featured .product-card__body {
    padding: 30px;
}

.product-card--featured .product-card__title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.product-card--featured .product-card__text {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

.product-card--featured .product-card__footer {
    padding-top: 20px;
    border-top: 1px solid var(--smx-border);
}

.product-card--featured .product-card__price {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.product-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    background-color: var(--smx-brand);
    color: var(--smx-on-brand);
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--smx-radius-btn);
}

.product-card__body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card__title {
    font-family: var(--smx-font-body);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 10px;
    color: var(--smx-on-surface);
    /* A word wider than its card breaks rather than spilling past the card's edge. */
    overflow-wrap: break-word;
}

/* Homepage categories section */
.homepage-categories {
    padding: calc(40px * var(--smx-space)) 0 !important;
    background: transparent;
}

.homepage-categories__subtitle {
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--smx-text);
    margin-bottom: 30px;
}

/* Homepage category cards - larger, bolder titles */
.homepage-categories .product-card__title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--smx-on-surface);
}

/* ========================================
   Categories Scroll Wrapper & Arrows
   ======================================== */

.categories-scroll-wrapper {
    position: relative;
    width: 100%;
}

/* Scroll arrows - hidden by default, shown when scroll is active */
.scroll-arrow {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--smx-surface);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.2s ease;
    align-items: center;
    justify-content: center;
}

.scroll-arrow:hover {
    background: var(--smx-surface-alt);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.05);
}

.scroll-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.scroll-arrow i {
    font-size: 1.25rem;
    color: var(--smx-on-surface);
}

.scroll-arrow--left {
    left: -22px;
}

.scroll-arrow--right {
    right: -22px;
}

/* Hide arrow when at boundary */
.scroll-arrow.at-start,
.scroll-arrow.at-end {
    opacity: 0.3;
    pointer-events: none;
}

/* Show arrows when scroll wrapper has overflow */
.categories-scroll-wrapper.has-overflow .scroll-arrow {
    display: flex;
}

/* Categories grid centering - centered by default */
.categories-horizontal-scroll.mobile-scroll-enabled {
    justify-content: center;
}

/* When overflow, align to start */
.categories-scroll-wrapper.has-overflow .categories-horizontal-scroll.mobile-scroll-enabled {
    justify-content: flex-start;
}

/* Hide arrows on touch devices / small mobile */
@media (max-width: 576px) {
    .scroll-arrow {
        width: 36px;
        height: 36px;
    }

    .scroll-arrow--left {
        left: -10px;
    }

    .scroll-arrow--right {
        right: -10px;
    }

    .scroll-arrow i {
        font-size: 1rem;
    }
}

/* On very small screens, hide arrows (touch only) */
@media (max-width: 480px) and (hover: none) {
    .scroll-arrow {
        display: none !important;
    }
}

.product-card__text {
    font-size: 0.95rem;
    color: var(--smx-on-surface);
    line-height: 1.5;
    margin: 0 0 15px;
}

.product-card__price {
    font-family: var(--smx-font-body);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--smx-brand);
    margin: 0 0 15px;
}

.product-card__price small {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--smx-card-muted);
}

.product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
}

/* View Details link - subtle secondary styling */
.product-card__link {
    color: var(--smx-card-muted);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.product-card__link:hover {
    color: var(--smx-on-surface);
    text-decoration: none;
}

.product-card__link i {
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.product-card__link:hover i {
    transform: translateX(3px);
}

/* ========================================
   CTA Section
   ======================================== */

.cta {
    padding: 60px 20px;
    text-align: center;
    background: linear-gradient(135deg, var(--smx-brand) 0%, var(--smx-brand-hover) 100%);
    color: var(--smx-on-brand);
}

.cta__title {
    font-family: var(--smx-font-body);
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 20px;
}

.cta__text {
    font-size: 1.1rem;
    margin: 0 0 30px;
    opacity: 0.9;
}

.cta__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* ========================================
   Template Card (for templates page)
   ======================================== */

.template-card {
    background: var(--smx-surface);
    color: var(--smx-on-surface);
    border: var(--smx-card-border);
    border-radius: var(--smx-radius-card);
    overflow: hidden;
    box-shadow: var(--smx-card-shadow);
    transition: transform .15s;
    cursor: pointer;
}

.template-card:hover {
    transform: var(--smx-card-hover-transform);
}

.template-card__image {
    position: relative;
    aspect-ratio: 4/3;
    background-color: var(--smx-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.template-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
}

.template-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.template-card:hover .template-card__overlay {
    opacity: 1;
}

.template-card__body {
    padding: 16px;
    text-align: center;
}

.template-card__title {
    font-family: var(--smx-font-body);
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    color: var(--smx-on-surface);
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 991px) {
    .section {
        padding: calc(60px * var(--smx-space)) 0;
    }

    .section__title {
        font-size: calc(2rem * var(--smx-title-scale));
    }

    .cta__title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .section {
        padding: calc(50px * var(--smx-space)) 0;
    }

    .section__title {
        font-size: calc(1.75rem * var(--smx-title-scale));
    }

    .feature-card {
        padding: 25px;
    }

    .feature-card__icon {
        font-size: 2.5rem;
    }

    .feature-card__title {
        font-size: 1.25rem;
    }

    .cta {
        padding: 50px 15px;
    }

    .cta__title {
        font-size: 1.75rem;
    }

    .cta__actions {
        flex-direction: column;
    }

    .cta__actions .btn {
        width: 100%;
    }
}

/* Responsive - featured products use flexbox */
@media (max-width: 1200px) {
    /* Featured products - 5 col becomes 4 col */
    .product-grid--5:not(.categories-horizontal-scroll) > * {
        flex: 0 1 calc(25% - 22.5px);
    }

    /* The category row keeps every card on one line down to 768px, shrinking the cards to fit (its column setting
       doesn't apply), so the titles shrink too: an uppercase heading in a wide font fits. The phone sizes below
       have the same weight and come later, so they still win. */
    .categories-horizontal-scroll .product-card__title {
        font-size: 1.15rem;
    }
}

@media (max-width: 991px) {
    /* Featured products - switch to 2 columns */
    .product-grid--3:not(.categories-horizontal-scroll) > *,
    .product-grid--4:not(.categories-horizontal-scroll) > *,
    .product-grid--5:not(.categories-horizontal-scroll) > * {
        flex: 0 1 calc(50% - 15px);
        max-width: none;
    }

    /* Reduce min-height on featured cards at tablet to prevent overflow */
    .product-card--featured .product-card__image {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    /* Featured products - 2 col stays 2 col */
    .product-grid--2:not(.categories-horizontal-scroll) > *,
    .product-grid--3:not(.categories-horizontal-scroll) > * {
        flex: 0 1 calc(50% - 15px);
        max-width: none;
    }

    /* Categories horizontal scroll on mobile - switch to flexbox */
    .categories-horizontal-scroll.mobile-scroll-enabled {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 25px;
        padding-bottom: 5px;
    }

    .categories-horizontal-scroll.mobile-scroll-enabled > * {
        flex: 0 0 calc(36% - 12px);
        min-width: calc(36% - 12px);
        max-width: none;
        scroll-snap-align: start;
    }

    /* Reduce circle padding on mobile */
    .categories-horizontal-scroll.mobile-scroll-enabled.product-grid--aspect-circle .product-card-link {
        padding: 2px 0 8px 0;
    }

    /* Hide scrollbar but keep functionality */
    .categories-horizontal-scroll.mobile-scroll-enabled::-webkit-scrollbar {
        height: 0;
    }

    /* Hide category descriptions on tablet/mobile - too much vertical content in horizontal scroll */
    .categories-horizontal-scroll .product-card__text {
        display: none;
    }

    .categories-horizontal-scroll .product-card__body {
        padding: 12px 15px 10px;
    }

    .categories-horizontal-scroll .product-card__title {
        font-size: 1.1rem;
        margin-bottom: 4px;
    }
}

@media (max-width: 576px) {
    /* Featured products - single column */
    .product-grid--2:not(.categories-horizontal-scroll) > *,
    .product-grid--3:not(.categories-horizontal-scroll) > *,
    .product-grid--4:not(.categories-horizontal-scroll) > *,
    .product-grid--5:not(.categories-horizontal-scroll) > * {
        flex: 0 1 100%;
        max-width: none;
    }

    /* Keep horizontal scroll for categories on phones */
    .categories-horizontal-scroll.mobile-scroll-enabled > * {
        flex: 0 0 calc(40% - 10px);
        min-width: calc(40% - 10px);
    }

    /* Reinforce hidden descriptions + compact cards on phones */
    .categories-horizontal-scroll .product-card__text {
        display: none;
    }

    .categories-horizontal-scroll .product-card__body {
        padding: 10px 12px 8px;
    }

    .categories-horizontal-scroll .product-card__title {
        font-size: 1rem;
        margin-bottom: 2px;
    }
}

/* ========================================
   Video Section
   ======================================== */

.video-section {
    overflow: hidden;
}

.video-section:has(.video-wrapper--full) {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* When in Full Width mode, drop the horizontal padding on the inner container so
   the video truly spans edge to edge. The title/subtitle header inside the section
   keeps its own .container wrapper (so headings stay readable). */
.video-section:has(.video-wrapper--full) > .container,
.video-section:has(.video-wrapper--full) > .container-fluid {
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
}

.video-wrapper {
    max-width: 960px;
    margin: 0 auto;
}

.video-wrapper--full {
    max-width: 100%;
}

.video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--smx-radius-card);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.video-wrapper--full .video-responsive {
    border-radius: 0;
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ========================================
   Info Blocks Section
   ======================================== */

.info-blocks-section {
    overflow: hidden;
}

.info-blocks-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.info-blocks-grid > * {
    flex: 1 1 300px;
    max-width: 100%;
}

/* Grid column variations */
.info-blocks-grid--2 > * {
    flex: 0 1 calc(50% - 15px);
    max-width: calc(50% - 15px);
}

.info-blocks-grid--3 > * {
    flex: 0 1 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
}

.info-blocks-grid--4 > * {
    flex: 0 1 calc(25% - 22.5px);
    max-width: calc(25% - 22.5px);
}

.info-block-card {
    background: var(--smx-surface);
    color: var(--smx-on-surface);
    border: var(--smx-card-border);
    outline: var(--smx-card-outline);
    outline-offset: var(--smx-card-outline-offset);
    border-radius: var(--smx-radius-card);
    padding: 30px;
    text-align: center;
    box-shadow: var(--smx-card-shadow);
    transition: transform .15s;
}

.info-block-card:hover {
    transform: var(--smx-card-hover-transform);
}

.info-block-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--smx-brand);
    border-radius: 50%;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--smx-brand) 30%, transparent);
}

.info-block-icon i {
    font-size: 1.75rem;
    color: var(--smx-on-brand);
}

.info-block-title {
    font-family: var(--smx-font-body);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--smx-on-surface);
    margin: 0 0 12px;
}

.info-block-description {
    font-size: 0.95rem;
    color: var(--smx-on-surface);
    line-height: 1.6;
    margin: 0;
}

/* Info Block Icon Style: Solid */
.info-blocks--solid .info-block-icon {
    background: var(--smx-brand);
    box-shadow: none;
}

/* Info Block Icon Style: Icon Only */
.info-blocks--icon-only .info-block-icon {
    background: none;
    box-shadow: none;
    width: auto;
    height: auto;
}

.info-blocks--icon-only .info-block-icon i {
    font-size: 2.5rem;
    color: var(--smx-brand);
}

/* Info Blocks Responsive */
@media (max-width: 991px) {
    .info-blocks-grid--4 > * {
        flex: 0 1 calc(50% - 15px);
        max-width: calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .info-blocks-grid--3 > * {
        flex: 0 1 calc(50% - 15px);
        max-width: calc(50% - 15px);
    }

    .info-block-card {
        padding: 25px;
    }

    .info-block-icon {
        width: 56px;
        height: 56px;
    }

    .info-block-icon i {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .info-blocks-grid--2 > *,
    .info-blocks-grid--3 > *,
    .info-blocks-grid--4 > * {
        flex: 0 1 100%;
        max-width: 100%;
    }

    .video-responsive {
        border-radius: var(--smx-radius-card);
    }
}

@media (prefers-reduced-motion: reduce) {
    .feature-card,
    .product-card,
    .template-card,
    .info-block-card,
    .product-card__image img {
        transition: none;
    }
}
