/* ============================================
   푸드 버스 소비자 마켓 — Design System
   배민/쿠팡 느낌의 쇼핑 경험
   ============================================ */

:root {
    --green-50: #E8F5E9;
    --green-100: #C8E6C9;
    --green-200: #A5D6A7;
    --green-300: #81C784;
    --green-400: #66BB6A;
    --green-500: #4CAF50;
    --green-600: #43A047;
    --green-700: #388E3C;
    --green-800: #2E7D32;
    --green-900: #1B5E20;
    --yellow-100: #FFF9C4;
    --yellow-300: #FFF176;
    --yellow-500: #FBC02D;
    --yellow-600: #F9A825;
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #EEEEEE;
    --gray-300: #E0E0E0;
    --gray-400: #BDBDBD;
    --gray-500: #9E9E9E;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;

    --primary: #2E7D32;
    --primary-light: #E8F5E9;
    --primary-dark: #1B5E20;
    --accent: #FBC02D;
    --accent-light: #FFF9C4;
    --bg: #F5F7F5;
    --surface: #FFFFFF;
    --text: #212121;
    --text-sub: #757575;
    --text-muted: #BDBDBD;
    --danger: #E53935;
    --info: #1E88E5;
    --success: #43A047;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
    --tr: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --header-h: 56px;
    --nav-h: 64px;
    --max-w: 100%;
    --font: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased
}

a {
    color: inherit;
    text-decoration: none
}

img {
    max-width: 100%;
    display: block
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
    background: none
}

/* --- Loading --- */
#loading-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: linear-gradient(135deg, var(--green-800), var(--green-900));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .5s, visibility .5s
}

#loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none
}

.loading-content {
    text-align: center;
    color: #fff
}

.loading-emoji {
    font-size: 64px;
    margin-bottom: 16px;
    animation: bounce 1s ease-in-out infinite
}

.loading-title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px
}

.loading-sub {
    font-size: 14px;
    opacity: .6;
    margin-top: 4px
}

/* --- Header --- */
#app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-h);
    background: var(--surface);
    border-bottom: 1px solid var(--gray-200)
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.header-left {
    display: flex;
    align-items: center;
    gap: 6px
}

.header-logo {
    font-size: 24px
}

.header-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px
}

.header-icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--tr)
}

.header-icon-btn:active {
    transform: scale(.9)
}

.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--danger);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1
}

/* --- Page Content --- */
#page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: calc(var(--header-h) + 20px) 20px calc(var(--nav-h) + 16px);
    min-height: 100vh;
    animation: fadeIn .3s ease
}

/* --- Bottom Nav --- */
#bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-h);
    background: var(--surface);
    border-top: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding-bottom: env(safe-area-inset-bottom, 0)
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 16px;
    color: var(--gray-400);
    font-size: 11px;
    font-weight: 600;
    transition: var(--tr);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent
}

.nav-item svg {
    width: 22px;
    height: 22px;
    transition: var(--tr)
}

.nav-item.active {
    color: var(--primary)
}

.nav-item:active {
    transform: scale(.92)
}

/* --- Hero Banner --- */
.hero-banner {
    background: linear-gradient(135deg, var(--green-700), var(--green-900));
    color: #fff;
    border-radius: var(--radius-xl);
    padding: 32px 24px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06)
}

.hero-banner::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 30px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .04)
}

.hero-title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
    position: relative;
    z-index: 1
}

.hero-sub {
    font-size: 14px;
    opacity: .7;
    margin-top: 6px;
    position: relative;
    z-index: 1
}

/* --- Search Bar --- */
.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--surface);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
    border: 1.5px solid var(--gray-200);
    margin-bottom: 20px;
    transition: var(--tr)
}

.search-bar:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, .1)
}

.search-bar input {
    flex: 1;
    font-size: 15px;
    color: var(--text)
}

.search-bar input::placeholder {
    color: var(--text-muted)
}

.search-icon {
    font-size: 18px;
    color: var(--text-muted);
    flex-shrink: 0
}

/* --- Category Grid --- */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px
}

.cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 4px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--tr);
    border: 1.5px solid transparent
}

.cat-item:active {
    transform: scale(.95);
    border-color: var(--green-200)
}

.cat-item.active {
    border-color: var(--primary);
    background: var(--primary-light)
}

.cat-emoji {
    font-size: 28px
}

.cat-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-sub)
}

/* --- Section --- */
.section {
    margin-bottom: 24px
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px
}

.section-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text)
}

.section-more {
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer
}

/* --- Product Grid --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px
}

.p-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--tr);
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, .04)
}

.p-card:active {
    transform: scale(.97)
}

.p-card-img {
    width: 100%;
    aspect-ratio: 1;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    overflow: hidden
}

.p-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.p-card-body {
    padding: 12px
}

.p-card-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.p-card-farm {
    font-size: 12px;
    color: var(--text-sub);
    margin-bottom: 8px
}

.p-card-price {
    font-size: 17px;
    font-weight: 800;
    color: var(--primary)
}

.p-card-unit {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 400
}

.p-card-tags {
    display: flex;
    gap: 4px;
    margin-top: 6px
}

.p-tag {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    background: var(--green-50);
    color: var(--green-800);
    font-weight: 600
}

.p-tag.new {
    background: var(--accent-light);
    color: var(--yellow-600)
}

/* --- Product List (Horizontal Scroll) --- */
.product-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch
}

.product-scroll::-webkit-scrollbar {
    display: none
}

.product-scroll .p-card {
    flex: 0 0 160px;
    scroll-snap-align: start
}

/* --- Product Detail --- */
.pd-img {
    width: 100%;
    aspect-ratio: 1;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 16px
}

.pd-img img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.pd-name {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 4px
}

.pd-farm {
    font-size: 14px;
    color: var(--text-sub);
    margin-bottom: 12px
}

.pd-price {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 16px
}

.pd-desc {
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.8;
    margin-bottom: 24px
}

.pd-actions {
    display: flex;
    gap: 12px;
    position: sticky;
    bottom: calc(var(--nav-h)+8px);
    background: var(--bg);
    padding: 12px 0
}

.pd-actions .btn {
    flex: 1
}

/* --- Cart --- */
.cart-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, .04)
}

.cart-img {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background: var(--gray-100);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    overflow: hidden
}

.cart-img img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.cart-info {
    flex: 1;
    min-width: 0
}

.cart-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px
}

.cart-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary)
}

.cart-qty {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px
}

.qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--tr);
    color: var(--text)
}

.qty-btn:active {
    background: var(--gray-200);
    transform: scale(.9)
}

.qty-num {
    font-size: 16px;
    font-weight: 700;
    min-width: 24px;
    text-align: center
}

.cart-remove {
    font-size: 18px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px
}

.cart-summary {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    bottom: calc(var(--nav-h)+8px)
}

.cart-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-sub)
}

.cart-total {
    display: flex;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1.5px solid var(--gray-200);
    font-size: 18px;
    font-weight: 800
}

.cart-total .total-price {
    color: var(--primary)
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: var(--tr);
    min-height: 48px;
    width: 100%;
    -webkit-tap-highlight-color: transparent
}

.btn:active {
    transform: scale(.97)
}

.btn-primary {
    background: linear-gradient(135deg, var(--green-700), var(--green-800));
    color: #fff;
    box-shadow: 0 4px 12px rgba(46, 125, 50, .3)
}

.btn-accent {
    background: linear-gradient(135deg, #FFEE58, var(--accent));
    color: var(--gray-900);
    box-shadow: 0 4px 12px rgba(251, 192, 45, .3)
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--green-200)
}

.btn-sm {
    min-height: 36px;
    padding: 8px 16px;
    font-size: 13px;
    width: auto
}

.btn-ghost {
    background: transparent;
    color: var(--text-sub);
    font-weight: 500
}

.btn:disabled {
    opacity: .5;
    pointer-events: none
}

/* --- Form --- */
.form-group {
    margin-bottom: 16px
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 16px;
    color: var(--text);
    transition: var(--tr)
}

.form-input:focus {
    border-color: var(--primary);
    background: #fff
}

.form-input::placeholder {
    color: var(--text-muted)
}

.phone-input-group {
    display: flex;
    gap: 8px;
    align-items: center
}

.phone-prefix {
    padding: 14px 12px;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    font-weight: 600;
    color: var(--text-sub);
    white-space: nowrap;
    border: 2px solid var(--gray-200)
}

/* --- Login --- */
.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: calc(-1*(var(--header-h)+8px)) -16px calc(-1*(var(--nav-h)+16px))
}

.login-hero {
    flex: 0 0 auto;
    padding: 60px 24px 40px;
    background: linear-gradient(135deg, var(--green-800) 0%, var(--green-900) 40%, #0D3B13 100%);
    color: #fff;
    text-align: center;
    border-radius: 0 0 32px 32px;
    position: relative;
    overflow: hidden
}

.login-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .08) 0%, transparent 50%)
}

.login-bus {
    font-size: 72px;
    margin-bottom: 12px;
    position: relative
}

.login-app-name {
    font-size: 36px;
    font-weight: 900;
    letter-spacing: -1px;
    position: relative
}

.login-app-desc {
    font-size: 14px;
    opacity: .7;
    margin-top: 8px;
    position: relative
}

.login-form-area {
    flex: 1;
    padding: 32px 24px;
    display: flex;
    flex-direction: column
}

.login-form-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px
}

.login-divider {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    margin: 24px 0;
    position: relative
}

.login-divider::before,
.login-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 20px);
    height: 1px;
    background: var(--gray-200)
}

.login-divider::before {
    left: 0
}

.login-divider::after {
    right: 0
}

.role-links {
    display: flex;
    flex-direction: column;
    gap: 10px
}

.role-link-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--gray-200);
    background: var(--surface);
    transition: var(--tr);
    color: inherit
}

.role-link-card:active {
    transform: scale(.98)
}

.role-link-icon {
    font-size: 32px;
    flex-shrink: 0
}

.role-link-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px
}

.role-link-title {
    font-size: 15px;
    font-weight: 600
}

.role-link-desc {
    font-size: 12px;
    color: var(--text-sub)
}

.role-link-arrow {
    font-size: 22px;
    color: var(--text-muted);
    font-weight: 300
}

/* --- OTP --- */
.otp-container {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 24px 0
}

.otp-input {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--gray-50);
    transition: var(--tr)
}

.otp-input:focus {
    border-color: var(--primary);
    background: #fff
}

/* --- Empty --- */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted)
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: .5
}

.empty-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-sub);
    margin-bottom: 8px
}

.empty-desc {
    font-size: 14px;
    line-height: 1.6
}

/* --- Badge --- */
.badge {
    display: inline-flex;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600
}

/* --- Toast --- */
#toast-container {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    pointer-events: none;
    max-width: var(--max-w);
    width: calc(100% - 32px)
}

.toast {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    background: var(--gray-900);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: toastIn .3s ease;
    pointer-events: auto;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px
}

.toast-success {
    background: var(--green-800)
}

.toast-error {
    background: var(--danger)
}

.toast-out {
    animation: toastOut .3s ease forwards
}

/* --- Modal --- */
#modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, .5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: fadeIn .2s ease
}

#modal-content {
    width: 100%;
    max-width: var(--max-w);
    max-height: 90vh;
    overflow-y: auto;
    background: var(--surface);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 24px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0));
    animation: slideUp .3s ease
}

.modal-handle {
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: var(--gray-300);
    margin: 0 auto 16px
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px
}

/* --- List --- */
.list-gap {
    display: flex;
    flex-direction: column;
    gap: 12px
}

/* --- Utilities --- */
.hidden {
    display: none !important
}

.mt-8 {
    margin-top: 8px
}

.mt-16 {
    margin-top: 16px
}

.mt-24 {
    margin-top: 24px
}

.mb-8 {
    margin-bottom: 8px
}

.mb-16 {
    margin-bottom: 16px
}

.text-center {
    text-align: center
}

.text-sm {
    font-size: 13px
}

.text-muted {
    color: var(--text-muted)
}

.text-danger {
    color: var(--danger)
}

.flex {
    display: flex
}

.gap-8 {
    gap: 8px
}

.gap-12 {
    gap: 12px
}

/* --- Animations --- */
@keyframes bounce {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-8px)
    }
}

@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%)
    }

    to {
        transform: translateY(0)
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(16px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(-16px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateY(0)
    }

    to {
        opacity: 0;
        transform: translateY(-16px)
    }
}

::-webkit-scrollbar {
    width: 4px
}

::-webkit-scrollbar-track {
    background: transparent
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 2px
}

::selection {
    background: var(--green-200);
    color: var(--green-900)
}

@media print {

    #bottom-nav,
    #app-header {
        display: none
    }
}

/* --- Responsive: Tablet --- */
@media (min-width: 600px) {
    .cat-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px
    }

    .product-scroll .p-card {
        flex: 0 0 200px
    }

    .hero-banner {
        padding: 32px 28px
    }

    .hero-title {
        font-size: 26px
    }

    .search-bar {
        padding: 14px 20px
    }

    #page-content {
        padding-left: 24px;
        padding-right: 24px
    }
}

/* --- Responsive: Desktop --- */
@media (min-width: 960px) {
    .cat-grid {
        grid-template-columns: repeat(8, 1fr);
        gap: 16px
    }

    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px
    }

    .product-scroll .p-card {
        flex: 0 0 240px
    }

    .hero-banner {
        padding: 40px 36px;
        border-radius: 28px
    }

    .hero-title {
        font-size: 30px
    }

    #page-content {
        padding-left: 32px;
        padding-right: 32px
    }

    .nav-item {
        padding: 8px 24px;
        font-size: 13px
    }

    .nav-item svg {
        width: 24px;
        height: 24px
    }

    .p-card-body {
        padding: 16px
    }

    .p-card-name {
        font-size: 16px
    }

    .p-card-price {
        font-size: 19px
    }

    /* Modal wider on desktop */
    #modal-content {
        max-width: 560px;
        border-radius: 24px;
        margin-bottom: 24px
    }

    #modal-overlay {
        align-items: center
    }
}

/* --- Responsive: Wide Desktop --- */
@media (min-width: 1280px) {
    .product-grid {
        grid-template-columns: repeat(5, 1fr)
    }
}