/* TradeIn Public Styles - clean, modern, theme-friendly */
.tradein-app {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #111;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
    line-height: 1.5;
}
.tradein-app * { box-sizing: border-box; }
.tradein-app img { max-width: 100%; height: auto; }

/* Hero */
.ti-hero {
    text-align: center;
    padding: 40px 0 32px;
}
.ti-hero-title {
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 8px;
    color: #111;
    letter-spacing: -0.02em;
}
.ti-hero-subtitle {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
}

/* Section */
.ti-section { padding: 16px 0 40px; }
.ti-section-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #111;
    text-align: center;
    letter-spacing: -0.01em;
}
.ti-section-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 28px;
    text-align: center;
}

/* Breadcrumb */
.ti-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 24px 0 16px;
    font-size: 13px;
    color: #6b7280;
    flex-wrap: wrap;
}
.ti-breadcrumb a {
    color: #6b7280;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.15s;
}
.ti-breadcrumb a:hover { background: #f3f4f6; color: #111; }
.ti-breadcrumb-current {
    padding: 4px 8px;
    color: #111;
    font-weight: 500;
}

/* Grid */
.ti-grid { display: grid; gap: 16px; }
.ti-grid-2 { grid-template-columns: repeat(2, 1fr); }
.ti-grid-3 { grid-template-columns: repeat(2, 1fr); }
.ti-grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px)  { .ti-grid-3 { grid-template-columns: repeat(3, 1fr); } .ti-grid-4 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .ti-grid-3 { grid-template-columns: repeat(3, 1fr); } .ti-grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* Cards */
.ti-card,
.ti-product-card {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.ti-card { cursor: pointer; }
.ti-card:hover {
    border-color: #111;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    color: inherit;
}
.ti-card img,
.ti-product-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 0 auto 12px;
    display: block;
}
.ti-card-icon {
    width: 80px;
    height: 80px;
    background: #f3f4f6;
    border-radius: 12px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}
.ti-card-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    color: #111;
}

/* Condition pills (product list) */
.ti-condition-row {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 14px;
    flex-wrap: wrap;
}
.ti-condition-pill {
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid;
    transition: background 0.15s, transform 0.15s;
}
.ti-condition-new  { border-color: #3b82f6; color: #1d4ed8; background: #eff6ff; }
.ti-condition-new:hover  { background: #3b82f6; color: #fff; }
.ti-condition-used { border-color: #f97316; color: #c2410c; background: #fff7ed; }
.ti-condition-used:hover { background: #f97316; color: #fff; }

/* Product page header */
.ti-product-header {
    background: #f9fafb;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.ti-product-header img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}
.ti-product-icon {
    width: 100px;
    height: 100px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}
.ti-product-name {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}
.ti-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
    vertical-align: middle;
}
.ti-badge-new  { background: #dbeafe; color: #1d4ed8; }
.ti-badge-used { background: #ffedd5; color: #c2410c; }

.ti-progress-label {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 6px;
}
.ti-progress-bar {
    width: 220px;
    height: 8px;
    background: #e5e7eb;
    border-radius: 99px;
    overflow: hidden;
}
.ti-progress-fill {
    height: 100%;
    background: #22c55e;
    border-radius: 99px;
    transition: width 0.4s ease;
}

/* Product page layout */
.ti-product-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 1024px) {
    .ti-product-layout { grid-template-columns: 1fr 340px; }
}

/* Questions */
.ti-question-block { margin-bottom: 28px; }
.ti-question-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 12px;
    color: #111;
}
.ti-option-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    align-items: stretch;
}
.ti-option-btn {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    font-family: inherit;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ti-option-btn:hover:not(.is-selected) { border-color: #9ca3af; }
.ti-option-btn.is-selected {
    border-color: #111;
    background: #111;
    color: #fff;
}
.ti-option-name {
    font-size: 14px;
    font-weight: 600;
}
.ti-option-sub {
    font-size: 12px;
    color: #6b7280;
}
.ti-option-btn.is-selected .ti-option-sub { color: #d1d5db; }
.ti-option-price-down { color: #ef4444; font-weight: 600; }
.ti-option-price-up   { color: #10b981; font-weight: 600; }
.ti-option-btn.is-selected .ti-option-price-down,
.ti-option-btn.is-selected .ti-option-price-up { color: inherit; }

/* Summary sidebar */
.ti-summary {
    background: linear-gradient(160deg, #0f172a 0%, #1e293b 50%, #312e81 100%);
    color: #fff;
    border-radius: 18px;
    padding: 28px 24px;
    position: sticky;
    top: 16px;
    box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.4);
    overflow: hidden;
    isolation: isolate;
}
.ti-summary::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}
.ti-summary h3 {
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 20px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
}
.ti-summary-empty {
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    padding: 28px 12px;
    border: 1px dashed rgba(255,255,255,0.15);
    border-radius: 10px;
    line-height: 1.5;
}
.ti-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 10px;
    line-height: 1.4;
}
.ti-summary-row span:first-child  {
    color: rgba(255,255,255,0.55);
    flex: 1;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ti-summary-row span:last-child {
    font-weight: 600;
    text-align: right;
    margin-left: 16px;
    color: #fff;
}
.ti-summary-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15) 50%, transparent);
    border: none;
    margin: 18px 0;
}
.ti-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 12px;
    padding-top: 14px;
    border-top: 1px dashed rgba(255,255,255,0.18);
}
.ti-summary-total span:first-child {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255,255,255,0.7);
    font-weight: 600;
}
.ti-summary-total .price {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #86efac, #34d399 80%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
    text-shadow: 0 0 24px rgba(52, 211, 153, 0.3);
}

.ti-btn-primary,
.ti-btn-whatsapp {
    display: block;
    width: 100%;
    text-align: center;
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    margin-top: 18px;
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}
.ti-btn-primary {
    background: linear-gradient(135deg, #fff 0%, #f3f4f6 100%);
    color: #111;
    box-shadow: 0 8px 20px rgba(255,255,255,0.15);
}
.ti-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), transparent);
    transition: left 0.6s ease;
}
.ti-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255,255,255,0.25); }
.ti-btn-primary:hover::before { left: 100%; }
.ti-btn-primary:active { transform: translateY(0); }
.ti-btn-whatsapp { background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; box-shadow: 0 8px 20px rgba(34, 197, 94, 0.35); }
.ti-btn-whatsapp:hover  { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(34, 197, 94, 0.5); color: #fff; }
.ti-btn-whatsapp:active { transform: translateY(0); }

/* Booking page */
.ti-booking-section {
    background: #f9fafb;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
}
.ti-booking-section h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 14px;
    color: #111;
}
.ti-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
@media (min-width: 640px) { .ti-form-grid { grid-template-columns: repeat(2, 1fr); } }
.ti-form-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
    color: #374151;
}
.ti-form-field input,
.ti-form-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
}
.ti-form-field input:focus,
.ti-form-field select:focus {
    border-color: #111;
    outline: none;
}
.ti-appointment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}
.ti-appt-btn {
    padding: 14px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.ti-appt-btn:hover { border-color: #9ca3af; }
.ti-appt-btn.is-selected {
    border-color: #111;
    background: #111;
    color: #fff;
}
.ti-pickup-notice {
    background: #fef9c3;
    border: 1px solid #fde047;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #854d0e;
    margin-top: 10px;
}
.ti-submit-btn {
    width: 100%;
    padding: 15px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.15s;
    margin-top: 8px;
}
.ti-submit-btn:hover:not(:disabled)  { opacity: 0.9; }
.ti-submit-btn:disabled  { opacity: 0.5; cursor: not-allowed; }

/* Success */
.ti-success {
    text-align: center;
    padding: 60px 20px;
}
.ti-success-icon { font-size: 64px; margin-bottom: 16px; }
.ti-success h2   { font-size: 26px; font-weight: 700; margin: 0 0 8px; }
.ti-success p    { color: #6b7280; margin: 0 0 8px; }
.ti-success .ref {
    font-size: 28px;
    font-weight: 700;
    color: #16a34a;
    margin: 16px 0 32px;
    letter-spacing: 0.02em;
}

.ti-empty {
    text-align: center;
    padding: 50px 20px;
    color: #9ca3af;
    font-size: 14px;
}
.ti-loading {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
    font-size: 14px;
}

/* Custom SEO content sections (above and below widget) */
.ti-content {
    margin: 32px 0;
    line-height: 1.7;
    color: #1f2937;
}
.ti-content-intro { margin-top: 24px; margin-bottom: 32px; }
.ti-content-seo   { margin-top: 48px; padding-top: 32px; border-top: 1px solid #e5e7eb; }

.ti-content h1, .ti-content h2, .ti-content h3, .ti-content h4 {
    color: #111;
    margin-top: 1.4em;
    margin-bottom: 0.5em;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.ti-content h2 { font-size: 24px; }
.ti-content h3 { font-size: 20px; }
.ti-content h4 { font-size: 17px; }
.ti-content p { margin: 0 0 1em; }
.ti-content img { max-width: 100%; height: auto; border-radius: 8px; }
.ti-content ul, .ti-content ol { padding-left: 1.4em; margin: 0 0 1em; }
.ti-content li { margin-bottom: 0.3em; }
.ti-content a { color: #2271b1; text-decoration: underline; }
.ti-content a:hover { color: #135e96; }
.ti-content blockquote {
    border-left: 3px solid #e5e7eb;
    padding: 4px 16px;
    margin: 1em 0;
    color: #6b7280;
    font-style: italic;
}
.ti-content code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

/* Multi-select checkbox options */
.ti-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    align-items: stretch; /* ensure all cells the same height */
}
.ti-checkbox-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    font-family: inherit;
}
.ti-checkbox-option:hover { border-color: #9ca3af; }
.ti-checkbox-option.is-selected {
    border-color: #111;
    background: #f9fafb;
}
.ti-checkbox-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #111;
    flex-shrink: 0;
    margin: 0;
}
.ti-checkbox-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #111;
}
.ti-option-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    min-width: 0;
}

/* Help button */
.ti-question-title {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ti-help-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #f3f4f6;
    border: none;
    color: #6b7280;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, transform 0.15s;
    font-family: inherit;
    line-height: 1;
    padding: 0;
}
.ti-help-btn:hover {
    background: #111;
    color: #fff;
    transform: scale(1.1);
}

/* Help modal popup */
.ti-help-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 20px;
    animation: ti-fade-in 0.2s ease;
}
@keyframes ti-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.ti-help-modal {
    background: #fff;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: ti-slide-up 0.25s ease;
}
@keyframes ti-slide-up {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}
.ti-help-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f3f4f6;
    border: none;
    color: #6b7280;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
    line-height: 1;
    padding: 0;
    font-family: inherit;
}
.ti-help-modal-close:hover {
    background: #111;
    color: #fff;
}
.ti-help-modal-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 16px;
    padding-right: 40px;
    color: #111;
}
.ti-help-modal-body {
    font-size: 15px;
    line-height: 1.7;
    color: #1f2937;
}
.ti-help-modal-body h1,
.ti-help-modal-body h2,
.ti-help-modal-body h3,
.ti-help-modal-body h4 {
    color: #111;
    margin-top: 1.2em;
    margin-bottom: 0.5em;
    font-weight: 700;
}
.ti-help-modal-body h2 { font-size: 20px; }
.ti-help-modal-body h3 { font-size: 17px; }
.ti-help-modal-body h4 { font-size: 15px; }
.ti-help-modal-body p { margin: 0 0 1em; }
.ti-help-modal-body p:last-child { margin-bottom: 0; }
.ti-help-modal-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 8px 0;
}
.ti-help-modal-body ul,
.ti-help-modal-body ol {
    padding-left: 1.4em;
    margin: 0 0 1em;
}
.ti-help-modal-body li { margin-bottom: 0.3em; }
.ti-help-modal-body a {
    color: #2271b1;
    text-decoration: underline;
}
.ti-help-modal-body a:hover { color: #135e96; }
.ti-help-modal-body blockquote {
    border-left: 3px solid #e5e7eb;
    padding: 4px 16px;
    margin: 1em 0;
    color: #6b7280;
    font-style: italic;
}
.ti-help-modal-body code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}
.ti-help-modal-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}
.ti-help-modal-body th,
.ti-help-modal-body td {
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    text-align: left;
}
.ti-help-modal-body th {
    background: #f9fafb;
    font-weight: 600;
}

/* Option image + description (used in both single & multi options) */
.ti-option-image {
    width: 100%;
    max-width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 8px;
    display: block;
}
.ti-option-desc {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
    line-height: 1.4;
}
.ti-option-btn.is-selected .ti-option-desc {
    color: #d1d5db;
}

/* When option has an image, center the content */
.ti-option-btn:has(.ti-option-image) {
    align-items: center;
    text-align: center;
    padding: 16px 12px;
}
.ti-option-btn:has(.ti-option-image) .ti-option-name {
    text-align: center;
}

/* Multi-select layout adjustment when images are present */
.ti-checkbox-option {
    align-items: flex-start;
}
.ti-checkbox-option .ti-option-image {
    max-width: 56px;
    height: 56px;
    margin: 0;
    flex-shrink: 0;
}
.ti-checkbox-option .ti-option-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* "Included" label for default-checked options that remain checked */
.ti-option-included {
    color: #16a34a;
    font-weight: 600;
}
.ti-checkbox-option.is-selected .ti-option-included {
    color: #16a34a;
}

/* ═══════════════ Holiday closure popup ═══════════════ */
.ti-closure-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: ti-fade-in 0.3s ease-out;
}
@keyframes ti-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.ti-closure-modal {
    background: #fff;
    border-radius: 16px;
    padding: 40px 32px;
    max-width: 560px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    animation: ti-pop-in 0.4s ease-out;
}
@keyframes ti-pop-in {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}
.ti-closure-icon {
    font-size: 56px;
    margin-bottom: 12px;
    line-height: 1;
}
.ti-closure-heading {
    margin: 0 0 16px;
    font-size: 26px;
    font-weight: 700;
    color: #111;
}
.ti-closure-message {
    margin: 0 0 20px;
    color: #374151;
    font-size: 15px;
    line-height: 1.6;
}
.ti-closure-message p { margin: 0 0 10px; }
.ti-closure-message img { max-width: 100%; height: auto; border-radius: 8px; margin: 10px 0; }
.ti-closure-resume {
    margin: 16px 0;
    padding: 12px;
    background: #fef3c7;
    border-radius: 8px;
    color: #92400e;
    font-size: 14px;
}
.ti-closure-whatsapp {
    display: inline-block;
    margin-top: 8px;
    padding: 12px 24px;
    background: #25d366;
    color: #fff !important;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.15s;
}
.ti-closure-whatsapp:hover {
    background: #1ebe57;
}

/* Lock body scroll when closure overlay is visible */
body:has(.ti-closure-overlay) {
    overflow: hidden;
}

/* ═══════════════ Pickup paused notice ═══════════════ */
.ti-pickup-paused-notice {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 14px 18px;
    border-radius: 6px;
    margin-bottom: 20px;
    color: #78350f;
    font-size: 14px;
}
.ti-pickup-paused-notice strong { color: #78350f; }

/* ═══════════ Locked state for questions (before variant is selected) ═══════════ */
#ti-questions {
    position: relative;
    transition: filter 0.3s ease, opacity 0.3s ease;
}
#ti-questions.is-locked > * {
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    filter: blur(3px) saturate(0.5);
    opacity: 0.55;
}
#ti-questions.is-locked::before {
    content: var(--ti-lock-prompt, '👆 Make a selection above to continue');
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #111;
    color: #fff;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    z-index: 5;
    max-width: calc(100% - 40px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.2px;
    pointer-events: none;
    animation: ti-pulse 2s ease-in-out infinite;
}
@keyframes ti-pulse {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50%      { transform: translateX(-50%) scale(1.04); }
}

/* ═══════════════════════════════════════════════════
   PRODUCT PAGE REDESIGN (v2.7)
   ═══════════════════════════════════════════════════ */

/* Hero section with gradient background */
.ti-product-hero {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 28px;
    color: #fff;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 28px;
    align-items: center;
    overflow: hidden;
}
.ti-product-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(168, 85, 247, 0.18) 0%, transparent 50%);
    pointer-events: none;
}
.ti-product-hero > * { position: relative; z-index: 1; }

.ti-product-hero-image {
    width: 140px;
    height: 140px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    padding: 14px;
    flex-shrink: 0;
}
.ti-product-hero-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.4));
}
.ti-product-hero-image .ti-product-icon {
    font-size: 64px;
    opacity: 0.7;
}

.ti-product-hero-body .ti-badge {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    display: inline-block;
}
.ti-product-hero-body .ti-badge-new {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.4);
    color: #86efac;
}
.ti-product-hero-body .ti-badge-used {
    background: rgba(251, 146, 60, 0.2);
    border-color: rgba(251, 146, 60, 0.4);
    color: #fdba74;
}

.ti-product-hero .ti-product-name {
    margin: 12px 0 18px;
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.15;
}

.ti-product-hero-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
}
.ti-hero-price-label {
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.ti-hero-price-value {
    font-size: 38px;
    font-weight: 800;
    background: linear-gradient(135deg, #86efac 0%, #34d399 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
}

.ti-product-hero .ti-progress-label {
    color: rgba(255,255,255,0.7);
    margin: 0 0 8px;
    font-size: 13px;
}
.ti-product-hero .ti-progress-bar {
    background: rgba(255,255,255,0.12);
    height: 6px;
    border-radius: 999px;
    overflow: hidden;
}
.ti-product-hero .ti-progress-fill {
    background: linear-gradient(90deg, #86efac, #34d399);
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 999px;
    box-shadow: 0 0 12px rgba(52, 211, 153, 0.6);
}

/* ─── Step indicators ─── */
.ti-step-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    color: #111;
}
.ti-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #111;
    color: #fff;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

/* ─── Variant cards (storage tiers) ─── */
.ti-variants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}
.ti-variant-card {
    position: relative;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    padding: 22px 20px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    display: grid;
    grid-template-areas:
        "name check"
        "suffix check"
        "price check";
    align-items: center;
    gap: 4px 0;
}
.ti-variant-card:hover {
    border-color: #111;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.ti-variant-name {
    grid-area: name;
    font-weight: 700;
    font-size: 18px;
    color: #111;
}
.ti-variant-suffix {
    grid-area: suffix;
    font-size: 11px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-top: 6px;
}
.ti-variant-price {
    grid-area: price;
    font-size: 22px;
    font-weight: 800;
    color: #059669;
    margin-top: 2px;
}
.ti-variant-check {
    grid-area: check;
    justify-self: end;
    width: 28px;
    height: 28px;
    background: transparent;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: transparent;
    transition: all 0.2s ease;
}
.ti-variant-card.is-selected {
    border-color: #111;
    background: linear-gradient(135deg, #fafafa, #fff);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}
.ti-variant-card.is-selected .ti-variant-check {
    background: #111;
    border-color: #111;
    color: #fff;
}

/* ─── Sticky sidebar on desktop ─── */
@media (min-width: 900px) {
    .ti-summary {
        position: sticky;
        top: 20px;
        align-self: start;
    }
}

/* ─── Mobile hero stacked ─── */
@media (max-width: 700px) {
    .ti-product-hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 24px;
    }
    .ti-product-hero-image {
        margin: 0 auto;
        width: 100px;
        height: 100px;
    }
    .ti-product-hero .ti-product-name {
        font-size: 24px;
    }
    .ti-hero-price-value {
        font-size: 30px;
    }
    .ti-product-hero-price {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* ═══════════ Admin-only empty state with CTA ═══════════ */
.ti-empty-admin {
    background: linear-gradient(to bottom right, #fef9c3, #fef3c7);
    border: 2px dashed #f59e0b;
    border-radius: 16px;
    padding: 48px 32px;
    text-align: center;
    color: #78350f;
    margin: 32px 0;
}
.ti-empty-icon {
    font-size: 56px;
    margin-bottom: 12px;
    line-height: 1;
}
.ti-empty-admin h3 {
    margin: 0 0 12px;
    font-size: 22px;
    color: #78350f;
}
.ti-empty-admin p {
    margin: 0 0 12px;
    color: #92400e;
    line-height: 1.6;
}
.ti-empty-cta {
    display: inline-block;
    background: #111;
    color: #fff !important;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 600;
    margin: 6px 8px;
    transition: transform 0.15s, box-shadow 0.15s;
}
.ti-empty-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    color: #fff !important;
}
.ti-empty-tip {
    font-size: 13px;
    color: #92400e;
    margin-top: 16px !important;
    font-style: italic;
}

/* ── Search Bar ─────────────────────────────────────────────────────────────── */
.ti-search-block {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 28px;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.ti-search-block:focus-within {
    border-color: #111;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.ti-search-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 10px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.ti-search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.ti-search-icon {
    position: absolute;
    left: 14px;
    color: #9ca3af;
    font-size: 16px;
    pointer-events: none;
    line-height: 1;
}
.ti-search-input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    font-size: 15px;
    font-family: inherit;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #111;
    outline: none;
    transition: border-color 0.15s;
    box-sizing: border-box;
}
.ti-search-input::placeholder { color: #9ca3af; }
.ti-search-input:focus { border-color: #111; }
.ti-search-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    z-index: 999;
    overflow: hidden;
}
.ti-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    text-decoration: none;
    color: #111;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.12s;
}
.ti-search-item:last-child { border-bottom: none; }
.ti-search-item:hover { background: #f9fafb; }
.ti-search-item-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 6px;
}
.ti-search-item-icon {
    width: 36px;
    height: 36px;
    background: #f3f4f6;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.ti-search-item-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}
.ti-search-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 99px;
    flex-shrink: 0;
}
.ti-search-badge-new  { background: #d1fae5; color: #065f46; }
.ti-search-badge-used { background: #fef3c7; color: #92400e; }
.ti-search-empty {
    padding: 14px 16px;
    color: #9ca3af;
    font-size: 14px;
    text-align: center;
}
