:root {
    --primary-color: #e91e63;
    --primary-dark: #c2185b;
    --secondary-color: #9c27b0;
    --accent-color: #f06292;
    --background-color: #f8f9fa;
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --border-color: #e2e8f0;
    --white: #ffffff;
    --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-heavy: 0 8px 30px rgba(0,0,0,0.15);
    --border-radius: 2px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

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

/* 헤더 스타일 */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-light);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.logo:hover {
    transform: translateY(-1px);
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 16px;
    box-shadow: var(--shadow-light);
    position: relative;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    margin-top: -2px;
}

.nav-menu {
    display: flex;
    gap: 8px;
    margin-left: auto;
    margin-right: 20px;
}

.nav-item {
    padding: 10px 20px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
}

.nav-item:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
}

.nav-item.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-light);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
}

.quantity-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    box-shadow: var(--shadow-light);
}

.user-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 36px;
    height: 36px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.action-btn:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
}

/* 모바일 메뉴 */
.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

/* 데스크탑에서 모바일 메뉴 확실히 숨김 */
@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none !important;
    }

    .mobile-menu {
        display: none !important;
    }
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    z-index: 999;
    padding: 20px;
    box-shadow: var(--shadow-medium);
}

.mobile-menu.show {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-nav-item {
    display: block;
    padding: 15px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: var(--transition);
    background: var(--white);
    border: 1px solid var(--border-color);
    font-weight: 500;
    cursor: pointer;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 메인 컨텐츠 */
.main-content {
    padding: 40px 0;
}

/* 로그인 페이지 */
.login-container {
    background: var(--white);
    padding: 50px 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    text-align: center;
    max-width: 500px;
    margin: 50px auto;
    border: 1px solid var(--border-color);
}

/* 로그인 페이지에서 헤더 숨김 시 상단 여백 조정 */
body.login-mode .login-container {
    margin-top: 80px;
}

.login-title {
    font-size: 28px;
    color: var(--text-primary);
    margin-bottom: 30px;
    font-weight: 700;
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition);
    background: var(--white);
    color: var(--text-primary);
}

.form-input::placeholder {
    color: var(--text-muted);
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    padding: 12px 24px;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}


.main-banner h1 {
    font-size: clamp(24px, 5vw, 36px);
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.main-banner p {
    font-size: clamp(14px, 3vw, 18px);
    opacity: 0.9;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}


/* 상품 카드 */
.featured-product {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-medium);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.featured-product:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.featured-product img {
    width: 100%;
    max-width: 1200px;
    height: 700px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
}

.product-title {
    font-size: clamp(18px, 4vw, 24px);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.product-description {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.6;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.product-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--border-color);
}

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

.product-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.card-description {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.feature-tag {
    background: #f8f9fa;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    border: 1px solid var(--border-color);
}

/* 공지사항 박스 */
.notice-box {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffeaa7;
    border-radius: var(--border-radius);
    padding: 25px;
    margin: 25px 0;
}

.notice-title {
    font-weight: 700;
    color: #856404;
    margin-bottom: 15px;
    font-size: 18px;
}

.notice-text {
    color: #856404;
    line-height: 1.7;
}

/* 페이지 전환 */
.page {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 상품 상세 페이지 */
.product-detail {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.product-detail img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    background: var(--white);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition);
}

.quantity-btn:hover {
    background: #f8f9fa;
    border-color: var(--primary-color);
}

.quantity-input {
    width: 80px;
    text-align: center;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--white);
    color: var(--text-primary);
    font-weight: 600;
}

.quantity-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 배송지 폼 */
.delivery-grid {
    display: grid;
    gap: 20px;
    margin-top: 30px;
}

.delivery-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.delivery-title {
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
    font-size: 16px;
}

.delivery-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.delivery-form input {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--white);
    color: var(--text-primary);
    transition: var(--transition);
}

.delivery-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(233, 30, 99, 0.1);
}

.delivery-form input::placeholder {
    color: var(--text-muted);
}

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

/* 모바일 최적화 - 꽉 차게 개선 */
@media (max-width: 768px) {
    .header-content {
        padding: 0 10px; /* 좌우 패딩 축소 */
    }

    .nav-menu {
        display: none !important;
    }

    .mobile-menu-btn {
        display: flex !important;
    }

    .user-info {
        display: none !important;
    }

    .logo-text {
        font-size: 18px; /* 로고 크기 축소 */
    }

    .logo-icon {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }

    .container {
        padding: 0 8px; /* 컨테이너 패딩 대폭 축소 */
        max-width: 100%; /* 모바일에서 최대 너비 제한 해제 */
    }

    .main-content {
        padding: 15px 0; /* 상하 패딩 축소 */
    }

    .login-container {
        margin: 15px 8px; /* 마진 축소 */
        padding: 25px 15px; /* 패딩 축소 */
        max-width: 100%; /* 최대 너비 제한 해제 */
    }

    /* 모바일에서 로그인 모드일 때 상단 여백 조정 */
    body.login-mode .login-container {
        margin-top: 30px;
    }

    .featured-product {
        padding: 15px; /* 패딩 대폭 축소 */
        margin: 0 -8px 20px -8px; /* 좌우로 꽉 차게 */
        border-radius: 0; /* 모서리 직각 */
    }

    .featured-product img {
        height: 220px; /* 높이 축소 */
        margin-bottom: 15px;
        border-radius: 6px; /* 작은 모서리 */
    }

    .product-grid {
        grid-template-columns: 1fr 1fr; /* 2열 유지 */
        gap: 8px; /* 간격 대폭 축소 */
        margin: 0 -8px 20px -8px; /* 좌우로 꽉 차게 */
        padding: 0 8px; /* 내부 패딩만 최소화 */
    }

    .product-card {
        padding: 12px; /* 패딩 대폭 축소 */
        margin: 0; /* 마진 제거 */
        border-radius: 6px; /* 작은 모서리 */
    }

    .product-card img {
        height: 120px; /* 이미지 높이 축소 */
        margin-bottom: 10px;
        border-radius: 4px;
    }

    .card-title {
        font-size: 14px; /* 제목 크기 축소 */
        margin-bottom: 6px;
        line-height: 1.3;
    }

    .card-description {
        font-size: 12px; /* 설명 크기 축소 */
        margin-bottom: 8px;
    }

    .feature-tag {
        font-size: 10px; /* 태그 크기 축소 */
        padding: 2px 8px;
    }

    .product-detail {
        padding: 15px; /* 패딩 축소 */
        margin: 0 -8px; /* 좌우로 꽉 차게 */
        border-radius: 0; /* 모서리 직각 */
    }

    .product-detail-grid {
        grid-template-columns: 1fr; /* 세로 배열 */
        gap: 20px; /* 간격 축소 */
    }

    .delivery-form {
        grid-template-columns: 1fr; /* 배송 폼 세로 배열 */
        gap: 10px; /* 간격 축소 */
    }

    .delivery-item {
        padding: 15px; /* 패딩 축소 */
    }

    .quantity-selector {
        justify-content: flex-start; /* 왼쪽 정렬 */
        gap: 10px; /* 간격 축소 */
    }

    .mobile-user-info {
        display: block;
        background: #f8f9fa;
        padding: 12px; /* 패딩 축소 */
        border-radius: 6px;
        margin-bottom: 15px;
        text-align: center;
        color: var(--text-secondary);
        border: 1px solid var(--border-color);
        font-size: 14px; /* 폰트 크기 축소 */
    }

    .mobile-menu {
        padding: 15px 10px; /* 패딩 축소 */
    }

    .mobile-nav-item {
        padding: 12px 15px; /* 패딩 축소 */
        margin-bottom: 6px; /* 마진 축소 */
        font-size: 14px; /* 폰트 크기 축소 */
    }

    .notice-box {
        padding: 15px; /* 패딩 축소 */
        margin: 15px -8px; /* 좌우로 꽉 차게 */
        border-radius: 0; /* 모서리 직각 */
    }

    .notice-title {
        font-size: 16px; /* 제목 크기 축소 */
        margin-bottom: 10px;
    }

    .notice-text {
        font-size: 14px; /* 텍스트 크기 축소 */
        line-height: 1.5;
    }

    .login-title {
        font-size: 22px; /* 로그인 제목 크기 축소 */
        margin-bottom: 20px;
    }

    .form-input {
        padding: 12px 15px; /* 입력 필드 패딩 축소 */
        font-size: 14px;
    }

    .btn-primary, .btn-secondary {
        padding: 12px 20px; /* 버튼 패딩 축소 */
        font-size: 14px;
    }
}

/* 더 작은 모바일 화면 최적화 */
@media (max-width: 480px) {
    .container {
        padding: 0 5px; /* 더 작은 패딩 */
    }

    .product-grid {
        grid-template-columns: 1fr; /* 1열로 변경 */
        gap: 8px;
        margin: 0 -5px 15px -5px;
        padding: 0 5px;
    }

    .product-card {
        padding: 10px; /* 더 작은 패딩 */
    }

    .product-card img {
        height: 160px; /* 1열일 때는 높이 증가 */
    }

    .featured-product {
        margin: 0 -5px 15px -5px;
        padding: 12px;
    }

    .featured-product img {
        height: 200px;
    }

    .main-banner {
        margin: 0 -5px 12px -5px;
    }

    .notice-box {
        margin: 12px -5px;
        padding: 12px;
    }

    .login-container {
        margin: 12px 5px;
        padding: 20px 12px;
    }

    .card-title {
        font-size: 15px; /* 1열에서는 제목 크기 복원 */
    }

    .card-description {
        font-size: 13px;
    }
}


/* 상세페이지 */

/* 상품 갤러리 */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-image-container {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.main-product-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.main-product-image:hover {
    transform: scale(1.03);
}

.thumbnail-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
}

.thumbnail:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.thumbnail.active {
    border: 2px solid var(--primary-color);
}

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

/* 상품 정보 */
.product-info {
    display: flex;
    flex-direction: column;
}

.product-price {
    display: flex;
    align-items: center;
    margin: 10px 0;
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.price-label {
    font-size: 16px;
    color: var(--text-secondary);
    margin-right: 10px;
}

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

/* 상세 콘텐츠 영역 */
.product-detail-content {
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
}

.detail-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.detail-section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.detail-images {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.detail-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

/* 모바일 반응형 조정 */
@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .thumbnail {
        width: 60px;
        height: 60px;
    }

    .product-detail-content {
        margin-top: 40px;
        padding-top: 30px;
    }
}

.cart-items {
    margin-bottom: 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    background-color: white;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* 장바구니 이미지 크기 강제 조정 */
.cart-item-image {
    width: 100px !important; /* 강제 크기 고정 */
    height: 100px !important; /* 강제 크기 고정 */
    object-fit: contain;
    border-radius: 4px;
    margin-right: 20px;
    background-color: #f9f9f9;
}

.checkout-item-image {
    width: 100px !important; /* 강제 크기 고정 */
    height: 100px !important; /* 강제 크기 고정 */
    object-fit: contain;
    border-radius: var(--border-radius);
    margin-right: 15px;
}

/* 배송지 테이블 스타일 */
.delivery-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: #fff;
}

.delivery-table th {
    background-color: #f8f9fa;
    padding: 10px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
}

.delivery-table td {
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
}

.delivery-table input {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.delivery-table button {
    padding: 6px 12px;
    margin: 0 5px;
}

.delivery-table tr:hover {
    background-color: #f9f9f9;
}

.delivery-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

/* 배송지 추가 버튼 스타일 */
.add-row-btn {
    background-color: #f8f9fa;
    border: 1px dashed var(--border-color);
    padding: 10px;
    text-align: center;
    cursor: pointer;
    margin-top: 10px;
    color: var(--primary-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.add-row-btn:hover {
    background-color: #f0f0f0;
}

/* 장바구니 이미지 크기 강제 조정 */
.cart-item-image, .checkout-item-image {
    width: 100px !important; /* 강제 크기 고정 */
    height: 100px !important; /* 강제 크기 고정 */
    object-fit: contain;
    border-radius: 4px;
    margin-right: 20px;
    background-color: #f9f9f9;
}
.cart-item-info {
    flex-grow: 1;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 16px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 20px;
}

.cart-item-quantity .quantity-input {
    width: 50px;
    height: 36px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 0 5px;
}

.cart-item-quantity .quantity-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: normal;
}

.cart-summary {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid #eee;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 16px;
}

.cart-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.btn-outline {
    background: white;
    color: #333;
    padding: 12px 24px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 150px;
}

.btn-outline:hover {
    background: #f5f5f5;
}

.btn-gradient {
    background: linear-gradient(to right, #e91e63, #9c27b0);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 150px;
    flex-grow: 1;
}

.btn-gradient:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-gradient:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 주문서 작성 스타일 */
.checkout-section-title {
    font-size: 18px;
    font-weight: 600;
    margin: 30px 0 15px 0;
    color: var(--text-primary);
}

.checkout-item-list {
    margin-bottom: 30px;
}

.checkout-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.checkout-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-right: 15px;
}

.checkout-item-info {
    flex-grow: 1;
}

.checkout-item-quantity {
    font-weight: 600;
    color: var(--primary-color);
}

.delivery-section {
    margin: 30px 0;
}

.add-delivery-btn-container {
    margin-top: 20px;
    text-align: center;
}

.checkout-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

/* 모달 스타일 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-container {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
}
/* 기존 main-banner 스타일을 찾아서 수정하거나 덮어쓰기 */

/* 배너 슬라이더 스타일 - 개선된 버전 */
.main-banner {
    position: relative;
    width: 100%;
    margin-bottom: 40px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.banner-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.banner-slides {
    position: relative;
    width: 100%;
    min-height: 400px; /* 200px에서 400px로 증가 */
    max-height: 600px; /* 500px에서 600px로 증가 */
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-slide.active {
    opacity: 1;
    position: relative; /* 첫 번째 슬라이드의 높이 기준 설정 */
}

.banner-slide img {
    width: 100%;
    height: auto;
    max-height: 600px; /* 500px에서 600px로 증가 */
    min-height: 400px; /* 200px에서 400px로 증가 */
    object-fit: cover;
    border-radius: var(--border-radius);
}

.banner-slide a {
    display: block;
    width: 100%;
    line-height: 0; /* 이미지 하단 여백 제거 */
}

/* 단일 배너일 때 */
.main-banner > img,
.main-banner > a > img {
    width: 100%;
    height: auto;
    max-height: 600px; /* 높이 증가 */
    min-height: 400px; /* 높이 증가 */
    object-fit: cover;
    border-radius: var(--border-radius);
}

.main-banner > a {
    display: block;
    line-height: 0;
}

/* 슬라이더 컨트롤 버튼 */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* 슬라이더 인디케이터 */
.slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.indicator.active {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.3);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

/* 기본 배너 스타일 */
.default-banner {
    height: 400px; /* 300px에서 400px로 증가 */
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: var(--border-radius);
}

.default-banner h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.default-banner p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .banner-slides {
        min-height: 150px;
        max-height: 300px;
    }

    .banner-slide img,
    .main-banner > img,
    .main-banner > a > img {
        min-height: 350px;
        max-height: 500px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .prev-btn {
        left: 15px;
    }

    .next-btn {
        right: 15px;
    }

    .slider-indicators {
        bottom: 15px;
    }

    .default-banner {
        height: 250px;
    }

    .default-banner h2 {
        font-size: 1.8rem;
    }

    .default-banner p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .banner-slides {
        min-height: 220px;
        max-height: 300px;
    }

    .banner-slide img,
    .main-banner > img,
    .main-banner > a > img {
        min-height: 220px;
        max-height: 300px;
    }

    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }

    .indicator {
        width: 10px;
        height: 10px;
        border-width: 1px;
    }

    .default-banner {
        height: 180px;
    }

    .default-banner h2 {
        font-size: 1.5rem;
    }

    .default-banner p {
        font-size: 0.9rem;
    }
}

/* 슬라이더 호버 시 컨트롤 표시 */
.banner-slider:hover .slider-btn {
    opacity: 1;
}

.banner-slider:hover .slider-indicators {
    opacity: 1;
}


/* 푸터 스타일 */
.footer {
    background: var(--text-primary);
    color: white;
    margin-top: 60px;
    padding: 50px 0 20px 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo .logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 14px;
}

.footer-logo-text {
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.footer-logo-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 500;
    margin-top: -2px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 14px;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.footer-contact p,
.footer-info p {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: 20px;
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

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

.footer-company-info {
    font-size: 11px !important;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer {
        padding: 40px 0 20px 0;
        margin-top: 40px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer {
        padding: 30px 0 15px 0;
        margin-top: 30px;
    }

    .footer-logo-text {
        font-size: 18px;
    }

    .footer-title {
        font-size: 15px;
    }
}


/* 플로팅 액션 버튼 스타일 */
.floating-buttons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.floating-buttons.visible {
    opacity: 1;
    visibility: visible;
}

.floating-buttons.scroll-down {
    transform: translateY(10px);
}

.floating-main-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(233, 30, 99, 0.3);
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 15px;
}

.floating-main-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(233, 30, 99, 0.4);
}

.floating-main-btn .floating-icon {
    font-size: 24px;
    transition: all 0.3s ease;
}

.floating-main-btn .floating-close-icon {
    font-size: 20px;
    position: absolute;
    opacity: 0;
    transform: rotate(-90deg);
    transition: all 0.3s ease;
}

.floating-main-btn.open .floating-icon {
    opacity: 0;
    transform: rotate(90deg);
}

.floating-main-btn.open .floating-close-icon {
    opacity: 1;
    transform: rotate(0deg);
}

.floating-submenu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.floating-submenu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-btn {
    width: 50px;
    height: 50px;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.floating-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.floating-btn:hover .floating-icon {
    filter: grayscale(1) brightness(2);
}

.floating-btn .floating-icon {
    font-size: 20px;
    transition: all 0.3s ease;
}

.floating-tooltip {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.floating-btn:hover .floating-tooltip {
    opacity: 1;
    visibility: visible;
    right: 65px;
}

/* 뱃지 스타일 */
.cart-badge,
.recent-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    border: 2px solid white;
}

/* 고객센터 모달 스타일 */
.customer-service-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition);
}

.service-item:hover {
    background: #f8f9fa;
    border-color: var(--primary-color);
}

.service-icon {
    font-size: 24px;
    width: 40px;
    text-align: center;
}

.service-content {
    flex: 1;
}

.service-content h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.service-content p {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.service-content button {
    margin-top: 5px;
    padding: 5px 10px;
    font-size: 12px;
}

/* 최근 본 상품 모달 스타일 */
.recent-product-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.recent-product-item:hover {
    background: #f8f9fa;
    border-color: var(--primary-color);
}

.recent-product-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
}

.recent-product-info {
    flex: 1;
}

.recent-product-info h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.recent-date {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted);
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .floating-buttons {
        right: 15px;
        bottom: 15px;
    }

    .floating-main-btn {
        width: 55px;
        height: 55px;
    }

    .floating-btn {
        width: 45px;
        height: 45px;
    }

    .floating-btn .floating-icon {
        font-size: 18px;
    }

    .floating-tooltip {
        display: none; /* 모바일에서는 툴팁 숨김 */
    }

    .cart-badge,
    .recent-badge {
        width: 18px;
        height: 18px;
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    .floating-main-btn {
        width: 50px;
        height: 50px;
    }

    .floating-btn {
        width: 40px;
        height: 40px;
    }

    .floating-btn .floating-icon {
        font-size: 16px;
    }

    .service-item {
        padding: 12px;
        gap: 12px;
    }

    .service-icon {
        font-size: 20px;
        width: 35px;
    }
}
