/* AhaMall Vendor Styles - Design System */
:root {
    --ahm-brand: #DCA54A;
    --ahm-brand-hover: #D98C10;
    --ahm-heading: #0F172A;
    --ahm-text: #4A4A4A;
    --ahm-bg-sub: #FAF5E5;
    --ahm-bg: #FFFFFF;
    --ahm-border: #E5E7EB;
    --ahm-error: #DC2626;
    --ahm-success: #16A34A;
}

/* ===========================
   Astra Theme Overrides — 전체 레이아웃 리셋
   =========================== */

/* === 공통: ast-separate-container 박스형 배경/패딩 제거 === */
body.single-vendor_store.ast-separate-container .ast-article-single,
body.single-vendor_store.ast-separate-container .content-area,
body.single-vendor_store.ast-separate-container #primary,
body.post-type-archive-vendor_store.ast-separate-container .ast-article-single,
body.post-type-archive-vendor_store.ast-separate-container #primary {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

/* === 상점 상세 페이지 (single-vendor_store) === */
body.single-vendor_store .site-content {
    padding-top: 0 !important;
}
body.single-vendor_store .site-content > .ast-container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    display: block !important;
}
body.single-vendor_store #primary {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
body.single-vendor_store .entry-content {
    padding: 0 !important;
    margin: 0 !important;
}
body.single-vendor_store #secondary {
    display: none !important;
}
body.single-vendor_store .entry-header,
body.single-vendor_store .ast-archive-description,
body.single-vendor_store .post-navigation {
    display: none !important;
}
/* ast-two-container 두 컬럼 레이아웃 해제 */
body.single-vendor_store.ast-two-container #primary {
    width: 100% !important;
    border: none !important;
}

/* === 상점 목록 아카이브 === */
body.post-type-archive-vendor_store .site-content > .ast-container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    display: block !important;
}
body.post-type-archive-vendor_store #primary {
    width: 100% !important;
    float: none !important;
    padding: 0 !important;
}
body.post-type-archive-vendor_store .ast-archive-description {
    display: none !important;
}

/* === 입점 스토어 목록 페이지 (/stores/) === */
body.page-id-5318 .site-content > .ast-container,
body.page-slug-stores .site-content > .ast-container {
    max-width: 100% !important;
    padding: 0 !important;
}
body.page-id-5318.ast-separate-container .ast-article-post,
body.page-id-5318.ast-separate-container .ast-article-single,
body.page-slug-stores.ast-separate-container .ast-article-post,
body.page-slug-stores.ast-separate-container .ast-article-single {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}
body.page-id-5318 #primary,
body.page-slug-stores #primary {
    width: 100% !important;
    float: none !important;
    padding: 0 !important;
}
body.page-id-5318 .entry-header,
body.page-slug-stores .entry-header {
    display: none !important;
}
body.page-id-5318 .entry-content,
body.page-slug-stores .entry-content {
    margin: 0 !important;
    padding: 0 !important;
}

/* === 입점 신청 페이지 (/vendor-apply/) === */
body.page-id-5316 .site-content > .ast-container,
body.page-slug-vendor-apply .site-content > .ast-container {
    max-width: 100% !important;
    padding: 0 !important;
}
body.page-id-5316.ast-separate-container .ast-article-post,
body.page-id-5316.ast-separate-container .ast-article-single,
body.page-slug-vendor-apply.ast-separate-container .ast-article-post,
body.page-slug-vendor-apply.ast-separate-container .ast-article-single {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}
body.page-id-5316 #primary,
body.page-slug-vendor-apply #primary {
    width: 100% !important;
    float: none !important;
    padding: 0 !important;
}
body.page-id-5316 .entry-header,
body.page-slug-vendor-apply .entry-header {
    display: none !important;
}
body.page-id-5316 .entry-content,
body.page-slug-vendor-apply .entry-content {
    margin: 0 !important;
    padding: 0 !important;
}
body.page-id-5316 .site-content,
body.page-slug-vendor-apply .site-content {
    padding-top: 0 !important;
}
body.page-id-5316 #content,
body.page-slug-vendor-apply #content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* === 셀러 대시보드 페이지 (/vendor-dashboard/) === */
body.page-id-5315 .entry-header,
body.page-slug-vendor-dashboard .entry-header {
    display: none !important;
}

/* ===========================
   Base
   =========================== */
.ahamall-notice { padding: 20px; background: var(--ahm-bg-sub); border-left: 4px solid var(--ahm-brand); margin: 20px 0; color: var(--ahm-text); font-family: 'Poppins', sans-serif; font-size: 15px; }
.ahamall-success { padding: 12px 16px; background: #ECFDF5; border: 1px solid #A7F3D0; color: var(--ahm-success); border-radius: 6px; }
.ahamall-error { padding: 12px 16px; background: #FEF2F2; border: 1px solid #FECACA; color: var(--ahm-error); border-radius: 6px; }

/* ===========================
   PAGE 1: Store Archive /stores/
   =========================== */
.ahm-stores-page { max-width: 1200px; margin: 0 auto; padding: 0 20px 60px; font-family: 'Poppins', sans-serif; }

/* Header */
.ahm-stores-header { text-align: center; padding: 48px 0 40px; }
.ahm-stores-title { font-size: 34px; font-weight: 600; color: var(--ahm-heading); margin: 0 0 8px; }
.ahm-stores-subtitle { font-size: 15px; color: var(--ahm-text); margin: 0 0 28px; }

/* Search */
.ahm-store-search { max-width: 480px; margin: 0 auto; position: relative; }
.ahm-store-search input {
    width: 100%; padding: 14px 50px 14px 20px; border: 2px solid var(--ahm-border); border-radius: 50px;
    font-size: 15px; font-family: 'Poppins', sans-serif; color: var(--ahm-text);
    background: var(--ahm-bg); transition: border-color 0.2s;
}
.ahm-store-search input:focus { border-color: var(--ahm-brand); outline: none; box-shadow: 0 0 0 3px rgba(220,165,74,0.12); }
.ahm-store-search button {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; border: none !important; background: var(--ahm-brand) !important; border-radius: 50% !important;
    color: #fff !important; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s;
    padding: 0 !important; min-width: 0 !important; line-height: 1 !important;
}
.ahm-store-search button svg { stroke: #fff !important; }
.ahm-store-search button:hover { background: var(--ahm-brand-hover) !important; }

/* Grid */
.ahm-stores-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 10px; }
.ahm-store-card {
    background: var(--ahm-bg); border: 1px solid var(--ahm-border); border-radius: 12px;
    padding: 28px 20px; text-align: center; text-decoration: none; color: inherit;
    transition: box-shadow 0.25s, transform 0.25s; display: block;
}
.ahm-store-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); transform: translateY(-4px); }

/* Card Logo */
.ahm-store-card-logo { width: 88px; height: 88px; margin: 0 auto 16px; }
.ahm-store-card-logo img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 3px solid var(--ahm-brand); }
.ahm-store-card-logo-placeholder {
    width: 88px; height: 88px; border-radius: 50%; background: var(--ahm-bg-sub);
    display: flex; align-items: center; justify-content: center; border: 2px dashed var(--ahm-border);
}

/* Card Body */
.ahm-store-card-name { font-size: 17px; font-weight: 600; color: var(--ahm-heading); margin: 0 0 8px; }
.ahm-store-badge {
    display: inline-block; padding: 3px 12px; border-radius: 20px;
    background: var(--ahm-bg-sub); color: var(--ahm-brand-hover); font-size: 12px; font-weight: 600; margin-bottom: 12px;
}
.ahm-store-card-meta { display: flex; justify-content: center; gap: 16px; font-size: 13px; color: var(--ahm-text); }
.ahm-store-meta-item { display: flex; align-items: center; gap: 4px; }
.ahm-store-rating { color: var(--ahm-brand); font-weight: 600; }

/* Empty */
.ahm-stores-empty { text-align: center; padding: 80px 20px; color: var(--ahm-text); }
.ahm-stores-empty p { margin-top: 16px; font-size: 15px; }

/* Pagination */
.ahm-stores-pagination { margin-top: 40px; text-align: center; }
.ahm-stores-pagination .page-numbers {
    display: inline-block; padding: 8px 14px; margin: 0 3px; border: 1px solid var(--ahm-border);
    border-radius: 6px; text-decoration: none; color: var(--ahm-text); font-size: 14px; transition: all 0.2s;
}
.ahm-stores-pagination .page-numbers.current { background: var(--ahm-brand); color: #fff; border-color: var(--ahm-brand); }
.ahm-stores-pagination .page-numbers:hover:not(.current) { border-color: var(--ahm-brand); color: var(--ahm-brand); }

/* ===========================
   PAGE 2: Store Single /store/{slug}/
   =========================== */

/* Banner */
.ahm-store-banner-wrap { width: 100%; max-height: 320px; overflow: hidden; }
.ahm-store-banner-img { width: 100%; height: 320px; object-fit: cover; display: block; }
.ahm-store-banner-default { width: 100%; height: 200px; background: linear-gradient(135deg, var(--ahm-bg-sub) 0%, #F3E8C8 100%); }

.ahm-store-page { max-width: 1200px; margin: 0 auto; padding: 0 20px 60px; font-family: 'Poppins', sans-serif; }

/* Profile */
.ahm-store-profile { display: flex; align-items: flex-start; gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--ahm-border); }
.ahm-store-profile-logo { flex-shrink: 0; }
.ahm-store-profile-logo img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; border: 3px solid var(--ahm-brand); margin-top: -50px; background: #fff; }
.ahm-store-profile-logo-placeholder {
    width: 100px; height: 100px; border-radius: 50%; background: var(--ahm-bg-sub);
    display: flex; align-items: center; justify-content: center; border: 3px solid var(--ahm-border); margin-top: -50px;
}
.ahm-store-profile-info { flex: 1; }
.ahm-store-profile-name { font-size: 30px; font-weight: 600; color: var(--ahm-heading); margin: 0 0 6px; }
.ahm-store-profile-desc { font-size: 15px; color: var(--ahm-text); margin: 0 0 12px; line-height: 1.6; }
.ahm-store-profile-stats { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ahm-store-stat { font-size: 13px; color: var(--ahm-text); display: flex; align-items: center; gap: 4px; }
.ahm-store-profile-actions { flex-shrink: 0; padding-top: 4px; }

/* Follow Button */
.ahm-btn-follow {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 24px; border: 2px solid var(--ahm-brand); border-radius: 50px;
    background: transparent; color: var(--ahm-brand); font-size: 14px; font-weight: 600;
    font-family: 'Poppins', sans-serif; cursor: pointer; transition: all 0.2s;
}
.ahm-btn-follow:hover, .ahm-btn-follow.following { background: var(--ahm-brand); color: #fff; }

/* Tabs */
.ahm-store-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--ahm-border); margin: 28px 0 0; }
.ahm-store-tab {
    padding: 14px 32px; border: none; background: none; cursor: pointer;
    font-size: 15px; font-weight: 400; color: var(--ahm-text);
    border-bottom: 3px solid transparent; margin-bottom: -2px; transition: all 0.2s;
    font-family: 'Poppins', sans-serif;
}
.ahm-store-tab:hover { color: var(--ahm-brand); }
.ahm-store-tab.active { color: var(--ahm-brand); border-bottom-color: var(--ahm-brand); font-weight: 600; }

/* Tab Content */
.ahm-store-tab-content { padding-top: 32px; }
.ahm-no-products { text-align: center; padding: 40px; color: var(--ahm-text); font-size: 15px; }

/* Store Info Tab */
.ahm-store-info-section { margin-bottom: 36px; }
.ahm-store-info-section h3 { font-size: 20px; font-weight: 600; color: var(--ahm-heading); margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--ahm-border); }
.ahm-store-info-table { width: 100%; border-collapse: collapse; }
.ahm-store-info-table th { width: 160px; padding: 12px 16px; text-align: left; font-weight: 600; color: var(--ahm-heading); background: var(--ahm-bg-sub); border-bottom: 1px solid var(--ahm-border); font-size: 14px; }
.ahm-store-info-table td { padding: 12px 16px; color: var(--ahm-text); border-bottom: 1px solid var(--ahm-border); font-size: 14px; }
.ahm-store-info-box { display: grid; gap: 16px; }
.ahm-info-item { padding: 16px 20px; background: var(--ahm-bg-sub); border-radius: 8px; }
.ahm-info-item strong { display: block; font-size: 14px; color: var(--ahm-heading); margin-bottom: 4px; }
.ahm-info-item p { margin: 0; font-size: 14px; color: var(--ahm-text); line-height: 1.6; }

/* ===========================
   PAGE 3: Vendor Apply /vendor-apply/
   =========================== */

/* Hero */
.ahm-apply-hero { background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%); padding: 64px 20px; text-align: center; margin: 0 -20px; }
.ahm-apply-hero-inner { max-width: 640px; margin: 0 auto; }
.ahm-apply-hero-title { font-size: 34px; font-weight: 600; color: #fff; margin: 0 0 12px; }
.ahm-apply-hero-desc { font-size: 16px; color: rgba(255,255,255,0.7); margin: 0; line-height: 1.7; }

/* Benefits */
.ahm-apply-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1200px; margin: -40px auto 0; padding: 0 20px; position: relative; z-index: 1; }
.ahm-benefit-card {
    background: var(--ahm-bg); border: 1px solid var(--ahm-border); border-radius: 12px;
    padding: 36px 28px; text-align: center; transition: box-shadow 0.25s, transform 0.25s;
}
.ahm-benefit-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); transform: translateY(-4px); }
.ahm-benefit-icon {
    width: 72px; height: 72px; margin: 0 auto 20px; background: var(--ahm-bg-sub);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.ahm-benefit-title { font-size: 20px; font-weight: 600; color: var(--ahm-heading); margin: 0 0 10px; }
.ahm-benefit-desc { font-size: 14px; color: var(--ahm-text); margin: 0; line-height: 1.7; }

/* Apply Steps Guide */
.ahm-apply-steps { max-width: 750px; margin: 0 auto 40px; padding: 32px 28px; background: var(--ahm-bg-sub); border-radius: 12px; border: 1px solid #e8d9b0; }
.ahm-apply-steps-title { font-size: 18px; font-weight: 700; color: var(--ahm-heading); margin: 0 0 20px; text-align: center; }
.ahm-apply-steps-grid { display: flex; align-items: flex-start; justify-content: center; gap: 8px; }
.ahm-apply-step { flex: 1; text-align: center; max-width: 160px; }
.ahm-apply-step-num {
    width: 36px; height: 36px; border-radius: 50%; background: var(--ahm-brand); color: #fff;
    font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 10px;
}
.ahm-apply-step-content strong { display: block; font-size: 14px; color: var(--ahm-heading); margin-bottom: 4px; }
.ahm-apply-step-content p { font-size: 12px; color: var(--ahm-text); margin: 0 0 10px; line-height: 1.5; }
.ahm-apply-step-btn {
    display: inline-block; padding: 6px 16px; border: 1.5px solid var(--ahm-brand); border-radius: 20px;
    font-size: 12px; font-weight: 600; color: var(--ahm-brand); text-decoration: none; transition: all 0.2s;
}
.ahm-apply-step-btn:hover { background: var(--ahm-brand); color: #fff; }
.ahm-apply-step-arrow { display: flex; align-items: center; padding-top: 6px; flex-shrink: 0; }
@media (max-width: 768px) {
    .ahm-apply-steps-grid { flex-direction: column; align-items: center; }
    .ahm-apply-step { max-width: 100%; }
    .ahm-apply-step-arrow { transform: rotate(90deg); }
}

/* Apply Form Section */
.ahm-apply-form-section { max-width: 750px; margin: 60px auto 0; padding: 0 20px 60px; font-family: 'Poppins', sans-serif; }
.ahm-apply-form-title { font-size: 30px; font-weight: 600; color: var(--ahm-heading); margin: 0 0 8px; text-align: center; }
.ahm-apply-form-desc { font-size: 15px; color: var(--ahm-text); text-align: center; margin: 0 0 36px; }

/* Login Notice */
.ahm-apply-login-notice {
    display: flex; align-items: center; gap: 10px;
    padding: 16px 20px; background: var(--ahm-bg-sub); border-radius: 8px;
    font-size: 14px; color: var(--ahm-text); margin-bottom: 24px;
}
.ahm-apply-login-notice a { color: var(--ahm-brand); font-weight: 600; text-decoration: none; }
.ahm-apply-login-notice a:hover { color: var(--ahm-brand-hover); text-decoration: underline; }
.ahm-apply-login-notice.ahm-notice-success { background: #ECFDF5; }
.ahm-apply-login-notice.ahm-notice-error { background: #FEF2F2; }

/* Form */
.ahm-apply-form { }
.ahm-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ahm-form-group { margin-bottom: 22px; }
.ahm-form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; color: var(--ahm-heading); }
.ahm-form-group .required { color: var(--ahm-error); }
.ahm-form-group input,
.ahm-form-group select,
.ahm-form-group textarea {
    width: 100%; padding: 12px 14px; border: 1px solid var(--ahm-border); border-radius: 8px;
    font-size: 15px; font-family: 'Poppins', sans-serif; color: var(--ahm-text);
    background: var(--ahm-bg); transition: border-color 0.2s, box-shadow 0.2s; box-sizing: border-box;
}
.ahm-form-group input:focus,
.ahm-form-group select:focus,
.ahm-form-group textarea:focus { border-color: var(--ahm-brand); outline: none; box-shadow: 0 0 0 3px rgba(220,165,74,0.12); }
.ahm-form-group textarea { resize: vertical; }
.ahm-apply-submit {
    display: block; width: 100%; padding: 16px; border: none; border-radius: 8px;
    background: var(--ahm-brand); color: #fff; font-size: 16px; font-weight: 600;
    font-family: 'Poppins', sans-serif; cursor: pointer; transition: background 0.2s;
}
.ahm-apply-submit:hover { background: var(--ahm-brand-hover); }
.ahm-apply-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* ===========================
   Dashboard (existing)
   =========================== */
.ahamall-dashboard { max-width: 1200px; margin: 0 auto; padding: 30px 20px; font-family: 'Poppins', sans-serif; }
.ahamall-dashboard-nav { display: flex; gap: 0; border-bottom: 2px solid var(--ahm-border); margin-bottom: 32px; }
.ahamall-dashboard-nav a {
    padding: 14px 28px; text-decoration: none; color: var(--ahm-text);
    border-bottom: 3px solid transparent; margin-bottom: -2px; transition: all 0.2s;
    font-size: 15px; font-weight: 400;
}
.ahamall-dashboard-nav a:hover { color: var(--ahm-brand); }
.ahamall-dashboard-nav a.active { color: var(--ahm-brand); border-bottom-color: var(--ahm-brand); font-weight: 600; }
.dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.dashboard-header h2 { font-size: 30px; font-weight: 600; color: var(--ahm-heading); margin: 0; }
.dashboard-header .button {
    display: inline-block; background: var(--ahm-brand); color: #fff; padding: 10px 24px; border-radius: 6px;
    text-decoration: none; font-weight: 600; font-size: 14px; transition: background 0.2s;
}
.dashboard-header .button:hover { background: var(--ahm-brand-hover); }

/* Tables */
.ahamall-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ahamall-table th, .ahamall-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--ahm-border); color: var(--ahm-text); }
.ahamall-table th { background: var(--ahm-bg-sub); font-weight: 600; color: var(--ahm-heading); font-size: 14px; }
.ahamall-table tr:hover { background: var(--ahm-bg-sub); }
.ahamall-table img { border-radius: 4px; }

/* Settlement */
.settlement-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 24px 0 36px; }
.summary-card { background: var(--ahm-bg); padding: 28px; border-radius: 10px; text-align: center; border: 1px solid var(--ahm-border); transition: box-shadow 0.2s; }
.summary-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.summary-card h3 { margin: 0 0 10px; font-size: 14px; color: var(--ahm-text); font-weight: 400; }
.summary-card .amount { font-size: 28px; font-weight: 700; margin: 0; color: var(--ahm-heading); }
.summary-card .commission { color: var(--ahm-error); }
.summary-card .earning { color: var(--ahm-brand); }
.period-filter { display: flex; gap: 10px; margin-bottom: 24px; }
.period-filter a { padding: 8px 20px; border: 1px solid var(--ahm-border); border-radius: 6px; text-decoration: none; color: var(--ahm-text); font-size: 14px; transition: all 0.2s; }
.period-filter a:hover { border-color: var(--ahm-brand); color: var(--ahm-brand); }
.period-filter a.active { background: var(--ahm-brand); color: #fff; border-color: var(--ahm-brand); }

/* Order Status */
.order-status { padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.status-completed { background: #ECFDF5; color: var(--ahm-success); }
.status-processing { background: #EFF6FF; color: #2563EB; }
.status-pending { background: var(--ahm-bg-sub); color: var(--ahm-brand-hover); }
.status-on-hold { background: #F3F4F6; color: #6B7280; }

/* Dashboard Store Info */
.dashboard-store-info h2 { font-size: 30px; font-weight: 600; color: var(--ahm-heading); margin-bottom: 24px; }
.dashboard-store-info .form-group { margin-bottom: 20px; }
.dashboard-store-info label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 15px; color: var(--ahm-heading); }
.dashboard-store-info input, .dashboard-store-info textarea {
    width: 100%; padding: 12px 14px; border: 1px solid var(--ahm-border); border-radius: 6px;
    font-family: 'Poppins', sans-serif; font-size: 15px; color: var(--ahm-text); transition: border-color 0.2s;
}
.dashboard-store-info input:focus, .dashboard-store-info textarea:focus { border-color: var(--ahm-brand); outline: none; box-shadow: 0 0 0 3px rgba(220,165,74,0.15); }
.dashboard-store-info input:disabled { background: #F9FAFB; color: #9CA3AF; }
.dashboard-store-info .description { font-size: 13px; color: #9CA3AF; margin-top: 4px; }

/* ===========================
   Wishlist Page
   =========================== */
/* Astra override */
body.page-slug-wishlist .entry-header { display: none !important; }
body.page-slug-wishlist.ast-separate-container .ast-article-single,
body.page-slug-wishlist.ast-separate-container .ast-article-post {
    background: transparent !important; padding: 0 !important; border: none !important; box-shadow: none !important;
}
body.page-slug-wishlist .entry-content { padding: 0 !important; margin: 0 !important; }

.ahm-wishlist-page { max-width: 1200px; margin: 0 auto; padding: 40px 20px 60px; font-family: 'Noto Sans KR', 'Poppins', sans-serif; }
.ahm-wishlist-header { text-align: center; margin-bottom: 32px; }
.ahm-wishlist-title { font-size: 34px; font-weight: 700; color: var(--ahm-heading); margin: 0 0 8px; }
.ahm-wishlist-desc { font-size: 15px; color: var(--ahm-text); margin: 0; }
.ahm-wishlist-count { font-size: 14px; color: var(--ahm-text); margin-bottom: 16px; }
.ahm-wishlist-count b { color: var(--ahm-heading); }

/* Empty state */
.ahm-wishlist-empty { text-align: center; padding: 80px 20px; }
.ahm-wishlist-empty p { margin: 16px 0 20px; font-size: 15px; color: var(--ahm-text); }
.ahm-wishlist-btn {
    display: inline-block; padding: 12px 32px; background: var(--ahm-brand); color: #fff;
    border-radius: 6px; font-size: 14px; font-weight: 600; text-decoration: none; transition: background 0.2s;
}
.ahm-wishlist-btn:hover { background: var(--ahm-brand-hover); color: #fff; }

/* Grid */
.ahm-wishlist-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ahm-wishlist-card {
    background: var(--ahm-bg); border: 1px solid var(--ahm-border); border-radius: 10px;
    overflow: hidden; position: relative; transition: box-shadow 0.2s;
}
.ahm-wishlist-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.ahm-wishlist-remove {
    position: absolute; top: 8px; right: 8px; z-index: 2;
    width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--ahm-border);
    background: rgba(255,255,255,0.9); cursor: pointer; display: flex; align-items: center;
    justify-content: center; color: #999; transition: all 0.2s;
}
.ahm-wishlist-remove:hover { background: #fef2f2; color: #e53935; border-color: #e53935; }
.ahm-wishlist-img { display: block; aspect-ratio: 1; overflow: hidden; background: #f9fafb; }
.ahm-wishlist-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ahm-wishlist-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 48px; }
.ahm-wishlist-info { padding: 12px 14px 14px; }
.ahm-wishlist-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; color: var(--ahm-heading); text-decoration: none; line-height: 1.45; margin-bottom: 8px; }
.ahm-wishlist-name:hover { color: var(--ahm-brand); }
.ahm-wishlist-price-row { display: flex; align-items: baseline; gap: 5px; margin-bottom: 2px; }
.ahm-wishlist-discount { font-size: 15px; font-weight: 700; color: #e53935; }
.ahm-wishlist-price { font-size: 16px; font-weight: 700; color: var(--ahm-heading); }
.ahm-wishlist-origin { font-size: 12px; color: #999; text-decoration: line-through; margin-bottom: 4px; }
.ahm-wishlist-rating { font-size: 12px; color: var(--ahm-text); margin-bottom: 10px; }
.ahm-wishlist-stars { color: var(--ahm-brand); }
.ahm-wishlist-review-ct { color: #999; }
.ahm-wishlist-cart-btn {
    width: 100%; padding: 9px 0; border: 1.5px solid var(--ahm-brand); border-radius: 6px;
    background: transparent; color: var(--ahm-brand); font-size: 13px; font-weight: 600;
    cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.ahm-wishlist-cart-btn:hover { background: var(--ahm-brand); color: #fff; }
.ahm-wishlist-cart-btn.added { background: var(--ahm-brand); color: #fff; }

@media (max-width: 1024px) { .ahm-wishlist-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) {
    .ahm-wishlist-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .ahm-wishlist-title { font-size: 24px; }
}

/* ===========================
   PAGE 2 REDESIGN: Store Single (sv-)
   =========================== */
.sv-wrap { max-width: 1100px; margin: 0 auto; padding: 16px; font-family: 'Noto Sans KR', 'Poppins', sans-serif; font-size: 14px; color: var(--ahm-text); }

/* Header */
.sv-header { background: var(--ahm-bg); border: 0.5px solid var(--ahm-border); border-radius: 10px; margin-bottom: 14px; overflow: hidden; }
.sv-banner { width: 100%; height: 120px; background: linear-gradient(120deg, #7a5c00 0%, #b8860b 60%, #d4a017 100%); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.sv-banner-img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; }
.sv-banner-text { color: #fff9e6; font-size: 15px; letter-spacing: 4px; opacity: 0.5; font-weight: 500; position: relative; z-index: 1; }
.sv-info-row { display: flex; align-items: center; gap: 16px; padding: 14px 20px 16px; }
.sv-logo { width: 64px; height: 64px; border-radius: 50%; border: 2.5px solid #b8860b; background: #fff9e6; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.sv-logo img { width: 100%; height: 100%; object-fit: cover; }
.sv-meta { flex: 1; }
.sv-name { font-size: 20px; font-weight: 700; color: var(--ahm-heading); margin-bottom: 4px; }
.sv-stats { font-size: 12px; color: var(--ahm-text); display: flex; align-items: center; gap: 10px; }
.sv-stars { color: #b8860b; font-size: 13px; }
.sv-rating-num { font-weight: 600; color: var(--ahm-heading); }
.sv-sep { color: var(--ahm-border); }
.sv-badges { margin-top: 5px; display: flex; gap: 6px; }
.sv-seller-badge { background: #fff9e6; border: 0.5px solid #b8860b; color: #7a5c00; border-radius: 4px; padding: 2px 8px; font-size: 11px; font-weight: 600; }
.sv-actions { flex-shrink: 0; }
.sv-btn-follow { padding: 7px 20px; border: 1.5px solid var(--ahm-brand); background: transparent; color: var(--ahm-brand); border-radius: 50px; font-size: 13px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 5px; transition: all 0.2s; font-family: inherit; }
.sv-btn-follow:hover { background: var(--ahm-bg-sub); color: var(--ahm-brand); border-color: var(--ahm-brand); }
.sv-btn-follow.active { background: var(--ahm-brand); color: #fff; border-color: var(--ahm-brand); }

/* Tabs */
.sv-tabs-wrap { border-top: 0.5px solid var(--ahm-border); }
.sv-tabs { display: flex; border-bottom: 1.5px solid #b8860b; }
.sv-tab { padding: 10px 22px; font-size: 13px; font-weight: 600; cursor: pointer; border-bottom: 2.5px solid transparent; color: var(--ahm-text); text-decoration: none; transition: color 0.15s; }
.sv-tab:hover { color: #b8860b; }
.sv-tab.active { color: #b8860b; border-bottom: 2.5px solid #b8860b; }

/* Body layout */
.sv-body { display: flex; gap: 14px; align-items: flex-start; }

/* Sidebar */
.sv-sidebar { width: 168px; flex-shrink: 0; }
.sv-sidebar-card { background: var(--ahm-bg); border: 0.5px solid var(--ahm-border); border-radius: 10px; overflow: hidden; margin-bottom: 12px; }
.sv-sidebar-title { font-size: 12px; font-weight: 700; color: #7a5c00; background: #fff9e6; padding: 8px 14px; border-bottom: 0.5px solid #e8d5a0; letter-spacing: 0.5px; display: flex; align-items: center; gap: 6px; }
.sv-cat-list { list-style: none; margin: 0; padding: 0; }
.sv-cat-list li { border-bottom: 0.5px solid var(--ahm-border); }
.sv-cat-list li:last-child { border-bottom: none; }
.sv-cat-list a { display: flex; align-items: center; justify-content: space-between; padding: 9px 14px; font-size: 12.5px; color: var(--ahm-text); text-decoration: none; transition: background 0.12s; }
.sv-cat-list a:hover { background: #fff9e6; color: #b8860b; }
.sv-cat-list a.active { color: #b8860b; font-weight: 700; background: #fff9e6; }
.sv-cat-count { font-size: 11px; color: var(--ahm-text); background: #F3F4F6; border-radius: 10px; padding: 1px 7px; }

/* Best items */
.sv-best-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 0.5px solid var(--ahm-border); cursor: pointer; transition: background 0.12s; text-decoration: none; color: inherit; }
.sv-best-row:last-child { border-bottom: none; }
.sv-best-row:hover { background: #fff9e6; }
.sv-best-rank { font-size: 12px; font-weight: 700; color: #b8860b; width: 14px; flex-shrink: 0; }
.sv-best-thumb { width: 36px; height: 36px; border-radius: 4px; background: #F3F4F6; flex-shrink: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.sv-best-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sv-best-name { font-size: 11.5px; color: var(--ahm-text); line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* Satisfaction */
.sv-satisfaction-box { background: var(--ahm-bg); border: 0.5px solid var(--ahm-border); border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; }
.sv-sat-title { font-size: 12px; font-weight: 700; color: var(--ahm-text); margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; }
.sv-sat-score { font-size: 22px; font-weight: 700; color: #b8860b; }
.sv-sat-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.sv-sat-label { font-size: 11px; color: var(--ahm-text); width: 52px; flex-shrink: 0; }
.sv-sat-bar-bg { flex: 1; height: 5px; background: #F3F4F6; border-radius: 3px; overflow: hidden; }
.sv-sat-bar-fill { height: 100%; background: #b8860b; border-radius: 3px; }
.sv-sat-val { font-size: 11px; font-weight: 600; color: #b8860b; width: 24px; text-align: right; }

/* Main */
.sv-main { flex: 1; min-width: 0; }
.sv-sort-bar { display: flex; align-items: center; justify-content: space-between; background: var(--ahm-bg); border: 0.5px solid var(--ahm-border); border-radius: 8px; padding: 8px 14px; margin-bottom: 12px; }
.sv-sort-label { font-size: 12px; color: var(--ahm-text); }
.sv-sort-btns { display: flex; gap: 6px; }
.sv-sort-btn { font-size: 12px; background: transparent; border: none; color: var(--ahm-text); cursor: pointer; padding: 2px 6px; border-radius: 4px; text-decoration: none; transition: all 0.12s; }
.sv-sort-btn.active { color: #b8860b; font-weight: 700; }
.sv-sort-btn:hover { background: #fff9e6; color: #b8860b; }

/* Product grid */
.sv-product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sv-product-card { background: var(--ahm-bg); border: 0.5px solid var(--ahm-border); border-radius: 10px; overflow: hidden; transition: border-color 0.15s; position: relative; }
.sv-product-card:hover { border-color: #b8860b; }
.sv-product-img { display: block; width: 100%; aspect-ratio: 1; background: #F9FAFB; position: relative; overflow: hidden; }
.sv-product-img img.sv-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.sv-thumb-placeholder { display: flex; align-items: center; justify-content: center; font-size: 52px; width: 100%; height: 100%; }
.sv-wish-btn { position: absolute; top: 8px; right: 8px; width: 32px !important; height: 32px !important; min-width: 32px !important; max-width: 32px !important; padding: 0 !important; background: rgba(255,255,255,0.92); border-radius: 50% !important; display: flex; align-items: center; justify-content: center; border: 1px solid var(--ahm-border); cursor: pointer; font-size: 15px; z-index: 2; transition: all 0.2s; color: var(--ahm-text); line-height: 1; box-sizing: border-box !important; }
.sv-wish-btn:hover { background: var(--ahm-bg-sub); color: var(--ahm-brand); border-color: var(--ahm-brand); }
.sv-wish-btn.active { background: #FEF2F2; color: #e53935; border-color: #e53935; }
.sv-badge-new { position: absolute; top: 8px; left: 8px; background: #b8860b; color: #fff; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 3px; z-index: 1; }
.sv-badge-free { position: absolute; bottom: 8px; left: 8px; background: #1a6ef5; color: #fff; font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 3px; z-index: 1; }
.sv-product-info { padding: 10px 12px 12px; }
.sv-product-name { font-size: 12.5px; color: var(--ahm-text); line-height: 1.45; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-bottom: 7px; text-decoration: none; }
.sv-product-name:hover { color: #b8860b; }
.sv-price-row { display: flex; align-items: baseline; gap: 5px; margin-bottom: 3px; }
.sv-discount-rate { font-size: 14px; font-weight: 700; color: #e53935; }
.sv-sale-price { font-size: 15px; font-weight: 700; color: var(--ahm-heading); }
.sv-origin-price { font-size: 11px; color: var(--ahm-text); text-decoration: line-through; margin-bottom: 4px; }
.sv-review-row { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--ahm-text); }
.sv-stars-small { color: #b8860b; font-size: 11px; letter-spacing: -1px; }
.sv-no-products { text-align: center; padding: 60px 20px; color: var(--ahm-text); }
.sv-no-review { text-align: center; padding: 40px 20px; color: var(--ahm-text); }

/* Info content */
.sv-info-content { max-width: 800px; margin: 0 auto; padding: 20px 0; }
.sv-info-section { margin-bottom: 32px; }
.sv-info-section h3 { font-size: 18px; font-weight: 700; color: var(--ahm-heading); margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--ahm-border); }
.sv-info-section p { font-size: 14px; color: var(--ahm-text); line-height: 1.7; }
.sv-info-table { width: 100%; border-collapse: collapse; }
.sv-info-table th { width: 150px; padding: 10px 14px; text-align: left; font-weight: 600; color: var(--ahm-heading); background: var(--ahm-bg-sub); border-bottom: 1px solid var(--ahm-border); font-size: 13px; }
.sv-info-table td { padding: 10px 14px; color: var(--ahm-text); border-bottom: 1px solid var(--ahm-border); font-size: 13px; }
.sv-info-box { display: grid; gap: 10px; }
.sv-info-item { padding: 14px 16px; background: var(--ahm-bg-sub); border-radius: 8px; }
.sv-info-item strong { display: block; font-size: 13px; color: var(--ahm-heading); margin-bottom: 3px; }
.sv-info-item p { margin: 0; font-size: 13px; color: var(--ahm-text); line-height: 1.6; }

/* Pagination */
.sv-pagination { margin-top: 20px; text-align: center; }
.sv-pagination .page-numbers { display: inline-block; padding: 6px 12px; margin: 0 2px; border: 0.5px solid var(--ahm-border); border-radius: 4px; text-decoration: none; color: var(--ahm-text); font-size: 13px; }
.sv-pagination .page-numbers.current { background: #b8860b; color: #fff; border-color: #b8860b; }
.sv-pagination .page-numbers:hover:not(.current) { border-color: #b8860b; color: #b8860b; }

/* ===========================
   Responsive
   =========================== */
@media (max-width: 1024px) {
    .ahm-stores-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .ahm-stores-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .ahm-stores-header { padding: 32px 0 28px; }
    .ahm-stores-title { font-size: 24px; }
    .ahm-store-card { padding: 20px 14px; }
    .ahm-store-card-logo, .ahm-store-card-logo img { width: 64px; height: 64px; }

    .ahm-store-profile { flex-direction: column; align-items: center; text-align: center; }
    .ahm-store-profile-logo img, .ahm-store-profile-logo-placeholder { margin-top: -40px; }
    .ahm-store-profile-stats { justify-content: center; }
    .ahm-store-tabs { overflow-x: auto; }
    .ahm-store-tab { padding: 12px 20px; font-size: 14px; white-space: nowrap; }
    .ahm-store-info-table th { width: 110px; }

    .ahm-apply-hero { padding: 40px 20px; }
    .ahm-apply-hero-title { font-size: 24px; }
    .ahm-apply-benefits { grid-template-columns: 1fr; margin-top: -24px; }
    .ahm-benefit-card { padding: 24px 20px; }
    .ahm-form-row { grid-template-columns: 1fr; }
    .ahm-apply-form-section { margin-top: 40px; }

    .settlement-summary { grid-template-columns: 1fr; }
    .ahamall-dashboard-nav { flex-wrap: wrap; }
    .ahamall-dashboard-nav a { padding: 10px 18px; font-size: 14px; }
    .ahamall-table { font-size: 13px; }
    .ahamall-table th, .ahamall-table td { padding: 10px 12px; }
    .dashboard-header { flex-direction: column; gap: 12px; align-items: flex-start; }
    .summary-card .amount { font-size: 22px; }

    /* Store single responsive */
    .sv-body { flex-direction: column; }
    .sv-sidebar { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    .sv-product-grid { grid-template-columns: repeat(2, 1fr); }
    .sv-info-row { flex-direction: column; text-align: center; gap: 10px; }
    .sv-actions { align-items: center; }
    .sv-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .sv-tab { white-space: nowrap; padding: 10px 16px; font-size: 12px; }
    .sv-sort-bar { flex-direction: column; gap: 8px; align-items: flex-start; }
    .sv-sort-btns { flex-wrap: wrap; }
    .sv-info-table th { width: 100px; }
}
