﻿/* ============================================================
   File : /css/style.css
   Desc : Coupang Partners Affiliate Shop - User Front CSS
   Policy:
     - No inline styles
     - Mobile / Tablet / Desktop responsive
     - Flexbox / Grid
   ============================================================ */

:root {
    --color-primary: #1473e6;
    --color-primary-dark: #0d5fbe;
    --color-primary-soft: #eef6ff;

    --color-accent: #e93b2f;
    --color-accent-dark: #c92f25;

    --color-text: #222222;
    --color-text-sub: #666666;
    --color-text-light: #8a8a8a;

    --color-border: #e5e7eb;
    --color-border-dark: #d1d5db;

    --color-bg: #ffffff;
    --color-bg-soft: #f7f8fa;
    --color-bg-muted: #f1f3f5;

    --color-success: #1f9d55;
    --color-warning: #f59e0b;

    --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.06);
    --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.07);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;

    --container-width: 1280px;
}


/* ============================================================
   RESET
   ============================================================ */

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-size: 14px;
    margin: 0;
    color: var(--color-text);
    background: var(--color-bg);
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "Noto Sans KR",
        "Malgun Gothic",
        Arial,
        sans-serif;
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin-top: 0;
}


/* ============================================================
   COMMON LAYOUT
   ============================================================ */

.site-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1 1 auto;
}

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

.section {
    padding: 44px 0;
}

.section-soft {
    background: var(--color-bg-soft);
}

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

.section-title {
    margin: 0;
    font-size: calc(1.6rem - 2px);
    line-height: 1.35;
    font-weight: 700;
}

.section-subtitle {
    margin: 6px 0 0;
    color: var(--color-text-sub);
    font-size: calc(0.95rem - 2px);
}

.section-more {
    color: var(--color-primary);
    font-size: calc(0.92rem - 2px);
    font-weight: 600;
    white-space: nowrap;
}


/* ============================================================
   HEADER
   ============================================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--color-border);
    backdrop-filter: blur(8px);
}

.header-top {
    border-bottom: 1px solid var(--color-border);
    background: #ffffff;
}

.header-inner {
    min-height: 70px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.site-logo {
    flex: 0 0 auto;
}

.site-logo img {
    max-width: 180px;
    max-height: 48px;
    object-fit: contain;
}

.site-logo-text {
    color: var(--color-primary);
    font-size: calc(1.45rem - 2px);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.header-search {
    flex: 1 1 auto;
    min-width: 0;
}

.search-box {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 720px;
    height: 46px;
    overflow: hidden;
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-md);
    background: #ffffff;
}

.search-box input[type="search"],
.search-box input[type="text"] {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 16px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--color-text);
}

.search-box button {
    flex: 0 0 auto;
    min-width: 92px;
    border: 0;
    background: var(--color-primary);
    color: #ffffff;
    font-weight: 700;
}

.search-box button:hover {
    background: var(--color-primary-dark);
}

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

.header-action-link {
    padding: 8px 10px;
    color: var(--color-text-sub);
    font-size: calc(0.9rem - 2px);
}

.header-action-link:hover {
    color: var(--color-primary);
}

.header-nav {
    background: #ffffff;
}

.category-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.category-nav a {
    flex: 0 0 auto;
    padding: 14px 16px;
    color: #333333;
    font-size: calc(0.94rem - 2px);
    font-weight: 600;
    white-space: nowrap;
}

.category-nav a:hover,
.category-nav a.is-active {
    color: var(--color-primary);
    background: var(--color-primary-soft);
}


/* ============================================================
   AFFILIATE DISCLOSURE
   ============================================================ */

.affiliate-disclosure {
    width: min(100% - 32px, var(--container-width));
    margin: 16px auto;
    padding: 12px 16px;
    border: 1px solid #e7e7e7;
    border-radius: var(--radius-sm);
    background: #fafafa;
    color: #555555;
    font-size: calc(0.86rem - 2px);
    line-height: 1.55;
    text-align: center;
}

.affiliate-disclosure strong {
    color: #333333;
}


/* ============================================================
   HERO / MAIN BANNER
   ============================================================ */

.hero-section {
    padding: 24px 0 10px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}

.hero-banner {
    position: relative;
    min-height: 330px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--color-bg-muted);
    box-shadow: var(--shadow-soft);
}

.hero-banner img {
    width: 100%;
    height: 100%;
    min-height: 330px;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 32px;
    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.48),
            rgba(0, 0, 0, 0.02) 65%
        );
}

.hero-content {
    max-width: 620px;
    color: #ffffff;
}

.hero-title {
    margin-bottom: 10px;
    font-size: calc(clamp(1.7rem, 3vw, 2.6rem) - 2px);
    line-height: 1.25;
    font-weight: 800;
}

.hero-desc {
    margin-bottom: 18px;
    font-size: calc(1rem - 2px);
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: var(--radius-md);
    background: #ffffff;
    color: #111111;
    font-weight: 700;
}


/* ============================================================
   PRODUCT GRID
   ============================================================ */

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.product-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: #ffffff;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    border-color: #d4d9df;
    box-shadow: var(--shadow-card);
}

.product-thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--color-bg-soft);
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.product-card:hover .product-thumb img {
    transform: scale(1.025);
}

.product-badges {
    position: absolute;
    left: 10px;
    top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.product-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #333333;
    font-size: calc(0.74rem - 2px);
    font-weight: 700;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.08);
}

.product-badge.is-sale {
    background: var(--color-accent);
    color: #ffffff;
}

.product-badge.is-rocket {
    background: var(--color-primary);
    color: #ffffff;
}

.product-info {
    padding: 14px 14px 16px;
}

.product-name {
    display: -webkit-box;
    min-height: 45px;
    margin-bottom: 9px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: #222222;
    font-size: calc(0.95rem - 2px);
    line-height: 1.45;
    font-weight: 500;
}

.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 7px;
    flex-wrap: wrap;
}

.product-discount {
    color: var(--color-accent);
    font-size: calc(0.95rem - 2px);
    font-weight: 800;
}

.product-price {
    color: #111111;
    font-size: calc(1.2rem - 2px);
    line-height: 1.3;
    font-weight: 800;
}

.product-original-price {
    margin-top: 3px;
    color: var(--color-text-light);
    font-size: calc(0.8rem - 2px);
    text-decoration: line-through;
}

.product-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px 10px;
    margin-top: 10px;
    color: var(--color-text-sub);
    font-size: calc(0.8rem - 2px);
}

.product-rating {
    color: #d97706;
    font-weight: 700;
}

.product-review {
    color: var(--color-text-light);
}


/* ============================================================
   CATEGORY TAB
   ============================================================ */

.product-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.product-tab {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 16px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: #ffffff;
    color: var(--color-text-sub);
    font-weight: 600;
}

.product-tab:hover,
.product-tab.is-active {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #ffffff;
}


/* ============================================================
   SEARCH / FILTER
   ============================================================ */

.search-page-head {
    padding: 32px 0 16px;
}

.search-result-title {
    margin: 0;
    font-size: calc(1.45rem - 2px);
}

.search-keyword {
    color: var(--color-primary);
}

.filter-panel {
    margin-bottom: 24px;
    padding: 18px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg-soft);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.form-group {
    min-width: 0;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    color: #444444;
    font-size: calc(0.84rem - 2px);
    font-weight: 700;
}

.form-control,
.form-select {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--color-border-dark);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: var(--color-text);
    outline: none;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(20, 115, 230, 0.1);
}

.filter-actions {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-weight: 700;
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.btn-primary {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #ffffff;
}

.btn-primary:hover {
    border-color: var(--color-primary-dark);
    background: var(--color-primary-dark);
}

.btn-outline {
    border-color: var(--color-border-dark);
    background: #ffffff;
    color: #444444;
}

.btn-outline:hover {
    border-color: #aeb4bc;
    background: #f8f8f8;
}


/* ============================================================
   PRODUCT DETAIL
   ============================================================ */

.product-detail {
    padding: 36px 0 50px;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr);
    gap: 44px;
}

.product-detail-image {
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-bg-soft);
}

.product-detail-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.product-detail-info {
    min-width: 0;
}

.product-detail-category {
    margin-bottom: 8px;
    color: var(--color-text-light);
    font-size: calc(0.86rem - 2px);
}

.product-detail-title {
    margin-bottom: 18px;
    font-size: calc(clamp(1.5rem, 2.6vw, 2.1rem) - 2px);
    line-height: 1.35;
    font-weight: 750;
    letter-spacing: -0.025em;
}

.product-detail-original {
    margin-bottom: 3px;
    color: var(--color-text-light);
    font-size: calc(0.95rem - 2px);
    text-decoration: line-through;
}

.product-detail-price-row {
    display: flex;
    align-items: baseline;
    gap: 9px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.product-detail-discount {
    color: var(--color-accent);
    font-size: calc(1.35rem - 2px);
    font-weight: 800;
}

.product-detail-price {
    color: #111111;
    font-size: calc(2rem - 2px);
    line-height: 1.2;
    font-weight: 850;
}

.product-detail-meta {
    display: grid;
    gap: 10px;
    margin: 22px 0;
    padding: 18px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.product-detail-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--color-text-sub);
    font-size: calc(0.92rem - 2px);
}

.product-detail-meta-row strong {
    color: #333333;
}

.coupang-buy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 56px;
    padding: 0 20px;
    border: 0;
    border-radius: var(--radius-md);
    background: var(--color-accent);
    color: #ffffff;
    font-size: calc(1.05rem - 2px);
    font-weight: 800;
}

.coupang-buy-btn:hover {
    background: var(--color-accent-dark);
}

.product-buy-note {
    margin: 12px 0 0;
    color: var(--color-text-light);
    font-size: calc(0.82rem - 2px);
    text-align: center;
}


/* ============================================================
   PAGINATION
   ============================================================ */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 34px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 8px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: #555555;
    font-size: calc(0.9rem - 2px);
}

.pagination a:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.pagination .is-current {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #ffffff;
    font-weight: 700;
}


/* ============================================================
   EMPTY / ERROR
   ============================================================ */

.empty-state {
    padding: 70px 20px;
    border: 1px dashed var(--color-border-dark);
    border-radius: var(--radius-md);
    background: var(--color-bg-soft);
    text-align: center;
}

.empty-state-title {
    margin-bottom: 8px;
    font-size: calc(1.1rem - 2px);
    font-weight: 700;
}

.empty-state-desc {
    margin: 0;
    color: var(--color-text-sub);
    font-size: calc(0.9rem - 2px);
}


/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
    margin-top: 50px;
    border-top: 1px solid var(--color-border);
    background: #fafafa;
}

.footer-inner {
    padding: 32px 0;
}

.footer-logo {
    margin-bottom: 14px;
}

.footer-logo img {
    max-width: 160px;
    max-height: 42px;
    object-fit: contain;
}

.footer-info {
    color: var(--color-text-sub);
    font-size: calc(0.84rem - 2px);
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 14px;
}

.footer-links a {
    color: #444444;
    font-size: calc(0.86rem - 2px);
    font-weight: 600;
}

.footer-disclosure {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
    color: #555555;
    font-size: calc(0.84rem - 2px);
    line-height: 1.6;
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 1100px) {

    .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-detail-grid {
        gap: 28px;
    }
}


/* ============================================================
   MOBILE / SMALL TABLET
   ============================================================ */

@media (max-width: 820px) {

    .container {
        width: min(100% - 24px, var(--container-width));
    }

    .section {
        padding: 34px 0;
    }

    .header-inner {
        min-height: auto;
        padding: 12px 0;
        flex-wrap: wrap;
        gap: 10px;
    }

    .site-logo {
        order: 1;
    }

    .header-actions {
        order: 2;
        margin-left: auto;
    }

    .header-search {
        order: 3;
        flex-basis: 100%;
    }

    .search-box {
        max-width: none;
        height: 44px;
    }

    .hero-banner {
        min-height: 260px;
    }

    .hero-banner img {
        min-height: 260px;
    }

    .hero-overlay {
        padding: 22px;
    }

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

    .product-detail-grid {
        grid-template-columns: 1fr;
    }

    .product-detail-info {
        padding-top: 0;
    }
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 620px) {

    html {
        font-size: 15px;
    }

    body {
        font-size: 13px;
    }

    .container {
        width: min(100% - 20px, var(--container-width));
    }

    .header-action-link {
        padding: 6px;
        font-size: calc(0.82rem - 2px);
    }

    .search-box button {
        min-width: 72px;
    }

    .category-nav a {
        padding: 12px 13px;
        font-size: calc(0.88rem - 2px);
    }

    .affiliate-disclosure {
        width: min(100% - 20px, var(--container-width));
        padding: 10px 12px;
        font-size: calc(0.8rem - 2px);
        text-align: left;
    }

    .section-head {
        align-items: flex-end;
    }

    .section-title {
        font-size: calc(1.35rem - 2px);
    }

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

    .product-info {
        padding: 11px 10px 13px;
    }

    .product-name {
        min-height: 41px;
        font-size: calc(0.88rem - 2px);
    }

    .product-price {
        font-size: calc(1.05rem - 2px);
    }

    .product-discount {
        font-size: calc(0.88rem - 2px);
    }

    .product-meta {
        gap: 4px 7px;
        font-size: calc(0.74rem - 2px);
    }

    .filter-panel {
        padding: 14px;
    }

    .filter-grid {
        grid-template-columns: 1fr;
    }

    .filter-actions {
        align-items: stretch;
    }

    .filter-actions .btn {
        flex: 1 1 0;
    }

    .product-detail {
        padding-top: 20px;
    }

    .product-detail-title {
        font-size: calc(1.4rem - 2px);
    }

    .product-detail-price {
        font-size: calc(1.75rem - 2px);
    }

    .hero-section {
        padding-top: 14px;
    }

    .hero-banner {
        min-height: 220px;
    }

    .hero-banner img {
        min-height: 220px;
    }

    .hero-overlay {
        padding: 18px;
    }

    .hero-title {
        font-size: calc(1.55rem - 2px);
    }

    .hero-desc {
        font-size: calc(0.88rem - 2px);
    }
}


/* ============================================================
   VERY SMALL MOBILE
   ============================================================ */

@media (max-width: 380px) {

    .product-grid {
        gap: 8px;
    }

    .product-info {
        padding: 10px 9px 12px;
    }

    .product-name {
        font-size: calc(0.84rem - 2px);
    }

    .product-price {
        font-size: calc(1rem - 2px);
    }

    .product-badge {
        min-height: 21px;
        padding: 0 6px;
        font-size: calc(0.67rem - 2px);
    }
}


/* ============================================================
   STEP 05 ADDITIONS
   ============================================================ */

.hero-banner-default {
    background:
        linear-gradient(
            135deg,
            #1769e0 0%,
            #0f82d7 45%,
            #40a4ef 100%
        );
}

.hero-banner-default::before {
    content: "";
    position: absolute;
    right: -80px;
    top: -110px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.hero-banner-default::after {
    content: "";
    position: absolute;
    right: 110px;
    bottom: -160px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.product-thumb-empty,
.product-detail-image-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100%;
    color: var(--color-text-light);
    background: var(--color-bg-soft);
    font-size: calc(0.9rem - 2px);
}

.product-grid-empty {
    grid-column: 1 / -1;
}

.product-tab-panel {
    display: none;
}

.product-tab-panel.is-active {
    display: block;
}

.category-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.category-panel-head strong {
    font-size: calc(1.02rem - 2px);
}

.category-panel-head a {
    color: var(--color-primary);
    font-size: calc(0.86rem - 2px);
    font-weight: 700;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 20px 0 0;
    color: var(--color-text-light);
    font-size: calc(0.82rem - 2px);
}

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

.breadcrumb strong {
    color: var(--color-text-sub);
    font-weight: 600;
}

@media (max-width: 620px) {

    .breadcrumb {
        padding-top: 14px;
        overflow-x: auto;
        white-space: nowrap;
    }
}


/* ============================================================
   STEP 07 - CART / RECENT
   ============================================================ */

.header-action-link.is-current {
    color: var(--color-primary);
    font-weight: 700;
}

.product-cart-form {
    margin-bottom: 8px;
}

.product-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    padding: 0 18px;
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-md);
    background: #ffffff;
    color: var(--color-primary);
    font-size: calc(1rem - 2px);
    font-weight: 800;
}

.product-cart-btn:hover {
    background: var(--color-primary-soft);
}

.shop-alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid #f2d9a1;
    border-radius: var(--radius-sm);
    background: #fff8e8;
    color: #765615;
    font-size: calc(0.88rem - 2px);
}

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

.cart-list {
    display: grid;
    gap: 12px;
}

.cart-item {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: #ffffff;
}

.cart-item-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--color-bg-soft);
    color: var(--color-text-light);
    font-size: calc(0.76rem - 2px);
}

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

.cart-item-info {
    min-width: 0;
}

.cart-item-name {
    display: block;
    margin-bottom: 8px;
    color: var(--color-text);
    font-weight: 700;
    line-height: 1.45;
}

.cart-item-name:hover {
    color: var(--color-primary);
}

.cart-item-price {
    margin-bottom: 12px;
    font-size: calc(1.1rem - 2px);
    font-weight: 800;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.cart-qty-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-qty-form label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-text-sub);
    font-size: calc(0.84rem - 2px);
}

.cart-qty-select {
    width: 72px;
}

.cart-item-buy {
    min-width: 118px;
}

.cart-summary {
    position: sticky;
    top: 96px;
    padding: 18px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.cart-summary-title {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
    font-weight: 800;
}

.cart-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 9px;
    color: var(--color-text-sub);
    font-size: calc(0.9rem - 2px);
}

.cart-summary-row strong {
    color: var(--color-text);
}

.cart-summary-note {
    margin: 14px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-light);
    font-size: calc(0.78rem - 2px);
    line-height: 1.55;
}

@media (max-width: 900px) {

    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }
}

@media (max-width: 620px) {

    .cart-item {
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 12px;
    }

    .cart-item-image {
        width: 92px;
        height: 92px;
    }

    .cart-item-buy {
        grid-column: 1 / -1;
    }

    .cart-item-buy .btn {
        width: 100%;
    }

    .cart-item-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .cart-qty-form {
        align-items: stretch;
    }

    .cart-qty-form label {
        flex: 1 1 auto;
    }
}


/* ============================================================
   GLOBAL FONT -1PX APPLIED
   전체 사용자/관리자 폰트: 기존 대비 1px 축소
   ============================================================ */


/* ============================================================
   STEP12 USER FONT -1PX
   사용자 페이지 폰트: STEP11 사용자 CSS 대비 추가 1px 축소
   관리자 CSS에는 적용하지 않음
   ============================================================ */


/* ============================================================
   STEP 12 - USER UI REFINEMENT / QUICK CART / BROWSE
   ============================================================ */

:root {
    --color-primary: #1769e0;
    --color-primary-dark: #0d57bf;
    --color-primary-soft: #edf5ff;

    --color-accent: #ef3f34;
    --color-accent-dark: #d92f25;

    --color-text: #171a1f;
    --color-text-sub: #5f6874;
    --color-text-light: #8a94a2;

    --color-border: #e6e9ee;
    --color-border-dark: #d3d8df;

    --color-bg: #ffffff;
    --color-bg-soft: #f7f9fc;
    --color-bg-muted: #f0f3f7;

    --shadow-soft: 0 8px 28px rgba(24, 39, 75, 0.06);
    --shadow-card: 0 10px 28px rgba(25, 39, 68, 0.10);

    --radius-sm: 7px;
    --radius-md: 12px;
    --radius-lg: 18px;
}

body {
    letter-spacing: -0.015em;
}

.site-header {
    box-shadow: 0 1px 0 rgba(23, 31, 44, 0.04);
}

.header-inner {
    min-height: 66px;
}

.site-logo-text {
    letter-spacing: -0.055em;
}

.search-box {
    height: 44px;
    border-width: 1px;
    border-color: #b7cdf0;
    border-radius: 11px;
    box-shadow: 0 3px 12px rgba(23, 105, 224, 0.04);
}

.search-box:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(23, 105, 224, 0.09);
}

.search-box button {
    min-width: 82px;
}

.header-actions {
    gap: 4px;
}

.header-action-link {
    position: relative;
    border-radius: 8px;
    transition:
        background 0.15s ease,
        color 0.15s ease;
}

.header-action-link:hover {
    background: var(--color-primary-soft);
}

.header-cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 19px;
    height: 19px;
    margin-left: 3px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--color-primary);
    color: #ffffff;
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
}

.category-nav {
    gap: 4px;
}

.category-nav a {
    border-radius: 7px;
}

.affiliate-disclosure {
    margin-top: 12px;
    margin-bottom: 4px;
    border-color: #e8ebef;
    background: #fbfcfd;
    color: #697381;
}

.hero-banner {
    min-height: 300px;
    border-radius: 20px;
    box-shadow: 0 14px 40px rgba(17, 83, 167, 0.13);
}

.hero-banner-default {
    background:
        radial-gradient(
            circle at 85% 25%,
            rgba(255, 255, 255, 0.18),
            transparent 28%
        ),
        linear-gradient(
            125deg,
            #165dbd 0%,
            #1769e0 45%,
            #1593d8 100%
        );
}

.hero-overlay {
    padding: 34px 38px;
    background:
        linear-gradient(
            90deg,
            rgba(7, 38, 79, 0.35),
            rgba(7, 38, 79, 0.02) 72%
        );
}

.hero-btn {
    min-height: 42px;
    padding: 0 18px;
    box-shadow: 0 8px 18px rgba(8, 36, 74, 0.12);
}

.section {
    padding-top: 38px;
    padding-bottom: 38px;
}

.section-head {
    margin-bottom: 18px;
}

.product-grid {
    gap: 16px;
}

.product-card {
    position: relative;
    overflow: visible;
    border-color: #e7eaf0;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(28, 39, 60, 0.025);
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: #d5dce6;
    box-shadow: var(--shadow-card);
}

.product-card-media {
    position: relative;
    overflow: hidden;
    border-radius: 13px 13px 0 0;
    background: #f6f8fb;
}

.product-thumb {
    display: block;
    border-radius: 0;
}

.product-thumb::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 34%;
    pointer-events: none;
    background:
        linear-gradient(
            to top,
            rgba(20, 29, 44, 0.05),
            transparent
        );
}

.product-thumb img {
    transition:
        transform 0.25s ease,
        filter 0.25s ease;
}

.product-card:hover .product-thumb img {
    transform: scale(1.035);
}

.product-badges {
    z-index: 3;
}

.product-badge {
    border: 1px solid rgba(17, 24, 39, 0.06);
    backdrop-filter: blur(8px);
}

.product-quick-cart-form {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 5;
    margin: 0;
}

.product-quick-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 92px;
    height: 36px;
    padding: 0 11px;
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: #1c2734;
    box-shadow:
        0 5px 18px rgba(20, 31, 48, 0.18);
    font-size: 11px;
    font-weight: 800;
    transition:
        transform 0.16s ease,
        background 0.16s ease,
        color 0.16s ease;
}

.product-quick-cart:hover {
    transform: translateY(-1px);
    background: var(--color-primary);
    color: #ffffff;
}

.product-quick-cart.is-added {
    background: #1c8f55;
    color: #ffffff;
}

.product-quick-cart.is-loading {
    opacity: 0.72;
    pointer-events: none;
}

.product-quick-cart-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    font-size: 13px;
    line-height: 1;
    font-weight: 900;
}

.product-quick-cart:hover .product-quick-cart-icon,
.product-quick-cart.is-added .product-quick-cart-icon {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.product-info {
    padding: 13px 13px 15px;
}

.product-name {
    min-height: 40px;
    color: #242a31;
    font-weight: 550;
}

.product-price-row {
    margin-top: 4px;
}

.product-price {
    letter-spacing: -0.04em;
}

.product-discount {
    letter-spacing: -0.035em;
}

.product-meta {
    min-height: 17px;
    margin-top: 8px;
}

.product-rating {
    color: #e09a17;
}

.product-card:hover .product-name {
    color: #111827;
}

.product-cart-form {
    margin-top: 18px;
}

.product-cart-btn {
    min-height: 48px;
    border-width: 1px;
}

.coupang-buy-btn {
    min-height: 52px;
}

.user-toast {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 2500;
    display: flex;
    align-items: center;
    gap: 9px;
    max-width: 360px;
    padding: 12px 15px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 12px;
    background: rgba(24, 30, 39, 0.95);
    color: #ffffff;
    box-shadow: 0 14px 36px rgba(18, 28, 43, 0.24);
    font-size: 11px;
    font-weight: 650;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition:
        opacity 0.18s ease,
        transform 0.18s ease;
}

.user-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.user-toast.is-error {
    background: rgba(167, 37, 37, 0.96);
}

.browse-head {
    padding: 24px 0 14px;
}

.browse-head-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.browse-title {
    margin: 0;
    font-size: calc(1.55rem - 2px);
    line-height: 1.35;
    font-weight: 800;
}

.browse-desc {
    margin: 6px 0 0;
    color: var(--color-text-sub);
    font-size: calc(0.9rem - 2px);
}

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

.browse-sidebar {
    position: sticky;
    top: 104px;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 4px 18px rgba(25, 39, 68, 0.035);
}

.browse-sidebar-title {
    padding: 14px 15px 11px;
    border-bottom: 1px solid var(--color-border);
    font-weight: 800;
}

.browse-category-list {
    max-height: 560px;
    overflow-y: auto;
    padding: 7px;
}

.browse-category-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 37px;
    padding: 7px 9px;
    border-radius: 8px;
    color: #4e5865;
    font-size: calc(0.86rem - 2px);
    font-weight: 600;
}

.browse-category-list a:hover {
    background: #f5f8fd;
    color: var(--color-primary);
}

.browse-category-list a.is-active {
    background: var(--color-primary-soft);
    color: var(--color-primary);
    font-weight: 800;
}

.browse-category-list .category-depth-2 {
    padding-left: 19px;
}

.browse-main {
    min-width: 0;
}

.browse-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: #ffffff;
}

.browse-total {
    color: var(--color-text-sub);
    font-size: calc(0.86rem - 2px);
}

.browse-total strong {
    color: var(--color-text);
}

.browse-sort {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.browse-sort a {
    padding: 6px 9px;
    border-radius: 7px;
    color: var(--color-text-sub);
    font-size: calc(0.82rem - 2px);
    font-weight: 650;
}

.browse-sort a:hover,
.browse-sort a.is-active {
    background: var(--color-bg-soft);
    color: var(--color-primary);
}

.product-filter-panel {
    margin-bottom: 14px;
    padding: 13px 14px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: #fafbfd;
}

.product-filter-grid {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) auto;
    gap: 9px;
    align-items: end;
}

.price-range-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 7px;
    align-items: center;
}

.price-range-separator {
    color: var(--color-text-light);
}

.filter-checks {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 42px;
}

.filter-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-text-sub);
    font-size: calc(0.84rem - 2px);
    white-space: nowrap;
}

.filter-check input {
    width: 15px;
    height: 15px;
    margin: 0;
}

.search-summary {
    margin-bottom: 16px;
    padding: 13px 15px;
    border: 1px solid #dce7f8;
    border-radius: 12px;
    background: #f7faff;
    color: #48596f;
}

.search-summary strong {
    color: var(--color-primary);
}

.search-keyword-title {
    color: var(--color-primary);
}

.browse-empty-actions {
    margin-top: 16px;
}

@media (max-width: 1000px) {

    .browse-layout {
        grid-template-columns: 190px minmax(0, 1fr);
        gap: 16px;
    }

    .product-filter-grid {
        grid-template-columns: 1fr 1fr;
    }

    .product-filter-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {

    .browse-layout {
        display: block;
    }

    .browse-sidebar {
        position: static;
        margin-bottom: 14px;
    }

    .browse-category-list {
        display: flex;
        max-height: none;
        overflow-x: auto;
        padding: 8px;
    }

    .browse-category-list a {
        flex: 0 0 auto;
        min-height: 34px;
        padding: 6px 10px;
        border: 1px solid var(--color-border);
        white-space: nowrap;
    }

    .browse-category-list .category-depth-2 {
        padding-left: 10px;
    }

    .browse-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .product-filter-grid {
        grid-template-columns: 1fr;
    }

    .product-filter-actions {
        grid-column: auto;
    }
}

@media (max-width: 620px) {

    .header-inner {
        padding-top: 9px;
        padding-bottom: 9px;
    }

    .header-actions {
        gap: 2px;
    }

    .header-action-link {
        font-size: calc(0.79rem - 2px);
    }

    .hero-banner {
        min-height: 205px;
    }

    .hero-overlay {
        padding: 18px;
    }

    .product-grid {
        gap: 9px;
    }

    .product-card {
        border-radius: 11px;
    }

    .product-card-media {
        border-radius: 10px 10px 0 0;
    }

    .product-quick-cart-form {
        right: 7px;
        bottom: 7px;
    }

    .product-quick-cart {
        min-width: 34px;
        width: 34px;
        height: 34px;
        padding: 0;
    }

    .product-quick-cart-text {
        display: none;
    }

    .product-quick-cart-icon {
        width: 18px;
        height: 18px;
    }

    .product-info {
        padding: 10px 9px 12px;
    }

    .product-name {
        min-height: 38px;
    }

    .user-toast {
        right: 10px;
        bottom: 12px;
        left: 10px;
        max-width: none;
    }

    .browse-head {
        padding-top: 16px;
    }

    .browse-head-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .browse-title {
        font-size: calc(1.35rem - 2px);
    }

    .product-filter-panel {
        padding: 11px;
    }

    .price-range-row {
        grid-template-columns: 1fr 18px 1fr;
    }

    .filter-checks {
        flex-wrap: wrap;
    }
}


/* STEP12 QUICK CART SHARED BUTTON STATE */

[data-cart-submit].is-loading {
    opacity: 0.7;
    pointer-events: none;
}

.product-cart-btn.is-added {
    border-color: #1c8f55;
    background: #edf9f2;
    color: #187647;
}


/* ============================================================
   STEP 13 - MEGA CATEGORY / RANKING / POPUP / MOBILE NAV
   ============================================================ */

.header-nav > .container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.all-category-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: 7px;
    min-height: 38px;
    padding: 0 13px;
    border: 0;
    border-radius: 8px;
    background: #1769e0;
    color: #ffffff;
    font-size: calc(0.86rem - 2px);
    font-weight: 800;
    cursor: pointer;
}

.all-category-trigger:hover {
    background: #0d57bf;
}

.all-category-icon {
    font-size: 14px;
    line-height: 1;
}

.hero-kicker,
.section-eyebrow {
    display: inline-flex;
    margin-bottom: 8px;
    color: #1769e0;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.hero-kicker {
    color: rgba(255, 255, 255, 0.82);
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
}

.hero-btn-light {
    border: 1px solid rgba(255, 255, 255, 0.58);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    cursor: pointer;
}

.hero-btn-light:hover {
    background: rgba(255, 255, 255, 0.20);
}

.ranked-product-card {
    position: relative;
    min-width: 0;
}

.ranked-product-card .product-card {
    height: 100%;
}

.product-rank-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 10px;
    background: #172033;
    color: #ffffff;
    box-shadow: 0 5px 14px rgba(20, 28, 42, 0.20);
    font-size: 12px;
    font-weight: 900;
}

.ranked-product-card:nth-child(-n+3) .product-rank-badge {
    background: #ef3f34;
}


/* Category mega */

.category-mega-shell {
    position: fixed;
    inset: 0;
    z-index: 2300;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.18s ease,
        visibility 0.18s ease;
}

.category-mega-shell.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.category-mega-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(13, 20, 31, 0.48);
    backdrop-filter: blur(1px);
}

.category-mega-panel {
    position: absolute;
    top: 86px;
    left: 50%;
    width: min(1120px, calc(100vw - 32px));
    max-height: min(680px, calc(100vh - 112px));
    overflow: hidden;
    border: 1px solid #dde2ea;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(17, 27, 44, 0.28);
    transform: translateX(-50%) translateY(-8px);
    transition: transform 0.18s ease;
}

.category-mega-shell.is-open .category-mega-panel {
    transform: translateX(-50%) translateY(0);
}

.category-mega-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: 0 16px 0 18px;
    border-bottom: 1px solid #e9edf2;
}

.category-mega-head strong {
    font-size: calc(1rem - 2px);
}

.category-mega-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: #f4f6f9;
    color: #4f5966;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.category-mega-body {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    min-height: 470px;
    max-height: calc(100vh - 166px);
}

.category-mega-root {
    overflow-y: auto;
    padding: 8px;
    border-right: 1px solid #e9edf2;
    background: #f8fafc;
}

.mega-root-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 39px;
    padding: 7px 10px;
    border-radius: 8px;
    color: #3e4855;
    font-size: calc(0.86rem - 2px);
    font-weight: 650;
}

.mega-root-item:hover,
.mega-root-item.is-active {
    background: #eaf3ff;
    color: #1769e0;
}

.mega-root-arrow {
    color: #9aa4b2;
    font-size: 16px;
}

.category-mega-detail {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-content: start;
    gap: 10px;
    overflow-y: auto;
    padding: 16px;
}

.mega-category-group {
    min-width: 0;
    padding: 12px;
    border: 1px solid #e7eaf0;
    border-radius: 11px;
    background: #ffffff;
}

.mega-category-group-title {
    display: block;
    margin-bottom: 9px;
    color: #1e2938;
    font-size: calc(0.9rem - 2px);
    font-weight: 850;
}

.mega-category-group-title:hover {
    color: #1769e0;
}

.mega-category-child-list {
    display: flex;
    flex-wrap: wrap;
    gap: 3px 9px;
}

.mega-category-child-list a {
    display: inline-block;
    padding: 3px 0;
    color: #687382;
    font-size: calc(0.78rem - 2px);
    line-height: 1.5;
}

.mega-category-child-list a:hover {
    color: #1769e0;
    text-decoration: underline;
}

.mega-category-placeholder,
.mega-category-loading,
.mega-category-empty {
    grid-column: 1 / -1;
    padding: 40px 20px;
    color: #7b8796;
    text-align: center;
}

body.category-mega-open {
    overflow: hidden;
}


/* Site popup */

.site-popup {
    position: fixed;
    z-index: 2200;
    display: none;
    width: min(420px, calc(100vw - 24px));
    max-height: calc(100vh - 40px);
    overflow: hidden;
    border: 1px solid #dfe4eb;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 22px 60px rgba(19, 29, 45, 0.30);
}

.site-popup.is-visible {
    display: block;
}

.site-popup-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 46px;
    padding: 0 11px 0 14px;
    border-bottom: 1px solid #edf0f4;
}

.site-popup-head strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-popup-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    border: 0;
    border-radius: 8px;
    background: #f3f5f8;
    color: #596474;
    font-size: 21px;
    line-height: 1;
    cursor: pointer;
}

.site-popup-body {
    max-height: calc(100vh - 145px);
    overflow-y: auto;
}

.site-popup-image {
    display: block;
    width: 100%;
    height: auto;
}

.site-popup-content {
    padding: 15px;
    color: #3e4753;
    font-size: calc(0.88rem - 2px);
    line-height: 1.65;
}

.site-popup-foot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    min-height: 46px;
    padding: 7px 10px;
    border-top: 1px solid #edf0f4;
    background: #fafbfc;
}

.site-popup-today,
.site-popup-foot-close {
    min-height: 31px;
    padding: 0 10px;
    border: 1px solid #dfe4ea;
    border-radius: 7px;
    background: #ffffff;
    color: #596474;
    font-size: 10px;
    font-weight: 650;
    cursor: pointer;
}

.site-popup-today:hover,
.site-popup-foot-close:hover {
    border-color: #bfc9d5;
    color: #202833;
}


/* Mobile bottom nav */

.mobile-bottom-nav {
    display: none;
}

@media (max-width: 900px) {

    .category-mega-detail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {

    body {
        padding-bottom: 68px;
    }

    .all-category-trigger {
        display: none;
    }

    .category-mega-panel {
        top: auto;
        bottom: 0;
        left: 0;
        width: 100%;
        max-height: 86vh;
        border-radius: 18px 18px 0 0;
        transform: translateY(24px);
    }

    .category-mega-shell.is-open .category-mega-panel {
        transform: translateY(0);
    }

    .category-mega-body {
        grid-template-columns: 132px minmax(0, 1fr);
        min-height: 520px;
        max-height: calc(86vh - 52px);
    }

    .category-mega-root {
        padding: 6px;
    }

    .mega-root-item {
        min-height: 37px;
        padding: 6px 8px;
    }

    .category-mega-detail {
        display: block;
        padding: 10px;
    }

    .mega-category-group {
        margin-bottom: 8px;
        padding: 10px;
    }

    .site-popup {
        top: 50% !important;
        right: 12px !important;
        bottom: auto !important;
        left: 12px !important;
        width: auto !important;
        max-height: calc(100vh - 100px);
        transform: translateY(-50%);
    }

    .mobile-bottom-nav {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 2100;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        min-height: 62px;
        padding-bottom: env(safe-area-inset-bottom);
        border-top: 1px solid #dde2e8;
        background: rgba(255, 255, 255, 0.97);
        box-shadow: 0 -8px 24px rgba(22, 31, 45, 0.08);
        backdrop-filter: blur(12px);
    }

    .mobile-bottom-item {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 3px;
        min-width: 0;
        min-height: 60px;
        padding: 4px;
        border: 0;
        background: transparent;
        color: #606b79;
        font-family: inherit;
        font-size: 9px;
        font-weight: 700;
        cursor: pointer;
    }

    .mobile-bottom-item:hover {
        color: #1769e0;
    }

    .mobile-bottom-icon {
        font-size: 19px;
        line-height: 1;
    }

    .mobile-bottom-count {
        position: absolute;
        top: 5px;
        left: calc(50% + 8px);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 17px;
        height: 17px;
        padding: 0 4px;
        border-radius: 999px;
        background: #1769e0;
        color: #ffffff;
        font-size: 9px;
        line-height: 1;
    }
}


/* Admin popup preview helpers are in admin.css */


/* ============================================================
   STEP 14 - CATEGORY BROWSE DETAIL
   ============================================================ */

.category-browse-hero {
    padding: 24px 0 22px;
    border-bottom: 1px solid #e8ebf0;
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fbfcfe 100%
        );
}

.category-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
    color: #808a97;
    font-size: calc(0.79rem - 2px);
}

.category-breadcrumb a {
    color: #6a7481;
}

.category-breadcrumb a:hover {
    color: #1769e0;
}

.category-breadcrumb strong {
    color: #28313d;
    font-weight: 750;
}

.category-breadcrumb-sep {
    color: #b3bbc5;
}

.category-browse-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.category-all-open-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid #cfd8e5;
    border-radius: 9px;
    background: #ffffff;
    color: #445064;
    font-family: inherit;
    font-size: calc(0.83rem - 2px);
    font-weight: 750;
    cursor: pointer;
}

.category-all-open-btn:hover {
    border-color: #1769e0;
    color: #1769e0;
}

.category-child-panel {
    margin-top: 20px;
    padding: 14px;
    border: 1px solid #e3e8ef;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 5px 18px rgba(22, 35, 55, 0.035);
}

.category-child-head {
    margin-bottom: 10px;
    color: #333d49;
    font-size: calc(0.87rem - 2px);
    font-weight: 850;
}

.category-child-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.category-child-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    min-height: 64px;
    padding: 10px 11px;
    border: 1px solid #e6eaf0;
    border-radius: 9px;
    background: #fbfcfe;
    transition:
        border-color 0.15s ease,
        background 0.15s ease,
        transform 0.15s ease;
}

.category-child-card:hover {
    transform: translateY(-1px);
    border-color: #bfd4f2;
    background: #f3f8ff;
}

.category-child-card strong {
    display: block;
    overflow: hidden;
    max-width: 100%;
    color: #333d49;
    font-size: calc(0.82rem - 2px);
    line-height: 1.35;
    text-overflow: ellipsis;
}

.category-child-card span {
    color: #8a94a1;
    font-size: 10px;
}

.browse-page-meta {
    color: #919aa6;
    font-size: 10px;
}

@media (max-width: 1100px) {

    .category-child-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 850px) {

    .category-child-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {

    .category-browse-hero {
        padding: 16px 0;
    }

    .category-browse-title-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .category-child-panel {
        margin-top: 14px;
        padding: 10px;
    }

    .category-child-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .category-child-card {
        min-height: 58px;
        padding: 8px 9px;
    }
}


/* ============================================================
   PRODUCT PRICE FALLBACK
   ============================================================ */

.product-price-missing {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    color: #7b8592;
    font-size: 11px;
    font-weight: 700;
}

.detail-price-missing {
    color: #657080;
    font-size: calc(1rem - 2px);
}


/* ============================================================
   STEP 16 - PERFORMANCE / LAZY CATEGORY PRODUCTS
   ============================================================ */

.category-products-loading {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    padding: 24px;
    border: 1px dashed #d9e0e9;
    border-radius: 12px;
    background: #fafbfd;
    color: #7c8795;
    font-size: 11px;
    font-weight: 650;
}


/* ============================================================
   STEP 17 - COMMON HEADER / MEGA MENU HEIGHT / WISHLIST
   ============================================================ */

.category-mega-panel {
    display: flex;
    flex-direction: column;
    height: min(680px, calc(100vh - 112px));
    height: min(680px, calc(100dvh - 112px));
    min-height: 0;
}

.category-mega-head {
    flex: 0 0 auto;
}

.category-mega-body {
    display: grid;
    flex: 1 1 auto;
    grid-template-columns: 230px minmax(0, 1fr);
    width: 100%;
    min-height: 0;
    max-height: none;
    overflow: hidden;
}

.category-mega-root,
.category-mega-detail {
    min-height: 0;
    max-height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.category-mega-detail {
    padding-bottom: 28px;
}

@media (max-height: 650px) and (min-width: 761px) {

    .category-mega-panel {
        top: 68px;
        height: calc(100vh - 84px);
        height: calc(100dvh - 84px);
    }
}

@media (max-width: 760px) {

    .category-mega-panel {
        height: 86vh;
        height: 86dvh;
        min-height: 0;
        max-height: 86vh;
        max-height: 86dvh;
    }

    .category-mega-body {
        min-height: 0;
        max-height: none;
    }

    .category-mega-root,
    .category-mega-detail {
        height: auto;
        max-height: 100%;
    }
}


/* ============================================================
   STEP 17 / CART GRID - WISHLIST
   ============================================================ */

.wishlist-product-grid {
    align-items: stretch;
}

.wishlist-product-card {
    position: relative;
}

.wishlist-product-card .product-card-media {
    position: relative;
}

.wishlist-remove-form {
    position: absolute;
    top: 9px;
    right: 9px;
    z-index: 8;
    margin: 0;
}

.wishlist-remove-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    padding: 0;
    border: 1px solid rgba(210, 218, 228, 0.95);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    color: #556171;
    box-shadow:
        0 4px 14px rgba(22, 35, 55, 0.14);
    font-family:
        Arial,
        sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    transition:
        transform 0.15s ease,
        border-color 0.15s ease,
        background 0.15s ease,
        color 0.15s ease;
}

.wishlist-remove-btn:hover {
    transform: scale(1.06);
    border-color: #f0b5bc;
    background: #fff3f4;
    color: #d83c4d;
}

.wishlist-remove-btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.wishlist-remove-btn span {
    display: block;
    margin-top: -2px;
}

@media (max-width: 640px) {

    .wishlist-remove-form {
        top: 7px;
        right: 7px;
    }

    .wishlist-remove-btn {
        width: 29px;
        height: 29px;
        font-size: 19px;
    }
}


/* ============================================================
   STEP 17 HOTFIX - COMPACT CHILD CATEGORIES
   ============================================================ */

.category-child-panel {
    margin-top: 16px;
    padding: 10px;
    border: 1px solid #e3e8ef;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(22, 35, 55, 0.03);
}

.category-child-head {
    display: none;
}

.category-child-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
}

.category-child-card {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: row;
    gap: 4px;
    min-width: 0;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid #e5e9ef;
    border-radius: 8px;
    background: #fbfcfe;
    color: #333d49;
    transition:
        border-color 0.15s ease,
        background 0.15s ease,
        transform 0.15s ease;
}

.category-child-card:hover {
    transform: translateY(-1px);
    border-color: #b8d0f2;
    background: #f2f7ff;
    color: #1769e0;
}

.category-child-name {
    overflow: hidden;
    min-width: 0;
    color: inherit;
    font-size: calc(0.82rem - 2px);
    font-weight: 750;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-child-count {
    flex: 0 0 auto;
    color: #87919e;
    font-size: 10px;
    font-weight: 600;
}

.category-child-card:hover .category-child-count {
    color: #5e7da8;
}

@media (max-width: 1180px) {

    .category-child-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {

    .category-child-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {

    .category-child-panel {
        margin-top: 12px;
        padding: 8px;
    }

    .category-child-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 5px;
    }

    .category-child-card {
        min-height: 38px;
        padding: 7px 8px;
    }
}

@media (max-width: 520px) {

    .category-child-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* ============================================================
   STEP 23 - PUBLIC NOTICE CENTER
   ============================================================ */

.notice-section {
    padding-top: 28px;
}

.notice-head {
    align-items: flex-end;
}

.notice-total {
    flex: 0 0 auto;
    color: var(--color-text-light);
    font-size: calc(0.86rem - 2px);
}

.notice-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: #ffffff;
}

.notice-search-input {
    min-width: 0;
    flex: 1 1 auto;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--color-border-dark);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: var(--color-text);
    font: inherit;
    font-size: calc(0.92rem - 2px);
    outline: none;
}

.notice-search-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(23, 105, 224, 0.08);
}

.notice-list {
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: 0 5px 18px rgba(22, 35, 55, 0.04);
}

.notice-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    min-height: 62px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--color-border);
    transition:
        background 0.15s ease,
        color 0.15s ease;
}

.notice-row:last-child {
    border-bottom: 0;
}

.notice-row:hover {
    background: #f8fbff;
}

.notice-row-main {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.notice-row-title {
    overflow: hidden;
    min-width: 0;
    color: var(--color-text);
    font-size: calc(0.94rem - 2px);
    font-weight: 650;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notice-row:hover .notice-row-title {
    color: var(--color-primary);
}

.notice-important {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 23px;
    padding: 0 7px;
    border: 1px solid #f4c7ce;
    border-radius: 999px;
    background: #fff3f5;
    color: #c43f53;
    font-size: 10px;
    font-weight: 750;
}

.notice-row-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 13px;
    color: var(--color-text-light);
    font-size: calc(0.82rem - 2px);
    white-space: nowrap;
}

.notice-view-card {
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: 0 6px 22px rgba(22, 35, 55, 0.05);
}

.notice-view-head {
    padding: 20px 22px 17px;
    border-bottom: 1px solid var(--color-border);
    background: #fbfcfe;
}

.notice-view-title-row {
    display: flex;
    align-items: flex-start;
    gap: 9px;
}

.notice-view-title-row h1 {
    margin: 0;
    color: var(--color-text);
    font-size: calc(1.34rem - 2px);
    line-height: 1.45;
    font-weight: 750;
    word-break: keep-all;
}

.notice-view-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
    color: var(--color-text-light);
    font-size: calc(0.82rem - 2px);
}

.notice-content {
    min-height: 240px;
    padding: 26px 22px 34px;
    color: var(--color-text);
    font-size: calc(0.94rem - 2px);
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.notice-content img {
    max-width: 100%;
    height: auto;
}

.notice-content table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
}

.notice-content th,
.notice-content td {
    padding: 8px 10px;
    border: 1px solid var(--color-border);
}

.notice-content iframe,
.notice-content video {
    max-width: 100%;
}

.notice-view-actions {
    display: flex;
    justify-content: flex-end;
    padding: 14px 18px;
    border-top: 1px solid var(--color-border);
    background: #fbfcfe;
}

@media (max-width: 680px) {

    .notice-section {
        padding-top: 20px;
    }

    .notice-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .notice-search {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .notice-search-input {
        flex-basis: 100%;
        width: 100%;
    }

    .notice-search .btn {
        flex: 1 1 auto;
    }

    .notice-row {
        grid-template-columns: 1fr;
        gap: 7px;
        padding: 12px 13px;
    }

    .notice-row-meta {
        justify-content: flex-start;
        padding-left: 0;
    }

    .notice-row-title {
        white-space: normal;
    }

    .notice-view-head {
        padding: 17px 16px 14px;
    }

    .notice-view-title-row {
        flex-wrap: wrap;
    }

    .notice-view-title-row h1 {
        width: 100%;
    }

    .notice-content {
        min-height: 180px;
        padding: 20px 16px 28px;
    }

    .notice-view-actions {
        padding: 12px 14px;
    }

    .notice-view-actions .btn {
        width: 100%;
    }
}


/* ============================================================
   TOP 10 RANK / PRODUCT BADGE OVERLAP FIX
   ============================================================ */

/*
   순위 배지는 좌측 상단에 그대로 유지하고,
   TOP 10 카드 안의 할인/로켓 상품배지만 오른쪽으로 이동합니다.
   일반 상품카드의 product-badges 위치는 변경하지 않습니다.
*/
.ranked-product-card .product-badges {
    top: 10px;
    left: 48px;
    max-width: calc(100% - 58px);
}

.ranked-product-card .product-rank-badge {
    z-index: 9;
}

@media (max-width: 640px) {

    .ranked-product-card .product-badges {
        left: 45px;
        max-width: calc(100% - 54px);
    }
}


/* ============================================================
   STEP 26 - PRODUCT FILTER POLISH
   ============================================================ */

.filter-checks {
    flex-wrap: wrap;
}

.filter-check {
    min-height: 30px;
    padding: 4px 8px;
    border: 1px solid transparent;
    border-radius: 999px;
    transition:
        border-color 0.15s ease,
        background 0.15s ease,
        color 0.15s ease;
}

.filter-check:has(input:checked) {
    border-color: #bad5fb;
    background: #eef6ff;
    color: var(--color-primary);
}

@supports not selector(:has(*)) {

    .filter-check {
        background: transparent;
    }
}

@media (max-width: 620px) {

    .filter-checks {
        gap: 7px;
    }

    .filter-check {
        flex: 0 0 auto;
    }
}


/* ============================================================
   STEP 27 - PRODUCT DETAIL DISCOVERY
   ============================================================ */

.product-cart-btn.is-saved {
    border-color: #b8d3f7;
    background: #eef6ff;
    color: var(--color-primary);
}

.product-cart-btn.is-saved:hover {
    background: #e4f0ff;
}

.product-detail .breadcrumb {
    scrollbar-width: thin;
}

@media (max-width: 620px) {

    .product-detail .breadcrumb {
        padding-bottom: 2px;
    }
}


/* ============================================================
   STEP 29 - PRODUCT CARD SHIPPING BADGES
   ============================================================ */

.product-badges {
    max-width: calc(100% - 20px);
}

.product-badge.is-free-shipping {
    border-color: rgba(21, 128, 61, 0.14);
    background: rgba(240, 253, 244, 0.96);
    color: #15803d;
    white-space: nowrap;
}

.product-badge.is-rocket {
    white-space: nowrap;
}

/*
   TOP 10은 좌측에 순위 배지가 있으므로
   배송/할인 배지 영역은 그 오른쪽 공간만 사용합니다.
*/
.ranked-product-card .product-badges {
    max-width: calc(100% - 58px);
}

@media (max-width: 640px) {

    .product-badges {
        gap: 4px;
    }

    .product-badge {
        min-height: 22px;
        padding: 0 7px;
    }

    .ranked-product-card .product-badges {
        max-width: calc(100% - 54px);
    }
}


/* ============================================================
   STEP 30 - PRICE CHANGE NOTICE
   ============================================================ */
.product-price-drop-notice {
    display:flex; flex-wrap:wrap; align-items:center; gap:7px 10px;
    margin-top:10px; padding:10px 12px;
    border:1px solid #f5c2c7; border-radius:8px;
    background:#fff5f6; color:#b42335; line-height:1.45;
}
.product-price-drop-notice strong { font-weight:750; }
.product-price-drop-notice span { color:#7f3540; font-size:calc(0.86rem - 2px); }


/* ============================================================
   STEP 31 - PUBLIC PRICE DROP
   ============================================================ */

.price-drop-main-section {
    border-top: 1px solid #f0f2f5;
}

.price-drop-grid {
    align-items: stretch;
}

.price-drop-product-item {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.price-drop-product-item > .product-card {
    flex: 1 1 auto;
}

.price-drop-card-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 7px;
    margin-top: 7px;
    padding: 8px 9px;
    border: 1px solid #f1c1c7;
    border-radius: 8px;
    background: #fff5f6;
}

.price-drop-card-amount {
    color: #c13245;
    font-size: calc(0.88rem - 1px);
    font-weight: 750;
}

.price-drop-card-rate {
    color: #c13245;
    font-size: calc(0.82rem - 1px);
    font-weight: 650;
}

.price-drop-lowest {
    display: inline-flex;
    align-items: center;
    min-height: 21px;
    padding: 0 7px;
    border-radius: 999px;
    background: #ffe8eb;
    color: #9f1f31;
    font-size: calc(0.78rem - 1px);
    font-weight: 700;
}

.price-drop-hero p {
    max-width: 720px;
}

.price-drop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.price-drop-count {
    color: var(--color-text-soft);
    font-size: calc(0.92rem - 1px);
}

.price-drop-count strong {
    color: var(--color-text);
}

.price-drop-sort {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.price-drop-sort a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: #ffffff;
    color: var(--color-text-soft);
    font-size: calc(0.86rem - 1px);
    text-decoration: none;
}

.price-drop-sort a:hover,
.price-drop-sort a.is-active {
    border-color: #efb6be;
    background: #fff3f5;
    color: #b42335;
}

.price-drop-guide {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    margin-bottom: 18px;
    padding: 10px 12px;
    border: 1px solid #e7eaf0;
    border-radius: 8px;
    background: #f8fafc;
    color: var(--color-text-soft);
    font-size: calc(0.86rem - 1px);
    line-height: 1.5;
}

.price-drop-guide strong {
    color: var(--color-text);
}

@media (max-width: 720px) {

    .price-drop-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .price-drop-sort {
        width: 100%;
    }
}

@media (max-width: 520px) {

    .price-drop-sort a {
        flex: 1 1 calc(50% - 4px);
        justify-content: center;
    }
}


/* ============================================================
   HEADER CATEGORY MENU - DESKTOP WRAP / HIDDEN MOBILE SCROLLBAR
   ============================================================ */

.header-nav > .container {
    align-items: flex-start;
    padding-top: 7px;
    padding-bottom: 7px;
}

.category-nav {
    flex: 1 1 auto;
    min-width: 0;
    gap: 4px;
}

/*
   PC / 넓은 화면:
   카테고리를 2줄까지 자연스럽게 배치하고
   가로 스크롤을 사용하지 않습니다.
*/
@media (min-width: 761px) {

    .category-nav {
        flex-wrap: wrap;
        overflow: visible;
        scrollbar-width: none;
    }

    .category-nav a {
        padding: 10px 13px;
    }
}


/*
   모바일 / 좁은 화면:
   한 줄 스와이프는 유지하되 스크롤바 자체는 감춥니다.
*/
@media (max-width: 760px) {

    .header-nav > .container {
        padding-top: 0;
        padding-bottom: 0;
    }

    .category-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .category-nav::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

    .category-nav a {
        flex: 0 0 auto;
    }
}


/* ============================================================
   STEP 33 - DEALS / SPECIAL PRICE HUB
   ============================================================ */

.deals-main-section {
    border-top: 1px solid #f0f2f5;
}

.deal-main-links {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: -3px 0 16px;
}

.deal-main-links a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid #e5e9ef;
    border-radius: 999px;
    background: #ffffff;
    color: #4d5968;
    font-size: calc(0.84rem - 1px);
    font-weight: 650;
    text-decoration: none;
}

.deal-main-links a:hover {
    border-color: #efb9c0;
    background: #fff5f6;
    color: #b42335;
}

.deals-product-grid {
    align-items: stretch;
}

.deal-product-item {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.deal-product-item > .product-card {
    flex: 1 1 auto;
}

.deal-card-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    margin-top: 7px;
    min-height: 27px;
}

.deal-chip {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: calc(0.78rem - 1px);
    font-weight: 700;
    line-height: 1;
}

.deal-chip.is-goldbox {
    border-color: #f1d28d;
    background: #fff6dc;
    color: #936000;
}

.deal-chip.is-discount {
    border-color: #f0bdc4;
    background: #fff2f4;
    color: #b42335;
}

.deal-chip.is-drop {
    border-color: #efc5ca;
    background: #fff6f7;
    color: #c13245;
}

.deal-chip.is-lowest {
    border-color: #d8c2f6;
    background: #f7f1ff;
    color: #6e3ead;
}

.deals-hero p {
    max-width: 760px;
}

.deals-hero-link {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    margin-top: 12px;
    padding: 0 13px;
    border: 1px solid #efb7bf;
    border-radius: 8px;
    background: #fff5f6;
    color: #b42335;
    font-size: calc(0.88rem - 1px);
    font-weight: 700;
    text-decoration: none;
}

.deal-summary-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.deal-summary-card {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 12px 11px;
    border: 1px solid #e6e9ee;
    border-radius: 10px;
    background: #ffffff;
    color: #5f6874;
    text-decoration: none;
    transition:
        border-color 0.15s ease,
        background 0.15s ease,
        transform 0.15s ease;
}

.deal-summary-card:hover,
.deal-summary-card.is-active {
    border-color: #efb8c0;
    background: #fff6f7;
    transform: translateY(-1px);
}

.deal-summary-card span {
    overflow: hidden;
    font-size: calc(0.82rem - 1px);
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.deal-summary-card strong {
    color: #171a1f;
    font-size: calc(1.02rem - 1px);
}

.deal-guide {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}

.deal-guide > div {
    padding: 10px 11px;
    border: 1px solid #e8ebf0;
    border-radius: 9px;
    background: #f9fafc;
}

.deal-guide strong,
.deal-guide span {
    display: block;
}

.deal-guide strong {
    margin-bottom: 3px;
    color: #28313d;
    font-size: calc(0.84rem - 1px);
}

.deal-guide span {
    color: #76808e;
    font-size: calc(0.78rem - 1px);
    line-height: 1.45;
}

.deals-filter-panel {
    margin-bottom: 16px;
    padding: 14px;
    border: 1px solid #e3e7ed;
    border-radius: 11px;
    background: #ffffff;
    box-shadow: 0 5px 18px rgba(24, 39, 75, 0.035);
}

.deals-filter-grid {
    display: grid;
    grid-template-columns:
        minmax(160px, 1fr)
        minmax(150px, 0.85fr)
        minmax(170px, 0.95fr)
        minmax(210px, 1.2fr);
    gap: 10px;
    align-items: end;
}

.deals-filter-field,
.deals-filter-options {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.deals-filter-field > span,
.deals-filter-options > span {
    color: #667180;
    font-size: calc(0.78rem - 1px);
    font-weight: 650;
}

.deals-filter-field select {
    width: 100%;
    min-height: 39px;
    padding: 0 10px;
    border: 1px solid #dce1e8;
    border-radius: 8px;
    background: #ffffff;
    color: #27303b;
    font: inherit;
}

.deals-filter-options {
    grid-template-columns: auto 1fr 1fr;
    align-items: center;
    min-height: 39px;
    padding: 0 10px;
    border: 1px solid #dce1e8;
    border-radius: 8px;
}

.deals-filter-options > span {
    margin-right: 3px;
}

.deals-filter-options label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #4f5966;
    font-size: calc(0.84rem - 1px);
    white-space: nowrap;
}

.deals-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
}

.deals-result-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 12px;
    color: #727c89;
    font-size: calc(0.88rem - 1px);
}

.deals-result-head strong {
    color: #222a34;
}

.deal-disclaimer {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin-top: 18px;
    padding: 11px 12px;
    border: 1px solid #e7eaf0;
    border-radius: 8px;
    background: #f8fafc;
    color: #78828f;
    font-size: calc(0.78rem - 1px);
    line-height: 1.5;
}

.deal-disclaimer strong {
    color: #3e4855;
}

@media (max-width: 1100px) {

    .deal-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .deal-guide {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .deals-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {

    .deal-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .deal-guide {
        grid-template-columns: 1fr;
    }

    .deals-filter-grid {
        grid-template-columns: 1fr;
    }

    .deals-filter-options {
        grid-template-columns: auto 1fr 1fr;
    }

    .deals-filter-actions .btn {
        flex: 1 1 0;
    }

    .deals-result-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}


/* ============================================================
   VERIFIED PRICE EMPHASIS - 2026-09-29
   실제 정상가 / 이전 관측가만 할인처럼 강조
   ============================================================ */

.product-original-price,
.product-observed-price {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 4px;
    color: var(--color-text-light);
    font-size: calc(0.8rem - 2px);
    text-decoration: none;
}

.product-price-basis {
    display: inline-flex;
    align-items: center;
    min-height: 19px;
    padding: 2px 6px;
    border-radius: 5px;
    background: #f2f4f7;
    color: #667085;
    font-size: 10px;
    font-weight: 700;
}

.product-price-strike {
    color: #8b95a5;
    text-decoration: line-through;
}

.product-discount.is-observed-drop,
.product-detail-discount.is-observed-drop {
    color: #dc2626;
}

.product-detail-price-basis-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 6px;
    color: var(--color-text-light);
    font-size: calc(0.9rem - 2px);
}

.product-detail-price-basis-label {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 3px 7px;
    border-radius: 6px;
    background: #f2f4f7;
    color: #667085;
    font-size: 11px;
    font-weight: 750;
}

.product-detail-price-basis-value {
    color: #8b95a5;
    text-decoration: line-through;
}

.product-price-basis-note {
    margin-top: -4px;
    margin-bottom: 14px;
    color: #7c8798;
    font-size: calc(0.78rem - 2px);
    line-height: 1.55;
}
