/* Tilattama product page — moved out of single-product.php on 11 Sep 2026 so the ~45 KB of CSS is cached by the browser instead of re-sent in every HTML response. Edit here, not in the template. */
:root {
    --primary: #6B0F2B;
    --primary-light: #8B1538;
    --primary-dark: #4A0A1D;
    --accent: #C9A962;
    --accent-light: #D4B978;
    --cream: #FFFDF9;
    --white: #FFFFFF;
    --text: #1A1A1A;
    --text-light: #555;
    --text-muted: #888;
    --border: #E5E5E5;
    --border-light: #F0F0F0;
    --success: #1B8F4A;
    --error: #C62828;
    --shadow: 0 2px 20px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
    --radius: 8px;
    --radius-lg: 16px;
    --transition: 0.25s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body.tilo-pdp { font-family: 'Jost', sans-serif; background: var(--cream); color: var(--text); line-height: 1.6; }
.woocommerce-breadcrumb, .related.products, .woocommerce-tabs { display: none !important; }

/* ===== ANIMATIONS ===== */
@keyframes spin { to { transform: rotate(360deg); } }
.tilo-spinner { animation: spin 1s linear infinite; width: 18px; height: 18px; margin-right: 6px; }

/* ===== HEADER ===== */
.tilo-header {
    position: sticky;
    top: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    padding: 0 2rem;
}
.tilo-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
/* Side groups have EQUAL flex weight and minimum width — so the logo between
   them sits visually centered no matter how many icons each side has. */
.tilo-header-left,
.tilo-header-right {
    flex: 1 1 0;
    min-width: 110px;
    display: flex;
    align-items: center;
}
.tilo-header-left { justify-content: flex-start; }
.tilo-header-right { justify-content: flex-end; gap: 0.5rem; }
.tilo-logo { flex: 0 0 auto; }
/* Back / icon buttons share the same clean circular outline style */
.tilo-back {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
    flex-shrink: 0;
}
.tilo-back:hover { border-color: var(--primary); color: var(--primary); background: rgba(107,15,43,0.04); }
.tilo-back svg { width: 18px; height: 18px; }
.tilo-back span { display: none; }
/* Logo sits in the center grid column — geometrically centered regardless of side weight */
.tilo-logo { text-decoration: none; line-height: 0; }
.tilo-logo img { height: 80px; width: auto; display: block; max-width: 100%; }
.tilo-logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 3px;
}
.tilo-nav { display: flex; gap: 2.5rem; }
.tilo-nav a {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
}
.tilo-nav a:hover { color: var(--primary); }
.tilo-header-right { display: flex; align-items: center; gap: 0.5rem; }
/* All right-side icons share the back-button style — unified, minimal */
.tilo-header-link, .tilo-cart-btn {
    position: relative;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
    flex-shrink: 0;
}
.tilo-header-link:hover, .tilo-cart-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(107,15,43,0.04);
}
.tilo-header-link svg, .tilo-cart-btn svg { width: 18px; height: 18px; }
.tilo-header-link span { display: none; } /* hide inline labels — icons speak for themselves */
.tilo-cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 600;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 2px var(--white);
}

/* ===== MAIN ===== */
.tilo-main { padding: 2rem 2rem 4rem; }
.tilo-container { max-width: 1400px; margin: 0 auto; }

/* Breadcrumbs — hidden per design (kept in DOM for SEO if needed; just visually hidden) */
.tilo-breadcrumbs {
    display: none !important;
}
.tilo-breadcrumbs a { color: var(--text-light); text-decoration: none; }
.tilo-breadcrumbs a:hover { color: var(--primary); }
.tilo-breadcrumbs svg { width: 14px; height: 14px; opacity: 0.4; }

/* ===== PRODUCT SECTION ===== */
.tilo-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* ===== GALLERY ===== */
.tilo-gallery { position: sticky; top: 90px; }

.tilo-gallery-container {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1rem;
}

/* Vertical Thumbnails */
.tilo-thumbs-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-height: 600px;
    overflow-y: auto;
    scrollbar-width: none;
    order: 1;
}
.tilo-thumbs-vertical::-webkit-scrollbar { display: none; }

.tilo-thumb {
    width: 80px;
    height: 100px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid transparent;
    opacity: 0.55;
    transition: opacity 0.2s ease, border-color 0.2s ease;
    background: #f5f5f5;
    flex-shrink: 0;
}
.tilo-thumb:hover { opacity: 1; }
.tilo-thumb.active {
    opacity: 1;
    border-color: #1a1a1a;
}
.tilo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tilo-thumb-video {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2D2D2D 0%, #1a1a1a 100%);
}
.tilo-thumb-video::after {
    content: '';
    width: 28px;
    height: 28px;
    background: var(--white);
    border-radius: 50%;
    position: absolute;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.tilo-thumb-video::before {
    content: '';
    position: absolute;
    z-index: 1;
    border-left: 10px solid var(--primary);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    margin-left: 4px;
}

/* Main Image */
.tilo-main-viewer {
    position: relative;
    background: #f7f5f2;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 3/4;
    order: 2;
}
.tilo-corner { display: none; }
.tilo-main-img-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.tilo-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.25s ease;
}
.tilo-main-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}
.tilo-main-viewer.video-active .tilo-main-img { display: none; }
.tilo-main-viewer.video-active .tilo-main-video { display: block; }

/* Zoom button — floating on image */
.tilo-zoom-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.92);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    transition: background 0.2s ease, color 0.2s ease;
    z-index: 7;
}
.tilo-zoom-btn:hover { background: #1a1a1a; color: #fff; }
.tilo-zoom-btn svg { width: 15px; height: 15px; stroke-width: 1.6; }

/* Dot Indicators - Mobile */
.tilo-dots {
    display: none;
    justify-content: center;
    gap: 6px;
    padding: 0.8rem 0 0.4rem;
    order: 2;
}
.tilo-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d4d4d4;
    transition: background 0.2s ease, width 0.2s ease;
    cursor: pointer;
}
.tilo-dot.active {
    background: #1a1a1a;
    width: 20px;
    border-radius: 3px;
}

/* Title row — title on left, Save/Share on right */
.tilo-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 0.65rem;
}
.tilo-title-row h1.tilo-title { margin: 0 !important; padding: 0 !important; text-align: left !important; flex: 1; }
.tilo-title-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-shrink: 0;
    padding-top: 0.4rem;
}
.tilo-title-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #1a1a1a;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.2s ease, opacity 0.2s ease;
    opacity: 0.85;
}
.tilo-title-btn:hover { opacity: 1; color: #000; }
.tilo-title-btn.active-fav { color: var(--primary); opacity: 1; }
.tilo-title-btn.active-fav svg { fill: var(--primary); }
.tilo-title-btn svg { width: 16px; height: 16px; stroke-width: 1.6; }

.tilo-sale-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.35rem 0.7rem;
    background: #1a1a1a;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 2px;
    z-index: 7;
}

/* Navigation Arrows */
.tilo-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
    opacity: 0;
    z-index: 7;
}
.tilo-main-viewer:hover .tilo-nav-arrow { opacity: 1; }
.tilo-nav-arrow:hover { background: #1a1a1a; color: #fff; }
.tilo-nav-arrow svg { width: 18px; height: 18px; stroke-width: 1.6; }
.tilo-nav-arrow.prev { left: 1rem; }
.tilo-nav-arrow.next { right: 1rem; }

/* ===== PRODUCT INFO ===== */
.tilo-info { max-width: 560px; }

/* Category breadcrumb — subtle, contextual */
.tilo-info-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}
.tilo-category-tag {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}
.tilo-category-tag::before { display: none; }
.tilo-sku-tag {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-left: auto;
}
.tilo-sku-tag::before {
    content: 'SKU';
    margin-right: 0.35rem;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    color: var(--text-light);
}

/* Title — bold, clean, no decoration */
.tilo-info h1.tilo-title,
.tilo-title-row h1.tilo-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.15;
    color: var(--text);
    margin: 0 0 0.6rem;
    padding: 0;
    text-align: left;
    border: none;
}
.tilo-title::after, .tilo-title::before { display: none; }

/* Rating badge — compact pill */
.tilo-rating-price {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.tilo-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    align-self: flex-start;
}
.tilo-stars { display: flex; gap: 1px; }
.tilo-star { width: 14px; height: 14px; fill: var(--border); }
.tilo-star.filled { fill: #F59E0B; }
.tilo-rating-text { font-size: 0.78rem; color: var(--text-muted); }
.tilo-rating-text a { color: var(--primary); text-decoration: none; font-weight: 500; }
.tilo-rating-text a:hover { text-decoration: underline; }

/* Price — prominent featured row */
.tilo-price-section {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    flex-wrap: wrap;
    padding: 0;
    background: none;
    border-radius: 0;
    border: none;
    margin-bottom: 0;
}
.tilo-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}
.tilo-price {
    font-family: 'Jost', sans-serif;
    font-size: 1.65rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1;
}
.tilo-price-original {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 400;
}
.tilo-discount {
    padding: 0.2rem 0.5rem;
    background: #ECFDF5;
    color: #059669;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 4px;
    letter-spacing: 0.2px;
}
.tilo-tax-note {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Short Description */
.tilo-short-desc {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.65;
    margin-bottom: 1rem;
}

/* ===== OPTION SELECTORS (Color, Size, Sleeve type etc) ===== */
.tilo-option-section { margin-bottom: 1rem; }
.tilo-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.tilo-option-label {
    font-size: 0.82rem;
    color: var(--text);
    font-weight: 500;
}
.tilo-option-label span { color: var(--text-muted); font-weight: 400; }

/* Shared chip style for all option types */
.tilo-colors,
.tilo-sizes {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}
.tilo-color-option,
.tilo-size-option {
    position: relative;
    cursor: pointer;
}
.tilo-color-option input,
.tilo-size-option input { display: none; }

/* Unified chip appearance */
.tilo-color-name,
.tilo-size-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 0.9rem;
    font-family: 'Jost', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text);
    text-transform: capitalize;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    line-height: 1;
    white-space: nowrap;
    min-width: 0;
}

.tilo-color-option:hover .tilo-color-name,
.tilo-size-option:hover .tilo-size-box { border-color: var(--text-light); }

.tilo-color-option input:checked + .tilo-color-name,
.tilo-size-option input:checked + .tilo-size-box {
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
    background: rgba(107, 15, 43, 0.04);
}

.tilo-size-option input:disabled + .tilo-size-box,
.tilo-color-option input:disabled + .tilo-color-name {
    opacity: 0.35;
    cursor: not-allowed;
    text-decoration: line-through;
}
.tilo-size-option:has(input:disabled),
.tilo-color-option:has(input:disabled) { cursor: not-allowed; }

/* ===== CART SECTION ===== */
.tilo-cart-section {
    padding: 0.75rem 0 0;
    border-top: none;
    margin-bottom: 0;
}
.tilo-qty-row { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem; }
.tilo-qty-label {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.tilo-qty-selector {
    display: inline-flex;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.tilo-qty-btn {
    width: 34px;
    height: 34px;
    background: none;
    border: none;
    font-size: 1.1rem;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.tilo-qty-btn:hover { color: var(--primary); }
.tilo-qty-input {
    width: 48px;
    height: 34px;
    border: none;
    border-left: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
    text-align: center;
    font-family: 'Jost', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    background: none;
    color: var(--text);
    -moz-appearance: textfield;
    appearance: textfield;
}
.tilo-qty-input::-webkit-outer-spin-button,
.tilo-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}
.tilo-qty-input:focus { outline: none; }

.tilo-buttons-row { display: flex; gap: 0.5rem; }
.tilo-add-btn {
    flex: 1;
    height: 44px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-family: 'Jost', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: var(--transition);
}
.tilo-add-btn:hover { background: var(--primary-dark); }
.tilo-add-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.tilo-add-btn svg { width: 16px; height: 16px; }

.tilo-buy-btn {
    flex: 1;
    height: 44px;
    background: var(--white);
    color: var(--text);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: 'Jost', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: var(--transition);
}
.tilo-buy-btn:hover { border-color: var(--primary); color: var(--primary); }
.tilo-buy-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.tilo-buy-btn svg { width: 15px; height: 15px; }

/* ===== PINCODE CHECKER (collapsible, below buttons) ===== */
.tilo-pincode-checker {
    background: none;
    border: none;
    padding: 0;
    margin: 0.75rem 0 0;
}
.tilo-pincode-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: 'Jost', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    transition: var(--transition);
}
.tilo-pincode-toggle:hover { color: var(--primary); }
.tilo-pincode-toggle svg { width: 14px; height: 14px; }
.tilo-pincode-toggle .tilo-chevron { width: 12px; height: 12px; transition: transform 0.2s ease; }
.tilo-pincode-checker.open .tilo-pincode-toggle .tilo-chevron { transform: rotate(180deg); }
.tilo-pincode-body {
    display: none;
    padding-top: 0.5rem;
}
.tilo-pincode-checker.open .tilo-pincode-body { display: block; }
.tilo-pincode-title { display: none; }
.tilo-pincode-form { display: flex; gap: 0; }
.tilo-pincode-input {
    flex: 1;
    height: 38px;
    padding: 0 0.75rem;
    border: 1px solid var(--border);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    font-family: 'Jost', sans-serif;
    font-size: 0.85rem;
    background: var(--white);
}
.tilo-pincode-input:focus { outline: none; border-color: var(--primary); }
.tilo-pincode-btn {
    padding: 0 1rem;
    height: 38px;
    background: var(--text);
    border: 1px solid var(--text);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--white);
    font-family: 'Jost', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.tilo-pincode-btn:hover { background: var(--primary); border-color: var(--primary); }
.tilo-pincode-result {
    display: none;
    margin-top: 0.5rem;
    padding: 0.6rem 0.75rem;
    background: rgba(27, 143, 74, 0.04);
    border-radius: var(--radius);
    border-left: 3px solid var(--success);
}
.tilo-pincode-result.show { display: block; }
.tilo-pincode-result.error { background: rgba(198, 40, 40, 0.04); border-left-color: #c62828; }
.tilo-delivery-info { display: flex; flex-direction: column; gap: 0.3rem; }
.tilo-delivery-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
}
.tilo-delivery-row svg { width: 12px; height: 12px; color: var(--success); flex-shrink: 0; }
.tilo-delivery-row strong { color: var(--text); }
.tilo-delivery-error { font-size: 0.78rem; color: #c62828; padding: 0.2rem 0; line-height: 1.4; }
.tilo-pincode-result:not(.error) .tilo-delivery-error { color: var(--text-light); }

/* Trust Row — inline strip */
.tilo-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    padding: 0.6rem 0 0;
    margin-bottom: 0.25rem;
}
.tilo-trust-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    color: var(--text-muted);
}
.tilo-trust-item svg { width: 12px; height: 12px; color: var(--success); flex-shrink: 0; }

/* ===== ACCORDION ===== */
.tilo-accordion { border-top: 1px solid var(--border-light); }
.tilo-accordion-item { border-bottom: 1px solid var(--border-light); }
.tilo-accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
    background: none;
    border: none;
    font-family: 'Jost', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
}
.tilo-accordion-header svg { width: 18px; height: 18px; transition: var(--transition); }
.tilo-accordion-item.open .tilo-accordion-header svg { transform: rotate(45deg); }
.tilo-accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.tilo-accordion-item.open .tilo-accordion-body { max-height: 400px; }
.tilo-accordion-content { padding-bottom: 1.5rem; font-size: 0.9rem; color: var(--text-light); line-height: 1.8; }

/* ===== REVIEWS SECTION ===== */
.tilo-reviews-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-light);
}
.tilo-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}
.tilo-section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--text);
}
.tilo-write-review-btn {
    padding: 0.7rem 1.5rem;
    background: var(--white);
    border: 1.5px solid var(--primary);
    border-radius: var(--radius);
    color: var(--primary);
    font-family: 'Jost', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}
.tilo-write-review-btn:hover { background: var(--primary); color: var(--white); }

.tilo-reviews-summary {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 3rem;
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius-lg);
}
.tilo-rating-big {
    text-align: center;
    padding: 1.5rem;
    border-right: 1px solid var(--border-light);
}
.tilo-rating-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1;
}
.tilo-rating-stars { display: flex; justify-content: center; gap: 3px; margin: 0.8rem 0; }
.tilo-rating-stars svg { width: 20px; height: 20px; fill: var(--accent); }
.tilo-rating-count { font-size: 0.88rem; color: var(--text-muted); }

.tilo-rating-bars { display: flex; flex-direction: column; gap: 0.6rem; justify-content: center; }
.tilo-rating-bar-row { display: flex; align-items: center; gap: 1rem; }
.tilo-rating-bar-label { font-size: 0.85rem; color: var(--text-light); width: 50px; }
.tilo-rating-bar { flex: 1; height: 8px; background: var(--border-light); border-radius: 4px; overflow: hidden; }
.tilo-rating-bar-fill { height: 100%; background: var(--accent); border-radius: 4px; }
.tilo-rating-bar-count { font-size: 0.82rem; color: var(--text-muted); width: 30px; text-align: right; }

.tilo-reviews-list { display: flex; flex-direction: column; gap: 1.5rem; }
.tilo-review-card {
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius-lg);
}
.tilo-review-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.tilo-review-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.tilo-review-avatar {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 600;
}
.tilo-review-name { font-weight: 600; color: var(--text); }
.tilo-review-date { font-size: 0.82rem; color: var(--text-muted); }
.tilo-review-verified {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    color: var(--success);
}
.tilo-review-verified svg { width: 14px; height: 14px; }
.tilo-review-stars { display: flex; gap: 2px; }
.tilo-review-stars svg { width: 14px; height: 14px; fill: var(--accent); }
.tilo-review-text { font-size: 0.92rem; color: var(--text-light); line-height: 1.7; }

/* Empty state + notice */
.tilo-review-empty { padding: 2rem 1rem; text-align: center; color: var(--text-muted); font-size: 0.92rem; background: var(--cream, #FBF9F6); border-radius: 12px; }
.tilo-review-notice { padding: 0.85rem 1rem; margin: 0 0 1.5rem 0; background: rgba(90,123,106,0.1); border-left: 3px solid #5A7B6A; color: #2d4a3a; font-size: 0.9rem; border-radius: 6px; }

/* Review submission form */
.tilo-review-form { display: none; margin-top: 2rem; padding: 1.75rem; background: var(--cream, #FBF9F6); border-radius: 14px; border: 1px solid var(--border-light); }
.tilo-review-form.open { display: block; }
.tilo-review-form-title { font-family: var(--font-display, 'Cormorant Garamond', serif); font-size: 1.4rem; font-weight: 600; margin: 0 0 1.25rem; color: var(--text); }
.tilo-review-form-row { margin-bottom: 1.1rem; }
.tilo-review-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.tilo-review-form-label { display: block; font-size: 0.82rem; font-weight: 500; color: var(--text); margin-bottom: 0.45rem; letter-spacing: 0.02em }
.tilo-form-hint { font-weight: 400; color: var(--text-muted); font-size: 0.78rem; }
.tilo-review-form input[type=text], .tilo-review-form input[type=email], .tilo-review-form textarea { width: 100%; padding: 0.7rem 0.9rem; border: 1px solid var(--border-light); border-radius: 8px; font-family: inherit; font-size: 0.9rem; background: #fff; color: var(--text); transition: border-color 0.2s; }
.tilo-review-form input:focus, .tilo-review-form textarea:focus { outline: none; border-color: var(--primary); }
.tilo-review-form textarea { resize: vertical; min-height: 100px; }

/* Interactive star rating */
.tilo-rating-input { display: inline-flex; gap: 4px; }
.tilo-rating-input-star { background: none; border: none; padding: 2px; cursor: pointer; line-height: 0; }
.tilo-rating-input-star svg { width: 28px; height: 28px; fill: #ddd; transition: fill 0.15s, transform 0.15s; }
.tilo-rating-input-star:hover svg, .tilo-rating-input-star.on svg { fill: var(--accent); }
.tilo-rating-input-star:hover svg { transform: scale(1.1); }

.tilo-review-submit-btn { margin-top: 0.5rem; padding: 0.85rem 2rem; background: var(--primary); color: #fff; border: none; border-radius: 999px; font-family: inherit; font-size: 0.9rem; font-weight: 500; letter-spacing: 0.03em; cursor: pointer; transition: background 0.2s, transform 0.15s; }
.tilo-review-submit-btn:hover { background: var(--primary-dark, #4A0A1D); transform: translateY(-1px); }
.tilo-review-submit-btn:active { transform: translateY(0); }

@media (max-width: 600px) {
    .tilo-review-form-grid { grid-template-columns: 1fr; }
    .tilo-review-form { padding: 1.25rem; }
}

/* ===== RECENTLY VIEWED ===== */
.tilo-recently-viewed {
    margin-top: 3rem;
    padding: 2.5rem 0;
    border-top: 1px solid var(--border-light);
}
.tilo-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.tilo-section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--accent);
    margin-top: 0.5rem;
}
.tilo-view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-family: 'Jost', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
    padding: 0.4rem 0;
    margin-top: 0.3rem;
    white-space: nowrap;
    transition: var(--transition);
}
.tilo-view-all:hover { text-decoration: underline; }
.tilo-view-all svg { width: 14px; height: 14px; }
/* Horizontal scroll on every viewport — same pattern for Recently Viewed + You May Also Like */
.tilo-products-row, .tilo-products-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
}
.tilo-products-row::-webkit-scrollbar,
.tilo-products-scroll::-webkit-scrollbar { display: none; }
.tilo-products-row .tilo-product-card,
.tilo-products-scroll .tilo-product-card {
    flex: 0 0 calc((100% - 4rem) / 5);
    min-width: 180px;
    scroll-snap-align: start;
}
.tilo-product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-light);
    position: relative;
}
.tilo-product-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.1); transform: translateY(-3px); border-color: transparent; }
.tilo-product-card-img { position: relative; aspect-ratio: 3/4; overflow: hidden; background: #f8f6f3; }
.tilo-product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.tilo-product-card:hover .tilo-product-card-img img { transform: scale(1.06); }
.tilo-product-card-info { padding: 0.85rem 0.9rem; }
.tilo-product-card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.35rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tilo-product-card-title a { color: inherit; text-decoration: none; }
.tilo-product-card-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    font-family: 'Jost', sans-serif;
}

/* ===== RECOMMENDED ===== */
.tilo-recommended {
    margin-top: 0;
    padding: 2.5rem 0 3rem;
    border-top: 1px solid var(--border-light);
}
/* legacy block replaced above — keep selector available */
.tilo-products-scroll { gap: 1rem; }

/* ===== LIGHTBOX ===== */
.tilo-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}
.tilo-lightbox.active { display: flex; }
.tilo-lb-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tilo-lb-close:hover { background: rgba(255,255,255,0.2); }
.tilo-lb-close svg { width: 24px; height: 24px; }
.tilo-lb-img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: var(--radius); }
.tilo-lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tilo-lb-nav:hover { background: rgba(255,255,255,0.2); }
.tilo-lb-nav svg { width: 24px; height: 24px; }
.tilo-lb-nav.prev { left: 1.5rem; }
.tilo-lb-nav.next { right: 1.5rem; }

/* ===== MOBILE STICKY ===== */
.tilo-mobile-sticky {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.6rem 0.75rem;
    padding-bottom: calc(0.6rem + env(safe-area-inset-bottom, 0));
    background: rgba(255,255,255,0.85);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    backdrop-filter: blur(16px) saturate(180%);
    border-top: 1px solid rgba(0,0,0,0.06);
    z-index: 999;
}
.tilo-mobile-sticky-inner {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
/* Compact qty stepper in the sticky bar — proxies the (hidden-on-mobile) form
   qty input, so the posted quantity always matches what's shown here. */
.tilo-msticky-qty {
    display: flex;
    align-items: center;
    height: 46px;
    border: 1.5px solid var(--border);
    border-radius: 100px;
    background: var(--white);
    flex: 0 0 auto;
    overflow: hidden;
}
.tilo-msticky-qty button {
    width: 32px;
    height: 100%;
    border: none;
    background: transparent;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    font-family: 'Jost', sans-serif;
}
.tilo-msticky-qty button:active { background: var(--border-light); }
.tilo-msticky-qty span {
    min-width: 20px;
    text-align: center;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    font-family: 'Jost', sans-serif;
}
.tilo-mobile-sticky-btn {
    flex: 1;
    height: 46px;
    background: var(--white);
    color: var(--text);
    border: 1.5px solid var(--border);
    border-radius: 100px;
    font-family: 'Jost', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: var(--transition);
}
.tilo-mobile-sticky-btn svg { width: 16px; height: 16px; }
.tilo-mobile-sticky-btn:active { background: var(--border-light); border-color: var(--text-light); }
.tilo-mobile-sticky-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.tilo-mobile-sticky-buy {
    flex: 1.3;
    height: 46px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 100px;
    font-family: 'Jost', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(107,15,43,0.22);
}
.tilo-mobile-sticky-buy svg { width: 16px; height: 16px; }
.tilo-mobile-sticky-buy:active { background: #4A0A1E; }
.tilo-mobile-sticky-buy:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }

/* Never let the fixed buy bar outgrow the viewport */
.tilo-mobile-sticky-btn, .tilo-mobile-sticky-buy { min-width: 0; white-space: nowrap; }
@media (max-width: 420px) {
    .tilo-mobile-sticky-btn svg, .tilo-mobile-sticky-buy svg { display: none; }
    .tilo-mobile-sticky-inner { gap: 0.4rem; }
    .tilo-msticky-qty button { width: 26px; }
    .tilo-mobile-sticky-btn, .tilo-mobile-sticky-buy { font-size: 0.78rem; }
}

/* ===== PDP BOTTOM NAV — custom, sits BELOW Add to Bag / Buy Now ===== */
.tilo-pdp-bottom-nav {
    display: none;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 998;
    background: var(--white);
    border-top: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 -2px 12px rgba(0,0,0,0.04);
    padding: 0.35rem 0.25rem;
    padding-bottom: calc(0.35rem + env(safe-area-inset-bottom,0));
}
.tilo-pdp-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.18rem;
    padding: 0.4rem 0.25rem;
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-align: center;
    transition: color 0.15s ease;
    /* Button reset — default button styling was rendering a grey box */
    background: transparent;
    border: none;
    font-family: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.tilo-pdp-nav-item:hover, .tilo-pdp-nav-item:active { color: var(--primary); background: transparent; }
.tilo-pdp-nav-item:focus { outline: none; }
.tilo-pdp-nav-item:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 8px; }

/* WhatsApp "Ask" — plain branded green, same size and alignment as the other
   nav icons. No animation, no raised disc (a lifted disc clipped into the
   Add-to-Bag sticky bar sitting directly above this nav). */
.tilo-pdp-nav-wa .tilo-pdp-nav-ico { color: #25D366; }
.tilo-pdp-nav-wa .tilo-pdp-nav-ico svg { color: #25D366; fill: #25D366; }
.tilo-pdp-nav-ico {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.tilo-pdp-nav-ico svg { width: 22px; height: 22px; stroke: currentColor; }
.tilo-pdp-nav-label {
    line-height: 1.1;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tilo-pdp-nav-badge {
    position: absolute;
    top: -4px;
    right: -8px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: var(--primary);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 600;
    border-radius: 100px;
    line-height: 16px;
    text-align: center;
}

/* The PDP sticky already lives above the nav — hide the global WA FAB so we
   don't pile three things at the bottom of the screen. */
.tilo-wa-fab { display: none !important; }

/* ===== TOAST ===== */
.tilo-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--text);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10001;
    pointer-events: none; /* invisible toast parks over the bottom nav and must never eat taps */
}
.tilo-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.tilo-toast svg { width: 20px; height: 20px; color: var(--success); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .tilo-products-row .tilo-product-card,
    .tilo-products-scroll .tilo-product-card { flex-basis: calc((100% - 3rem) / 4); }
}
@media (max-width: 992px) {
    .tilo-header { padding: 0 1rem; }
    .tilo-nav, .tilo-header-link span { display: none; }
    .tilo-main { padding: 1.5rem 1rem 6rem; }
    .tilo-product { grid-template-columns: 1fr; gap: 2rem; }
    .tilo-gallery { position: relative; top: 0; }
    
    /* Mobile Gallery - Thumbnails below image */
    .tilo-gallery-container { 
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    .tilo-main-viewer {
        order: 1;
        border-radius: 4px;
        aspect-ratio: 4/5;
    }
    .tilo-thumbs-vertical {
        order: 3;
        flex-direction: row;
        max-height: none;
        overflow-x: auto;
        gap: 0.4rem;
        padding: 0.6rem 0;
        justify-content: flex-start;
    }
    .tilo-thumb {
        width: 64px;
        height: 80px;
        border-radius: 3px;
        flex-shrink: 0;
    }
    .tilo-thumb.active {
        border-color: #1a1a1a;
    }
    
    /* Hide nav arrows on mobile */
    .tilo-nav-arrow { display: none !important; }

    /* Show dot indicators on mobile */
    .tilo-dots { display: flex; order: 2; }

    /* Thumbnails order on mobile */
    .tilo-thumbs-vertical { order: 4; }

    .tilo-zoom-btn { width: 34px; height: 34px; top: 0.7rem; right: 0.7rem; }
    .tilo-zoom-btn svg { width: 13px; height: 13px; }
    .tilo-title-row { gap: 0.75rem; margin-bottom: 0.45rem; }
    .tilo-title-actions { gap: 0.85rem; padding-top: 0.2rem; }
    .tilo-title-btn { font-size: 0.74rem; gap: 0.3rem; }
    .tilo-title-btn svg { width: 14px; height: 14px; }

    .tilo-sale-badge {
        top: 0.8rem;
        left: 0.8rem;
        padding: 0.32rem 0.65rem;
        font-size: 0.68rem;
    }
    
    .tilo-info { max-width: 100%; }
    .tilo-reviews-summary { grid-template-columns: 1fr; }
    .tilo-rating-big { border-right: none; border-bottom: 1px solid var(--border-light); }
    .tilo-products-row, .tilo-products-scroll { gap: 0.8rem; }
    .tilo-products-row .tilo-product-card,
    .tilo-products-scroll .tilo-product-card { flex-basis: 60vw; max-width: 220px; min-width: 150px; }
    .tilo-recently-viewed, .tilo-recommended { margin-top: 2rem; padding: 1.5rem 0; }
    /* Stack: bottom = PDP nav, above it = Add to Bag/Buy Now sticky */
    .tilo-pdp-bottom-nav { display: flex; align-items: stretch; }
    .tilo-mobile-sticky {
        display: block;
        bottom: calc(60px + env(safe-area-inset-bottom, 0));
        padding-bottom: 0.6rem;
    }
    /* Give the page extra room at the bottom so the last product info isn't covered */
    body.single-product, body.single { padding-bottom: 130px; }
}
@media (max-width: 600px) {
    /* Tighter padding so everything fits on narrow phones */
    .tilo-header { padding: 0 0.5rem; }
    .tilo-header-inner { height: 70px; gap: 0.4rem; }
    /* Side groups shrink to their icons; the logo centers in the space BETWEEN
       them (optical centering). With 1 button left and 2-3 icons right, pinning
       the logo to the geometric page center glues it to the icon cluster. */
    .tilo-header-left, .tilo-header-right { flex: 0 0 auto; min-width: 0; }
    .tilo-header-right { gap: 0.35rem; }
    .tilo-logo { flex: 0 1 auto; margin: 0 auto; min-width: 0; }
    .tilo-logo img { height: 52px; }
    .tilo-logo-text { font-size: 1.4rem; letter-spacing: 2px; }
    /* Hide the desktop nav links (Shop / Collections / etc.) on phone — bottom-bar handles them */
    .tilo-nav { display: none; }
    .tilo-back, .tilo-header-link, .tilo-cart-btn { width: 38px; height: 38px; }
    .tilo-back svg, .tilo-header-link svg, .tilo-cart-btn svg { width: 17px; height: 17px; }
    .tilo-breadcrumbs { display: none !important; }
    
    /* Mobile Gallery Enhancements */
    .tilo-main-viewer {
        border-radius: var(--radius);
        margin: 0 -0.5rem;
        width: calc(100% + 1rem);
    }
    
    /* Hide thumbnails on small mobile, show only dots */
    .tilo-thumbs-vertical { display: none; }
    
    /* Enhance dots for small screens */
    .tilo-dots {
        padding: 1rem 0;
    }
    .tilo-dot {
        width: 10px;
        height: 10px;
    }
    .tilo-dot.active {
        width: 28px;
    }
    
    .tilo-title-btn { font-size: 0.72rem; gap: 0.28rem; }
    .tilo-title-btn svg { width: 13px; height: 13px; }
    .tilo-title-actions { gap: 0.7rem; }
    .tilo-title-row { flex-wrap: nowrap; align-items: center; }

    .tilo-info h1.tilo-title,
    .tilo-title-row h1.tilo-title { font-size: 1.5rem; margin: 0 0 0.5rem !important; padding: 0 !important; text-align: left !important; }
    .tilo-rating-price { gap: 0.6rem; }
    .tilo-price { font-size: 1.45rem; }
    .tilo-option-section { margin-bottom: 0.75rem; }
    .tilo-sku-tag { display: none; }
    .tilo-short-desc { margin-bottom: 0.75rem; font-size: 0.82rem; }
    .tilo-color-name, .tilo-size-box { height: 34px; font-size: 0.78rem; padding: 0 0.75rem; }
    /* Hide in-page buttons on mobile — floating bar handles it */
    .tilo-cart-section { display: none; }
    .tilo-trust-row { gap: 0.25rem 0.75rem; }
    .tilo-products-row, .tilo-products-scroll {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 0.7rem;
        padding: 0 1rem 0.5rem;
        margin: 0 -1rem;
        scrollbar-width: none;
    }
    .tilo-products-row::-webkit-scrollbar,
    .tilo-products-scroll::-webkit-scrollbar { display: none; }
    .tilo-products-row .tilo-product-card,
    .tilo-products-scroll .tilo-product-card {
        flex: 0 0 42%;
        min-width: 0;
        scroll-snap-align: start;
    }
    .tilo-section-title { font-size: 1.4rem; }
    .tilo-section-title::after { width: 30px; margin-top: 0.35rem; }
    .tilo-recently-viewed, .tilo-recommended { margin-top: 1.5rem; padding: 1.2rem 0 1.5rem; }
    .tilo-product-card-info { padding: 0.7rem 0.75rem; }
    .tilo-product-card-title { font-size: 0.85rem; }
    .tilo-product-card-price { font-size: 0.82rem; }
}

/* ── GRID BLOWOUT FIX (3 Aug 2026) ────────────────────────────────────────
   Grid and flex children default to min-width:auto, so a wide child refuses
   to shrink below its content. .tilo-gallery was rendering 1260px wide inside
   a 423px column; .tilo-main-viewer then measured 1274px and its
   aspect-ratio:4/5 turned that into a 1592px-tall image — the product photo
   overflowed the phone screen and was effectively unviewable.
   Same root cause as the shop-grid overflow fixed on 26 Jul.            */
.tilo-product { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 993px) {
  .tilo-product { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.tilo-gallery,
.tilo-gallery-container,
.tilo-main-viewer,
.tilo-main-img-wrap { min-width: 0; max-width: 100%; }
.tilo-main-img { max-width: 100%; }
.tilo-thumbs-vertical { min-width: 0; max-width: 100%; }
