*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

:root {
    --color-black:      #1D1D1F;
    --color-white:      #FFFFFF;
    --color-surface:    #F5F5F7;
    --color-surface-2:  #EBEBED;
    --color-border:     #E5E5EA;
    --color-gray-1:     #3A3A3C;
    --color-gray-2:     #48484A;
    --color-gray-3:     #636366;
    --color-gray-4:     #86868B;
    --color-gray-5:     #AEAEB2;
    --color-accent:     #FCE116;
    --color-winter:     #3A86FF;
    --color-summer:     #34C759;
    --color-autumn:     #FF9F0A;
    --color-red:        #FF3B30;
    --color-dark-bg:    #0A0A0F;
    --color-dark-card:  #141418;

    --font-base:        -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
    --font-mono:        "SF Mono", "Fira Code", Consolas, monospace;

    --text-xs:          0.72rem;
    --text-sm:          0.875rem;
    --text-base:        1rem;
    --text-lg:          1.125rem;
    --text-xl:          1.25rem;
    --text-2xl:         1.5rem;
    --text-3xl:         1.875rem;
    --text-4xl:         2.25rem;
    --text-5xl:         3rem;

    --weight-regular:   400;
    --weight-medium:    500;
    --weight-semibold:  600;
    --weight-bold:      700;
    --weight-extrabold: 800;
    --weight-black:     900;

    --leading-tight:    1.2;
    --leading-normal:   1.5;
    --leading-loose:    1.7;

    --tracking-tight:   -0.03em;
    --tracking-snug:    -0.02em;
    --tracking-normal:  0;
    --tracking-wide:    0.04em;
    --tracking-wider:   0.06em;
    --tracking-widest:  0.1em;

    --space-1:   4px;
    --space-2:   8px;
    --space-3:   12px;
    --space-4:   16px;
    --space-5:   20px;
    --space-6:   24px;
    --space-7:   28px;
    --space-8:   32px;
    --space-9:   36px;
    --space-10:  40px;
    --space-12:  48px;
    --space-14:  56px;
    --space-16:  64px;
    --space-20:  80px;
    --space-24:  96px;
    --space-28:  112px;
    --space-32:  128px;

    --radius-sm:   6px;
    --radius-md:   10px;
    --radius-lg:   14px;
    --radius-xl:   20px;
    --radius-2xl:  28px;
    --radius-pill: 100px;

    --shadow-xs:  0 1px 4px rgba(0,0,0,0.06);
    --shadow-sm:  0 2px 8px rgba(0,0,0,0.08);
    --shadow-md:  0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg:  0 8px 40px rgba(0,0,0,0.14);
    --shadow-xl:  0 20px 80px rgba(0,0,0,0.2);

    --transition-fast:   0.15s ease;
    --transition-base:   0.25s ease;
    --transition-slow:   0.4s ease;

    --container-sm:  640px;
    --container-md:  768px;
    --container-lg:  1024px;
    --container-xl:  1280px;
    --container-2xl: 1440px;

    --z-base:    1;
    --z-above:   10;
    --z-sticky:  50;
    --z-overlay: 100;
    --z-modal:   200;
    --z-toast:   300;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-base);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--color-black);
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, video {
    max-width: 100%;
    display: block;
}

a { color: inherit; text-decoration: none; }

button {
    font-family: var(--font-base);
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
}

input, textarea, select {
    font-family: var(--font-base);
}

::selection {
    background: var(--color-accent);
    color: #000;
}

:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 14px 32px;
    border-radius: var(--radius-pill);
    font-size: var(--text-base);
    font-weight: var(--weight-extrabold);
    font-family: var(--font-base);
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
}

.btn:active { transform: scale(0.97); }

.btn--primary {
    background: var(--color-accent);
    color: #000;
    border-color: var(--color-accent);
}
.btn--primary:hover {
    background: #f5d800;
    box-shadow: 0 8px 28px rgba(252,225,22,0.45);
    transform: translateY(-1px);
}

.btn--ghost {
    background: transparent;
    color: var(--color-black);
    border-color: rgba(0,0,0,0.2);
}
.btn--ghost:hover {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.35);
}

.btn--ghost-dark {
    background: transparent;
    color: rgba(255,255,255,0.8);
    border-color: rgba(255,255,255,0.25);
}
.btn--ghost-dark:hover {
    background: rgba(255,255,255,0.08);
    color: var(--color-white);
    border-color: rgba(255,255,255,0.5);
}

.btn--sm {
    padding: 10px 20px;
    font-size: var(--text-sm);
}

.btn--lg {
    padding: 18px 44px;
    font-size: var(--text-lg);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    white-space: nowrap;
}

.badge--default   { background: rgba(0,0,0,0.07);   color: var(--color-gray-2); }
.badge--pro       { background: var(--color-accent); color: #000; }
.badge--winter,
.ysh-badge--winter { background: rgba(58,134,255,0.12); color: var(--color-winter); }
.badge--summer,
.ysh-badge--summer { background: rgba(52,199,89,0.12);  color: var(--color-summer); }
.badge--autumn,
.ysh-badge--autumn { background: rgba(255,159,10,0.12); color: var(--color-autumn); }
.badge--preorder,
.ysh-badge--preorder { background: rgba(255,59,48,0.1); color: var(--color-red); }
.ysh-badge--pro   { background: var(--color-accent); color: #000; }

.ysh-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    white-space: nowrap;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--color-gray-4);
}

.ysh-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.ysh-reveal--visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .ysh-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: overlay-in var(--transition-base) ease both;
}

@keyframes overlay-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.modal-box {
    position: relative;
    background: var(--color-white);
    border-radius: var(--radius-2xl);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: modal-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    padding: var(--space-8);
    scrollbar-width: thin;
}

@keyframes modal-in {
    from { opacity: 0; transform: scale(0.92) translateY(16px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: var(--color-gray-3);
    transition: background var(--transition-fast);
    z-index: 1;
}
.modal-close:hover { background: var(--color-border); color: var(--color-black); }

.modal-title {
    font-size: var(--text-xl);
    font-weight: var(--weight-black);
    letter-spacing: var(--tracking-tight);
    margin-bottom: var(--space-6);
    color: var(--color-black);
    padding-right: var(--space-8);
}

.modal-tabs {
    display: flex;
    gap: 2px;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 4px;
    margin-bottom: var(--space-6);
}

.modal-tab-btn {
    flex: 1;
    padding: 8px 16px;
    border-radius: calc(var(--radius-md) - 2px);
    font-size: var(--text-sm);
    font-weight: var(--weight-bold);
    color: var(--color-gray-4);
    background: none;
    border: none;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast);
}
.modal-tab-btn:hover { color: var(--color-black); }
.modal-tab-btn.active { background: var(--color-white); color: var(--color-black); box-shadow: var(--shadow-xs); }

.modal-tab-panel[hidden] { display: none; }

.modal-field { margin-bottom: var(--space-4); }

.modal-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--color-gray-2);
    margin-bottom: var(--space-2);
}

.modal-input {
    display: block;
    width: 100%;
    padding: 11px var(--space-4);
    background: var(--color-surface);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    font-family: var(--font-base);
    color: var(--color-black);
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.modal-input:focus {
    border-color: var(--color-black);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}
.modal-input::placeholder { color: var(--color-gray-5); }
.modal-input--textarea { resize: vertical; min-height: 72px; }
.modal-input:disabled { opacity: 0.5; cursor: not-allowed; }

.modal-error {
    padding: 10px var(--space-4);
    background: rgba(255,59,48,0.08);
    border: 1px solid rgba(255,59,48,0.2);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    color: #c0392b;
    margin-bottom: var(--space-4);
}

.modal-btn {
    display: block;
    width: 100%;
    padding: 14px;
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    font-weight: var(--weight-bold);
    font-family: var(--font-base);
    cursor: pointer;
    border: none;
    transition: background var(--transition-fast), transform 0.1s;
    text-align: center;
}
.modal-btn:active { transform: scale(0.98); }
.modal-btn--primary { background: var(--color-black); color: var(--color-white); }
.modal-btn--primary:hover { background: var(--color-gray-1); }
.modal-btn--ghost {
    background: var(--color-surface);
    color: var(--color-gray-2);
    border: 1.5px solid var(--color-border);
}
.modal-btn--ghost:hover { background: var(--color-border); }
.modal-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.profile-section { margin-bottom: var(--space-8); }
.profile-section:last-child { margin-bottom: 0; }
.profile-section__title {
    font-size: var(--text-base);
    font-weight: var(--weight-bold);
    color: var(--color-black);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--color-border);
}

.cart-loading, .cart-empty {
    padding: var(--space-8);
    text-align: center;
    color: var(--color-gray-4);
    font-size: var(--text-sm);
}

.cart-items { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-5); }

.cart-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
}

.cart-item__img-wrap {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    background: var(--color-white);
    overflow: hidden;
    border: 1px solid var(--color-border);
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-item__img-wrap img { width: 100%; height: 100%; object-fit: contain; }

.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name { font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--color-black); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-item__price { font-size: var(--text-xs); color: var(--color-gray-4); margin-top: 2px; }

.cart-item__qty { display: flex; align-items: center; gap: var(--space-2); flex-shrink: 0; }
.cart-qty-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
    border: 1.5px solid var(--color-border);
    border-radius: 50%;
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
    color: var(--color-black);
    cursor: pointer;
    transition: background var(--transition-fast);
    line-height: 1;
    padding-bottom: 1px;
}
.cart-qty-btn:hover { background: var(--color-surface-2); }
.cart-qty-val { font-size: var(--text-sm); font-weight: var(--weight-bold); min-width: 20px; text-align: center; }

.cart-item__remove {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray-4);
    border-radius: 50%;
    transition: color var(--transition-fast), background var(--transition-fast);
    flex-shrink: 0;
    cursor: pointer;
    background: none;
    border: none;
}
.cart-item__remove:hover { color: var(--color-red); background: rgba(255,59,48,0.08); }

.cart-footer { padding-top: var(--space-4); border-top: 1px solid var(--color-border); }
.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
    font-size: var(--text-base);
    color: var(--color-gray-2);
    font-weight: var(--weight-semibold);
}
.cart-total strong { font-size: var(--text-xl); font-weight: var(--weight-black); color: var(--color-black); }
.cart-checkout-btn { background: var(--color-accent); color: #000; }
.cart-checkout-btn:hover { background: #f5d800; }

.ysh-specs-table { width: 100%; border-collapse: collapse; }
.ysh-specs-table tr { border-bottom: 1px solid var(--color-border); }
.ysh-specs-table tr:last-child { border-bottom: none; }
.ysh-specs-table td { padding: 8px 0; font-size: var(--text-sm); vertical-align: top; }
.ysh-specs-table td:first-child { color: var(--color-gray-4); width: 50%; padding-right: var(--space-3); }
.ysh-specs-table td:last-child { font-weight: var(--weight-semibold); color: var(--color-black); }

.ysh-spec {
    display: inline-flex;
    align-items: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    padding: 3px 10px;
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    color: var(--color-gray-2);
    white-space: nowrap;
}

.ysh-bundle-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    color: var(--color-summer);
}

.ysh-bundle-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); }

@media (max-width: 768px) {
    .modal-box { border-radius: var(--radius-xl); padding: var(--space-6) var(--space-5) var(--space-5); }
    .btn { padding: 13px 28px; }
    .btn--lg { padding: 15px 32px; font-size: var(--text-base); }
}

@media (max-width: 480px) {
    .modal-overlay { padding: 0; align-items: flex-end; }
    .modal-box {
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        max-width: 100%;
        max-height: 92svh;
        animation: modal-slide-up 0.3s ease both;
    }
    @keyframes modal-slide-up {
        from { transform: translateY(100%); }
        to   { transform: translateY(0); }
    }
}

.disclaimer-tip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(0, 0, 0, 0.42);
    cursor: help;
    flex-shrink: 0;
    vertical-align: middle;
    transition: color 0.2s ease, transform 0.2s ease;
    position: relative;
    top: -2px;
}

.disclaimer-tip::before {
    content: "";
    width: 16px;
    height: 16px;
    background-color: currentColor;
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><circle cx='8' cy='8' r='7.25' fill='none' stroke='black' stroke-width='1.1'/><circle cx='8' cy='4.3' r='0.85' fill='black'/><line x1='8' y1='7' x2='8' y2='11.8' stroke='black' stroke-width='1.6' stroke-linecap='round'/></svg>");
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><circle cx='8' cy='8' r='7.25' fill='none' stroke='black' stroke-width='1.1'/><circle cx='8' cy='4.3' r='0.85' fill='black'/><line x1='8' y1='7' x2='8' y2='11.8' stroke='black' stroke-width='1.6' stroke-linecap='round'/></svg>");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.disclaimer-tip:hover,
.disclaimer-tip:focus-visible {
    color: var(--c-black, #1D1D1F);
    outline: none;
    transform: scale(1.12);
}

.disclaimer-tip[aria-expanded="true"] {
    color: var(--c-black, #1D1D1F);
}

.disclaimer-popup {
    position: absolute;
    z-index: 9999;
    max-width: 340px;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.94) translateY(4px);
    transform-origin: center bottom;
    transition: opacity 240ms cubic-bezier(0.16, 1, 0.3, 1), transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.disclaimer-popup[data-placement="bottom"] {
    transform-origin: center top;
    transform: scale(0.94) translateY(-4px);
}

.disclaimer-popup--visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.disclaimer-popup__inner {
    padding: 12px 16px 13px 18px;
    background: rgba(29, 29, 31, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 10px;
    border-left: 2px solid var(--c-accent, #FCE116);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.12);
}

.disclaimer-popup__text {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
    font-style: normal;
    letter-spacing: 0.005em;
}

.disclaimer-popup__arrow {
    position: absolute;
    bottom: -5px;
    width: 10px;
    height: 10px;
    background: rgba(29, 29, 31, 0.96);
    transform: translateX(-50%) rotate(45deg);
    pointer-events: none;
}

.disclaimer-popup[data-placement="bottom"] .disclaimer-popup__arrow {
    bottom: auto;
    top: -5px;
}

@media (max-width: 640px) {
    .disclaimer-popup {
        max-width: calc(100vw - 24px);
    }
    .disclaimer-popup__text {
        font-size: 12px;
    }
    .disclaimer-tip {
        width: 18px;
        height: 18px;
    }
    .disclaimer-tip::before {
        width: 18px;
        height: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .disclaimer-popup {
        transition: opacity 100ms linear;
        transform: none !important;
    }
    .disclaimer-tip {
        transition: none;
    }
}
