/**
 * TerraTrove Plugin — Frontend Styles v2.0.0
 * Uses terra-trove theme CSS vars directly: --ink, --paper, --stone, --moss,
 * --font-serif, --font-sans, --font-mono, --line, --gutter, --max-content.
 * No font import — theme already loads Cormorant Garamond + Geist + Geist Mono.
 * Blog styles removed — handled entirely by theme main.css + single.php.
 */

/* ── Utilities ─────────────────────────────────────────────────────────────── */

body.tt-offcanvas-open { position: fixed; width: 100%; overflow: hidden; }

:root {
    --tt-alert: #b84f45;
}

.tt-sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0;
    margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

/* ── Contact form ──────────────────────────────────────────────────────────── */

.tt-contact-form { width: 100%; margin: 0; padding: 0; background: transparent; border: 0; }

.tt-form-group { margin-bottom: 28px; }

.tt-form-group label {
    display: block; margin-bottom: 10px;
    font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--ink-3); font-weight: 400;
}

.tt-form-group label .required { color: var(--moss); margin-left: 2px; }

.tt-form-group input[type="text"],
.tt-form-group input[type="email"],
.tt-form-group input[type="tel"],
.tt-form-group input[type="date"],
.tt-form-group textarea {
    width: 100%; padding: 10px 0;
    border: 0; border-bottom: 1px solid var(--ink); border-radius: 0;
    background: transparent; color: var(--ink);
    font-family: var(--font-sans); font-size: 16px;
    transition: border-color 200ms ease;
}

.tt-form-group input:focus,
.tt-form-group textarea:focus { outline: none; border-bottom-color: var(--moss); }

.tt-form-group textarea { min-height: 110px; resize: vertical; }

.tt-form-group input::placeholder,
.tt-form-group textarea::placeholder { color: var(--ink-4); opacity: 1; }

.tt-form-group .error-message {
    font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--tt-alert); margin-top: 7px; display: none;
    line-height: 1.45;
}

.tt-form-group.has-error .error-message { display: block; }
.tt-form-group.has-error input,
.tt-form-group.has-error textarea { border-bottom-color: var(--tt-alert); }

.tt-visit-option { display: flex; gap: 20px; margin-top: 8px; }

.tt-visit-option label {
    display: flex; align-items: center; gap: 8px;
    font-family: var(--font-sans); font-size: 15px;
    text-transform: none; color: var(--ink-2); cursor: pointer; font-weight: 400;
}

.tt-visit-date-group { margin-top: 16px; display: none; }
.tt-visit-date-group.show { display: block; }

.tt-form-submit {
    display: inline-flex; align-items: center; gap: 14px;
    margin: 24px 0 0; padding: 14px 26px;
    border: 1px solid var(--ink); background: transparent; color: var(--ink);
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em;
    text-transform: uppercase; font-weight: 400; cursor: pointer;
    transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
}

.tt-form-submit:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.tt-form-submit:disabled { opacity: 0.4; cursor: not-allowed; }

.tt-form-message {
    padding: 12px 0; margin-bottom: 24px;
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
    text-transform: uppercase; display: none;
    border-top: 1px solid var(--line);
}

.tt-form-message.success { color: var(--moss); display: block; }
.tt-form-message.error   { color: var(--tt-alert); display: block; }

/* Contact info column */

.tt-contact-info { background: transparent; border: 0; padding: 0; }

.tt-contact-info__title {
    margin: 0 0 32px;
    font-family: var(--font-serif); font-size: clamp(28px,3vw,40px);
    font-weight: 300; letter-spacing: -0.01em; color: var(--ink); line-height: 1.1;
}

.tt-contact-info__title::after { display: none; }
.tt-contact-info__icon { display: none; }

.tt-contact-info__list { display: flex; flex-direction: column; }

.tt-contact-info__item {
    display: flex; flex-direction: column; gap: 4px;
    padding: 20px 0; border-top: 1px solid var(--line);
}

.tt-contact-info__label {
    font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px;
}

.tt-contact-info__value {
    font-family: var(--font-serif); font-size: clamp(18px,1.8vw,24px);
    font-weight: 300; letter-spacing: -0.005em; color: var(--ink); line-height: 1.3;
}

.tt-contact-info__link { color: var(--ink); text-decoration: none; transition: color 200ms ease; }
.tt-contact-info__link:hover { color: var(--moss); }

.tt-contact-columns,
.tt-contact-columns .wp-block-columns,
.tt-contact-columns .elementor-container {
    display: flex; gap: clamp(40px,5vw,80px); align-items: stretch;
}

.tt-contact-columns .wp-block-column,
.tt-contact-columns .elementor-column,
.tt-contact-columns .elementor-widget-wrap { display: flex; flex-direction: column; }

.tt-contact-columns .tt-contact-info,
.tt-contact-columns .tt-contact-form { flex: 1; }

/* ── Products grid ─────────────────────────────────────────────────────────── */

.tt-products-frontend {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(250px,1fr));
    gap: var(--pgap-col,clamp(16px,2vw,24px));
}

.tt-products-grid-2 { grid-template-columns: repeat(2,1fr); }
.tt-products-grid-3 { grid-template-columns: repeat(3,1fr); }
.tt-products-grid-4 { grid-template-columns: repeat(4,1fr); }

.tt-products-section { background: var(--paper); padding: clamp(28px,4vw,48px) 0; }

.tt-products-section-header { text-align: center; margin-bottom: clamp(40px,5vw,64px); }

.tt-products-category-title {
    font-family: var(--font-serif); font-weight: 300;
    font-size: clamp(34px,4.4vw,60px); line-height: 1.05;
    letter-spacing: -0.012em; color: var(--ink); margin: 0 0 14px;
}

.tt-products-category-subtitle {
    font-family: var(--font-serif); font-style: italic; font-weight: 300;
    font-size: clamp(18px,1.8vw,26px); line-height: 1.35; color: var(--ink-2); margin: 0;
}

body.tt-products-page,
body.tt-products-page #main { background: var(--paper); }

/* Toolbar & filters */

.tt-products-toolbar {
    position: relative; z-index: 30;
    display: flex; align-items: center; justify-content: space-between; gap: 18px;
    border-top: 1px solid var(--line); padding-top: 16px;
    margin: 0 0 clamp(28px,3.4vw,44px); flex-wrap: wrap;
}

.tt-products-count {
    font-family: var(--font-mono); font-size: 11px;
    letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3);
}

.tt-products-filterbar {
    display: flex; align-items: center; justify-content: flex-end;
    gap: 16px; margin-left: auto; flex-wrap: nowrap; min-width: 0;
}
.tt-filter-selects { display: flex; align-items: center; gap: 12px; flex-wrap: nowrap; min-width: 0; }
.tt-filter-select { position: relative; flex: 0 0 260px; min-width: 260px; }

.tt-filter-toggle {
    display: inline-flex; align-items: center; justify-content: space-between; gap: 12px;
    width: 100%; min-height: 42px; max-width: none; padding: 11px 16px;
    border: 1px solid var(--line); background: rgba(247,245,239,0.58); color: var(--ink);
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em;
    text-transform: uppercase; cursor: pointer;
    transition: border-color 200ms ease, color 200ms ease, background 200ms ease;
}

.tt-filter-toggle span {
    display: block; min-width: 0; overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap;
}

.tt-filter-toggle::after {
    content: ""; width: 14px; height: 14px; display: inline-block; flex: 0 0 14px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>") center / 14px 14px no-repeat;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>") center / 14px 14px no-repeat;
    opacity: 0.62;
}

.tt-filter-select.is-open .tt-filter-toggle,
.tt-filter-toggle:hover { border-color: var(--ink); color: var(--ink); background: var(--paper); }

.tt-filter-panel {
    position: absolute; right: 0; top: calc(100% + 8px);
    width: 100%; min-width: 260px; max-width: min(340px, calc(100vw - 40px));
    max-height: 280px; overflow: auto;
    background: var(--paper); border: 1px solid var(--line);
    box-shadow: 0 18px 34px rgba(21,23,15,0.08);
    padding: 12px; display: none; z-index: 120;
}

.tt-filter-select.is-open .tt-filter-panel { display: block; }

.tt-filter-option {
    display: flex; align-items: center; gap: 10px; padding: 8px 4px;
    cursor: pointer; user-select: none; font-family: var(--font-sans);
    font-size: 13px; line-height: 1.35; color: var(--ink);
}

.tt-filter-option input {
    width: 14px; height: 14px; margin: 0; accent-color: var(--moss);
    flex: 0 0 auto;
}

.tt-filter-option span { min-width: 0; overflow-wrap: anywhere; }

.tt-filter-actions {
    display: flex; align-items: center; justify-content: flex-end; gap: 14px;
    min-height: 42px;
}

.tt-filter-apply {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 42px; padding: 11px 20px;
    border: 1px solid var(--ink); background: transparent; color: var(--ink);
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em;
    text-transform: uppercase; cursor: pointer;
    transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
}

.tt-filter-apply:hover { color: var(--paper); background: var(--ink); border-color: var(--ink); }

.tt-filter-clear {
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--ink-3); text-decoration: none;
    border-bottom: 1px solid transparent; transition: color 200ms ease, border-color 200ms ease;
}

.tt-filter-clear:hover { color: var(--ink); border-color: var(--line); }

@media (max-width:1200px) { .tt-products-grid-4 { grid-template-columns: repeat(3,1fr); } }

@media (max-width:768px) {
    .tt-products-grid-3,
    .tt-products-grid-4 { grid-template-columns: repeat(2,1fr); }
    .tt-products-toolbar { align-items: flex-start; gap: 14px; }
    .tt-products-filterbar { width: 100%; justify-content: flex-start; margin-left: 0; flex-wrap: wrap; }
    .tt-filter-selects { width: 100%; align-items: stretch; flex-wrap: wrap; }
    .tt-filter-select { flex: 1 1 180px; min-width: min(220px, 100%); }
    .tt-filter-toggle { width: 100%; max-width: none; }
    .tt-filter-panel { right: auto; left: 0; }
    .tt-filter-actions { justify-content: flex-start; }
}

@media (max-width:480px) {
    .tt-products-grid-2,
    .tt-products-grid-3,
    .tt-products-grid-4 { grid-template-columns: repeat(2,1fr); }
}

/* ── Product card ──────────────────────────────────────────────────────────── */

.tt-product-card {
    background: transparent; display: block; text-decoration: none;
    color: inherit; cursor: pointer; overflow: hidden;
}

.tt-product-card:focus { outline: none; }
.tt-product-card:focus-visible { outline: 1px solid var(--ink); outline-offset: 2px; }

.tt-product-image-wrapper {
    width: 100%; aspect-ratio: 3/4; overflow: hidden;
    background: var(--stone); margin-bottom: 16px;
}

.tt-product-card img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform 400ms ease;
}

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

.tt-product-info { padding: 0 0 clamp(28px,3.4vw,44px); }

.tt-product-card h3,
.tt-product-title {
    margin: 0; font-family: var(--font-serif); font-weight: 400;
    font-size: clamp(20px,1.6vw,24px); line-height: 1.2;
    letter-spacing: -0.005em; color: var(--ink); transition: color 200ms ease;
}

.tt-products-frontend .tt-product-card h3 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tt-product-card:hover h3 { color: var(--moss); }
.tt-product-date { display: none; }

.tt-product-card p { padding: 0; margin: 6px 0 0; color: var(--ink-3); font-size: 14.5px; line-height: 1.6; }

.tt-products-empty {
    text-align: center; padding: clamp(48px,7vw,80px) 20px; color: var(--ink-3);
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
}

/* ── Product category tiles ────────────────────────────────────────────────── */

.tt-product-categories-section { margin: 0; padding: 0; border: 0; }

.tt-product-categories-header { text-align: center; margin-bottom: clamp(40px,5vw,64px); }

.tt-product-categories-title {
    font-family: var(--font-serif); font-weight: 300;
    font-size: clamp(34px,4.4vw,60px); line-height: 1.05;
    letter-spacing: -0.012em; color: var(--ink); margin: 0 0 14px;
}

.tt-product-categories-subtitle {
    font-family: var(--font-serif); font-style: italic; font-weight: 300;
    font-size: clamp(18px,1.8vw,26px); line-height: 1.35; color: var(--ink-2); margin: 0;
}

.tt-product-categories-frontend {
    display: grid; grid-template-columns: repeat(2,1fr);
    gap: clamp(20px,2.4vw,32px); width: 100%;
}

.tt-product-category-card {
    position: relative; aspect-ratio: 1/1; overflow: hidden; display: block;
    background: var(--stone); text-decoration: none; color: inherit; cursor: pointer;
}

.tt-product-category-card::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg,rgba(15,16,10,0.04) 0%,rgba(15,16,10,0.55) 45%,rgba(15,16,10,0.82) 100%);
}

.tt-product-category-card:focus-visible { outline: 1px solid var(--ink); outline-offset: -2px; }

.tt-category-image-wrapper { position: absolute; inset: 0; overflow: hidden; }

.tt-category-image-placeholder {
    position: absolute; inset: 0; background: var(--stone);
    display: flex; align-items: center; justify-content: center;
}

.tt-category-image-placeholder::before {
    content: "IMAGE"; font-family: var(--font-mono); font-size: 11px;
    letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone-deep);
}

.tt-product-category-card img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; display: block; transition: transform 450ms ease;
}

.tt-product-category-card:hover img { transform: scale(1.04); }
.tt-category-overlay { display: none; }

/* Category body: title + description, pinned to card bottom */
.tt-category-body {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
    padding: clamp(24px,3.5vw,44px);
    pointer-events: none;
}

.tt-category-body::before {
    content: "Collection"; display: block;
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em;
    text-transform: uppercase; color: rgba(247,245,239,0.75);
    margin-bottom: 10px; font-weight: 400;
}

.tt-category-title {
    margin: 0 0 10px;
    font-family: var(--font-serif); font-weight: 300;
    font-size: clamp(28px,3.2vw,48px); line-height: 1.05; letter-spacing: -0.012em;
    color: var(--paper) !important; text-transform: none;
}

.tt-category-description {
    margin: 0;
    font-family: var(--font-serif); font-style: italic; font-weight: 300;
    font-size: clamp(14px,1.1vw,17px); line-height: 1.5;
    color: rgba(247,245,239,0.82);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width:960px) {
    .tt-product-categories-frontend { grid-template-columns: 1fr; gap: 16px; }
}

/* ── Product detail ────────────────────────────────────────────────────────── */

.tt-product-detail {
    width: 100%; max-width: var(--max-content,1280px); box-sizing: border-box;
    margin: 0 auto clamp(40px,5vw,72px); padding: clamp(24px,3vw,40px) 0;
    background: transparent; color: var(--ink); font-family: var(--font-sans);
}

.tt-product-detail::before { content: none; }

.tt-product-detail-header { margin-bottom: 24px; }

.tt-product-detail-breadcrumb {
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--ink-3);
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}

.tt-product-detail-page .entry-title,
.tt-product-detail-page .post-title,
.tt-product-detail-page .page-title { display: none !important; }

.tt-breadcrumb-link {
    color: var(--ink-3); text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 200ms ease, border-color 200ms ease;
}

.tt-breadcrumb-link:hover { color: var(--ink); border-bottom-color: var(--line); }
.tt-breadcrumb-separator { color: var(--ink-4); }
.tt-breadcrumb-current { color: var(--ink); overflow-wrap: anywhere; word-break: break-word; }

.tt-product-detail-hero {
    display: grid; grid-template-columns: 1.15fr 1fr;
    gap: clamp(32px,4.4vw,72px); align-items: start;
}

.tt-product-detail-image {
    background: var(--stone); overflow: hidden; min-width: 0;
    aspect-ratio: 1/1; align-self: start;
    animation: tt-fade-rise 0.7s ease both;
}

.tt-product-detail-image img { width: 100%; height: 100%; display: block; object-fit: cover; }

.tt-product-detail-info {
    padding: 6px 0 0; min-width: 0; background: transparent;
    animation: tt-fade-rise 0.7s ease both; animation-delay: 0.08s;
}

.tt-product-detail-title-wrap { margin-bottom: 20px; }

.tt-product-detail-title {
    margin: 0; font-family: var(--font-serif); font-weight: 300;
    font-size: clamp(36px,4.8vw,64px); line-height: 1.02;
    letter-spacing: -0.015em; color: var(--ink); overflow-wrap: anywhere;
}

.tt-product-detail-description-wrap { margin-bottom: clamp(24px,3vw,36px); }

.tt-product-detail-description {
    margin: 0; font-family: var(--font-serif); font-style: italic; font-weight: 300;
    font-size: clamp(17px,1.4vw,22px); line-height: 1.5; color: var(--ink-2);
    overflow-wrap: anywhere; max-width: 540px;
}

.tt-product-detail-params h3 {
    margin: 0; font-family: var(--font-mono); font-size: 11px;
    letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); font-weight: 400;
}

.tt-product-detail-params-list {
    margin: clamp(20px,2.5vw,28px) 0 0; padding: 0; list-style: none;
    width: 100%; border-top: 1px solid var(--line);
}

.tt-product-detail-param {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 16px;
    padding: clamp(12px,1.4vw,16px) 0; border-bottom: 1px solid var(--line);
    align-items: baseline; min-width: 0;
}

.tt-product-detail-param-label {
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--ink-3); font-weight: 400;
}

.tt-product-detail-param-value {
    font-family: var(--font-sans); font-size: 15px; color: var(--ink);
    overflow-wrap: anywhere; word-break: break-word; margin: 0;
}

.tt-product-detail-qualification { margin-top: 24px; }

.tt-product-detail-qualification h3 {
    margin: 0 0 10px; font-family: var(--font-mono); font-size: 11px;
    letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); font-weight: 400;
}

.tt-product-detail-qualification p {
    margin: 0; font-family: var(--font-sans); font-size: 15px;
    line-height: 1.65; color: var(--ink-2); overflow-wrap: anywhere;
}

.tt-product-detail-effects {
    margin-top: clamp(40px,6vw,72px);
    animation: tt-fade-rise 0.7s ease both; animation-delay: 0.12s;
}

.tt-product-detail-effects h3 {
    margin: 0 0 clamp(16px,2vw,24px); font-family: var(--font-mono); font-size: 11px;
    letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); font-weight: 400;
}

.tt-product-detail-effects-carousel {
    --tt-product-gallery-visible: 3;
    --tt-product-gallery-gap: clamp(16px,2vw,24px);
    position: relative;
}

.tt-product-detail-effects-viewport {
    overflow-x: auto; overflow-y: hidden; width: 100%;
    scroll-behavior: smooth; scrollbar-width: none;
}
.tt-product-detail-effects-viewport::-webkit-scrollbar { display: none; }

.tt-product-detail-effects-track {
    display: flex; gap: var(--tt-product-gallery-gap);
    --tt-product-gallery-item-width: calc((100% - (var(--tt-product-gallery-gap) * (var(--tt-product-gallery-visible) - 1))) / var(--tt-product-gallery-visible));
}

.tt-product-detail-effect {
    appearance: none; border: 0; padding: 0; margin: 0;
    flex: 0 0 var(--tt-product-gallery-item-width);
    aspect-ratio: 4/5; overflow: hidden; background: var(--stone); position: relative;
    cursor: pointer; animation: tt-fade-rise 0.6s ease both;
}

.tt-product-detail-effect img {
    width: 100%; height: 100%; display: block; object-fit: cover;
    transition: transform 400ms ease;
}

.tt-product-detail-effect:hover img { transform: scale(1.04); }
.tt-product-detail-effect::after { content: none; }

.tt-product-detail-effect:nth-child(2) { animation-delay: 0.08s; }
.tt-product-detail-effect:nth-child(3) { animation-delay: 0.16s; }
.tt-product-detail-effect:nth-child(4) { animation-delay: 0.24s; }
.tt-product-detail-effect:nth-child(5) { animation-delay: 0.32s; }

.tt-product-gallery-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; display: none; align-items: center; justify-content: center;
    border: 1px solid rgba(20,20,18,0.24); background: rgba(247,245,239,0.9);
    color: var(--ink); font-size: 30px; line-height: 1; cursor: pointer; z-index: 2;
    transition: background 160ms ease, color 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.tt-product-detail-effects-carousel.has-overflow .tt-product-gallery-arrow { display: flex; }
.tt-product-gallery-arrow:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.tt-product-gallery-arrow:disabled { opacity: 0.35; pointer-events: none; }
.tt-product-gallery-arrow--prev { left: 12px; }
.tt-product-gallery-arrow--next { right: 12px; }

@keyframes tt-fade-rise {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .tt-product-detail-image,
    .tt-product-detail-info,
    .tt-product-detail-effects,
    .tt-product-detail-effect { animation: none; transition: none; }
}

@media (max-width:1024px) {
    .tt-product-detail-hero { grid-template-columns: 1fr; }
    .tt-product-detail-effects-carousel { --tt-product-gallery-visible: 2; }
}

@media (max-width:900px) {
    .tt-product-detail-param { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width:768px) {
    .tt-product-detail-header { display: none; }
    .tt-product-detail-title  { font-size: clamp(32px,9vw,48px); }
    .tt-product-detail-info   { padding: 0; }
    .tt-product-detail-effects-carousel { --tt-product-gallery-gap: 14px; }
}

@media (max-width:480px) {
    .tt-product-detail-effects-carousel { --tt-product-gallery-gap: 12px; }
    .tt-product-gallery-arrow { width: 38px; height: 38px; font-size: 26px; }
    .tt-product-gallery-arrow--prev { left: 8px; }
    .tt-product-gallery-arrow--next { right: 8px; }
}

/* ── Inspiration — homepage responsive count (.tt-insp-home)
   Large viewports keep a single 3-up row. At the existing two-column
   breakpoint, the fourth item is restored so the section becomes a 2x2 grid.
   ─────────────────────────────────────────────────────────────────────────── */

.tt-insp-home {
    display: grid; grid-template-columns: repeat(3,minmax(0,1fr));
    gap: clamp(16px,2vw,24px); width: 100%; margin: 0; padding: 0;
}

.tt-insp-home .tt-inspiration-grid-item {
    position: relative; aspect-ratio: 4/5; overflow: hidden; display: block;
    background: var(--stone); cursor: pointer;
}

.tt-insp-home .tt-inspiration-grid-item:nth-child(n+5) { display: none; }

@media (min-width:641px) {
    .tt-insp-home .tt-inspiration-grid-item:nth-child(n+4) { display: none; }
}

.tt-insp-home .tt-inspiration-grid-item::after {
    display: none;
}

.tt-insp-home .tt-inspiration-grid-image-wrapper {
    position: absolute; inset: 0; background: var(--stone);
}

.tt-insp-home .tt-inspiration-grid-image {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; transition: transform 450ms ease;
}

.tt-insp-home .tt-inspiration-grid-item:hover .tt-inspiration-grid-image,
.tt-inspiration-frontend.tt-inspiration-page .tt-inspiration-grid-item:hover .tt-inspiration-grid-image {
    transform: scale(1.04);
}

.tt-insp-home .tt-inspiration-grid-title {
    display: none;
}

@media (max-width:640px) {
    .tt-insp-home { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
    .tt-insp-home .tt-inspiration-grid-item:nth-child(n+4) { display: block; }
    .tt-insp-home .tt-inspiration-grid-item:nth-child(n+5) { display: none; }
}

/* ── Inspiration — full page 4-up grid ─────────────────────────────────────── */

.tt-inspiration-frontend.tt-inspiration-page {
    display: grid; grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 4px; width: 100%; margin: 0; padding: 0;
}

.tt-inspiration-frontend.tt-inspiration-page .tt-inspiration-grid-item {
    grid-column: auto; grid-row: auto;
    position: relative; aspect-ratio: 4/5; overflow: hidden; display: block;
    background: var(--stone); cursor: pointer;
}

.tt-inspiration-frontend.tt-inspiration-page .tt-inspiration-grid-image-wrapper {
    position: absolute; inset: 0; overflow: hidden;
}

.tt-inspiration-frontend.tt-inspiration-page .tt-inspiration-grid-image {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; display: block; transition: transform 450ms ease;
}

.tt-inspiration-frontend.tt-inspiration-page .tt-inspiration-grid-title { display: none; }
.tt-inspiration-frontend.tt-inspiration-page .tt-inspiration-grid-item.is-hidden { display: none; }

/* Load more */
.tt-inspiration-load-more {
    display: flex; flex-direction: column; align-items: center;
    gap: 8px; margin-top: clamp(40px,5vw,64px);
}

.tt-inspiration-load-more-btn {
    display: inline-flex; align-items: center; gap: 14px; padding: 14px 26px;
    border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em;
    text-transform: uppercase; cursor: pointer;
    opacity: 0; pointer-events: none; transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, background 200ms ease, border-color 200ms ease;
}

.tt-inspiration-load-more-btn:hover { background: var(--moss); border-color: var(--moss); }
.tt-inspiration-load-more.is-visible .tt-inspiration-load-more-btn { opacity: 1; pointer-events: auto; transform: translateY(0); }
.tt-inspiration-load-more.is-finished { display: none; }
.tt-inspiration-load-more-sentinel { width: 100%; height: 1px; }

@media (max-width:1200px) { .tt-inspiration-frontend.tt-inspiration-page { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width:900px)  { .tt-inspiration-frontend.tt-inspiration-page { grid-template-columns: repeat(2,minmax(0,1fr)); } }

/* ── Gallery lightbox ──────────────────────────────────────────────────────── */

.tt-inspiration-gallery-lightbox { display: none; position: fixed; inset: 0; z-index: 999999; }
.tt-inspiration-gallery-lightbox.active { display: flex; align-items: center; justify-content: center; }

.tt-gallery-lightbox-overlay {
    position: fixed; inset: 0; background: rgba(15,16,10,0.88); backdrop-filter: blur(2px);
}

.tt-gallery-lightbox-content {
    position: relative; max-width: 92vw; max-height: 88vh;
    display: flex; flex-direction: column; align-items: center; z-index: 1;
}

.tt-gallery-lightbox-image-wrapper {
    position: relative; max-width: 100%; max-height: 80vh;
    display: flex; flex-direction: column; align-items: center;
}

.tt-gallery-lightbox-image {
    max-width: 100%; max-height: 80vh; object-fit: contain;
    box-shadow: 0 8px 48px rgba(0,0,0,0.5);
}

.tt-gallery-lightbox-title {
    font-family: var(--font-serif); font-weight: 300;
    font-size: clamp(18px,2vw,26px); letter-spacing: -0.005em;
    color: var(--paper); margin-top: 20px; text-align: center; padding: 0 40px;
}

.tt-gallery-lightbox-close {
    position: absolute; display: flex; align-items: center; justify-content: center;
    background: rgba(247,245,239,0.08); border: 1px solid rgba(247,245,239,0.18);
    color: var(--paper); cursor: pointer; transition: background 150ms ease; z-index: 2;
}

.tt-gallery-lightbox-close { width: 48px; height: 48px; font-size: 28px; }

.tt-gallery-lightbox-close:hover { background: rgba(247,245,239,0.18); }

.tt-gallery-lightbox-close { top: 20px; right: 20px; font-size: 32px; }

@media (max-width:768px) {
    .tt-gallery-lightbox-close { top: 10px; right: 10px; width: 40px; height: 40px; font-size: 26px; }
    .tt-gallery-lightbox-title { font-size: clamp(16px,4vw,20px); padding: 0 20px; }
}
