:root {
    --ink: #18181b;
    --muted: #71717a;
    --line: #e4e4e7;
    --soft: #f6f7f7;
    --panel: #ffffff;
    --brand: #2563eb;
    --brand-strong: #1d4ed8;
    --accent: #c2410c;
    --danger: #b91c1c;
    --shadow: 0 14px 34px rgba(24, 24, 27, .08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: #fff;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

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

button,
input,
select {
    font: inherit;
}

button {
    letter-spacing: 0;
}

img {
    display: block;
    max-width: 100%;
}

.shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.header-inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 176px;
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    color: var(--brand-strong);
    font-weight: 800;
}

.brand strong,
.brand small {
    display: block;
}

.brand small {
    color: var(--muted);
    font-size: 12px;
}

.top-nav {
    display: flex;
    flex: 1;
    gap: 18px;
    color: #3f3f46;
    font-size: 14px;
    white-space: nowrap;
}

.top-nav a:hover {
    color: var(--brand);
}

.header-cta,
.button-primary,
.button-secondary,
.searchbar button,
.toolbar-form button,
.mobile-buy-bar button {
    border: 0;
    border-radius: 6px;
    background: var(--brand);
    color: #fff;
    padding: 10px 16px;
    font-weight: 800;
    cursor: pointer;
}

.header-cta:hover,
.button-primary:hover,
.button-secondary:hover,
.searchbar button:hover,
.toolbar-form button:hover,
.mobile-buy-bar button:hover {
    background: var(--brand-strong);
}

.button-secondary {
    border: 1px solid var(--brand);
    background: #fff;
    color: var(--brand);
}

.button-secondary:hover {
    background: #eff6ff;
}

.is-hidden {
    display: none !important;
}

.hero {
    background: #f8fafc;
    border-bottom: 1px solid var(--line);
}

.hero-grid {
    min-height: 430px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
    align-items: center;
    gap: 36px;
    padding: 34px 0;
}

.home-page .hero-grid {
    min-height: 320px;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 30px;
    padding: 24px 0;
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(48px, 7vw, 84px);
    line-height: 1;
    letter-spacing: 0;
}

.home-page .hero-copy h1 {
    font-size: clamp(40px, 5vw, 62px);
}

.lead {
    max-width: 650px;
    margin: 16px 0 0;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 800;
}

.home-page .lead {
    max-width: 560px;
    font-size: 22px;
}

.sublead {
    max-width: 620px;
    color: #52525b;
    font-size: 16px;
}

.home-page .sublead {
    max-width: 560px;
    margin-bottom: 0;
    font-size: 14px;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.hero-points span {
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: #fff;
    color: #1e40af;
    padding: 7px 10px;
    font-size: 13px;
    font-weight: 700;
}

.clock-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    gap: 24px;
    align-items: end;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
    padding: 22px;
    margin-bottom: 22px;
}

.clock-hero h1 {
    margin: 4px 0 8px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.08;
}

.clock-hero p {
    max-width: 680px;
    margin: 0;
    color: #475569;
}

.searchbar,
.toolbar-form {
    display: flex;
    gap: 8px;
}

.searchbar {
    margin-top: 24px;
    max-width: 590px;
}

.home-page .searchbar {
    margin-top: 18px;
    max-width: 520px;
}

.searchbar input,
.toolbar-form input,
.toolbar-form select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    padding: 0 12px;
    color: var(--ink);
}

.toolbar-form select {
    width: 180px;
}

.hero-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.home-page .hero-panel {
    max-height: 280px;
    aspect-ratio: 4 / 3;
}

.hero-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.catalog-shell,
.page-shell {
    padding: 28px 0 52px;
}

.home-page .catalog-shell {
    padding-top: 20px;
}

.category-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 0 18px;
}

.category-strip a {
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 9px 14px;
    color: #3f3f46;
    background: #fff;
    font-size: 14px;
}

.category-strip a.active {
    border-color: var(--brand);
    color: var(--brand-strong);
    background: #eff6ff;
    font-weight: 700;
}

.catalog-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.catalog-toolbar h2,
.page-heading h1,
.detail-section h2 {
    margin: 4px 0;
    letter-spacing: 0;
}

.catalog-toolbar p,
.page-heading span,
.eyebrow {
    color: var(--muted);
    font-size: 13px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.home-page .catalog-shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.home-page .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

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

.product-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    overflow: hidden;
    transition: box-shadow .16s ease, transform .16s ease, border-color .16s ease;
}

.product-card:hover {
    border-color: #bfdbfe;
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.clock-card .product-title {
    min-height: 42px;
}

.clock-card .product-media {
    display: block;
    width: 100%;
    min-height: 210px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.clock-media {
    background: #eff6ff;
}

.clock-media img,
.clock-main img {
    object-fit: contain;
}

.clock-card .product-media img {
    display: block;
    width: 100%;
    height: 100%;
    opacity: 1;
    visibility: visible;
}

.clock-detail {
    display: grid;
    grid-template-columns: minmax(390px, .9fr) minmax(420px, 1.1fr);
    align-items: start;
    gap: 28px;
}

.product-media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    background: var(--soft);
}

.product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-media em {
    position: absolute;
    left: 10px;
    top: 10px;
    border-radius: 999px;
    background: rgba(37, 99, 235, .94);
    color: #fff;
    padding: 5px 9px;
    font-style: normal;
    font-size: 12px;
    font-weight: 700;
}

.product-body {
    padding: 12px;
}

.home-page .product-body {
    padding: 10px;
}

.product-title {
    display: -webkit-box;
    min-height: 44px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 14px;
    font-weight: 800;
}

.home-page .product-title {
    min-height: 40px;
    font-size: 13px;
}

.product-meta {
    min-height: 24px;
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
}

.product-meta strong {
    color: var(--accent);
    font-size: 15px;
}

.home-page .product-meta strong {
    font-size: 14px;
}

.product-meta span,
.product-body p,
.muted-copy {
    color: var(--muted);
    font-size: 12px;
}

.product-body p {
    min-height: 36px;
}

.pagination-wrap {
    margin-top: 28px;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.page-item {
    display: block;
    margin: 0;
}

.page-link {
    min-width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: #3f3f46;
    padding: 0 11px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
}

.page-item.active .page-link {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}

.page-item.disabled .page-link {
    background: transparent;
    border-color: transparent;
    color: var(--muted);
}

.page-link:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.page-item.active .page-link:hover {
    color: #fff;
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(390px, .9fr) minmax(420px, 1.1fr);
    align-items: start;
    gap: 28px;
}

.gallery {
    position: sticky;
    top: 84px;
}

.gallery-main {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.shop-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    margin-top: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 12px;
}

.shop-card img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--soft);
}

.shop-card strong,
.shop-card span,
.shop-card small {
    display: block;
}

.shop-card span,
.shop-card small {
    color: var(--muted);
    font-size: 12px;
}

.shop-card a {
    border: 1px solid var(--brand);
    border-radius: 6px;
    color: var(--brand);
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 800;
}

.thumb-button {
    width: 100%;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    cursor: pointer;
}

.thumb-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-button.is-active {
    border-color: var(--brand);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, .16);
}

.detail-info {
    min-width: 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    color: var(--brand);
    font-size: 13px;
    font-weight: 700;
}

.detail-info h1 {
    margin: 10px 0 16px;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.18;
}

.back-link {
    color: var(--brand);
    font-weight: 800;
    font-size: 14px;
}

.product-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
    color: #52525b;
    font-size: 13px;
}

.product-stats span {
    border-right: 1px solid var(--line);
    padding-right: 10px;
}

.product-stats span:last-child {
    border-right: 0;
}

.purchase-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.price-block,
.selected-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 15px;
    border-bottom: 1px solid var(--line);
}

.price-block {
    align-items: center;
    background: #fff7ed;
}

.price-block span,
.selected-row span,
.variant-panel-head span {
    color: var(--muted);
    font-size: 13px;
}

.price-block strong {
    color: var(--accent);
    font-size: 32px;
    line-height: 1.05;
}

.price-side {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-side del {
    color: var(--muted);
    font-size: 14px;
}

.price-side em {
    border-radius: 4px;
    background: var(--danger);
    color: #fff;
    padding: 3px 6px;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.selected-row strong {
    text-align: right;
}

.promise-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0;
}

.service-list {
    display: grid;
    gap: 0;
    margin: 14px 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.service-list div {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
}

.service-list div:last-child {
    border-bottom: 0;
}

.service-list span {
    color: var(--muted);
    font-size: 13px;
}

.service-list strong {
    color: #3f3f46;
    font-size: 14px;
    font-weight: 600;
}

.promise-grid span {
    min-height: 64px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
    padding: 12px;
    color: #3f3f46;
    font-size: 13px;
    font-weight: 700;
}

.variant-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 16px;
}

.variant-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.variant-panel-head h2 {
    margin: 2px 0 0;
    font-size: 20px;
}

.sheet-close {
    display: none;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.variant-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-height: 360px;
    overflow: auto;
    padding-right: 3px;
}

.variant-option {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 10px;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 8px;
    text-align: left;
    cursor: pointer;
}

.variant-option:hover,
.variant-option.is-selected {
    border-color: var(--brand);
    background: #eff6ff;
}

.variant-option.is-selected {
    box-shadow: 0 0 0 2px rgba(37, 99, 235, .12);
}

.variant-avatar {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    background: var(--soft);
    overflow: hidden;
}

.variant-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.variant-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.variant-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.variant-copy em {
    color: var(--accent);
    font-style: normal;
    font-weight: 800;
}

.variant-copy del {
    color: var(--muted);
    font-size: 12px;
}

.variant-copy small {
    color: var(--muted);
}

.cta-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 14px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    padding: 14px;
}

.cta-panel p {
    margin: 0 0 12px;
    color: #365146;
}

.quantity-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 14px;
}

.quantity-row > span {
    color: var(--muted);
    font-size: 13px;
}

.quantity-stepper {
    display: grid;
    grid-template-columns: 38px 58px 38px;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
}

.quantity-stepper button,
.quantity-stepper input {
    min-height: 38px;
    border: 0;
    background: #fff;
    text-align: center;
}

.quantity-stepper button {
    cursor: pointer;
    font-size: 18px;
}

.quantity-stepper input {
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
}

.detail-section {
    margin-top: 36px;
}

.description-section {
    border-top: 1px solid var(--line);
    padding-top: 28px;
}

.description {
    color: #3f3f46;
    max-width: 900px;
    font-size: 15px;
}

.empty-state {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
    padding: 32px;
    text-align: center;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: #18181b;
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 24px;
    padding: 32px 0;
}

.footer-grid p {
    color: #d4d4d8;
}

.footer-grid span {
    font-weight: 800;
}

.variant-scrim,
.mobile-buy-bar {
    display: none;
}

@media (max-width: 980px) {
    .top-nav {
        display: none;
    }

    .hero-grid,
    .clock-hero,
    .clock-detail,
    .product-detail,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        min-height: auto;
    }

    .gallery {
        position: static;
    }

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

    .catalog-toolbar {
        display: block;
    }

    .toolbar-form {
        margin-top: 12px;
    }

    .promise-grid {
        grid-template-columns: 1fr;
    }

    .home-page .hero-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .home-page .catalog-shell {
        width: min(100% - 32px, 1120px);
    }
}

@media (max-width: 640px) {
    body {
        padding-bottom: 78px;
    }

    .shell {
        width: min(100% - 20px, 1180px);
    }

    .header-inner {
        min-height: 60px;
        gap: 10px;
    }

    .brand {
        min-width: 0;
        flex: 1;
    }

    .brand small,
    .header-cta {
        display: none;
    }

    .hero-grid {
        gap: 20px;
        padding: 24px 0;
    }

    .home-page .hero-grid {
        gap: 16px;
        padding: 18px 0;
    }

    .hero-panel {
        aspect-ratio: 16 / 11;
    }

    .home-page .hero-panel {
        max-height: none;
        aspect-ratio: 16 / 10;
    }

    .lead {
        font-size: 22px;
    }

    .home-page .lead {
        font-size: 20px;
    }

    .searchbar,
    .toolbar-form {
        display: grid;
    }

    .clock-hero {
        padding: 16px;
    }

    .toolbar-form select {
        width: 100%;
    }

    .product-grid,
    .product-grid.compact,
    .home-page .product-grid {
        gap: 10px;
    }

    .product-body {
        padding: 10px;
    }

    .product-body p {
        display: none;
    }

    .product-meta {
        display: grid;
    }

    .product-title {
        min-height: 42px;
        font-size: 13px;
    }

    .page-shell {
        padding-top: 14px;
    }

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

    .detail-info h1 {
        font-size: 22px;
    }

    .price-block,
    .selected-row {
        display: grid;
        gap: 4px;
    }

    .selected-row strong {
        text-align: left;
    }

    .variant-panel {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 60;
        max-height: min(82vh, 680px);
        border-radius: 8px 8px 0 0;
        padding: 16px 14px 18px;
        transform: translateY(110%);
        transition: transform .2s ease;
        box-shadow: 0 -14px 38px rgba(24, 24, 27, .2);
    }

    .variant-sheet-open .variant-panel {
        transform: translateY(0);
    }

    .variant-options {
        grid-template-columns: 1fr;
        max-height: 48vh;
    }

    .service-list div {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 10px;
        padding: 11px 12px;
    }

    .shop-card {
        grid-template-columns: 44px minmax(0, 1fr) auto;
    }

    .shop-card img {
        width: 44px;
        height: 44px;
    }

    .cta-panel {
        grid-template-columns: 1fr;
    }

    .sheet-close {
        display: inline-grid;
        place-items: center;
    }

    .variant-scrim {
        position: fixed;
        inset: 0;
        z-index: 55;
        background: rgba(24, 24, 27, .45);
    }

    .variant-sheet-open .variant-scrim {
        display: block;
    }

    .mobile-buy-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 50;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        border-top: 1px solid var(--line);
        background: #fff;
        padding: 10px;
        box-shadow: 0 -10px 28px rgba(24, 24, 27, .1);
    }

    .mobile-buy-bar div {
        min-width: 0;
        display: grid;
        gap: 2px;
    }

    .mobile-buy-bar span {
        max-width: 190px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        color: var(--muted);
        font-size: 12px;
    }

    .mobile-buy-bar strong {
        color: var(--accent);
        font-size: 17px;
    }

    .mobile-buy-bar button {
        flex: 0 0 auto;
        min-height: 44px;
    }
}
