* {
    box-sizing: border-box;
}

html {
    height: 100%;
    /* 스크롤바 유무와 무관하게 콘텐츠 폭을 고정해 페이지 간 좌우 흔들림 방지 */
    scrollbar-gutter: stable;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: "Helvetica Neue", Arial, "Malgun Gothic", sans-serif;
    color: #222;
    background-color: #fafafa;
}

main {
    flex: 1 0 auto;
}

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

input,
button {
    outline: none;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #fff;
    border-bottom: 1px solid #eaeaea;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.header-icons {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.header-icons .icon-link {
    display: flex;
}

.header-icons .icon-link[hidden] {
    display: none;
}

.cart-icon-link {
    position: relative;
}

.header-cart-count {
    position: absolute;
    top: 1px;
    right: 0;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 9px;
    background-color: #111;
    color: #fff;
    font-size: 10px;
    line-height: 17px;
    text-align: center;
}

.header-icons img {
    width: 40px;
    height: 40px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    display: inline-block;
    padding: 6px 0;
    font-size: 15px;
    font-weight: 500;
}

.main-nav a:hover {
    color: #ff5722;
}

.main-nav .has-dropdown {
    position: static;
}

.main-nav .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 40px 24px 40px 20%;
    background-color: #fff;
    border-top: 1px solid #eaeaea;
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.06);
    z-index: 10;
    list-style: none;
}

.main-nav .dropdown-menu::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 100%;
    width: 100%;
    height: 28px;
}

.main-nav .has-dropdown:hover .dropdown-menu,
.main-nav .has-dropdown:focus-within .dropdown-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.main-nav .dropdown-menu a {
    display: block;
    padding: 6px 0;
    font-size: 15px;
    color: #333;
}

.main-nav .dropdown-menu a:hover {
    color: #ff5722;
}

.hamburger-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}

.hamburger-icon {
    width: 40px;
    height: 40px;
    filter: invert(1);
}

.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 200;
}

.mobile-nav-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 260px;
    max-width: 80%;
    background-color: #fff;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 201;
    padding: 24px 20px;
    overflow-y: auto;
}

.mobile-nav-drawer.is-open {
    transform: translateX(0);
}

.mobile-nav-drawer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.mobile-nav-drawer a {
    display: block;
    padding: 14px 4px;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid #eee;
}

.mobile-cat-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 4px;
    border: none;
    background: none;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    text-align: left;
}

.accordion-arrow {
    border: solid #999;
    border-width: 0 2px 2px 0;
    padding: 3px;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.mobile-nav-group.is-expanded .accordion-arrow {
    transform: rotate(-135deg);
}

.mobile-nav-drawer .mobile-subnav {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0 0 0 16px;
}

.mobile-nav-group.is-expanded .mobile-subnav {
    display: block;
}

.mobile-subnav a {
    font-weight: 400;
    font-size: 15px;
}

/* Not supported modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 300;
    padding: 24px;
}

.modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    position: relative;
    width: 100%;
    max-width: 340px;
    background-color: #fff;
    color: black;
    padding: 32px 24px;
    text-align: left;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    font-size: 22px;
    line-height: 1;
    color: #666;
    cursor: pointer;
}

.modal-title {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 700;
}

.modal-message {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: #666;
}

.modal-message-list {
    white-space: pre-line;
    text-align: left;
}

.modal-box-wide {
    max-width: 600px;
}

.zipcode-search-embed {
    width: 100%;
    height: 400px;
}

/* Hero banner */
.hero-banner {
    background: linear-gradient(135deg, #9d7c72, #282828);
    color: #fff;
    text-align: center;
    padding: 80px 24px;
}

.hero-banner h1 {
    margin: 0 0 12px;
    font-size: 32px;
}

.hero-banner p {
    margin: 0 0 24px;
    font-size: 16px;
    opacity: 0.9;
}

.hero-button {
    display: inline-block;
    padding: 12px 28px;
    background-color: #fff;
    color: #ff5722;
    border-radius: 24px;
    font-weight: 700;
}

/* Product grid */
.product-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
}

.section-title {
    font-size: 22px;
    margin-bottom: 24px;
}

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

.product-carousel {
    position: relative;
}

.carousel-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.carousel-btn {
    display: none;
}

.product-card {
    background-color: #fff;
    overflow: hidden;
    transition: transform 0.15s ease;
}

.product-card:hover {
    transform: translateY(-4px);
}

.product-thumb {
    position: relative;
}

.sale-badge {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    background-color: #e53935;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 7px;
}

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1.3;
    object-fit: cover;
    display: block;
}

.product-name {
    margin: 16px 18px 8px;
    font-size: 16px;
    color: #222;
}

.product-price {
    margin: 0 18px 10px;
}

.price-original {
    display: block;
    width: fit-content;
    position: relative;
    font-size: 12px;
    font-weight: 400;
    color: #999;
}

.price-original::after {
    content: '';
    position: absolute;
    left: -2px;
    right: -2px;
    top: 50%;
    border-top: 1.5px solid currentColor;
    transform: rotate(-8deg);
}

.price-final {
    font-size: 15px;
    font-weight: 700;
}

.category-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 24px 100px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
    font-size: 22px;
    font-weight: 700;
}

.breadcrumb-parent {
    color: #999;
    font-weight: 400;
}

.breadcrumb-parent:hover {
    color: #222;
}

.breadcrumb-sep {
    width: 12px;
    height: 12px;
    transform: rotate(-90deg);
    opacity: 0.45;
}

.category-empty {
    padding: 80px 0;
    text-align: center;
    color: #888;
}

/* Footer */
.site-footer {
    border-top: 1px solid #222;
    background-color: #111;
    color: #fff;
    padding: 48px 24px 20px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.footer-columns {
    display: flex;
    gap: 64px;
}

.footer-column-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin: 0 0 16px;
    padding: 0;
    border: none;
    background: none;
    cursor: default;
    text-align: left;
}

.footer-column-toggle h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.footer-toggle-icon {
    display: none;
}

.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-column a {
    font-size: 13px;
    color: #bbb;
}

.footer-column a:hover {
    color: #ff5722;
}

.footer-contact {
    text-align: right;
    white-space: nowrap;
}

.footer-contact-label {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.footer-contact-phone {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

.footer-contact-hours {
    margin: 0;
    font-size: 12px;
    color: #999;
}

.footer-bottom {
    max-width: 1200px;
    margin: 32px auto 0;
    padding-top: 16px;
    border-top: 1px solid #333;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    font-size: 12px;
    color: #999;
}

.footer-bottom a {
    color: #999;
}

.footer-bottom a:hover {
    color: #fff;
}

/* Login page */
.login-page {
    width: min(92%, 480px);
    margin: 0 auto;
    padding: 60px 0 150px;
}

.login-title {
    margin: 0 0 24px;
    font-size: 24px;
    font-weight: 700;
}

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

.login-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.login-message {
    margin: 4px 0 0;
    font-size: 13px;
    min-height: 16px;
}

.login-message.is-error {
    color: #c62828;
}

.login-submit {
    width: 100%;
    padding: 16px;
    background-color: #111;
    color: #fff;
    border: none;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.login-helper-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 16px 0 32px;
    font-size: 13px;
    color: #666;
}

.login-helper-links span {
    color: #ddd;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 32px;
}

.social-login-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px;
    border: 1px solid #111;
    background-color: #fff;
    color: #111;
    font-size: 15px;
    font-weight: 700;
}

.social-login-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.login-benefits {
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    color: #666;
}

.login-signup-button {
    display: block;
    width: 100%;
    padding: 14px;
    border: 1px solid #111;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    box-sizing: border-box;
}

/* MyShop page */
.myshop-page {
    width: min(92%, 1000px);
    margin: 0 auto;
    padding: 40px 0 150px;
}

.myshop-layout {
    display: flex;
    gap: 40px;
    align-items: stretch;
}

.myshop-aside {
    flex: 0 0 200px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding-right: 24px;
    border-right: 1px solid #eee;
}

.myshop-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.myshop-nav a {
    display: block;
    padding: 10px 8px;
    /*border-bottom: 1px solid #eee;*/
    font-size: 15px;
    color: #999;
}

.myshop-nav a.is-active {
    font-weight: 700;
    color: #111;
}

.myshop-nav a:hover,
.myshop-logout:hover {
    color: #ff5722;
}

.myshop-content {
    flex: 1;
    min-width: 0;
}

.myshop-content-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.myshop-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.myshop-greeting {
    margin: 0 0 16px;
    font-size: 14px;
    color: #666;
}

.myshop-logout {
    display: block;
    width: 100%;
    padding: 12px 8px;
    border: none;
    /*border-bottom: 1px solid #eee;*/
    background: none;
    font-family: inherit;
    font-size: 15px;
    text-align: left;
    color: #999;
    cursor: pointer;
}

.myshop-panel {
    margin-bottom: 24px;
    padding: 24px;
    border: 1px solid #eee;
}

.myshop-panel-title {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 700;
}

.myshop-stats {
    display: flex;
    gap: 16px;
    margin: 0;
}

.myshop-stat {
    flex: 1;
    padding: 16px;
    background-color: #fafafa;
    text-align: center;
}

.myshop-stat dt {
    font-size: 13px;
    color: #888;
}

.myshop-stat dd {
    margin: 8px 0 0;
    font-size: 20px;
    font-weight: 700;
    color: #111;
}

/* MyShop - 주문내역 */
.order-history-state {
    padding: 56px 24px;
    border: 1px solid #eee;
    text-align: center;
    color: #666;
}

.order-history-state[hidden],
.order-history-pagination[hidden] {
    display: none !important;
}

.order-history-state strong {
    display: block;
    margin-bottom: 8px;
    color: #222;
    font-size: 17px;
}

.order-history-state p {
    margin: 0 0 20px;
    font-size: 14px;
}

.order-history-state a,
.order-history-state button {
    display: inline-flex;
    justify-content: center;
    padding: 11px 20px;
    border: 1px solid #222;
    background: #fff;
    color: #222;
    font: inherit;
    cursor: pointer;
}

.order-history-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.order-history-card {
    border: 1px solid #ddd;
    background: #fff;
}

.order-history-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid #eee;
}

.order-history-card-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.order-history-date {
    color: #555;
    font-size: 14px;
}

.order-history-number {
    overflow: hidden;
    color: #222;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.order-history-status-group {
    display: flex;
    flex: none;
    align-items: flex-end;
    flex-direction: column;
    gap: 3px;
}

.order-history-status {
    flex: none;
    color: #111;
    font-size: 13px;
    font-weight: 700;
}

.order-history-status.is-pending,
.order-history-status.is-cancelled,
.order-history-status.is-returned {
    color: #999;
}

.order-history-status-date {
    color: #777;
    font-size: 11px;
    white-space: nowrap;
}

.order-history-items {
    margin: 0;
    padding: 0 20px;
    list-style: none;
}

.order-history-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid #f0f0f0;
}

.order-history-item:last-child {
    border-bottom: none;
}

.order-history-item-image {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    background: #f4f4f4;
    object-fit: cover;
}

.order-history-item-info {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
}

.order-history-item-info strong {
    overflow: hidden;
    color: #222;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.order-history-item-info span {
    color: #777;
    font-size: 12px;
}

.order-history-item-price {
    flex: none;
    font-size: 14px;
}

.order-history-details-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 8px 20px;
    border: none;
    border-top: 1px solid #eee;
    background: #fafafa;
    color: #222;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.order-history-details-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}

.order-history-details-toggle.is-open .order-history-details-arrow {
    transform: rotate(180deg);
}

.order-history-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding: 20px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.order-history-details[hidden] {
    display: none !important;
}

.order-history-detail-section h2 {
    margin: 0 0 12px;
    font-size: 14px;
}

.order-history-detail-section dl {
    margin: 0;
}

.order-history-detail-section dl > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 4px 0;
    font-size: 12px;
}

.order-history-detail-section dt {
    color: #777;
}

.order-history-detail-section dd {
    margin: 0;
    color: #333;
    text-align: right;
    word-break: break-all;
}

.order-history-detail-section .is-total {
    margin-top: 5px;
    padding-top: 9px;
    border-top: 1px solid #ddd;
    font-size: 14px;
    font-weight: 700;
}

.order-history-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
}

.order-history-pagination button {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #ddd;
    background: #fff;
    color: #555;
    cursor: pointer;
}

.order-history-pagination button:hover:not(:disabled),
.order-history-pagination button.is-current {
    border-color: #222;
    color: #111;
}

.order-history-pagination button.is-current {
    background: #222;
    color: #fff;
}

.order-history-pagination button:disabled {
    color: #bbb;
    cursor: default;
}

.order-history-page-numbers {
    display: flex;
    gap: 8px;
}

/* MyShop - 회원정보 수정 폼 (라벨-입력창 수평 배치) */
.member-info-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 560px;
}

.member-info-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.member-info-row > label {
    flex: 0 0 120px;
    font-size: 14px;
    color: #333;
}

.member-info-input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.member-info-input[readonly] {
    background-color: #f5f5f5;
    color: #888;
}

.member-info-row.has-hint {
    flex-wrap: wrap;
}

.member-info-hint {
    flex-basis: 100%;
    margin: 0 0 0 136px;
    font-size: 12px;
    color: #999;
    line-height: 1.5;
}

.member-info-error {
    flex-basis: 100%;
    margin: 0 0 0 136px;
    font-size: 12px;
    color: #c62828;
    line-height: 1.5;
}

.member-info-error:empty {
    display: none;
}

.member-info-inline {
    flex: 1;
    min-width: 0;
    display: flex;
    gap: 8px;
}

.member-info-group {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 휴대폰·생년월일 칸은 가로 전체를 채우지 않고 콘텐츠 폭 + 축소된 좌우 패딩 */
.member-info-group .member-info-input {
    flex: 0 0 auto;
    width: 4.25rem;
    padding: 10px 12px;
    text-align: center;
}

.member-info-group .member-info-input[maxlength="3"] {
    width: 3.75rem;
}

.member-info-group .member-info-input[maxlength="2"] {
    width: 3.25rem;
}

.member-info-sep {
    color: #bbb;
}

.member-info-unit {
    flex: 0 0 auto;
    font-size: 14px;
    color: #666;
}

.member-info-inline-btn {
    flex: 0 0 auto;
    align-self: stretch;
    padding: 0 16px;
    border: 1px solid #111;
    background-color: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

.member-info-radio-group {
    display: flex;
    align-items: center;
    gap: 24px;
}

.member-info-radio-group.is-locked {
    opacity: 0.45;
}

.member-info-radio-group.is-locked .terms-row {
    cursor: not-allowed;
}

.member-info-divider {
    margin: 8px 0;
    border: none;
    border-top: 1px solid #eee;
}

.member-info-submit {
    align-self: flex-start;
    margin-top: 40px;
    padding: 12px 28px;
    border: none;
    background-color: #111;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.member-info-withdraw-row {
    margin-top: 16px;
    text-align: right;
}

.member-info-withdraw {
    padding: 0;
    border: none;
    background: none;
    color: #999;
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
}

.member-info-withdraw:hover {
    color: #c62828;
}

.member-info-modal-actions {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.member-info-modal-cancel,
.member-info-modal-danger {
    flex: 1;
    padding: 12px 0;
    border: none;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.member-info-modal-cancel {
    background-color: #fff;
    border: 1px solid #ddd;
    color: #333;
}

.member-info-modal-danger {
    background-color: #111;
    color: #fff;
}

/* Signup page */
.signup-page {
    width: min(92%, 480px);
    margin: 0 auto;
    padding: 60px 0 150px;
}

.signup-title {
    margin: 0 0 24px;
    font-size: 24px;
    font-weight: 700;
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.signup-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.signup-field label {
    font-size: 13px;
    font-weight: 700;
    color: #969696;
}

.signup-input,
.signup-select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    font-size: 14px;
    box-sizing: border-box;
    background-color: #fff;
}

.signup-input::placeholder {
    color: #999;
}

.signup-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    color: #999;
}

.signup-select:has(option:checked:not([value=""])) {
    color: #222;
}

.signup-input-row {
    display: flex;
    gap: 8px;
}

.signup-input-row .signup-input {
    flex: 1;
    min-width: 0;
}

.signup-field-message {
    margin: 0;
    font-size: 12px;
}

.signup-field-message.is-error {
    color: #c62828;
}

.signup-inline-button {
    flex-shrink: 0;
    padding: 0 20px;
    border: 1px solid;
    background-color: #111;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    min-width: 100px;
    white-space: nowrap;
    cursor: pointer;
}

.signup-birthdate-group {
    display: flex;
    gap: 8px;
}

.signup-birthdate-group .signup-select {
    flex: 1;
}

.signup-submit {
    width: 100%;
    padding: 16px;
    margin-top: 8px;
    background-color: #111;
    color: #fff;
    border: none;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

/* Signup terms */
.signup-terms {
    display: flex;
    background-color: #f5f5f5;
    flex-direction: column;
    gap: 14px;
    padding: 20px 20px;
}

.terms-row {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.terms-row-nested {
    padding-left: 28px;
}

.terms-checkbox {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.terms-checkbox-icon {
    flex-shrink: 0;
    position: relative;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #ccc;
}

.terms-checkbox-icon::after {
    content: "";
    position: absolute;
    left: 7.5px;
    top: 4px;
    width: 3px;
    height: 7px;
    border: solid #fff;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}

.terms-checkbox:checked + .terms-checkbox-icon {
    background-color: #111;
}

.terms-row-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
}

.terms-row-all .terms-row-text strong {
    font-size: 14px;
}

.terms-row-text small {
    font-size: 12px;
    font-weight: 400;
    color: #969696;
    line-height: 1.5;
}

.terms-detail-link {
    margin-left: auto;
    font-size: 13px;
    color: #969696;
    text-decoration: underline;
    flex-shrink: 0;
}

/* Product detail page */
.detail-page {
    /* body 가 flex 컨테이너라 margin:0 auto 만으로는 fit-content 로 수축함 → 명시적으로 채움 */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 24px 100px;
}

.breadcrumb-detail {
    gap: 6px;
    margin-bottom: 24px;
    font-size: 13px;
    font-weight: 400;
}

.breadcrumb-detail .breadcrumb-current {
    font-weight: 700;
}

.breadcrumb-detail .breadcrumb-sep {
    width: 9px;
    height: 9px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 48px;
    align-items: start;
}

.detail-gallery {
    display: flex;
    gap: 12px;
}

.gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 88px;
    flex-shrink: 0;
}

.gallery-thumb {
    padding: 0;
    border: 1px solid transparent;
    background: none;
    cursor: pointer;
}

.gallery-thumb.is-active {
    border-color: #111;
}

.gallery-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.gallery-main {
    position: relative;
    flex: 1;
    min-width: 0;
}

.gallery-image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1.3;
    object-fit: cover;
    background-color: #f5f5f5;
}

.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    z-index: 1;
}

.gallery-btn img {
    width: 18px;
    height: 18px;
    opacity: 0.55;
}

.gallery-btn:hover img {
    opacity: 1;
}

.gallery-btn-prev {
    left: 8px;
}

.gallery-btn-next {
    right: 8px;
}

.gallery-btn-prev img {
    transform: rotate(90deg);
}

.gallery-btn-next img {
    transform: rotate(-90deg);
}

.detail-name {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 700;
}

.detail-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 0 0 20px;
}

.detail-price .price-final {
    font-size: 20px;
}

.detail-desc {
    margin: 0 0 28px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #555;
    line-height: 1.7;
}

.detail-option-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: #666;
}

.detail-option-select {
    width: 100%;
    padding: 12px 40px 12px 14px;
    border: 1px solid #ddd;
    background-color: #fff;
    font-size: 14px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("../images/icons/select-icon.svg");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    cursor: pointer;
}

.selected-options {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.selected-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background-color: #f7f7f7;
    font-size: 14px;
}

.selected-option-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.qty-stepper {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    background-color: #fff;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: none;
    font-size: 15px;
    color: #333;
    cursor: pointer;
}

.qty-value {
    min-width: 32px;
    text-align: center;
    font-size: 13px;
}

.selected-option-price {
    min-width: 72px;
    text-align: right;
    font-size: 14px;
    font-weight: 700;
}

.selected-option-remove {
    padding: 0;
    border: none;
    background: none;
    font-size: 18px;
    line-height: 1;
    color: #999;
    cursor: pointer;
}

.selected-option-remove:hover {
    color: #111;
}

.detail-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding: 18px 0;
    border-top: 1px solid #222;
}

.detail-total-label {
    font-size: 14px;
    font-weight: 700;
}

.detail-total-value strong {
    font-size: 20px;
}

#total-count {
    margin-left: 4px;
    font-size: 13px;
    color: #888;
}

.detail-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.detail-btn {
    flex: 1;
    padding: 16px 0;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
}

.detail-btn-cart {
    background-color: #fff;
    border: 1px solid #111;
    color: #111;
}

.detail-btn-buy {
    background-color: #111;
    border: 1px solid #111;
    color: #fff;
}

.detail-btn-soldout {
    background-color: #eee;
    border: 1px solid #eee;
    color: #999;
    cursor: default;
}

.detail-btn:disabled {
    opacity: 0.55;
    cursor: wait;
}

.cart-add-message {
    min-height: 20px;
    margin: 10px 0 0;
    font-size: 13px;
    color: #4d4d4d;
}

.cart-add-message.is-error,
.cart-page-message.is-error {
    color: #845757;
}

.cart-add-message a {
    font-weight: 700;
    text-decoration: underline;
}

/* Cart */
.cart-page {
    width: min(1100px, calc(100% - 48px));
    min-height: 520px;
    margin: 0 auto;
    padding: 72px 0 100px;
}

.cart-title {
    margin: 0 0 36px;
    font-size: 30px;
    letter-spacing: 2px;
    text-align: center;
}

.cart-page-message {
    min-height: 20px;
    margin: 0 0 12px;
    font-size: 13px;
    color: #287a45;
}

.cart-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 4px;
    border-bottom: 1px solid #222;
}

.cart-check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.cart-delete-btn,
.cart-item-remove {
    border: none;
    background: none;
    color: #666;
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
}

.cart-items {
    margin: 0;
    padding: 0;
    list-style: none;
}

.cart-item {
    display: grid;
    grid-template-columns: 22px 120px minmax(180px, 1fr) auto 120px 48px;
    align-items: center;
    gap: 20px;
    padding: 24px 4px;
    border-bottom: 1px solid #eee;
}

.cart-item.is-unavailable {
    background-color: #fafafa;
}

.cart-item-image {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #f5f5f5;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-name {
    font-size: 15px;
    font-weight: 600;
}

.cart-item-option,
.cart-item-notice,
.cart-item-error {
    margin: 7px 0 0;
    font-size: 12px;
    color: #777;
}

.cart-item-notice {
    color: #a36a00;
}

.cart-item-error {
    color: #c73535;
}

.cart-item-price {
    text-align: right;
    font-size: 15px;
}

.cart-summary {
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    gap: 28px;
    padding: 28px 4px 20px;
    font-size: 14px;
}

.cart-summary strong {
    min-width: 150px;
    font-size: 24px;
    text-align: right;
}

.cart-checkout-btn {
    display: block;
    width: 300px;
    margin-left: auto;
    padding: 17px 0;
    border: 1px solid #111;
    background-color: #111;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.cart-checkout-btn:disabled {
    border-color: #aaa;
    background-color: #eee;
    color: #888;
    cursor: default;
}

.cart-empty {
    padding: 100px 0;
    color: #777;
    text-align: center;
}

.cart-empty a {
    display: inline-block;
    margin-top: 12px;
    color: #111;
    text-decoration: underline;
}

#cart-content.is-loading {
    opacity: 0.55;
    pointer-events: none;
}

@media (max-width: 768px) {
    .cart-page {
        width: calc(100% - 32px);
        padding: 40px 0 72px;
    }

    .cart-item {
        grid-template-columns: 20px 80px 1fr auto;
        gap: 12px;
        padding: 18px 0;
    }

    .cart-item-info {
        align-self: start;
    }

    .cart-item-stepper {
        grid-column: 3;
        justify-self: start;
    }

    .cart-item-price {
        grid-column: 4;
        grid-row: 2;
    }

    .cart-item-remove {
        grid-column: 4;
        grid-row: 1;
        align-self: start;
    }

    .cart-summary {
        justify-content: space-between;
    }

    .cart-checkout-btn {
        width: 100%;
    }
}

/* Checkout */
.checkout-page {
    width: min(1120px, calc(100% - 48px));
    min-height: 560px;
    margin: 0 auto;
    padding: 56px 0 110px;
}

.checkout-page [hidden] {
    display: none !important;
}

.checkout-steps {
    display: flex;
    justify-content: flex-end;
    gap: 24px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
    color: #aaa;
    font-size: 12px;
    letter-spacing: 0.04em;
}

.checkout-steps .is-current {
    color: #111;
    font-weight: 700;
}

.checkout-title {
    margin: 0 0 36px;
    font-size: 30px;
    letter-spacing: 2px;
    text-align: center;
}

.checkout-message {
    min-height: 20px;
    margin: 0 0 18px;
    color: #c62828;
    font-size: 13px;
    text-align: center;
}

.checkout-loading {
    padding: 120px 0;
    color: #777;
    text-align: center;
}

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

.checkout-form-column {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.checkout-section {
    padding-top: 20px;
    border-top: 1px solid #111;
}

.checkout-section h2,
.checkout-summary h2,
.checkout-complete-card h2 {
    margin: 0 0 24px;
    font-size: 18px;
}

.checkout-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.checkout-section-head h2 {
    margin-bottom: 0;
}

.checkout-copy-label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #555;
    font-size: 13px;
    cursor: pointer;
}

.checkout-field {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    align-items: center;
    gap: 8px 16px;
    margin-bottom: 16px;
}

.checkout-field > label {
    color: #333;
    font-size: 14px;
}

.checkout-field > label span {
    color: #c62828;
}

.checkout-input {
    width: 100%;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #111;
    font: inherit;
}

.checkout-input[readonly] {
    background-color: #f7f7f7;
    color: #666;
}

.checkout-input.is-error {
    border-color: #c62828;
}

.checkout-textarea {
    resize: vertical;
    line-height: 1.5;
}

.checkout-inline {
    display: flex;
    gap: 8px;
}

.checkout-inline .checkout-input {
    flex: 1;
}

.checkout-inline-btn {
    flex: 0 0 auto;
    padding: 0 18px;
    border: 1px solid #111;
    background-color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.checkout-field-error,
.checkout-counter {
    grid-column: 2;
    margin: 0;
    font-size: 12px;
}

.checkout-field-error {
    min-height: 14px;
    color: #c62828;
}

.checkout-field-error:empty {
    display: none;
}

.checkout-counter {
    color: #999;
    text-align: right;
}

.checkout-help {
    margin: 6px 0 0 136px;
    color: #888;
    font-size: 12px;
}

.checkout-summary {
    position: sticky;
    top: 24px;
    padding: 24px;
    border: 1px solid #ddd;
    background-color: #fff;
}

.checkout-order-items {
    margin: 0;
    padding: 0;
    list-style: none;
}

.checkout-order-item {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
}

.checkout-order-image {
    display: block;
    width: 64px;
    height: 64px;
    background-color: #f3f3f3;
    object-fit: cover;
}

.checkout-order-info {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
}

.checkout-order-info strong {
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.checkout-order-info span {
    color: #777;
    font-size: 11px;
}

.checkout-order-price {
    font-size: 13px;
    white-space: nowrap;
}

.checkout-totals {
    margin: 22px 0 0;
}

.checkout-totals > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 7px 0;
    font-size: 13px;
}

.checkout-totals dt,
.checkout-totals dd {
    margin: 0;
}

.checkout-total-final {
    margin-top: 12px;
    padding-top: 18px !important;
    border-top: 1px solid #111;
    font-size: 16px !important;
    font-weight: 700;
}

.checkout-total-final dd {
    font-size: 21px;
}

.checkout-summary-note {
    margin: 18px 0;
    color: #777;
    font-size: 11px;
    line-height: 1.5;
}

.checkout-primary-btn,
.checkout-primary-link,
.checkout-outline-link {
    display: block;
    width: 100%;
    padding: 16px;
    box-sizing: border-box;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
}

.checkout-primary-btn,
.checkout-primary-link {
    border: 1px solid #111;
    background-color: #111;
    color: #fff;
}

.checkout-primary-btn:disabled {
    border-color: #aaa;
    background-color: #aaa;
    cursor: wait;
}

.checkout-outline-link {
    border: 1px solid #111;
    background-color: #fff;
    color: #111;
}

.checkout-secondary-link {
    display: block;
    margin-top: 14px;
    color: #777;
    font-size: 12px;
    text-align: center;
    text-decoration: underline;
}

.checkout-order-number {
    margin: -8px 0 12px;
    color: #777;
    font-size: 13px;
}

.checkout-order-number strong {
    margin-left: 8px;
    color: #111;
}

.checkout-order-items-large .checkout-order-item {
    grid-template-columns: 86px minmax(0, 1fr) auto;
    padding: 18px 0;
}

.checkout-order-items-large .checkout-order-image {
    width: 86px;
    height: 86px;
}

.checkout-payment-methods {
    display: grid;
    gap: 10px;
}

.checkout-payment-method {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 5px 10px;
    padding: 18px;
    border: 1px solid #ddd;
    cursor: pointer;
}

.checkout-payment-method:has(input:checked) {
    border-color: #111;
    box-shadow: inset 0 0 0 1px #111;
}

.checkout-payment-method input {
    grid-row: 1 / 3;
    align-self: center;
}

.checkout-payment-method span {
    font-size: 14px;
    font-weight: 700;
}

.checkout-payment-method small {
    color: #777;
}

.checkout-complete-page {
    width: min(760px, calc(100% - 48px));
}

.checkout-complete-head {
    padding: 26px 0 50px;
    text-align: center;
}

.checkout-complete-mark {
    display: inline-flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 2px solid #111;
    border-radius: 50%;
    font-size: 27px;
}

.checkout-complete-head h1 {
    margin: 0 0 10px;
    font-size: 27px;
}

.checkout-complete-head p {
    margin: 0;
    color: #777;
}

.checkout-complete-card {
    margin-bottom: 28px;
    padding-top: 20px;
    border-top: 1px solid #111;
}

.checkout-complete-details {
    margin: 0;
}

.checkout-complete-details > div {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 20px;
    padding: 11px 0;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

.checkout-complete-details dt {
    color: #777;
}

.checkout-complete-details dd {
    margin: 0;
    overflow-wrap: anywhere;
    text-align: right;
}

.checkout-complete-details .checkout-complete-amount {
    padding: 18px 0;
    font-size: 17px;
    font-weight: 700;
}

.checkout-complete-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 36px;
}

.checkout-complete-notice {
    margin: 14px 0 0;
    color: #888;
    font-size: 12px;
    text-align: center;
}

@media (max-width: 768px) {
    .checkout-page,
    .checkout-complete-page {
        width: calc(100% - 32px);
        padding: 36px 0 72px;
    }

    .checkout-steps {
        justify-content: center;
        gap: 14px;
        font-size: 10px;
    }

    .checkout-title {
        margin-bottom: 28px;
        font-size: 25px;
    }

    .checkout-layout {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .checkout-summary {
        position: static;
    }

    .checkout-field {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .checkout-field-error,
    .checkout-counter {
        grid-column: 1;
    }

    .checkout-help {
        margin-left: 0;
    }

    .checkout-order-item,
    .checkout-order-items-large .checkout-order-item {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .checkout-order-items-large .checkout-order-image {
        width: 64px;
        height: 64px;
    }

    .checkout-order-price {
        grid-column: 2;
    }

    .checkout-complete-details > div {
        grid-template-columns: 110px minmax(0, 1fr);
    }

    .checkout-complete-actions {
        grid-template-columns: 1fr;
    }
}

.detail-accordions {
    margin-top: 40px;
    border-top: 1px solid #eee;
}

.detail-accordion {
    border-bottom: 1px solid #eee;
}

.detail-accordion-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 2px;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
}

.detail-accordion-icon {
    width: 22px;
    height: 22px;
    transition: transform 0.2s ease;
}

.detail-accordion-toggle.is-open .detail-accordion-icon {
    transform: rotate(180deg);
}

.detail-accordion-body {
    padding: 0 2px 18px;
}

.detail-accordion-body p {
    margin: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.7;
}

/* Admin dashboard */
.admin-body {
    min-height: 100vh;
    background: #f4f5f7;
    color: #1d2939;
}

.admin-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #e5e5e5;
    background: #fff;
    color: #151515;
}

.admin-header-inner {
    display: grid;
    width: min(94%, 1200px);
    min-height: 72px;
    margin: 0 auto;
    grid-template-columns: auto 1fr auto;
    gap: 30px;
    align-items: center;
}

.admin-brand {
    color: #151515;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.admin-brand p{
    display: inline;
    font-weight: 400;
}

.admin-main-nav ul {
    display: flex;
    margin: 0;
    padding: 0;
    gap: 6px;
    list-style: none;
}

.admin-main-nav a {
    display: block;
    padding: 8px 14px;
    color: #999999;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
}

.admin-main-nav a:hover,
.admin-main-nav a.is-active {
    font-weight: 700;
    color: #151515;
}

.admin-main-nav a.is-active {
    font-size: 18px;
}

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-user-name {
    color: #151515;
    font-size: 13px;
    font-weight: 600;
}

.admin-logout {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 7px;
    background: #fff;
    color: #151515;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.admin-logout:hover {
    border-color: #999;
    background: #f5f5f5;
}

.admin-logout:disabled {
    cursor: default;
    opacity: 0.5;
}

.admin-page {
    width: min(94%, 1200px);
    margin: 0 auto;
    padding: 52px 0 100px;
}

.admin-page-head {
    margin-bottom: 36px;
}

.admin-page-kicker {
    margin: 0 0 8px;
    color: #443dff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.admin-page-head h1 {
    margin: 0 0 12px;
    font-size: 32px;
    letter-spacing: -0.04em;
}

.admin-page-head > p:last-child {
    margin: 0;
    color: #777;
    font-size: 14px;
    line-height: 1.6;
}

.admin-content {
    min-width: 0;
}

.admin-content-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.admin-content-head span,
.admin-guide-label {
    color: #999;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.admin-content-head h2,
.admin-guide h2 {
    margin: 5px 0 0;
    font-size: 22px;
    letter-spacing: -0.03em;
}

.admin-content-head p {
    margin: 0;
    color: #888;
    font-size: 12px;
}

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

.admin-feature-card {
    display: flex;
    min-height: 250px;
    flex-direction: column;
    padding: 22px;
    border: 1px solid #e5e5e5;
    background: #fff;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.admin-feature-card:hover {
    border-color: #aaa;
    transform: translateY(-3px);
}

.admin-feature-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-feature-number {
    color: #bbb;
    font-size: 12px;
    font-weight: 700;
}

.admin-feature-status {
    padding: 5px 8px;
    background: #f1f1f1;
    color: #888;
    font-size: 10px;
    font-weight: 700;
}

.admin-feature-status.is-next {
    background: #efefff;
    color: #443dff;
}

.admin-feature-card h3 {
    margin: 38px 0 12px;
    font-size: 20px;
}

.admin-feature-card p {
    margin: 0;
    color: #777;
    font-size: 13px;
    line-height: 1.7;
}

.admin-feature-schedule {
    margin-top: auto;
    padding-top: 24px;
    color: #333;
    font-size: 12px;
    font-weight: 700;
}

.admin-guide {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-top: 18px;
    padding: 26px 28px;
    background: #f0f0ed;
}

.admin-guide p {
    max-width: 480px;
    margin: 0;
    color: #666;
    font-size: 13px;
    line-height: 1.7;
}

/* Mobile */
@media (max-width: 768px) {
    .header-inner {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        padding: 10px 0;
        gap: 0;
    }

    .hamburger-btn {
        display: flex;
        justify-self: start;
    }

    .logo {
        justify-self: center;
    }

    .header-icons {
        justify-self: end;
        margin-left: 0;
    }

    .main-nav {
        display: none;
    }

    .admin-page {
        width: 100%;
        padding: 32px 16px 80px;
    }

    .admin-header-inner {
        width: 100%;
        min-height: auto;
        padding: 12px 16px 0;
        grid-template-columns: 1fr auto;
        gap: 12px;
    }

    .admin-header-actions {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }

    .admin-main-nav {
        overflow-x: auto;
        grid-column: 1 / -1;
        grid-row: 2;
        scrollbar-width: none;
    }

    .admin-main-nav::-webkit-scrollbar {
        display: none;
    }

    .admin-main-nav ul {
        min-width: max-content;
    }

    .admin-main-nav a {
        padding: 12px 13px 14px;
        border-radius: 0;
    }

    .admin-page-head h1 {
        font-size: 27px;
    }

    .admin-content-head,
    .admin-guide {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-feature-grid {
        grid-template-columns: 1fr;
    }

    .admin-feature-card {
        min-height: 220px;
    }

    .admin-footer {
        width: calc(100% - 32px);
    }

    .product-section {
        padding: 32px 16px;
    }

    .category-page {
        padding: 32px 16px;
    }

    .breadcrumb {
        font-size: 18px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-grid .product-name {
        margin: 12px 12px 6px;
        font-size: 14px;
    }

    .product-grid .product-price {
        margin: 0 12px 14px;
    }

    .product-grid .price-final {
        font-size: 13px;
    }

    .carousel-track {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        gap: 0;
    }

    .carousel-track::-webkit-scrollbar {
        display: none;
    }

    .carousel-track > .product-card {
        flex: 0 0 100%;
        scroll-snap-align: start;
    }

    .carousel-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 43%;
        transform: translateY(-50%);
        z-index: 1;
        width: 40px;
        height: 40px;
        border: none;
        background: none;
        padding: 0;
        cursor: pointer;
    }

    .carousel-btn img {
        width: 16px;
        height: 16px;
    }

    .carousel-btn-prev img {
        transform: rotate(90deg);
    }

    .carousel-btn-next img {
        transform: rotate(-90deg);
    }

    .carousel-btn:disabled {
        opacity: 0.3;
        cursor: default;
    }

    .carousel-btn-prev {
        left: 8px;
    }

    .carousel-btn-next {
        right: 8px;
    }

    .site-footer {
        padding: 32px 16px 20px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 32px;
    }

    .footer-columns {
        flex-direction: column;
        gap: 0;
    }

    .footer-column {
        border-top: 1px solid #333;
    }

    .footer-column-toggle {
        justify-content: space-between;
        padding: 14px 0;
        margin: 0;
        cursor: pointer;
    }

    .footer-toggle-icon {
        display: inline-block;
        width: 30px;
        height: 30px;
        filter: invert(1);
        transition: transform 0.2s ease;
    }

    .footer-column-toggle.is-open .footer-toggle-icon {
        transform: rotate(180deg);
    }

    .footer-column .footer-column-list {
        display: none;
        padding-bottom: 16px;
    }

    .footer-column .footer-column-list.is-open {
        display: flex;
    }

    .footer-contact {
        text-align: left;
        white-space: normal;
    }

    .footer-bottom {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .myshop-layout {
        flex-direction: column;
        gap: 24px;
    }

    .myshop-aside {
        flex: none;
        width: 100%;
        padding-right: 0;
        padding-bottom: 16px;
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    .order-history-card-head,
    .order-history-card-heading {
        align-items: flex-start;
    }

    .order-history-card-heading {
        flex-direction: column;
        gap: 5px;
    }

    .order-history-item {
        display: grid;
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 12px;
    }

    .order-history-item-image {
        grid-row: 1 / span 2;
        width: 64px;
        height: 64px;
    }

    .order-history-item-price {
        grid-column: 2;
    }

    .order-history-details {
        grid-template-columns: 1fr;
    }

    .order-history-pagination {
        gap: 4px;
    }

    .order-history-pagination button {
        min-width: 32px;
        height: 34px;
        padding: 0 8px;
    }

    .order-history-page-numbers {
        gap: 4px;
    }

    .member-info-row {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .member-info-row > label {
        flex: none;
    }

    .member-info-hint,
    .member-info-error {
        margin-left: 0;
    }

    .detail-page {
        padding: 24px 16px 80px;
    }

    .breadcrumb-detail {
        margin-bottom: 16px;
    }

    .detail-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .detail-gallery {
        flex-direction: column-reverse;
    }

    .gallery-thumbs {
        flex-direction: row;
        width: auto;
        overflow-x: auto;
    }

    .gallery-thumb {
        flex: 0 0 64px;
    }
}
