/* ===== PAGES COMMON STYLES ===== */

/* ===== 공통 탭 네비게이션 (금시세/상품 공용) ===== */
.price-tabs-wrap {
    background: #fff;
    border-bottom: 2px solid #e8e4da;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.price-tabs-inner {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
}
.price-tabs-inner::-webkit-scrollbar { display: none; }

.price-tab-btn {
    flex-shrink: 0;
    padding: 20px 32px 0;
    height: 76px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-family: 'Pretendard', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #8A8A8A;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: -2px;
}
.price-tab-btn i { font-size: 14px; }
.price-tab-btn:hover {
    color: var(--gold-dark);
    background: rgba(200,164,77,0.04);
}
.price-tab-btn.active {
    color: var(--gold-dark);
    border-bottom: 3px solid var(--gold-primary);
    font-weight: 700;
}
.price-tab-btn.active i { color: var(--gold-primary); }

@media (max-width: 768px) {
    .price-tab-btn { padding: 0 18px; font-size: 14px; height: 56px; }
}


.shop-category-tabs {
    background: var(--ivory);
    border-bottom: 2px solid var(--border-gold);
    padding: 24px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.shop-tabs-inner {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0 4px;
}
.shop-tabs-inner::-webkit-scrollbar { display: none; }

/* 전체 탭 – 작은 보조 버튼 */
.shop-tab-btn[data-type="ALL"] {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: #fff;
    border: 1.5px solid var(--border-gold);
    border-radius: 50px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.25s ease;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: center;
}
.shop-tab-btn[data-type="ALL"] i {
    font-size: 12px;
    color: var(--text-light);
}
.shop-tab-btn[data-type="ALL"]:hover {
    border-color: var(--gold-primary);
    color: var(--gold-dark);
    background: rgba(200,164,77,0.06);
}
.shop-tab-btn[data-type="ALL"].active {
    background: var(--charcoal);
    border-color: var(--charcoal);
    color: #fff;
}
.shop-tab-btn[data-type="ALL"].active i {
    color: var(--gold-light);
}

/* 카드형 탭 – 골드바 / 반지 / 목걸이 */
.shop-tab-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 24px;
    background: #fff;
    border: 2px solid var(--border-gold);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.25s ease;
    white-space: nowrap;
    position: relative;
    flex-shrink: 0;
    font-family: 'Pretendard', sans-serif;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    min-width: 160px;
    cursor: pointer;
    outline: none;
    /* button 기본 스타일 초기화 */
    appearance: none;
    -webkit-appearance: none;
}
/* 전체 탭은 위에서 별도 처리했으므로 min-width 제외 */
.shop-tab-btn[data-type="ALL"] {
    min-width: unset;
    padding: 10px 18px;
    background: #fff;
    border-radius: 50px;
    box-shadow: none;
}

.shop-tab-icon {
    width: 48px;
    height: 48px;
    background: var(--ivory);
    border: 1.5px solid var(--border-gold);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--gold-primary);
    transition: all 0.25s;
    flex-shrink: 0;
}
.shop-tab-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.shop-tab-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--charcoal);
    transition: color 0.25s;
}
.shop-tab-sub {
    font-size: 11px;
    color: var(--text-light);
    font-weight: 400;
}

/* hover */
.shop-tab-btn:hover {
    border-color: var(--gold-primary);
    background: rgba(200,164,77,0.04);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200,164,77,0.15);
}
.shop-tab-btn:hover .shop-tab-icon {
    background: rgba(200,164,77,0.12);
    border-color: var(--gold-primary);
}
.shop-tab-btn:hover .shop-tab-name {
    color: var(--gold-dark);
}
.shop-tab-btn:hover .shop-tab-sub {
    color: var(--gold-primary);
}

/* active – 골드 강조 */
.shop-tab-btn.active {
    border-color: var(--gold-primary);
    background: linear-gradient(135deg, rgba(200,164,77,0.08) 0%, rgba(200,164,77,0.03) 100%);
    box-shadow: 0 4px 20px rgba(200,164,77,0.2);
    transform: translateY(-2px);
}
.shop-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--gold-primary);
    border-radius: 50%;
}
.shop-tab-btn.active .shop-tab-icon {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 14px rgba(200,164,77,0.4);
}
.shop-tab-btn.active .shop-tab-name {
    color: var(--gold-dark);
}
.shop-tab-btn.active .shop-tab-sub {
    color: var(--gold-primary);
}

/* 탭 상품 수 뱃지 */
.shop-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: var(--ivory);
    border: 1px solid var(--border-gold);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-left: auto;
    transition: all 0.25s;
}
.shop-tab-btn.active .shop-tab-count {
    background: var(--gold-primary);
    border-color: transparent;
    color: #fff;
}
.shop-tab-btn:hover .shop-tab-count {
    background: rgba(200,164,77,0.15);
    border-color: var(--gold-primary);
    color: var(--gold-dark);
}

/* 반응형 – 모바일에서 탭 컴팩트하게 */
@media (max-width: 640px) {
    .shop-category-tabs { padding: 16px 0; }
    .shop-tab-btn {
        padding: 12px 16px;
        min-width: 130px;
        gap: 10px;
    }
    .shop-tab-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    .shop-tab-name { font-size: 14px; }
    .shop-tab-sub  { font-size: 10px; }
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #1A1A1C 0%, #2C2C2E 50%, #1A1A1C 100%);
    padding: 48px 0;
    border-bottom: 2px solid var(--gold-primary);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 100%, rgba(200, 164, 77, 0.15) 0%, transparent 70%);
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header-title {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
}

.page-header-title i {
    color: var(--gold-primary);
}

.page-header-sub {
    font-size: 15px;
    color: rgba(255,255,255,0.5);
    margin-left: 50px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 16px;
}

.breadcrumb a {
    color: rgba(255,255,255,0.5);
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--gold-primary);
}

.breadcrumb i {
    font-size: 10px;
    color: rgba(255,255,255,0.3);
}

/* ===== PRICES PAGE ===== */
.prices-page {
    padding: 48px 0;
    background: var(--ivory);
    min-height: 80vh;
}

.chart-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.filter-btn {
    padding: 9px 20px;
    border-radius: 50px;
    border: 1.5px solid var(--border-gold);
    background: var(--white);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
    color: var(--charcoal);
    font-weight: 700;
}

.chart-container {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-gold);
    margin-bottom: 28px;
}

.chart-title {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chart-title i {
    color: var(--gold-primary);
}

.price-table-section {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-gold);
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.price-table th {
    background: var(--charcoal);
    color: var(--gold-light);
    padding: 13px 16px;
    text-align: center;
    font-weight: 600;
    font-family: var(--font-serif);
}

.price-table th:first-child {
    border-radius: 8px 0 0 0;
}

.price-table th:last-child {
    border-radius: 0 8px 0 0;
}

.price-table td {
    padding: 12px 16px;
    text-align: center;
    border-bottom: 1px solid var(--border-gold);
    color: var(--text-primary);
    font-size: 14px;
}

.price-table tr:hover td {
    background: rgba(200, 164, 77, 0.05);
}

.price-table tr:last-child td {
    border-bottom: none;
}

.price-up-text { color: var(--price-up); font-weight: 700; }
.price-down-text { color: var(--price-down); font-weight: 700; }
.price-same-text { color: var(--price-same); }

/* ===== SHOP PAGE ===== */
.shop-page {
    padding: 48px 0;
    background: var(--ivory);
    min-height: 80vh;
}

.shop-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px;
}

.shop-sidebar {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-gold);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar-title {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-title i {
    color: var(--gold-primary);
}

.category-list {
    margin-bottom: 24px;
}

.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: 15px;
    color: var(--text-secondary);
    border: 1px solid transparent;
    margin-bottom: 4px;
}

.category-item:hover,
.category-item.active {
    background: rgba(200, 164, 77, 0.1);
    color: var(--gold-dark);
    border-color: var(--border-gold);
    font-weight: 600;
}

.category-item .count {
    font-size: 12px;
    background: var(--ivory);
    color: var(--text-light);
    padding: 2px 8px;
    border-radius: 50px;
}

.price-range-section {
    margin-bottom: 24px;
}

.price-range-inputs {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
}

.price-range-inputs input {
    width: 100%;
    padding: 8px 10px;
    border: 1.5px solid var(--border-gold);
    border-radius: var(--radius-sm);
    font-size: 13px;
    outline: none;
    transition: var(--transition);
}

.price-range-inputs input:focus {
    border-color: var(--gold-primary);
}

.price-range-inputs span {
    color: var(--text-light);
    white-space: nowrap;
}

.sort-select {
    width: auto;
    padding: 6px 32px 6px 12px;
    border: 1.5px solid var(--border-gold);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-primary);
    outline: none;
    cursor: pointer;
    margin-top: 0;
    background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238A8A8A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    transition: var(--transition);
    font-family: 'Pretendard', sans-serif;
}

.sort-select:focus {
    border-color: var(--gold-primary);
}

.shop-main {
    width: 100%;
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.shop-header h2 {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 700;
    color: var(--charcoal);
}

.shop-count {
    font-size: 14px;
    color: var(--text-light);
}

.shop-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

/* ===== PRODUCT DETAIL MODAL ===== */
.product-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.product-modal-inner {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--charcoal);
    color: var(--white);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 1;
}

.modal-close:hover {
    background: var(--price-up);
    transform: rotate(90deg);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.modal-img {
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

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

.modal-info {
    padding: 32px;
}

.modal-category {
    font-size: 13px;
    color: var(--gold-dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.modal-name {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    color: var(--charcoal);
    line-height: 1.3;
    margin-bottom: 12px;
}

.modal-specs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.modal-spec {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--ivory);
    border: 1px solid var(--border-gold);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 13px;
    color: var(--text-secondary);
}

.modal-spec i {
    color: var(--gold-primary);
}

.modal-price-row {
    margin-bottom: 20px;
}

.modal-price {
    font-size: 32px;
    font-weight: 900;
    color: var(--charcoal);
    font-family: var(--font-serif);
    letter-spacing: -1px;
}

.modal-price span {
    font-size: 18px;
}

.modal-original {
    font-size: 15px;
    color: var(--text-light);
    text-decoration: line-through;
    margin-left: 8px;
}

.modal-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
    padding: 16px;
    background: var(--ivory);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--gold-primary);
}

.modal-qty-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.modal-qty-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--charcoal);
    min-width: 40px;
}

.modal-qty-controls {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid var(--border-gold);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.modal-qty-controls button {
    width: 36px;
    height: 36px;
    background: var(--ivory);
    border: none;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-qty-controls button:hover {
    background: var(--gold-primary);
    color: var(--charcoal);
}

.modal-qty-input {
    width: 50px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border-gold);
    border-right: 1px solid var(--border-gold);
    padding: 8px;
    font-size: 16px;
    font-weight: 700;
    outline: none;
}

.modal-actions {
    display: flex;
    gap: 10px;
}

.btn-modal-cart {
    flex: 1;
    background: var(--gold-gradient);
    color: var(--charcoal);
    border: none;
    padding: 13px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-modal-cart:hover {
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
}

.btn-modal-buy {
    flex: 1;
    background: var(--charcoal);
    color: var(--gold-light);
    border: none;
    padding: 13px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-modal-buy:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
}

/* ===== AUTH PAGES ===== */
.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #1A1A1C 0%, #2C2C2E 50%, #3A3D42 100%);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.auth-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(200, 164, 77, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(200, 164, 77, 0.08) 0%, transparent 50%);
}

.auth-header {
    padding: 20px 40px;
    position: relative;
    z-index: 1;
}

.auth-header a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 14px;
    transition: var(--transition);
}

.auth-header a:hover {
    color: var(--gold-light);
}

.auth-header a i {
    color: var(--gold-primary);
}

.auth-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.auth-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    border: 1px solid rgba(200, 164, 77, 0.2);
}

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo-icon {
    width: 64px;
    height: 64px;
    background: var(--gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--charcoal);
    margin: 0 auto 14px;
    box-shadow: var(--shadow-gold);
}

.auth-logo-name {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    color: var(--charcoal);
}

.auth-logo-sub {
    font-size: 11px;
    letter-spacing: 1.5px;
    color: var(--gold-primary);
    font-weight: 500;
}

.auth-title {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 700;
    color: var(--charcoal);
    text-align: center;
    margin-bottom: 8px;
}

.auth-desc {
    font-size: 14px;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 7px;
}

.form-label span {
    color: var(--price-up);
}

.form-input {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #E0E0E0;
    border-radius: var(--radius-sm);
    font-size: 16px;
    color: var(--text-primary);
    background: var(--white);
    outline: none;
    transition: var(--transition);
    font-family: var(--font-sans);
}

.form-input:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(200, 164, 77, 0.15);
}

.form-input::placeholder {
    color: #BABABA;
}

.form-hint {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 5px;
}

.form-error {
    font-size: 12px;
    color: var(--price-up);
    margin-top: 5px;
    display: none;
}

.form-error.show {
    display: block;
}

.form-input.error {
    border-color: var(--price-up);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.btn-submit {
    width: 100%;
    background: var(--gold-gradient);
    color: var(--charcoal);
    border: none;
    padding: 15px;
    border-radius: var(--radius-sm);
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 8px;
    font-family: var(--font-sans);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-links {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-light);
}

.auth-links a {
    color: var(--gold-dark);
    font-weight: 600;
    transition: var(--transition);
}

.auth-links a:hover {
    color: var(--gold-primary);
    text-decoration: underline;
}

.divider-line {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
}

.divider-line::before,
.divider-line::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #E0E0E0;
}

.divider-line span {
    font-size: 12px;
    color: var(--text-light);
    white-space: nowrap;
}

.terms-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.terms-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 1.5px solid #D0D0D0;
    border-radius: 3px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: var(--gold-primary);
    margin-top: 1px;
}

.terms-check label {
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1.5;
}

.terms-check label a {
    color: var(--gold-dark);
    text-decoration: underline;
}

/* ===== MYPAGE ===== */
.mypage {
    padding: 48px 0;
    background: var(--ivory);
    min-height: 80vh;
}

.mypage-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
}

.mypage-sidebar {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-gold);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.mypage-user-info {
    background: var(--charcoal);
    padding: 24px;
    text-align: center;
    border-bottom: 2px solid var(--gold-primary);
}

.mypage-avatar {
    width: 72px;
    height: 72px;
    background: var(--gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--charcoal);
    margin: 0 auto 14px;
    box-shadow: 0 2px 10px rgba(200, 164, 77, 0.3);
}

.mypage-name {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}

.mypage-grade {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--gold-gradient);
    color: var(--charcoal);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
}

.mypage-nav {
    padding: 12px 0;
}

.mypage-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 20px;
    font-size: 15px;
    color: var(--text-secondary);
    transition: var(--transition);
    cursor: pointer;
    border-left: 3px solid transparent;
}

.mypage-nav-item:hover,
.mypage-nav-item.active {
    background: rgba(200, 164, 77, 0.08);
    color: var(--gold-dark);
    border-left-color: var(--gold-primary);
    font-weight: 600;
}

.mypage-nav-item i {
    width: 18px;
    text-align: center;
    color: var(--gold-primary);
}

.mypage-nav-divider {
    height: 1px;
    background: var(--border-gold);
    margin: 6px 16px;
}

.mypage-content {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-gold);
    overflow: hidden;
}

.mypage-section {
    display: none;
    padding: 32px;
}

.mypage-section.active {
    display: block;
}

.mypage-section-title {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--gold-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.mypage-section-title i {
    color: var(--gold-primary);
}

/* Summary Cards */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.summary-card {
    background: var(--ivory);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    border: 1px solid var(--border-gold);
    transition: var(--transition);
}

.summary-card:hover {
    border-color: var(--gold-primary);
    box-shadow: var(--shadow-gold);
}

.summary-card-icon {
    font-size: 28px;
    color: var(--gold-primary);
    margin-bottom: 10px;
}

.summary-card-value {
    font-size: 28px;
    font-weight: 900;
    font-family: var(--font-serif);
    color: var(--charcoal);
    margin-bottom: 4px;
}

.summary-card-label {
    font-size: 13px;
    color: var(--text-light);
}

/* Orders Table */
.orders-table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table th {
    background: var(--charcoal);
    color: var(--gold-light);
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
}

.orders-table th:first-child { border-radius: 8px 0 0 0; }
.orders-table th:last-child { border-radius: 0 8px 0 0; }

.orders-table td {
    padding: 14px;
    border-bottom: 1px solid var(--border-gold);
    font-size: 14px;
    color: var(--text-primary);
}

.orders-table tr:last-child td {
    border-bottom: none;
}

.orders-table tr:hover td {
    background: rgba(200, 164, 77, 0.04);
}

.order-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
}

.status-pending { background: rgba(255, 193, 7, 0.15); color: #856404; }
.status-paid { background: rgba(13, 110, 253, 0.1); color: #0d6efd; }
.status-shipping { background: rgba(25, 135, 84, 0.1); color: #198754; }
.status-done { background: rgba(90, 90, 90, 0.1); color: #5a5a5a; }
.status-cancel { background: rgba(220, 53, 69, 0.1); color: #dc3545; }

/* Profile Form */
.profile-form .form-input {
    font-size: 15px;
}

/* Responsive mypage */
@media (max-width: 1024px) {
    .mypage-layout {
        grid-template-columns: 220px 1fr;
    }
    .shop-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .page-header-sub { margin-left: 0; }
    .mypage-layout {
        grid-template-columns: 1fr;
    }
    .mypage-sidebar {
        position: static;
    }
    .shop-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .modal-body {
        grid-template-columns: 1fr;
    }
    .modal-img {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        aspect-ratio: 16/9;
    }
    .auth-card {
        padding: 32px 24px;
    }
    .summary-cards {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .chart-filters {
        gap: 6px;
    }
    .filter-btn {
        padding: 7px 14px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .page-header { padding: 40px 0 28px; }
    .page-header-title { font-size: 22px; }
    .page-header-sub { font-size: 13px; margin-left: 0; }

    .auth-card { padding: 24px 16px; }
    .auth-title { font-size: 20px; }
    .form-label { font-size: 13px; }
    .form-input { font-size: 14px; padding: 10px 12px; }

    .mypage-section-title { font-size: 16px; }
    .mypage-nav-item { font-size: 13px; padding: 10px 16px; }
    .summary-card-value { font-size: 22px; }
    .summary-card-label { font-size: 12px; }
    .summary-card { padding: 16px; }

    .shop-product-name { font-size: 13px; }
    .shop-product-price { font-size: 15px; }
    .btn-add-cart { font-size: 12px; padding: 8px 12px; }

    .filter-btn { font-size: 12px; padding: 6px 10px; }
    .price-table th, .price-table td { font-size: 12px; padding: 10px 8px; }
}
