:root {
    --hyp-bg: #f5f7fb;
    --hyp-panel: #fff;
    --hyp-panel-2: #f8fbff;
    --hyp-line: #d8e1ef;
    --hyp-text: #142033;
    --hyp-muted: #64748b;
    --hyp-primary: #0284c7;
    --hyp-accent: #7c3aed;
    --hyp-success: #16a34a;
    --hyp-warning: #d97706;
    --hyp-danger: #e11d48;
}

body.hyp-redesign {
    background: var(--hyp-bg);
    color: var(--hyp-text);
    overflow-x: hidden;
}

.hyp-redesign .content-page,
.hyp-redesign .content,
.hyp-redesign .wrapper {
    background: transparent;
}

.hyp-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hyp-main {
    flex: 1 0 auto;
    padding: 28px 0 56px;
}

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

.hyp-nav {
    position: sticky;
    top: 0;
    z-index: 1030;
    border-bottom: 1px solid var(--hyp-line);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(10px);
}

.hyp-nav-inner {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.hyp-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--hyp-text);
    font-weight: 800;
    text-decoration: none;
}

.hyp-brand:hover {
    color: var(--hyp-primary);
    text-decoration: none;
}

.hyp-brand img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.hyp-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hyp-link,
.hyp-button,
.hyp-outline-button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--hyp-line);
    border-radius: 8px;
    padding: 9px 14px;
    font-weight: 700;
    text-decoration: none;
}

.hyp-link {
    color: var(--hyp-muted);
    background: transparent;
}

.hyp-link:hover,
.hyp-link.active {
    color: var(--hyp-text);
    border-color: #334155;
    background: #fff;
    text-decoration: none;
}

.hyp-button {
    color: #06111c;
    background: var(--hyp-primary);
    border-color: var(--hyp-primary);
}

.hyp-button:hover {
    color: #06111c;
    background: #7dd3fc;
    text-decoration: none;
}

.hyp-outline-button {
    color: var(--hyp-text);
    background: var(--hyp-panel);
}

.hyp-outline-button:hover {
    color: var(--hyp-primary);
    border-color: var(--hyp-primary);
    text-decoration: none;
}

.hyp-hero {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.hyp-side,
.hyp-panel,
.hyp-product-row,
.hyp-card {
    border: 1px solid var(--hyp-line);
    border-radius: 8px;
    background: var(--hyp-panel);
}

.hyp-side {
    position: sticky;
    top: 92px;
    padding: 22px;
}

.hyp-kicker {
    color: var(--hyp-primary);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.hyp-title {
    margin: 12px 0;
    color: var(--hyp-text);
    font-size: clamp(28px, 4.4vw, 46px);
    line-height: 1.08;
    letter-spacing: 0;
}

.hyp-muted {
    color: var(--hyp-muted);
}

.hyp-notice {
    margin-top: 22px;
    padding: 16px;
    border: 1px solid var(--hyp-line);
    border-radius: 8px;
    background: var(--hyp-panel-2);
    color: var(--hyp-muted);
    overflow-wrap: anywhere;
}

.hyp-search {
    display: flex;
    gap: 8px;
    margin-top: 18px;
}

.hyp-search input {
    min-height: 42px;
    flex: 1;
    border: 1px solid var(--hyp-line);
    border-radius: 8px;
    padding: 0 12px;
    color: var(--hyp-text);
    background: #fff;
}

.hyp-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.hyp-tabs a {
    border: 1px solid var(--hyp-line);
    border-radius: 8px;
    padding: 9px 12px;
    color: var(--hyp-muted);
    background: var(--hyp-panel-2);
    text-decoration: none;
}

.hyp-tabs a.active,
.hyp-tabs a:hover {
    color: var(--hyp-text);
    border-color: var(--hyp-primary);
}

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

.hyp-product-row {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    color: var(--hyp-text);
    text-decoration: none;
    transition: border-color .16s ease, background .16s ease;
}

.hyp-product-row:hover {
    color: var(--hyp-text);
    border-color: var(--hyp-primary);
    background: #fff;
    text-decoration: none;
}

.hyp-product-row.is-disabled {
    opacity: .58;
}

.hyp-product-row img {
    width: 68px;
    height: 68px;
    object-fit: cover;
    border-radius: 8px;
    background: #f8fbff;
}

.hyp-product-name {
    margin: 0 0 6px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

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

.hyp-badge {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--hyp-line);
    border-radius: 999px;
    padding: 4px 8px;
    color: var(--hyp-muted);
    font-size: 12px;
    font-weight: 700;
}

.hyp-badge-success {
    color: var(--hyp-success);
    border-color: rgba(34, 197, 94, .35);
}

.hyp-badge-warning {
    color: var(--hyp-warning);
    border-color: rgba(245, 158, 11, .35);
}

.hyp-badge-danger {
    color: var(--hyp-danger);
    border-color: rgba(251, 113, 133, .35);
}

.hyp-price {
    color: var(--hyp-primary);
    font-size: 22px;
    font-weight: 900;
    white-space: nowrap;
}

.hyp-buy-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 22px;
    align-items: start;
}

.hyp-panel {
    padding: 22px;
}

.hyp-panel h1,
.hyp-panel h2,
.hyp-panel h3,
.hyp-panel h4,
.hyp-panel h5 {
    color: var(--hyp-text);
}

.hyp-description {
    color: #d1d5db;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.hyp-order-form {
    position: sticky;
    top: 92px;
}

.hyp-form-grid {
    display: grid;
    gap: 14px;
}

.hyp-form-grid label,
.hyp-field-title {
    color: var(--hyp-muted);
    font-size: 13px;
    font-weight: 800;
}

.hyp-form-grid .form-control,
.hyp-form-grid input[type="text"],
.hyp-form-grid input[type="email"],
.hyp-form-grid input[type="number"],
.hyp-form-grid input[type="password"] {
    min-height: 42px;
    border: 1px solid var(--hyp-line);
    border-radius: 8px;
    color: var(--hyp-text);
    background: #fff;
}

.hyp-pay-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hyp-pay-grid .pay-type {
    min-width: 76px;
    min-height: 42px;
    border: 1px solid var(--hyp-line);
    border-radius: 8px;
    background: #fff;
}

.hyp-pay-grid .pay-type.active {
    border-color: var(--hyp-primary);
    box-shadow: inset 0 0 0 1px var(--hyp-primary);
}

.hyp-summary {
    display: grid;
    gap: 10px;
}

.hyp-summary-row {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--hyp-line);
    overflow-wrap: anywhere;
}

.hyp-summary-row label {
    color: var(--hyp-muted);
    margin: 0;
}

.hyp-qr-box {
    width: min(280px, 100%);
    margin: 18px auto;
    padding: 18px;
    border: 1px solid var(--hyp-line);
    border-radius: 8px;
    background: #fff;
}

.hyp-qr-box img {
    width: 100%;
    height: auto;
}

.hyp-order-grid {
    display: grid;
    gap: 14px;
}

.hyp-order-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 16px;
}

.hyp-kami {
    width: 100%;
    min-height: 170px;
    border: 1px solid var(--hyp-line);
    border-radius: 8px;
    color: var(--hyp-text);
    background: #fff;
    overflow-wrap: anywhere;
}

.hyp-empty {
    padding: 44px 20px;
    text-align: center;
    border: 1px dashed var(--hyp-line);
    border-radius: 8px;
    color: var(--hyp-muted);
}

.hyp-footer {
    padding: 26px 0;
    border-top: 1px solid var(--hyp-line);
    color: var(--hyp-muted);
    background: #fff;
}

.hyp-footer a {
    color: var(--hyp-primary);
}

.hyp-redesign :focus-visible {
    outline: 3px solid rgba(56, 189, 248, .28);
    outline-offset: 2px;
}

@media (max-width: 980px) {
    .hyp-hero,
    .hyp-buy-layout,
    .hyp-order-detail {
        grid-template-columns: 1fr;
    }

    .hyp-side,
    .hyp-order-form {
        position: static;
    }
}

@media (max-width: 640px) {
    .hyp-container {
        width: min(100% - 22px, 1180px);
    }

    .hyp-nav-inner,
    .hyp-actions,
    .hyp-search {
        align-items: stretch;
        flex-direction: column;
    }

    .hyp-actions,
    .hyp-link,
    .hyp-button,
    .hyp-outline-button {
        width: 100%;
    }

    .hyp-product-row,
    .hyp-summary-row {
        grid-template-columns: 1fr;
    }

    .hyp-product-row img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .hyp-price {
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hyp-redesign *,
    .hyp-redesign *::before,
    .hyp-redesign *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
