/* 기본 스타일 초기화 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: #6b4a2e;
    background: #fff;
    line-height: 1.6;
}

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

/* 반짝이는 제목 애니메이션 */
@keyframes subtle-glow {
    0% { filter: brightness(1); text-shadow: 0 0 2px #bca77a22; }
    50% { filter: brightness(1.15); text-shadow: 0 0 8px #bca77a55; }
    100% { filter: brightness(1); text-shadow: 0 0 2px #bca77a22; }
}


/* 1단: 애니메이션 타이틀 */
.header-ani {
    background: #e5d3b3;
    text-align: center;
    font-size: 1rem;
    padding: 0.7rem 0 0.2rem 0;
    border-bottom: 0;
    position: relative;
}

/* PC 버전에서만 타이틀바 높이와 글자크기 설정 */
@media (min-width: 769px) {
    .header-ani {
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
    }
    
    .header-ani .ani-title {
        font-size: 15px;
        line-height: 1.2;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .header-ani .ani-title i {
        margin-right: 8px;
        font-size: 15px;
        line-height: 1.2;
        vertical-align: middle;
    }
}

.ani-title {
    display: inline-block;
    min-height: 1.2em;
    transition: opacity 0.5s;
    font-weight: 500;
    margin-bottom: 0.7rem;
}

/* 모바일에서 애니메이션 타이틀 숨기기 */
@media (max-width: 768px) {
    .header-ani {
        display: none !important;
    }
}

/* 2단: 로고 + 로그인/회원가입 */
.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem 1.2rem 2rem;
}

.logo-title {
    font-size: 2rem;
    font-weight: bold;
    color: #6b4a2e;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 2rem;
    font-weight: bold;
    color: #8B7355;
    letter-spacing: -1px;
}

/* 데스크톱 로고 이미지 */
.desktop-logo-img {
    width: 32px !important;
    height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    object-fit: contain;
    margin-right: 10px;
}

/* 모바일 로고 이미지 */
.mobile-logo-img {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    object-fit: contain;
    margin-right: 6px;
}

.mobile-logo {
    display: inline-flex;
    align-items: center;
    font-size: 0;
    font-weight: bold;
    color: #6b4a2e;
    gap: 0;
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 0;
}

.mobile-logo-img {
    width: 16px;
    height: 16px;
    max-width: 16px;
    max-height: 16px;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: baseline;
    position: relative;
}

.mobile-logo-text {
    font-size: 1.1rem;
    font-weight: bold;
    color: #6b4a2e;
    white-space: nowrap;
    line-height: 1;
    display: inline;
    margin: 0;
    padding: 0;
    letter-spacing: 0;
    vertical-align: baseline;
}

/* 로그인 링크와 사용자 정보 표시/숨김 */
.login-links {
    display: flex;
    gap: 0.3rem;
    align-items: center;
    margin-left: auto;
    justify-content: flex-end;
}

.login-links a {
    font-weight: bold;
    color: #6b4a2e;
    font-size: 0.9rem;
    padding: 0.4rem 0.6rem;
}

.login-links a i {
    margin-right: 0.2rem;
}



.login-links a:hover {
    text-decoration: underline;
}

/* 사용자 정보 스타일 */
.user-info {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: nowrap;
    margin-left: auto;
    justify-content: flex-end;
}

.user-name {
    font-weight: bold;
    color: #6b4a2e;
    font-size: 0.9rem;
    margin-right: 0.2rem;
}

.logout-btn {
    color: #666;
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    transition: color 0.3s;
    background: none;
    text-decoration: none;
}

.logout-btn:hover {
    color: #333;
    text-decoration: underline;
}

.separator {
    color: #ccc;
    font-weight: normal;
    margin: 0 0.2rem;
    font-size: 0.85rem;
}

/* 3단: 카테고리 네비 */
.header-nav {
    background: #fff;
}

.nav-bar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.2rem;
    padding: 0.4rem 0.5rem;
    font-size: 0.97rem;
    justify-content: flex-start;
    overflow-x: auto;
}

.nav-bar a {
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    transition: background 0.2s;
    color: #6b4a2e;
    white-space: nowrap;
    font-size: 0.97rem;
}

.nav-bar a.active, .nav-bar a:hover {
    background: #e5d3b3;
    color: #6b4a2e;
    font-weight: bold;
}

/* PC 버전 hover 언더라인 애니메이션 */
@media (min-width: 769px) {
    .nav-bar a {
        position: relative;
        overflow: hidden;
    }
    
    .nav-bar a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background-color: #786343;
        transition: all 0.4s ease-in-out;
        transform: translateX(-50%);
    }
    
    .nav-bar a:hover::after {
        width: 100%;
    }
    
    /* PC 버전 장바구니 숫자 */
    .login-links a {
        position: relative;
    }
    
    .cart-count {
        position: absolute;
        top: -8px;
        right: -8px;
        background: #e74c3c;
        color: white;
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
        border-radius: 50%;
        min-width: 16px;
        text-align: center;
        display: none;
    }
}

/* 메인 배너 */
.main-banner {
    background: linear-gradient(135deg, #faf8f5 0%, #f5f1eb 50%, #efebe3 100%) !important;
    padding: 4rem 0;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-banner .inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    width: 100%;
}

.main-banner .text {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.main-banner .text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #6b4a2e;
}

.main-banner .text p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    color: #666;
}

/* 메인 배너 텍스트 스타일 */
.banner-description {
    line-height: 1.8;
    margin-bottom: 1rem;
}

.banner-description .highlight-text {
    color: #8b6f4e;
    font-weight: 600;
    font-size: 1.05rem;
}

.banner-description .main-text {
    color: #6b4a2e;
    font-weight: 500;
    font-size: 1rem;
}

.banner-description .detail-text {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* PC 전용 버튼 */
.pc-only {
    display: block;
}

@media (max-width: 768px) {
    .pc-only {
        display: none !important;
    }
}

.main-banner .text a {
    background: #8b5e3c;
    color: white;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
    display: inline-block;
    white-space: nowrap;
    text-align: center;
    flex-shrink: 0;
    margin: 0 0.25rem;
}



.main-banner .text a:hover {
    background: #6b4a2e;
}

.main-banner .image {
    flex-shrink: 0;
    width: 300px;
    height: 200px;
    overflow: hidden;
    border-radius: 10px;
}

.main-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 히어로 섹션 */
.hero {
    background: #efebe3;
    padding: 4rem 0;
    text-align: center;
    position: relative;
}

.hero > div {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.hero .main-heading {
    font-size: 3rem;
    font-weight: bold;
    color: #6b4a2e;
    margin-bottom: 2rem;
}

.product-highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.highlight-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: left;
    transition: all 0.3s ease;
    cursor: pointer;
}

.highlight-item:hover {
    background: #f8f9fa;
    box-shadow: 0 8px 30px rgba(139, 94, 60, 0.3);
    transform: translateY(-5px) scale(1.05);
    border-radius: 15px;
}

.highlight-item strong {
    display: block;
    color: #6b4a2e;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero .btn {
    background: #8b5e3c;
    color: white;
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.hero .btn-dark {
    background: #6b4a2e;
    color: white;
}

.hero .btn-dark:hover {
    background: #5a3d25;
}

/* 특징 섹션 */
.feature-section {
    padding: 4rem 0;
    background: white;
}

.feature-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.feature-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #6b4a2e;
    margin-bottom: 3rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    border-right: 1px solid #e0e0e0;
}

.feature-item:last-child {
    border-right: none;
}

.feature-item .icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    color: #8b5e3c;
    transition: all 0.3s ease;
    animation: icon-pulse 3s ease-in-out infinite;
}

.feature-item:nth-child(1) .icon {
    animation-delay: 0s;
}

.feature-item:nth-child(2) .icon {
    animation-delay: 1s;
}

.feature-item:nth-child(3) .icon {
    animation-delay: 2s;
}

.feature-item .icon:hover {
    color: #6b4a2e;
    filter: drop-shadow(0 0 8px rgba(139, 94, 60, 0.6));
    transform: scale(1.1);
    animation: icon-sparkle 0.6s ease-in-out;
}

@keyframes icon-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes icon-sparkle {
    0% { filter: drop-shadow(0 0 8px rgba(139, 94, 60, 0.6)); }
    50% { filter: drop-shadow(0 0 15px rgba(139, 94, 60, 0.9)); }
    100% { filter: drop-shadow(0 0 8px rgba(139, 94, 60, 0.6)); }
}

.feature-item h3 {
    font-size: 1.5rem;
    color: #6b4a2e;
    margin-bottom: 1rem;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
}

/* 제품 섹션 */
.products {
    padding: 4rem 0;
    background: #f8f9fa;
    position: relative;
    background-image: url('pic4.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(248, 249, 250, 0.85);
}

.products > div {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.products h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #6b4a2e;
    margin-bottom: 1rem;
}

.products p {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* 제품 그리드 */
.products-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    width: 100%;
    height: 250px !important;
    min-height: 250px !important;
    max-height: 250px !important;
}

.product-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    transition: transform 0.3s ease;
    min-height: 250px !important;
    max-height: 250px !important;
}

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

/* Hover 버튼 오버레이 */
.product-image-overlay {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: all 0.3s ease;
    padding: 0;
}

.product-card:hover .product-image-overlay {
    opacity: 1;
}

.hover-btn {
    background: white;
    color: #6b4a2e;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    box-shadow: none;
    padding: 0;
    outline: none;
}

.hover-btn:hover {
    background: white;
    color: #ff0000;
    transform: none;
    border: 1px solid #ddd;
    outline: none;
    box-shadow: none;
}

.hover-btn.wish-btn {
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    border: 1px solid #ddd !important;
    background: white !important;
    font-size: 1rem !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 30px !important;
    min-height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
}

.hover-btn.wish-btn:hover {
    background: white !important;
    color: #ff0000 !important;
    transform: none !important;
    border: 1px solid #ddd !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 50% !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
}

.hover-btn.wish-btn.wishlisted {
    color: #e74c3c !important;
    border: 1px solid #ddd !important;
    outline: none !important;
    box-shadow: none !important;
    background: white !important;
    border-radius: 50% !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
}

.hover-btn.wish-btn.wishlisted:hover {
    color: #ff0000 !important;
    border: 1px solid #ddd !important;
    outline: none !important;
    box-shadow: none !important;
    background: white !important;
    border-radius: 50% !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
}

/* 기존 product-actions 제거 */
.product-actions {
    display: none;
}

.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
}

.badge {
    background: #e74c3c;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-right: 0.5rem;
}

.badge.best {
    background: #f39c12;
}

.badge.new {
    background: #27ae60;
}

.badge.sale {
    background: #e74c3c;
}

.badge.discount {
    background: #e74c3c;
}

.product-info {
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.product-name {
/* 기본 스타일 초기화 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: #6b4a2e;
    background: #fff;
    line-height: 1.6;
}

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

/* 반짝이는 제목 애니메이션 */
@keyframes subtle-glow {
    0% { filter: brightness(1); text-shadow: 0 0 2px #bca77a22; }
    50% { filter: brightness(1.15); text-shadow: 0 0 8px #bca77a55; }
    100% { filter: brightness(1); text-shadow: 0 0 2px #bca77a22; }
}


/* 1단: 애니메이션 타이틀 */
.header-ani {
    background: #e5d3b3;
    text-align: center;
    font-size: 1rem;
    padding: 0.7rem 0 0.2rem 0;
    border-bottom: 0;
    position: relative;
}

.ani-title {
    display: inline-block;
    min-height: 1.2em;
    transition: opacity 0.5s;
    font-weight: 500;
    margin-bottom: 0.7rem;
}

/* 모바일에서 애니메이션 타이틀 숨기기 */
@media (max-width: 768px) {
    .header-ani {
        display: none !important;
    }
}

/* 2단: 로고 + 로그인/회원가입 */
.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem 1.2rem 2rem;
}

.logo-title {
    font-size: 2rem;
    font-weight: bold;
    color: #6b4a2e;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 2rem;
    font-weight: bold;
    color: #8B7355;
    letter-spacing: -1px;
}

/* 데스크톱 로고 이미지 */
.desktop-logo-img {
    width: 32px !important;
    height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    object-fit: contain;
    margin-right: 10px;
}

/* 모바일 로고 이미지 */
.mobile-logo-img {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    object-fit: contain;
    margin-right: 6px;
}

.mobile-logo {
    display: inline-flex;
    align-items: center;
    font-size: 0;
    font-weight: bold;
    color: #6b4a2e;
    gap: 0;
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 0;
}

.mobile-logo-img {
    width: 16px;
    height: 16px;
    max-width: 16px;
    max-height: 16px;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: baseline;
    position: relative;
}

.mobile-logo-text {
    font-size: 1.1rem;
    font-weight: bold;
    color: #6b4a2e;
    white-space: nowrap;
    line-height: 1;
    display: inline;
    margin: 0;
    padding: 0;
    letter-spacing: 0;
    vertical-align: baseline;
}

/* 로그인 링크와 사용자 정보 표시/숨김 */
.login-links {
    display: flex;
    gap: 0.3rem;
    align-items: center;
    margin-left: auto;
    justify-content: flex-end;
}

.login-links a {
    font-weight: bold;
    color: #6b4a2e;
    font-size: 0.9rem;
    padding: 0.4rem 0.6rem;
}

.login-links a i {
    margin-right: 0.2rem;
}



.login-links a:hover {
    text-decoration: underline;
}

/* 사용자 정보 스타일 */
.user-info {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: nowrap;
    margin-left: auto;
    justify-content: flex-end;
}

.user-name {
    font-weight: bold;
    color: #6b4a2e;
    font-size: 0.9rem;
    margin-right: 0.2rem;
}

.logout-btn {
    color: #666;
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    transition: color 0.3s;
    background: none;
    text-decoration: none;
}

.logout-btn:hover {
    color: #333;
    text-decoration: underline;
}

.separator {
    color: #ccc;
    font-weight: normal;
    margin: 0 0.2rem;
    font-size: 0.85rem;
}

/* 3단: 카테고리 네비 */
.header-nav {
    background: #fff;
}

.nav-bar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.2rem;
    padding: 0.4rem 0.5rem;
    font-size: 0.97rem;
    justify-content: flex-start;
    overflow-x: auto;
}

.nav-bar a {
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    transition: background 0.2s;
    color: #6b4a2e;
    white-space: nowrap;
    font-size: 0.97rem;
}

.nav-bar a.active, .nav-bar a:hover {
    background: #e5d3b3;
    color: #6b4a2e;
    font-weight: bold;
}

/* PC 버전 hover 언더라인 애니메이션 */
@media (min-width: 769px) {
    .nav-bar a {
        position: relative;
        overflow: hidden;
    }
    
    .nav-bar a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background-color: #786343;
        transition: all 0.4s ease-in-out;
        transform: translateX(-50%);
    }
    
    .nav-bar a:hover::after {
        width: 100%;
    }
    
    /* PC 버전 장바구니 숫자 */
    .login-links a {
        position: relative;
    }
    
    .cart-count {
        position: absolute;
        top: -8px;
        right: -8px;
        background: #e74c3c;
        color: white;
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
        border-radius: 50%;
        min-width: 16px;
        text-align: center;
        display: none;
    }
}

/* 메인 배너 */
.main-banner {
    background: linear-gradient(135deg, #faf8f5 0%, #f5f1eb 50%, #efebe3 100%) !important;
    padding: 4rem 0;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-banner .inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    width: 100%;
}

.main-banner .text {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.main-banner .text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #6b4a2e;
}

.main-banner .text p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    color: #666;
}

.main-banner .text a {
    background: #8b5e3c;
    color: white;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
    display: inline-block;
    white-space: nowrap;
    text-align: center;
    flex-shrink: 0;
    margin: 0 0.25rem;
}



.main-banner .text a:hover {
    background: #6b4a2e;
}

.main-banner .image {
    flex-shrink: 0;
    width: 300px;
    height: 200px;
    overflow: hidden;
    border-radius: 10px;
}

.main-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 히어로 섹션 */
.hero {
    background: #efebe3;
    padding: 4rem 0;
    text-align: center;
    position: relative;
}

.hero > div {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.hero .main-heading {
    font-size: 3rem;
    font-weight: bold;
    color: #6b4a2e;
    margin-bottom: 2rem;
}

.product-highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.highlight-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: left;
    transition: all 0.3s ease;
    cursor: pointer;
}

.highlight-item:hover {
    background: #f8f9fa;
    box-shadow: 0 8px 30px rgba(139, 94, 60, 0.3);
    transform: translateY(-5px) scale(1.05);
    border-radius: 15px;
}

.highlight-item strong {
    display: block;
    color: #6b4a2e;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero .btn {
    background: #8b5e3c;
    color: white;
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.hero .btn-dark {
    background: #6b4a2e;
    color: white;
}

.hero .btn-dark:hover {
    background: #5a3d25;
}

/* 특징 섹션 */
.feature-section {
    padding: 4rem 0;
    background: white;
}

.feature-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.feature-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #6b4a2e;
    margin-bottom: 3rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    border-right: 1px solid #e0e0e0;
}

.feature-item:last-child {
    border-right: none;
}

.feature-item .icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    color: #8b5e3c;
    transition: all 0.3s ease;
    animation: icon-pulse 3s ease-in-out infinite;
}

.feature-item:nth-child(1) .icon {
    animation-delay: 0s;
}

.feature-item:nth-child(2) .icon {
    animation-delay: 1s;
}

.feature-item:nth-child(3) .icon {
    animation-delay: 2s;
}

.feature-item .icon:hover {
    color: #6b4a2e;
    filter: drop-shadow(0 0 8px rgba(139, 94, 60, 0.6));
    transform: scale(1.1);
    animation: icon-sparkle 0.6s ease-in-out;
}

@keyframes icon-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes icon-sparkle {
    0% { filter: drop-shadow(0 0 8px rgba(139, 94, 60, 0.6)); }
    50% { filter: drop-shadow(0 0 15px rgba(139, 94, 60, 0.9)); }
    100% { filter: drop-shadow(0 0 8px rgba(139, 94, 60, 0.6)); }
}

.feature-item h3 {
    font-size: 1.5rem;
    color: #6b4a2e;
    margin-bottom: 1rem;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
}

/* 제품 섹션 */
.products {
    padding: 4rem 0;
    background: #f8f9fa;
    position: relative;
    background-image: url('pic4.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(248, 249, 250, 0.85);
}

.products > div {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.products h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #6b4a2e;
    margin-bottom: 1rem;
}

.products p {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* 제품 그리드 */
.products-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    width: 100%;
    height: 250px !important;
    min-height: 250px !important;
    max-height: 250px !important;
}

.product-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    transition: transform 0.3s ease;
    min-height: 250px !important;
    max-height: 250px !important;
}

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

/* Hover 버튼 오버레이 */
.product-image-overlay {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: all 0.3s ease;
    padding: 0;
}

.product-card:hover .product-image-overlay {
    opacity: 1;
}

.hover-btn {
    background: white;
    color: #6b4a2e;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    box-shadow: none;
    padding: 0;
    outline: none;
}

.hover-btn:hover {
    background: white;
    color: #ff0000;
    transform: none;
    border: 1px solid #ddd;
    outline: none;
    box-shadow: none;
}

.hover-btn.wish-btn {
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    border: 1px solid #ddd !important;
    background: white !important;
    font-size: 1rem !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 30px !important;
    min-height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
}

.hover-btn.wish-btn:hover {
    background: white !important;
    color: #ff0000 !important;
    transform: none !important;
    border: 1px solid #ddd !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 50% !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
}

.hover-btn.wish-btn.wishlisted {
    color: #e74c3c !important;
    border: 1px solid #ddd !important;
    outline: none !important;
    box-shadow: none !important;
    background: white !important;
    border-radius: 50% !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
}

.hover-btn.wish-btn.wishlisted:hover {
    color: #ff0000 !important;
    border: 1px solid #ddd !important;
    outline: none !important;
    box-shadow: none !important;
    background: white !important;
    border-radius: 50% !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
}

/* 기존 product-actions 제거 */
.product-actions {
    display: none;
}

.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
}

.badge {
    background: #e74c3c;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-right: 0.5rem;
}

.badge.best {
    background: #f39c12;
}

.badge.new {
    background: #27ae60;
}

.badge.sale {
    background: #e74c3c;
}

.badge.discount {
    background: #e74c3c;
}

.product-info {
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.product-name {
    margin-bottom: 0 !important;
    font-weight: 600;
    font-size: 18px !important;
    line-height: 0.8 !important;
    padding: 0 !important;
}

.product-name a {
    color: #6b4a2e;
    text-decoration: none;
    transition: color 0.3s;
    line-height: 1.2 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.product-name a:hover {
    color: #8b5e3c;
}

.product-summary {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 0 !important;
    line-height: 0.8 !important;
    padding: 0 !important;
}

.product-description {
    color: #666;
    font-size: 0.8rem;
    margin-bottom: 0.05rem !important;
    line-height: 1.0 !important;
    padding: 0 !important;
    overflow: hidden;
    text-overflow: ellipsis;
    display: none !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 카테고리 페이지의 product-description도 숨김 */
p.product-description {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.product-description img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 0.5rem 0;
}

.product-description p {
    margin-bottom: 0.5rem;
}

.product-description h1, .product-description h2, .product-description h3, 
.product-description h4, .product-description h5, .product-description h6 {
    margin: 1rem 0 0.5rem 0;
    color: #6b4a2e;
}

.product-description ul, .product-description ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.product-description li {
    margin-bottom: 0.3rem;
}

.product-price {
    margin-bottom: 0 !important;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: wrap;
    line-height: 0.8 !important;
    padding: 0 !important;
}

.original-price, .current-price, .discount-price, .discount-rate {
    line-height: 1.1;
    margin-bottom: 0;
    padding: 0;
}

.original-price {
    color: #999;
    text-decoration: line-through;
    font-size: 0.9rem !important;
}

.current-price {
    color: #e74c3c !important;
    font-weight: bold;
    font-size: 1.1rem !important;
}

.discount-price {
    color: #e74c3c;
    font-weight: bold;
    font-size: 1.1rem !important;
}

.discount-rate {
    background: #e74c3c;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: bold;
}

.product-actions {
    display: flex;
    flex-direction: row;
    gap: 1.2rem;
    margin-top: 2rem;
    align-items: center;
    justify-content: flex-start;
}

.main-actions, .secondary-actions {
    display: flex;
    flex-direction: row;
    gap: 0.7rem;
    align-items: center;
}

.product-price-section,
.product-options {
    text-align: right;
}

.detail-btn {
    background: #6b4a2e;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s;
    display: inline-block;
    text-align: center;
}

.detail-btn:hover {
    background: #5a3d25;
    color: white;
    text-decoration: none;
}

.add-cart-btn {
    background: #28a745;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s;
}

.add-cart-btn:hover {
    background: #218838;
}

.wish-btn {
    background: #dc3545;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.wish-btn:hover {
    background: #c82333;
}

.wish-btn.wishlisted {
    background: #e74c3c;
}

.wish-btn.wishlisted:hover {
    background: #c0392b;
}

/* 모바일 반응형 */
/* products.php 모바일 스타일은 products_mobile.css에서 관리 */
    
    .main-banner .inner {
        flex-direction: column;
        text-align: center;
    }
    
    .hero .main-heading {
        font-size: 2rem;
    }
    
    .product-highlights {
        grid-template-columns: 1fr;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        }
        
            .feature-item {
        text-align: left !important;
        padding: 1rem !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 0 !important;
        position: relative !important;
        border-right: none !important;
    }
    
    .feature-item .icon {
        width: 50px !important;
        height: 50px !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
        order: 1 !important;
        margin-right: 1.5rem !important;
        color: #8b5e3c !important;
    }
    
    .feature-item .text-content {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 !important;
        order: 2 !important;
        justify-content: flex-start !important;
        position: relative !important;
        padding-left: 1.5rem !important;
    }
    
    .feature-item .text-content::before {
        content: '' !important;
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        width: 3px !important;
        background-color: #8b5e3c !important;
    }
    
    .feature-item .text-content h3 {
        margin-bottom: 0.8rem !important;
        font-size: 1.3rem !important;
        order: 1 !important;
        font-weight: bold !important;
        color: #6b4a2e !important;
    }
    
    .feature-item .text-content p {
        margin: 0 !important;
        font-size: 0.95rem !important;
        order: 2 !important;
        color: #666 !important;
        line-height: 1.5 !important;
    }
}

/* 모바일 전용 스타일 */
.mobile-top-banners {
    display: none;
}

.mobile-header {
    display: none;
}

.mobile-category-bar {
    display: none;
}

.mobile-sidebar {
    display: block;
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: #fff !important;
    z-index: 10000;
    transition: left 0.3s ease;
    overflow-y: auto;
    border-right: none !important;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
}

.mobile-scroll-top {
    display: block;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: #8b5e3c;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10003;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.mobile-scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .mobile-top-banners {
        display: block;
    }
    
    .mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.8rem 1rem;
        background: white;
        border-bottom: 1px solid #e5d3b3;
        position: sticky;
        top: 0;
        z-index: 1001;
    }
    
    /* 모바일 헤더 내부 요소들의 정렬 개선 */
    .mobile-header #sidebar-toggle {
        order: 1; /* 왼쪽 정렬 */
        margin-right: auto;
    }
    
    .mobile-header .mobile-logo {
        order: 2; /* 중앙 정렬 */
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 1rem;
        text-align: center;
        gap: 0;
    }
    
    .mobile-header .mobile-cart-icon {
        order: 3; /* 오른쪽 정렬 */
        margin-left: auto;
        align-self: center;
    }
    
    /* 사이드바 열렸을 때 헤더도 오버레이 되도록 */
    .mobile-sidebar-overlay.active ~ .mobile-header,
    .mobile-sidebar-overlay.active ~ .mobile-category-bar,
    .mobile-sidebar-overlay.active ~ .mobile-top-banners {
        z-index: 9998;
    }
    
    .mobile-header.fixed {
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .mobile-header.page-fixed {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100vw;
        z-index: 1100;
        box-shadow: 0 2px 10px rgba(0,0,0,0.08);
        animation: mobileHeaderSlideDown 0.3s cubic-bezier(0.4,0,0.2,1);
    }
    
    @keyframes mobileHeaderSlideDown {
        0% { transform: translateY(-100%); opacity: 0; }
        100% { transform: translateY(0); opacity: 1; }
    }
    
    .mobile-header button {
        background: none;
        border: none;
        font-size: 1.1rem;
        color: #6b4a2e;
        cursor: pointer;
        padding: 0.4rem;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        height: 44px;
        border-radius: 50%;
        transition: background-color 0.3s ease;
    }
    
    .mobile-header button:hover {
        background-color: #f8f9fa;
    }
    
    .mobile-logo {
        font-size: 0.9rem;
        font-weight: bold;
        color: #6b4a2e;
        text-decoration: none;
    }
    
    .mobile-cart-icon {
        position: relative;
        color: #6b4a2e;
        font-size: 1.1rem;
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        height: 44px;
        border-radius: 50%;
        transition: background-color 0.3s ease;
        align-self: center;
    }
    
    .mobile-cart-icon:hover {
        background-color: #f8f9fa;
    }
    
    .cart-count {
        position: absolute;
        top: -8px;
        right: -8px;
        background: #e74c3c;
        color: white;
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
        border-radius: 50%;
        min-width: 16px;
        text-align: center;
        display: none;
    }
    
    .mobile-category-bar {
        display: block;
        background: white;
        border-bottom: 1px solid #e5d3b3;
        padding: 0.5rem 0;
    }
    
    .mobile-category-swiper {
        padding: 0 1rem;
    }
    
    .mobile-category-swiper .swiper-slide {
        width: auto;
    }
    
    .mobile-category-swiper .swiper-slide a {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.5rem 1rem;
        background: #f8f9fa;
        border-radius: 20px;
        color: #6b4a2e;
        text-decoration: none;
        font-size: 0.9rem;
        white-space: nowrap;
        margin-right: 0.5rem;
        text-align: center;
    }
    
    .mobile-category-swiper .swiper-slide a:hover {
        background: #e5d3b3;
    }
    
    /* 사이드바 스타일은 mobile-sidebar.css에서 관리 */
    

    .sidebar-header {
        display: flex;
        justify-content: space-between;
        align-items: center; 
        padding: 0.1rem;
        border-bottom: 1px solid #e5d3b3;
        background: #fff !important;
    }
    


    
 
    .sidebar-auth a {
        display: inline-flex;
        align-items: center;
        font-size: 0.9rem !important;
        color: #6b4a2e !important;
        font-weight: normal;
        margin: 0;
        padding: 1rem 1rem 1rem 0;
        text-decoration: none;
        text-align: left;
    }

    
    .sidebar-nav {
        padding: 1rem;
        background: #fff !important;
    }
    
    .sidebar-nav a {
        display: block;
        padding: 0.8rem 1rem;
        color: #6b4a2e !important;
        text-decoration: none;
        border-bottom: 1px solid #f0f0f0;
        font-size: 1rem;
        background: transparent !important;
        text-align: left;
        transition: all 0.3s ease;
    }
    
    .sidebar-nav a:hover {
        background: #f8f9fa !important;
        padding-left: 1.5rem;
        color: #8b5e3c !important;
    }
    
    .sidebar-section-title {
        font-weight: bold;
        color: #8b5e3c !important;
        margin: 1rem 0 0.5rem 0;
        font-size: 0.9rem;
        background: transparent !important;
    }
    
    .sidebar-footer {
        padding: 1rem;
        text-align: center;
        border-top: 1px solid #e5d3b3;
        margin-top: auto;
        background: #f8f9fa !important;
    }
    
    .sidebar-logo-text {
        font-weight: bold;
        color: #6b4a2e !important;
        font-size: 1.1rem;
    }
    
    .mobile-scroll-top {
        display: block;
        position: fixed;
        bottom: 2rem;
        right: 2rem;
        width: 50px;
        height: 50px;
        background: #8b5e3c;
        color: white;
        border: none;
        border-radius: 50%;
        cursor: pointer;
        z-index: 10003;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    }
    
    .mobile-scroll-top.visible {
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-top-banners {
        background: #e5d3b3;
        transition: opacity 0.3s ease;
    }
    
    .mobile-top-banners.scrolled {
        opacity: 0.8;
    }
    
    .mobile-banner {
        padding: 0.5rem 1rem;
        text-align: center;
        font-size: 0.8rem;
    }
    
    .mobile-banner a {
        color: #6b4a2e;
        text-decoration: none;
    }
    
    .mobile-banner i {
        margin-right: 0.3rem;
    }
    
    /* 카카오톡 배너 - 노란색 배경 */
    .mobile-banner.kakao {
        background: #FEE500;
    }
    
    .mobile-banner.kakao a {
        color: #3C1E1E;
        font-weight: bold;
    }
    
    /* 인스타그램 배너 - 핑크색 배경 */
    .mobile-banner.instagram {
        background: #E4405F;
    }
    
    .mobile-banner.instagram a {
        color: white;
        font-weight: bold;
    }
    
    /* 프리미엄 배너 - 당근마켓 색깔 적용 */
    .mobile-banner.premium {
        background: #FF6B35; /* 당근마켓 오렌지 색깔 */
    }
    
    .mobile-banner.premium a {
        color: white;
        font-weight: bold;
    }
    
    .header-top,
    .header-nav {
        display: none;
    }
    
    /* 더 작은 화면에서 로고 크기 조정 */
    @media (max-width: 480px) {
        /* 모바일 헤더 최적화 */
        .mobile-logo {
            font-size: 0.75rem;
        }
        
        .mobile-logo-img {
            width: 12px !important;
            height: 12px !important;
            max-width: 12px !important;
            max-height: 12px !important;
        }
        
        .mobile-header {
            padding: 0.5rem 0.6rem;
        }
        
        .mobile-header button {
            font-size: 0.9rem;
            padding: 0.25rem;
            min-width: 36px;
            height: 36px;
        }
        
        .mobile-cart-icon {
            font-size: 0.9rem;
            min-width: 36px;
            height: 36px;
        }
        
        /* 작은 화면에서도 정렬 유지 */
        .mobile-header .mobile-logo {
            margin: 0 0.3rem;
            gap: 0;
        }
        
        .mobile-logo-text {
            font-size: 0.9rem;
        }
        
        /* 메인 배너 모바일 최적화 */
        .main-banner .text h2 {
            font-size: 2.2rem;
            margin-bottom: 0.6rem;
        }
        
        .main-banner .text p {
            font-size: 0.8rem;
            line-height: 1.3;
            margin-bottom: 0.8rem;
        }
        
            .main-banner .text a {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
        min-width: auto;
        flex-shrink: 0;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
        
        .main-banner .text {
            gap: 0;
            flex-direction: column !important;
            flex-wrap: nowrap !important;
            padding-top: 0;
            margin-top: 0;
        }
        
        .main-banner .text .main-banner-btns {
            display: flex;
            flex-direction: row;
            gap: 0.5rem;
            align-items: center;
            justify-content: center;
            flex-wrap: nowrap;
        }
        
        /* 히어로 섹션 최적화 */
        .hero .main-heading {
            font-size: 1.8rem;
            margin-bottom: 1.5rem;
        }
        
        .product-highlights {
            grid-template-columns: 1fr;
            gap: 1rem;
            margin-bottom: 2rem;
            justify-items: center;
        }
        
        .highlight-item {
            padding: 1.5rem;
            height: 120px;
            width: 361px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            text-align: center;
        }
        
        .highlight-item strong {
            font-size: 1rem;
            margin-bottom: 0.4rem;
        }
        
        .hero-buttons {
            justify-content: center !important;
            display: flex !important;
            align-items: center !important;
            text-align: center !important;
        }
        
        .hero .btn {
            padding: 0.8rem 1.5rem;
            font-size: 0.9rem;
            margin-right: 0 !important;
            margin-left: 0 !important;
        }
        
        .hero .btn:last-child {
            margin-left: 0 !important;
        }
        
        /* 제품 카드 최적화 */
        /* products.php 모바일 스타일은 products_mobile.css에서 관리 */
        
        /* 사이드바 스타일은 mobile-sidebar.css에서 관리 */
        
        /* 카테고리 바 최적화 */
        .mobile-category-swiper .swiper-slide a {
            font-size: 0.8rem;
            padding: 0.5rem 0.8rem;
        }
    }
    
    /* 매우 작은 화면 (360px 이하) 최적화 */
    @media (max-width: 360px) {
        .mobile-header {
            padding: 0.4rem 0.5rem;
        }
        
        .mobile-logo-text {
            font-size: 0.8rem;
        }
        
        .mobile-logo-img {
            width: 10px !important;
            height: 10px !important;
            max-width: 10px !important;
            max-height: 10px !important;
        }
        
        .main-banner .text h2 {
            font-size: 1.8rem;
        }
        
        .main-banner .text p {
            font-size: 0.75rem;
            line-height: 1.2;
        }
        
        .main-banner .text a {
            padding: 0.4rem 0.6rem;
            font-size: 0.8rem;
            margin: 0;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .main-banner .text {
            gap: 0;
            flex-direction: column !important;
            flex-wrap: nowrap !important;
            padding-top: 0;
            margin-top: 0;
        }
        
        .main-banner .text .main-banner-btns {
            display: flex;
            flex-direction: row;
            gap: 0.5rem;
            align-items: center;
            justify-content: center;
            flex-wrap: nowrap;
        }
        
        .hero .main-heading {
            font-size: 1.5rem;
        }
        
        .product-highlights {
            grid-template-columns: 1fr;
            justify-items: center;
        }
        
        .highlight-item {
            padding: 1.2rem;
            height: 120px;
            width: 361px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            text-align: center;
        }
        
        .highlight-item strong {
            font-size: 0.9rem;
        }
        
        .hero-buttons {
            justify-content: center !important;
            display: flex !important;
            align-items: center !important;
            text-align: center !important;
        }
        
        .hero .btn {
            padding: 0.6rem 1.2rem;
            font-size: 0.85rem;
            margin-right: 0 !important;
            margin-left: 0 !important;
        }
        
        .hero .btn:last-child {
            margin-left: 0 !important;
        }
        
        .product-name a {
            font-size: 0.85rem;
        }
        
        .product-summary {
            font-size: 0.75rem;
        }
        
        .product-price {
            font-size: 0.8rem;
        }
        
        .mobile-sidebar {
            width: 90%;
            height: 100%;
            min-height: 100vh;
        }
        
        .sidebar-nav a {
            padding: 0.5rem 0.8rem;
            font-size: 0.85rem;
        }
        
        .mobile-category-swiper .swiper-slide a {
            font-size: 0.75rem;
            padding: 0.4rem 0.6rem;
        }
    }
}

@media (min-width: 769px) {
    .mobile-top-banners {
        display: none !important;
    }
    .mobile-category-bar {
        display: none !important;
    }
}

/* 푸터 스타일 */
footer {
    background: #f8f9fa;
    padding: 3rem 0 1rem 0;
    margin-top: 4rem;
    border-top: 1px solid #e5d3b3;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: #6b4a2e;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
}

.footer-col p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.company-info {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f0e6d9;
}

.company-info p {
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

.company-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5d3b3;
}

.company-details p {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.3rem;
}

.delivery-info {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f0e6d9;
}

.delivery-info h5 {
    color: #6b4a2e;
    margin-bottom: 0.8rem;
    font-size: 1rem;
    font-weight: bold;
}

.delivery-info p {
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #e5d3b3;
    color: #666;
}

.footer-divider {
    border: none;
    height: 1px;
    background-color: #f0e6d9;
    margin: 1rem 0;
    width: 100%;
    opacity: 0.6;
}

/* 로그인/회원가입 페이지 스타일 */
.auth-container {
    max-width: 400px;
    margin: 3rem auto;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    border: 1px solid #e5d3b3;
}

.auth-container h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: #6b4a2e;
    font-size: 2rem;
    font-weight: bold;
}

.auth-container h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: #8b5e3c;
    font-size: 1.1rem;
    font-weight: normal;
}

.auth-form {
    margin-bottom: 2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #6b4a2e;
    font-weight: bold;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e5d3b3;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: #fff;
    color: #6b4a2e;
}

.form-group input:focus {
    outline: none;
    border-color: #8b5e3c;
    box-shadow: 0 0 0 3px rgba(139, 94, 60, 0.1);
}

.form-group input::placeholder {
    color: #999;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: #8b5e3c;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 0;
}

.submit-btn:hover {
    background: #6b4a2e;
}

.submit-btn:active {
    transform: translateY(1px);
}

.auth-links {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5d3b3;
}

.auth-links p {
    color: #666;
    margin-bottom: 0.5rem;
}

.auth-links a {
    color: #8b5e3c;
    text-decoration: none;
    font-weight: bold;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* 소셜 로그인 버튼 */
.social-login {
    margin-top: 2rem;
    text-align: center;
}

.social-login p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.social-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid #e5d3b3;
    border-radius: 5px;
    background: white;
    color: #6b4a2e;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-btn:hover {
    background: #f8f9fa;
    border-color: #8b5e3c;
}

.social-btn i {
    font-size: 1.1rem;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .auth-container {
        margin: 2rem auto;
        padding: 1.5rem;
        width: calc(100% - 2rem);
        max-width: 400px;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .auth-container h2 {
        font-size: 1.8rem;
    }
    
    .social-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .social-btn {
        justify-content: center;
    }
}

/* 마이페이지 스타일 */
.mypage-container {
    max-width: 600px;
    margin: 1rem auto;
    padding: 0 1.5rem;
}

.mypage-header {
    text-align: center;
    margin-bottom: 1rem;
    padding: 0.8rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 6px;
    border: 1px solid #e5d3b3;
}

.mypage-header h2 {
    color: #6b4a2e;
    font-size: 1.5rem;
    margin-bottom: 0.1rem;
    font-weight: bold;
}

.mypage-header p {
    color: #666;
    font-size: 0.85rem;
    margin: 0;
}

.mypage-content {
    display: grid;
    gap: 1rem;
}

.mypage-section {
    background: white;
    border: 1px solid #e5d3b3;
    border-radius: 6px;
    padding: 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.mypage-section h3 {
    color: #6b4a2e;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    padding-bottom: 0.3rem;
    border-bottom: 2px solid #e5d3b3;
}

.mypage-section h4 {
    color: #8b5e3c;
    font-size: 1.1rem;
    margin: 1rem 0 0.6rem 0;
}

.mypage-form {
    display: grid;
    gap: 0.5rem;
}

.mypage-form .form-group {
    display: grid;
    gap: 0.2rem;
}

.mypage-form label {
    font-weight: bold;
    color: #6b4a2e;
    font-size: 0.8rem;
}

.mypage-form input,
.mypage-form textarea {
    padding: 0.6rem;
    border: 1px solid #e5d3b3;
    border-radius: 3px;
    font-size: 0.85rem;
    transition: border-color 0.3s ease;
    background: #fff;
    color: #6b4a2e;
}

.mypage-form input:focus,
.mypage-form textarea:focus {
    outline: none;
    border-color: #8b5e3c;
    box-shadow: 0 0 0 2px rgba(139, 94, 60, 0.1);
}

.mypage-form input[readonly] {
    background: #f8f9fa;
    color: #666;
}

.mypage-form small {
    color: #666;
    font-size: 0.8rem;
    margin-top: 0.1rem;
}

.mypage-form hr {
    border: none;
    border-top: 1px solid #e5d3b3;
    margin: 0.8rem 0;
}

.mypage-form .submit-btn {
    background: #8b5e3c;
    color: white;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 3px;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 0.3rem;
}

.mypage-form .submit-btn:hover {
    background: #6b4a2e;
}

/* 주문 내역 스타일 */
.order-list {
    display: grid;
    gap: 0.6rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem;
    border: 1px solid #e5d3b3;
    border-radius: 4px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.order-item:hover {
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.order-info {
    display: grid;
    gap: 0.1rem;
}

.order-date {
    font-weight: bold;
    color: #6b4a2e;
    font-size: 0.85rem;
}

.order-status {
    color: #8b5e3c;
    font-size: 0.8rem;
    font-weight: bold;
}

.order-total {
    color: #666;
    font-size: 0.85rem;
}

.order-actions {
    display: flex;
    gap: 0.4rem;
}

.btn-detail {
    background: #8b5e3c;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
    text-decoration: none;
    font-size: 0.8rem;
    transition: background 0.3s ease;
}

.btn-detail:hover {
    background: #6b4a2e;
}

.more-link {
    text-align: center;
    margin-top: 0.8rem;
}

.more-link a {
    color: #8b5e3c;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
}

.more-link a:hover {
    text-decoration: underline;
}

/* 회원 탈퇴 스타일 */
.withdraw-btn {
    background: #dc3545;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 3px;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 0.5rem;
}

.withdraw-btn:hover {
    background: #c82333;
}

/* 메시지 스타일 */
.error-message,
.success-message {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* 모바일 반응형 */
/* 공지사항 상세보기 스타일 */
.notice-detail-section {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.notice-detail-header {
    background: white;
    border: 1px solid #e5d3b3;
    border-radius: 6px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.notice-detail-header h1 {
    color: #6b4a2e;
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    font-weight: bold;
    line-height: 1.4;
}

.notice-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.85rem;
    color: #666;
}

.notice-meta .date {
    color: #8b5e3c;
    font-weight: bold;
}

.notice-content {
    background: white;
    border: 1px solid #e5d3b3;
    border-radius: 6px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    line-height: 1.6;
    color: #6b4a2e;
    font-size: 0.9rem;
}

.notice-navigation {
    background: white;
    border: 1px solid #e5d3b3;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 0;
}

.nav-item:not(:last-child) {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 0.8rem;
}

.nav-label {
    font-weight: bold;
    color: #8b5e3c;
    font-size: 0.85rem;
    min-width: 60px;
}

.nav-item a {
    color: #6b4a2e;
    text-decoration: none;
    font-size: 0.9rem;
    flex: 1;
}

.nav-item a:hover {
    text-decoration: underline;
    color: #8b5e3c;
}

.admin-actions {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.btn-edit, .btn-delete {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s ease;
}

.btn-edit {
    background: #8b5e3c;
    color: white;
}

.btn-edit:hover {
    background: #6b4a2e;
}

.btn-delete {
    background: #dc3545;
    color: white;
}

.btn-delete:hover {
    background: #c82333;
}

.notice-actions {
    text-align: center;
    margin-bottom: 2rem;
}

.btn-list {
    background: #6b4a2e;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.btn-list:hover {
    background: #5a3d25;
}

@media (max-width: 768px) {
    .notice-detail-section {
        margin: 1rem auto;
        padding: 0 1rem;
    }
    
    .notice-detail-header h1 {
        font-size: 1.2rem;
    }
    
    .notice-content {
        padding: 1rem;
        font-size: 0.85rem;
    }
    
    .admin-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-edit, .btn-delete {
        width: 100%;
        text-align: center;
    }
}

/* 공지사항 수정 스타일 */
.notice-edit-section {
    max-width: 600px;
    margin: 1.5rem auto;
    padding: 0 1.5rem;
}

.notice-edit-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 6px;
    border: 1px solid #e5d3b3;
}

.notice-edit-header h1 {
    color: #6b4a2e;
    font-size: 1.3rem;
    margin-bottom: 0.2rem;
    font-weight: bold;
}

.notice-edit-header p {
    color: #666;
    font-size: 0.85rem;
    margin: 0;
}

.notice-edit-form-container {
    background: white;
    border: 1px solid #e5d3b3;
    border-radius: 6px;
    padding: 1.2rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.notice-edit-form {
    display: grid;
    gap: 1rem;
}

.notice-edit-form .form-group {
    display: grid;
    gap: 0.3rem;
}

.notice-edit-form label {
    font-weight: bold;
    color: #6b4a2e;
    font-size: 0.85rem;
}

.notice-edit-form input,
.notice-edit-form textarea {
    padding: 0.6rem;
    border: 1px solid #e5d3b3;
    border-radius: 3px;
    font-size: 0.85rem;
    transition: border-color 0.3s ease;
    background: #fff;
    color: #6b4a2e;
}

.notice-edit-form input:focus,
.notice-edit-form textarea:focus {
    outline: none;
    border-color: #8b5e3c;
    box-shadow: 0 0 0 2px rgba(139, 94, 60, 0.1);
}

.notice-edit-form textarea {
    resize: vertical;
    min-height: 250px;
}

@media (max-width: 768px) {
    .notice-edit-section {
        margin: 1rem auto;
        padding: 0 1rem;
    }
    
    .notice-edit-header {
        padding: 1rem 0;
    }
    
    .notice-edit-header h1 {
        font-size: 1.3rem;
    }
    
    .notice-edit-form-container {
        padding: 1rem;
    }
    
    .notice-edit-form input,
    .notice-edit-form textarea {
        font-size: 0.85rem;
        padding: 0.6rem;
    }
}

@media (max-width: 768px) {
    .mypage-container {
        margin: 1rem auto;
        padding: 0 1rem;
    }
    
    .mypage-header {
        padding: 1.5rem 0;
        margin-bottom: 2rem;
    }
    
    .mypage-header h2 {
        font-size: 2rem;
    }
    
    .mypage-section {
        padding: 1.5rem;
    }
    
    .order-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .order-actions {
        align-self: flex-end;
    }
}

/* 공지사항 페이지 스타일 */
.notice-section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.notice-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
}

.notice-header h1 {
    color: #333;
    font-size: 1.4rem;
    margin-bottom: 0.2rem;
    font-weight: bold;
}

.notice-header p {
    color: #666;
    font-size: 0.8rem;
    margin: 0;
}

.notice-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 3rem;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 2rem;
    border-top: 1px solid #e5d3b3;
}

.search-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-form input[type="text"] {
    padding: 0.8rem;
    border: 2px solid #e5d3b3;
    border-radius: 5px;
    font-size: 1rem;
    min-width: 250px;
    transition: border-color 0.3s ease;
}

.search-form input[type="text"]:focus {
    outline: none;
    border-color: #8b5e3c;
    box-shadow: 0 0 0 3px rgba(139, 94, 60, 0.1);
}

.search-form button {
    background: #8b5e3c;
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-form button:hover {
    background: #6b4a2e;
}

.admin-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-write {
    background: #28a745;
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    transition: background 0.3s ease;
}

.btn-write:hover {
    background: #218838;
}

.notice-table-container {
    background: white;
}

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

.notice-table th {
    background: #f8f9fa;
    color: #333;
    font-weight: bold;
    padding: 1rem;
    border-bottom: 1px solid #e5d3b3;
    font-size: 0.95rem;
}

.notice-table th:nth-child(1) { /* 번호 */
    text-align: left;
    width: 10%;
}

.notice-table th:nth-child(2) { /* 제목 */
    text-align: center !important;
    width: 50%;
}

.notice-table td:nth-child(2) { /* 제목 */
    text-align: left !important;
}

.notice-table th:nth-child(3) { /* 작성자 */
    text-align: right;
    width: 15%;
}

.notice-table th:nth-child(4) { /* 작성일 */
    text-align: right;
    width: 15%;
}

.notice-table td {
    padding: 1rem;
    border-bottom: 1px solid #e5d3b3;
    color: #666;
    font-size: 0.9rem;
}

.notice-table td:nth-child(1) { /* 번호 */
    text-align: left;
}

.notice-table td:nth-child(2) { /* 제목 */
    text-align: left !important;
}

.notice-table td:nth-child(3) { /* 작성자 */
    text-align: right;
}

.notice-table td:nth-child(4) { /* 작성일 */
    text-align: right;
}

.notice-table td:nth-child(5) { /* 조회 */
    text-align: right;
}

.notice-table tr:hover {
    background: #f8f9fa;
}

.title-cell {
    text-align: left !important;
}

    .title-cell a {
        color: #6b4a2e;
        text-decoration: none;
        font-weight: bold;
        transition: color 0.3s ease;
        display: inline;
        text-align: left;
        font-size: 13px !important;
    }

.title-cell a:hover {
    color: #8b5e3c;
    text-decoration: underline;
}

.no-data-row {
    background: #f8f9fa;
}

.no-data-row td {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
    font-size: 1.1rem;
}

.no-notices {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
    background: white;
}

.page-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #e5d3b3;
    background: white;
    color: #6b4a2e;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.page-btn:hover {
    background: #e5d3b3;
    color: #6b4a2e;
}

.page-btn.active {
    background: #8b5e3c;
    color: white;
    border-color: #8b5e3c;
}

/* 마이페이지 컨테이너 사이즈 줄이기 */
.mypage-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .notice-section {
        margin: 1rem auto;
        padding: 0 1rem;
    }
    
    .notice-header {
        padding: 1.5rem 0;
        margin-bottom: 2rem;
    }
    
    .notice-header h1 {
        font-size: 2rem;
    }
    
    .notice-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-form input[type="text"],
    .search-form select {
        min-width: auto;
    }
    
    .notice-table {
        font-size: 0.9rem;
    }
    
    .notice-table th,
    .notice-table td {
        padding: 0.8rem 0.5rem;
    }
    
    .mypage-container {
        margin: 1rem auto;
        padding: 0 1rem;
    }
}

/* 공지사항 작성 페이지 스타일 */
.notice-write-section {
    max-width: 600px;
    margin: 1.5rem auto;
    padding: 0 1.5rem;
}

.notice-write-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
}

.notice-write-header h1 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 0.2rem;
    font-weight: bold;
}

.notice-write-header p {
    color: #666;
    font-size: 0.85rem;
    margin: 0;
}

.notice-write-form-container {
    background: white;
    border: 1px solid #e5d3b3;
    border-radius: 6px;
    padding: 1.2rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.notice-write-form {
    display: grid;
    gap: 1rem;
}

.notice-write-form .form-group {
    display: grid;
    gap: 0.3rem;
}

.notice-write-form label {
    font-weight: bold;
    color: #6b4a2e;
    font-size: 0.85rem;
}

.notice-write-form input,
.notice-write-form select,
.notice-write-form textarea {
    padding: 0.6rem;
    border: 1px solid #e5d3b3;
    border-radius: 3px;
    font-size: 0.85rem;
    transition: border-color 0.3s ease;
    background: #fff;
    color: #6b4a2e;
    font-family: inherit;
}

.notice-write-form input:focus,
.notice-write-form select:focus,
.notice-write-form textarea:focus {
    outline: none;
    border-color: #8b5e3c;
    box-shadow: 0 0 0 2px rgba(139, 94, 60, 0.1);
}

.notice-write-form textarea {
    resize: vertical;
    min-height: 250px;
}

.form-actions {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    margin-top: 0.8rem;
}

.submit-btn {
    background: #8b5e3c;
    color: white;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 3px;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #6b4a2e;
}

.cancel-btn {
    background: #6c757d;
    color: white;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 3px;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cancel-btn:hover {
    background: #5a6268;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .notice-write-section {
        margin: 1rem auto;
        padding: 0 1rem;
    }
    
    .notice-write-form-container {
        padding: 1.5rem;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .submit-btn,
    .cancel-btn {
        text-align: center;
    }
}

/* 마이페이지 메뉴 스타일 */
.mypage-menu {
    margin-bottom: 1.5rem;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: white;
    border: 1px solid #e5d3b3;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.menu-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #8b5e3c;
}

.menu-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #8b5e3c 0%, #6b4a2e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.menu-icon i {
    color: white;
    font-size: 1.2rem;
}

.menu-text h3 {
    color: #6b4a2e;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    font-weight: bold;
}

.menu-text p {
    color: #666;
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
}

/* 섹션 헤더 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-header h3 {
    margin: 0;
    color: #6b4a2e;
    font-size: 1.1rem;
}

.view-all {
    color: #8b5e3c;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.view-all:hover {
    text-decoration: underline;
}

/* 주문 미리보기 */
.order-preview {
    display: grid;
    gap: 0.8rem;
}

.order-preview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    border: 1px solid #e5d3b3;
    border-radius: 6px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.order-preview-item:hover {
    background: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* 빈 상태 */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}

.empty-state i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: #6b4a2e;
    margin-bottom: 0.5rem;
}

.empty-state p {
    margin-bottom: 1.5rem;
    color: #666;
}

.btn-primary {
    background: #8b5e3c;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: #6b4a2e;
}

/* 주문내역 페이지 */
.orders-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5d3b3;
}

.header-content h2 {
    color: #6b4a2e;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.header-content p {
    color: #666;
    font-size: 1rem;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: #8b5e3c;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.btn-back:hover {
    background: #6b4a2e;
}

.orders-content {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: #6b4a2e;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #666;
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    background: #8b5e3c;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: #6b4a2e;
}

.orders-list {
    padding: 0;
}

.order-card {
    border-bottom: 1px solid #f0f0f0;
    padding: 0.75rem;
    transition: background 0.3s ease;
}

.order-card:hover {
    background: #f8f9fa;
}

.order-card:last-child {
    border-bottom: none;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.order-number .label {
    font-size: 0.9rem;
    color: #666;
    display: block;
    margin-bottom: 0.3rem;
}

.order-number .value {
    font-weight: bold;
    color: #6b4a2e;
    font-size: 1.1rem;
}

.order-date {
    color: #666;
    font-size: 0.9rem;
}

.order-body {
    margin-bottom: 1rem;
}

.order-status {
    margin-bottom: 1rem;
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    color: white;
}

.status-pending { background: #ffc107; color: #333; }
.status-paid { background: #17a2b8; }
.status-shipping { background: #007bff; }
.status-delivered { background: #28a745; }
.status-cancelled { background: #dc3545; }

.order-details {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

.order-products, .order-amount, .order-quantity {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.order-products .label, .order-amount .label, .order-quantity .label {
    font-size: 0.9rem;
    color: #666;
    font-weight: bold;
}

.order-products .products {
    color: #6b4a2e;
    font-weight: 500;
    line-height: 1.4;
    word-break: break-word;
}

.order-amount .amount {
    color: #8b5e3c;
    font-weight: bold;
    font-size: 1.1rem;
}

.order-quantity .quantity {
    color: #666;
    font-weight: 500;
}

.order-footer {
    display: flex;
    justify-content: flex-end;
}

.order-actions {
    display: flex;
    gap: 1rem;
}

.btn-detail, .btn-cancel {
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-detail {
    background: #8b5e3c;
    color: white;
}

.btn-detail:hover {
    background: #6b4a2e;
}

.btn-cancel {
    background: white;
    color: #dc3545;
}

.btn-cancel:hover {
    background: #dc3545;
    color: white;
}

.pagination-container {
    padding: 2rem;
    text-align: center;
}

@media (max-width: 768px) {
    .orders-container {
        padding: 1rem;
    }
    
    .orders-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .order-details {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .order-footer {
        justify-content: center;
    }
    
    .order-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-detail, .btn-cancel {
        text-align: center;
    }
}

/* 정보수정 페이지 */
.profile-container {
    max-width: 1200px;
    margin: 1rem auto;
    padding: 0 1.5rem;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border: 1px solid #e5d3b3;
}

.profile-content {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.profile-sidebar {
    width: 250px;
    flex-shrink: 0;
}

.sidebar-menu {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: #6b4a2e;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.menu-item:hover {
    background: #f8f9fa;
    border-left-color: #e5d3b3;
}

.menu-item.active {
    background: #e5d3b3;
    border-left-color: #6b4a2e;
    color: #6b4a2e;
    font-weight: 600;
}

.menu-item i {
    width: 20px;
    text-align: center;
}

.profile-main {
    flex: 1;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 2rem;
}

.profile-section {
    display: none;
}

.profile-section.active {
    display: block;
}

.profile-section h3 {
    color: #6b4a2e;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5d3b3;
}

.profile-form {
    display: grid;
    gap: 1.2rem;
}

.form-divider {
    margin: 2rem 0 1rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid #e5d3b3;
}

.form-divider h4 {
    color: #8b5e3c;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.form-divider p {
    color: #666;
    font-size: 0.85rem;
    margin: 0;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 0;
    padding-top: 1.5rem;
    border-top: 1px solid #e5d3b3;
}

.cancel-btn {
    background: #6c757d;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.cancel-btn:hover {
    background: #5a6268;
}

/* 회원탈퇴 페이지 */
.withdraw-container {
    max-width: 700px;
    margin: 1rem auto;
    padding: 0 1.5rem;
}

.withdraw-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border: 1px solid #e5d3b3;
}

.withdraw-content {
    background: white;
    border: 1px solid #e5d3b3;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.withdraw-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.warning-icon {
    font-size: 2rem;
    color: #f39c12;
    margin-bottom: 1rem;
}

.withdraw-warning h3 {
    color: #856404;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.withdraw-warning p {
    color: #856404;
    margin: 0;
    font-size: 0.9rem;
}

.withdraw-form {
    display: grid;
    gap: 2rem;
}

.terms-section, .data-deletion-section, .final-confirmation {
    border: 1px solid #e5d3b3;
    border-radius: 8px;
    padding: 1.5rem;
    background: #f8f9fa;
}

.terms-section h4, .data-deletion-section h4, .final-confirmation h4 {
    color: #6b4a2e;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.terms-content {
    background: white;
    border: 1px solid #e5d3b3;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    line-height: 1.6;
    max-height: 200px;
    overflow-y: auto;
}

.terms-content h5 {
    color: #6b4a2e;
    font-size: 0.9rem;
    margin: 1rem 0 0.5rem 0;
}

.terms-content h5:first-child {
    margin-top: 0;
}

.terms-content p {
    margin-bottom: 0.8rem;
    color: #666;
}

.terms-content ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.terms-content li {
    margin-bottom: 0.3rem;
    color: #666;
}

.deletion-info, .confirmation-info {
    background: white;
    border: 1px solid #e5d3b3;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    line-height: 1.6;
}

.deletion-info p, .confirmation-info p {
    margin-bottom: 0.8rem;
    color: #666;
}

.deletion-info ul, .confirmation-info ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.deletion-info li, .confirmation-info li {
    margin-bottom: 0.3rem;
    color: #666;
}

.warning-text {
    color: #dc3545 !important;
    font-weight: bold;
}

.checkbox-group {
    margin-top: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #6b4a2e;
    font-weight: bold;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e5d3b3;
    border-radius: 4px;
    position: relative;
    background: white;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #8b5e3c;
    border-color: #8b5e3c;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
}

.label-text {
    flex: 1;
}

/* 페이지네이션 */
.pagination-container {
    margin-top: 2rem;
    text-align: center;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .orders-header, .profile-header, .withdraw-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .order-details {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .terms-content, .deletion-info, .confirmation-info {
        max-height: 150px;
    }
    
    .profile-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .profile-sidebar {
        width: 100%;
    }
    
    .profile-main {
        padding: 1rem;
    }
}

/* 마이페이지 사이드바 슬라이드 다운 애니메이션 */
.mypage-main-sidebar {
    opacity: 0;
    transform: translateY(-30px);
    animation: mypageSidebarSlideIn 0.6s ease forwards;
    animation-delay: 0.2s;
}

.mypage-main-sidebar .mypage-user-info {
    opacity: 0;
    transform: translateY(-20px);
    animation: mypageSidebarSlideIn 0.5s ease forwards;
    animation-delay: 0.4s;
}

.mypage-main-sidebar .mypage-nav {
    opacity: 0;
    transform: translateY(-20px);
    animation: mypageSidebarSlideIn 0.5s ease forwards;
    animation-delay: 0.6s;
}

@keyframes mypageSidebarSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 마이페이지 2단 레이아웃 */
.mypage-main-layout {
    display: flex;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    min-height: 600px;
    background: white;
    border: 1px solid #e5d3b3;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 왼쪽 사이드바 */
.mypage-main-sidebar {
    width: 250px;
    padding: 2rem 1.5rem;
    border-right: 2px solid #e5d3b3;
    background: #f8f9fa;
    border-radius: 8px 0 0 8px;
}

/* 마이페이지 사용자 정보 가운데 정렬 */
.mypage-main-sidebar .mypage-user-info {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5d3b3;
    text-align: center !important;
}

.mypage-main-sidebar .info-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
    text-align: center !important;
    align-items: center;
    justify-content: center;
}

.mypage-main-sidebar .info-item .label {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.3rem;
    font-weight: bold;
    text-align: center !important;
    width: 100%;
    display: block;
}

.mypage-main-sidebar .info-item .value {
    font-size: 1rem;
    color: #6b4a2e;
    font-weight: bold;
    text-align: center !important;
    width: 100%;
    display: block;
}

/* 마이페이지 네비게이션 메뉴 가운데 정렬 */
.mypage-main-sidebar .mypage-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center !important;
    align-items: center;
}

.mypage-main-sidebar .nav-item {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    padding: 0.5rem 0;
    text-decoration: none;
    color: #6b4a2e;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    border-radius: 0;
    text-align: center !important;
    width: 100%;
}

.mypage-main-sidebar .nav-item .nav-text {
    text-align: center !important;
    display: inline-block !important;
}

.mypage-main-sidebar .nav-item i {
    font-size: 1rem !important;
    margin-right: 0 !important;
    order: -1 !important;
}

.nav-item:hover {
    color: #8b5e3c;
    background: transparent;
    border-color: transparent;
}

.nav-item.active {
    color: #8b5e3c;
    background: transparent;
}

/* 오른쪽 콘텐츠 영역 */
.mypage-main-content {
    flex: 1;
    padding: 2rem;
    background: white;
}

.content-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5d3b3;
}

.content-header h2 {
    color: #6b4a2e;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}

/* 주문 목록 */
.order-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-item {
    padding: 1rem;
    border: 1px solid #e5d3b3;
    border-radius: 6px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.order-item:hover {
    background: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.order-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    min-height: 60px;
    flex-wrap: wrap;
}

.order-date {
    color: #666;
    font-weight: bold;
    min-width: 80px;
}

.order-product {
    color: #6b4a2e;
    font-weight: bold;
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 300px;
}

.order-amount {
    color: #8b5e3c;
    font-weight: bold;
    min-width: 100px;
    text-align: right;
}

.order-status {
    color: #666;
    font-size: 0.85rem;
    min-width: 80px;
    text-align: center;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    background: #e9ecef;
}

.empty-orders {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}

.empty-orders p {
    font-size: 1.1rem;
    margin: 0;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .mypage-main-layout {
        flex-direction: column;
        margin: 1rem;
        padding: 0;
    }
    
    .mypage-main-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 2px solid #e5d3b3;
        border-radius: 8px 8px 0 0;
    }
    
    .order-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .order-date, .order-product, .order-amount, .order-status {
        min-width: auto;
        text-align: left;
    }
}

/* 공지사항 게시글 상세보기 컨테이너 */
.notice-detail-container {
    background: white;
    margin-top: 2rem;
    border: none;
    box-shadow: none;
}

/* 공지사항 제목 */
.notice-title {
    padding: 2rem;
    border-top: 1px solid #e5d3b3;
    border-bottom: 1px solid #e5d3b3;
    background: #f8f9fa;
}

.notice-title h2 {
    color: #6b4a2e;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 0 1rem 0;
    line-height: 1.4;
    text-align: center
}

.notice-title .notice-meta {
    color: #666;
    font-size: 0.9rem;
}

.notice-title .notice-meta .date {
    color: #8b5e3c;
    font-weight: bold;
}

/* 공지사항 본문 */
.notice-content {
    padding: 2rem;
    line-height: 1.8;
    color: #333;
    font-size: 1rem;
    min-height: 300px;
    border-left: none;
    border-right: none;
    margin-top: 2rem;
    text-align: center;
}

.notice-content p {
    margin-bottom: 1rem;
}

/* 공지사항 네비게이션 */
.notice-navigation {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid #e5d3b3;
    border-bottom: 1px solid #e5d3b3;
    border-left: none;
    border-right: none;
    background: #f8f9fa;
}

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

.nav-item .nav-label {
    font-size: 0.8rem;
    color: #666;
    font-weight: bold;
    min-width: 60px;
}

.nav-item a {
    color: #6b4a2e;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-item a:hover {
    color: #8b5e3c;
    text-decoration: underline;
}

.nav-item.prev {
    text-align: left;
}

.nav-item.next {
    text-align: left;
}

.nav-item.center {
    text-align: center;
    width: 100%;
}

.no-notice {
    color: #999;
    font-style: normal;
    font-size: 0.9rem;
    font-weight: normal;
}

/* 관리자 기능 */
.admin-actions {
    display: flex;
    gap: 0.5rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid #e5d3b3;
    background: #f8f9fa;
}

.btn-edit, .btn-delete {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s ease;
}

.btn-edit {
    background: #007bff;
    color: white;
}

.btn-edit:hover {
    background: #0056b3;
}

.btn-delete {
    background: #dc3545;
    color: white;
}

.btn-delete:hover {
    background: #c82333;
}

/* 목록으로 버튼 */
.notice-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 3rem;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 2rem;
    border-top: 1px solid #e5d3b3;
}

/* 게시글 보기 페이지 전용 목록 버튼 */
.notice-view-actions {
    display: flex;
    justify-content: flex-end;
    padding: 1.5rem 0;
}

.btn-list {
    background: #8b5e3c;
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    transition: background 0.3s ease;
}

.btn-list:hover {
    background: #6b4a2e;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .notice-detail-container {
        margin-top: 1rem;
    }
    
    .notice-title {
        padding: 1.5rem;
    }
    
    .notice-title h2 {
        font-size: 1.3rem;
    }
    
    .notice-content {
        padding: 1.5rem;
        font-size: 0.95rem;
        text-align: left !important;
    }
    
    .notice-navigation {
        padding: 1rem 1.5rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-item.prev,
    .nav-item.next {
        text-align: center;
    }
    
    .admin-actions {
        padding: 1rem 1.5rem;
        justify-content: center;
    }
    
    .notice-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .notice-view-actions {
        padding: 1rem 0;
    }
}

/* 장바구니 페이지 스타일 */
.cart-section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.cart-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e5d3b3;
}

.cart-header h1 {
    color: #6b4a2e;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.cart-header p {
    color: #666;
    font-size: 1.1rem;
}

/* 빈 장바구니 */
.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.empty-cart-icon {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 2rem;
}

.empty-cart h3 {
    color: #6b4a2e;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.empty-cart p {
    color: #666;
    margin-bottom: 2rem;
}

.btn-shopping {
    display: inline-block;
    background: #8b5e3c;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.btn-shopping:hover {
    background: #6b4a2e;
}

/* 장바구니 컨테이너 */
.cart-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    align-items: start;
}

/* 장바구니 아이템 */
.cart-items {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.cart-items-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e5d3b3;
}

.select-all {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.select-all input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.select-all label {
    color: #6b4a2e;
    font-weight: bold;
    cursor: pointer;
}

.cart-items-count {
    color: #666;
    font-size: 0.9rem;
}

.cart-items-count span {
    color: #8b5e3c;
    font-weight: bold;
}

/* 장바구니 아이템 */
.cart-item {
    display: grid;
    grid-template-columns: 50px 120px 3fr 120px 100px 60px;
    gap: 1rem;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s ease;
    min-height: 120px;
}

.cart-item:hover {
    background: #f8f9fa;
}

.item-select {
    text-align: center;
}

.item-select input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

    .item-image {
        width: 120px !important;
        height: 120px !important;
        border-radius: 8px !important;
        flex-shrink: 0 !important;
        min-height: 120px !important;
        max-height: 120px !important;
        object-fit: cover !important;
    }

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

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

/* 장바구니 이미지 링크 스타일 */
.item-image a {
    display: block;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.item-image a:hover {
    transform: scale(1.05);
}

.item-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
    padding: 0 0.5rem;
}

.item-name a {
    color: #6b4a2e;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    line-height: 1.3;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-name a:hover {
    color: #8b5e3c;
    text-decoration: underline;
}

.item-description {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

/* 수량 컨트롤 */
.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #e5d3b3;
    border-radius: 6px;
    overflow: hidden;
    width: 70px;
    background: white;
}

.quantity-btn {
    background: #f8f9fa;
    border: none;
    padding: 0.3rem 0.5rem;
    cursor: pointer;
    font-weight: bold;
    color: #6b4a2e;
    transition: background 0.3s ease;
    font-size: 0.9rem;
}

.quantity-btn:hover {
    background: #e5d3b3;
}

.quantity-control input {
    border: none;
    text-align: center;
    width: 40px;
    padding: 0.3rem;
    font-size: 0.85rem;
}

/* 수량 입력 필드 화살표 제거 */
.quantity-control input::-webkit-outer-spin-button,
.quantity-control input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

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

.item-price {
    text-align: center;
    color: #666;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.item-total {
    text-align: center;
    font-weight: bold;
    color: #8b5e3c;
    font-size: 1rem;
}

.item-actions {
    text-align: center;
}

.remove-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    background: #ffebee;
    color: #dc3545;
}

/* 장바구니 푸터 */
.cart-items-footer {
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-top: 1px solid #e5d3b3;
}

.btn-remove-selected {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.btn-remove-selected:hover {
    background: #c82333;
}

/* 주문 요약 */
.cart-summary {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    position: sticky;
    top: 2rem;
}

.summary-header {
    background: #6b4a2e;
    color: white;
    padding: 1.5rem 2rem;
}

.summary-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.summary-content {
    padding: 2rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.summary-item:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.summary-item.total {
    font-size: 1.2rem;
    font-weight: bold;
    color: #8b5e3c;
    border-top: 2px solid #e5d3b3;
    padding-top: 1rem;
    margin-top: 1rem;
}

.cart-actions {
    padding: 0 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checkout-btn {
    background: #8b5e3c;
    color: white;
    border: none;
    padding: 1.2rem;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.checkout-btn:hover {
    background: #6b4a2e;
}

.continue-shopping {
    background: #f8f9fa;
    color: #6b4a2e;
    border: 1px solid #e5d3b3;
    padding: 1rem;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.continue-shopping:hover {
    background: #e5d3b3;
}

/* 배송 안내 */
.delivery-info {
    padding: 2rem;
    background: #f8f9fa;
    border-top: 1px solid #e5d3b3;
}


.delivery-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.delivery-info li {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.delivery-info li:before {
    content: "•";
    color: #8b5e3c;
    position: absolute;
    left: 0;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .cart-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .cart-item {
        grid-template-columns: auto 1fr auto auto auto auto;
        gap: 1rem;
        padding: 1rem;
        align-items: center;
    }
    
    .item-image {
        width: 80px;
        height: 80px;
    }
    
    .quantity-control {
        justify-content: center;
    }
    
    .item-price, .item-total {
        text-align: left;
    }
    
    .item-info {
        min-width: 0;
        flex: 1;
    }
    
    .item-name a {
        font-size: 0.9rem;
        line-height: 1.2;
    }
    
    .item-description {
        font-size: 0.8rem;
        margin-top: 0.2rem;
    }
    
    .cart-items-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

/* 상품 상세 페이지 스타일 */
.product-detail-section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

/* 상품 이미지 영역 */
.product-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image-container {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.thumbnail-container {
    display: flex;
    gap: 0.5rem;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.thumbnail.active {
    border-color: #8b5e3c;
}

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

/* 상품 정보 영역 */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.product-header {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.badge {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.badge.best {
    background: #ff6b6b;
    color: white;
}

.badge.discount {
    background: #ff4757;
    color: white;
}

.product-title {
    color: #6b4a2e;
    font-size: 2rem;
    font-weight: bold;
    line-height: 1.3;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.buyer-badge-text {
    background: rgba(139, 94, 60, 0.08);
    border: 1px solid rgba(139, 94, 60, 0.15);
    border-radius: 12px;
    padding: 6px 10px;
    display: inline-block;
    font-size: 12px;
    color: #8b5e3c;
    font-weight: 500;
    line-height: 1.2;
    margin-top: 4px;
}

.product-subtitle {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.5;
    margin: 0;
}

.product-subtitle img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 0.5rem 0;
}

.product-subtitle p {
    margin-bottom: 0.5rem;
}

.product-subtitle h1, .product-subtitle h2, .product-subtitle h3, 
.product-subtitle h4, .product-subtitle h5, .product-subtitle h6 {
    margin: 1rem 0 0.5rem 0;
    color: #6b4a2e;
}

.product-subtitle ul, .product-subtitle ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.product-subtitle li {
    margin-bottom: 0.25rem;
}

/* 가격 섹션 */
.product-price-section {
    padding: 1.8rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e5d3b3;
}

.price-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.current-price {
    font-size: 21px;
    font-weight: bold;
    color: #8b5e3c;
}

.original-price {
    font-size: 1.2rem;
    color: #999;
    text-decoration: line-through;
}

.discount-rate {
    background: #ff4757;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
}

/* 수량 선택 */
.product-options {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e5d3b3;
}

.quantity-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-label {
    font-weight: bold;
    color: #6b4a2e;
    min-width: 60px;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #e5d3b3;
    border-radius: 8px;
    overflow: hidden;
    width: fit-content;
    background: white;
}

.quantity-btn {
    background: #f8f9fa;
    border: none;
    padding: 0.8rem 1rem;
    cursor: pointer;
    font-weight: bold;
    color: #6b4a2e;
    transition: background 0.3s ease;
}

.quantity-btn:hover {
    background: #e5d3b3;
}

.quantity-input {
    border: none;
    text-align: center;
    width: 80px;
    padding: 0.8rem;
    font-size: 1rem;
    font-weight: bold;
}

/* 상품 액션 버튼 */
.product-actions {
    display: flex;
    flex-direction: row;
    gap: 1.2rem;
    margin-top: 2rem;
    align-items: center;
    justify-content: flex-start;
}

.main-actions, .secondary-actions {
    display: flex;
    flex-direction: row;
    gap: 0.7rem;
    align-items: center;
}

.product-price-section,
.product-options {
    text-align: right;
}

.btn-primary, .btn-secondary {
    padding: 1.2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: #8b5e3c;
    color: white;
}

.btn-primary:hover {
    background: #6b4a2e;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(139, 94, 60, 0.3);
}

.btn-secondary {
    background: #f8f9fa;
    color: #6b4a2e;
    border: 2px solid #e5d3b3;
}

.btn-secondary:hover {
    background: #e5d3b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(229, 211, 179, 0.3);
}

.secondary-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: white;
    border: 1px solid #e5d3b3;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    height: 50px;
    font-size: 0.95rem;
    font-weight: 500;
}

.btn-icon:hover {
    background: #f8f9fa;
    color: #8b5e3c;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(229, 211, 179, 0.2);
}

.btn-icon i {
    font-size: 1.1rem;
}

/* 배송 정보 */
.delivery-info {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e5d3b3;
    margin-top: 2rem;
}

.delivery-info h4 {
    color: #6b4a2e;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.delivery-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.delivery-info li {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    padding-left: 1.2rem;
    position: relative;
    line-height: 1.4;
}

.delivery-info li:before {
    content: "•";
    color: #8b5e3c;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* 상품 상세 정보 */
.product-details-section {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 3rem;
}

.details-tabs {
    display: flex;
    border-bottom: 1px solid #e5d3b3;
}

.tab-btn {
    flex: 1;
    padding: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    color: #666;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #8b5e3c;
    border-bottom: 3px solid #8b5e3c;
}

.tab-btn:hover {
    background: #f8f9fa;
}

.tab-content {
    padding: 2rem;
}

.tab-panel {
    display: none;
}

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

.product-info-table {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-row {
    display: flex;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.info-label {
    font-weight: bold;
    color: #6b4a2e;
    min-width: 120px;
}

.info-value {
    color: #666;
    flex: 1;
}

.no-reviews, .no-qna {
    text-align: center;
    padding: 3rem 2rem;
    color: #666;
}

.no-reviews p, .no-qna p {
    margin: 0.5rem 0;
}

/* 관련 상품 */
.related-products-section {
    margin-top: 3rem;
}

.related-products-section h3 {
    color: #6b4a2e;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.related-product-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.related-product-card:hover {
    transform: translateY(-5px);
}

.related-product-card .product-image {
    position: relative;
    height: 250px !important;
    min-height: 250px !important;
    max-height: 250px !important;
    overflow: hidden;
}

.related-product-card .product-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    min-height: 250px !important;
    max-height: 250px !important;
}

.related-product-card .product-info {
    padding: 1.5rem;
    gap: 1rem;
}

.related-product-card .product-name a {
    color: #6b4a2e;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px !important;
    line-height: 1.2 !important;
}

.related-product-card .product-name a:hover {
    color: #8b5e3c;
    text-decoration: underline;
}

.related-product-card .product-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.related-product-card .current-price {
    font-weight: bold;
    color: #8b5e3c !important;
    font-size: 1.1rem !important;
}

.related-product-card .original-price {
    color: #999;
    text-decoration: line-through;
    font-size: 0.9rem !important;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .main-image-container {
        height: 300px;
    }
    
    .product-title {
        font-size: 1.5rem;
    }
    
    .current-price {
        font-size: 1.0rem;
    }
    
    .main-actions {
        grid-template-columns: 1fr;
    }
    
    .secondary-actions {
        flex-direction: column;
    }
    
    .details-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        text-align: center;
    }
    
    .related-products-grid {
        grid-template-columns: 1fr;
    }
}

/* 상품 목록 페이지 스타일 */
.products-section {
    padding: 2rem 0;
    background: #fafafa;
}

.products-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.products-header {
    text-align: center;
    margin-bottom: 3rem;
}

.products-header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #6b4a2e;
    margin-bottom: 0.5rem;
}

.products-header p {
    font-size: 1.1rem;
    color: #8B7355;
}

/* 필터 섹션 */
.filter-section {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filter-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

/* 첫 번째 줄: 카테고리와 정렬을 가로로 배치 */
.filter-row:first-child {
    display: flex;
    gap: 1.5rem;
    align-items: flex-end;
}

.filter-row:first-child .filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    font-weight: 600;
    color: #6b4a2e;
    font-size: 0.9rem;
}

.filter-select {
    padding: 0.75rem;
    border: 2px solid #e5d3b3;
    border-radius: 8px;
    background: #fff;
    font-size: 0.9rem;
    color: #6b4a2e;
    transition: border-color 0.3s;
}

.filter-select:focus {
    outline: none;
    border-color: #8B7355;
}

.price-range {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.price-input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #e5d3b3;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #6b4a2e;
    transition: border-color 0.3s;
    min-width: 80px;
    height: 46px;
    box-sizing: border-box;
}

.price-input:focus {
    outline: none;
    border-color: #8B7355;
}

.price-separator {
    color: #8B7355;
    font-weight: 500;
}

.search-group {
    flex: 2;
}

.search-input {
    padding: 0.75rem;
    border: 2px solid #e5d3b3;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #6b4a2e;
    transition: border-color 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #8B7355;
}

.filter-btn {
    padding: 0.75rem 2rem;
    background: #8B7355;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.filter-btn:hover {
    background: #6b4a2e;
}

/* 상품 목록 */
.products-container {
    background: #fff;
    border-radius: 12px;
    padding: 0rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

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

.product-badges {
    position: static;
    margin-bottom: 1rem;
}

.badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
}

.badge.best {
    background: #ff6b35;
}

.badge.discount {
    background: #e74c3c;
}

.product-info {
    padding: 1rem;
}

.product-name {
    margin-bottom: 0 !important;
    text-align: center;
    line-height: 0.8 !important;
    padding: 0 !important;
}

.product-name a {
    font-size: 15px !important;
    font-weight: 600;
    color: #342a22;
    line-height: 0.8 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding: 0 !important;
    margin: 0 !important;
}

.product-name a:hover {
    color: #8B7355;
}

.product-description {
    color: #8B7355;
    font-size: 0.9rem;
    margin-bottom: 0 !important;
    line-height: 0.8 !important;
    display: none !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding: 0 !important;
}

/* 카테고리 페이지의 product-description도 숨김 */
p.product-description {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0 !important;
    flex-wrap: wrap;
    line-height: 0.8 !important;
    padding: 0 !important;
}

.original-price {
    color: #999;
    text-decoration: line-through;
    font-size: 0.9rem !important;
}

.discount-price {
    color: #e74c3c;
    font-weight: 600;
    font-size: 1.1rem !important;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.add-cart-btn, .wish-btn {
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
}

.add-cart-btn {
    background: #8B7355;
    color: #fff;
}

.add-cart-btn:hover {
    background: #6b4a2e;
}

.wish-btn {
    background: #fff;
    color: #6b4a2e;
    border: 1px solid #6b4a2e;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wish-btn:hover {
    background: #6b4a2e;
    color: #fff;
}

.wish-btn.wishlisted {
    background: #e74c3c;
    color: #fff;
    border-color: #e74c3c;
}

.wish-btn.wishlisted:hover {
    background: #c0392b;
    border-color: #c0392b;
}

/* 상품이 없을 때 */
.no-products {
    text-align: center;
    padding: 4rem 2rem;
}

.no-products-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.no-products-content i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.no-products-content h3 {
    font-size: 1.5rem;
    color: #6b4a2e;
    margin-bottom: 0.5rem;
}

.no-products-content p {
    color: #8B7355;
    font-size: 1rem;
}

/* 페이지네이션 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.page-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #e5d3b3;
    background: #fff;
    color: #6b4a2e;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s;
    min-width: 40px;
    text-align: center;
}

.page-btn:hover {
    background: #e5d3b3;
    color: #6b4a2e;
}

.page-btn.active {
    background: #8B7355;
    color: #fff;
    border-color: #8B7355;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .products-section .container {
        padding: 0 1rem;
    }
    
    .products-header h1 {
        font-size: 2rem;
    }
    
    .filter-section {
        padding: 0rem;
    }
    
    .filter-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .price-range {
        flex-direction: column;
        align-items: stretch;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .wish-btn {
        min-width: auto;
    }
}

/* 체크아웃 페이지 스타일 */
.checkout-section {
    padding: 2rem 0;
    background: #f8f9fa;
    min-height: 50vh;
}

.checkout-header {
    text-align: center;
    margin-bottom: 2rem;
}

.checkout-header h1 {
    color: #6b4a2e;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.checkout-header p {
    color: #666;
    font-size: 1rem;
}

.checkout-form {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.checkout-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.order-items, .shipping-info, .payment-method {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.order-items h3, .shipping-info h3, .payment-method h3 {
    background: #6b4a2e;
    color: white;
    padding: 1.5rem 2rem;
    margin: 0;
    font-size: 1.2rem;
}

.items-list {
    padding: 1.5rem 2rem;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.order-item:last-child {
    border-bottom: none;
}

.order-item .item-image {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.order-item .item-info {
    flex: 1;
    min-width: 0;
}

.order-item .item-name {
    font-weight: bold;
    color: #6b4a2e;
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

.order-item .item-quantity {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.order-item .item-price {
    color: #666;
    font-size: 0.9rem;
}

.order-item .item-total {
    font-weight: bold;
    color: #8b5e3c;
    font-size: 1.1rem;
    text-align: right;
    min-width: 100px;
}

.form-grid {
    padding: 1.5rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: bold;
    color: #6b4a2e;
    font-size: 0.9rem;
}

.form-group input, .form-group textarea {
    padding: 0.8rem;
    border: 1px solid #e5d3b3;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #8b5e3c;
}

.payment-options {
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* 결제 방법 에러 말풍선 */
.payment-error-tooltip {
    position: relative;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 1rem;
    color: #721c24;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.15);
}

.tooltip-arrow {
    position: absolute;
    top: -8px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #f8d7da;
}

.tooltip-content {
    position: relative;
    z-index: 1;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    border: 1px solid #e5d3b3;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option:hover {
    border-color: #8b5e3c;
    background: #f8f9fa;
}

.payment-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #8b5e3c;
}

.option-text {
    font-weight: 500;
    color: #6b4a2e;
}

.order-summary {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.order-summary h3 {
    background: #6b4a2e;
    color: white;
    padding: 1.5rem 2rem;
    margin: 0;
    font-size: 1.2rem;
}

.summary-content {
    padding: 2rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.summary-item:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.summary-item.total {
    font-size: 1.2rem;
    font-weight: bold;
    color: #8b5e3c;
    border-top: 2px solid #e5d3b3;
    padding-top: 1rem;
    margin-top: 1rem;
}

.checkout-btn {
    width: 100%;
    background: #8b5e3c;
    color: white;
    border: none;
    padding: 1.2rem;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 1rem;
}

.checkout-btn:hover {
    background: #6b4a2e;
}

@media (max-width: 768px) {
    .checkout-form {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .order-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    
    .order-item .item-total {
        text-align: left;
        min-width: auto;
    }
}

/* 주문 완료 페이지 스타일 */
.order-complete-section {
    padding: 2rem 0;
    background: #f8f9fa;
    min-height: 100vh;
}

.complete-header {
    text-align: center;
    margin-bottom: 2rem;
}

.complete-header h1 {
    color: #28a745;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.complete-header p {
    color: #666;
    font-size: 1rem;
}

.order-details {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.order-info, .order-items, .order-summary {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.order-info h3, .order-items h3, .order-summary h3 {
    background: #6b4a2e;
    color: white;
    padding: 1.5rem 2rem;
    margin: 0;
    font-size: 1.2rem;
}

.order-info {
    padding: 1.5rem 2rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-item .label {
    font-weight: bold;
    color: #6b4a2e;
}

.info-item .value {
    color: #666;
}

.order-items {
    padding: 1.5rem 2rem;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.order-item:last-child {
    border-bottom: none;
}

.order-item .item-image {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.order-item .item-info {
    flex: 1;
    min-width: 0;
}

.order-item .item-name {
    font-weight: bold;
    color: #6b4a2e;
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

.order-item .item-quantity {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.order-item .item-price {
    color: #666;
    font-size: 0.9rem;
}

.order-item .item-total {
    font-weight: bold;
    color: #8b5e3c;
    font-size: 1.1rem;
    text-align: right;
    min-width: 100px;
}

.order-summary {
    padding: 1.5rem 2rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.summary-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.summary-item.total {
    font-size: 1.2rem;
    font-weight: bold;
    color: #8b5e3c;
    border-top: 2px solid #e5d3b3;
    padding-top: 1rem;
    margin-top: 1rem;
}

.complete-actions {
    text-align: center;
    margin: 2rem 0;
}

.btn-orders, .btn-home {
    display: inline-block;
    padding: 1rem 2rem;
    margin: 0 0.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-orders {
    background: #8b5e3c;
    color: white;
}

.btn-orders:hover {
    background: #6b4a2e;
}

.btn-home {
    background: white;
    color: #8b5e3c;
    border: 2px solid #8b5e3c;
}

.btn-home:hover {
    background: #8b5e3c;
    color: white;
}

.shipping-notice {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.shipping-notice h3 {
    color: #6b4a2e;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.shipping-notice ul {
    list-style: none;
    padding: 0;
}

.shipping-notice li {
    padding: 0.5rem 0;
    color: #666;
    position: relative;
    padding-left: 1.5rem;
}

.shipping-notice li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

@media (max-width: 768px) {
    .complete-header h1 {
        font-size: 1.5rem;
    }
    
    .order-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    
    .order-item .item-total {
        text-align: left;
        min-width: auto;
    }
    
    .btn-orders, .btn-home {
        display: block;
        margin: 0.5rem 0;
    }
}

/* 관리자 페이지 스타일 */
.admin-login-section {
    padding: 2rem 0;
    background: #f8f9fa;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.login-container {
    max-width: 400px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    border: 1px solid #e5d3b3;
    padding: 2rem;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h1 {
    color: #6b4a2e;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #666;
    font-size: 1rem;
}

.admin-login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.admin-login-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-login-form label {
    font-weight: bold;
    color: #6b4a2e;
    font-size: 0.9rem;
}

.admin-login-form input {
    padding: 0.8rem;
    border: 1px solid #e5d3b3;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.admin-login-form input:focus {
    outline: none;
    border-color: #8b5e3c;
}

.login-btn {
    background: #8b5e3c;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.login-btn:hover {
    background: #6b4a2e;
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.back-link {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #8b5e3c;
}

/* 관리자 대시보드 스타일 */
.admin-dashboard {
    padding: 2rem 0;
    background: #f8f9fa;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.admin-dashboard .container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    color: #6b4a2e;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.dashboard-header p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.admin-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.admin-info span {
    color: #6b4a2e;
    font-weight: bold;
}

.logout-btn {
    color: #666;
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    transition: color 0.3s;
    background: none;
    text-decoration: none;
}

.logout-btn:hover {
    color: #333;
    text-decoration: underline;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #8b5e3c;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-content h3 {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.stat-number {
    color: #6b4a2e;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0;
}

.admin-menu {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 2rem;
    margin-bottom: 3rem;
}

.admin-menu h2 {
    color: #6b4a2e;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #6b4a2e;
    transition: all 0.3s ease;
}

.menu-item:hover {
    background: #8b5e3c;
    color: white;
    transform: translateY(-2px);
}

.menu-item i {
    font-size: 2rem;
}

.menu-item span {
    font-weight: bold;
    font-size: 1rem;
}

.recent-orders {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 2rem;
}

.recent-orders h2 {
    color: #6b4a2e;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.orders-table {
    overflow-x: auto;
}

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

.orders-table th {
    background: #f8f9fa;
    padding: 1rem;
    text-align: left;
    font-weight: bold;
    color: #6b4a2e;
    border-bottom: 2px solid #e5d3b3;
}

.orders-table td {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.orders-table tr:hover {
    background: #f8f9fa;
}

.status-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
}

.status-pending { background: #ffc107; color: #333; }
.status-processing { background: #17a2b8; }
.status-shipped { background: #007bff; }
.status-delivered { background: #28a745; }
.status-cancelled { background: #dc3545; }

.btn-detail {
    background: #8b5e3c;
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.8rem;
    transition: background 0.3s ease;
}

.btn-detail:hover {
    background: #6b4a2e;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .orders-table {
        font-size: 0.9rem;
    }
    
    .orders-table th,
    .orders-table td {
        padding: 0.8rem 0.5rem;
    }
}

/* 관리자 헤더 스타일 */
.admin-header {
    background: #6b4a2e;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.admin-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-logo h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: bold;
}

.admin-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-user {
    font-weight: bold;
}

.admin-logout-btn, .admin-home-btn {
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    transition: background 0.3s ease;
}

.admin-logout-btn {
    background: #dc3545;
    color: white;
}

.admin-logout-btn:hover {
    background: #c82333;
}

.admin-home-btn {
    background: #8b5e3c;
    color: white;
}

.admin-home-btn:hover {
    background: #6b4a2e;
}

@media (max-width: 768px) {
    .admin-header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .admin-nav {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* 다양한 선식 제품 섹션 스타일 */
.diverse-products {
    background: #f8f9fa;
    padding: 4rem 0;
}

.diverse-products .products {
    background: transparent;
}

.diverse-products .products > div {
    text-align: center;
    margin-bottom: 3rem;
}

.diverse-products .products h2 {
    color: #6b4a2e;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.diverse-products .products p {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.diverse-products .products-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.diverse-products .products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.diverse-products .product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    min-width: 0;
}

.diverse-products .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.diverse-products .product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.diverse-products .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.diverse-products .product-card:hover .product-image img {
    transform: scale(1.05);
}

.diverse-products .product-info {
    padding: 0.8rem;
}

.diverse-products .product-name a {
    color: #6b4a2e;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px !important;
    display: block;
    margin-bottom: 0;
    line-height: 0.8;
}

.diverse-products .product-name a:hover {
    color: #8b5e3c;
}

.diverse-products .product-price {
    margin-bottom: 0;
}

.diverse-products .current-price {
    color: #e74c3c !important;
    font-size: 1.1rem !important;
    font-weight: bold;
}

.diverse-products .original-price {
    color: #999;
    text-decoration: line-through;
    font-size: 0.9rem !important;
    margin-right: 0.4rem;
}

.diverse-products .discount-price {
    color: #dc3545;
    font-size: 1.1rem !important;
    font-weight: bold;
    margin-right: 0.4rem;
}

.diverse-products .discount-rate {
    background: #dc3545;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: bold;
}

.diverse-products .product-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.diverse-products .add-cart-btn {
    flex: 1;
    background: #8b5e3c;
    color: white;
    border: none;
    padding: 0.6rem;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.diverse-products .add-cart-btn:hover {
    background: #6b4a2e;
}

.diverse-products .wish-btn {
    background: white;
    color: #8b5e3c;
    border: 2px solid #8b5e3c;
    padding: 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 45px;
}

.diverse-products .wish-btn:hover {
    background: #8b5e3c;
    color: white;
}

.empty-products {
    text-align: center;
    padding: 3rem;
    color: #7f8c8d;
    grid-column: 1 / -1;
}

.empty-products i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #bdc3c7;
}

.empty-products h3 {
    margin-bottom: 0.5rem;
    color: #6b4a2e;
}

.empty-products p {
    color: #95a5a6;
}

@media (max-width: 768px) {
    .diverse-products .products h2 {
        font-size: 2rem;
    }
    
    .diverse-products .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .diverse-products .product-image {
        height: 200px;
    }
    
    /* 다양한 선식 제품 섹션 모바일 최적화 */
    .diverse-products .product-card {
        width: 100%;
        margin: 0 auto 0.8rem auto;
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 0.8rem;
        border-radius: 8px;
        box-shadow: 0 1px 4px rgba(0,0,0,0.08);
        background: white;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        border: 1px solid #f5f5f5;
    }
    
    .diverse-products .product-card:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    }
    
    .diverse-products .product-card .product-image {
        flex: 0 0 100px;
        width: 100px;
        height: 200px !important;
        min-height: 200px !important;
        max-height: 200px !important;
        margin-right: 0.8rem;
        border-radius: 6px;
        overflow: hidden;
        align-self: stretch;
    }
    
    .diverse-products .product-card .product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .diverse-products .product-card .product-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
        min-height: 100px;
        justify-content: flex-start;
    }
    
    .diverse-products .product-card .product-name {
        font-size: 1.1rem;
        font-weight: 600;
        line-height: 1.2;
        margin-bottom: 0.3rem;
    }
    
    .diverse-products .product-card .product-name a {
        font-size: 1.1rem;
        font-weight: 600;
        line-height: 1.2;
        margin-bottom: 0.3rem;
    }
    
    .diverse-products .product-card .product-summary {
        font-size: 0.95rem;
        color: #666;
        line-height: 1.3;
        margin-bottom: 0.3rem;
        flex: 1;
    }
    
    .diverse-products .product-card .product-price {
        font-size: 1.2rem;
        font-weight: 700;
        color: #6b4a2e;
        margin-top: auto;
        text-align: right;
        padding-top: 1rem;
    }
    
    .diverse-products .product-card .product-price .current-price {
        display: block !important;
        margin-top: 2rem !important;
        padding-top: 1rem !important;
        border-top: 1px solid #f0f0f0;
    }
    
    .diverse-products .product-card .product-price .original-price,
    .diverse-products .product-card .product-price .discount-price,
    .diverse-products .product-card .product-price .discount-rate {
        display: block !important;
        margin-top: 2rem !important;
        padding-top: 1rem !important;
        border-top: 1px solid #f0f0f0;
    }
}

/* 주소 입력 그룹 스타일 */
.address-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.address-input-group input[type="text"] {
    flex: 1;
}

.btn-address-search {
    padding: 0.5rem 1rem;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.btn-address-search:hover {
    background: #2980b9;
}

/* 찜 목록 스타일 */
.wishlist-section {
    padding: 2rem 0;
    background: #f8f9fa;
    min-height: calc(100vh - 200px);
}

.wishlist-header {
    text-align: center;
    margin-bottom: 2rem;
}

.wishlist-header h1 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.wishlist-header p {
    color: #6c757d;
    font-size: 1.1rem;
}

.empty-wishlist {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.empty-icon {
    font-size: 4rem;
    color: #e74c3c;
    margin-bottom: 1rem;
}

.empty-wishlist h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.empty-wishlist p {
    color: #6c757d;
    margin-bottom: 2rem;
}

.btn-shop {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-shop:hover {
    background: #2980b9;
}

.wishlist-content {
    max-width: 1200px;
    margin: 0 auto;
}

.wishlist-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.wishlist-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: row;
}

.wishlist-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.wishlist-item .item-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    flex: 0 0 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wishlist-item .item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s;
}

.wishlist-item:hover .item-image img {
    transform: scale(1.05);
}

.wishlist-item .item-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 250px;
}

.wishlist-item .item-name {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.wishlist-item .item-name a {
    color: #2c3e50;
    text-decoration: none;
}

.wishlist-item .item-name a:hover {
    color: #3498db;
}

.wishlist-item .item-summary {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.wishlist-item .item-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 1rem;
}

.wishlist-item .item-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-add-cart {
    flex: 1;
    padding: 0.75rem;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-add-cart:hover {
    background: #2980b9;
}

.btn-remove-wishlist {
    padding: 0.75rem;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-remove-wishlist:hover {
    background: #c0392b;
}

/* 찜하기 버튼 스타일 */
.btn-icon.wishlist {
    transition: all 0.3s;
}

.btn-icon.wishlist:hover {
    background: #e74c3c;
    color: white;
}

.btn-icon.wishlist .fas {
    color: #e74c3c;
}

.btn-icon.wishlist:hover .fas {
    color: white;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .wishlist-items {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    .wishlist-item .item-actions {
        flex-direction: column;
    }
    
    .btn-add-cart,
    .btn-remove-wishlist {
        width: 100%;
    }
}

.product-info {
    padding: 1rem;
    text-align: center;
}

.product-name {
    margin-bottom: 0.05rem !important;
    text-align: center;
    line-height: 1.0 !important;
    padding: 0 !important;
}



.product-name a:hover {
    color: #6b4a2e;
}

.product-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.0 !important;
    margin-bottom: 0.05rem !important;
    text-align: center;
    padding: 0 !important;
    display: none !important;
}

/* 카테고리 페이지의 product-description도 숨김 */
p.product-description {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

        .product-price {
            margin-bottom: 0.05rem !important;
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.2rem;
            line-height: 1.0 !important;
            padding: 0 !important;
        }

        .product-price .original-price,
        .product-price .current-price,
        .product-price .discount-price,
        .product-price .discount-rate {
            text-align: center;
        }

.product-summary {
    color: #888;
    font-size: 0.85rem;
    line-height: 1.0 !important;
    margin-bottom: 0.05rem !important;
    text-align: center;
    padding: 0 !important;
}

.product-image a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-image a:hover {
    opacity: 0.9;
}

/* 모든 product-description 요소 숨김 - 전역 규칙 */
.product-description,
p.product-description,
div.product-description {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* 추가 강화 규칙 */
.product-info .product-description,
.product-card .product-description,
.product-info p.product-description,
.product-card p.product-description,
.product-info div.product-description,
.product-card div.product-description {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
}

/* 상품 상세페이지에서만 product-description 보이게 */
.product-detail-section .product-description {
  display: block !important;
  color: #666;
  font-size: 1rem;
  line-height: 0.8;
  margin-bottom: 0;
  padding: 0;
  background: none;
  text-align: left;
}

/* 관련상품 카드 UI 개선 */
.related-product-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.related-product-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0,0,0,0.13);
}
.related-product-card .product-image {
  position: relative;
  height: 180px;
  overflow: hidden;
}
.related-product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.related-product-card .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}
.related-product-card .product-info {
  padding: 1.2rem 1rem 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: flex-start;
}
.related-product-card .product-name a {
  font-size: 1rem;
  font-weight: 600;
  color: #6b4a2e;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.2rem;
}
.related-product-card .product-price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.related-product-card .current-price {
  color: #e74c3c;
  font-weight: bold;
  font-size: 1.1rem;
}
.related-product-card .original-price {
  color: #999;
  text-decoration: line-through;
  font-size: 0.9rem;
}

.product-header {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-header-container {
    padding: 1.8rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e5d3b3;
}

.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
}

.product-badges .badge {
    background: #ff6b35;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

/* 상품 이미지 안에 베스트 배지 오버레이 */
.product-image {
    position: relative;
}
.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}
.product-badges .badge.best {
    background: #ff6b35;
    color: #fff;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* 카테고리 상품 카드 개선 */
.category-product-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.category-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.category-product-card .product-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.category-product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.category-product-card .product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    min-height: 120px;
}

.category-product-card .product-name-container {
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.category-product-card .product-summary-container {
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.category-product-card .product-name {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
}

.category-product-card .product-name a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    text-align: center;
    display: block;
    width: 100%;
}

.category-product-card .product-name {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
}

.category-product-card .product-summary {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-align: center;
}

.category-product-card .product-image-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    cursor: pointer;
}

.category-product-card .product-name a:hover {
    color: #6b4a2e;
}

.category-product-card .product-summary-container {
    min-height: 2.5rem;
    display: flex;
    align-items: center;
}

.category-product-card .product-summary {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.category-product-card .product-price {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.category-product-card .original-price {
    color: #999;
    text-decoration: line-through;
    font-size: 0.9rem;
}

.category-product-card .discount-price {
    color: #6b4a2e;
    font-weight: 600;
    font-size: 1.1rem;
}

.category-product-card .discount-rate {
    background: #ff6b6b;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* 카테고리 페이지 호버 효과 */
.category-product-card .product-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.category-product-card .product-image a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    z-index: 3;
}

.category-product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
    cursor: pointer;
}

.category-product-card:hover .product-image-overlay {
    opacity: 1;
}

.category-product-card .hover-btn {
    background: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6b4a2e;
    font-size: 1.1rem;
}

.category-product-card .hover-btn:hover {
    background: #6b4a2e;
    color: white;
    transform: scale(1.1);
}

.category-product-card .hover-btn.wish-btn.wishlisted {
    background: #ff6b6b;
    color: white;
}

.category-product-card .hover-btn.wish-btn.wishlisted:hover {
    background: #e74c3c;
}

/* 상품명 줄간격 강제 적용 */
.product-name a {
    line-height: 1.2 !important;
}

/* 베스트 상품 무한 스크롤 카드 시스템 */
.best-products-carousel {
    position: relative;
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* 모바일 베스트 상품 페이드 전환 */
@media (max-width: 768px) {
    .best-products-carousel {
        overflow: hidden;
        position: relative;
        height: 500px;
        background: #f8f8f8;
        border-radius: 10px;
        padding: 20px;
    }
    
    .carousel-track {
        display: block !important;
        transition: none !important;
        gap: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        transform: none !important;
        position: relative;
        height: 100%;
    }
    
    .carousel-card {
        flex: none !important;
        min-width: auto !important;
        max-width: none !important;
        width: 100% !important;
        margin: 0 !important;
        transform: translateX(100%) !important;
        opacity: 1 !important;
        display: block !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        scale: 1 !important;
        z-index: 1 !important;
        height: 100% !important;
        transition: transform 0.8s ease-in-out !important;
        background: white !important;
        border-radius: 10px !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    }
    
    .carousel-card.active {
        transform: translateX(0) !important;
        z-index: 2 !important;
    }
    
    /* PC 캐러셀 클래스 무효화 */
    .carousel-card.prev,
    .carousel-card.next,
    .carousel-card.far {
        transform: translateX(100%) !important;
        opacity: 1 !important;
        scale: 1 !important;
        z-index: 1 !important;
    }
    
    /* 모바일 카드 크기 조정 */
    .carousel-card .product-image {
        height: 250px !important;
        min-height: 250px !important;
        max-height: 250px !important;
    }
    
    .carousel-card .product-info {
        padding: 0 !important;
        height: auto !important;
        min-height: 150px !important;
    }
    
    .carousel-card .product-text {
        font-size: 1rem !important;
        line-height: 1.4 !important;
        margin: 0 !important;
        padding: 0 !important;
        color: #6b4a2e !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
    }
    
    .carousel-card .product-text a {
        font-size: 1.1rem !important;
        font-weight: 600 !important;
        color: #6b4a2e !important;
        text-decoration: none !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        text-align: center !important;
        margin-top: 8px !important;
    }
    
    .carousel-card .product-text a:hover {
        color: #8b5e3c !important;
    }
    
    .carousel-card .product-text .current-price,
    .carousel-card .product-text .discount-price {
        font-weight: bold !important;
        color: #e74c3c !important;
        font-size: 1rem !important;
        display: block !important;
    }
    
    .carousel-card .product-text .original-price {
        color: #999 !important;
        text-decoration: line-through !important;
        font-size: 0.9rem !important;
        display: inline !important;
    }
    
    .carousel-card .product-text .discount-rate {
        background: #e74c3c !important;
        color: white !important;
        padding: 0.2rem 0.5rem !important;
        border-radius: 10px !important;
        font-size: 0.8rem !important;
        font-weight: bold !important;
        display: inline !important;
    }
    
    /* 모바일에서 호버 효과 제거 */
    .carousel-card:hover {
        transform: none !important;
        z-index: 2 !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    }
    
    .carousel-card:hover .product-image img {
        transform: none !important;
    }
    
    .carousel-card:hover .product-image-overlay {
        opacity: 0 !important;
    }
    
    /* 모바일 전용 product-text 스타일 */
    .carousel-card .product-text {
        font-size: 1rem !important;
        line-height: 1.4 !important;
        margin: 0 !important;
        padding: 0 !important;
        color: #6b4a2e !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    .carousel-card .product-text a {
        font-size: 1.1rem !important;
        font-weight: 600 !important;
        color: #6b4a2e !important;
        text-decoration: none !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        text-align: center !important;
        margin-top: 8px !important;
    }
    
    .carousel-card .product-text a:hover {
        color: #8b5e3c !important;
    }
    
    .carousel-card .product-text .current-price,
    .carousel-card .product-text .discount-price {
        font-weight: bold !important;
        color: #e74c3c !important;
        font-size: 1.2rem !important;
        display: block !important;
        margin-top: 8px !important;
    }
    
    .carousel-card .product-text .original-price {
        color: #999 !important;
        text-decoration: line-through !important;
        font-size: 0.9rem !important;
        display: inline !important;
    }
    
    .carousel-card .product-text .discount-rate {
        background: #e74c3c !important;
        color: white !important;
        padding: 0.2rem 0.5rem !important;
        border-radius: 10px !important;
        font-size: 0.8rem !important;
        font-weight: bold !important;
        display: inline !important;
    }
    
    /* 모바일에서 설명 텍스트 크기 증가 */
    .carousel-card .product-text {
        font-size: 1.1rem !important;
        line-height: 1.5 !important;
    }
}

/* 좌우 화살표 버튼 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #8b5e3c;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    font-size: 1.2rem;
    color: #8b5e3c;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-btn:hover {
    background: #8b5e3c;
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(139, 94, 60, 0.3);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-btn-prev {
    left: -25px;
}

.carousel-btn-next {
    right: -25px;
}

.carousel-btn i {
    font-size: 1.5rem;
    font-weight: bold;
}

.carousel-track {
    display: flex;
    transition: transform 0.3s ease-in-out;
    gap: 2rem;
    padding: 0 1rem;
    width: fit-content;
}

.carousel-card {
    flex: 0 0 calc(33.333% - 1.5rem);
    min-width: 300px;
    max-width: 350px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.5s ease;
    position: relative;
    transform: scale(0.9);
    opacity: 0.7;
}

.carousel-card.active {
    transform: scale(1.1);
    opacity: 1;
    box-shadow: 0 8px 25px rgba(139, 94, 60, 0.3);
    z-index: 2;
}

.carousel-card.prev {
    transform: scale(0.95);
    opacity: 0.8;
    z-index: 1;
}

.carousel-card.next {
    transform: scale(0.85);
    opacity: 0.6;
    z-index: 1;
}

.carousel-card.far {
    transform: scale(0.8);
    opacity: 0.4;
    z-index: 0;
}

.carousel-card .product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    width: 100%;
    height: 250px;
    min-height: 250px;
    max-height: 250px;
}

.carousel-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    min-height: 250px;
    max-height: 250px;
}

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

.carousel-card:hover {
    transform: scale(1.15) !important;
    z-index: 10 !important;
    box-shadow: 0 12px 35px rgba(139, 94, 60, 0.4) !important;
    transition: all 0.3s ease !important;
}

.carousel-card .product-image-overlay {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-card:hover .product-image-overlay {
    opacity: 1;
}

.carousel-card .hover-btn {
    background: white;
    color: #6b4a2e;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    box-shadow: none;
    padding: 0;
    outline: none;
}

.carousel-card .hover-btn:hover {
    background: white;
    color: #ff0000;
    transform: none;
    border: 1px solid #ddd;
    outline: none;
    box-shadow: none;
}

.carousel-card .hover-btn.wish-btn {
    background: white;
    color: #6b4a2e;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    box-shadow: none;
    padding: 0;
    outline: none;
}

.carousel-card .hover-btn.wish-btn:hover {
    background: white;
    color: #ff0000;
    transform: none;
    border: 1px solid #ddd;
    outline: none;
    box-shadow: none;
}

.carousel-card .hover-btn.wish-btn.wishlisted {
    background: white;
    color: #ff0000;
    border: 1px solid #ff0000;
    outline: none;
    box-shadow: none;
}

.carousel-card .hover-btn.wish-btn.wishlisted:hover {
    background: white;
    color: #ff0000;
    transform: none;
    border: 1px solid #ff0000;
    outline: none;
    box-shadow: none;
}

.carousel-card .product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
}

.carousel-card .badge {
    background: #ff6b6b;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: bold;
}

.carousel-card .badge.best {
    background: #ffd93d;
    color: #333;
}

.carousel-card .product-info {
    padding: 1rem;
}

.carousel-card .product-name {
    margin-bottom: 0.5rem;
}

.carousel-card .product-name a {
    color: #6b4a2e;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.carousel-card .product-name a:hover {
    color: #8b5e3c;
}

.carousel-card .product-summary {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.carousel-card .product-price {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.carousel-card .original-price, .carousel-card .current-price, .carousel-card .discount-price, .carousel-card .discount-rate {
    font-weight: bold;
}

.carousel-card .original-price {
    color: #999;
    text-decoration: line-through;
    font-size: 0.8rem;
}

.carousel-card .current-price {
    color: #ff6b6b;
    font-size: 1.1rem;
}

.carousel-card .discount-price {
    color: #ff6b6b;
    font-size: 1.1rem;
}

.carousel-card .discount-rate {
    color: #ff6b6b;
    font-size: 0.8rem;
}

/* 반응형 디자인 */
@media (max-width: 1200px) {
    .carousel-card {
        flex: 0 0 calc(33.333% - 1.5rem);
    }
}

@media (max-width: 768px) {
    .carousel-card {
        flex: 0 0 calc(50% - 1rem);
        min-width: 200px;
    }
    
    .carousel-track {
        gap: 1rem;
        padding: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .carousel-card {
        flex: 0 0 calc(100% - 1rem);
        min-width: 250px;
    }
}

/* 모바일 전용 최적화 스타일 */
@media (max-width: 768px) {
    /* 전체 요소 와이드 정렬 */
    * {
        margin: 0 auto;
    }
    
    body {
        font-size: 16px;
        line-height: 1.4;
    }
    
    /* 터치 요소 최적화 */
    button, a, input, select, textarea {
        min-height: 15px;
        min-width: 20px;
        font-size: 16px;
    }
    
    /* 텍스트 반응형 단위 */
    h1, h2, h3, h4, h5, h6 {
        font-size: clamp(1.2em, 4vw, 2em);
    }
    
    p {
        font-size: clamp(0.9em, 3vw, 1.1em);
    }
    
    /* 상품 카드 모바일 최적화 */
    .product-card {
        width: 100%;
        margin: 0 auto 0.8rem auto;
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 0.8rem;
        border-radius: 8px;
        box-shadow: 0 1px 4px rgba(0,0,0,0.08);
        background: white;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        border: 1px solid #f5f5f5;
    }
    
    .product-card:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    }
    
    .product-card .product-image {
        flex: 0 0 100px;
        width: 100px;
        height: auto;
        min-height: 100px;
        margin-right: 0.8rem;
        border-radius: 6px;
        overflow: hidden;
        align-self: stretch;
    }
    
    .product-card .product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .product-card .product-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
        min-height: 100px;
        justify-content: flex-start;
    }
    
    .product-card .product-name {
        font-size: 1.1rem;
        font-weight: 600;
        line-height: 1.2;
        margin-bottom: 0.3rem;
    }
    
    .product-card .product-description {
        font-size: 0.95rem;
        color: #666;
        line-height: 1.3;
        margin-bottom: 0.8rem;
    }
    
    .product-card .product-price {
        font-size: 1.2rem;
        font-weight: 700;
        color: #6b4a2e;
        margin-top: auto;
    }
    
    /* 상품 상세 페이지 모바일 최적화 */
    .product-detail-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .product-images {
        flex: none;
        width: 100%;
        margin: 0 auto;
    }
    
    .main-image {
        height: 300px;
    }
    
    .product-info {
        width: 100%;
        margin: 0 auto;
    }
    
    .product-title {
        font-size: 1.5rem;
        margin: 1.5rem 1rem 1rem 1rem;
        text-align: left;
    }
    
    /* 상품 상세 정보 탭 모바일 최적화 */
    .details-tabs {
        display: flex;
        width: 100%;
        margin: 0 auto;
    }
    
    .tab-btn {
        flex: 1;
        width: 33.33%;
        padding: 1rem 0.5rem;
        font-size: 0.9rem;
        border: none;
        background: #f8f9fa;
        color: #666;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .tab-btn.active {
        background: #6b4a2e;
        color: white;
    }
    
    .tab-btn:hover {
        background: #8B7355;
        color: white;
    }
    
    /* 장바구니/바로구매 버튼 모바일 최적화 */
    .product-actions {
        display: flex;
        width: 100%;
        margin: 0 auto;
        gap: 0.5rem;
    }
    
    .main-actions {
        display: flex;
        width: 100%;
        gap: 0.5rem;
    }
    
    .btn-primary, .btn-secondary {
        flex: 1;
        width: 50%;
        padding: 1rem;
        font-size: 1rem;
        font-weight: 600;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .btn-primary {
        background: #6b4a2e;
        color: white;
    }
    
    .btn-primary:hover {
        background: #8B7355;
    }
    
    .btn-secondary {
        background: #f8f9fa;
        color: #6b4a2e;
        border: 2px solid #6b4a2e;
    }
    
    .btn-secondary:hover {
        background: #6b4a2e;
        color: white;
    }
    
    /* 상품 상세 페이지 액션 버튼 모바일 최적화 */
    .action-buttons {
        width: 100%;
        margin: 0 auto;
    }
    
    .action-buttons .main-actions {
        display: flex;
        width: 100%;
        gap: 0.5rem;
    }
    
    .action-buttons .btn-primary,
    .action-buttons .btn-secondary {
        flex: 1;
        width: 50%;
        padding: 1rem;
        font-size: 1rem;
        font-weight: 600;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .action-buttons .btn-primary {
        background: #6b4a2e;
        color: white;
    }
    
    .action-buttons .btn-primary:hover {
        background: #8B7355;
    }
    
    .action-buttons .btn-secondary {
        background: #f8f9fa;
        color: #6b4a2e;
        border: 2px solid #6b4a2e;
    }
    
    .action-buttons .btn-secondary:hover {
        background: #6b4a2e;
        color: white;
    }
    
    /* 고객리뷰 테이블 모바일 최적화 */
    .reviews-table {
        width: 100%;
        margin: 0 auto;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .reviews-table table {
        min-width: 600px;
        border-collapse: collapse;
    }
    
    .reviews-table th,
    .reviews-table td {
        padding: 0.8rem;
        text-align: left;
        border-bottom: 1px solid #e9ecef;
        white-space: nowrap;
    }
    
    /* 480px 이하에서도 테이블 형태 유지 */
    @media (max-width: 480px) {
        .reviews-table table {
            min-width: 500px;
        }
        
        .reviews-table th,
        .reviews-table td {
            padding: 0.6rem;
            font-size: 0.9rem;
        }
    }

    

    

    /* 로그인 폼 모바일 위치 조정 */
    .naver-login-form {
        margin-top: 1rem;
        padding: 1rem;
        background: #f8f9fa;
        border-radius: 8px;
        order: -1;
    }
    

    
    /* 장바구니 모바일 최적화 */
    .cart-item {
        width: 100% !important;
        margin: 0 auto 1rem auto !important;
        padding: 1rem !important;
        background: white !important;
        border-radius: 12px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
        height: 200px !important;
        min-height: 200px !important;
        max-height: 200px !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .cart-count {
        font-size: 0.8rem;
        min-width: 18px;
        height: 18px;
        line-height: 18px;
    }
    
    /* Footer 모바일 최적화 */
    .footer-grid {
        padding: 0;
        margin: 0;
    }
    
    .footer-divider {
        width: 100%;
        height: 1px;
        background: #e9ecef;
        margin: 1rem 0;
    }
    
    /* 3단 배너 모바일 최적화 */
    .mobile-banner.premium a {
        content: "당근마켓에 수진선식 단골맺기 하고 혜택받자!";
    }
    
    .mobile-banner.premium a[href="#premium-gifts"] {
        href: "https://www.daangn.com/kr/local-profile/건강을더하다-수진선식-74m8uz8uqqu9";
    }
    
    /* 애니메이션 효과 */
    .product-card {
        animation: float 3s ease-in-out infinite;
    }
    
    @keyframes float {
        0%, 100% {
            transform: translateY(0px);
        }
        50% {
            transform: translateY(-5px);
        }
    }
    
    /* 모바일 터치 최적화 */
    button, a, input, select, textarea {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    /* 모바일 스크롤 최적화 */
    body {
        -webkit-overflow-scrolling: touch;
    }
    
    /* 모바일 폰트 렌더링 최적화 */
    * {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    /* 480px 이하 해상도 최적화 */
    @media (max-width: 480px) {
        .product-detail-container {
            padding: 0.5rem;
        }
        
        .mobile-sidebar {
            width: 90%;
        }
        
        .reviews-table table {
            min-width: 500px;
        }
        
        .reviews-table th,
        .reviews-table td {
            padding: 0.6rem;
            font-size: 0.9rem;
        }
    }
}

/* PC 메인배너 레이아웃 원하는 대로 배치 */
@media (min-width: 769px) {
    .main-banner .text {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 1.2rem;
    }
    .main-banner .text h2 {
        margin-bottom: 0;
        min-width: unset;
        text-align: center;
        flex-shrink: 0;
    }
    .main-banner .text p {
        margin-bottom: 0;
        text-align: center;
        flex: unset;
    }
    .main-banner .text .main-banner-btns {
        display: flex;
        flex-direction: row;
        gap: 0.8rem;
        align-items: center;
        justify-content: center;
        margin-left: 0;
        margin-top: 0.5rem;
    }
    .main-banner .text a {
        margin: 0;
    }
}

/* 버튼 그룹 래퍼 추가 필요 (index.php도 수정 필요) */

/* PC 버전에서 product-text 숨기기 */
@media (min-width: 769px) {
    .carousel-card .product-text {
        display: none !important;
    }
}

.diverse-products .product-card {
    /* 기존 스타일 유지 */
    min-height: 115px;
}
.diverse-products .product-card .product-image {
    height: 185px !important;
    min-height: 185px !important;
    max-height: 185px !important;
}


.sidebar-auth a.user-name::after {
    content: "";
    display: inline-block;
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: #e5d3b3;
}

@media (max-width: 768px) {
    .close-sidebar {
        border: none !important;
        background: none !important;
        box-shadow: none !important;
        outline: none !important;
        width: 44px !important;
        height: 44px !important;
    }
    .sidebar-auth .user-name {
        font-size: 1.1rem !important;
        font-weight: bold;
        color: #6b4a2e !important;
    }
}

@media (max-width: 768px) {
    .mobile-sidebar {
        border-right: none !important;
        box-shadow: none !important;
        border: none !important;
        outline: none !important;
    }
}

/* 사이드바 오른쪽 세로줄 배경 오버레이와 동일하게 */
@media (max-width: 768px) {
    .mobile-sidebar::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 24px;
        height: 100%;
        background: transparent !important;
        pointer-events: none;
        z-index: 10002;
        box-shadow: none !important;
        border: none !important;
    }
}

@media (max-width: 768px) {
    .mobile-sidebar {
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE, Edge */
    }
    .mobile-sidebar::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
}

@media (max-width: 768px) {
    .mobile-sidebar {
        width: 230px !important;
        max-width: 230px !important;
    }
}

/* products.php 모바일 스타일은 products_mobile.css에서 관리 */

@media (max-width: 768px) {
  .mypage-main-content {
    margin-top: 2rem !important;
  }
}

@media (max-width: 768px) {
  /* profile.php 탭/섹션 span 왼쪽 정렬 */
  .profile-section-title span,
  .profile-tab span,
  .profile-tabs span,
  .profile-header span,
  .profile-content span {
    text-align: left !important;
    display: block !important;
  }
}

@media (max-width: 768px) {
  .toggle-btn {
    justify-content: flex-start !important;
    text-align: left !important;
    gap: 0.3rem !important;
    align-items: center !important;
    font-size: 1rem !important;
    line-height: 1.2 !important;
  }
  .toggle-btn i {
    margin-right: 0 !important;
    font-size: 1.1em !important;
    vertical-align: middle !important;
    display: inline-block !important;
  }
  .toggle-btn span {
    text-align: left !important;
    display: inline-block !important;
    width: auto !important;
    vertical-align: middle !important;
    font-size: 1em !important;
    line-height: 1.2 !important;
    margin-left: 0 !important;
  }
}


/* 모바일에서 상단 애니메이션 타이틀에만 컬러/글로우/hover 효과 적용 */
@media (max-width: 768px) {
  .header-ani .ani-title {
    color: #ff9800 !important;
    font-weight: bold !important;
    text-shadow: 0 0 8px #ffd700, 0 0 16px #ff9800;
    transition: color 0.3s, text-shadow 0.3s;
    cursor: pointer;
  }
  .header-ani .ani-title:hover,
  .header-ani .ani-title:active {
    color: #fff !important;
    background: linear-gradient(90deg, #ff9800, #ffd600, #e91e63, #4caf50, #2196f3);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 16px #fff, 0 0 32px #ff9800;
    filter: brightness(1.2) drop-shadow(0 0 8px #ff9800);
  }
}
@media (min-width: 769px) {
    .action-buttons.pc-only .main-actions {
      justify-content: flex-end !important;
      display: flex !important;
      width: 100%;
      gap: 0.5rem;
    }
  }

  @media (max-width: 768px) {
    .product-card, .products-grid .product-card {
      display: flex !important;
      flex-direction: column !important;
      width: 100% !important;
      min-width: 0 !important;
      box-sizing: border-box !important;
    }
    .product-image {
      width: 100% !important;
      min-width: 0 !important;
      box-sizing: border-box !important;
      aspect-ratio: 1/1 !important;
      overflow: hidden !important;
      margin: 0 !important;
      padding: 0 !important;
    }
    .product-image a, .product-image img {
      display: block !important;
      width: 100% !important;
      height: auto !important;
      max-width: 100% !important;
      object-fit: cover !important;
      margin: 0 !important;
      padding: 0 !important;
    }
  }

  
@media (max-width: 768px) {
  /* 메인페이지 모바일버전 지정 문구 색상 변경 */
  .glowing-title,
  .main-heading.glowing-title,
  .products .glowing-title,
  .feature-section .glowing-title {
    color: #8b5e3c !important;
    text-shadow: none !important;
  }
}

@media (max-width: 768px) {
    .reviews-summary,
    .review-item {
      width: 100% !important;
      min-width: 0 !important;
      max-width: 100% !important;
      box-sizing: border-box !important;
      margin-left: 0 !important;
      margin-right: 0 !important;
    }
  }
  @media (max-width: 768px) {
    .product-info-table {
      background: #fff !important;
      border-radius: 16px !important;
      box-shadow: 0 2px 12px rgba(180,140,80,0.10);
      border: 1.5px solid #e0e0e0 !important;
      padding: 1.2rem 0.7rem !important;
      margin: 1.2rem 0 !important;
      overflow: hidden;
    }
    .product-info-table .info-row {
      border-bottom: 1px solid #e0e0e0 !important;
    }
    .product-info-table .info-row:last-child {
      border-bottom: none !important;
    }
  }


@media (max-width: 768px) {
  /* 마이페이지 네비게이션 모바일 왼쪽 정렬 */
  .mypage-nav {
    justify-content: flex-start !important;
    align-items: flex-start !important;
    text-align: left !important;
  }
  .mypage-nav .nav-item {
    justify-content: flex-start !important;
    text-align: left !important;
  }
  .mypage-nav .nav-text {
    text-align: left !important;
    display: inline-block !important;
  }
}

/* 리뷰 카드 호버 효과 - PC */
@media (min-width: 769px) {
    .review-item {
      transition: background 0.25s, box-shadow 0.25s, transform 0.18s;
      background: #fffdfa;
      box-shadow: 0 2px 8px rgba(139,94,60,0.06);
      border: 3px solid #e8e8e8;
      border-radius: 15px;
      padding: 1.5rem;
      margin-bottom: 1rem;
    }
    .review-item:hover {
      background: #f8f3e9;
      box-shadow: 0 6px 24px rgba(139,94,60,0.13);
      transform: scale(1.015);
      border-color: #6b4a2e;
    }
  }
  
  /* 리뷰 카드 기본/터치 효과 - 모바일 */

  @media (max-width: 768px) {
    .rating-stars {
      display: flex !important;
      justify-content: center !important;
      align-items: center !important;
      gap: 0 !important;
      width: 100% !important;
      text-align: center !important;
    }
    .rating-stars .fas.fa-star {
      display: inline-flex !important;
      width: 21.29px !important;
      min-width: 21.29px !important;
      max-width: 21.29px !important;
      justify-content: center !important;
      align-items: center !important;
      text-align: center !important;
      font-size: 1.2rem !important; /* 필요시 조정 */
      margin: 0 !important;
      padding: 0 !important;
      vertical-align: middle !important;
    }
  }
@media (max-width: 768px) {
  .mobile-sidebar {
    height: auto !important;
    min-height: auto !important;
    max-height: 100vh !important;
  }
}

@media (max-width: 768px) {
  .main-banner,
  .mobile-category-bar,
  .swiper,
  .swiper-slide,
  .swiper-container {
    height: auto !important;
    min-height: auto !important;
    max-height: 100vh !important;
  }
}

@media (max-width: 768px) {
    body {
      max-width: 100vw !important;
    }
    .product-title {
      text-align: center !important;
    }
  }
  @media (max-width: 768px) {
    .product-description-detail h4 {
      text-align: center !important;
    }
  }
  
  @media (max-width: 768px) {
    .product-description-detail {
      margin-bottom: 2rem !important;
    }
  }
  @media (max-width: 768px) {
    .tab-content {
      width: 100% !important;
      min-width: 100% !important;
      max-width: 100% !important;
      box-sizing: border-box !important;
      margin: 0 auto !important;
      padding-left: 0 !important;
      padding-right: 0 !important;
    }
  }
  
  @media (max-width: 768px) {
    .product-details-section,
    .tab-content,
    .tab-panel,
    .tab-panel.active,
    .product-info-table,
    .reviews-summary,
    .no-qna {
      width: 100% !important;
      min-width: 100% !important;
      max-width: 100% !important;
      box-sizing: border-box !important;
      margin: 0 !important;
      padding-left: 0 !important;
      padding-right: 0 !important;
    }
  }
@media (max-width: 768px) {
  .product-info-table .info-row {
    align-items: stretch !important;
  }
  .product-info-table .info-label,
  .product-info-table .info-value {
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
  }
}

@media (max-width: 768px) {
    .product-info-table {
      padding: 0 !important;
    }
  }

  
@media (max-width: 768px) {
    .product-info-table .info-row {
      position: relative !important;
      padding: 0 !important;
      border: none !important;
    }
    .product-info-table .info-row::after {
      content: '';
      display: block;
      position: absolute;
      left: 0; right: 0; bottom: 0;
      height: 1px;
      background: #e0e0e0;
    }
    .product-info-table .info-row:last-child::after {
      display: none;
    }
    .product-info-table .info-label,
    .product-info-table .info-value {
      padding: 1rem !important;
    }
  }

  @media (max-width: 768px) {
    .product-info-table .info-row:first-child {
      margin-top: 1rem !important;
    }
  }
  @media (max-width: 768px) {
    .review-content {
      display: -webkit-box !important;
      -webkit-line-clamp: 5 !important;
      -webkit-box-orient: vertical !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
      word-break: break-all !important;
      line-height: 1.5em !important;
      /* max-height: 7.5em; <= 이 부분은 삭제! */
    }
  }

  @media (max-width: 768px) {
    .reviews-summary {
      margin-bottom: 1.2rem !important;
    }
  }
  
  @media (max-width: 768px) {
    .thumbnail-container {
      position: static !important;
      margin: 0.5rem 0 0.5rem 0 !important;
      background: none !important;
      padding: 0 !important;
      border-radius: 0 !important;
      display: flex !important;
      gap: 0.5rem !important;
      z-index: 1 !important;
      width: 100% !important;
      box-sizing: border-box !important;
    }
    .main-image-container {
      margin-bottom: 0.5rem !important;
    }
  }

@media (min-width: 769px) {
  .review-content {
    word-break: break-all;
    overflow-wrap: break-word;
    white-space: pre-line;
    font-size: 1rem;
    line-height: 1.6;
    position: relative;
  }
}
@media (min-width: 769px) {
    .thumbnail-container {
      display: flex !important;
      flex-wrap: wrap !important;
      gap: 0.5rem !important;
      min-height: 90px !important;
      width: 100% !important;
    }
    .thumbnail {
      width: 18.5% !important; /* 5개씩 한 줄, gap 고려 */
      margin-bottom: 0.5rem !important;
      box-sizing: border-box !important;

    }
  }
/*  상품페이지 모바일페이지 상품명 관련 */
  @media (max-width: 768px) {
    .mobile-product-title {
      font-size: 1.4rem !important;
      font-weight: bold;
      margin: 1.2rem 1rem 0.5rem 1rem;
      text-align: center !important;
    }
  }
  
  @media (max-width: 768px) {
    .swiper-container.product-image-swiper {
      width: 100%;
      height: 300px;
    }
    .swiper-slide img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }

  @media (max-width: 768px) {
    .product-info-table .info-row {
      display: flex !important;
      align-items: stretch !important;
      border-bottom: 1px solid #e0e0e0 !important;
      position: relative !important;
      padding: 0 !important;
      width: 100% !important;
    }
    .product-info-table .info-row:last-child {
      border-bottom: none !important;
    }
    .product-info-table .info-label,
    .product-info-table .info-value {
      padding: 1rem !important;
      flex: 1 1 0 !important;
      min-width: 0 !important;
      width: auto !important;
    }
    .product-info-table .info-row::after {
      display: none !important;
      content: none !important;
    }
  }
/* 상품페이지 모바일 스와이퍼관련*/

@media (max-width: 768px) {
    .swiper-container.product-image-swiper {
      position: relative !important;
      width: 100% !important;
      height: 300px !important;
      overflow: visible !important;
    }
    .swiper-pagination {
      position: absolute !important;
      left: 0 !important;
      right: 0 !important;
      bottom: 10px !important;
      width: 100% !important;
      z-index: 1000 !important;
      display: flex !important;
      justify-content: center;
      align-items: center;
      pointer-events: auto !important;
      background: none !important;
      opacity: 1 !important;
    }
    .swiper-pagination-bullet {
      width: 10px !important;
      height: 10px !important;
      background: #bca77a !important;
      opacity: 0.5 !important;
      border-radius: 50% !important;
      margin: 0 4px !important;
      transition: opacity 0.2s, background 0.2s;
    }
    .swiper-pagination-bullet-active {
      background: #6b4a2e !important;
      opacity: 1 !important;
    }
  }

  @media (max-width: 768px) {
    .mobile-product-title {
      margin: 0 1rem 0.5rem 1rem !important;
      text-align: left !important;
      margin-bottom: 0 !important;
    }
  }

  
  @media (max-width: 768px) {
    .mobile-product-summary {
      font-size: 1rem;
      color: #444;
      margin: 0 1rem 0.5rem 1rem;
      line-height: 1.5;
      margin-top: 0 !important;
      margin-bottom: 0 !important;
    }
    .mobile-product-price-row {
      margin: 0 1rem 1.2rem 1rem;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    
    .mobile-buyer-badge {
      background: rgba(139, 94, 60, 0.05);
      border: 1px solid rgba(139, 94, 60, 0.1);
      border-radius: 8px;
      padding: 4px 8px;
      display: inline-flex;
      align-items: center;
      align-self: flex-start;
    }
    
    .buyer-badge-text {
      font-size: 9px;
      color: rgba(139, 94, 60, 0.6);
      font-weight: 400;
      line-height: 1.2;
    }

    .mobile-buyer-badge-force {
      background: rgba(139, 94, 60, 0.05) !important;
      border: 1px solid rgba(139, 94, 60, 0.1) !important;
      border-radius: 8px !important;
      padding: 4px 8px !important;
      display: inline-flex !important;
      align-items: center !important;
      align-self: flex-start !important;
      margin: 0 1rem !important;
    }
    
    .mobile-buyer-badge-text-force {
      font-size: 12px !important;
      color: rgba(139, 94, 60, 0.6) !important;
      font-weight: 400 !important;
      line-height: 1.2 !important;
    }

    /* 상품 이미지 위 오버레이 뱃지 - 별도 CSS 관리 */
    .product-image-wrapper {
      position: relative;
      display: inline-block;
      width: 100%;
    }
    
    .mobile-buyer-overlay-badge {
      position: absolute;
      top: 12px;
      right: 12px;
      background: linear-gradient(135deg, rgba(139, 94, 60, 0.9), rgba(139, 94, 60, 0.8));
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: 20px;
      padding: 8px 12px;
      display: flex;
      align-items: center;
      box-shadow: 0 4px 12px rgba(139, 94, 60, 0.25);
      backdrop-filter: blur(4px);
      z-index: 10;
    }
    
    .mobile-buyer-overlay-text {
      font-size: 11px;
      color: #ffffff;
      font-weight: 600;
      line-height: 1.2;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }
    .price-black {
      color: #111 !important;
      font-size: 1.2rem;
      font-weight: bold;
      letter-spacing: -1px;
      font-size: 21px !important;
    }
  }

  @media (max-width: 768px) {
    .mobile-product-title {
      margin: 0 1rem 0 1rem !important;
      padding: 0 !important;
      line-height: 1.2 !important;
      text-align: left !important;
      font-size: 21px !important;
      color: #111 !important;
    }
    .mobile-product-summary {
      margin: 0 1rem 0 1rem !important;
      padding: 0 !important;
      line-height: 1.2 !important;
      text-align: left !important;
      font-size: 14px !important;
    }
  }


  @media (max-width: 768px) {
    .mobile-product-titleblock {
      text-align: left !important;
      display: block !important;
      margin: 0 1rem !important;
      padding: 0 !important;
    }
    
    .mobile-buyer-badge-force {
      margin: 0 1rem !important;
      padding: 0 !important;
    }
    .mobile-product-title,
    .mobile-product-summary {
      display: inline;
      text-align: left !important;
      margin: 0 !important;
      padding: 0 !important;
      line-height: 1.2 !important;
    }
  }

  @media (max-width: 768px) {
    .tab-content {

      border-radius: 0 0 18px 18px;
      padding-bottom: 1.5rem;
      min-height: 200px; /* 필요시 */
    }
  }
  @media (min-width: 769px) {
    .related-products-container-card {
      background: #fff;
      border-radius: 20px;
      box-shadow: 0 6px 32px rgba(180,140,80,0.10);
      padding: 2.5rem 2rem 2rem 2rem;
      margin: 2.5rem 0 0 0;
      transition: box-shadow 0.2s;
    }
  }
  @media (min-width: 769px) {
    .related-products-section {
      margin-top: 0 !important;
    }
  }

  @media (max-width: 768px) {
    .product-info {
      padding: 0 !important;
      padding-bottom: 0 !important;
      gap: 0 !important;
    }
  }
  @media (max-width: 768px) {
    .product-info {
      padding: 0 !important;
      padding-bottom: 0 !important;
      gap: 0 !important;
    }
  }
  @media (max-width: 768px) {
    .info-label {
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      text-align: center !important;
    }
  }
  @media (max-width: 768px) {
    .info-value {
        align-items: left !important;
      text-align: left !important;
      justify-content: left !important;
    }
  }
  @media (max-width: 768px) {
    .info-label {
      height: 53px !important;
      min-height: 53px !important;
      max-height: 53px !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
    }
  }
  @media (max-width: 768px) {
    .product-info-table .info-row {
      display: flex !important;
      align-items: center !important; /* info-label이 info-value의 전체 높이 중앙에 위치 */
    }
  }
  @media (max-width: 768px) {
    .related-products-section {
      border-top: none;
      margin-top: 2.5rem !important;
      padding-top: 1.5rem !important;
      position: relative;
    }
    .related-products-section::before {
      content: '';
      display: block;
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 3px;
      background: linear-gradient(90deg, #f3e6c4 0%, #bca77a 100%);
      border-radius: 2px;
    }
  }
  @media (max-width: 768px) {
    .related-products-section .related-product-card .product-image {
      width: 191.5px !important;
      height: 191.5px !important;
      min-width: 191.5px !important;
      min-height: 191.5px !important;
      max-width: 191.5px !important;
      max-height: 191.5px !important;
      margin: 0 auto !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      overflow: hidden !important;
    }
    .related-products-section .related-product-card .product-image img {
      width: 100% !important;
      height: 100% !important;
      object-fit: cover !important;
      display: block !important;
    }
  }

  @media (max-width: 768px) {
    .related-products-section .related-products-grid {
      display: grid !important;
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 1rem !important;
    }
  }

  @media (max-width: 768px) {
    .related-products-section .related-product-card .product-name {
      margin-top: 10px;
    }
  }
  @media (max-width: 768px) {
    .related-products-section .related-product-card .product-name a {
      font-size: 15px !important;
        font-weight: bold !important;

    }
    .related-products-section .related-product-card .current-price {
      font-size: 1.0rem !important;
    }
    .related-products-section .related-product-card .related-summary {
      font-size: 0.8rem !important;
      color: #666;
      margin: 0.2rem 0 0.3rem 0;
      display: block;
      text-align: left;
      line-height: 1.3;
    }
  }
  @media (max-width: 768px) {

    .related-products-section .related-product-card .product-name,
    .related-products-section .related-product-card .related-summary,
    .related-products-section .related-product-card .current-price {

      line-height: 1.1 !important;
    }
    .related-products-section .related-product-card .product-name a {
      display: inline !important;
      margin: 0 !important;
      padding: 0 !important;
      height: auto !important;
      min-height: 0 !important;
      max-height: none !important;
      line-height: 1.1 !important;
      vertical-align: baseline !important;
    }
    .related-products-section .related-product-card .related-summary {
      margin: 0 !important;
      padding: 0 !important;
      line-height: 1.1 !important;

    }
  }
  @media (max-width: 768px) {
    .related-products-section .related-product-card .product-name,
    .related-products-section .related-product-card .related-summary,
    .related-products-section .related-product-card .current-price {
      text-align: center !important;
      width: 100%;
    }
  }
  @media (max-width: 768px) {
    .rating-stars .fas.fa-star {
      display: inline-block !important;
      width: 21.29px !important;
      min-width: 21.29px !important;
      max-width: 21.29px !important;
      text-align: center !important;
      font-size: 1.2rem !important; /* 필요시 조정 */
      margin: 0 !important;
      padding: 0 !important;
      vertical-align: middle !important;
    }
  }

  @media (max-width: 768px) {
    .reviews-list {
      gap: 1.2rem !important;
    }
    .review-item.stat-card {
      display: flex !important;
      flex-direction: column !important;
      padding: 1.5rem 1.2rem !important;
      border-radius: 15px !important;
      box-shadow: 0 4px 15px rgba(139,94,60,0.12) !important;
      border: 3px solid #e8e8e8 !important;
      margin: 0 0 1rem 0 !important;
      width: 100% !important;
      max-width: 100vw !important;
      background: #fffdfa !important;
      transition: all 0.3s ease !important;
    }
    .review-item.stat-card:hover {
      border-color: #6b4a2e !important;
      box-shadow: 0 6px 20px rgba(139,94,60,0.15) !important;
      transform: translateY(-2px) !important;
    }
    .review-item.stat-card .review-header {
      display: flex !important;
      flex-direction: row !important;
      align-items: center !important;
      justify-content: space-between !important;
      gap: 0.7rem !important;
      margin-bottom: 1rem !important;
      width: 100% !important;
    }
    .review-item.stat-card .reviewer-name {
      font-weight: 700 !important;
      color: #6b4a2e !important;
      font-size: 1rem !important;
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
      max-width: 40% !important;
    }
    .review-item.stat-card .review-rating {
      display: flex !important;
      gap: 0.1rem !important;
      font-size: 1.1rem !important;
      color: #ffd700 !important;
    }
    .review-item.stat-card .review-date {
      color: #999 !important;
      font-size: 0.9rem !important;
      white-space: nowrap !important;
    }
    .review-item.stat-card .review-title {
      font-weight: 600 !important;
      color: #333 !important;
      margin-bottom: 0.5rem !important;
      padding: 0.8rem 1rem !important;
      background: #f8f9fa !important;
      border-radius: 8px !important;
      border-left: 4px solid #6b4a2e !important;
    }
    .review-item.stat-card .review-content {
      color: #666 !important;
      line-height: 1.6 !important;
      margin-bottom: 1rem !important;
      word-break: break-all !important;
    }
    .review-item.stat-card .review-image {
      margin-top: 1rem !important;
      text-align: center !important;
    }
    .review-item.stat-card .review-image img {
      max-width: 150px !important;
      max-height: 150px !important;
      border-radius: 8px !important;
      box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    }
  }
  @media (max-width: 768px) {
    .review-item.stat-card .review-title {
      width: 100% !important;
      box-sizing: border-box !important;
      display: block !important;
      margin-left: 0 !important;
      margin-right: 0 !important;
      /* 이미 padding, border-radius 등은 인라인 스타일로 적용되어 있으니 중복 무관 */
    }
  }

  
/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1001; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.5); /* Black w/ opacity */
}

@media (max-width: 768px) {
    .mobile-review-link {
      display: block !important;
      font-size: 0.85rem !important;
      color: #aaa !important;
      margin-top: 0.7rem !important;
      margin-bottom: 0.2rem !important;
      text-decoration: underline !important;
      text-align: left !important;
      transition: color 0.2s !important;
      width: 100% !important;
    }
    .mobile-review-link:hover {
      color: #888 !important;
    }
    /* 리뷰카드 내에서 항상 본문(review-content) 아래에 위치하도록 */
    .review-item.stat-card .review-content + .mobile-review-link {
      margin-top: 0.7rem !important;
    }
  }

  @media (max-width: 768px) {
    .main-banner,
    .mobile-category-bar,
    .swiper,
    .swiper-slide,
    .swiper-container {
      height: auto !important;
      min-height: auto !important;
      max-height: 100vh !important;
    }
    .main-banner {
      background: linear-gradient(135deg, #faf8f5 0%, #f5f1eb 50%, #efebe3 100%) !important;
    }
  }
  
  @media (max-width: 768px) {
    .sns-icon-link .sns-ani {
      animation: sns-bounce 1.5s infinite alternate;
      transition: transform 0.2s, filter 0.2s;
      cursor: pointer;
    }
    .sns-icon-link:hover .sns-ani,
    .sns-icon-link:active .sns-ani {
      transform: scale(1.2) rotate(-10deg);
      filter: brightness(1.3) drop-shadow(0 0 8px #e5d3b3);
      animation-play-state: paused;
    }
  }
  @media (max-width: 768px) {
    footer {
      margin-top: 0 !important;
    }
  }
/* 마이페이지 메인 스타일 */
 /* 마이페이지 모바일 최적화 - 중복/충돌 최소화 */
@media (max-width: 768px) {
    html, body {
      width: 100vw !important;
      max-width: 100vw !important;
      overflow-x: hidden !important;
    }
    .mypage-main-layout {
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      width: 100vw !important;
      max-width: 100vw !important;
      min-width: 0 !important;
      margin: 0 auto !important;
      box-sizing: border-box !important;
    }

    .mypage-main-content-mobile {
      width: 400px !important;
      max-width: 400px !important;
      min-width: 200px !important;
      margin: 0 auto !important;
      box-sizing: border-box !important;
      background: #f8f9fa !important;
      border-radius: 8px 0 0 8px !important;
      border-right: 2px solid #e5d3b3 !important;
      display: block !important;
      flex: none !important;
    }
    .mypage-main-content-mobile .order-list,
    .mypage-main-content-mobile .order-item {
      width: 100% !important;
      max-width: 100% !important;
      min-width: 0 !important;
      box-sizing: border-box !important;
      margin: 0 !important;
    }
    .mypage-main-content-mobile .order-item,
    .mypage-main-content-mobile .order-info,
    .mypage-main-content-mobile .order-date-amount,
    .mypage-main-content-mobile .order-product,
    .mypage-main-content-mobile .order-actions {
      padding-left: 0 !important;
      padding-right: 0 !important;
    }
    .mypage-main-content-mobile .order-actions {
      justify-content: center !important;
    }
    .mypage-main-content-mobile .order-actions > *,
    .mypage-main-content-mobile .order-status-label,
    .mypage-main-content-mobile .order-detail-btn {
      width: 50px !important;
      min-width: 50px !important;
      max-width: 50px !important;
      height: 44px !important;
      line-height: 44px !important;
      font-size: 0.92em !important;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      border-radius: 10px !important;
      box-sizing: border-box !important;
      padding: 0 !important;
      margin: 0 !important;
      text-align: center !important;
    }
    .mypage-main-content-mobile .content-header h2 {
      text-align: center !important;
      margin-left: auto !important;
      margin-right: auto !important;
      width: 100%;
      display: block;
    }
  }
  @media (max-width: 768px) {
    .product-name-link {
      font-size: 20px !important;
      height: 30px !important;
      line-height: 30px !important;
      min-height: 30px !important;
      max-height: 30px !important;
    }
    .content-header {
      margin-bottom: 20px !important;
    }
    .order-status-label.order-status-delivered {
      height: 44px !important;
      min-height: 44px !important;
      max-height: 44px !important;
      line-height: 44px !important;
      display: inline-flex !important;
      align-items: center !important;
    }
  }

      /*마이페이지 메인 스타일 끝 */
  
/* 내주문페이지 모바일 */

@media (max-width: 768px) {
    body.orders-page .order-card-actions {
      display: flex !important;
      flex-direction: row !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 0.4rem !important;
      width: 100% !important;
      margin: 0 !important;
      padding: 0.2rem 0 !important;
      border: none !important;
      background: none !important;
    }
    body.orders-page .order-card-actions > * {
      width: 64px !important;
      min-width: 48px !important;
      max-width: 80px !important;
      height: 36px !important;
      line-height: 36px !important;
      font-size: 0.98em !important;
      border-radius: 10px !important;
      margin: 0 !important;
      padding: 0 !important;
      text-align: center !important;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      box-sizing: border-box !important;
      font-weight: 500 !important;
    }
    body.orders-page .btn-detail,
    body.orders-page .btn-review,
    body.orders-page .btn-delete {
      border: none !important;
      font-size: 0.98em !important;
      font-weight: 500 !important;
      padding: 0 !important;
      margin: 0 !important;
      border-radius: 10px !important;
      transition: background 0.2s;
    }
    body.orders-page .btn-detail {
      background: #8B5E3C !important;
      color: #fff !important;
    }
    body.orders-page .btn-detail:hover {
      background: #6B4a2E !important;
    }
    body.orders-page .btn-review {
      background: #17a2b8 !important;
      color: #fff !important;
    }
    body.orders-page .btn-review:hover {
      background: #138496 !important;
    }
    body.orders-page .btn-delete {
      background: #dc3545 !important;
      color: #fff !important;
    }
    body.orders-page .btn-delete:hover {
      background: #c82333 !important;
    }
    body.orders-page .order-status-label {
      background: #f8f9fa !important;
      color: #6B4a2E !important;
      font-size: 0.98em !important;
      font-weight: 600 !important;
      border-radius: 10px !important;
      padding: 0 !important;
      margin: 0 !important;
      width: 64px !important;
      min-width: 48px !important;
      max-width: 80px !important;
      height: 36px !important;
      line-height: 36px !important;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      box-sizing: border-box !important;
    
    }
  }
  body.orders-page .review-done-link {
    pointer-events: auto;
    color: #aaa !important;
    text-decoration: underline;
    cursor: pointer;
  }
  body.orders-page .review-done-link:hover {
    color: #888 !important;
  }

  @media (max-width: 768px) {
    body.orders-page .order-status {
      margin-bottom: 0 !important;
      display: flex !important;
      align-items: center !important;
      padding: 0 !important;
    }
    body.orders-page .status-badge {
      margin-bottom: 0 !important;
      align-self: center !important;
    }
  }

  @media (max-width: 768px) {
    body.orders-page .order-card-actions {
      display: flex !important;
      flex-direction: row !important;
      align-items: center !important;
      justify-content: stretch !important;
      gap: 0.4rem !important;
      width: 100% !important;
      margin: 0 !important;
      padding: 0.2rem 0 !important;
      box-sizing: border-box !important;
    }
    body.orders-page .order-card-actions > * {
      flex: 1 1 0 !important;
      min-width: 0 !important;
      max-width: 100% !important;
      height: 36px !important;
      line-height: 36px !important;
      font-size: 0.98em !important;
      border-radius: 10px !important;
      margin: 0 !important;
      padding: 0 !important;
      text-align: center !important;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      box-sizing: border-box !important;
      font-weight: 500 !important;
    }
  }
  @media (max-width: 768px) {
    body.orders-page .product-name-link.pc-only { display: none !important; }
    body.orders-page .product-name-link.mobile-only { display: inline !important; }
  }
  @media (min-width: 769px) {
    body.orders-page .product-name-link.pc-only { display: inline !important; }
    body.orders-page .product-name-link.mobile-only { display: none !important; }
  }

  
  /* 내주문페이지 모바일 끝 */


  /* 모바일 주문상세페이지 시작*/

  @media (max-width: 768px) {
    body.order-detail-page .mypage-main-content { display: none !important; }
    body.order-detail-page .mypage-main-content-mobile { display: block !important; }
  }
  @media (min-width: 769px) {
    body.order-detail-page .mypage-main-content { display: block !important; }
    body.order-detail-page .mypage-main-content-mobile { display: none !important; }
  }
  
  @media (min-width: 769px) {
    body.order-detail-page .mypage-main-sidebar {
      margin-bottom: 2.5rem !important;
    }
    body.order-detail-page .mypage-main-content {
      margin-top: 2.5rem !important;
    }
  }
  @media (max-width: 768px) {
    body.order-detail-page .mypage-main-sidebar {
      margin-bottom: 1.5rem !important;
    }
    body.order-detail-page .mypage-main-content-mobile > * {
      width: 100% !important;
      max-width: 100% !important;
      min-width: 0 !important;
      box-sizing: border-box !important;
      margin-left: 0 !important;
      margin-right: 0 !important;
    }
  }
  

  @media (max-width: 768px) {
    body.order-detail-page .mypage-main-sidebar {
      margin-bottom: 0rem !important;
    }
    body.order-detail-page .mobile-divider {
      width: 100%;
      height: 2px;
      margin: 0.5rem 0 1.2rem 0;
      border: none;
      background: #e5d3b3;
      opacity: 0.8;
    }
  }

  @media (max-width: 768px) {
    body.order-detail-page .icon-text i {
        margin-right: 0.5em;
        font-size: 1.2em;
        min-width: 1.2em;
        min-height: 1.2em;
        vertical-align: middle;
        display: inline-block;
      }
    body.order-detail-page .icon-text {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
      }
      body.order-detail-page .icon-text .title-text {
        margin-left: auto;
        font-size: 1.2rem;
        font-weight: 600;
        text-align: right;
        display: inline-block;
      }
  }
  @media (max-width: 768px) {
    body.order-detail-page .payment-summary-row { display: flex !important; }
    body.order-detail-page .pc-only { display: none !important; }
  }
  @media (min-width: 769px) {
    body.order-detail-page .payment-summary-row { display: none !important; }
    body.order-detail-page .pc-only { display: block !important; }
  }
  
  @media (max-width: 768px) {
    body.order-detail-page .payment-info-card .info-item {
      display: flex !important;

      align-items: flex-start !important;
      gap: 0.2em !important;
      font-size: 1em;
      margin-bottom: 0em !important;
      padding: 0 !important;
      line-height: 1.3 !important;
    }
    body.order-detail-page .payment-info-card .info-item .label {
      font-weight: 600 !important;
      color: #6B4a2E !important;
      margin-bottom: 0em !important;
      font-size: 1em !important;
      display: block !important;
    }
    body.order-detail-page .payment-info-card .info-item .value,
    body.order-detail-page .payment-info-card .info-item .value.total-amount {
      font-weight: 400 !important;
      color: #333 !important;
      font-size: 1em !important;
      margin: 0 !important;
      padding: 0 !important;
      display: block !important;
      word-break: break-all !important;
    }
    body.order-detail-page .payment-info-card .info-item .value.total-amount {
      color: #e74c3c !important;
      font-weight: 700 !important;
      font-size: 1.08em !important;
      margin-top: 0em !important;
    }
  } 
  @media (max-width: 768px) {
    body.order-detail-page .order-detail-payment-card .info-item.payment-method-date .value {
      display: inline !important;
      width: auto !important;
    }
  }

  @media (max-width: 768px) {
    body.order-detail-page .payment-info-card .order-date-row {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 0.5em !important;
        flex-wrap: nowrap !important;
      }
      
      body.order-detail-page .order-date-row .label,
      body.order-detail-page .order-date-row .value {
        white-space: nowrap !important;
        display: inline-block !important;
      }
    }

    @media (max-width: 768px) {
        body.order-detail-page .order-detail-payment-card .order-detail-method-date .value {
          text-align: center !important;
          display: block !important;
          width: 100% !important;
        }
      }
      @media (max-width: 768px) {
        .mobile-payment-info-card {
          background: #fff;
          border-radius: 15px;
          box-shadow: 0 8px 25px rgba(0,0,0,0.08);
          padding: 1.5rem 1rem;
          margin-bottom: 1.5rem;
          border: 1px solid #e9ecef;
          text-align: center;
        }
        .mobile-payment-info-card h3 {
          color: #6b4a2e;
          font-size: 1.2rem;
          margin-bottom: 1.2rem;
          display: flex;
          align-items: center;
          justify-content: center;
          gap: 0.5em;
        }
        .mobile-payment-info-card .mpic-row {
          margin-bottom: 0.5em;
        }
        .mobile-payment-info-card .mpic-method,
        .mobile-payment-info-card .mpic-date,
        .mobile-payment-info-card .mpic-label,
        .mobile-payment-info-card .mpic-amount {
            display: block !important;
          font-size: 1em;
          color: #333;
          font-weight: 500;
        }
        .mobile-payment-info-card .mpic-label {
          margin-top: 0.7em;
          color: #6b4a2e;
          font-weight: 600;
        }
        .mobile-payment-info-card .mpic-amount {
          color: #e74c3c;
          font-size: 1.56em;
          font-weight: bold;
          margin-top: 0.2em;
        }
      }
      @media (max-width: 768px) {
        .payment-summary-row.mobile-only {
          display: flex !important;
          flex-direction: row !important;
          gap: 1rem !important;
          width: 100%;
        }
        .mobile-payment-info-card,
        .order-summary-card {
          flex: 1 1 0;
          min-width: 0;
          max-width: 100%;
        }
      }

      @media (max-width: 768px) {
        .mobile-payment-info-card h3 {
          border-bottom: 1.5px solid #e5d3b3 !important;
          padding-bottom: 0.5em !important;
          margin-bottom: 1.2rem !important;
        }
      }

      
      @media (max-width: 768px) {
        .mobile-payment-info-card {
          border-bottom: 0 !important;
          margin-bottom: 0 !important;
        }
      }
      @media (max-width: 768px) {
        .mobile-payment-info-card {
          border-bottom: 0 !important;
          margin-bottom: 0 !important;
        }
      }

      @media (max-width: 768px) {
        .mobile-payment-info-card {
          position: relative !important;
        }
        .mobile-payment-info-card .mpic-amount {
          position: absolute !important;
          left: 0;
          right: 0;
          bottom: 12px !important;   /* 더 하단으로 이동 (기존보다 더 낮게) */
          text-align: center !important;
          width: 100% !important;
          margin: 0 auto !important;
          z-index: 2;
        }
      }

      @media (max-width: 768px) {
        .mobile-payment-info-card .mpic-method-date-group {
          display: flex !important;
          flex-direction: column !important;
          align-items: center !important;
          justify-content: flex-start !important;
          gap: 0.1em !important;
          margin-bottom: 1em !important;
          text-align: center !important;
        }
        .mobile-payment-info-card .mpic-method-label,
        .mobile-payment-info-card .mpic-date-label,
        .mobile-payment-info-card .mpic-method,
        .mobile-payment-info-card .mpic-date {
          display: block !important;
          width: 100% !important;
          margin: 0 !important;
          padding: 0 !important;
          line-height: 1.2 !important;
          font-size: 1em !important;
          text-align: center !important;
        }
        .mobile-payment-info-card .mpic-method-label {
          margin-bottom: 0.2em !important;
          color: #6b4a2e !important;
          font-weight: 600 !important;
        }
        .mobile-payment-info-card .mpic-date-label {
          margin-bottom: 0.5em !important;
          color: #6b4a2e !important;
          font-weight: 600 !important;
        }
        .mobile-payment-info-card .mpic-method {
          margin-bottom: 0.2em !important;
          color: #333 !important;
          font-weight: 500 !important;
        }
        .mobile-payment-info-card .mpic-date {
          color: #333 !important;
          font-weight: 500 !important;
        }
      }

      @media (max-width: 768px) {
        .mobile-payment-info-card .mpic-amount {
          color: #3C1E1E !important; /* 카카오톡 다크브라운 */
          background: #FEE500 !important; /* 카카오톡 옐로우 */
          border-radius: 8px !important;
          padding: 0.3em 0.7em !important;
          font-weight: bold !important;
          font-size: 1em !important;
          display: inline-block !important;
          margin: 0 auto !important;
        }
      }

      @media (max-width: 768px) {
        .order-details {
          display: block !important;
          width: 100% !important;
          padding: 0 !important;
          margin: 0 !important;
        }
        .payment-summary-row,
        .shipping-info-card,
        .mobile-payment-info-card,
        .order-summary-card {
          width: 100% !important;
          min-width: 0 !important;
          max-width: 100% !important;
          box-sizing: border-box !important;
          margin: 0 auto 1.2rem auto !important;
          display: block !important;
        }
      }

      @media (max-width: 768px) {
        .mobile-payment-info-card {
          height: 202.81px !important;
          min-height: 202.81px !important;
          max-height: 276.81px !important;
          padding: 32px !important;
        }
      }

      @media (max-width: 768px) {
        .mobile-payment-info-card .mpic-row {
          display: flex !important;
          flex-direction: row !important;
          align-items: center !important;
          justify-content: center !important;
          gap: 0.5em !important;
          margin-bottom: 1em !important;
          text-align: center !important;
        }
        .mobile-payment-info-card .mpic-method-label,
        .mobile-payment-info-card .mpic-method {
          display: inline-block !important;
          vertical-align: middle !important;
          margin: 0 !important;
          padding: 0 !important;
          line-height: 1.2 !important;
          font-size: 1em !important;
        }
      }


      
      @media (max-width: 768px) {
        .mobile-payment-info-card {
          position: relative !important;
        }
        .mobile-payment-info-card .mpic-amount {
          position: absolute !important;
          left: 0;
          right: 0;
          bottom: 1.2em;
          text-align: center !important;
          width: 100% !important;
          margin: 0 auto !important;
        }
      }
      
      
    
  
    
   
    
   
      
      

      @media (min-width: 769px) {
        body.order-detail-page .icon-text {
          display: flex !important;
          justify-content: space-between !important;
          align-items: right !important;
          width: 100% !important;
        }
        body.order-detail-page .icon-text i {
          margin-right: 0.5em !important;
          font-size: 1.2em !important;
          min-width: 1.2em !important;
          min-height: 1.2em !important;
          vertical-align: middle !important;
          display: inline-block !important;
        }
        body.order-detail-page .icon-text .title-text {
          margin-left: auto !important;
          font-size: 1.2rem !important;
          font-weight: 600 !important;
          text-align: right !important;
          display: inline-block !important;
        }
      }
      

@media (min-width: 769px) {
  body.order-detail-page .order-info-card.pc-only h3 .title-text,
  body.order-detail-page .shipping-info-card.pc-only h3 .title-text,
  body.order-detail-page .order-items-card.pc-only h3 .title-text,
  body.order-detail-page .shipping-progress-card.pc-only h3 .title-text {
    text-align: right !important;
    margin-left: auto !important;
    display: inline-block !important;
    width: auto !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    padding: 0 !important;
  }
}


  @media (max-width: 768px) {
    body.order-detail-page .order-item .item-total {
      text-align: center !important;
      justify-content: center !important;
      align-items: center !important;
      display: flex !important;
    }
    body.order-detail-page .mobile-payment-info-card h3 {
      text-align: left !important;
      justify-content: flex-start !important;
    }
  }
  @media (max-width: 768px) {
    body.order-detail-page .mypage-main-content-mobile .content-header {
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      justify-content: flex-start !important;
      width: 100% !important;
      margin: 0 0 1.2rem 0 !important;
      padding: 0 !important;
      box-sizing: border-box !important;
    }
    body.order-detail-page .mypage-main-content-mobile .content-header h2 {
      text-align: center !important;
      width: 100% !important;
      margin: 0 0 0.5em 0 !important;
      padding: 0 !important;
      font-size: 1.5rem !important;
      font-weight: 700 !important;
      display: block !important;
    }
  }
  
  @media (max-width: 768px) {
    body.order-detail-page .delivery-info-section h4 {
      text-align: LEFT !important;
      justify-content: flex-start !important;
      align-items: center !important;
      display: flex !important;
      gap: 0.5em !important;
      padding-left: 0 !important;
      margin-left: 0 !important;
    }
    body.order-detail-page .delivery-info-section h4 i {
      margin-right: 0.5em !important;
      min-width: 1.2em !important;
      min-height: 1.2em !important;
      font-size: 1.2em !important;
      vertical-align: middle !important;
      display: inline-block !important;
      text-align: CENTER !important;
    }
  }

  @media (max-width: 768px) {
    body.order-detail-page .inquiry-section {
      padding-left: 0 !important;
      padding-right: 0 !important;
      padding: 0 !important;
    }
    body.order-detail-page .inquiry-buttons {
      display: flex !important;
      flex-direction: row !important;
      justify-content: space-between !important;
      align-items: center !important;
      gap: 0.7em !important;
      width: 100% !important;
      margin: 0 auto !important;
      box-sizing: border-box !important;
    }
    body.order-detail-page .inquiry-buttons .btn-inquiry {
      flex: 1 1 0 !important;
      min-width: 0 !important;
      max-width: 100% !important;
      width: 100% !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      font-size: 1.05em !important;
      font-weight: 600 !important;
      border-radius: 8px !important;
      padding: 0.9em 0.2em !important;
      transition: transform 0.18s cubic-bezier(.4,2,.6,.8), box-shadow 0.18s;
      box-shadow: 0 2px 8px rgba(0,0,0,0.07);
      margin: 0 !important;
      border: none !important;
      text-align: center !important;
      gap: 0.5em !important;
    }
    body.order-detail-page .btn-daangn {
      background: #FF6F0F !important;
      color: #fff !important;
    }
    body.order-detail-page .btn-daangn i {
      color: #fff !important;
    }
    body.order-detail-page .btn-kakao {
      background: #FEE500 !important;
      color: #3C1E1E !important;
    }
    body.order-detail-page .btn-kakao i {
      color: #3C1E1E !important;
    }
    body.order-detail-page .btn-insta {
      background: linear-gradient(45deg, #f9ce34 0%, #ee2a7b 50%, #6228d7 100%) !important;
      color: #fff !important;
    }
    body.order-detail-page .btn-insta i {
      color: #fff !important;
    }
    body.order-detail-page .inquiry-buttons .btn-inquiry:hover, 
    body.order-detail-page .inquiry-buttons .btn-inquiry:active {
      transform: scale(1.09) !important;
      box-shadow: 0 6px 18px rgba(0,0,0,0.13);
      z-index: 2;
    }
  }
  
  @media (max-width: 768px) {
    body.order-detail-page .inquiry-buttons .btn-inquiry {
      display: flex !important;
      flex-direction: row !important;
      align-items: center !important;
      justify-content: center !important;
      text-align: center !important;
      gap: 0.5em !important;
      width: 100% !important;
      height: 100% !important;
      padding: 0.9em 0.2em !important;
    }
    body.order-detail-page .inquiry-buttons .btn-inquiry i {
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      font-size: 1.2em !important;
      vertical-align: middle !important;
      margin: 0 !important;
      padding: 0 !important;
    }
  }
  
  /* 모바일 주문상세페이지 끝 */

/* 모바일페이지 찜 목록 */
@media (max-width: 768px) {
    body.wishlist-page .wishlist-main-content {
      width: 100% !important;
      max-width: 100% !important;
      margin: 0 auto !important;
      box-sizing: border-box !important;
      padding: 0.5rem !important;
      background: #fff !important;
    }
    body.wishlist-page .content-header {
      width: 100% !important;
      max-width: 100% !important;
      margin: 0 auto 1rem auto !important;
      box-sizing: border-box !important;
      padding: 0 0 1rem 0 !important;
    }
    body.wishlist-page .wishlist-mobile-grid {
      display: grid !important;
      grid-template-columns: 1fr 1fr !important;
      gap: 0.75rem !important;
      width: 100% !important;
      max-width: 100% !important;
      margin: 0 auto !important;
      box-sizing: border-box !important;
      padding: 0 !important;
    }
    body.wishlist-page .wishlist-mobile-grid .wishlist-item {
      min-width: 0 !important;
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      border-radius: 18px !important;
      border: 2px solid #e9ecef !important;
      overflow: hidden !important;
      background: #fff !important;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      justify-content: center !important;
      text-align: center !important;
    }
    body.wishlist-page .wishlist-mobile-grid .wishlist-item .item-image {
      height: 160px !important;
      flex: 0 0 120px !important;
      border-radius: 16px 16px 0 0 !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      width: 100% !important;
    }
    body.wishlist-page .wishlist-mobile-grid .wishlist-item .item-info {
      padding: 0.75rem !important;
      height: auto !important;
      min-height: 140px !important;
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      justify-content: center !important;
      text-align: center !important;
      width: 100% !important;
    }
    body.wishlist-page .wishlist-mobile-grid .wishlist-item .item-name {
      font-size: 0.9rem !important;
      line-height: 1.3 !important;
      margin-bottom: 0.4rem !important;
      word-break: keep-all !important;
      overflow-wrap: break-word !important;
      text-align: center !important;
      width: 100% !important;
    }
    body.wishlist-page .wishlist-mobile-grid .wishlist-item .item-summary {
      font-size: 0.75rem !important;
      line-height: 1.2 !important;
      margin-bottom: 0.5rem !important;
      color: #6c757d !important;
      word-break: keep-all !important;
      overflow-wrap: break-word !important;
      text-align: center !important;
      width: 100% !important;
    }
    body.wishlist-page .wishlist-mobile-grid .wishlist-item .item-price {
      font-size: 1rem !important;
      font-weight: 700 !important;
      margin-bottom: 0.75rem !important;
      color: #e74c3c !important;
      text-align: center !important;
      width: 100% !important;
    }
    body.wishlist-page .wishlist-mobile-grid .wishlist-item .item-actions {
      display: flex !important;
      gap: 0.4rem !important;
      flex-direction: column !important;
      align-items: center !important;
      justify-content: center !important;
      width: 100% !important;
    }
    body.wishlist-page .wishlist-mobile-grid .wishlist-item .btn-add-cart,
    body.wishlist-page .wishlist-mobile-grid .wishlist-item .btn-remove-wishlist {
      min-height: 36px !important;
      padding: 0.5rem 0.6rem !important;
      font-size: 0.8rem !important;
      font-weight: 600 !important;
      border-radius: 8px !important;
      border: none !important;
      cursor: pointer !important;
      transition: all 0.3s ease !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 0.3rem !important;
      width: 100% !important;
      text-align: center !important;
    }
    body.wishlist-page .wishlist-mobile-grid .wishlist-item .btn-add-cart {
      background: #3498db !important;
      color: white !important;
    }
    body.wishlist-page .wishlist-mobile-grid .wishlist-item .btn-add-cart:hover {
      background: #2980b9 !important;
      transform: translateY(-1px) !important;
    }
    body.wishlist-page .wishlist-mobile-grid .wishlist-item .btn-remove-wishlist {
      background: #e74c3c !important;
      color: white !important;
    }
    body.wishlist-page .wishlist-mobile-grid .wishlist-item .btn-remove-wishlist:hover {
      background: #c0392b !important;
      transform: translateY(-1px) !important;
    }
  }

  @media (max-width: 768px) {
    body.wishlist-page .content-header p {
      margin-top: 0.7em !important;
      font-size: 18px !important;
      font-weight: 600 !important;
      text-align: center !important;
      color: #2c3e50 !important;
    }
  }

  /* 모바일페이지 찜 목록 끝 */

  /* 모바일 찜목록 추가 최적화 */
  @media (max-width: 480px) {
    body.wishlist-page .wishlist-main-content {
      padding: 0.25rem !important;
    }
    body.wishlist-page .wishlist-mobile-grid {
      gap: 0.5rem !important;
    }
    body.wishlist-page .wishlist-mobile-grid .wishlist-item .item-image {
      height: 140px !important;
    }
    body.wishlist-page .wishlist-mobile-grid .wishlist-item .item-info {
      padding: 0.5rem !important;
      min-height: 120px !important;
    }
    body.wishlist-page .wishlist-mobile-grid .wishlist-item .item-name {
      font-size: 0.8rem !important;
    }
    body.wishlist-page .wishlist-mobile-grid .wishlist-item .item-summary {
      font-size: 0.7rem !important;
    }
    body.wishlist-page .wishlist-mobile-grid .wishlist-item .item-price {
      font-size: 0.9rem !important;
    }
    body.wishlist-page .wishlist-mobile-grid .wishlist-item .btn-add-cart,
    body.wishlist-page .wishlist-mobile-grid .wishlist-item .btn-remove-wishlist {
      min-height: 32px !important;
      padding: 0.4rem 0.5rem !important;
      font-size: 0.75rem !important;
    }
  }

  @media (max-width: 375px) {
    body.wishlist-page .wishlist-mobile-grid .wishlist-item .item-image {
      height: 120px !important;
    }
    body.wishlist-page .wishlist-mobile-grid .wishlist-item .item-info {
      padding: 0.4rem !important;
      min-height: 100px !important;
    }
    body.wishlist-page .wishlist-mobile-grid .wishlist-item .item-name {
      font-size: 0.75rem !important;
    }
    body.wishlist-page .wishlist-mobile-grid .wishlist-item .item-summary {
      font-size: 0.65rem !important;
    }
    body.wishlist-page .wishlist-mobile-grid .wishlist-item .item-price {
      font-size: 0.85rem !important;
    }
    body.wishlist-page .wishlist-mobile-grid .wishlist-item .btn-add-cart,
    body.wishlist-page .wishlist-mobile-grid .wishlist-item .btn-remove-wishlist {
      min-height: 30px !important;
      padding: 0.3rem 0.4rem !important;
      font-size: 0.7rem !important;
    }
  }

  /* iOS 안전 영역 대응 */
  @supports (padding: max(0px)) {
    @media (max-width: 768px) {
      body.wishlist-page .wishlist-main-content {
        padding-left: max(0.5rem, env(safe-area-inset-left)) !important;
        padding-right: max(0.5rem, env(safe-area-inset-right)) !important;
        padding-bottom: max(0.5rem, env(safe-area-inset-bottom)) !important;
      }
    }
  }

  /* 가로 모드 대응 */
  @media (max-width: 768px) and (orientation: landscape) {
    body.wishlist-page .wishlist-mobile-grid {
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 0.75rem !important;
    }
    body.wishlist-page .wishlist-mobile-grid .wishlist-item .item-image {
      height: 140px !important;
    }
    body.wishlist-page .wishlist-mobile-grid .wishlist-item .item-info {
      min-height: 120px !important;
      padding: 0.5rem !important;
    }
    body.wishlist-page .wishlist-mobile-grid .wishlist-item .item-name {
      font-size: 0.85rem !important;
    }
    body.wishlist-page .wishlist-mobile-grid .wishlist-item .item-summary {
      font-size: 0.75rem !important;
      margin-bottom: 0.5rem !important;
    }
    body.wishlist-page .wishlist-mobile-grid .wishlist-item .item-price {
      font-size: 0.9rem !important;
      margin-bottom: 0.75rem !important;
    }
    body.wishlist-page .wishlist-mobile-grid .wishlist-item .item-actions {
      flex-direction: row !important;
    }
    body.wishlist-page .wishlist-mobile-grid .wishlist-item .btn-add-cart,
    body.wishlist-page .wishlist-mobile-grid .wishlist-item .btn-remove-wishlist {
      min-height: 36px !important;
      padding: 0.4rem 0.6rem !important;
      font-size: 0.75rem !important;
      flex: 1 !important;
    }
  }




  
  .checkout-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(203,180,153,0.09);
    border: 1.5px solid #e2d6c2;
    padding: 2.2em 2em 1.5em 2em;
    margin-bottom: 2.2em;
    min-width: 320px;
    max-width: 480px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.7em;
    align-items: flex-start;
  }


  


  




  
      @media (max-width: 768px) {
        .mobile-only-contact-channels h1 {
          margin-top: 2.2em !important;
        }
      }

      @media (max-width: 768px) {
        body.profile-page .profile-form .form-actions {
          display: flex !important;
          flex-direction: row !important;
          gap: 0.8em !important;
          align-items: center !important;
          justify-content: center !important;
        }
        body.profile-page .profile-form .form-actions .submit-btn,
        body.profile-page .profile-form .form-actions .cancel-btn {
          width: auto !important;
          min-width: 0 !important;
          flex: 1 1 0 !important;
          margin: 0 !important;
          text-align: center !important;
          display: inline-block !important;
        }
      }
/* 회원탈퇴 모바일페이지 시작작 */
@media (max-width: 768px) {
    body.withdraw-page .mobile-withdraw-content,
    body.withdraw-page .mobile-withdraw-section,
    body.withdraw-page .mobile-data-deletion-section,
    body.withdraw-page .mobile-final-confirmation,
    body.withdraw-page .mobile-deletion-info,
    body.withdraw-page .mobile-scrollable-info {
      width: 95vw !important;
      max-width: 99vw !important;
      min-width: 0 !important;
      margin: 0 auto 1.2em auto !important;
      box-sizing: border-box !important;
      overflow-x: auto !important;
      word-break: keep-all !important;
      white-space: normal !important;
    }
    body.withdraw-page .mobile-deletion-info ul,
    body.withdraw-page .mobile-scrollable-info ul {
      padding-left: 1.1em !important;
      margin: 0 !important;
      word-break: keep-all !important;
      white-space: normal !important;
    }
  }
/* 회원탈퇴 모바일페이지 끝 */



@media (max-width: 768px) {
    .product-image-overlay,
    .product-image .product-image-overlay,
    .product-image:hover .product-image-overlay,
    .hover-btn,
    .wish-btn {
      display: none !important;
      opacity: 0 !important;
      pointer-events: none !important;
      visibility: hidden !important;
    }
  }
/* 체크아웃 모바일페이지 시작 */
@media (max-width: 768px) {
    .terms-list {
      margin-bottom: 0 !important;
      padding-bottom: 0;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    .terms-list label {
      display: flex !important;
      flex-direction: row;
      align-items: center;
      gap: 8px;
      width: 100%;
      min-height: 32px;
      margin: 0;
      padding: 0;
    }
    .terms-list input[type="checkbox"] {
      margin: 0;
      min-width: 20px;
      min-height: 20px;
    }
    .checkout-pay-btn {
      display: block;
      width: 100%;
      margin: 18px 0 0 0;
    }
    .pay-summary-box {
      margin-bottom: 0 !important;
      padding-bottom: 0 !important;
    }
  }
  @media (max-width: 768px) {
    .pay-summary-row.total {
      margin-bottom: 24px !important;
    }
  }

  @media (max-width: 768px) {
    .pay-summary-box {
      /* 이미 적용되어 있으면 생략 */
    }
    .pay-summary-row {
      display: flex !important;
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
      width: 100%;
      gap: 0;
    }
    .pay-summary-row > span:first-child {
      text-align: left !important;
      flex: 1 1 0;
      min-width: 0;
    }
    .pay-summary-row > span:last-child {
      text-align: right !important;
      flex: 1 1 0;
      min-width: 0;
      font-weight: 700;
    }
    .pay-summary-row.total > span:first-child {
      font-weight: 800;
    }
  }

@media (max-width: 768px) {
    .terms-list {
      margin-bottom: 16px !important;
      padding-bottom: 0;
    }
    .checkout-pay-btn {
      display: block;
      width: 100%;
      margin: 0 auto;
    }
  }

  @media (max-width: 768px) {
    .checkout-form-label {
      text-align: left !important;
      display: block;
      width: 100%;
      margin-bottom: 0.3em;
      color: #6b4a2e;
      font-size: 1.08em;
      font-weight: 600;
    }
    .checkout-form-label.first {
      margin-top: 16px !important;
    }
  }

  @media (min-width: 769px) {
    .shaker-qty-btn#searchZip {
      width: 200px !important;
      height: 54px !important;
      min-width: 200px;
      min-height: 54px;
      font-size: 1.08em;
      background: #cbb499 !important;   /* 연브라운 */
      color: #fff !important;
      border: none !important;
      border-radius: 12px !important;
      box-shadow: 0 2px 8px rgba(203,180,153,0.10);
      font-weight: 700;
      transition: background 0.18s, box-shadow 0.18s;
    }
    .shaker-qty-btn#searchZip:hover {
      background: #bfa16b !important;
      color: #fff !important;
      box-shadow: 0 6px 24px rgba(203,180,153,0.18);
    }
  }

  .checkout-card.pay-summary-card {
    margin-top: 0 !important;
  }


  input[type=number] {
    text-align: center !important;
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: textfield;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
  }
  input[type=number]::-webkit-input-placeholder { text-align: center; }
  input[type=number]::-webkit-outer-spin-button,
  input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }

 

  


통 카드/컨테이너 스타일 */
.mypage-section,
.mypage-card,
.mypage-main-content-mobile,
.order-list,
.order-item,
.order-info {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  margin: 0 auto;
}






/* 체크아웃 모바일페이지 끝끝 */
  /* 1:1문의 모바일페이지 끝 */

  body.profile-page .btn-row {
    display: flex;
    flex-direction: row;
    gap: 0.8em;
    align-items: center;
    justify-content: center;
  }
  body.profile-page .btn-row-child {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    text-align: center;
    display: inline-block;
  }

  @keyframes sns-bounce {
    0% { transform: translateY(0);}
    100% { transform: translateY(-8px);}
  }


.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 2rem;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.modal-content .close {
    color: #aaa;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
}


.modal-content .close:hover,

/* 모바일 사이드바 퀵링크(관심상품, 최근본상품, 주문조회) 전용 */

.modal-content .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer
}

/* PC 전용 수진선식 로고 로딩 오버레이 */
@media (min-width: 769px) {
    .sujin-logo-loading-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, #6b4a2e, #8B7355);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 99999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.5s ease;
    }

    .sujin-logo-loading-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .sujin-logo-container {
        text-align: center;
        margin-bottom: 2rem;
    }

    .sujin-logo-image {
        width: 120px;
        height: 120px;
        border-radius: 50%;
        background: white;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 1rem;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
        opacity: 1;
        transform: scale(1);
    }

    .sujin-logo-text {
        font-size: 1.8rem;
        font-weight: bold;
        color: white;
        margin-bottom: 0.5rem;
        opacity: 1;
    }

    .sujin-loading-dots {
        display: flex;
        gap: 0.5rem;
        margin-top: 2rem;
    }

    .sujin-loading-dot {
        width: 12px;
        height: 12px;
        background: white;
        border-radius: 50%;
        opacity: 0;
        animation: sujinLoadingDots 1.5s ease-in-out infinite;
    }

    .sujin-loading-dot:nth-child(1) { animation-delay: 0s; }
    .sujin-loading-dot:nth-child(2) { animation-delay: 0.2s; }
    .sujin-loading-dot:nth-child(3) { animation-delay: 0.4s; }



    @keyframes sujinLoadingDots {
        0%, 80%, 100% {
            opacity: 0;
            transform: scale(0.8);
        }
        40% {
            opacity: 1;
            transform: scale(1);
        }
    }
}

/* 모바일에서도 적용 */
@media (max-width: 768px) {
    .sujin-logo-loading-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: linear-gradient(135deg, #D4B896, #C9A876);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 99999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.5s ease;
        /* 모바일에서 스크롤 방지 */
        overflow: hidden;
        /* 모바일 브라우저 주소창 대응 */
        min-height: -webkit-fill-available;
    }

    .sujin-logo-loading-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .sujin-logo-container {
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .sujin-logo-image {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        background: white;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 0.8rem;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
        opacity: 1;
        transform: scale(1);
    }

    .sujin-logo-text {
        font-size: 1.2rem;
        font-weight: bold;
        color: white;
        margin-bottom: 0.5rem;
        opacity: 1;
    }

    .sujin-loading-dots {
        display: flex;
        gap: 0.4rem;
        margin-top: 1.5rem;
    }

    .sujin-loading-dot {
        width: 10px;
        height: 10px;
        background: white;
        border-radius: 50%;
        opacity: 0;
        animation: sujinLoadingDots 1.5s ease-in-out infinite;
    }

    .sujin-loading-dot:nth-child(1) { animation-delay: 0s; }
    .sujin-loading-dot:nth-child(2) { animation-delay: 0.2s; }
    .sujin-loading-dot:nth-child(3) { animation-delay: 0.4s; }

    @keyframes sujinLoadingDots {
        0%, 80%, 100% {
            opacity: 0;
            transform: scale(0.8);
        }
        40% {
            opacity: 1;
            transform: scale(1);
        }
    }
}

/* 플로팅 메뉴 스타일 */
/* 플로팅 버튼 스타일은 css/floating-button/ 폴더로 분리됨 */

/* �� ȸ�� �ִϸ��̼� */
@keyframes rotate-star {
    0% { 
        transform: rotateY(0deg) scale(1) rotateZ(0deg); 
        filter: brightness(1) drop-shadow(0 0 5px rgba(255, 215, 0, 0.3));
    }
    25% { 
        transform: rotateY(90deg) scale(1.1) rotateZ(15deg); 
        filter: brightness(1.2) drop-shadow(0 0 8px rgba(255, 215, 0, 0.5));
    }
    50% { 
        transform: rotateY(180deg) scale(0.9) rotateZ(-10deg); 
        filter: brightness(0.8) drop-shadow(0 0 3px rgba(255, 215, 0, 0.2));
    }
    75% { 
        transform: rotateY(270deg) scale(1.05) rotateZ(5deg); 
        filter: brightness(1.1) drop-shadow(0 0 6px rgba(255, 215, 0, 0.4));
    }
    100% { 
        transform: rotateY(360deg) scale(1) rotateZ(0deg); 
        filter: brightness(1) drop-shadow(0 0 5px rgba(255, 215, 0, 0.3));
    }
}

/* ��ٸ��� ���� ���� PC/����� ǥ�� ��Ģ */
@media (max-width: 768px) {
    .daangn-review-section {
        display: none !important;
    }
    .daangn-review-section-mobile {
        display: block !important;
    }
}
@media (min-width: 769px) {
    .daangn-review-section {
        display: block !important;
    }
    .daangn-review-section-mobile {
        display: none !important;
    }
}

/* FAQ ���� PC/����� ǥ�� ��Ģ */
@media (max-width: 768px) {
    .faq-section {
        display: none !important;
    }
    .faq-section-mobile {
        display: block !important;
    }
}
@media (min-width: 769px) {
    .faq-section {
        display: block !important;
    }
    .faq-section-mobile {
        display: none !important;
    }
}

/* ���� ���� PC/����� ǥ�� ��Ģ */
@media (max-width: 768px) {
    .inquiry-intro, .inquiry-methods, .inquiry-form {
        display: none !important;
    }
    .inquiry-intro-mobile, .inquiry-methods-mobile, .inquiry-form-mobile {
        display: block !important;
    }
}
@media (min-width: 769px) {
    .inquiry-intro, .inquiry-methods, .inquiry-form {
        display: block !important;
    }
    .inquiry-intro-mobile, .inquiry-methods-mobile, .inquiry-form-mobile {
        display: none !important;
    }
}
