:root {
    --bg: #f4fbfc;
    --bg-2: #e8f5f7;
    --surface: rgba(255, 255, 255, 0.92);
    --surface-solid: #ffffff;
    --surface-soft: #f7fcfd;
    --text: #16323a;
    --muted: #5f7680;
    --line: rgba(50, 104, 118, 0.14);
    --brand: #5ca8b9;
    --brand-deep: #355f6c;
    --brand-soft: rgba(92, 168, 185, 0.16);
    --accent: #ff8a5b;
    --accent-deep: #ff6a35;
    --gold: #f7c95f;
    --shadow-lg: 0 28px 60px rgba(33, 88, 102, 0.12);
    --shadow-md: 0 16px 32px rgba(33, 88, 102, 0.1);
    --shadow-sm: 0 8px 18px rgba(33, 88, 102, 0.08);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --container: min(1320px, calc(100vw - 32px));
    --header-h: 92px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: "Segoe UI Variable Text", "Segoe UI", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(92, 168, 185, 0.18), transparent 26%),
        radial-gradient(circle at top right, rgba(255, 138, 91, 0.12), transparent 22%),
        linear-gradient(180deg, #fbfeff 0%, var(--bg) 35%, #f7fbfc 100%);
}

body.is-admin {
    background:
        radial-gradient(circle at top left, rgba(92, 168, 185, 0.14), transparent 26%),
        linear-gradient(180deg, #fbfeff 0%, #eef7f9 100%);
}

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

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

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: var(--container);
    margin: 0 auto;
}

.site-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.35)),
        radial-gradient(circle at 15% 20%, rgba(92, 168, 185, 0.06), transparent 22%),
        radial-gradient(circle at 85% 10%, rgba(255, 138, 91, 0.08), transparent 20%);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background: rgba(249, 253, 254, 0.8);
    border-bottom: 1px solid rgba(58, 106, 122, 0.08);
}

.header-inner {
    min-height: var(--header-h);
    display: grid;
    grid-template-columns: auto minmax(240px, 1fr) auto;
    gap: 20px;
    align-items: center;
}

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

.brand-logo {
    display: block;
    width: 58px;
    height: 58px;
    flex: 0 0 auto;
    border-radius: 18px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(92, 168, 185, 0.22);
    box-shadow: var(--shadow-sm);
    padding: 6px;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.brand-copy strong {
    font-size: 1.15rem;
    letter-spacing: 0.08em;
}

.brand-copy small {
    color: var(--muted);
    font-size: 0.84rem;
}

.site-search {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 14px 0 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(92, 168, 185, 0.18);
    box-shadow: var(--shadow-sm);
}

.site-search__icon {
    color: var(--brand);
    font-size: 1.2rem;
    line-height: 1;
}

.site-search input {
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    min-width: 0;
}

.site-search input::placeholder {
    color: #8aa0aa;
}

.site-search button {
    border: 0;
    border-radius: 999px;
    padding: 11px 16px;
    color: white;
    background: linear-gradient(135deg, var(--brand), var(--brand-deep));
    box-shadow: 0 12px 26px rgba(92, 168, 185, 0.28);
}

.header-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.header-link,
.header-link--accent {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.header-link {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(92, 168, 185, 0.12);
}

.header-link:hover,
.header-link--accent:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.header-link--accent {
    color: white;
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    box-shadow: 0 12px 28px rgba(255, 122, 78, 0.22);
}

.site-main {
    padding: 26px 0 48px;
}

.flash-stack {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.flash {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    box-shadow: var(--shadow-sm);
    background: rgba(255, 255, 255, 0.9);
}

.flash--success {
    color: #0f6f43;
    background: #e8fbef;
    border-color: rgba(15, 111, 67, 0.12);
}

.flash--danger {
    color: #a62d19;
    background: #fff0ec;
    border-color: rgba(166, 45, 25, 0.12);
}

.flash--warning {
    color: #916400;
    background: #fff7e6;
    border-color: rgba(145, 100, 0, 0.12);
}

.flash--info {
    color: #0b5f7b;
    background: #e8f7fb;
    border-color: rgba(11, 95, 123, 0.12);
}

.section-card,
.card,
.product-card,
.summary-card,
.panel,
.detail-panel,
.lightbox__dialog {
    background: var(--surface);
    border: 1px solid rgba(92, 168, 185, 0.14);
    box-shadow: var(--shadow-md);
}

.card,
.section-card,
.panel,
.detail-panel,
.summary-card {
    border-radius: var(--radius-xl);
    padding: 22px;
}

.card {
    position: relative;
    overflow: hidden;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--brand-deep));
    color: white;
    box-shadow: 0 14px 24px rgba(92, 168, 185, 0.24);
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 28px rgba(92, 168, 185, 0.28);
}

.btn.secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text);
    border: 1px solid rgba(92, 168, 185, 0.18);
    box-shadow: none;
}

.btn.danger {
    background: linear-gradient(135deg, #f25f52, #dc3f2e);
}

.btn.success {
    background: linear-gradient(135deg, #2fbf71, #149255);
}

.btn.ghost {
    background: rgba(255, 255, 255, 0.74);
    color: var(--text);
    border: 1px solid rgba(92, 168, 185, 0.18);
    box-shadow: none;
}

.btn.is-active,
.toggle.is-active,
.chip.is-active {
    border-color: rgba(92, 168, 185, 0.34);
    background: linear-gradient(135deg, rgba(92, 168, 185, 0.16), rgba(92, 168, 185, 0.08));
}

input,
textarea,
select {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(92, 168, 185, 0.18);
    background: rgba(255, 255, 255, 0.88);
    color: var(--text);
    padding: 13px 14px;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(92, 168, 185, 0.56);
    box-shadow: 0 0 0 4px rgba(92, 168, 185, 0.12);
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.status-field {
    display: grid;
    gap: 6px;
}

.status-field__text {
    margin: 0;
    min-width: 0;
    font-weight: 600;
    display: block;
}

.status-field select {
    min-width: 0;
    min-height: 52px;
}

table {
    width: 100%;
    border-collapse: collapse;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(92, 168, 185, 0.14);
    box-shadow: var(--shadow-sm);
}

th,
td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(92, 168, 185, 0.1);
    text-align: left;
    vertical-align: top;
}

th {
    font-size: 0.9rem;
    color: var(--muted);
    font-weight: 700;
    background: rgba(232, 246, 248, 0.7);
}

tr:last-child td {
    border-bottom: 0;
}

.muted,
.text-muted {
    color: var(--muted);
}

.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }
.mb-0 { margin-bottom: 0; }

.pill,
.badge,
.tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.82rem;
    line-height: 1;
    white-space: nowrap;
}

.pill {
    background: rgba(92, 168, 185, 0.12);
    color: var(--brand-deep);
}

.pill--soft {
    background: rgba(255, 255, 255, 0.7);
}

.badge {
    background: rgba(255, 138, 91, 0.14);
    color: #b84e26;
    font-weight: 700;
}

.tag {
    background: rgba(92, 168, 185, 0.1);
    color: var(--brand-deep);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
    margin-bottom: 28px;
}

.hero__copy,
.hero__visual {
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--surface);
    border: 1px solid rgba(92, 168, 185, 0.14);
}

.hero__copy {
    padding: 34px;
    position: relative;
    isolation: isolate;
}

.hero__copy::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(92, 168, 185, 0.14), transparent 35%),
        radial-gradient(circle at bottom left, rgba(255, 138, 91, 0.11), transparent 30%);
    z-index: -1;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--brand-deep);
    font-weight: 700;
}

.hero__title {
    margin: 0;
    font-size: clamp(2rem, 3vw, 3.8rem);
    line-height: 1.06;
    letter-spacing: -0.03em;
}

.hero__desc {
    margin: 18px 0 0;
    font-size: 1.04rem;
    color: var(--muted);
    max-width: 58ch;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.hero-stat {
    padding: 16px 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(92, 168, 185, 0.14);
}

.hero-stat strong {
    display: block;
    font-size: 1.45rem;
    margin-bottom: 4px;
}

.hero-stat span {
    color: var(--muted);
    font-size: 0.92rem;
}

.hero__visual {
    display: grid;
    gap: 16px;
    padding: 20px;
}

.hero-art {
    position: relative;
    min-height: 320px;
    border-radius: 28px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(92, 168, 185, 0.14), rgba(255, 255, 255, 0.8)),
        linear-gradient(180deg, #fff, #eef7f9);
    border: 1px solid rgba(92, 168, 185, 0.12);
    display: grid;
    place-items: center;
    padding: 20px;
}

.hero-art img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 280px;
    filter: drop-shadow(0 20px 40px rgba(53, 95, 108, 0.18));
}

.hero-art__label {
    position: absolute;
    left: 18px;
    top: 18px;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--brand-deep);
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(92, 168, 185, 0.14);
    box-shadow: var(--shadow-sm);
    font-size: 0.86rem;
    font-weight: 700;
}

.hero-art__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-art__chips .pill {
    background: rgba(255, 255, 255, 0.88);
}

.policy-page {
    padding: 20px 0 56px;
}

.policy-page__inner {
    width: min(860px, calc(100vw - 48px));
    margin: 0 auto;
}

.policy-page__header {
    margin-bottom: 20px;
    text-align: center;
}

.policy-page__title {
    margin: 0;
    font-size: clamp(1.9rem, 2.8vw, 3rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--text);
}

.policy-prose {
    color: var(--text);
    line-height: 1.95;
    font-size: 1rem;
}

.policy-prose--full {
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.policy-prose--full > :first-child {
    margin-top: 0;
}

.policy-prose--full h1,
.policy-prose--full h2,
.policy-prose--full h3,
.policy-prose--full h4,
.policy-prose--full h5,
.policy-prose--full h6 {
    margin: 2.15em 0 0.85em;
    color: var(--text);
    line-height: 1.25;
    letter-spacing: -0.02em;
    text-align: left;
}

.policy-prose--full h2 {
    font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.policy-prose--full h3 {
    font-size: 1.08rem;
}

.policy-prose--full p {
    margin: 0 0 1em;
}

.policy-prose--full ul,
.policy-prose--full ol {
    margin: 0 0 1em;
    padding-left: 1.35em;
}

.policy-prose--full li > ul,
.policy-prose--full li > ol {
    margin: 0.45em 0 0.1em;
    padding-left: 1.25em;
}

.policy-prose--full li > ul > li,
.policy-prose--full li > ol > li {
    margin: 0.22em 0;
}

.policy-prose--full li {
    margin: 0.35em 0;
}

.policy-prose--full blockquote {
    margin: 1.25em 0;
    padding: 1rem 1.1rem;
    border-left: 4px solid rgba(92, 168, 185, 0.55);
    border-radius: 18px;
    background: rgba(92, 168, 185, 0.08);
    color: var(--muted);
}

.policy-prose--full pre {
    margin: 1.25em 0;
    padding: 1rem 1.1rem;
    overflow: auto;
    border-radius: 18px;
    background: #0f1f25;
    color: #ecf7fa;
}

.policy-prose--full code {
    padding: 0.15em 0.35em;
    border-radius: 8px;
    background: rgba(92, 168, 185, 0.12);
}

.policy-prose--full pre code {
    padding: 0;
    border-radius: 0;
    background: transparent;
}

.policy-prose--full a {
    color: var(--brand-deep);
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
}

.toolbar__group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.toolbar__title {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.toolbar__title strong {
    font-size: 1.2rem;
}

.toggle-group {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(92, 168, 185, 0.14);
    box-shadow: var(--shadow-sm);
}

.toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: var(--muted);
    border-radius: 999px;
    min-height: 40px;
    padding: 0 16px;
    line-height: 1;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.toggle:hover {
    transform: translateY(-1px);
}

.toggle.is-active {
    color: var(--brand-deep);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.chip {
    border: 1px solid rgba(92, 168, 185, 0.14);
    background: rgba(255, 255, 255, 0.88);
    color: var(--muted);
    padding: 10px 14px;
    border-radius: 999px;
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.chip:hover {
    transform: translateY(-1px);
}

.chip.is-active {
    color: var(--brand-deep);
}

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

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

.product-feed.view-list {
    grid-template-columns: 1fr;
}

.product-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 14px;
    border-radius: 24px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-2px);
    border-color: rgba(92, 168, 185, 0.26);
    box-shadow: 0 24px 50px rgba(33, 88, 102, 0.12);
}

.product-card__media {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(92, 168, 185, 0.12), rgba(255, 255, 255, 0.9));
    aspect-ratio: 1 / 1;
}

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

.product-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 52%, rgba(6, 24, 29, 0.06));
    pointer-events: none;
}

.product-card__badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 1;
}

.product-card__body {
    display: grid;
    gap: 10px;
}

.product-feed.view-grid5 .product-card__title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.45;
    min-height: calc(1.45em * 2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: var(--muted);
    font-size: 0.9rem;
}

.product-feed.view-grid5 .product-card__summary {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
    min-height: calc(1.55em * 2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card__price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.product-feed.view-grid5 .product-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-feed.view-grid5 .product-card__price-row {
    margin-top: auto;
}

.product-feed.view-grid5 .product-card__actions {
    margin-top: 12px;
}

.price {
    color: var(--brand-deep);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.money,
.summary-meta__row .money,
.detail-copy .money,
td.money {
    color: var(--brand-deep);
    font-weight: 700;
}

.sold {
    color: var(--muted);
    font-size: 0.92rem;
}

.product-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.product-card--list {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr) auto;
    align-items: start;
    gap: 18px;
    padding: 16px;
}

.product-card--list .product-card__media {
    width: 230px;
    min-width: 230px;
    height: 230px;
    aspect-ratio: 1 / 1;
    align-self: start;
    justify-self: start;
    overflow: hidden;
}

.product-card--list .product-card__media img {
    object-fit: cover;
    object-position: center;
}

.product-card--list .product-card__body {
    align-content: start;
    min-width: 0;
}

.product-card--list .product-card__summary {
    -webkit-line-clamp: 3;
    max-width: 68ch;
}

.product-card--list .product-card__actions {
    align-self: end;
    justify-content: flex-end;
}

.list-side {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    min-width: 220px;
    padding-left: 18px;
    border-left: 1px solid rgba(92, 168, 185, 0.14);
}

.list-side .price {
    font-size: 1.7rem;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
    gap: 24px;
    align-items: start;
}

.gallery {
    display: grid;
    gap: 14px;
}

.gallery--single .gallery-stage {
    min-height: clamp(420px, 42vw, 520px);
}

.gallery--single .gallery-stage__content,
.gallery--single .gallery-stage__video,
.gallery--single .gallery-stage__empty {
    min-height: clamp(420px, 42vw, 520px);
    padding: 18px;
}

.gallery--single .gallery-stage__content > img,
.gallery--single .gallery-stage__content > video,
.gallery--single .gallery-stage__video img,
.gallery--single .gallery-stage__preview {
    max-width: calc(100% - 36px);
    max-height: calc(100% - 36px);
}

.gallery-stage,
.gallery-thumb {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(92, 168, 185, 0.16);
    background: rgba(255, 255, 255, 0.9);
}

.gallery-stage {
    position: relative;
    min-height: 560px;
    box-shadow: var(--shadow-lg);
}

.gallery-stage__content {
    width: 100%;
    height: 100%;
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
    border: 0;
    padding: 0;
    appearance: none;
    color: inherit;
    background: linear-gradient(135deg, rgba(92, 168, 185, 0.08), rgba(255, 255, 255, 0.96));
}

.gallery-stage__content > img,
.gallery-stage__content > video {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.96);
}

.gallery-stage__content > video {
    width: 100%;
    height: 100%;
}

.gallery-stage__preview {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.96);
}

.gallery-stage__video {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 560px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(92, 168, 185, 0.08), rgba(255, 255, 255, 0.96));
}

.gallery-stage__video img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.96);
}

.gallery-stage__video-tag {
    position: absolute;
    left: 14px;
    top: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(10, 20, 24, 0.72);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.gallery-stage__video-play {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(10, 20, 24, 0.72);
    color: #fff;
    font-size: 1.1rem;
    box-shadow: var(--shadow-md);
}

.gallery-stage__empty {
    min-height: 560px;
    display: grid;
    place-items: center;
    color: var(--muted);
    font-weight: 600;
    background: linear-gradient(135deg, rgba(92, 168, 185, 0.08), rgba(255, 255, 255, 0.96));
}

.gallery-stage__overlay {
    position: absolute;
    left: 16px;
    bottom: 16px;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(92, 168, 185, 0.16);
    color: var(--brand-deep);
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
    pointer-events: none;
    backdrop-filter: blur(10px);
}

.gallery-stage__overlay span + span {
    padding-left: 10px;
    border-left: 1px solid rgba(92, 168, 185, 0.2);
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    gap: 12px;
}

.gallery-thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    border: 1px solid rgba(92, 168, 185, 0.16);
    padding: 0;
    appearance: none;
    overflow: hidden;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.gallery-thumb:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.gallery-thumb.is-active {
    border-color: rgba(92, 168, 185, 0.48);
    box-shadow: 0 0 0 3px rgba(92, 168, 185, 0.12);
}

.gallery-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumb__label {
    position: absolute;
    left: 8px;
    bottom: 8px;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--brand-deep);
    font-size: 0.76rem;
    font-weight: 700;
}

.product-summary {
    position: sticky;
    top: calc(var(--header-h) + 22px);
    display: grid;
    gap: 18px;
}

.summary-card {
    display: grid;
    gap: 18px;
}

.product-title {
    margin: 0;
    font-size: clamp(1.6rem, 2.3vw, 2.6rem);
    line-height: 1.18;
}

.product-kicker {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    color: var(--muted);
    width: 100%;
}

.product-kicker__left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    min-width: 0;
}

.product-kicker__sold {
    margin-left: auto;
    text-align: right;
    font-weight: 700;
}

.product-price {
    font-size: clamp(2rem, 3vw, 3.2rem);
    line-height: 1;
    color: var(--brand-deep);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.share-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    min-width: 0;
}

.share-bar__label {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
}

.share-bar__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 999px;
    border: 0;
    color: #fff;
    box-shadow: 0 10px 18px rgba(33, 88, 102, 0.14);
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.share-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 22px rgba(33, 88, 102, 0.18);
}

.share-btn--copy {
    cursor: pointer;
}

.share-btn.is-active {
    border-color: rgba(92, 168, 185, 0.34);
    background: linear-gradient(135deg, rgba(92, 168, 185, 0.16), rgba(92, 168, 185, 0.08));
}

.share-btn svg {
    width: 18px;
    height: 18px;
    display: block;
}

.share-btn--facebook {
    background: #1877f2;
}

.share-btn--line {
    background: #06c755;
}

.share-btn__brand-icon--line {
    width: 18px;
    height: 18px;
    display: block;
}

.share-btn--x {
    background: #111111;
}

.share-btn--threads {
    background: #111111;
}

.share-btn--threads svg {
    width: 16px;
    height: 16px;
}

.share-btn--copy {
    background: var(--brand);
}

.share-bar__status {
    min-height: 1.1em;
    color: var(--muted);
    font-size: 0.86rem;
}

.summary-meta {
    display: grid;
    gap: 12px;
}

.summary-meta__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(92, 168, 185, 0.12);
}

.summary-meta__row strong {
    font-size: 1rem;
}

.summary-meta__row span,
.summary-meta__row small {
    color: var(--muted);
}

.quantity-box {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border-radius: 16px;
    border: 1px solid rgba(92, 168, 185, 0.16);
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow-sm);
}

.quantity-box button {
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: var(--brand-deep);
    font-size: 1.2rem;
}

.quantity-box input {
    width: 72px;
    border: 0;
    text-align: center;
    border-left: 1px solid rgba(92, 168, 185, 0.12);
    border-right: 1px solid rgba(92, 168, 185, 0.12);
    border-radius: 0;
    box-shadow: none;
}

.summary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.summary-note {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 0.94rem;
}

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

.detail-section {
    padding: 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(92, 168, 185, 0.14);
    box-shadow: var(--shadow-sm);
}

.detail-section h2,
.detail-section h3 {
    margin-top: 0;
}

.detail-copy {
    display: grid;
    gap: 14px;
    line-height: 1.9;
}

.detail-copy p {
    margin: 0;
}

.detail-copy__placeholder {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    width: 100%;
    min-height: 120px;
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(92, 168, 185, 0.06);
    border: 1px solid rgba(92, 168, 185, 0.12);
    white-space: pre-line;
    line-height: 1.8;
}

.detail-copy__placeholder-body {
    margin: 0;
    width: 100%;
    white-space: pre-line;
    text-align: left;
    line-height: 1.8;
}

.detail-copy__markdown {
    white-space: normal;
}

.detail-copy__markdown-body {
    width: 100%;
    text-align: left;
    line-height: 1.9;
    color: var(--text);
}

.detail-copy__markdown-body > :first-child {
    margin-top: 0;
}

.detail-copy__markdown-body > :last-child {
    margin-bottom: 0;
}

.detail-copy__markdown-body h1,
.detail-copy__markdown-body h2,
.detail-copy__markdown-body h3,
.detail-copy__markdown-body h4,
.detail-copy__markdown-body h5,
.detail-copy__markdown-body h6 {
    margin: 0.9em 0 0.5em;
    line-height: 1.25;
}

.detail-copy__markdown-body p {
    margin: 0 0 0.9em;
}

.detail-copy__markdown-body ul,
.detail-copy__markdown-body ol {
    margin: 0 0 0.9em;
    padding-left: 1.5em;
}

.detail-copy__markdown-body li + li {
    margin-top: 0.35em;
}

.detail-copy__markdown-body blockquote {
    margin: 0 0 0.9em;
    padding: 0.75em 1em;
    border-left: 4px solid rgba(92, 168, 185, 0.5);
    background: rgba(92, 168, 185, 0.06);
    color: var(--muted);
    border-radius: 12px;
}

.detail-copy__markdown-body pre {
    margin: 0 0 0.9em;
    padding: 1em;
    overflow-x: auto;
    border-radius: 14px;
    background: rgba(14, 44, 52, 0.95);
    color: #f5fbfc;
}

.detail-copy__markdown-body code {
    padding: 0.15em 0.35em;
    border-radius: 0.35em;
    background: rgba(92, 168, 185, 0.12);
    font-family: Consolas, "SFMono-Regular", "Liberation Mono", Menlo, monospace;
    font-size: 0.95em;
}

.detail-copy__markdown-body pre code {
    padding: 0;
    background: transparent;
    color: inherit;
}

.detail-copy__markdown-body a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.form-help {
    margin: 8px 0 0;
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.6;
}

.form-help code {
    padding: 0.1em 0.35em;
    border-radius: 0.35em;
    background: rgba(92, 168, 185, 0.12);
    color: var(--text);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.info-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.info-list li {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(92, 168, 185, 0.06);
}

.info-list li span:first-child {
    color: var(--muted);
}

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

.section-title h2,
.section-title h3 {
    margin: 0;
}

.section-title p {
    margin: 0;
    color: var(--muted);
}

.empty-state {
    display: grid;
    place-items: center;
    padding: 42px 22px;
    border-radius: 28px;
    border: 1px dashed rgba(92, 168, 185, 0.24);
    background: rgba(255, 255, 255, 0.72);
    color: var(--muted);
}

.checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 20px;
    align-items: start;
}

.checkout-summary {
    position: sticky;
    top: calc(var(--header-h) + 22px);
}

.checkout-page {
    display: grid;
    gap: 20px;
}

.checkout-hero {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 30px;
    border-radius: 32px;
    background:
        radial-gradient(circle at top right, rgba(92, 168, 185, 0.18), transparent 26%),
        radial-gradient(circle at bottom left, rgba(255, 138, 91, 0.1), transparent 22%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(240, 248, 250, 0.92));
    border: 1px solid rgba(92, 168, 185, 0.14);
    box-shadow: var(--shadow-lg);
}

.checkout-hero__copy {
    display: grid;
    gap: 8px;
    max-width: 760px;
}

.checkout-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    color: var(--brand-deep);
    background: rgba(92, 168, 185, 0.12);
    border: 1px solid rgba(92, 168, 185, 0.16);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.checkout-hero h1 {
    margin: 0;
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    line-height: 1.05;
}

.checkout-hero p {
    margin: 0;
    max-width: 62ch;
    color: var(--muted);
    line-height: 1.8;
    font-size: 1.02rem;
}

.checkout-form {
    margin: 0;
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 20px;
    align-items: start;
}

.checkout-sidebar {
    display: grid;
    gap: 20px;
}

.checkout-panel {
    display: grid;
    gap: 18px;
    padding: 24px;
    border-radius: 28px;
    background: var(--surface);
    border: 1px solid rgba(92, 168, 185, 0.14);
    box-shadow: var(--shadow-md);
}

.checkout-panel__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.checkout-panel__header h2 {
    margin: 0;
    font-size: 1.32rem;
}

.checkout-panel__header p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.checkout-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(92, 168, 185, 0.16);
    background: rgba(92, 168, 185, 0.1);
    color: var(--brand-deep);
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
}

.checkout-pill--soft {
    background: rgba(255, 255, 255, 0.82);
}

.checkout-account-grid {
    display: grid;
    gap: 12px;
    margin: 0;
}

.checkout-account-row {
    display: grid;
    grid-template-columns: minmax(112px, 168px) minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(92, 168, 185, 0.06);
    border: 1px solid rgba(92, 168, 185, 0.12);
}

.checkout-account-row dt {
    color: var(--muted);
    font-weight: 600;
}

.checkout-account-row dd {
    margin: 0;
    text-align: right;
    font-weight: 700;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.checkout-summary-list {
    display: grid;
    gap: 12px;
}

.checkout-summary-item {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(92, 168, 185, 0.12);
}

.checkout-summary-item__meta {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.checkout-summary-item__meta strong {
    line-height: 1.35;
}

.checkout-summary-item__meta small {
    color: var(--muted);
}

.checkout-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(92, 168, 185, 0.14);
    font-size: 1.06rem;
}

.checkout-total strong {
    font-size: 1.7rem;
    color: var(--brand-deep);
}

.checkout-note--tight {
    font-size: 0.92rem;
}

.checkout-payment-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 18px;
    align-items: start;
}

.checkout-payment-options {
    display: grid;
    gap: 12px;
}

.payment-option {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(92, 168, 185, 0.16);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: none;
    position: relative;
}

.payment-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
    opacity: 0;
    pointer-events: none;
    outline: none;
    transition: none;
}

.payment-option:focus-within {
    border-color: rgba(92, 168, 185, 0.44);
    box-shadow: 0 0 0 2px rgba(92, 168, 185, 0.12), var(--shadow-sm);
}

.payment-option__body {
    display: grid;
    gap: 6px;
}

.payment-option__body strong {
    font-size: 1rem;
}

.payment-option__body small {
    color: var(--muted);
    line-height: 1.6;
}

.payment-option.is-selected {
    border-color: rgba(92, 168, 185, 0.44);
    background: linear-gradient(135deg, rgba(92, 168, 185, 0.16), rgba(255, 255, 255, 0.94));
}

.checkout-final {
    display: grid;
    gap: 16px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(92, 168, 185, 0.06);
    border: 1px solid rgba(92, 168, 185, 0.14);
    align-self: start;
}

.checkout-final__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    font-size: 1.02rem;
}

.checkout-final__row strong {
    font-size: 1.7rem;
    color: var(--brand-deep);
}

.checkout-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.cart-table td:last-child,
.cart-table th:last-child {
    text-align: right;
}

.order-success {
    display: grid;
    gap: 18px;
    max-width: 880px;
    margin: 0 auto;
}

.order-success__hero {
    padding: 28px;
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(92, 168, 185, 0.16), transparent 30%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(232, 246, 248, 0.9));
    border: 1px solid rgba(92, 168, 185, 0.16);
    box-shadow: var(--shadow-lg);
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: none;
    place-items: center;
    padding: 20px;
    background: rgba(10, 20, 24, 0.72);
    backdrop-filter: blur(12px);
}

.lightbox.is-open {
    display: grid;
}

.lightbox__dialog {
    width: min(1320px, 100%);
    max-height: calc(100vh - 40px);
    border-radius: 32px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.96);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    box-shadow: var(--shadow-xl);
}

.lightbox__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    padding: 20px 22px;
    border-bottom: 1px solid rgba(92, 168, 185, 0.12);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(232, 246, 248, 0.92));
}

.lightbox__titleblock {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.lightbox__titleblock strong {
    font-size: 1.15rem;
    line-height: 1.3;
}

.lightbox__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lightbox__controls {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.lightbox__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
    gap: 20px;
    padding: 20px;
    min-height: 0;
}

.lightbox__stage-shell {
    position: relative;
    min-width: 0;
}

.lightbox__stage {
    position: relative;
    height: min(72vh, 760px);
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(92, 168, 185, 0.08), rgba(255, 255, 255, 0.96));
    border: 1px solid rgba(92, 168, 185, 0.16);
    box-shadow: var(--shadow-lg);
}

.lightbox__media-wrap {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.96);
}

.lightbox__media-wrap.is-hover-enabled .lightbox__media--image {
    cursor: crosshair;
}

.lightbox__media {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.96);
    transform: none;
    transition: none;
    will-change: auto;
}

.lightbox__media--video {
    background: #000;
    width: 100%;
    height: 100%;
}

.lightbox__video-frame {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(92, 168, 185, 0.08), rgba(255, 255, 255, 0.96));
}

.lightbox__video-frame img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.96);
}

.lightbox__magnifier {
    position: absolute;
    top: 0;
    left: 0;
    width: 180px;
    height: 180px;
    overflow: hidden;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 20px 42px rgba(33, 88, 102, 0.26);
    opacity: 0;
    visibility: hidden;
    transform: translate3d(-9999px, -9999px, 0);
    pointer-events: none;
    z-index: 4;
}

.lightbox__magnifier.is-visible {
    opacity: 1;
    visibility: visible;
}

.lightbox__magnifier::before,
.lightbox__magnifier::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    background: rgba(92, 168, 185, 0.9);
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
}

.lightbox__magnifier::before {
    width: 2px;
    height: 64%;
}

.lightbox__magnifier::after {
    width: 64%;
    height: 2px;
}

.lightbox__magnifier-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    border: 2px solid rgba(92, 168, 185, 0.95);
    transform: translate(-50%, -50%);
    z-index: 3;
}

.lightbox__magnifier-image {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    max-width: none;
    max-height: none;
    object-fit: cover;
    will-change: transform, width, height;
    pointer-events: none;
}

.lightbox__video-tag {
    position: absolute;
    left: 16px;
    top: 16px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(10, 20, 24, 0.72);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.lightbox__video-play {
    position: absolute;
    left: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(10, 20, 24, 0.72);
    color: #fff;
    font-size: 1.1rem;
    box-shadow: var(--shadow-md);
}

.lightbox__empty {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--muted);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.96);
}

.lightbox__hint {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 2;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(10, 20, 24, 0.66);
    color: #fff;
    font-size: 0.85rem;
    pointer-events: none;
    backdrop-filter: blur(10px);
}

.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 58px;
    height: 58px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 999px;
    background: rgba(10, 20, 24, 0.36);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 2rem;
    line-height: 1;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(12px);
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
    z-index: 3;
}

.lightbox__nav:hover {
    transform: translateY(-50%) scale(1.04);
    background: rgba(10, 20, 24, 0.5);
    border-color: rgba(255, 255, 255, 0.56);
}

.lightbox__nav--prev {
    left: 16px;
}

.lightbox__nav--next {
    right: 16px;
}

.lightbox__sidebar {
    min-width: 0;
    display: grid;
    gap: 14px;
    align-content: start;
    overflow: auto;
}

.lightbox__sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.lightbox__thumbs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.lightbox-thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    border: 1px solid rgba(92, 168, 185, 0.16);
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    appearance: none;
    background: rgba(255, 255, 255, 0.92);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.lightbox-thumb:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.lightbox-thumb.is-active {
    border-color: rgba(92, 168, 185, 0.48);
    box-shadow: 0 0 0 3px rgba(92, 168, 185, 0.12);
}

.lightbox-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lightbox-thumb__label {
    position: absolute;
    left: 8px;
    bottom: 8px;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--brand-deep);
    font-size: 0.76rem;
    font-weight: 700;
}

.site-footer {
    padding: 28px 0 18px;
    background: rgba(249, 253, 254, 0.82);
    border-top: 1px solid rgba(58, 106, 122, 0.08);
    backdrop-filter: blur(18px);
}

.site-footer > .container {
    width: var(--container);
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

.site-footer__inner {
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}

.site-footer__split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

.site-footer__left {
    padding-right: 0;
}

.site-footer__right {
    padding-left: 0;
    border-left: 0;
    display: grid;
    gap: 20px;
    align-content: start;
}

.site-footer__company-layout {
    display: grid;
    grid-template-columns: minmax(220px, 0.82fr) minmax(0, 1.18fr);
    gap: 28px;
    align-items: start;
    width: 100%;
    min-width: 0;
}

.site-footer__company-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    justify-self: center;
    align-self: center;
}

.site-footer__company-logo {
    display: block;
    width: 86px;
    height: 86px;
    flex: 0 0 auto;
    padding: 10px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(92, 168, 185, 0.18);
    box-shadow: var(--shadow-sm);
    object-fit: contain;
}

.site-footer__company-brandcopy {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

.site-footer__company-brandcopy strong {
    font-size: 1.22rem;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.site-footer__column {
    min-width: 0;
}

.site-footer__heading {
    margin: 0 0 14px;
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 800;
}

.site-footer__links {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.site-footer__links a {
    color: var(--muted);
    display: inline-flex;
    align-items: center;
}

.site-footer__company {
    margin: 0;
    display: grid;
    gap: 12px;
}

.site-footer__company-row {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.site-footer__company-row dt {
    color: var(--muted);
    font-weight: 700;
    padding-top: 2px;
}

.site-footer__company-row dd {
    margin: 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 10px 14px;
    color: var(--text);
    font-weight: 700;
    word-break: break-word;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(92, 168, 185, 0.18);
    box-shadow: var(--shadow-sm);
}

.site-footer__company-row dd a {
    display: inline-flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.site-footer__company-row dd a:hover {
    text-decoration: underline;
}

.site-footer__bottom {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(92, 168, 185, 0.14);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
    align-items: center;
    color: var(--muted);
}

.product-misc {
    display: grid;
    gap: 12px;
}

.stack {
    display: grid;
    gap: 12px;
}

.media-manager {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(92, 168, 185, 0.16);
    background: linear-gradient(135deg, rgba(92, 168, 185, 0.08), rgba(255, 255, 255, 0.96));
}

.media-manager__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.media-manager__copy p {
    margin: 6px 0 0;
    color: var(--muted);
}

.media-manager__pick {
    position: relative;
    overflow: hidden;
}

.media-manager__pick input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.media-manager__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.media-manager__item {
    display: grid;
    gap: 10px;
    padding: 12px;
    border-radius: 20px;
    border: 1px solid rgba(92, 168, 185, 0.16);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-sm);
    cursor: grab;
    position: relative;
    min-width: 0;
    overflow: hidden;
}

.media-manager__item.is-dragging {
    opacity: 0.5;
}

.media-manager__item.is-drop-target {
    border-color: rgba(92, 168, 185, 0.42);
    box-shadow: 0 0 0 3px rgba(92, 168, 185, 0.12);
}

.media-manager__handle {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: rgba(92, 168, 185, 0.12);
    color: var(--brand-deep);
    cursor: grab;
}

.media-manager__remove {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: #bb4b4b;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.media-manager__preview {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(92, 168, 185, 0.1), rgba(255, 255, 255, 0.96));
    min-width: 0;
}

.media-manager__preview--video {
    background: linear-gradient(135deg, rgba(53, 95, 108, 0.14), rgba(255, 255, 255, 0.96));
}

.media-manager__preview img,
.media-manager__preview video {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.media-manager__video-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(10, 20, 24, 0.72);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 700;
    pointer-events: none;
    box-shadow: var(--shadow-sm);
}

.media-manager__meta {
    display: grid;
    gap: 4px;
    font-size: 0.82rem;
    color: var(--muted);
    min-width: 0;
}

.media-manager__meta strong {
    color: var(--text);
    font-size: 0.95rem;
}

.media-manager__meta small {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.media-manager__empty {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px dashed rgba(92, 168, 185, 0.24);
    color: var(--muted);
    background: rgba(255, 255, 255, 0.72);
}

.media-manager__empty[hidden] {
    display: none;
}

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

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

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.admin-grid .card h3 {
    margin-top: 0;
}

@media (max-width: 1120px) {
    .header-inner {
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "brand actions"
            "search search";
    }

    .brand {
        grid-area: brand;
    }

    .site-search {
        grid-area: search;
    }

    .header-actions {
        grid-area: actions;
        justify-self: end;
    }

    .hero,
    .detail-layout,
    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .site-footer__split {
        grid-template-columns: 1fr;
    }

    .site-footer__left {
        padding-right: 0;
        padding-bottom: 0;
        border-bottom: 0;
    }

    .site-footer__right {
        padding-left: 0;
        padding-top: 24px;
        border-left: 0;
    }

    .product-summary,
    .checkout-summary {
        position: static;
    }

    .checkout-hero,
    .checkout-layout,
    .checkout-payment-layout {
        grid-template-columns: 1fr;
    }

    .checkout-hero {
        flex-direction: column;
    }

}

@media (max-width: 940px) {
    .product-feed.view-grid5 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .product-card--list {
        grid-template-columns: 190px minmax(0, 1fr);
    }

    .product-card--list .product-card__media {
        width: 190px;
        min-width: 190px;
        height: 190px;
    }

    .product-card--list .list-side {
        grid-column: 1 / -1;
        padding-left: 0;
        border-left: 0;
        border-top: 1px solid rgba(92, 168, 185, 0.14);
        padding-top: 14px;
    }

    .detail-grid,
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

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

}

@media (max-width: 720px) {
    :root {
        --header-h: 82px;
        --container: min(100vw - 20px, 1320px);
    }

    .site-header {
        padding: 8px 0 12px;
        box-shadow: 0 10px 24px rgba(33, 88, 102, 0.05);
    }

    .header-inner {
        grid-template-columns: 1fr;
        grid-template-areas:
            "brand"
            "search"
            "actions";
        gap: 10px;
        align-items: start;
    }

    .header-actions {
        justify-content: flex-start;
        padding-bottom: 2px;
    }

    .site-search {
        width: 100%;
    }

    .site-footer {
        padding: 18px 0 14px;
    }

    .site-footer__split {
        gap: 18px;
    }

    .site-footer__grid {
        gap: 14px;
        width: min(calc(100% - 20px), 340px);
        margin-inline: auto;
    }

    .site-footer__company-layout {
        grid-template-columns: minmax(88px, 0.82fr) minmax(0, 1.18fr);
        gap: 12px;
    }

    .site-footer__company-brand {
        gap: 10px;
        justify-self: start;
        align-self: start;
    }

    .site-footer__company-logo {
        width: 56px;
        height: 56px;
        padding: 6px;
        border-radius: 16px;
    }

    .site-footer__company-brandcopy strong {
        font-size: 0.94rem;
        line-height: 1.1;
    }

    .site-footer__company-row {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 8px;
    }

    .site-footer__company-row dt {
        font-size: 0.86rem;
        padding-top: 0;
    }

    .site-footer__company-row dd {
        min-height: 38px;
        padding: 8px 10px;
        font-size: 0.88rem;
        border-radius: 12px;
    }

    .site-footer__bottom {
        margin-top: 16px;
        padding-top: 14px;
    }

    .hero__copy,
    .card,
    .section-card,
    .panel,
    .detail-panel,
    .summary-card {
        padding: 18px;
        border-radius: 22px;
    }

    .hero__copy {
        padding: 22px;
    }

    .checkout-hero {
        padding: 20px;
        border-radius: 24px;
    }

    .checkout-panel {
        padding: 18px;
        border-radius: 22px;
    }

    .checkout-panel__header {
        flex-direction: column;
    }

    .checkout-account-row,
    .checkout-summary-item,
    .checkout-final,
    .payment-option {
        border-radius: 18px;
    }

    .checkout-account-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .checkout-account-row dd {
        text-align: left;
    }

    .checkout-payment-layout {
        gap: 14px;
    }

    .checkout-actions {
        justify-content: stretch;
    }

    .checkout-actions .btn {
        flex: 1 1 160px;
    }

    .policy-page {
        padding: 14px 0 32px;
    }

    .policy-page__inner {
        width: min(100vw - 20px, 760px);
    }

    .policy-page__header {
        margin-bottom: 16px;
    }

    .policy-page__title {
        font-size: clamp(1.55rem, 5vw, 2.2rem);
    }

    .policy-prose {
        font-size: 0.96rem;
        line-height: 1.88;
    }

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

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

    .product-card--list .product-card__media {
        width: 100%;
        min-width: 0;
        height: auto;
    }

    .product-card--list .product-card__actions,
    .product-card--list .list-side {
        justify-content: flex-start;
    }

    .gallery-stage,
    .gallery-stage__content,
    .gallery-stage__video,
    .gallery-stage__empty {
        min-height: 340px;
    }

    .gallery--single .gallery-stage,
    .gallery--single .gallery-stage__content,
    .gallery--single .gallery-stage__video,
    .gallery--single .gallery-stage__empty {
        min-height: 320px;
    }

    .gallery--single .gallery-stage__content,
    .gallery--single .gallery-stage__video,
    .gallery--single .gallery-stage__empty {
        padding: 12px;
    }

    .gallery--single .gallery-stage__content > img,
    .gallery--single .gallery-stage__content > video,
    .gallery--single .gallery-stage__video img,
    .gallery--single .gallery-stage__preview {
        max-width: calc(100% - 24px);
        max-height: calc(100% - 24px);
    }

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

    .lightbox__stage {
        height: 58vh;
    }

    .lightbox__nav {
        width: 46px;
        height: 46px;
        font-size: 1.5rem;
    }

    .lightbox__sidebar {
        order: 2;
    }

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

@media (max-width: 520px) {
    .product-feed.view-grid5 {
        grid-template-columns: 1fr;
    }

    .hero__actions,
    .summary-actions,
    .toolbar__group,
    .filter-row {
        width: 100%;
    }

    .checkout-actions {
        width: 100%;
        flex-direction: column;
    }

    .checkout-actions .btn {
        width: 100%;
        flex: 1 1 auto;
    }

    .toggle-group {
        width: 100%;
        justify-content: space-between;
    }

    .toggle {
        flex: 1 1 0;
    }

    .lightbox {
        padding: 12px;
    }

    .lightbox__dialog {
        max-height: calc(100vh - 24px);
    }

    .lightbox__header,
    .lightbox__body {
        padding: 14px;
    }

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