/*
Theme Name: TantoShop
Theme URI:
Description: Custom theme for TantoShop — a product comparison shop powered by WordPress.
Version: 1.0.0
Author: TantoShop
Text Domain: tantoshop
*/

/* ─── Reset / Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --color-primary:    #111111;
    --color-primary-dk: #000000;
    --color-accent:     #333333;
    --color-accent-lt:  #f0f0f0;
    --color-text:       #1a1a1a;
    --color-muted:      #666666;
    --color-border:     #e0e0e0;
    --color-bg:         #f7f7f7;
    --color-white:      #ffffff;
    --font-sans:        'Inter', system-ui, -apple-system, sans-serif;
    --radius:           8px;
    --shadow-sm:        0 1px 3px rgba(0,0,0,.08);
    --shadow-md:        0 4px 16px rgba(0,0,0,.10);
    --max-width:        1440px;
    --header-h:         120px;
}

html { font-size: 16px; scroll-behavior: smooth; height: 100%; }
body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
body > .ts-footer {
    margin-top: auto;
}
a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 48px;
}
@media (max-width: 1024px) {
    .container { padding: 0 32px; }
}
@media (max-width: 768px) {
    .container { padding: 0 16px; }
}

/* ─── Header ────────────────────────────────────────────────────────────────── */
.ts-header {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.ts-logo {
    display: flex;
    justify-content: center;
    padding: 20px 0 12px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -.5px;
}
.ts-logo a { color: inherit; }
.ts-logo a:hover { text-decoration: none; }
.ts-logo img { height: 56px; width: auto; }

.ts-search {
    max-width: 560px;
    margin: 0 auto 16px;
}
.ts-search form {
    display: flex;
    border: 1.5px solid var(--color-border);
    border-radius: 999px;
    overflow: hidden;
    background: var(--color-bg);
    transition: border-color .2s;
}
.ts-search form:focus-within { border-color: var(--color-accent); }
.ts-search input[type="search"] {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 18px;
    font-size: .95rem;
    color: var(--color-text);
    outline: none;
}
.ts-search button {
    border: none;
    background: var(--color-accent);
    color: #fff;
    padding: 0 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}
.ts-search button svg {
    display: block;
    flex-shrink: 0;
}
.ts-search button:hover { background: var(--color-primary); }

/* Category nav */
.ts-nav {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
}

/* Top-level list */
.ts-nav > div > ul {
    display: flex;
    flex-wrap: wrap;
    position: relative;
}

/* All list items */
.ts-nav ul li {
    position: relative;
}

/* All links */
.ts-nav ul li a {
    display: block;
    padding: 13px 20px;
    color: var(--color-text);
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
    transition: background .15s, color .15s;
}
.ts-nav ul li a:hover,
.ts-nav ul li.current-menu-item > a,
.ts-nav ul li:hover > a {
    background: var(--color-bg);
    color: var(--color-primary);
    text-decoration: none;
}

/* Dropdown panel */
.ts-nav ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-top: 2px solid var(--color-primary);
    box-shadow: 0 6px 20px rgba(0,0,0,.10);
    z-index: 200;
    flex-direction: column;
}

/* Show on hover */
.ts-nav ul li:hover > ul {
    display: flex;
}

/* Dropdown items */
.ts-nav ul ul li a {
    padding: 10px 20px;
    font-size: .9rem;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
}
.ts-nav ul ul li:last-child a {
    border-bottom: none;
}

/* Indicate items with children */
.ts-nav ul li.menu-item-has-children > a::after,
.ts-nav ul li.ts-has-children > a::after {
    content: ' ▾';
    font-size: .7rem;
    opacity: .5;
}

/* ─── Hero / Banner Slider ──────────────────────────────────────────────────── */
.ts-banner-slider {
    position: relative;
    overflow: hidden;
    background: #1e293b;
}
.ts-banner-slider__track {
    display: flex;
    transition: transform .5s ease;
}
.ts-banner-slide {
    min-width: 100%;
    position: relative;
}
.ts-banner-slide a { display: block; }
.ts-banner-slide img {
    width: 100%;
    height: 420px;
    object-fit: contain;
    object-position: center;
}
.ts-banner-slide--placeholder {
    height: 420px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
}

.ts-banner-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}
.ts-banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    border: none;
    cursor: pointer;
    transition: background .2s;
}
.ts-banner-dot.active { background: #fff; }

.ts-banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,.35);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    z-index: 10;
}
.ts-banner-arrow:hover { background: rgba(0,0,0,.6); }
.ts-banner-arrow--prev { left: 16px; }
.ts-banner-arrow--next { right: 16px; }

/* ─── Section Headers ───────────────────────────────────────────────────────── */
.ts-section { padding: 56px 0; }
.ts-section--alt { background: var(--color-white); }

.ts-section__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 32px;
}
.ts-section__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}
.ts-section__link {
    font-size: .875rem;
    color: var(--color-accent);
    font-weight: 500;
}

/* ─── Product Grid ──────────────────────────────────────────────────────────── */
.ts-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.ts-product-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
    display: flex;
    flex-direction: column;
}
.ts-product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.ts-product-card__image {
    display: block;
    background: var(--color-bg);
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
.ts-product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .3s;
}
.ts-product-card:hover .ts-product-card__image img { transform: scale(1.04); }
.ts-product-card__no-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0e7ef 0%, #c7d2e0 100%);
}

.ts-product-card__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.ts-product-card__body .ts-price-cards {
    margin-top: auto;
}
.ts-product-card__title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.3;
}
.ts-product-card__title a { color: var(--color-text); }
.ts-product-card__title a:hover { color: var(--color-accent); text-decoration: none; }
.ts-product-card__excerpt {
    font-size: .825rem;
    color: var(--color-muted);
    margin-bottom: 12px;
    line-height: 1.5;
}

.ts-product-card__prices { margin-top: 8px; }
.ts-product-card__prices li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    border-top: 1px solid var(--color-border);
    font-size: .85rem;
}
.ts-price {
    font-weight: 700;
    color: var(--color-primary);
    min-width: 52px;
}
.ts-provider-link {
    color: var(--color-accent);
    font-size: .8rem;
}
.ts-provider-name { color: var(--color-muted); font-size: .8rem; }

/* ─── Articles Grid ─────────────────────────────────────────────────────────── */
.ts-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.ts-article-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}
.ts-article-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.ts-article-card__image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--color-bg);
}
.ts-article-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .3s;
}
.ts-article-card:hover .ts-article-card__image img { transform: scale(1.04); }
.ts-article-card__no-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 100%);
}
.ts-article-card__body { padding: 20px; }
.ts-article-card__title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}
.ts-article-card__title a { color: var(--color-text); }
.ts-article-card__title a:hover { color: var(--color-accent); text-decoration: none; }
.ts-article-card__excerpt { font-size: .85rem; color: var(--color-muted); line-height: 1.6; }
.ts-article-card__cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}
.ts-article-card__cat {
    background: var(--color-accent-lt);
    color: var(--color-accent);
    font-size: .72rem;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 999px;
    text-decoration: none;
}
.ts-article-card__cat:hover { background: var(--color-primary); color: var(--color-white); text-decoration: none; }

.ts-article-single__cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

/* ─── Single Product Page ───────────────────────────────────────────────────── */
.ts-product-single {
    padding: 48px 0;
}
.ts-product-single__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
@media (max-width: 768px) {
    .ts-product-single__inner { grid-template-columns: 1fr; }
}

/* Gallery: thumbnail strip left + main image right */
.ts-product-single__gallery {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

/* Thumbnail strip */
.ts-gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.ts-gallery-thumb {
    width: 72px;
    height: 72px;
    border: 2px solid var(--color-border);
    border-radius: 6px;
    overflow: hidden;
    padding: 0;
    background: var(--color-bg);
    cursor: pointer;
    transition: border-color .15s;
}
.ts-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.ts-gallery-thumb:hover { border-color: var(--color-accent); }
.ts-gallery-thumb.active { border-color: var(--color-primary); border-width: 2px; }

/* Main image */
.ts-gallery-main {
    flex: 1;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--color-bg);
    aspect-ratio: 1 / 1;
}
.ts-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: opacity .15s ease;
}
.ts-gallery-main img.ts-img-fade {
    opacity: 0;
}

.ts-product-single__info {}
.ts-product-single__cats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.ts-product-single__cat {
    background: var(--color-accent-lt);
    color: var(--color-accent);
    font-size: .75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
}
.ts-product-single__title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 16px;
    line-height: 1.2;
}
.ts-product-single__description {
    color: var(--color-muted);
    margin-bottom: 32px;
    line-height: 1.7;
}

.ts-prices-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}
.ts-prices-table th {
    text-align: left;
    padding: 10px 14px;
    background: var(--color-primary);
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.ts-prices-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--color-border);
    font-size: .9rem;
    vertical-align: middle;
}
.ts-prices-table tr:last-child td { border-bottom: none; }
.ts-prices-table tr:nth-child(even) td { background: var(--color-bg); }
/* Price cards */
.ts-price-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.ts-price-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-white);
    text-decoration: none;
    color: var(--color-text);
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
a.ts-price-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
    text-decoration: none;
}

.ts-price-card__provider {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}
.ts-price-card__name {
    font-weight: 600;
    font-size: .95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ts-price-card .ts-price {
    font-size: 1.1rem;
    font-weight: 700;
    white-space: nowrap;
    margin-left: auto;
}

.ts-price-card .ts-buy-btn {
    flex-shrink: 0;
}

.ts-provider-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 36px;
    margin-right: 10px;
    vertical-align: middle;
    flex-shrink: 0;
}
.ts-provider-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.ts-prices-table .ts-price { font-size: 1.05rem; }

.ts-buy-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-accent);
    color: #fff;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 600;
    font-size: .9rem;
    transition: background .2s;
}
.ts-buy-btn:hover { background: var(--color-primary); text-decoration: none; color: #fff; }

/* ─── Single Article Page ───────────────────────────────────────────────────── */
.ts-article-single { padding: 48px 0; }
.ts-article-single__inner {
    max-width: 760px;
    margin: 0 auto;
}
.ts-article-single__hero {
    margin-bottom: 36px;
    border-radius: var(--radius);
    overflow: hidden;
}
.ts-article-single__hero img { width: 100%; }
.ts-article-single__title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 24px;
    line-height: 1.2;
}
.ts-article-single__content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text);
}
.ts-article-single__content h2,
.ts-article-single__content h3 {
    margin: 32px 0 12px;
    color: var(--color-primary);
}
.ts-article-single__content p { margin-bottom: 20px; }

.ts-article-product-section {
    margin: 36px 0;
    padding: 24px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}
.ts-article-product-section .ts-product-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    max-width: 100%;
}
.ts-article-product-section .ts-product-card__image {
    aspect-ratio: unset;
    min-height: 200px;
}
.ts-article-product-section .ts-price-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
@media (max-width: 768px) {
    .ts-article-product-section .ts-product-card {
        grid-template-columns: 1fr;
    }
    .ts-article-product-section .ts-product-card__image {
        min-height: 180px;
    }
}

/* ─── Breadcrumb ────────────────────────────────────────────────────────────── */
.ts-breadcrumb {
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: .82rem;
    color: var(--color-muted);
}
.ts-breadcrumb a { color: var(--color-muted); }
.ts-breadcrumb a:hover { color: var(--color-accent); }
.ts-breadcrumb span + span::before { content: ' / '; margin: 0 4px; }

/* ─── Footer ────────────────────────────────────────────────────────────────── */
.ts-footer {
    background: var(--color-white);
    color: var(--color-muted);
    border-top: 1px solid var(--color-border);
    text-align: center;
    padding: 28px 0;
    font-size: .85rem;
}
.ts-footer a { color: var(--color-text); }

/* ─── Category Filter ───────────────────────────────────────────────────────── */
.ts-cat-filter {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.ts-cat-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ts-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1.5px solid var(--color-border);
    background: var(--color-white);
    color: var(--color-text);
    font-size: .825rem;
    font-weight: 500;
    white-space: nowrap;
    transition: border-color .15s, background .15s, color .15s;
    cursor: pointer;
}
.ts-cat-pill:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    text-decoration: none;
}
.ts-cat-pill.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}
.ts-cat-arrow {
    font-size: .6rem;
    opacity: .6;
}

/* Subcategory pills — shown indented below active parent */
.ts-subcat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-left: 12px;
    border-left: 2px solid var(--color-border);
    margin-left: 6px;
}
.ts-cat-pill--sub {
    font-size: .775rem;
    padding: 4px 12px;
}

/* Subcategory cards shown at top of category page */
.ts-subcats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}
.ts-subcat-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-white);
    color: var(--color-text);
    font-size: .875rem;
    font-weight: 500;
    transition: border-color .15s, background .15s;
}
.ts-subcat-link:hover {
    border-color: var(--color-primary);
    background: var(--color-bg);
    text-decoration: none;
}
.ts-subcat-count {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    padding: 1px 7px;
    font-size: .75rem;
    color: var(--color-muted);
}

/* ─── Share Buttons ─────────────────────────────────────────────────────────── */
.ts-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 12px;
    padding-bottom: 16px;
}
.ts-share__label {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--color-muted);
    margin-right: 4px;
}
.ts-share__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: 1.5px solid transparent;
    transition: opacity .15s, transform .15s;
}
.ts-share__btn:hover { opacity: .85; transform: translateY(-1px); text-decoration: none; }
.ts-share__btn span { white-space: nowrap; }

.ts-share__btn--facebook  { background: #1877f2; color: #fff; }
.ts-share__btn--twitter   { background: #000;    color: #fff; }
.ts-share__btn--whatsapp  { background: #25d366; color: #fff; }
.ts-share__btn--linkedin  { background: #0a66c2; color: #fff; }
.ts-share__btn--copy      { background: var(--color-white); color: var(--color-text); border-color: var(--color-border); }
.ts-share__btn--copy.copied { background: #22c55e; color: #fff; border-color: #22c55e; }

@media (max-width: 768px) {
    .ts-share__btn span { display: none; }
    .ts-share__btn { padding: 9px; border-radius: 50%; }
}

/* ─── Search Results ────────────────────────────────────────────────────────── */
.ts-search-group-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border);
}

/* ─── Utilities ─────────────────────────────────────────────────────────────── */
.ts-no-posts {
    text-align: center;
    padding: 48px 0;
    color: var(--color-muted);
}

/* ─── Search row (search + hamburger) ──────────────────────────────────────── */
.ts-header__search-row {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 560px;
    margin: 0 auto 16px;
}
.ts-header__search-row .ts-search {
    flex: 1;
    max-width: none;
    margin: 0;
}

/* Hamburger — hidden on desktop */
.ts-hamburger {
    display: none;
}

/* ─── Responsive — Mobile (≤768px) ─────────────────────────────────────────── */
@media (max-width: 768px) {

    /* Header */
    .ts-logo { padding: 16px 0 10px; }
    .ts-logo img { height: 44px; }
    .ts-header__search-row { margin-bottom: 12px; max-width: 100%; }

    /* Hamburger button — visible on mobile */
    .ts-hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        flex-shrink: 0;
        width: 44px;
        height: 44px;
        padding: 10px 8px;
        background: none;
        border: 1.5px solid var(--color-border);
        border-radius: var(--radius);
        cursor: pointer;
        gap: 5px;
    }
    .ts-hamburger span {
        display: block;
        height: 2px;
        background: var(--color-text);
        border-radius: 2px;
        transition: transform .25s, opacity .25s;
        transform-origin: center;
    }
    /* Animate to × when active */
    .ts-hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .ts-hamburger.is-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
    .ts-hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* Nav — hidden by default on mobile, shown when .is-open */
    .ts-nav {
        display: none;
        border-top: 1px solid var(--color-border);
    }
    .ts-nav.is-open { display: block; }

    /* Mobile nav links — full width, large tap targets */
    .ts-nav > div > ul { flex-direction: column; }
    .ts-nav ul li a {
        padding: 14px 20px;
        border-bottom: 1px solid var(--color-border);
        font-size: 1rem;
    }

    /* Mobile dropdowns — hidden by default, shown with .ts-open via JS */
    .ts-nav ul ul {
        position: static;
        box-shadow: none;
        border: none;
        border-top: none;
        background: var(--color-bg);
        display: none;
        flex-direction: column;
    }
    .ts-nav ul ul li a {
        padding-left: 36px;
        font-size: .9rem;
        color: var(--color-muted);
        border-bottom: 1px solid var(--color-border);
    }

    /* Banner */
    .ts-banner-slide img,
    .ts-banner-slide--placeholder { height: 220px; }

    /* Product grid — 1 column */
    .ts-products-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    /* Article grid — 1 column */
    .ts-articles-grid {
        grid-template-columns: 1fr;
    }

    /* Product single — stack vertically */
    .ts-product-single__inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .ts-product-single__gallery {
        flex-direction: column-reverse;
    }
    .ts-gallery-thumbs {
        flex-direction: row;
        overflow-x: auto;
        gap: 8px;
    }
    .ts-gallery-thumb {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
    }
    .ts-gallery-main { width: 100%; }

    /* Price cards — wrap on mobile */
    .ts-price-card {
        flex-wrap: wrap;
        gap: 10px;
    }
    .ts-price-card__provider {
        flex: 1;
        min-width: 0;
    }
    .ts-price-card .ts-price {
        margin-left: 0;
    }
    .ts-price-card .ts-buy-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    /* Prices table — horizontal scroll */
    .ts-prices-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    /* Article single */
    .ts-article-single__inner { padding: 0; }
    .ts-article-single__title { font-size: 1.5rem; }

    /* Category filter pills — scroll horizontally */
    .ts-cat-filter {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
    }
    .ts-cat-group { flex-shrink: 0; }

    /* Section padding */
    .ts-section { padding: 32px 0; }
}
