/*
 * 횡성더덕직판장 - 반응형 테마
 * 색상: 딥 그린(#2D4F1E), 어스 브라운(#A67C52), 샌드 베이지(#F5EFE6)
 */

/* ==================== 기본 설정 ==================== */
:root {
    --primary-color: #2D4F1E;
    --accent-color: #A67C52;
    --light-bg: #F5EFE6;
    --text-dark: #333333;
    --text-light: #666666;
    --border-color: #E0D7C8;
    --white: #FFFFFF;
    --success: #4CAF50;
    --warning: #FF9800;
    --danger: #F44336;

    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;

    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
}

/* ==================== Typography ==================== */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
}

h1 { font-size: 32px; }
h2 { font-size: 28px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }
h5 { font-size: 16px; }
h6 { font-size: 14px; }

p {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

/* ==================== Button ==================== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    width: auto;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.8);
}

.btn-primary:hover {
    background-color: #1f3a15;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #8e6a47;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-light {
    background-color: var(--light-bg);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

/* ==================== Header & Navigation ==================== */
.header {
    background: linear-gradient(135deg, #152b0d 0%, #2D4F1E 45%, #3d6b28 80%, #2a5520 100%);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(166, 124, 82, 0.35);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    margin: 0;
}

.logo h1 a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white) !important;
}

.logo-icon {
    flex-shrink: 0;
}

.logo-name {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.05em;
    background: linear-gradient(90deg, #ffffff 30%, #C4A064 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.88) !important;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.04em;
    position: relative;
    padding-bottom: 2px;
    display: inline-block;
    transition: color 0.25s ease, transform 0.25s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), #c89a6a);
    border-radius: 1px;
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--white) !important;
    transform: translateY(-3px);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* ==================== Dropdown Menu ==================== */
.has-dropdown {
    position: relative;
}

.dropdown-arrow {
    font-size: 11px;
    opacity: 0.7;
    transition: transform 0.25s ease;
    display: inline-block;
}

.has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: linear-gradient(180deg, #1e3a14 0%, #152b0d 100%);
    border: 1px solid rgba(196, 160, 100, 0.25);
    border-top: 2px solid #C4A064;
    border-radius: 0 0 8px 8px;
    list-style: none;
    min-width: 150px;
    padding: 6px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 200;
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown li + li {
    border-top: 1px solid rgba(196, 160, 100, 0.1);
}

.dropdown a {
    display: block !important;
    padding: 11px 20px !important;
    color: rgba(255, 255, 255, 0.82) !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    letter-spacing: 0.05em !important;
    white-space: nowrap;
    transform: none !important;
}

.dropdown a::after {
    display: none !important;
}

.dropdown a::before {
    display: none !important;
}

.dropdown a:hover {
    background: rgba(196, 160, 100, 0.12);
    color: var(--white) !important;
    transform: none !important;
}

/* ==================== Header Icons ==================== */
.header-icons {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.icon-link {
    font-weight: 500;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    transition: all 0.25s ease;
}

.icon-link:hover {
    color: var(--white) !important;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.4);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--white);
    margin: 4px 0;
    border-radius: 2px;
    transition: var(--transition);
}

/* ==================== Shop Category Bar ==================== */
.shop-cat-bar {
    background: var(--white);
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 90;
}

.shop-cat-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.shop-cat-inner::-webkit-scrollbar {
    display: none;
}

.shop-cat-btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: color 0.2s ease, border-color 0.2s ease;
    letter-spacing: 0.03em;
    margin-bottom: -2px;
}

.shop-cat-btn:hover {
    color: var(--primary-color);
    border-bottom-color: rgba(45, 79, 30, 0.3);
}

.shop-cat-btn.active {
    color: var(--primary-color);
    font-weight: 700;
    border-bottom-color: var(--primary-color);
}

/* ==================== Hero Section ==================== */
.hero {
    position: relative;
    min-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--spacing-2xl) var(--spacing-md);
    max-width: 700px;
}

.hero h2 {
    font-size: 42px;
    line-height: 1.4;
    margin-bottom: var(--spacing-lg);
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero p {
    font-size: 20px;
    color: rgba(255,255,255,0.9);
    margin-bottom: var(--spacing-lg);
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.hero-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4a7c3f 0%, #2D4F1E 50%, #A67C52 100%);
}

.hero-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.25);
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-background img[src=""],
.hero-background img:not([src]) {
    display: none;
}

/* ==================== Featured Products ==================== */
.featured-products {
    padding: var(--spacing-2xl) var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-header h3 {
    font-size: 32px;
}

.section-header p {
    font-size: 16px;
    color: var(--text-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.product-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

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

.product-image {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #f0ebe1 0%, #e8e0d0 100%);
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background-color: var(--primary-color);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
}

.badge-new {
    background-color: var(--accent-color);
}

.badge-sale {
    background-color: var(--danger);
}

.product-info {
    padding: var(--spacing-lg);
}

.product-info h4 {
    margin-bottom: var(--spacing-sm);
}

.product-desc {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.product-price {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.original-price {
    font-size: 14px;
    color: var(--text-light);
    text-decoration: line-through;
}

.unit {
    font-size: 12px;
    color: var(--text-light);
}

.product-card .btn {
    width: 100%;
}

/* ==================== About Section ==================== */
.about {
    padding: var(--spacing-2xl) var(--spacing-md);
    background-color: var(--light-bg);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about-text h3 {
    font-size: 28px;
    margin-bottom: var(--spacing-lg);
}

.about-features {
    list-style: none;
    margin-bottom: var(--spacing-lg);
}

.about-features li {
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border-color);
}

.about-features li:last-child {
    border-bottom: none;
}

.about-features strong {
    color: var(--primary-color);
}

.about-image {
    border-radius: 8px;
    overflow: hidden;
    height: 400px;
    background: linear-gradient(135deg, #4a7c3f 0%, #2D4F1E 100%);
}

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

/* ==================== Blog Section ==================== */
.blog {
    padding: var(--spacing-2xl) var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.blog-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.blog-card:hover {
    box-shadow: var(--shadow-md);
}

.blog-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #d4e8c8 0%, #a8c890 100%);
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: var(--spacing-lg);
}

.blog-date {
    display: inline-block;
    font-size: 12px;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.blog-card h4 {
    margin-bottom: var(--spacing-md);
}

.blog-card p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.read-more {
    font-weight: 600;
    color: var(--primary-color);
}

/* ==================== CTA Section ==================== */
.cta {
    padding: var(--spacing-2xl) var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    text-align: center;
}

.cta-content h3 {
    color: var(--white);
    font-size: 28px;
    margin-bottom: var(--spacing-md);
}

.cta-content p {
    color: var(--white);
    font-size: 16px;
    margin-bottom: var(--spacing-lg);
}

/* ==================== Footer ==================== */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: var(--spacing-2xl) var(--spacing-md) var(--spacing-lg);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section h5 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: var(--spacing-md);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-section a:hover {
    color: var(--white);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: var(--spacing-sm);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: var(--spacing-lg);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    margin: 0;
}

.footer-device-links {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.footer-device-btn {
    display: inline-block;
    padding: 5px 14px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s;
}

.footer-device-btn:hover {
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.6);
}

/* ==================== 반응형 디자인 ==================== */

/* 태블릿 (768px ~ 1023px) */
@media (max-width: 1023px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .hero {
        min-height: 400px;
    }

    .hero h2 {
        font-size: 30px;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .about-image {
        height: 300px;
        order: -1;
    }

    h1 { font-size: 24px; }
    h2 { font-size: 22px; }
    h3 { font-size: 20px; }
}

/* 모바일 (320px ~ 767px) */
@media (max-width: 767px) {
    /* Typography */
    h1 { font-size: 20px; }
    h2 { font-size: 18px; }
    h3 { font-size: 16px; }
    h4 { font-size: 16px; }

    /* Header */
    .navbar-container {
        padding: var(--spacing-md);
    }

    .nav-menu {
        align-items: stretch;
    }

    .nav-menu > li {
        width: 100%;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: linear-gradient(180deg, #1e3a14 0%, #152b0d 100%);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
        padding: 8px 0 20px;
        gap: 0;
        width: 100%;
        border-top: 1px solid rgba(196, 160, 100, 0.3);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li + li {
        border-top: 1px solid rgba(196, 160, 100, 0.1);
    }

    .nav-menu > li > a {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 15px;
        font-weight: 500;
        letter-spacing: 0.1em;
        padding: 15px 28px;
        border-bottom: none;
        transition: background 0.2s ease, padding-left 0.2s ease;
    }

    .nav-menu a::before {
        content: '';
        display: inline-block;
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: #C4A064;
        margin-right: 14px;
        flex-shrink: 0;
        opacity: 0.55;
        transition: opacity 0.2s, transform 0.2s;
    }

    .nav-menu a::after {
        display: none;
    }

    .nav-menu > li > a:hover {
        background: rgba(196, 160, 100, 0.1);
        transform: none;
    }

    .nav-menu > li > a:hover::before {
        opacity: 1;
        transform: scale(1.4);
    }

    .dropdown a:hover {
        background: rgba(196, 160, 100, 0.1) !important;
    }

    /* 모바일 드롭다운 */
    .has-dropdown .dropdown {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        border-top: 1px solid rgba(196, 160, 100, 0.2);
        border-radius: 0;
        background: rgba(0, 0, 0, 0.2);
        padding: 0;
        display: none;
        transition: none;
        width: 100%;
        min-width: 0;
    }

    .has-dropdown {
        width: 100%;
    }

    /* 모바일에서 hover 드롭다운 완전 비활성화 */
    .has-dropdown:hover .dropdown {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transform: none !important;
    }

    .has-dropdown:hover .dropdown-arrow {
        transform: none;
    }

    /* 클릭으로 열린 경우에만 표시 (hover 규칙보다 나중에 선언해야 우선 적용) */
    .has-dropdown .dropdown.open {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .dropdown-arrow.open {
        transform: rotate(180deg);
        display: inline-block;
    }

    .dropdown a {
        display: flex !important;
        justify-content: center !important;
        padding: 12px 28px !important;
        font-size: 14px !important;
        border-top: 1px solid rgba(196, 160, 100, 0.08);
    }

    .dropdown a::before {
        display: none !important;
    }

    .header-icons {
        gap: var(--spacing-sm);
    }

    .icon-link {
        font-size: 12px;
        padding: 5px 10px;
    }

    .menu-toggle {
        display: flex;
        order: -1;
    }

    /* Hero */
    .hero {
        min-height: 320px;
    }

    .hero-content {
        padding: var(--spacing-xl) var(--spacing-md);
    }

    .hero h2 {
        font-size: 22px;
    }

    .hero p {
        font-size: 14px;
    }

    /* Products */
    .featured-products {
        padding: var(--spacing-xl) var(--spacing-md);
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .section-header h3 {
        font-size: 20px;
    }

    /* About */
    .about {
        padding: var(--spacing-xl) var(--spacing-md);
    }

    .about-container {
        gap: var(--spacing-lg);
    }

    .about-text h3 {
        font-size: 20px;
    }

    .about-image {
        height: 250px;
    }

    /* Blog */
    .blog {
        padding: var(--spacing-xl) var(--spacing-md);
    }

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

    .blog-image {
        height: 200px;
    }

    /* CTA */
    .cta-content h3 {
        font-size: 20px;
    }

    .cta-content p {
        font-size: 14px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* 초소형 모바일 (320px ~ 479px) */
@media (max-width: 479px) {
    h1 { font-size: 18px; }
    h2 { font-size: 16px; }
    h3 { font-size: 14px; }

    .logo-name {
        font-size: 18px;
    }

    .logo-icon {
        width: 22px;
        height: 22px;
    }

    .hero p {
        font-size: 13px;
    }

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

    .section-header h3 {
        font-size: 18px;
    }

    .section-header p {
        font-size: 13px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 12px;
    }
}

/* ==================== 게시판 페이지 레이아웃 ==================== */

#wrap {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 var(--spacing-md);
    min-height: 60vh;
}

/* 게시판 공통 */
.g5_board_list,
.g5_write,
.g5_view {
    font-family: 'Noto Sans KR', sans-serif;
}

.bo_subject a {
    color: var(--text-dark) !important;
}

.bo_subject a:hover {
    color: var(--primary-color) !important;
}

.btn_submit,
.btn_cancel,
input[type="submit"] {
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
    border: none !important;
    padding: 8px 20px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
}

.btn_cancel {
    background-color: var(--text-light) !important;
}

/* 페이지네이션 */
.pg_wrap a,
.pg_wrap strong {
    color: var(--primary-color) !important;
}

/* ==================== Gnuboard 기본 구조 오버라이드 ==================== */

/* 헤더 */
#hd {
    background-color: var(--white) !important;
    border-bottom: 1px solid var(--border-color) !important;
}

#logo {
    padding: var(--spacing-md) 0 !important;
}

#logo a {
    color: var(--primary-color) !important;
    font-weight: 700 !important;
}

/* 네비게이션 */
#gnb {
    background-color: var(--white) !important;
    border-top: 1px solid var(--border-color) !important;
}

.gnb_1dli > a,
.gnb_1dli > button {
    color: var(--primary-color) !important;
    font-weight: 500 !important;
}

.gnb_1dli > a:hover,
.gnb_1dli > button:hover {
    color: var(--accent-color) !important;
}

/* 메인 콘텐츠 */
#wrapper {
    background-color: var(--white) !important;
}

#container {
    background-color: var(--white) !important;
}

/* 푸터 */
#ft {
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
}

#ft_link a {
    color: rgba(255, 255, 255, 0.8) !important;
}

#ft_link a:hover {
    color: var(--white) !important;
}

#ft_company {
    color: rgba(255, 255, 255, 0.8) !important;
}

#ft_copy {
    color: rgba(255, 255, 255, 0.6) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* Gnuboard 게시판 버튼 스타일 */
.btn_b01, .btn_b02, .btn_b03 {
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 6px 14px !important;
    font-size: 13px !important;
    cursor: pointer !important;
    white-space: nowrap !important;
}

.btn_b02 {
    background-color: var(--accent-color) !important;
}

/* 검색 submit 버튼 */
.sch_btn,
#btn_sch {
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
}

/* ==================== 회원 비밀번호 확인 ==================== */
#mb_confirm {
    max-width: 480px;
    margin: 60px auto;
    padding: 0 16px;
    text-align: center;
}

#mb_confirm h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
}

#mb_confirm > p {
    margin-bottom: 32px;
    line-height: 1.8;
}

#mb_confirm > p strong {
    display: block;
    font-size: 16px;
    color: var(--accent-color);
    margin-bottom: 8px;
}

#mb_confirm fieldset {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    background: var(--white);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

#mb_confirm .confirm_id {
    font-size: 13px;
    color: var(--text-light);
}

#mb_confirm #mb_confirm_id {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 4px;
}

#mb_confirm .frm_input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

#mb_confirm .frm_input:focus {
    outline: none;
    border-color: var(--primary-color);
}

#mb_confirm #btn_submit {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 4px;
}

#mb_confirm #btn_submit:hover {
    background-color: #1e3614;
}

/* ==================== 접근성 유틸리티 ==================== */
#hd_pop h2 {
    display: none;
}

.sound_only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ==================== 로그인 / 회원가입 공통 ==================== */
#wrap #mb_login,
#wrap .mbskin {
    max-width: 760px;
    margin: 60px auto;
    padding: 0 16px;
}

#mb_login .mbskin_box {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-md);
}

@media (max-width: 600px) {
    #wrap #mb_login,
    #wrap .mbskin {
        margin: 20px auto;
        padding: 0 8px;
    }
    #mb_login .mbskin_box {
        padding: 24px 20px;
        border-radius: 8px;
    }
}

#mb_login .mbskin_box > h1 {
    display: none;
}

#mb_login .mb_log_cate {
    display: flex;
    margin-bottom: 32px;
    border-bottom: 2px solid var(--border-color);
}

#mb_login .mb_log_cate h2 {
    flex: 1;
    padding-bottom: 12px;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: -2px;
}

#mb_login .mb_log_cate .join {
    padding: 0 16px 12px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
}

#mb_login .mb_log_cate .join:hover {
    color: var(--primary-color);
}

#login_fs {
    border: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#login_fs .frm_input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

#login_fs .frm_input:focus {
    outline: none;
    border-color: var(--primary-color);
}

#login_fs .btn_submit {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 4px;
}

#login_fs .btn_submit:hover {
    background-color: #1e3614;
}

#login_info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-light);
    white-space: nowrap;
    gap: 8px;
}

#login_info .login_if_auto,
#login_info .login_if_lpl {
    white-space: nowrap;
}

#login_info a {
    color: var(--text-light);
    text-decoration: none;
}

#login_info a:hover {
    color: var(--primary-color);
}

#login_fs .chk_box {
    display: flex;
    align-items: center;
    gap: 6px;
}

#login_fs .chk_box input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* ==================== 게시판 공통 ==================== */
#bo_list {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 var(--spacing-md);
}

.bo_page_title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
}

/* 게시판 목록 여백 및 컬럼 너비 (스킨 기본값 × 1.5) */
#bo_list .tbl_head01 table { width: 100%; }
#bo_list .tbl_head01 th,
#bo_list .tbl_head01 td { padding: 10px 12px; }
#bo_list .tbl_head01 th {
    white-space: nowrap;
    background: var(--primary-color);
    color: #fff;
}
#bo_list .tbl_head01 th a {
    color: #fff;
    text-decoration: none;
}
#bo_list .tbl_head01 caption {
    display: none;
}
#bo_list .td_chk, #bo_list .all_chk { width: 45px; border: none !important; }
#bo_list .td_num                     { width: 75px; }
#bo_list .td_name                    { width: 200px; white-space: nowrap; }
#bo_list .td_num2                    { width: 110px; white-space: nowrap; }
#bo_list .td_datetime                { width: 90px; }

/* ==================== 주문 폼 ==================== */
#sod_frm {
    max-width: 1100px;
    margin: 32px auto;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 주문 상품 목록 테이블 */
.tbl_head03.tbl_wrap {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.tbl_head03 table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.tbl_head03 thead th {
    background: var(--primary-color);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    padding: 12px 10px;
    text-align: center;
    border: none;
}

.tbl_head03 tbody td {
    padding: 14px 10px;
    font-size: 14px;
    border-bottom: 1px solid #f0ebe3;
    text-align: center;
    vertical-align: middle;
}

.tbl_head03 tbody .td_prd {
    text-align: left;
}

.sod_name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 14px;
}

.sod_opt {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}

.sod_img img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.text_right { text-align: right !important; }

/* 좌우 레이아웃 */
.sod_left {
    flex: 1;
    min-width: 0;
}

.sod_right {
    width: 100%;
    flex-shrink: 0;
}

/* 섹션 공통 */
#sod_frm_orderer,
#sod_frm_taker,
#sod_frm_pay {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}

#sod_frm_orderer h2,
#sod_frm_taker h2,
#sod_frm_pay h2,
#sod_frm_orderer h3,
#sod_frm_taker h3,
#sod_frm_pay h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
}

/* 폼 테이블 */
.tbl_frm01 {
    width: 100%;
}

.tbl_frm01 table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.tbl_frm01 th {
    width: 100px;
    padding: 10px 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light);
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}

.tbl_frm01 td {
    padding: 8px 4px;
    vertical-align: middle;
}

/* 입력 필드 */
.frm_input,
.tbl_frm01 input[type="text"],
.tbl_frm01 input[type="email"],
.tbl_frm01 input[type="tel"],
.tbl_frm01 input[type="password"],
.tbl_frm01 textarea,
.tbl_frm01 select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: var(--text-color);
    background: #fafafa;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.frm_input:focus,
.tbl_frm01 input[type="text"]:focus,
.tbl_frm01 input[type="email"]:focus,
.tbl_frm01 textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
}

.btn_address {
    padding: 8px 14px;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}

.btn_address:hover {
    background: #8a6240;
}

/* 배송지 선택 */
.order_choice_place label {
    margin-right: 12px;
    font-size: 14px;
    cursor: pointer;
}

/* 주문 요약 */
#sod_bsk_tot {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}

#sod_bsk_tot ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#sod_bsk_tot li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid #f0ebe3;
    color: var(--text-color);
}

#sod_bsk_tot li:last-child {
    border-bottom: none;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    padding-top: 14px;
}

/* 결제 섹션 */
#od_tot_price {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    padding: 16px;
    background: var(--light-bg);
    border-radius: 8px;
    margin-bottom: 16px;
}

.pay_tbl {
    width: 100%;
    margin-bottom: 16px;
}

.pay_tbl table {
    width: 100%;
    border-collapse: collapse;
}

.pay_tbl th {
    width: 120px;
    padding: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    text-align: left;
    white-space: nowrap;
    border-bottom: 1px solid #f0ebe3;
}

.pay_tbl td {
    padding: 10px;
    font-size: 14px;
    border-bottom: 1px solid #f0ebe3;
}

#od_pay_sl label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: border-color 0.2s, background 0.2s;
}

#od_pay_sl label:hover {
    border-color: var(--primary-color);
    background: #f5f0e8;
}

#od_pay_sl input[type="radio"]:checked + label,
#od_pay_sl label:has(input[type="radio"]:checked) {
    border-color: var(--primary-color);
    background: #f0f5ec;
}

/* 주문 버튼 */
.od_pay_buttons_el {
    display: block;
    margin-top: 8px;
}

.od_pay_buttons_el input[type="submit"],
.od_pay_buttons_el button[type="submit"] {
    flex: 1;
    padding: 16px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.od_pay_buttons_el input[type="submit"]:hover,
.od_pay_buttons_el button[type="submit"]:hover {
    background: #1a3010;
}

.od_pay_buttons_el a,
.od_pay_buttons_el input[type="button"],
.od_pay_buttons_el button[type="button"] {
    flex: 0 0 auto;
    padding: 16px 24px;
    background: #fff;
    color: var(--text-color);
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: background 0.2s;
}

.od_pay_buttons_el a:hover,
.od_pay_buttons_el input[type="button"]:hover {
    background: #f5f5f5;
}

@media (max-width: 768px) {
    #sod_frm {
        padding: 0 12px;
    }

    .tbl_frm01 th {
        width: 80px;
        font-size: 12px;
    }

    .sod_right {
        width: 100%;
    }
}

/* ==================== 로그인 스킨 오버라이드 ==================== */

/* fieldset 좌우 여백 절반 */
#login_fs {
    padding: 35px 17px !important;
}


/* 로그인/회원가입 탭 수직 정렬 */
.mb_log_cate h2,
.mb_log_cate .join {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 62px;
    padding: 0;
    box-sizing: border-box;
}

/* 자동로그인 / 아이디비밀번호 찾기 간격 */
#login_info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#login_info .login_if_auto,
#login_info .login_if_lpl {
    float: none;
}

/* ==================== 모바일 게시판 스킨 공통 개선 ==================== */
/* 상단 버튼 영역 - ul bullet 제거 및 오른쪽 정렬 (기본/갤러리 공통) */
.btn_top.btn_bo_user {
    list-style: none !important;
    padding: 0 10px !important;
    margin: 0 0 8px !important;
    display: flex !important;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
}
.btn_top.btn_bo_user li {
    float: none !important;
    list-style: none !important;
    margin: 0 !important;
}

/* 글쓰기 버튼 */
.fix_btn.write_btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: var(--primary-color);
    color: #fff !important;
    border-radius: 50%;
    text-decoration: none;
    font-size: 14px;
}

/* 전체건수 바 - 심플하게 */
#bo_list_total {
    background: transparent !important;
    color: #666 !important;
    border-radius: 0 !important;
    padding: 8px 10px !important;
    font-size: 0.9em;
    text-align: left !important;
}

/* ==================== 모바일 기본 게시판 스킨 개선 ==================== */
/* 목록 아이템 */
#bo_list .list_01 ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
#bo_list .list_01 li {
    padding: 12px 10px;
    border-bottom: 1px solid #eee;
}
#bo_list .list_01 li.bo_notice {
    background: #f9f9f7;
}
/* 제목 */
#bo_list .bo_subject {
    display: block;
    font-size: 0.97em;
    font-weight: 600;
    color: #222;
    margin-bottom: 5px;
    text-decoration: none;
    line-height: 1.4;
}
#bo_list .bo_subject:hover { color: var(--primary-color); }
/* 작성자/날짜/조회 */
#bo_list .bo_info {
    font-size: 0.82em;
    color: #888;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
/* 검색 폼 */
#bo_sch {
    margin: 12px 10px;
    border-radius: 6px;
    border: 1px solid #ddd !important;
}

/* ==================== 모바일 갤러리 스킨 개선 ==================== */
/* 이미지 컨테이너 */
#bo_gall .gall_img {
    display: block;
}
#bo_gall .gall_li .gall_img img {
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
    border-radius: 4px;
}
/* excerpt 텍스트 */
#bo_gall .bo_cnt {
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.82em;
    color: #777;
    margin: 4px 0 6px;
    line-height: 1.4;
    font-weight: normal;
}
/* 갤러리 타이틀 링크 */
#bo_gall .gall_li_tit {
    font-size: 0.92em;
}

/* 모바일 #wrap 상단 여백 축소 */
@media (max-width: 768px) {
    #wrap {
        margin-top: 20px;
    }
    .shop-cat-btn {
        padding: 10px 12px;
        font-size: 13px;
    }

    /* 메인 섹션 제목 카테고리 화면에 맞게 조정 */
    .sct_wrap header {
        padding: 20px 0 8px !important;
    }
    .sct_wrap h2 {
        font-size: 1.1em !important;
    }

    /* 메인 상품명 */
    .sct_wrap .sct_txt {
        font-size: 0.9em !important;
        font-weight: 600 !important;
        border-bottom: none !important;
        margin: 5px 0 !important;
        padding-bottom: 3px !important;
    }

    /* 메인 가격 */
    .sct_wrap .sct_cost {
        font-size: 0.9em !important;
        font-weight: 600 !important;
    }

    /* 메인 히트상품/추천상품 이미지 정사각형 */
    #idx_hit .sct_img,
    .smt_20 .sct_img {
        aspect-ratio: 1 / 1;
        overflow: hidden;
    }
    #idx_hit .sct_img img,
    .smt_20 .sct_img img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
}

/* 모바일 쇼핑몰 상품 목록 2열 */
@media (max-width: 768px) {
    ul.sct_10,
    ul.smt_10,
    ul.sct_30 {
        display: flex !important;
        flex-wrap: wrap !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    ul.sct_10 .sct_li,
    ul.smt_10 .sct_li,
    ul.sct_30 .sct_li {
        width: 50% !important;
        float: none !important;
        box-sizing: border-box !important;
        margin-right: 0 !important;
        padding: 5px !important;
        overflow: hidden !important;
    }
    ul.sct_10 .sct_img img,
    ul.smt_10 .sct_img img,
    ul.sct_30 .sct_img img,
    ul.smt_40 .sct_img img {
        width: 100% !important;
        height: auto !important;
    }
    /* bxSlider 무력화 (히트상품) */
    .st_30_wr .bx-wrapper {
        max-width: 100% !important;
        overflow: visible !important;
        box-shadow: none !important;
        border: none !important;
        margin-bottom: 0 !important;
    }
    .st_30_wr .bx-viewport {
        height: auto !important;
        overflow: visible !important;
    }
    .st_30_wr ul.sct_30 {
        width: 100% !important;
        left: 0 !important;
        transform: none !important;
        position: static !important;
    }
    .st_30_wr ul.sct_30 .bx-clone {
        display: none !important;
    }

    /* 히트상품 OWL carousel 2열 - owl-item 내 li/img 크기 강제 */
    #idx_hit .owl-item .sct_li {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 5px !important;
    }
    #idx_hit .owl-item .sct_img img {
        width: 100% !important;
        height: auto !important;
    }

    /* smt_20 추천상품 롤링 → 모바일 2열 그리드 변환 */
    .smt_20 {
        overflow: visible !important;
        height: auto !important;
    }
    .smt_20 .sct_ul {
        display: flex !important;
        flex-wrap: wrap !important;
        position: static !important;
        width: 100% !important;
        top: auto !important;
    }
    .smt_20 .sct_li {
        width: 50% !important;
        float: none !important;
        box-sizing: border-box !important;
        padding: 5px !important;
        margin: 0 0 10px !important;
    }
    .smt_20 .sct_img img {
        width: 100% !important;
        height: auto !important;
    }
    /* 롤링 컨트롤 버튼 숨김 */
    ul.sctrl {
        display: none !important;
    }
}

/* 히트상품 섹션 연한 그린 배경 */
#idx_hit {
    margin-top: 12px;
}
#idx_hit,
#best_item {
    background-color: #EBF3E4;
    border-radius: 8px;
    padding: 0 16px 16px;
}
/* #best_item h2를 카드 이미지 왼쪽 끝과 맞춤 (sct_li padding 5px 보정) */
#best_item h2 {
    margin-left: 5px !important;
}
#idx_hit .sct_li,
#best_item .sct_li {
    background-color: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
@media (max-width: 768px) {
    #idx_hit,
    #best_item {
        padding: 0 6px 12px;
    }
}

/* 히트상품 제목 스타일 통일 */
#idx_hit h2,
#idx_hit h2 a,
#best_item h2 {
    font-size: 1.1em !important;
    color: #2D4F1E !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

/* 메인 히트상품 카드 내부 패딩 */
#idx_hit .sct_ct_wrap {
    padding: 6px 8px 6px;
}

/* 카테고리 히트상품 상품명/가격 통일 */
#best_item .sct_txt {
    font-size: 0.9em !important;
    font-weight: 600 !important;
    border-bottom: none !important;
    margin: 0 !important;
    padding: 6px 8px 2px !important;
}
#best_item .sct_cost {
    font-size: 0.9em !important;
    font-weight: 600 !important;
    padding: 0 8px 6px !important;
    margin: 0 !important;
}

/* 카테고리 일반 상품 목록 상품명/가격 히트상품과 통일 */
ul.sct_10 .sct_txt {
    font-size: 0.9em !important;
    font-weight: 600 !important;
    border-bottom: none !important;
    margin: 0 !important;
    padding: 6px 8px 2px !important;
    line-height: 1.3 !important;
}
ul.sct_10 .sct_cost {
    font-size: 0.9em !important;
    font-weight: 600 !important;
    margin: 0 !important;
    padding: 0 8px 6px !important;
}

/* 수량 조절 레이아웃 (HTML은 id="sit_sel_option", 스킨 CSS는 class 선택자라 미적용 상태) */
#sit_sel_option li {
    position: relative;
    padding: 15px;
    border-bottom: 2px solid #e6e9ed;
}
#sit_sel_option .opt_name {
    display: block;
    font-weight: bold;
    line-height: 28px;
    padding-bottom: 8px;
}
#sit_sel_option .opt_count {
    display: flex;
    align-items: center;
    gap: 0;
    border-top: 2px solid #e6e9ed;
    padding-top: 8px;
}
#sit_sel_option .sit_qty_minus,
#sit_sel_option .sit_qty_plus {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border: 1px solid #bdc9dc;
    background: #fff;
    color: #666;
    font-size: 0.92em;
    cursor: pointer;
}
#sit_sel_option .num_input {
    width: 50px !important;
    height: 30px;
    border: 0;
    border-top: 1px solid #e4e4e4;
    border-bottom: 1px solid #e4e4e4;
    text-align: center;
    flex-shrink: 0;
}
#sit_sel_option .sit_opt_prc {
    margin-left: 10px;
    font-size: 1.1em;
    font-weight: bold;
}

/* 모바일 베스트상품 슬라이드 인디케이터 버튼 숨김 (그리드로 대체) */
.bst_silde_btn { display: none !important; }

/* PC 카테고리 상품 목록 상품명/가격/배지 가운데 정렬 */
@media (min-width: 769px) {
    .sct_10 .sct_txt,
    .sct_10 .sct_cost,
    .sct_10 .sit_icon_li {
        text-align: center !important;
    }
}

/* 히트상품 2열 flex 고정 + 이미지 크기 통일 */
#best_item .sct_best {
    display: flex !important;
    flex-wrap: wrap !important;
    float: none !important;
    width: 100% !important;
}
#best_item .sct_li {
    width: 50% !important;
    float: none !important;
    box-sizing: border-box !important;
    padding: 5px !important;
}
#best_item .sct_img {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    margin: 0 !important;
}
#best_item .sct_img .sct_a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    white-space: normal !important;
}
#best_item .sct_img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}


/* ==================== 팝업레이어 ==================== */
#hd_pop {
    z-index: 1000;
    position: relative;
    margin: 0 auto;
    max-width: 1200px;
    height: 0;
}

#hd_pop h2 {
    position: absolute;
    font-size: 0;
    line-height: 0;
    overflow: hidden;
}

.hd_pops {
    position: absolute;
    background: var(--white);
    border: 4px solid #C62828;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.hd_pops:before {
    content: "";
    display: block;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

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

.hd_pops_con {
    max-width: 100%;
    padding: var(--spacing-lg);
    background: var(--light-bg);
    color: var(--text-dark);
    font-size: 15px;
    line-height: 1.8;
    overflow: auto;
}

.hd_pops_con h1,
.hd_pops_con h2,
.hd_pops_con h3,
.hd_pops_con h4 {
    color: var(--primary-color);
}

.hd_pops_con strong,
.hd_pops_con b {
    color: var(--primary-color);
}

.hd_pops_con a {
    color: var(--accent-color);
    text-decoration: underline;
}

.hd_pops_footer {
    padding: 0;
    position: relative;
    background: var(--primary-color);
    border-top: 3px solid var(--accent-color);
    color: var(--white);
    text-align: left;
}

.hd_pops_footer:after {
    display: block;
    visibility: hidden;
    clear: both;
    content: "";
}

.hd_pops_footer button {
    padding: 12px 16px;
    border: 0;
    background: transparent;
    color: var(--white);
    font-family: inherit;
    font-size: 13px;
    letter-spacing: -0.2px;
    cursor: pointer;
    transition: var(--transition);
}

.hd_pops_footer .hd_pops_reject {
    text-align: left;
    opacity: 0.9;
}

.hd_pops_footer .hd_pops_reject strong {
    color: var(--light-bg);
    font-weight: 700;
}

.hd_pops_footer .hd_pops_reject:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.08);
}

.hd_pops_footer .hd_pops_close {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    padding: 12px 18px;
    background: var(--accent-color);
    font-weight: 700;
}

.hd_pops_footer .hd_pops_close:hover {
    background: #8d6743;
}

@media (max-width: 768px) {
    #hd_pop {
        width: 100%;
    }

    .hd_pops {
        left: 0 !important;
        max-width: calc(100% - 20px);
        margin: 0 10px;
        border-width: 3px;
    }

    .hd_pops_con {
        width: 100% !important;
        max-height: 65vh;
        padding: var(--spacing-md);
        font-size: 14px;
    }

    .hd_pops_footer button {
        padding: 10px 12px;
        font-size: 12px;
    }

    .hd_pops_footer .hd_pops_close {
        padding: 10px 14px;
    }
}

/* ==================== 주문서 결제수단 ==================== */
#od_pay_sl h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 12px;
    padding: 0;
    border: none;
}

#sod_frm_pt_alert {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-light);
}

#sod_frm_paysel {
    width: 100%;
    margin: 0;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #fff;
}

#sod_frm_paysel legend {
    padding: 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
}

#sod_frm_paysel label.lb_icon {
    display: inline-flex;
    align-items: center;
    margin: 0 8px 8px 0;
    padding: 10px 18px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

#sod_frm_paysel label.lb_icon:hover {
    border-color: var(--primary-color);
    background: var(--light-bg);
}

#sod_frm_paysel input[type="radio"]:checked + label.lb_icon {
    border-color: var(--primary-color);
    background: #f0f5ec;
    font-weight: 700;
    color: var(--primary-color);
}

#sod_frm_paysel #od_bank_account,
#sod_frm_paysel #od_deposit_name {
    width: auto;
    min-width: 220px;
    margin-top: 8px;
    padding: 9px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #fafafa;
}

#sod_frm_paysel label[for="od_deposit_name"] {
    display: inline-block;
    margin: 12px 8px 0 0;
    font-size: 14px;
    color: var(--text-light);
}

/* 주문 버튼 영역 */
#display_pay_button,
.btn_confirm {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 24px;
}

.btn_confirm .btn_submit {
    padding: 16px 40px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.btn_confirm .btn_submit:hover {
    background: #1a3010;
}

.btn_confirm .btn01 {
    padding: 16px 28px;
    background: #fff;
    color: var(--text-dark);
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    text-decoration: none;
}

@media (max-width: 768px) {
    #sod_frm {
        margin: 16px auto;
        padding: 0 12px;
    }

    .tbl_frm01 th {
        width: 80px;
        font-size: 12px;
        padding: 8px 4px;
    }

    #sod_frm_orderer,
    #sod_frm_taker,
    #sod_frm_pay {
        padding: 16px;
    }

    .pay_tbl th {
        width: 90px;
        font-size: 13px;
    }

    #sod_frm_paysel label.lb_icon {
        padding: 10px 14px;
        font-size: 13px;
    }

    #sod_frm_paysel #od_bank_account,
    #sod_frm_paysel #od_deposit_name {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .btn_confirm {
        flex-wrap: wrap;
        gap: 8px;
    }

    .btn_confirm .btn_submit,
    .btn_confirm .btn01 {
        flex: 1 1 100%;
        padding: 14px 20px;
        text-align: center;
        box-sizing: border-box;
    }
}

/* ==================== 모바일 장바구니 ==================== */
@media (max-width: 768px) {
    #sod_bsk {
        padding: 12px;
        background: var(--light-bg);
    }

    #sod_bsk_list {
        margin: 0;
    }

    #sod_chk {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 12px 14px;
        margin-bottom: 10px;
        background: #fff;
        border-radius: 10px;
        box-shadow: var(--shadow-sm);
        font-size: 14px;
        font-weight: 600;
        color: var(--primary-color);
    }

    #sod_bsk .sod_list {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    #sod_bsk .sod_li {
        position: relative;
        margin: 0 0 10px;
        padding: 14px;
        background: #fff;
        border: none;
        border-radius: 10px;
        box-shadow: var(--shadow-sm);
    }

    #sod_bsk .li_op_wr {
        position: relative;
        min-height: 84px;
        padding: 0 0 0 96px;
    }

    #sod_bsk .li_chk {
        position: absolute;
        top: 0;
        left: 0;
        z-index: 2;
    }

    #sod_bsk .total_img {
        position: absolute;
        top: 0;
        left: 24px;
    }

    #sod_bsk .total_img img {
        width: 68px;
        height: 68px;
        object-fit: cover;
        border-radius: 8px;
    }

    #sod_bsk .li_name {
        font-size: 15px;
        font-weight: 700;
        line-height: 1.4;
        color: var(--text-dark);
    }

    #sod_bsk .li_name a {
        color: inherit;
        text-decoration: none;
    }

    #sod_bsk .li_mod {
        margin-top: 8px;
    }

    #sod_bsk .mod_btn {
        padding: 6px 12px;
        border: 1px solid var(--border-color);
        border-radius: 6px;
        background: #fff;
        color: var(--text-light);
        font-size: 12px;
        cursor: pointer;
    }

    #sod_bsk .sod_opt {
        margin: 10px 0 0;
        padding: 8px 10px;
        background: var(--light-bg);
        border-radius: 6px;
        font-size: 12px;
        color: var(--text-light);
    }

    #sod_bsk .sod_opt ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    #sod_bsk .li_prqty {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px 10px;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid #f0ebe3;
    }

    #sod_bsk .li_prqty_sp {
        display: flex;
        justify-content: space-between;
        font-size: 13px;
        color: var(--text-dark);
    }

    #sod_bsk .li_prqty_sp > span {
        color: var(--text-light);
    }

    #sod_bsk .total_price {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 12px;
        padding: 10px 12px;
        background: var(--light-bg);
        border-radius: 8px;
        font-size: 14px;
    }

    #sod_bsk .total_price span {
        color: var(--text-light);
    }

    #sod_bsk .total_price strong {
        font-size: 17px;
        font-weight: 700;
        color: var(--primary-color);
    }

    #sod_bsk .empty_list {
        padding: 60px 0;
        text-align: center;
        color: var(--text-light);
        background: #fff;
        border-radius: 10px;
    }

    #sod_bsk .btn_del_wr {
        display: flex;
        gap: 8px;
        margin: 0 0 14px;
    }

    #sod_bsk .btn_del_wr .btn01 {
        flex: 1;
        padding: 10px;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        background: #fff;
        color: var(--text-light);
        font-size: 13px;
        cursor: pointer;
    }

    #sod_bsk .sod_ta_wr {
        margin-bottom: 14px;
        padding: 4px 16px;
        background: #fff;
        border-radius: 10px;
        box-shadow: var(--shadow-sm);
    }

    #m_sod_bsk_tot {
        margin: 0;
        overflow: hidden;
    }

    #m_sod_bsk_tot dt,
    #m_sod_bsk_tot dd {
        float: left;
        margin: 0;
        padding: 12px 0;
        font-size: 14px;
        border-bottom: 1px solid #f0ebe3;
        line-height: 1.4;
    }

    #m_sod_bsk_tot dt {
        clear: both;
        width: 40%;
        color: var(--text-light);
    }

    #m_sod_bsk_tot dd {
        width: 60%;
        text-align: right;
        color: var(--text-dark);
    }

    #m_sod_bsk_tot .sod_bsk_cnt {
        border-bottom: none;
        font-weight: 700;
        color: var(--primary-color);
    }

    #m_sod_bsk_tot .sod_bsk_cnt strong {
        font-size: 18px;
    }

    #sod_bsk .go_shopping {
        margin: 0 0 14px;
    }

    #sod_bsk .go_shopping .btn01 {
        display: block;
        padding: 13px;
        border: 1px solid var(--primary-color);
        border-radius: 8px;
        background: #fff;
        color: var(--primary-color);
        font-size: 15px;
        font-weight: 600;
        text-align: center;
        text-decoration: none;
    }

    #sod_bsk_act {
        display: block;
        margin: 0;
        padding: 14px;
        background: #fff;
        border-radius: 10px;
        box-shadow: var(--shadow-sm);
    }

    #sod_bsk_act .total {
        display: none;
    }

    #sod_bsk_act .btn_submit {
        display: block;
        width: 100%;
        padding: 15px;
        border: none;
        border-radius: 8px;
        background: var(--primary-color);
        color: #fff;
        font-size: 16px;
        font-weight: 700;
        cursor: pointer;
    }
}

/* 입금자명 필수 입력 강조 */
#od_deposit_name {
    border: 2px solid #C62828 !important;
    border-radius: 6px;
    background: #fff;
}

#od_deposit_name:focus {
    outline: none;
    border-color: var(--primary-color) !important;
    background: #fff;
}

label[for="od_deposit_name"]:after {
    content: " *";
    color: #C62828;
    font-weight: 700;
}

/* ==================== 상품 이미지 확대보기 (largeimage) ==================== */
#sit_pvi_nw {
    max-width: 1024px;
    margin: 0 auto;
    padding: 16px 12px 32px;
}

#sit_pvi_nwbig {
    padding: 0;
    text-align: center;
}

/* 순정은 한 장만 보이고 나머지는 숨기지만, 여기서는 전부 크게 나열한다 */
#sit_pvi_nwbig span,
#sit_pvi_nwbig span.visible {
    display: block !important;
    margin: 0 0 14px;
}

#sit_pvi_nwbig span a {
    display: block;
    cursor: default;
}

#sit_pvi_nwbig img {
    width: 100% !important;
    max-width: 1024px;
    height: auto !important;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

#sit_pvi_nw ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 20px 0;
    padding: 0;
    list-style: none;
}

#sit_pvi_nw li {
    display: block;
    margin: 0;
}

#sit_pvi_nw li img {
    width: 72px !important;
    height: 72px !important;
    object-fit: cover;
    border: 2px solid var(--border-color);
    border-radius: 8px;
}

#sit_pvi_nw .win_btn {
    text-align: center;
    margin-top: 8px;
}

#sit_pvi_nw .btn_close {
    padding: 13px 40px;
    border: none;
    border-radius: 8px;
    background: var(--primary-color);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 768px) {
    #sit_pvi_nw {
        padding: 10px 8px 24px;
    }

    #sit_pvi_nw li img {
        width: 60px !important;
        height: 60px !important;
    }

    #sit_pvi_nw .btn_close {
        display: block;
        width: 100%;
        padding: 14px;
    }
}

/* 상품 공유 - 링크 복사 버튼 */
.sns_area .share-copylink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 2px;
    border-radius: 50%;
    background: var(--accent-color);
    color: #fff;
    font-size: 17px;
    text-decoration: none;
    vertical-align: middle;
}

.sns_area .share-copylink:hover {
    background: #8d6743;
    color: #fff;
}
