/* ========================================
   Titan Home - Main Stylesheet
   Design tokens and layout translated from the
   Stitch reference into maintainable CSS.

   Contents
     1.  Design tokens
     2.  Reset
     3.  WordPress / Astra cleanup
     4.  Container
     5.  Buttons
     6.  Section headings
     7.  Header
     8.  Mobile menu
     9.  Hero
     10. Technology strip
     11. Products
     12. Standards
     13. Catalog CTA
     14. Support
     15. Footer
     16. Responsive
   ======================================== */


/* ----------------------------------------
   1. Design tokens
   ---------------------------------------- */

:root {
    --th-surface: #ffffff;
    --th-background: #f9fafb;
    --th-surface-low: #f3f4f6;
    --th-surface-container: #e5e7eb;
    --th-surface-high: #d1d5db;

    --th-text: #111827;
    --th-text-muted: #4b5563;
    --th-text-invert: #ffffff;
    --th-text-invert-muted: #9ca3af;

    --th-outline: #9ca3af;
    --th-outline-light: #e5e7eb;

    --th-primary: #111827;

    --th-blue: #0066ff;
    --th-blue-hover: #0052cc;
    --th-blue-light: #eff6ff;
    --th-blue-border: #dbeafe;

    --th-container: 1280px;
    --th-header-height: 76px;

    --th-radius-sm: 8px;
    --th-radius-md: 12px;
    --th-radius-lg: 16px;
    --th-radius-xl: 24px;

    --th-shadow-card: 0 12px 40px rgba(17, 24, 39, 0.12);
}


/* ----------------------------------------
   2. Reset
   ---------------------------------------- */

html {
    scroll-behavior: smooth;
    /* Keep anchored sections clear of the fixed header. */
    scroll-padding-top: calc(var(--th-header-height) + 16px);
}

body {
    margin: 0;
    background: var(--th-background);
    color: var(--th-text);
    font-family: "Vazirmatn", sans-serif;
    direction: rtl;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

:focus-visible {
    outline: 2px solid var(--th-blue);
    outline-offset: 2px;
}


/* ----------------------------------------
   3. WordPress / Astra cleanup
   ---------------------------------------- */

.site-content,
.ast-container {
    width: 100%;
    max-width: none;
    padding: 0;
}

/* Astra applies 4em of vertical padding to the primary column. */
#primary,
.site-main {
    margin: 0;
    padding: 0;
}

.entry-content {
    margin: 0;
}


/* ----------------------------------------
   4. Container
   ---------------------------------------- */

.titanhome-container {
    width: min(
        calc(100% - 48px),
        var(--th-container)
    );

    margin-inline: auto;
}


/* ----------------------------------------
   5. Buttons
   ---------------------------------------- */

.titanhome-button {
    min-height: 50px;
    padding: 0 22px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    border: 1px solid transparent;
    border-radius: var(--th-radius-sm);

    font-size: 14px;
    font-weight: 600;
    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.titanhome-button:hover {
    transform: translateY(-1px);
}

.titanhome-button-primary {
    background: var(--th-blue);
    color: var(--th-text-invert);
}

.titanhome-button-primary:hover {
    background: var(--th-blue-hover);
    color: var(--th-text-invert);
}

.titanhome-button-secondary {
    border-color: var(--th-outline-light);
    background: var(--th-surface);
    color: var(--th-text);
}

.titanhome-button-secondary:hover {
    border-color: var(--th-outline);
    color: var(--th-text);
}

.titanhome-button .material-symbols-outlined {
    font-size: 20px;
}

/* Inverted button for dark panels. */
.titanhome-button-invert {
    background: var(--th-surface);
    color: var(--th-text);
}

.titanhome-button-invert:hover {
    background: var(--th-surface-low);
    color: var(--th-text);
}


/* ----------------------------------------
   6. Section headings
   ---------------------------------------- */

.titanhome-section {
    padding-block: 96px;
}

.titanhome-section-heading {
    max-width: 640px;
    margin-bottom: 56px;

    display: flex;
    flex-direction: column;
    gap: 14px;
}

.titanhome-eyebrow {
    color: var(--th-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.titanhome-section-heading h2 {
    margin: 0;

    color: var(--th-text);
    font-size: clamp(28px, 3.2vw, 40px);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.titanhome-section-heading p {
    margin: 0;

    color: var(--th-text-muted);
    font-size: 15px;
    line-height: 2;
}


/* ----------------------------------------
   7. Header
   ---------------------------------------- */

.titanhome-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;

    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--th-outline-light);

    backdrop-filter: blur(12px);
}

.titanhome-header-inner {
    width: min(
        calc(100% - 48px),
        var(--th-container)
    );

    min-height: var(--th-header-height);
    margin-inline: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

/* Logo */

.titanhome-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.titanhome-logo-image {
    width: auto;
    height: 28px;
    max-width: 150px;
    object-fit: contain;
}

.titanhome-logo-text {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
}

.titanhome-logo-subtitle {
    color: var(--th-text-muted);
    font-size: 11px;
    font-weight: 500;
}

/* Navigation */

.titanhome-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;

    flex: 1;
}

.titanhome-nav a {
    color: var(--th-text-muted);
    font-size: 14px;
    font-weight: 500;

    transition: color 0.2s ease;
}

.titanhome-nav a:hover {
    color: var(--th-text);
}

/* Header actions */

.titanhome-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.titanhome-language {
    padding: 0;

    border: 0;
    background: transparent;
    color: var(--th-text-muted);

    cursor: pointer;
    font-size: 13px;
}

.titanhome-language:hover {
    color: var(--th-text);
}

.titanhome-catalog-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;
    padding: 0 18px;

    border-radius: var(--th-radius-sm);

    background: var(--th-blue);
    color: var(--th-text-invert);

    font-size: 13px;
    font-weight: 600;

    transition: background 0.2s ease;
}

.titanhome-catalog-button:hover {
    background: var(--th-blue-hover);
}

.titanhome-menu-button {
    display: none;

    width: 42px;
    height: 42px;

    align-items: center;
    justify-content: center;

    border: 1px solid var(--th-outline-light);
    border-radius: var(--th-radius-sm);

    background: var(--th-surface);
    color: var(--th-text);

    cursor: pointer;
}

.titanhome-menu-button:hover {
    border-color: var(--th-outline);
}

/* Header cart with count badge. */
.titanhome-cart-link {
    position: relative;

    width: 42px;
    height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--th-outline-light);
    border-radius: var(--th-radius-sm);

    background: var(--th-surface);
    color: var(--th-text);
}

.titanhome-cart-link:hover {
    border-color: var(--th-outline);
}

.titanhome-cart-count {
    position: absolute;
    top: -8px;
    inset-inline-end: -8px;

    min-width: 20px;
    height: 20px;
    padding: 0 5px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 999px;
    background: var(--th-blue);
    color: var(--th-text-invert);

    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

/* Cart row inside the mobile menu panel (matches sibling link rows). */
.titanhome-cart-link-menu {
    width: auto;
    height: auto;
    padding-block: 14px;
    background: transparent;
    gap: 8px;
    justify-content: flex-start;
    font-size: 15px;
    font-weight: 500;
}

.titanhome-cart-link-menu .titanhome-cart-count {
    position: static;
}


/* ----------------------------------------
   8. Mobile menu
   ---------------------------------------- */

.titanhome-mobile-menu {
    display: none;

    border-top: 1px solid var(--th-outline-light);
    background: var(--th-surface);
}

.titanhome-mobile-menu[hidden] {
    display: none;
}

.titanhome-mobile-menu-inner {
    width: min(
        calc(100% - 48px),
        var(--th-container)
    );

    margin-inline: auto;
    padding-block: 16px;

    display: flex;
    flex-direction: column;
}

.titanhome-mobile-menu a {
    padding-block: 14px;

    border-bottom: 1px solid var(--th-outline-light);

    color: var(--th-text);
    font-size: 15px;
    font-weight: 500;
}

.titanhome-mobile-menu a:last-of-type {
    border-bottom: 0;
}

.titanhome-mobile-menu .titanhome-catalog-button {
    margin-top: 16px;
    min-height: 46px;
}


/* ----------------------------------------
   9. Hero
   ---------------------------------------- */

.titanhome-hero {
    position: relative;
    min-height: 760px;
    padding-top: var(--th-header-height);
    overflow: hidden;
}

.titanhome-hero-grid {
    min-height: 684px;

    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 64px;
}

/* Hero content */

.titanhome-hero-content {
    position: relative;
    z-index: 2;
}

.titanhome-hero-badge {
    width: fit-content;
    margin-bottom: 24px;
    padding: 8px 14px;

    display: inline-flex;
    align-items: center;
    gap: 7px;

    border: 1px solid var(--th-blue-border);
    border-radius: 999px;

    background: var(--th-blue-light);
    color: var(--th-blue);

    font-size: 12px;
    font-weight: 600;
}

.titanhome-hero-badge .material-symbols-outlined {
    font-size: 18px;
}

.titanhome-hero-badge strong {
    font-weight: 800;
}

.titanhome-hero h1 {
    max-width: 700px;
    margin: 0 0 24px;

    color: var(--th-text);

    font-size: clamp(44px, 5vw, 72px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.titanhome-hero h1 span {
    display: block;
    color: var(--th-blue);
}

.titanhome-hero-content > p {
    max-width: 600px;
    margin: 0 0 36px;

    color: var(--th-text-muted);

    font-size: 17px;
    font-weight: 400;
    line-height: 2;
}

/* Hero buttons */

.titanhome-hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 52px;
}

/* Hero metrics */

.titanhome-hero-metrics {
    display: flex;
    align-items: stretch;
}

.titanhome-metric {
    min-width: 120px;
    padding-inline: 24px;

    display: flex;
    flex-direction: column;
    gap: 5px;

    border-inline-start: 1px solid var(--th-outline-light);
}

.titanhome-metric:first-child {
    padding-inline-start: 0;
    border-inline-start: 0;
}

.titanhome-metric strong {
    color: var(--th-text);
    font-size: 18px;
    font-weight: 800;
}

.titanhome-metric span {
    color: var(--th-text-muted);
    font-size: 11px;
}

/* Hero visual */

.titanhome-hero-visual {
    position: relative;
    min-height: 560px;
}

.titanhome-hero-image {
    position: absolute;
    inset: 0;

    overflow: hidden;

    border-radius: 32px;
    background: var(--th-surface-container);
}

.titanhome-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hero callouts */

.titanhome-hero-callout {
    position: absolute;
    z-index: 3;

    min-width: 190px;
    padding: 14px 16px;

    display: flex;
    align-items: center;
    gap: 12px;

    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--th-radius-md);

    background: rgba(255, 255, 255, 0.94);

    box-shadow: var(--th-shadow-card);

    backdrop-filter: blur(12px);
}

.titanhome-hero-callout > .material-symbols-outlined {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: var(--th-blue-light);
    color: var(--th-blue);

    font-size: 21px;
}

.titanhome-hero-callout div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.titanhome-hero-callout strong {
    color: var(--th-text);
    font-size: 14px;
    font-weight: 800;
}

.titanhome-hero-callout div span {
    color: var(--th-text-muted);
    font-size: 10px;
}

.titanhome-callout-temperature {
    top: 48px;
    right: -24px;
}

.titanhome-callout-material {
    bottom: 48px;
    left: -24px;
}


/* ----------------------------------------
   10. Technology strip
   ---------------------------------------- */

.titanhome-technology-strip {
    border-top: 1px solid var(--th-outline-light);
    border-bottom: 1px solid var(--th-outline-light);
    background: var(--th-surface);
}

.titanhome-technology-strip .titanhome-container {
    min-height: 130px;

    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: center;
    gap: 48px;
}

.titanhome-technology-intro {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.titanhome-technology-intro span {
    color: var(--th-blue);
    font-size: 11px;
    font-weight: 700;
}

.titanhome-technology-intro strong {
    font-size: 15px;
    font-weight: 800;
}

.titanhome-technology-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.titanhome-technology-items > div {
    min-height: 60px;
    padding-inline: 20px;

    display: flex;
    align-items: center;
    gap: 10px;

    border-inline-start: 1px solid var(--th-outline-light);
}

.titanhome-technology-items > div:first-child {
    border-inline-start: 0;
}

.titanhome-technology-items .material-symbols-outlined {
    color: var(--th-blue);
    font-size: 22px;
}

.titanhome-technology-items strong {
    color: var(--th-text);
    font-size: 11px;
    font-weight: 600;
}


/* ----------------------------------------
   11. Products
   ---------------------------------------- */

.titanhome-products {
    background: var(--th-background);
}

.titanhome-product {
    padding: 32px;

    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: center;
    gap: 44px;

    border: 1px solid var(--th-outline-light);
    border-radius: var(--th-radius-xl);

    background: var(--th-surface);
}

.titanhome-product + .titanhome-product {
    margin-top: 32px;
}

/* Alternate the image side so the two cards do not read as a repeated block. */
.titanhome-product-reverse .titanhome-product-media {
    order: 2;
}

.titanhome-product-media {
    position: relative;

    min-height: 320px;
    max-height: 420px;
    overflow: hidden;

    border-radius: var(--th-radius-lg);
    background: var(--th-surface-low);
}

.titanhome-product-media img {
    width: 100%;
    height: 100%;

    position: absolute;
    inset: 0;

    object-fit: cover;
}

.titanhome-product-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.titanhome-product-category {
    width: fit-content;
    padding: 6px 12px;

    border-radius: 999px;

    background: var(--th-blue-light);
    color: var(--th-blue);

    font-size: 11px;
    font-weight: 700;
}

.titanhome-product-body h3 {
    margin: 0;

    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.titanhome-product-body > p {
    margin: 0;

    color: var(--th-text-muted);
    font-size: 15px;
    line-height: 2;
}

.titanhome-product-features {
    margin: 0;
    padding: 0;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 20px;

    list-style: none;
}

.titanhome-product-features li {
    display: flex;
    align-items: center;
    gap: 8px;

    color: var(--th-text);
    font-size: 13px;
}

.titanhome-product-features .material-symbols-outlined {
    color: var(--th-blue);
    font-size: 19px;
}

.titanhome-product-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
}

/* Live data row: SKU + price pulled from WooCommerce. */
.titanhome-product-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.titanhome-product-sku {
    color: var(--th-text-muted);
    font-size: 13px;
}

.titanhome-product-price {
    font-size: 19px;
    font-weight: 800;
}

.titanhome-product-price del {
    color: var(--th-text-muted);
    font-weight: 400;
    font-size: 15px;
}

/* Installment hint + dark (Digikala) button. */
.titanhome-product-installment {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 13.5px;
    font-weight: 700;
}

.titanhome-product-installment .material-symbols-outlined {
    color: var(--th-blue);
    font-size: 21px;
}

.titanhome-button-dark {
    background: var(--th-text);
    color: var(--th-text-invert);
}

.titanhome-button-dark:hover {
    background: #000;
    color: var(--th-text-invert);
}

.titanhome-product-details {
    /* The card is a two-column grid; the details row spans both. */
    grid-column: 1 / -1;

    margin-top: 24px;
    padding-top: 32px;
    border-top: 1px solid var(--th-outline-light);

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.titanhome-product-detail {
    padding: 22px 24px;

    border: 1px solid var(--th-outline-light);
    border-radius: var(--th-radius-md);

    background: var(--th-surface);
}

.titanhome-product-detail .material-symbols-outlined {
    color: var(--th-blue);
    font-size: 24px;
}

.titanhome-product-detail strong {
    display: block;
    margin-top: 12px;

    font-size: 14px;
    font-weight: 800;
}

.titanhome-product-detail span {
    display: block;
    margin-top: 8px;

    color: var(--th-text-muted);
    font-size: 13px;
    line-height: 1.9;
}


/* ----------------------------------------
   12. Standards
   ---------------------------------------- */

.titanhome-standards {
    border-top: 1px solid var(--th-outline-light);
    background: var(--th-surface);
}

.titanhome-standards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.titanhome-standard-card {
    padding: 32px 28px;

    border: 1px solid var(--th-outline-light);
    border-radius: var(--th-radius-lg);

    background: var(--th-surface-low);
}

.titanhome-standard-card > .material-symbols-outlined {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: var(--th-radius-sm);

    background: var(--th-surface);
    color: var(--th-blue);

    font-size: 25px;
}

.titanhome-standard-card h3 {
    margin: 20px 0 10px;

    font-size: 17px;
    font-weight: 800;
}

.titanhome-standard-card p {
    margin: 0;

    color: var(--th-text-muted);
    font-size: 14px;
    line-height: 2;
}


/* ----------------------------------------
   13. Catalog CTA
   ---------------------------------------- */

.titanhome-catalog {
    background: var(--th-primary);
    color: var(--th-text-invert);
}

.titanhome-catalog-inner {
    padding-block: 88px;

    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
    gap: 56px;
}

.titanhome-catalog-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.titanhome-catalog-content .titanhome-eyebrow {
    color: #7aa7ff;
}

.titanhome-catalog-content h2 {
    margin: 0;

    color: var(--th-text-invert);
    font-size: clamp(28px, 3.2vw, 42px);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.titanhome-catalog-content p {
    max-width: 560px;
    margin: 0;

    color: var(--th-text-invert-muted);
    font-size: 15px;
    line-height: 2;
}

.titanhome-catalog-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.titanhome-catalog-list {
    margin: 0;
    padding: 0;

    display: flex;
    flex-direction: column;
    gap: 14px;

    list-style: none;
}

.titanhome-catalog-list li {
    padding: 18px 20px;

    display: flex;
    align-items: center;
    gap: 12px;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--th-radius-md);

    background: rgba(255, 255, 255, 0.04);

    color: #e5e7eb;
    font-size: 14px;
}

.titanhome-catalog-list .material-symbols-outlined {
    color: #7aa7ff;
    font-size: 22px;
}


/* ----------------------------------------
   14. Support
   ---------------------------------------- */

.titanhome-support-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.titanhome-support-card {
    padding: 32px 28px;

    display: flex;
    flex-direction: column;
    gap: 12px;

    border: 1px solid var(--th-outline-light);
    border-radius: var(--th-radius-lg);

    background: var(--th-surface);
}

.titanhome-support-card .material-symbols-outlined {
    color: var(--th-blue);
    font-size: 26px;
}

.titanhome-support-card h3 {
    margin: 0;

    font-size: 16px;
    font-weight: 800;
}

.titanhome-support-card p {
    margin: 0;

    color: var(--th-text-muted);
    font-size: 13px;
    line-height: 2;
}


/* ----------------------------------------
   15. Footer
   ---------------------------------------- */

.titanhome-footer {
    margin-top: 80px;
    background: var(--th-primary);
    color: var(--th-text-invert);
}

.titanhome-footer-inner {
    width: min(
        calc(100% - 48px),
        var(--th-container)
    );

    margin-inline: auto;
    padding-block: 64px 48px;

    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 40px;
}

.titanhome-footer-brand p {
    margin: 12px 0 0;
    color: var(--th-text-invert-muted);
    font-size: 14px;
    line-height: 1.9;
}

.titanhome-footer-legal {
    font-size: 12px;
}

.titanhome-footer-column {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.titanhome-footer-column h3 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 700;
}

.titanhome-footer-column a {
    color: var(--th-text-invert-muted);
    font-size: 13px;

    transition: color 0.2s ease;
}

.titanhome-footer-column a:hover {
    color: var(--th-text-invert);
}

.titanhome-footer-contact span {
    color: var(--th-text-invert-muted);
    font-size: 13px;
    line-height: 2;
}

.titanhome-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.titanhome-footer-bottom-inner {
    width: min(
        calc(100% - 48px),
        var(--th-container)
    );

    margin: 0 auto;
    padding-block: 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    flex-wrap: wrap;
}

.titanhome-footer-bottom p {
    margin: 0;
    color: var(--th-text-invert-muted);
    font-size: 12px;
}

.titanhome-footer-bottom nav {
    display: flex;
    gap: 20px;
}

.titanhome-footer-bottom nav a {
    color: var(--th-text-invert-muted);
    font-size: 12px;
}

.titanhome-footer-bottom nav a:hover {
    color: var(--th-text-invert);
}


/* ----------------------------------------
   15b. Front-page shop grid (live Woo products)
   ---------------------------------------- */

/*
 * Size controls — tweak these two values to resize the cards, no other
 * edits needed:
 *   --th-shop-cols : columns on desktop (4 = compact, 3 = large, 2 = hero)
 *   --th-shop-media: card image ratio (4/3 = compact, 1/1 = square/large)
 */

.titanhome-shop-section {
    --th-shop-cols: 4;
    --th-shop-media: 4 / 3;
}

.titanhome-shop-grid {
    display: grid;
    grid-template-columns: repeat(var(--th-shop-cols), minmax(0, 1fr));
    gap: 20px;
}

.titanhome-shop-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--th-surface);
    border: 1px solid var(--th-outline-light);
    border-radius: var(--th-radius-md);
}

.titanhome-shop-card-media {
    display: block;
    aspect-ratio: var(--th-shop-media);
    overflow: hidden;
    background: var(--th-surface-low);
}

.titanhome-shop-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.titanhome-shop-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    flex: 1;
}

.titanhome-shop-card-body h3 {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
}

.titanhome-shop-card-body h3 a:hover {
    color: var(--th-blue);
}

.titanhome-shop-price {
    font-size: 15px;
    font-weight: 800;
}

.titanhome-shop-price del {
    color: var(--th-text-muted);
    font-weight: 400;
}

.titanhome-shop-card-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
}

.titanhome-shop-card-actions .titanhome-button {
    flex: 1;
    min-height: 44px;
    padding: 0 12px;
    font-size: 13px;
    white-space: nowrap;
}


/* ----------------------------------------
   16. Responsive
   ---------------------------------------- */

@media (max-width: 1100px) {

    .titanhome-hero-grid {
        gap: 40px;
    }

    .titanhome-hero-callout {
        min-width: 170px;
    }

    .titanhome-callout-temperature {
        right: -10px;
    }

    .titanhome-callout-material {
        left: -10px;
    }

    .titanhome-technology-strip .titanhome-container {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-block: 28px;
    }

    .titanhome-product {
        gap: 40px;
        padding: 32px;
    }

    .titanhome-catalog-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}


/* Astra collapses its own header at 921.99px; match it so the two never overlap. */
@media (max-width: 921.98px) {

    :root {
        --th-header-height: 68px;
    }

    .titanhome-nav {
        display: none;
    }

    .titanhome-menu-button {
        display: inline-flex;
    }

    /* The catalog CTA moves into the mobile menu panel. */
    .titanhome-header-actions .titanhome-catalog-button {
        display: none;
    }

    .titanhome-mobile-menu:not([hidden]) {
        display: block;
    }

    .titanhome-hero {
        min-height: auto;
    }

    .titanhome-hero-grid {
        min-height: auto;
        grid-template-columns: 1fr;
        padding-block: 72px;
    }

    .titanhome-hero-content {
        text-align: center;
    }

    .titanhome-hero-badge,
    .titanhome-hero h1,
    .titanhome-hero-content > p {
        margin-inline: auto;
    }

    .titanhome-hero-actions,
    .titanhome-hero-metrics {
        justify-content: center;
    }

    .titanhome-hero-visual {
        min-height: 480px;
    }

    .titanhome-technology-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 0;
    }

    .titanhome-technology-items > div:nth-child(3) {
        border-inline-start: 0;
    }

    .titanhome-product,
    .titanhome-product-reverse {
        grid-template-columns: 1fr;
    }

    .titanhome-product-reverse .titanhome-product-media {
        order: 0;
    }

    .titanhome-product-media {
        min-height: 300px;
    }

    .titanhome-product-details,
    .titanhome-standards-grid,
    .titanhome-support-grid,
    .titanhome-shop-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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


@media (max-width: 600px) {

    .titanhome-container,
    .titanhome-header-inner,
    .titanhome-mobile-menu-inner,
    .titanhome-footer-inner,
    .titanhome-footer-bottom-inner {
        width: min(
            calc(100% - 32px),
            var(--th-container)
        );
    }

    .titanhome-logo-subtitle,
    .titanhome-language {
        display: none;
    }

    .titanhome-section {
        padding-block: 64px;
    }

    .titanhome-section-heading {
        margin-bottom: 36px;
    }

    .titanhome-hero-grid {
        padding-block: 48px;
    }

    .titanhome-hero h1 {
        font-size: 40px;
    }

    .titanhome-hero-content > p {
        font-size: 15px;
    }

    .titanhome-hero-actions {
        flex-direction: column;
    }

    .titanhome-button {
        width: 100%;
    }

    .titanhome-hero-metrics {
        width: 100%;
    }

    .titanhome-metric {
        min-width: 0;
        flex: 1;
        padding-inline: 12px;
    }

    .titanhome-metric strong {
        font-size: 15px;
    }

    .titanhome-metric span {
        font-size: 9px;
    }

    .titanhome-hero-visual {
        min-height: 360px;
    }

    .titanhome-hero-callout {
        min-width: 150px;
        padding: 10px;
    }

    .titanhome-callout-temperature {
        top: 20px;
        right: 10px;
    }

    .titanhome-callout-material {
        bottom: 20px;
        left: 10px;
    }

    .titanhome-technology-items {
        grid-template-columns: 1fr;
    }

    .titanhome-technology-items > div,
    .titanhome-technology-items > div:nth-child(3) {
        border-inline-start: 0;
        border-bottom: 1px solid var(--th-outline-light);
        padding-block: 14px;
    }

    .titanhome-technology-items > div:last-child {
        border-bottom: 0;
    }

    .titanhome-product {
        padding: 20px;
    }

    .titanhome-product-media {
        min-height: 260px;
    }

    .titanhome-product-body h3 {
        font-size: 24px;
    }

    .titanhome-product-features,
    .titanhome-product-details,
    .titanhome-standards-grid,
    .titanhome-support-grid,
    .titanhome-shop-grid {
        grid-template-columns: 1fr;
    }

    .titanhome-product-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .titanhome-catalog-inner {
        padding-block: 64px;
    }

    .titanhome-catalog-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .titanhome-footer-inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}