/* OW Mall - Main Stylesheet */

/* CSS Variables for consistent theming */
:root {
    --primary-color: #7B5A1C;
    --primary-hover: #7B5A1C;
    --primary-background: #7B5A1C33;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --border-color: #e2e8f0;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-primary);
    /* background-color: var(--light-color); */
    /* Sticky footer: 콘텐츠가 짧아도 푸터를 항상 viewport 최하단에 고정 */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 1320px;
}

/* main 이 남는 세로 공간을 채워 푸터를 아래로 밀어냄 */
main {
    flex: 1 0 auto;
}
.site-footer {
    flex-shrink: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* Layout */
.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header & Navigation */
.header {
    background: white;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.navbar {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    padding: 1rem 0;
    flex-direction: row !important;
    flex-wrap: nowrap;
    gap: 2rem;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    flex-shrink: 0;
}

.navbar-nav {
    display: flex !important;
    list-style: none;
    gap: 2rem;
    align-items: center;
    flex-direction: row !important;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: flex-end;
}

.navbar-nav li {
    display: inline-block !important;
    margin: 0;
    padding: 0;
}

.navbar-nav a {
    color: #222;
    text-align: center;
    leading-trim: both;
    text-edge: cap;
    font-family: Pretendard;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-decoration: none;
}

.navbar-nav a:hover {
    font-weight: 600;
}

/* 현재 페이지에 해당하는 상단 메뉴 강조 (header.html 에서 request 경로로 부여) */
.navbar-nav a.nav-active {
    font-weight: 700;
}

/* Header Dividers
   주의: 100vw 금지 — 세로 스크롤바 폭이 포함되어 가로 스크롤바가 연쇄 발생.
   부모(.header 등)가 풀폭이므로 100% 로 충분. */
.header-divider {
    width: 100%;
    height: 1px;
    background-color: var(--border-color);
    margin: 0;
}

/* Secondary Navigation */
.secondary-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.secondary-nav {
    display: flex;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
    justify-content: flex-start;
}

.secondary-nav li {
    display: inline-flex;
    height: 67px;
    padding: 14px 20px;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.secondary-nav a {
    color: #222;
    text-align: center;
    leading-trim: both;
    text-edge: cap;
    font-family: Pretendard;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-decoration: none;
}

.secondary-nav a:hover {
    font-weight: 600;
}

.lifestyle-button:hover {
    background: #E5DED2 !important;
    font-weight: 700 !important;
    color: #222222 !important;
}

/* Lifestyle Third Menu */
.lifestyle-dropdown-container {
    background: #E5DED2;
    position: fixed;
    top: 140px;
    left: 50%;
    width: 1320px;
    margin-left: -660px;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.lifestyle-dropdown-navbar {
    display: flex;
    align-items: center;
    padding: 1rem 0;
}

.lifestyle-dropdown-nav {
    display: flex;
    list-style: none;
    gap: 3rem;
    align-items: center;
    margin: 0;
    padding: 0;
    justify-content: flex-start;
}

.lifestyle-dropdown-nav li {
    display: inline-block;
    margin: 0;
    padding: 0;
}

.lifestyle-dropdown-nav a {
    font-family: Pretendard;
    font-weight: 400;
    font-style: Regular;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    color: #000000 !important;
    padding: 0.5rem 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.lifestyle-dropdown-nav a:hover {
    background: rgba(0,0,0,0.1);
    color: #000000 !important;
}

/* Second Level Dropdown Menu */
.second-level-dropdown-container {
    background: #E5DED2;
    position: fixed;
    top: 200px;
    left: 50%;
    width: 1320px;
    margin-left: -660px;
    z-index: 1001;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.second-level-dropdown-navbar {
    display: flex;
    align-items: center;
    padding: 1rem 0;
}

.second-level-dropdown-nav {
    display: flex;
    list-style: none;
    gap: 3rem;
    align-items: center;
    margin: 0;
    padding: 0;
    justify-content: flex-start;
}

.second-level-dropdown-nav li {
    display: inline-block;
    margin: 0;
    padding: 0;
}

.second-level-dropdown-nav a {
    font-family: Pretendard;
    font-weight: 400;
    font-style: Regular;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    color: #000000 !important;
    padding: 0.5rem 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.second-level-dropdown-nav a:hover {
    background: rgba(0,0,0,0.1);
    color: #000000 !important;
}

/* Mypage Dropdown Menu */
.mypage-dropdown {
    position: relative;
    display: inline-block;
}

.mypage-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 130px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.mypage-dropdown:hover .mypage-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mypage-dropdown-menu ul {
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
}

.mypage-dropdown-menu li {
    padding: 0;
}

.mypage-dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border: none;
}

.mypage-dropdown-menu a:hover {
    font-weight: 600;
}

/* Excel Download Dropdown Menu (Same style as Mypage Dropdown) */
.excel-download-dropdown {
    position: relative;
    display: inline-block;
}

.excel-download-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.excel-download-dropdown:hover .excel-download-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.excel-download-dropdown-menu ul {
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
}

.excel-download-dropdown-menu li {
    padding: 0;
}

.excel-download-dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border: none;
}

.excel-download-dropdown-menu a:hover {
    font-weight: 600;
}


/* Order Button */
.order-button {
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: #222222;
    transition: all 0.2s ease;
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 20px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
}

.order-button:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

/* Product Detail Quantity Controls */
.product-detail-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--light-color);
    border-radius: var(--radius-md);
    padding: 0.5rem;
}

.product-quantity-btn {
    width: 2rem;
    height: 2rem;
    border: none;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.product-quantity-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.product-quantity-display {
    min-width: 2rem;
    text-align: center;
    font-weight: 600;
}

/* Cart Quantity Controls */
.cart-quantity-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-quantity-input {
    width: 3rem;
    height: 2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 0.875rem;
    background: white;
}

.cart-quantity-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.cart-quantity-input::-webkit-outer-spin-button,
.cart-quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-quantity-input[type=number] {
    -moz-appearance: textfield;
}

/* Korean Product List Layout */
.products-list-vertical {
    display: flex;
    flex-direction: column;
    gap: 0px;
    padding: 0px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    /* 스크롤 영역 상·하단 구분선 (하단과 동일 스타일을 상단에도) */
    border-top: 1px solid darkgray;
    border-bottom: 1px solid darkgray;
}

.product-item-korean {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: #FFFFFF;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    padding: 1rem;
    gap: 1rem;
    transition: all 0.2s ease;
}

.product-item-korean:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-image-korean {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    background: #F5F5F5;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-image-korean img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.product-details-korean {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.product-manufacturer {
    font-family: Pretendard;
    font-size: 12px;
    font-weight: 400;
    color: #888888;
}

.product-title-korean {
    font-family: Pretendard;
    font-size: 14px;
    font-weight: 500;
    color: #222222;
    cursor: pointer;
    line-height: 1.3;
}

.product-title-korean:hover {
    color: #7B5A1C;
}

.product-description {
    font-family: Pretendard;
    font-size: 12px;
    font-weight: 400;
    color: #666666;
    line-height: 1.3;
}

.product-pricing {
    display: flex;
    align-items: center;
    /* gap: 0.5rem; */
    margin-bottom: 10px;
}

.discount-rate {
    font-family: Pretendard;
    font-size: 14px;
    font-weight: 700;
    color: #FF8800;
}

.price-amount {
    font-family: Pretendard;
    font-size: 14px;
    font-weight: 700;
    color: #222222;
}

.product-badges {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.badge-pb {
    background: #7B5A1C;
    color: white;
    font-family: Pretendard;
    font-size: 10px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 3px;
}

.badge-delivery {
    background: #E5DED2;
    color: #7B5A1C;
    font-family: Pretendard;
    font-size: 10px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 3px;
}

.product-actions-korean {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-shrink: 0;
}

.wishlist-btn {
    background: none;
    /* border: 1px solid #E5E5E5; */
    border: 0 !important;
    width: 24px;
    height: 24px;
    /* border-radius: 4px; */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: #888888;
    transition: all 0.2s ease;
}

.wishlist-btn:hover {
    /* border-color: #FF8800;
    color: #FF8800; */
}

.compare-btn {
    background: #7B5A1C;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    font-family: Pretendard;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.compare-btn:hover {
    background: #5D4315;
}

/* Fix for existing product-item classes */
.product-item {
    border-radius: 0px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    background: #FFFFFF;
    border: 0 !important;
    border-bottom: 1px solid #22222233 !important;
    transition: all 0.2s ease;
}

.product-item:hover {
    /* box-shadow: 0 2px 8px rgba(0,0,0,0.1); */
}

.product-item .product-image {
    width: 100px;
    flex-shrink: 0;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-item .product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.0;
}

.product-item .product-title {
    color: #222;
    leading-trim: both;
    text-edge: cap;
    font-family: Pretendard;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    margin-bottom: 10px;
}

.product-item .product-price {
    font-family: Pretendard;
    font-size: 14px;
    font-weight: 700;
    color: #222222;
    margin: 0;
}

.product-item .product-meta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.product-item .product-brand {
    font-family: Pretendard;
    font-size: 12px;
    font-weight: 400;
    color: #888888;
}

.product-item .product-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-shrink: 0;
    align-items: center;
}

.product-item .no-image {
    font-family: Pretendard;
    font-size: 10px;
    color: #888888;
    text-align: center;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F5F5F5;
    border-radius: 4px;
}

.product-item .product-image img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
}

.product-item .product-image-text {
    color: rgba(34, 34, 34, 0.70);
    leading-trim: both;
    text-edge: cap;
    font-family: Pretendard;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    background-color: white;
    padding-top: 6px;
}

.product-item .product-manufacturer {
    color: #222;
    leading-trim: both;
    text-edge: cap;
    font-family: Pretendard;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin-bottom: 10px;
}

.product-item .product-description {
    font-family: Pretendard;
    font-size: 12px;
    font-weight: 400;
    color: #666666;
    line-height: 1.3;
}

.product-item .product-pricing {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 10px;
}

.product-item .discount-rate {
    font-family: Pretendard;
    font-size: 14px;
    font-weight: 700;
    color: #FF8800;
}

.product-item .price-amount {
    font-family: Pretendard;
    font-size: 14px;
    font-weight: 700;
    color: #222222;
}

.product-item .product-badges {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.product-item .badge-pb {
    background: #7B5A1C;
    color: white;
    font-family: Pretendard;
    font-size: 10px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 3px;
}

.product-item .badge-delivery {
    background: #E5DED2;
    color: #7B5A1C;
    font-family: Pretendard;
    font-size: 10px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 3px;
}

.product-item .wishlist-btn {
    background: none;
    border: 0 !important;
    width: 24px;
    height: 24px;
    /* border-radius: 4px; */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: #888888;
    transition: all 0.2s ease;
}

.product-item .wishlist-btn:hover {
    /* border-color: #FF8800; */
    /* color: #FF8800; */
}

.product-item .view-detail {
    width: 30px;
    display: flex;
    padding: 11px 8px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1 0 0;
    background: #E5DED2;
    border-radius: 0px;
    font-size: 16px;
    color: #7B5A1C;
}

.product-item .view-detail:hover {
    font-weight: 600;
    background: #E5DED2 !important;
}

/* Product Detail Popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.popup-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    position: relative;
    display: flex;
    flex-direction: column;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #E5E5E5;
    background: #FAFAFA;
    border-radius: 12px 12px 0 0;
}

.popup-title {
    font-family: Pretendard;
    font-size: 18px;
    font-weight: 600;
    color: #222222;
    margin: 0;
}

.popup-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #888888;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.popup-close-btn:hover {
    background: #F0F0F0;
    color: #333333;
}

.popup-content {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
}

.product-detail-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.product-detail-image {
    width: 200px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-detail-image img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    background: #F5F5F5;
}

.product-detail-image-text {
    font-family: Pretendard;
    font-size: 14px;
    color: rgba(34, 34, 34, 0.7);
    margin-top: 8px;
    text-align: center;
}

.product-detail-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-detail-manufacturer {
    font-family: Pretendard;
    font-size: 12px;
    color: #888888;
}

.product-detail-title {
    font-family: Pretendard;
    font-size: 18px;
    font-weight: 600;
    color: #222222;
    margin: 0;
    line-height: 1.4;
}

.product-detail-description {
    font-family: Pretendard;
    font-size: 14px;
    color: #666666;
    line-height: 1.5;
}

.product-detail-pricing {
    display: flex;
    align-items: center;
    gap: 8px;
    /* margin: 8px 0; */
}

.detail-discount-rate {
    font-family: Pretendard;
    font-size: 16px;
    font-weight: 700;
    color: #FF8800;
}

.detail-price-amount {
    font-family: Pretendard;
    font-size: 16px;
    font-weight: 700;
    color: #222222;
}

.product-detail-badges {
    display: flex;
    gap: 8px;
    margin: 8px 0;
}

.product-detail-meta {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #E5E5E5;
}

.meta-item {
    display: flex;
    margin-bottom: 8px;
}

.meta-label {
    font-family: Pretendard;
    font-size: 14px;
    font-weight: 500;
    color: #666666;
    width: 80px;
    flex-shrink: 0;
}

.meta-value {
    font-family: Pretendard;
    font-size: 14px;
    color: #222222;
}

.popup-footer {
    padding: 20px 24px;
    border-top: 1px solid #E5E5E5;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    background: #FAFAFA;
    border-radius: 0 0 12px 12px;
    flex-shrink: 0;
}

.popup-btn {
    min-width: 100px;
    padding: 10px 16px;
}

@media (max-width: 768px) {
    .popup-container {
        margin: 10px;
        max-width: calc(100vw - 20px);
    }
    
    .product-detail-layout {
        flex-direction: column;
        gap: 16px;
    }
    
    .product-detail-image {
        width: 150px;
        align-self: center;
    }
    
    .product-detail-image img {
        width: 150px;
        height: 150px;
    }
}

.search-bar {
    position: relative;
    width: 100%;
    align-items: center;
    gap: 12px;
    border-bottom: rgba(34, 34, 34, 0.50) 1px solid;
    padding-bottom:16px;
}

.search-bar input {
    width: 100%;
    padding: 10px 64px 10px 12px; /* 오른쪽 아이콘 자리 확보 */
    transition: all 0.2s ease;

    border: none !important;
    color: #222;
    leading-trim: both;
    text-edge: cap;
    font-family: Pretendard;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.search-bar input:focus {
    outline: none !important;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    opacity: 0.6;
}

.search-icon-btn{
  position: absolute;
  right: 6px;
  top: 20px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  border-radius: 6px;
}

.search-icon-btn:hover{
  background: rgba(0,0,0,0.05);
}

.search-icon-btn svg{
  width: 18px;
  height: 18px;
  stroke: #666;
  stroke-width: 2;
  fill: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    font-size: 0.875rem;
}

.btn-primary {
    /* background-color: var(--primary-color); */
    background-color: #7B5A1C;
    color: white;
}

.btn-primary:hover {
    /* background-color: var(--primary-hover); */
    background-color: #6B4A0C;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    background-color: var(--light-color);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.product-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.2s ease;
    cursor: pointer;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.product-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.product-info {
    padding: 14px;
}

.product-title {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    /* height: 2.8rem; */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-brand {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.product-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-publish {
    background-color: #dcfce7;
    color: #166534;
}

.status-draft {
    background-color: #fef3c7;
    color: #92400e;
}

.status-private {
    background-color: #e0e7ff;
    color: #3730a3;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    /* padding: 0.75rem 1rem; */
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    background-color: white;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Filters */
.filters {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.filter-row {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    /* min-width: 200px; */
}

/* Filter Buttons */
.filter-buttons-section {
    margin: 20px 0;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.filter-btn {
    border: 1px solid #E5E5E5;
    background: rgba(164, 164, 164, 0.20);
    font-family: Pretendard;
    font-size: 14px;
    font-weight: 600;
    color: #666666;
    cursor: pointer;
    transition: all 0.2s ease;

    padding: 8px;
    justify-content: center;
    align-items: center;
    gap: 10px;

    color: #666;
    line-height: normal;
}

.filter-btn:hover {
    color: #222222;
}

.filter-btn.active {
    background: rgba(123, 90, 28, 0.20);
    color: #7B5A1C;
    font-weight: 500;
}

/* Sort Dropdown */
.sort-dropdown {
    margin-right: 12px;
}

.sort-dropdown select {
    min-width: 100px;
    padding: 8px 12px;
    border: 1px solid #E5E5E5;
    background: white;
    border-radius: 4px;
    font-family: Pretendard;
    font-size: 14px;
    font-weight: 400;
    color: #666666;
    cursor: pointer;
}

.sort-dropdown select:focus {
    outline: none;
    border-color: #222222;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 16px;
    margin-bottom: 24px;
    /* padding: 2rem 0; */
}

.pagination a,
.pagination span {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    background: white;
    transition: all 0.2s ease;
}

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

.pagination .current {
    background-color: var(--primary-color);
    color: white;
}

/* Loading States */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--border-color);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    border-left: 4px solid;
}

.alert-success {
    background-color: #f0fdf4;
    border-left-color: var(--success-color);
    color: #166534;
}

.alert-error {
    background-color: #fef2f2;
    border-left-color: var(--danger-color);
    color: #991b1b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-bar {
        order: 3;
        max-width: none;
        margin: 0;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .filter-row {
        flex-direction: column;
    }
}

/* Cart Styles */
.cart-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.cart-link:hover {
    background-color: var(--light-color);
}

.cart-icon {
    font-size: 1.5rem;
    transition: all 0.2s ease;
}

.cart-icon.has-items {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.cart-count {
    background-color: var(--danger-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 50%;
    min-width: 1.2rem;
    height: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -0.2rem;
    right: -0.2rem;
}

.cart-item {
    display: flex;
    align-items: center;

    gap: 20px;
    padding: 0px;
    background: white;
    /* border-radius: var(--radius-md); */
    /* box-shadow: var(--shadow-sm); */
    margin-bottom: 1rem;
}

.cart-item-info {
    flex: 1 1 auto;            /* take remaining width */
    min-width: 0;              /* IMPORTANT: allows text to shrink instead of overflow */
}

.cart-item-image {
    width: 60px;
    height: 60px;
    /* background: var(--light-color); */
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    opacity: 1;
}

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


.cart-item-details {
    flex: 1;
}

.cart-item-title {
    /* font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3; */

    color: #222;
    leading-trim: both;
    text-edge: cap;
    font-family: Pretendard;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.cart-item-brand {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.cart-item-price {
    /* font-size: 1rem;
    font-weight: 500;
    color: var(--primary-color); */

    color: #222;
    leading-trim: both;
    text-edge: cap;
    font-family: Pretendard;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;

}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    /* background: var(--light-color); */
    /* border-radius: var(--radius-md); */
}

.qty-decrease, .qty-increase {
    width: 32px;
    height: 32px;
    border: none;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn {
    width: 2rem;
    height: 2rem;
    border: none;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.quantity {
    min-width: 2rem;
    text-align: center;
    font-weight: 600;
}

.quantity-input {
    width: 60px;
    height: 32px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    background: white;
    transition: all 0.2s ease;
}

.quantity-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-input[type=number] {
    -moz-appearance: textfield;
}

/* Cart Selection Styles */
.cart-item-selection {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    width: 30px;
}

.cart-item-checkbox {
    width: 1.2rem;
    height: 1.2rem;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.cart-selection-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.select-all-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-color);
}

.select-all-checkbox {
    width: 1.1rem;
    height: 1.1rem;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.select-none-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
    background: white;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.select-none-btn:hover {
    background: var(--light-color);
    color: var(--text-color);
}

.cart-item {
    /* display: grid;
    grid-template-columns: auto 1fr auto auto auto;
    gap: 1rem;
    align-items: center;
    background: white;
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color); */
}

.checkout-btn {
    height: 60px;
    font-size: 18px;
    font-weight: 700;
}

.checkout-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--primary-color);
}

.checkout-btn:disabled:hover {
    background: var(--primary-color);
    transform: none;
}

.cart-item-stock {
    /* display: flex;
    align-items: center;
    justify-content: center;
    text-align: center; */

    color: #222;
    leading-trim: both;
    text-edge: cap;
    font-family: Pretendard;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.cart-item-stock .stock-info {
    /* font-size: 0.85rem;
    color: #6b7280;
    background-color: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    white-space: nowrap; */

    color: #222;
    leading-trim: both;
    text-edge: cap;
    font-family: Pretendard;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.cart-item-total {
    /* font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    min-width: 6rem;
    text-align: right; */

    color: #222;
    leading-trim: both;
    text-edge: cap;
    font-family: Pretendard;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.remove-item {
    color: #222;
    leading-trim: both;
    text-edge: cap;
    font-family: Pretendard;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    width: 50px;
}

.cart-item-actions {
    margin-left: 1rem;
}

.btn-remove {
    width: 2rem;
    height: 2rem;
    border: none;
    background: var(--danger-color);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

.btn-remove:hover {
    background: #dc2626;
    transform: scale(1.05);
}


.cart-summary h3 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-line.discount {
    color: #e23b3b;
}

.summary-line.discount span:last-child {
    color: #e23b3b;
    font-weight: 600;
}

.summary-line.total {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-bottom: none;
}

.add-to-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.add-to-cart-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.add-to-cart-btn:hover::before {
    left: 100%;
}

/* Cart Page Layout */
.cart-container {
    margin-top: 1rem;
    flex: 1;
    overflow-y: auto;
    min-height: 0; /* Allow flex item to shrink below content size */
}

.entire-cart-container {
    display: flex;
    align-items: flex-start;
    margin-top: 1rem;
    flex: 1;
    overflow-y: auto;
    min-height: 0; /* Allow flex item to shrink below content size */
    gap: 10px;
}

.entire-cart-items-section{
  flex: 2 1 0;          /* 2 parts */
  min-width: 0;         /* prevents overflow in flex children */
}

#cart-items-container {
  padding-bottom: 100px;  /* Space for quantity tooltips */
}

.entire-cart-summary-section{
  flex: 1 1 0;          /* 1 part */
  min-width: 0;
}

/* Cart Column Headers */
.cart-column-headers {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0px;
    /* background-color: var(--light-color); */
    /* border: 1px solid var(--border-color); */
    /* border-radius: var(--radius-md) var(--radius-md) 0 0; */
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--dark-color);
    margin-bottom: 0;
    padding: 0.75rem 1rem;
}

.cart-header-select {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
}

.cart-header-image {
    width: 80px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-header-info {
    flex: 1;
    text-align: left;
    display: flex;
    align-items: center;
}

.cart-header-price,
.cart-header-quantity,
.cart-header-stock,
.cart-header-total {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
}

.cart-header-delete {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
    width: 50px;
}

#cart-items {
    padding-right: 0.5rem;
}

.cart-summary {
    background: white;
    padding: 1rem 1.5rem;
    /* border-radius: var(--radius-md); */
    /* box-shadow: var(--shadow-md); */
    margin-top: 1rem;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

/* Column 3 Layout for Cart */
.column-3 {
    display: flex !important;
    flex-direction: column !important;
    /* 컬럼1·2와 동일하게 동적 오프셋 사용 — 배너·공지바 0건 시 160 고정이면
       컬럼3만 못 늘어나 짧아지던 문제 수정 (layout-offset.js가 --top-offset 주입) */
    height: calc(100vh - var(--top-offset, 160px)) !important;
    overflow: hidden !important;
}



/* Responsive Cart */
@media (max-width: 768px) {
    .cart-container {
        gap: 1rem;
        height: calc(100vh - 120px); /* Adjust for mobile header */
    }
}
    
    .cart-item {
        /* flex-direction: column;
        align-items: stretch;
        gap: 1rem; */
    }
    
    .cart-item-image {
        align-self: center;
    }
    
    .cart-item-quantity {
        justify-content: center;
    }
    
    .cart-item-total {
        /* text-align: center; */
        /* font-size: 1.4rem; */
    }
    
    .cart-summary {
        position: static;
    }
}

/* Login Button States */
.login-btn-inactive {
    background-color: #D9C9B0 !important;
    color: #fff !important;
    cursor: not-allowed !important;
    opacity: 1 !important;
    pointer-events: none;
}

.login-btn-active {
    background-color: #7B5A1C !important;
    color: #fff !important;
    cursor: pointer !important;
    opacity: 1 !important;
    pointer-events: auto;
}

.login-btn-active:hover {
    background-color: #654811 !important;
}

/* Login Input Error States */
.login-input-error {
    background: #FF880033 !important;
    border: 1.5px solid #FF8800 !important;
}

.login-input-error:focus {
    background: #FF880033 !important;
    border: 1.5px solid #FF8800 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(255, 136, 0, 0.1) !important;
}

/* Login Error Message */
.login-error-message {
    height: 10px;
    opacity: 1;
    font-family: 'Pretendard', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0%;
    color: #FF8800;
    padding: 4px 8px;
    margin-top: 4px;
    display: none;
    border-radius: 3px;
    transform: rotate(0deg);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-primary { color: var(--primary-color); }
.text-background { color: var(--primary-background); }
.text-secondary { color: var(--text-secondary); }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.d-none { display: none; }
.d-block { display: block; }

/* Favorites Styling */
.favorite-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    min-height: 2rem;
}

.favorite-btn:hover {
    background: rgba(var(--primary-color-rgb), 0.1);
    transform: scale(1.1);
}

.favorite-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.favorite-btn.favorite-active {
    background: rgba(255, 82, 82, 0.1);
}

.favorite-btn .favorite-icon {
    display: block;
    line-height: 1;
}

.favorite-btn:hover .favorite-icon {
    animation: heartBeat 0.6s ease-in-out;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.3); }
    28% { transform: scale(1); }
    42% { transform: scale(1.3); }
    70% { transform: scale(1); }
}

/* Product Detail Info Row Styling */
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    /* border-bottom: 1px solid var(--border-color); */
}

.info-row:last-child {
    border-bottom: none;
}

/* 낱개 가격 행: 위 권장 소비자가와 가깝게 (상단 여백 축소) — 컬럼2 한정 스코프 */
.column-2 .info-row.info-row-tight {
    padding-top: 0;
    margin-top: -4px;
}

.product-detail-info-label {
    flex: 1;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 10px !important;
}

.product-detail-info-value {
    flex: 2;
    text-align: right;
    color: var(--text-primary);
    font-size: 10px !important;
}

.product-detail-info-brand {
    color: rgba(34, 34, 34, 0.80);
    leading-trim: both;
    text-edge: cap;
    font-family: Pretendard;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.product-detail-info-title {

    color: #222;
    leading-trim: both;
    text-edge: cap;
    font-family: Pretendard;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}
/* Product Order History Styling */
.product-order-history {
    margin-top: 1rem;
    /* border: 1px solid var(--border-color); */
    /* border-radius: var(--radius-md); */
    overflow: hidden;
}

.product-order-history-header {
    color: #222;
    leading-trim: both;
    text-edge: cap;
    font-family: Pretendard;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.product-order-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 10px !important;
    margin-top: 16px;
    border-spacing: 0 6px;
    border-bottom: 1px solid #22222233;
    padding-bottom: 20px !important;
    margin-bottom: 20px !important;
}

.product-order-history-table td {
    color: rgba(34, 34, 34, 0.60);
    leading-trim: both;
    text-edge: cap;
    font-family: Pretendard;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.product-order-history-table thead th{
    padding-bottom: 8px;
}
.product-order-history-table th {
    color: #222;
    leading-trim: both;
    text-edge: cap;
    font-family: Pretendard;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.product-order-history-table tbody tr:hover {
    background-color: #f8f9fa;
}

.product-order-history-table tbody tr:last-child td {
    border-bottom: none;
    padding-bottom: 16px;           /* gap between last row and bottom line */
}

.order-history-empty {
    /* padding: 1rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 10px !important; */

    color: #222;
    text-align: center;
    leading-trim: both;
    text-edge: cap;
    font-family: Pretendard;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;

}

/* Product Cart Form */
.product-cart-form {
    margin-top: 1rem;
    /* border: 1px solid var(--border-color); */
    /* border-radius: var(--radius-md); */
    /* overflow:hidden 제거 (2026-06-12): radius clip 목적 상실 + .quantity-tooltip 잘림 방지 */
    background-color: white;
}

.cart-horizontal-row {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    /* background-color: #f8f9fa; */
}

.regular-price.has-sale {
    /* font-size: 12px !important;
    font-weight: bold;
    color: var(--text-secondary);
    text-decoration: line-through; */

    color: #222;
    text-align: right;
    leading-trim: both;
    text-edge: cap;
    font-family: Pretendard;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-decoration-line: line-through;
}

.regular-price.no-sale {
    /* font-size: 14px !important;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none; */

    color: #222;
    text-align: right;
    leading-trim: both;
    text-edge: cap;
    font-family: Pretendard;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.sale-ratio {
    background-color: #dc3545;
    color: white;
    font-size: 10px !important;
    font-weight: bold;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
}

.sale-price {
    font-size: 14px !important;
    font-weight: bold;
    color: var(--primary-color);
}

.cart-total-price {
    padding: 0.75rem;
    display: flex;
    justify-content: space-between; /* push to edges */
    align-items: center;
}

.total-amount {
    color: var(--primary-color);
    font-size: 14px !important;
}

.qty-btn {
    width: 32px;
    height: 32px;
    /* border: 1px solid var(--border-color); */
    /* background-color: white; */
    /* border-radius: var(--radius-sm); */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px !important;
    font-weight: bold;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background-color: rgba(var(--primary-rgb), 0.2); /* 20% alpha */
    border-color: rgba(var(--primary-rgb), 0.6);

    /* background-color: var(--primary-color); */
    color: white;
    /* border-color: var(--primary-color); */
}

.qty-btn:active {
    transform: scale(0.95);
}

.qty-input {
    width: 60px;
    height: 32px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px !important;
    font-weight: bold;
    color: var(--text-primary);
    background-color: white;
}

.qty-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-input[type=number] {
    -moz-appearance: textfield;
}

.add-to-cart-btn {
    width: 100%;
    height: 60px;
    padding: 0.75rem;
    background-color: #7B5A1C33;
    transition: all 0.2s ease;

    border: none;
    color: #7B5A1C;
    text-align: center;
    leading-trim: both;
    text-edge: cap;
    font-family: Pretendard;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.add-to-cart-btn:hover {
    /* background-color: var(--primary-dark); */
    /* transform: translateY(-1px); */
}

.add-to-cart-btn:active {
    /* transform: translateY(0); */
}

.product-pricing {
  display: flex;
  /* gap: 6px; */
  align-items: baseline;
}

.discount-rate {
  color: #e23b3b;
  font-weight: 700;
}

.cart-regular-price {
  color: #999;
  text-decoration: line-through;
  font-size: 0.9em;
}

.sale-price {
  font-weight: 700;
  color: #111;
}

.price-amount {
  font-weight: 700;
}

.btn-outline-primary {
    color: #7B5A1C !important;
    /* border-color: #7B5A1C !important; */
    border: 1px solid  #7B5A1C !important;
    background-color: #00000000 !important;
}

.btn-outline-primary:hover {
    color: white !important;
    background-color: #7B5A1CFF !important;
}

.btn-outline-primary:active {
    color: white !important;
    background-color: #7B5A1CFF !important;
}

/* Quantity Input Tooltip Styles */
.quantity-tooltip {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #2d3748;
    color: white;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    white-space: nowrap;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.1s ease, visibility 0.3s ease, transform 0.1s ease;
    pointer-events: none;
    margin-top: 6px;
    transform: translateX(-50%) translateY(-5px);
}

.quantity-tooltip::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 4px solid #2d3748;
}

.quantity-tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.quantity-input-wrapper {
    position: relative;
    display: inline-block;
}

.quantity-input-wrapper:hover .quantity-tooltip,
.quantity-input-wrapper .quantity-input:focus + .quantity-tooltip,
.quantity-input-wrapper .qty-input:focus + .quantity-tooltip,
.quantity-input-wrapper .cart-quantity-input:focus + .quantity-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Show tooltip when hovering over quantity buttons */
.quantity-control-group .qty-btn:hover ~ .quantity-input-wrapper .quantity-tooltip,
.quantity-control-group .qty-decrease:hover + .quantity-input-wrapper .quantity-tooltip,
.quantity-control-group .qty-increase:hover ~ .quantity-input-wrapper .quantity-tooltip,
.quantity-control-group .cart-quantity-btn:hover ~ .quantity-input-wrapper .quantity-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    transition-delay: 0.2s;
}

/* Specific positioning for cart quantity inputs */
.cart-item-quantity .quantity-tooltip {
    left: 50%;
    transform: translateX(-50%);
}

/* Specific positioning for product detail quantity inputs */
.product-cart-form .quantity-tooltip {
    left: 50%;
    transform: translateX(-50%);
}

.quantity-tooltip-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.quantity-tooltip-item {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.quantity-tooltip-label {
    color: #a0aec0;
}

.quantity-tooltip-value {
    color: #ffffff;
    font-weight: 600;
}

/* Show tooltip with delay on hover */
.quantity-input-wrapper {
    transition: all 0.2s ease;
}

.quantity-input-wrapper:hover .quantity-tooltip {
    transition-delay: 0.4s;
}

.quantity-input-wrapper .quantity-input:focus + .quantity-tooltip,
.quantity-input-wrapper .qty-input:focus + .quantity-tooltip,
.quantity-input-wrapper .cart-quantity-input:focus + .quantity-tooltip {
    transition-delay: 0s;
}

/* Shorter delay for button hovers */
.quantity-control-group .qty-btn:hover ~ .quantity-input-wrapper .quantity-tooltip,
.quantity-control-group .qty-decrease:hover + .quantity-input-wrapper .quantity-tooltip,
.quantity-control-group .qty-increase:hover ~ .quantity-input-wrapper .quantity-tooltip,
.quantity-control-group .cart-quantity-btn:hover ~ .quantity-input-wrapper .quantity-tooltip {
    transition-delay: 0.2s;
}

/* Filter dropdown with down arrow */
.filter-select-with-arrow {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'><path d='M4 6L8 10L12 6' stroke='%23222222' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 16px;
    padding-right: 40px !important;
}

.filter-select-with-arrow:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(123, 90, 28, 0.1);
}

/* ===== 3단 카테고리 cascading select (search-filters) =====
 * 색상 톤은 같은 컬럼의 .filter-btn (전체/자주 산 상품/찜한 상품) 과 일치시킴.
 *   - 기본:   border #E5E5E5  / bg rgba(164,164,164,0.20)  / color #666  / fw 600
 *   - 활성:   bg rgba(123,90,28,0.20) / color #7B5A1C       / fw 500
 *   - 비활성: bg #F5F5F5 / color #BBB
 */
.cat3-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
    margin-bottom: 10px;
}
.cat3-select {
    height: 40px;
    padding: 0 28px 0 12px;
    border: 1px solid #E5E5E5;
    background-color: rgba(164, 164, 164, 0.20);
    font-family: 'Pretendard', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #666666;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%23666' d='M0 0l5 6 5-6z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
}
.cat3-select:hover:not(:disabled):not(.has-value) {
    color: #222222;
}
.cat3-select:focus {
    outline: none;
}
.cat3-select:disabled {
    background-color: #F5F5F5;
    color: #BBB;
    cursor: not-allowed;
    background-image: url("data:image/svg+xml;charset=UTF-8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%23BBB' d='M0 0l5 6 5-6z'/></svg>");
}
.cat3-select.has-value {
    background-color: rgba(123, 90, 28, 0.20);
    color: var(--primary-color);
    font-weight: 500;
    background-image: url("data:image/svg+xml;charset=UTF-8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%237B5A1C' d='M0 0l5 6 5-6z'/></svg>");
}

.cat3-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(123, 90, 28, 0.20);
    border: 1px solid #E5E5E5;
    color: var(--primary-color);
    padding: 8px 12px;
    border-radius: 2px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 12px;
}
.cat3-selected .cat3-selected-inner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.cat3-selected .cat3-tag-icon {
    display: block;
    flex-shrink: 0;
}
.cat3-selected .cat3-reset {
    cursor: pointer;
    color: #666;
    font-weight: 600;
    font-size: 12px;
    transition: color 0.2s ease;
}
.cat3-selected .cat3-reset:hover {
    color: #222;
}


/* ============================================================
   사이트 상단 1줄 공지 바 (announcement bar)
   ============================================================ */
/* 색상은 site-notice.js 가 owm_site_notice_style(DB)에서 인라인 CSS 변수로 주입한다.
   아래 var() 폴백 값은 스타일 row 가 없거나 로드 실패 시 기준이다. */
.site-notice-bar {
    background: var(--notice-bar-bg, linear-gradient(90deg, #3D2A0A 0%, #5A3F12 100%));
    color: var(--notice-bar-color, #fff);
    border-bottom: var(--notice-bar-border, 1px solid rgba(0,0,0,0.2));
    font-size: 13px;
    line-height: 1.4;
}
.site-notice-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 9px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.notice-pin {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    background: var(--notice-pin-bg, rgba(255,255,255,0.16));
    color: var(--notice-pin-color, #fff);
    border: var(--notice-pin-border, 1px solid rgba(255,255,255,0.22));
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    backdrop-filter: blur(8px);
}
.notice-pin svg { width: 11px; height: 11px; }
.notice-viewport {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 18px;
}
.notice-item {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s, transform 0.5s;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.notice-item.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.notice-item a {
    color: var(--notice-link-color, #fff);
    text-decoration: none;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}
.notice-item a:hover { text-decoration: underline; }
.notice-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.notice-counter {
    font-size: 11px;
    color: var(--notice-counter-color, rgba(255,255,255,0.6));
    font-variant-numeric: tabular-nums;
    min-width: 28px;
    text-align: center;
}
.notice-btn {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--notice-btn-bg, rgba(255,255,255,0.08));
    border: var(--notice-btn-border, 1px solid rgba(255,255,255,0.18));
    border-radius: 4px;
    color: var(--notice-btn-color, #fff);
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s;
    user-select: none;
}
.notice-btn:hover { background: rgba(255,255,255,0.18); }
.notice-close {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--notice-close-color, rgba(255,255,255,0.7));
    cursor: pointer;
    font-size: 14px;
    background: transparent;
    border: none;
    margin-left: 4px;
    border-radius: 4px;
    transition: all 0.2s;
}
.notice-close:hover { background: rgba(0,0,0,0.25); color: #fff; }

/* ============================================================
   홈 배너 캐러셀 (banner carousel)
   ============================================================ */
.banner-carousel {
    position: relative;
    margin: 24px 0 28px;
}
.banner-foot {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}
.banner-count {
    font-size: 12px;
    color: #9ca3af;
    font-variant-numeric: tabular-nums;
    background: #f3f4f6;
    padding: 2px 9px;
    border-radius: 999px;
}
.banner-dots { display: flex; gap: 6px; }
.banner-dot {
    width: 18px;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.3s, width 0.3s;
}
.banner-dot.active { background: #7B5A1C; width: 28px; }
.banner-viewport {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
    margin: -20px 0;
}
.banner-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.banner-slot {
    flex: 0 0 33.3333%;
    padding: 0 8px;
    box-sizing: border-box;
}
.banner-skeleton {
    height: 168px;
    border-radius: 12px;
    background: linear-gradient(90deg, #f3f4f6 0%, #e5e7eb 50%, #f3f4f6 100%);
    background-size: 200% 100%;
    animation: banner-skeleton-shimmer 1.4s ease-in-out infinite;
}
@keyframes banner-skeleton-shimmer {
    0%   { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}
/* 색상은 home-banners.js PRESETS 가 인라인 CSS 변수로 주입한다.
   아래 var() 폴백 값은 프리셋이 없을 때(notice 톤) 기준이다. */
.banner-card {
    position: relative;
    border-radius: 12px;
    padding: 24px;
    height: 168px;
    overflow: hidden;
    cursor: default;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--banner-bg, #f8f5ed);
    color: var(--banner-color, #1f2937);
    border: var(--banner-border, none);
}
.banner-card[data-href] { cursor: pointer; }
.banner-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}
.bcard-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.bcard-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: var(--banner-label-bg, #fff);
    color: var(--banner-label-color, #6b7280);
    border: var(--banner-label-border, 1px solid #e5e7eb);
    backdrop-filter: var(--banner-label-blur, none);
}
.bcard-icon {
    width: 36px; height: 36px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    background: var(--banner-icon-bg, #fff);
}
.bcard-body { flex: 1; padding-top: 14px; }
.bcard-title { font-size: 17px; font-weight: 700; line-height: 1.4; margin-bottom: 6px; letter-spacing: -0.3px; }
.bcard-sub { font-size: 13px; line-height: 1.5; opacity: 0.85; }
.bcard-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}
.bcard-date { opacity: 0.7; font-variant-numeric: tabular-nums; }
.bcard-cta { font-weight: 600; color: var(--banner-cta-color, #7B5A1C); }
.bcard-deco {
    position: absolute;
    right: -10px; bottom: -10px;
    font-size: 100px;
    opacity: 0.08;
    line-height: 1;
    pointer-events: none;
}
.banner-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px; height: 40px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    color: #4b5563;
    font-size: 18px;
    transition: all 0.2s;
    user-select: none;
}
.banner-btn:hover {
    background: #7B5A1C; color: #fff; border-color: #7B5A1C;
    box-shadow: 0 6px 16px rgba(123, 90, 28, 0.25);
}
.banner-btn:active { transform: translateY(-50%) scale(0.92); }
.banner-btn.prev { left: -8px; }
.banner-btn.next { right: -8px; }

/* ============================================================
   홈 컬럼1 컴팩트 레이아웃 (2026-06-10)
   · 헤더 행에 필터 칩 인라인 + 3단 카테고리·검색 1행 통합
   · 상품 행 컴팩트 (52px 썸네일) + 구매 이력 필 뱃지
   · .column-1 스코프 한정 — 컬럼2 상세 패널의 .product-item 은 기존 그대로
   ============================================================ */

/* 헤더 행: '상품 검색' 타이틀 + 필터 칩 인라인.
   박스 모델(flex/align/padding/margin/min-height)은 .column-header(index.html) 공통값을 따르고,
   여기선 칩을 우측으로 미는 justify-content 만 추가한다 (세 컬럼 헤더 정렬 일치). */
.column-1 .search-header-inline {
    justify-content: space-between;
}
.column-1 .filter-chips {
    display: flex;
    gap: 6px;
    margin: 0;
}
.column-1 .filter-chips .filter-btn {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    /* 시안 6: 웜 샌드 칩 (전역 .filter-btn 회색 톤은 다른 화면에서 계속 사용 — 여기서만 재정의) */
    background: #f6f1e4;
    border-color: #e3dac2;
    color: #6e4f16;
}
.column-1 .filter-chips .filter-btn:hover {
    color: #4a3a16;
}
.column-1 .filter-chips .filter-btn.active {
    background: #6e4f16;
    border-color: #6e4f16;
    color: #fdf6e6;
}

/* 컨트롤 행: 3단 카테고리 + 검색 (아이콘 매립) */
.column-1 .search-control-row {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}
.column-1 .search-control-row .cat3-select {
    flex: 1 1 0;
    min-width: 0;
    height: 38px;
    font-size: 12px;
    padding: 0 22px 0 8px;
    background-position: right 8px center;
    /* 시안 6: 플랫 드롭다운 — 직각 + 화이트 + 웜 보더 + 브라운 셰브런
       (전역 .cat3-select 회색 톤은 유지, 홈 컬럼1 한정 재정의) */
    border-radius: 0;
    border-color: #ddd3ba;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml;charset=UTF-8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='none' stroke='%236e4f16' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M1 1l4 4 4-4'/></svg>");
}
.column-1 .search-control-row .cat3-select.has-value {
    background-color: #f6f1e4;
    color: #6e4f16;
}
.column-1 .search-control-row .cat3-select:disabled {
    background-color: #faf8f2;
    border-color: #e9e2d2;
    color: #c2b89e;
    background-image: url("data:image/svg+xml;charset=UTF-8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='none' stroke='%23c2b89e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M1 1l4 4 4-4'/></svg>");
}
.column-1 .search-input-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
}
.column-1 .search-input-wrap .search-input {
    width: 100%;
    height: 38px;
    padding: 0 42px 0 12px;
    /* 시안 6: 같은 행의 플랫 드롭다운과 직각·웜 보더 통일 */
    border: 1px solid #ddd3ba;
    border-radius: 0;
    font-size: 13px;
    box-sizing: border-box;
}
.column-1 .search-input-wrap .search-icon-btn {
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
}
.column-1 .search-input-wrap .search-icon-btn svg {
    width: 18px;
    height: 18px;
}

/* 컴팩트 상품 행 */
.column-1 .product-item {
    /* flex 를 명시 — 썸네일 align-self:center 등이 전역 .product-item{display:flex !important}
       에만 의존하지 않도록 자립화 (전역 규칙이 바뀌어도 컬럼1 레이아웃 유지) */
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    cursor: pointer;
    /* 시안 6: 행 구분선 웜 톤 (전역 .product-item 의 #22222233 !important 를 컬럼1 한정으로 이김) */
    border-bottom: 1px solid #f1ece0 !important;
}
.column-1 .product-item.selected {
    background: #f9f4e7;
}
.column-1 .product-item .product-image {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 4px;
    overflow: hidden;
    background: #F5F5F5;
    /* 행 높이(77px)가 썸네일(52px)보다 커서 상단에 붙는 문제 → 세로 중앙 강제 */
    align-self: center;
    margin-top: auto;
    margin-bottom: auto;
}
.column-1 .product-item .product-image img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 4px;
}
/* 구매 이력 있는 상품: 썸네일 골드 테두리 */
.column-1 .product-item.has-history .product-image {
    box-shadow: inset 0 0 0 2px rgba(123, 90, 28, 0.35);
}
.column-1 .product-item .product-info {
    /* 전역 .product-info { padding: 14px } 무효화 (컴팩트 행 한정) */
    padding: 0;
    gap: 2px;
    /* min-width:0 — flex item 이 내부 nowrap 타이틀의 min-content 너비를 넘지 않게 하여
       product-title 의 ellipsis 가 작동하고 .product-actions(상세/찜)가 밀리지 않도록 함 */
    min-width: 0;
}
.column-1 .product-brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    line-height: 1.3;
}
.column-1 .product-item .product-manufacturer {
    font-size: 11px;
    font-weight: 400;
    color: #888;
    margin: 0;
}
.column-1 .product-item .product-title {
    font-size: 13px;
    font-weight: 500;
    color: #222;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.column-1 .product-item .product-pricing {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    line-height: 1.3;
}
.column-1 .product-item .discount-rate { font-size: 13px; color: #c0392b; }
.column-1 .product-item .price-amount { font-size: 13px; color: #5b4310; }

/* 구매 이력 필 뱃지 (purchase_count_6m) */
.column-1 .purchase-pill {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
}
.column-1 .purchase-pill.bought { background: #efe4c4; color: #5b4310; }
.column-1 .purchase-pill.none { background: #f3f4f6; color: #b0b5bd; }

/* 품절 표시 (stock_status === 'out_of_stock'): 썸네일 오버레이 뱃지 + 행 디밍 */
.column-1 .product-item .product-image {
    position: relative;
}
.column-1 .product-item .soldout-badge {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 26, 15, 0.62);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-radius: 4px;
}
.column-1 .product-item.sold-out .product-image img { filter: grayscale(0.6); }
.column-1 .product-item.sold-out .product-title,
.column-1 .product-item.sold-out .product-pricing { opacity: 0.5; }

/* 썸네일 스켈레톤: 이미지 로드 전 shimmer 오버레이 → onload 시 .img-loaded 부여로 제거
   (실제 썸네일이 있는 .has-thumb 에만 적용; no-image 폴백엔 미적용)
   대상: 상품목록(.product-image, 컬럼1·상세) + /cart(.cart-item-image) + 주문상세 모달(.ord-thumb) */
.ord-thumb {
    display: inline-block;
    width: 50px;
    height: 50px;
    vertical-align: middle;
    border-radius: 6px;
    overflow: hidden;
    background: #f3f3f3;
}
.ord-thumb .thumb-img { width: 50px; height: 50px; object-fit: cover; display: block; }
.product-image.has-thumb,
.cart-item-image.has-thumb,
.ord-thumb.has-thumb { position: relative; }
.product-image.has-thumb::after,
.cart-item-image.has-thumb::after,
.ord-thumb.has-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(100deg, #ececec 25%, #f6f6f6 50%, #ececec 75%);
    background-size: 200% 100%;
    animation: thumbShimmer 1.2s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}
.product-image.has-thumb.img-loaded::after,
.cart-item-image.has-thumb.img-loaded::after,
.ord-thumb.has-thumb.img-loaded::after { display: none; }
.product-image.has-thumb .thumb-img,
.cart-item-image.has-thumb .thumb-img,
.ord-thumb.has-thumb .thumb-img {
    position: relative;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.product-image.has-thumb .thumb-img.thumb-loaded,
.cart-item-image.has-thumb .thumb-img.thumb-loaded,
.ord-thumb.has-thumb .thumb-img.thumb-loaded { opacity: 1; }
.column-1 .product-item .soldout-badge { z-index: 3; }
@keyframes thumbShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 행 액션: 가로형 컴팩트 상세 버튼
   (상단의 세로형 .product-item .view-detail — width 30px / column — 을 컬럼1 한정 재정의;
    배경·색상은 기존 규칙 유지) */
.column-1 .product-item .product-actions {
    flex-direction: row;
    align-items: center;
    gap: 6px;
}
.column-1 .product-item .view-detail {
    width: auto;
    height: auto;
    flex: 0 0 auto;
    flex-direction: row;
    padding: 6px 10px;
    font-size: 11px;
    white-space: nowrap;
    border-radius: 6px; /* cart/checkout 보조 버튼 기준 */
    /* 시안 6: 화이트 + 웜 보더 (전역 .view-detail 의 #E5DED2 배경은 컬럼2가 계속 사용) */
    background: #ffffff;
    border: 1px solid #d7cba8;
    color: #6e4f16;
}
.column-1 .product-item .view-detail:hover {
    /* 전역 .product-item .view-detail:hover { background: #E5DED2 !important } 무력화 */
    background: #f6f1e4 !important;
}

/* ============================================================
   홈 3컬럼 배색 — 시안 6 (5E 헤어라인 미니멀 존, 2026-06-11)
   · 컬럼 카드/헤어라인/액센트 바는 index.html 인라인 <style> 참조
   · 모든 규칙은 홈 전용 .column-1/2/3 스코프 — .pagination(admin/예치금),
     .filter-btn(장바구니 선택삭제 외 화면), .add-to-cart-btn(상세 팝업),
     .checkout-btn(타 페이지) 등 공유 클래스의 전역 규칙은 변경하지 않음
   ============================================================ */

/* 컬럼1: 페이지네이션 — 사이트 공통 표준(orders 기준) */
.column-1 .pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 16px;
}
.column-1 .pagination-controls .page-btn {
    min-width: 40px;
    height: 38px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2d8bf;
    border-radius: 6px;
    background: #fff;
    color: #6b5a2c;
    font-size: 14px;
    font-family: inherit;
    line-height: 1;
    cursor: pointer;
    transition: all 0.15s ease;
}
.column-1 .pagination-controls .page-btn:hover {
    background: #f6efdf;
    color: #5b4310;
    border-color: #d8cba8;
}
.column-1 .pagination-controls .page-btn.btn-primary {
    background: #5b4310;
    border-color: #5b4310;
    color: #fff;
}

/* 컬럼1: 카테고리 breadcrumb 도 직각 통일 */
.column-1 .cat3-selected {
    border-radius: 0;
    border-color: #e3dac2;
}

/* 컬럼2: 장바구니 담기 CTA — 샌드 버튼 (라운드 8px = cart/checkout 메인 CTA 기준) */
.column-2 .add-to-cart-btn {
    background-color: #ece0c2;
    color: #4a3a16;
    border-radius: 8px;
}

/* 컬럼2: 상세보기 버튼 — 컬럼1 상세 버튼과 동일 라운드 (전역 .view-detail radius 0 재정의) */
.column-2 .product-item .view-detail {
    border-radius: 6px;
    /* 컬럼1 '상세' 버튼과 동일 톤: 화이트 + 웜 보더 + 브라운 글자
       (전역 .product-item .view-detail 의 #E5DED2 배경 재정의) */
    background: #ffffff;
    border: 1px solid #d7cba8;
    color: #6e4f16;
}
.column-2 .product-item .view-detail:hover {
    /* 전역 :hover { background:#E5DED2 !important } 무력화 — 컬럼1과 동일 */
    background: #f6f1e4 !important;
}

/* 컬럼2: 수량 입력 — 컬럼3 .quantity-input(var(--radius-sm)=6px)과 동일 라운드 */
.column-2 .qty-input {
    border-radius: var(--radius-sm);
    border-color: #ddd3ba;
}

/* 컬럼3: 선택 컨트롤 — 선택삭제 버튼은 칩(.filter-btn.active) 공유라 여기서만 분리 재정의
   #cart-selection-bar(스크롤 영역 밖 고정 슬롯)에 렌더 → 스크롤바는 아이템 영역에만 */
.column-3 .cart-selection-controls {
    border-bottom-color: darkgray; /* 컬럼1 .products-list-vertical 구분선과 통일 */
    padding: 4px 0 10px; /* 기존 1rem 0 — 상단 간격 축소(위로 올림) */
    margin-bottom: 0;
}
/* 스크롤 영역(.cart-container)이 위 구분선(선택바 border-bottom)~아래 구분선
   (.cart-summary border-top)에 밀착 — 스크롤바가 구분선 사이에 정확히 위치 */
.column-3 .cart-container {
    margin-top: 0;
}
.column-3 .cart-summary {
    margin-top: 0; /* 전역 16px — 스크롤 영역 하단과 아래 구분선 사이 갭 원인 */
}
.column-3 .cart-selection-controls .select-delete-btn {
    background: #ffffff;
    border: 1px solid #d7cba8;
    color: #6e4f16;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 6px; /* cart 페이지 .select-delete-btn 기준 */
}
/* 컬럼3: 행 삭제 버튼 — cart 페이지 .cart-item-actions .filter-btn(6px) 기준 */
.column-3 .cart-item .remove-item.filter-btn {
    border-radius: 6px;
}
.column-3 input[type="checkbox"] {
    accent-color: #5b4310;
}
/* 장바구니 컬럼 타이틀 옆 선택 카운트 (n/m) */
.column-3 .column-header .select-count {
    color: #a08c5e;
    font-size: 13px;
    font-weight: 600;
    margin-left: 2px;
}

/* 컬럼3 장바구니 행: 2행 컴팩트 레이아웃
   1행 [체크박스 | 제품명] / 2행 [수량 스테퍼 | (우측) 합계 | 삭제]
   행 전체 클릭 시 체크박스 토글 (homepage.js bindCartItemEvents) */
.column-3 .cart-item {
    display: block; /* 전역 .cart-item display:flex(가로 1행) 재정의 */
    cursor: pointer;
    padding: 8px 4px;
    margin-bottom: 0;
}
.column-3 .cart-item .cart-item-row-top {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
}
.column-3 .cart-item .cart-item-row-top .cart-item-checkbox {
    flex: 0 0 auto;
    /* 체크박스(19.2px) 세로 중심을 제품명 첫 줄 라인박스(17px) 중심에 정렬 */
    margin: -1px 0 0;
}
.column-3 .cart-item .cart-item-row-top .cart-item-title {
    min-width: 0;
}
.column-3 .cart-item .cart-item-row-bottom {
    display: flex;
    align-items: center;
    gap: 10px;
}
.column-3 .cart-item .cart-item-row-bottom .cart-item-total {
    margin-left: auto;
}

/* 컬럼3: 주문하기 CTA — 딥브라운 (전역 .btn-primary #7B5A1C 는 유지; 라운드 8px = cart/checkout 메인 CTA 기준) */
.column-3 .checkout-btn {
    background-color: #5b4310;
    border-radius: 8px;
}
.column-3 .checkout-btn:hover {
    background-color: #4a3a16;
}
.column-3 .checkout-btn:disabled,
.column-3 .checkout-btn:disabled:hover {
    background: #5b4310;
}

/* ============================================================
   페이지 타이틀 표준 (마이페이지/사용자 페이지 공통, 2026-06-12)
   · 헤더 밑 페이지 제목 텍스트 — 폰트/크기/색 통일
   · 적용: orders/cards/point_transactions/boards/points/admin
   · 제외: 주문하기(홈/cart/checkout)·가격표(print/print_pdf/print_labels)
   ============================================================ */
.page-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    color: #3a2f1f;
    margin: 0 0 1.25rem;
}
.page-title i {
    font-size: 0.85em;
    color: #c9a961;
}

/* ============================================================
   플랫 드롭다운 표준 (홈 컬럼1 .cat3-select 기준, 2026-06-12)
   · Bootstrap form-select/form-control 의 둥근 모서리·파란 포커스 제거
   · 적용: 대상 select 에 class="... flat-select" 추가
   · 제외: print 계열(클래스 미부여로 무영향)
   ============================================================ */
.flat-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 1px solid #ddd3ba !important;
    border-radius: 0 !important;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='none' stroke='%236e4f16' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M1 1l4 4 4-4'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 10px 6px !important;
    padding-right: 28px !important;
    color: #6b5a2c;
    box-shadow: none !important;
}
.flat-select:focus {
    border-color: #c9a961 !important;
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.15) !important;
}

/* ============================================================
   수량 스테퍼 표준 — 시안 1 조인드 스테퍼 (2026-06-12)
   · [− | 수량 | +] 를 한 박스로 결합 — 적용 3곳:
     홈 컬럼2 상품정보 폼 / 홈 컬럼3 장바구니 행 / cart 페이지 행
   · 마크업: 기존 button + .quantity-input-wrapper 구조 유지(tooltip 형제
     셀렉터 보존), 감싸는 요소에 .qty-stepper 부여
   · 주의: overflow:hidden 금지 — .quantity-tooltip 이 잘림 → 모서리는
     버튼 개별 radius 로 처리
   ============================================================ */
.qty-stepper {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 1px solid #ddd3ba;
    border-radius: 6px;
    background: #fff;
}
.qty-stepper button {
    width: 34px;
    height: 34px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #6e4f16;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease;
}
.qty-stepper button:first-child { border-radius: 5px 0 0 5px; }
.qty-stepper button:last-child { border-radius: 0 5px 5px 0; }
.qty-stepper button:hover {
    background: #f6efdf;
    color: #5b4310;
}
.qty-stepper .quantity-input-wrapper {
    border-left: 1px solid #ece4cf;
    border-right: 1px solid #ece4cf;
}
.qty-stepper .quantity-input-wrapper input {
    width: 48px;
    height: 34px;
    border: none;
    border-radius: 0;
    background: #fff;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    color: #3a2f1f;
    box-shadow: none;
}
.qty-stepper .quantity-input-wrapper input:focus {
    outline: none;
    background: #fdfaf3;
    box-shadow: none; /* 전역 .qty-input:focus 파란 링 차단 */
}
/* .cart-item-quantity(gap 0.75rem)와 동시 사용 시 순서 의존 제거 */
.cart-item-quantity.qty-stepper { gap: 0; }
/* 홈 컬럼3 장바구니 행: 컴팩트 사이즈 */
.column-3 .qty-stepper button { width: 27px; height: 27px; font-size: 14px; }
.column-3 .qty-stepper .quantity-input-wrapper input { width: 40px; height: 27px; font-size: 13px; }

/* ============================================================
   사이트 푸터 (2026-06-12) — 전역 하단, 웜톤
   · base.html <main> 다음에 렌더, 모든 페이지 공통
   · 콘텐츠~푸터 간격(margin-top)이 각 페이지 하단 여백 역할
   ============================================================ */
.site-footer {
    margin-top: 64px;
    border-top: 1px solid #e6ddc8;
    background: #faf6ec;
    color: #6b5a43;
}
.footer-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 40px 16px 32px;
}
.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 32px 48px;
    justify-content: space-between;
    align-items: flex-start;
}
.footer-brand-name {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #3a2f1f;
}
.footer-company {
    margin: 6px 0 0;
    font-size: 13px;
    color: #8a7a5e;
}
.footer-bottom {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #ece2cd;
    font-size: 12px;
    color: #a3927a;
}
@media (max-width: 768px) {
    .footer-top { flex-direction: column; gap: 24px; }
}
