:root {
    --tth-orange: #ff8a00;
    --tth-orange-dark: #f57c00;
    --tth-text: #101828;
    --tth-muted: #667085;
    --tth-border: #e5e7eb;
    --tth-bg: #f7f7f8;
    --tth-white: #ffffff;
    --tth-radius: 16px;
    --tth-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
    --tth-container: 1440px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--tth-bg);
    color: var(--tth-text);
    font-family: Arial, Helvetica, sans-serif;
}

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

.tth-container {
    width: min(var(--tth-container), calc(100% - 32px));
    margin: 0 auto;
}

.tth-site-header {
    background: var(--tth-white);
    border-bottom: 1px solid var(--tth-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.tth-header-inner {
    display: grid;
    grid-template-columns: 250px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 16px 0 12px;
}

.tth-logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tth-logo-badge {
    width: 40px;
    height: 40px;
    background: var(--tth-orange);
    color: #fff;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-weight: 700;
}

.tth-logo-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.05;
}

.tth-logo-subtitle {
    font-size: 14px;
    color: var(--tth-muted);
}

####################################################
.tth-logo-media {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tth-logo-media .custom-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.tth-logo-media .custom-logo {
    width: 247px;
    height: 76px;
    object-fit: contain;
    display: block;
}

.tth-logo-badge {
    width: 40px;
    height: 40px;
    background: var(--tth-orange);
    color: #fff;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-weight: 700;
}
####################################################
.tth-search-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tth-all-categories-btn {
    border: 1px solid #f2c5a0;
    background: #fff7f0;
    border-radius: 999px;
    padding: 14px 18px;
    font-weight: 600;
    cursor: pointer;
}

.tth-search-form {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 2px solid #ffd7b3;
    background: #fff;
    border-radius: 999px;
    padding: 8px 10px;
}

.tth-search-input {
    flex: 1;
    border: 0;
    outline: none;
    font-size: 15px;
    background: transparent;
    min-width: 120px;
}

.tth-search-type-switch {
    display: flex;
    gap: 8px;
}

.tth-chip {
    border: 1px solid var(--tth-border);
    background: #fff;
    border-radius: 999px;
    padding: 8px 12px;
    cursor: pointer;
}

.tth-search-submit {
    border: 0;
    background: var(--tth-orange);
    color: #fff;
    border-radius: 999px;
    padding: 12px 22px;
    font-weight: 700;
    cursor: pointer;
}

.tth-header-actions {
    display: flex;
    gap: 10px;
}

.tth-action-btn {
    border: 1px solid var(--tth-border);
    background: #fff;
    border-radius: 12px;
    padding: 12px 14px;
    white-space: nowrap;
}

.tth-subnav {
    border-top: 1px solid #f3f4f6;
    background: #fff;
}

.tth-subnav-inner {
    display: flex;
    gap: 24px;
    padding: 12px 0;
    font-size: 14px;
    color: #475467;
    overflow-x: auto;
}

.tth-site-main {
    padding: 28px 0 60px;
}

.tth-hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 16px;
}

.tth-hero-main-card {
    grid-row: span 2;
    background: #fff;
    border: 1px solid var(--tth-border);
    border-radius: 24px;
    box-shadow: var(--tth-shadow);
    padding: 32px;
}

.tth-hero-main-card h1 {
    margin: 0 0 16px;
    font-size: 56px;
    line-height: 1.05;
}

.tth-hero-main-card p {
    margin: 0 0 24px;
    color: var(--tth-muted);
    font-size: 18px;
    line-height: 1.65;
}

.tth-hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tth-primary-btn,
.tth-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 700;
}

.tth-primary-btn {
    background: var(--tth-orange);
    color: #fff;
}

.tth-secondary-btn {
    background: #fff;
    color: var(--tth-text);
    border: 1px solid var(--tth-border);
}

.tth-hero-side-card {
    background: #fff;
    border: 1px solid var(--tth-border);
    border-radius: 20px;
    box-shadow: var(--tth-shadow);
    padding: 24px;
    min-height: 132px;
    font-size: 22px;
    font-weight: 700;
}

.tth-default-page {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid var(--tth-border);
}

.tth-site-footer {
    background: #fff;
    border-top: 1px solid var(--tth-border);
    padding: 20px 0;
    color: var(--tth-muted);
}

@media (max-width: 1200px) {
    .tth-header-inner {
        grid-template-columns: 1fr;
    }

    .tth-header-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .tth-hero-grid {
        grid-template-columns: 1fr 1fr;
    }

    .tth-hero-main-card {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .tth-hero-main-card h1 {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    .tth-search-wrap {
        flex-direction: column;
        align-items: stretch;
    }

    .tth-search-form {
        border-radius: 24px;
        flex-wrap: wrap;
    }

    .tth-search-type-switch {
        width: 100%;
    }

    .tth-hero-grid {
        grid-template-columns: 1fr;
    }

    .tth-hero-main-card h1 {
        font-size: 34px;
    }
}

.tth-categories-wrap {
    position: relative;
}

.tth-mega-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    width: 1120px;
    max-width: min(1120px, calc(100vw - 32px));
    background: #fff;
    border: 1px solid var(--tth-border);
    border-radius: 24px;
    box-shadow: 0 18px 48px rgba(16, 24, 40, 0.16);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 999;
}

.tth-categories-wrap.is-open .tth-mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tth-mega-menu-inner {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 420px;
}

.tth-mega-sidebar {
    background: #fcfcfd;
    border-right: 1px solid var(--tth-border);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tth-mega-sidebar-item {
    border: 1px solid transparent;
    background: #fff;
    border-radius: 14px;
    padding: 16px 18px;
    text-align: left;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tth-mega-sidebar-item:hover,
.tth-mega-sidebar-item.is-active {
    background: #fff7f0;
    border-color: #ffd7b3;
    color: var(--tth-orange-dark);
}

.tth-mega-content {
    padding: 22px;
}

.tth-mega-panel {
    display: none;
}

.tth-mega-panel.is-active {
    display: block;
}

.tth-mega-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.tth-mega-heading-row h3 {
    margin: 0;
    font-size: 30px;
    line-height: 1.15;
}

.tth-mega-heading-row a {
    color: var(--tth-orange-dark);
    font-weight: 700;
}

.tth-mega-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 14px;
}

.tth-mega-card {
    border: 1px solid var(--tth-border);
    border-radius: 18px;
    padding: 18px 20px;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tth-mega-card:hover {
    transform: translateY(-2px);
    border-color: #ffd7b3;
    box-shadow: 0 10px 22px rgba(16, 24, 40, 0.08);
}

.tth-mega-card strong {
    display: block;
    font-size: 20px;
    margin-bottom: 6px;
}

.tth-mega-card span {
    display: block;
    color: var(--tth-muted);
    font-size: 15px;
    line-height: 1.5;
}

@media (max-width: 1200px) {
    .tth-mega-menu {
        width: min(1000px, calc(100vw - 32px));
    }
}

@media (max-width: 992px) {
    .tth-mega-menu {
        position: static;
        width: 100%;
        max-width: 100%;
        margin-top: 12px;
    }

    .tth-mega-menu-inner {
        grid-template-columns: 1fr;
    }

    .tth-mega-sidebar {
        border-right: 0;
        border-bottom: 1px solid var(--tth-border);
    }

    .tth-mega-grid {
        grid-template-columns: 1fr;
    }
}

###############################
.tth-home-products-section {
    padding: 8px 0 40px;
}

.tth-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.tth-section-heading h2 {
    margin: 0 0 8px;
    font-size: 34px;
    line-height: 1.1;
}

.tth-section-heading p {
    margin: 0;
    color: var(--tth-muted);
    font-size: 16px;
}

.tth-product-grid {
    display: grid;
    gap: 18px;
}

.tth-product-grid.columns-1 {
    grid-template-columns: 1fr;
}

.tth-product-grid.columns-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tth-product-grid.columns-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tth-product-grid.columns-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tth-product-grid.columns-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.tth-product-card {
    background: #fff;
    border: 1px solid var(--tth-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--tth-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tth-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(16, 24, 40, 0.10);
}

.tth-product-image-wrap {
    display: block;
    aspect-ratio: 1 / 1;
    background: #f8fafc;
    overflow: hidden;
}

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

.tth-product-content {
    padding: 16px;
}

.tth-product-title {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.4;
}

.tth-product-title a {
    color: var(--tth-text);
}

.tth-product-price {
    margin-bottom: 14px;
    color: var(--tth-orange-dark);
    font-weight: 700;
    font-size: 17px;
}

.tth-product-actions {
    display: flex;
}

.tth-product-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--tth-orange);
    color: #fff;
    font-weight: 700;
    transition: background 0.2s ease;
}

.tth-product-btn:hover {
    background: var(--tth-orange-dark);
}

.tth-empty-products {
    background: #fff;
    border: 1px dashed var(--tth-border);
    border-radius: 18px;
    padding: 28px;
    color: var(--tth-muted);
    text-align: center;
}

@media (max-width: 1200px) {
    .tth-product-grid.columns-4,
    .tth-product-grid.columns-5 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .tth-product-grid.columns-3,
    .tth-product-grid.columns-4,
    .tth-product-grid.columns-5 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .tth-product-grid.columns-2,
    .tth-product-grid.columns-3,
    .tth-product-grid.columns-4,
    .tth-product-grid.columns-5 {
        grid-template-columns: 1fr;
    }

    .tth-section-heading h2 {
        font-size: 28px;
    }
}
