/* 메인 페이지 스타일 */

/* 광고 슬라이더 스타일 */
.carousel-item {
    height: 900px; 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    text-align: left;
}

.carousel-caption .caption-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.carousel-caption .btn {
    padding: 0.38rem 1.2rem;
    font-size: 0.98rem;
    border-radius: 8px;
    background: #764ba2;
    color: #fff;
    border: none;
    box-shadow: none;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.carousel-caption .btn:hover, .carousel-caption .btn:focus {
    background: #5a3c8c;
    color: #fff;
}

/* 영상 플레이 버튼 스타일 */
.btn-play {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #333 !important;
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
    border-radius: 50px !important;
    padding: 0.5rem 1.5rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    margin-right: 10px !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.btn-play:hover {
    background: #ffffff !important;
    color: #333 !important;
    transform: scale(1.05) !important;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3) !important;
    border-color: #ffffff !important;
}

.btn-play i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

/* 자세히 보기 버튼 스타일 (영상 보기와 동일) */
.carousel-caption .btn-primary {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #333 !important;
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
    border-radius: 50px !important;
    padding: 0.5rem 1.5rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.carousel-caption .btn-primary:hover,
.carousel-caption .btn-primary:focus {
    background: #ffffff !important;
    color: #333 !important;
    transform: scale(1.05) !important;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3) !important;
    border-color: #ffffff !important;
}

/* 영상 모달 스타일 */
#videoModal .modal-dialog {
    max-width: 81vw; /* 90vw에서 10% 감소 */
    max-height: 81vh; /* 90vh에서 10% 감소 */
}

#videoModal .modal-content {
    background: #000;
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

#videoModal .modal-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-bottom: 1px solid #333;
}

#videoModal .modal-footer {
    border-top: 1px solid #333;
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 비율 */
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* 모달 스타일 */
.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: move;
    user-select: none;
}

/* 모달 아이콘과 텍스트 간격 조정 */
.modal-header .modal-title i {
    margin-right: 0.75rem !important;
}

.modal-body .btn i {
    margin-right: 0.75rem !important;
}

/* 소셜 로그인 버튼 아이콘 간격 */
.btn i.fas {
    margin-right: 0.75rem !important;
}

/* 모든 아이콘과 텍스트 간격 통일 */
.modal-header .modal-title i,
.modal-body .btn i,
.btn i.fas,
.btn i.fab,
.alert i,
.nav-link i,
.card-header i,
.badge i,
.list-unstyled i {
    margin-right: 0.5rem !important;
}

/* 모달 드래그 및 리사이즈 스타일 */
.modal-draggable .modal-dialog {
    position: fixed !important;
    margin: 0 !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    transition: none !important;
    z-index: 1055 !important;
}

.modal-draggable .modal-content {
    position: relative;
}

.modal-draggable .modal-header {
    cursor: grab !important;
    user-select: none !important;
}

.modal-draggable .modal-header:active {
    cursor: grabbing !important;
}

/* 리사이즈 가능한 모달 */
.modal-resizable .modal-dialog {
    position: fixed !important;
    min-width: 300px !important;
    min-height: 200px !important;
    max-width: 90vw !important;
    max-height: 90vh !important;
    overflow: hidden !important;
    z-index: 1055 !important;
}

.modal-resizable .modal-content {
    height: 100%;
    overflow: hidden;
}

.modal-resizable .modal-body {
    overflow-y: auto !important;
    max-height: calc(90vh - 120px) !important;
}

/* 리사이즈 핸들 */
.modal-resize-handle {
    position: absolute !important;
    bottom: 0 !important;
    right: 0 !important;
    width: 20px !important;
    height: 20px !important;
    cursor: se-resize !important;
    background: linear-gradient(-45deg, transparent 30%, #ccc 30%, #ccc 40%, transparent 40%, transparent 60%, #ccc 60%, #ccc 70%, transparent 70%) !important;
    z-index: 1060 !important;
    border-radius: 0 0 4px 0 !important;
    opacity: 0.7 !important;
    transition: opacity 0.2s !important;
}

.modal-resize-handle:hover {
    opacity: 1 !important;
}

/* 패밀리 사이트 드롭다운 */
.family-sites-dropdown {
    background: #f8f9fa !important;
    border: none;
}

.family-sites-dropdown .dropdown-item {
    color: #6c757d !important;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s;
}

.family-sites-dropdown .dropdown-item:hover {
    background: #ececec !important;
    color: #333 !important;
}

/* footer 주소와 동일 계열로 패밀리 사이트 버튼 글자색 통일 */
#familySitesDropdown {
    color: #6c757d !important;
    border-color: #e0e3e7 !important;
    background: #f4f6f9 !important;
    font-size: 0.97rem;
    font-weight: 400;
    padding: 0.38rem 1.1rem;
    border-radius: 7px;
    box-shadow: none !important;
    min-width: 140px;
    letter-spacing: 0.02em;
}

/* 취급품목 카드 스타일 */
.product-card {
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

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

/* 연락처 섹션 스타일 */
.contact-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

/* 네비게이션 스타일 */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 600;
    color: #333 !important;
}

.nav-link {
    font-weight: 500;
    color: #555 !important;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #764ba2 !important;
}

/* 드롭다운 메뉴 스타일 */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    margin-top: 5px;
}

.dropdown-item {
    padding: 0.1rem 1rem;
    font-weight: 500;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #764ba2;
}

.dropdown-divider {
    margin: 0.25rem 0;
    border-color: #e9ecef;
}



/* 커스텀 드롭다운 메뉴 기본(PC) */
.custom-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 200px;
    z-index: 1000;
    margin-top: 5px;
    padding: 0;
    list-style: none;
}
.custom-dropdown-menu.show { display: block; }
.custom-dropdown-menu .dropdown-item { padding: 0.5rem 1rem; }
.custom-dropdown-menu .dropdown-divider { margin: 0.25rem 0; border-color: #e9ecef; border-top: 1px solid #e9ecef; }
.custom-dropdown-menu > * { display: block !important; }

/* 모바일에서만 스타일 오버라이드 */
/* 중복 제거 - 위의 통합된 @media (max-width: 768px) 블록으로 이동됨 */

/* 드롭다운이 열릴 때 서브 메뉴도 항상 보이게 */
.custom-dropdown-menu.show .submenu,
.custom-dropdown-menu .submenu {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    opacity: 1 !important;
}

/* 섹션 스타일 */
.about-section {
    background: #f7f9fb;
    padding: 60px 0 40px 0;
}

.about-section .container {
    max-width: 1024px;
}

.about-section .about-image {
    width: 100%;
    max-width: 700px;
    max-height: 340px;
    object-fit: cover;
    border-radius: 18px;
    margin: 32px auto 0 auto;
    display: block;
    box-shadow: 0 8px 32px rgba(0,0,0,0.13);
}

.about-section h2 {
    color: #2d3032;
    font-weight: 700;
    margin-bottom: 1.2rem;
}

.about-section p {
    color: #6c757d;
    font-size: 1.13rem;
    margin-bottom: 0;
}

.about-section .album-gallery {
    display: flex;
    gap: 28px;
    overflow-x: hidden;
    justify-content: flex-start;
    max-width: 100%;
    margin: 0 auto;
    padding-bottom: 8px;
    position: relative;
}

.about-section .album-gallery:hover {
    animation-play-state: paused;
}

.album-thumb {
    flex: 0 0 250px;
    width: 250px;
    height: 180px;
    min-width: 250px;
    max-width: 250px;
    min-height: 180px;
    max-height: 180px;
    border-radius: 10px;
    overflow: hidden;
    background: #eaeaea;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: transform 0.2s;
}

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

.album-thumb:hover {
    transform: scale(1.04);
}

@keyframes album-move {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.projects-section {
    padding: 100px 0;
}

.contact-section {
    padding: 100px 0;
}

/* 고객센터 섹션 스타일 */
.contact-section#board {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
}

.contact-section#board h2,
.contact-section#board .fa-headset {
    color: #fff !important;
}

.contact-section#board p {
    color: white;
}

.contact-section#board .text-secondary {
    color: rgba(255, 255, 255, 0.8) !important;
}

.contact-section#board .card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.contact-section#board .card .card-title {
    color: #2d3032 !important;
    font-weight: 600;
}

.contact-section#board .card .card-text {
    color: #333 !important;
}

.contact-section#board .card .text-primary {
    color: #764ba2 !important;
}

.contact-section#board .card .text-muted {
    color: #6c757d !important;
}

.contact-section#board .card .badge {
    color: white !important;
}

.contact-section#board .alert-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

.contact-section#board .btn-primary {
    background: linear-gradient(135deg, #8fa1b7 0%, #6c7a89 100%) !important;
    color: #fff !important;
    border: none;
    padding: 0.38rem 1.2rem;
    font-size: 0.98rem;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(44,62,80,0.10);
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.contact-section#board .btn-primary:hover, .contact-section#board .btn-primary:focus {
    background: linear-gradient(135deg, #b0c4d8 0%, #8fa1b7 100%) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(44,62,80,0.14);
    transform: translateY(-1px) scale(1.03);
}

/* 카드 스타일 */
.card {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* 버튼 스타일 */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* 테이블 스타일 */
.table-hover tbody tr:hover {
    background-color: rgba(102, 126, 234, 0.1);
    cursor: pointer;
}

/* 페이지네이션 스타일 */
.pagination .page-link {
    color: #667eea;
    border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: #667eea;
    border-color: #667eea;
}

/* 모바일 스타일 통합 (768px 이하) */
@media (max-width: 768px) {
    /* 캐러셀 */
    .carousel-item {
        height: 480px;
    }
    
    /* 모달 */
    .modal-resizable .modal-dialog {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .modal-resizable .modal-body {
        max-height: calc(95vh - 120px);
    }
    
    .modal-draggable .modal-dialog {
        position: relative !important;
        transform: none !important;
        top: auto !important;
        left: auto !important;
        margin: 1.75rem auto !important;
    }
    
    /* 네비게이션 */
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    /* 드롭다운 메뉴 */
    .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin-top: 0;
        box-shadow: none;
        border: 1px solid #e9ecef;
        border-radius: 0;
    }
    
    .dropdown-menu-end {
        right: auto !important;
        left: 0 !important;
    }
    
    .navbar-nav .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        margin-top: 0;
        box-shadow: none;
        border: 1px solid #e9ecef;
        border-radius: 0;
    }
    
    .navbar-nav .dropdown-menu.show {
        display: block !important;
    }
    
    .nav-item.dropdown {
        width: 100%;
    }
    
    .nav-item.dropdown .nav-link {
        width: 100%;
        text-align: left;
    }
    
    /* 커스텀 드롭다운 */
    .custom-dropdown-menu {
        position: static;
        right: auto;
        left: 0;
        width: 100%;
        margin-top: 0;
        box-shadow: none;
        border-radius: 0;
        border-top: none;
        min-width: 0;
    }
    
    /* 푸터 */
    footer .col-md-4 {
        display: flex !important;
        justify-content: center !important;
        align-items: flex-start !important;
        margin-top: 18px !important;
        margin-bottom: 8px !important;
    }
    
    /* 992px 이하에서는 footer의 패밀리 사이트 버튼 숨김 */
    footer .dropdown.d-none.d-lg-block {
        display: none !important;
    }
    
    /* 패밀리 사이트 셀렉트 박스 스타일 */
    .family-sites-select {
        background-color: transparent !important;
        border: none !important;
        color: inherit !important;
        padding: 0 !important;
        font-size: inherit !important;
        cursor: pointer !important;
        outline: none !important;
        box-shadow: none !important;
    }
    
    .family-sites-select:focus {
        box-shadow: none !important;
        border: none !important;
    }
    
    .family-sites-select option {
        background-color: #fff !important;
        color: #000 !important;
        padding: 8px !important;
    }
    
    /* 모바일 패밀리 사이트 셀렉트 스타일 */
    .family-sites-select-mobile {
        background-color: #fff !important;
        border: 1px solid #dee2e6 !important;
        color: #000 !important;
        border-radius: 0.375rem !important;
        padding: 0.5rem 0.75rem !important;
        font-size: 0.875rem !important;
        cursor: pointer !important;
        outline: none !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
        transition: all 0.2s ease !important;
        width: auto !important;
        min-width: 120px !important;
        max-width: none !important;
        display: inline-block !important;
    }
    
    .family-sites-select-mobile:focus {
        border-color: #764ba2 !important;
        box-shadow: 0 0 0 0.2rem rgba(118, 75, 162, 0.25) !important;
    }
    
    .family-sites-select-mobile option {
        background-color: #fff !important;
        color: #000 !important;
        padding: 8px !important;
    }
    
    .footer-tel-fax .footer-fax {
        display: block;
        margin-left: 0;
        margin-top: 2px;
    }
    
    /* 앨범 갤러리 */
    .about-section .album-gallery {
        gap: 10px;
        padding-bottom: 4px;
    }
    
    .album-thumb {
        flex: 0 0 90vw !important;
        width: 90vw !important;
        height: 60vw !important;
        min-width: 100px !important;
        min-height: 80px !important;
        max-width: 380px !important;
        max-height: 220px !important;
    }
    
    .album-thumb img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }
    
    .album-gallery-wrap {
        padding: 0 16px;
    }
    
    .album-arrow {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
        display: none !important;
    }
    
    .album-gallery {
        overflow-x: auto !important;
        margin-right: 0 !important;
        padding-right: 0 !important;
    }
    
    /* 앨범 모달 */
    .album-modal-desc {
        font-size: 0.98rem;
        padding: 12px 8px 10px 8px;
    }
    
    /* 컨테이너 */
    .container, .container-fluid {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    
    /* 카드 */
    .product-card .card-body,
    .card .card-body {
        padding: 0.7rem 0.5rem 0.7rem 0.5rem;
    }
    
    /* 섹션 패딩 */
    .projects-section,
    .about-section,
    .contact-section {
        padding: 28px 0 18px 0;
    }
    
    /* 사용자 드롭다운 */
    #userDropdownMenu {
        display: block !important;
    }
}

/* 스크롤바 스타일 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5a6fd8;
}

/* 로딩 애니메이션 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* 모달 애니메이션 */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
}

.modal.show .modal-dialog {
    transform: none;
}

/* 게시글 카드 스타일 */
.post-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

.post-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* 댓글 스타일 */
.comment-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
}

.comment-author {
    font-weight: 600;
    color: #667eea;
}

.comment-date {
    font-size: 0.85rem;
    color: #6c757d;
}

/* 상품 상세 이미지 스타일 */
.product-image {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-image:hover {
    transform: scale(1.02);
    transition: transform 0.3s;
}

/* 모달 드래그 중 스타일 */
.modal-dragging {
    pointer-events: none;
}

.modal-dragging .modal-dialog {
    pointer-events: auto;
}

/* 모달 리사이즈 중 스타일 */
.modal-resizing {
    pointer-events: none;
}

.modal-resizing .modal-dialog {
    pointer-events: auto;
}

/* 모달 헤더 버튼 영역 보호 */
.modal-header .btn-close,
.modal-header .dropdown-toggle {
    cursor: pointer !important;
    z-index: 1051;
}

/* 모달 최소 크기 보장 */
.modal-dialog {
    min-width: 300px !important;
    min-height: 200px !important;
}

.contact-section.bg-white h2 {
    color: #2d3032 !important;
}

/* 앨범(갤러리) 섹션 */
.album-section {
  background: #f7f9fb;
  padding: 60px 0 40px 0;
}
.album-gallery {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 8px;
}
.album-thumb {
  flex: 0 0 180px;
  height: 120px;
  border-radius: 10px;
  overflow: hidden;
  background: #eaeaea;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  transition: transform 0.2s;
}
.album-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.album-thumb:hover {
  transform: scale(1.04);
}
.album-modal {
  display: flex;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.7);
  align-items: center;
  justify-content: center;
}
.album-modal-content {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  display: block;
  position: relative;
}
.album-modal-close {
  position: absolute;
  right: 20px;
  top: 20px;
  color: #fff;
  font-size: 2rem;
  font-weight: 900;
  cursor: pointer;
  z-index: 10000;
  background: rgba(220, 53, 69, 0.7);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: background 0.2s, color 0.2s, transform 0.1s;
  border: none;
  outline: none;
  line-height: 1;
  padding: 0;
}
.album-modal-close:hover {
  background: #dc3545;
  color: #fff;
  transform: scale(1.08);
}
.album-modal-desc {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: rgba(20,20,20,0.72);
  color: #fff;
  font-size: 1.08rem;
  padding: 18px 20px 14px 20px;
  border-radius: 0 0 12px 12px;
  text-align: center;
  max-width: 100%;
  line-height: 1.6;
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
  pointer-events: none;
}
@media (max-width: 768px) {
  .album-modal-desc { font-size: 0.98rem; padding: 12px 8px 10px 8px; }
}

/* Top 버튼은 footer.php의 go-top-btn으로 대체됨 */

/* ===== 장바구니 및 주문 관련 스타일 ===== */

/* 브레드크럼 네비게이션 */
.breadcrumb-section {
    margin-bottom: 2rem;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: #6c757d;
    margin: 0 0.5rem;
}

.breadcrumb-item a {
    color: #6c757d;
    transition: color 0.2s;
}

.breadcrumb-item a:hover {
    color: #764ba2;
}

.breadcrumb-item.active {
    color: #495057;
    font-weight: 600;
}

/* 장바구니 스타일 */
.cart-table {
    border: none;
    margin-bottom: 0;
}

.cart-table th {
    border-top: none;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
    padding: 1rem 0.75rem;
}

.cart-table td {
    border-top: none;
    border-bottom: 1px solid #f8f9fa;
    padding: 1rem 0.75rem;
    vertical-align: middle;
}

.cart-product-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-product-name {
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: #333;
}

.cart-product-details small {
    font-size: 0.8rem;
}

.cart-quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
}

.cart-quantity-btn {
    background: #f8f9fa;
    border: none;
    padding: 0.5rem 0.75rem;
    font-weight: 600;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 40px;
}

.cart-quantity-btn:hover:not(:disabled) {
    background: #e9ecef;
    color: #333;
}

.cart-quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cart-quantity {
    border: none;
    text-align: center;
    padding: 0.5rem;
    min-width: 60px;
    border-left: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
}

.cart-quantity:focus {
    outline: none;
    box-shadow: none;
}

.cart-remove-btn {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s;
}

.cart-remove-btn:hover {
    background: #c82333;
    transform: scale(1.1);
}

.cart-continue-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s;
}

.cart-continue-btn:hover {
    background: #5a6268;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.checkout-summary {
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.checkout-summary .card-header {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 1rem;
}

.checkout-summary .card-body {
    padding: 1.5rem;
}

.cart-checkout-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.cart-checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* 빈 장바구니 스타일 */
.empty-cart-icon {
    font-size: 4rem;
    color: #6c757d;
}

.cart-shop-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s;
}

.cart-shop-btn:hover {
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 주문 내역 스타일 */
.order-date-section {
    margin-bottom: 2rem;
}

.order-card {
    border: 1px solid #e9ecef;
    border-top: none;
    border-radius: 0 0 8px 8px;
    transition: all 0.2s;
    margin-bottom: 10px;
}

.order-card:last-child {
    margin-bottom: 0;
}

.order-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 주문 카드 헤더 */
.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e9ecef;
    border-radius: 8px 8px 0 0;
}

.order-card-header .order-date {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
}

.order-card-header .order-date i {
    margin-right: 0.5rem;
}

.order-card-header .order-detail-link {
    color: #764ba2;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
}

.order-card-header .order-detail-link:hover {
    color: #5a3d7a;
    text-decoration: none;
}

.order-card-header .order-detail-link i {
    margin-left: 0.25rem;
    font-size: 0.75rem;
}

.order-card .card-body {
    padding: 1.5rem;
}

.delivery-status {
    padding-bottom: 1rem;
    border-bottom: 1px solid #f8f9fa;
}

.delivery-status .fw-bold {
    color: #495057;
}

.delivery-status .text-success {
    font-size: 0.9rem;
}

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

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

.order-item .product-image {
    width: 80px;
    height: 80px;
    margin-right: 1rem;
    flex-shrink: 0;
}

.order-item .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.order-item .product-info {
    flex: 1;
    margin-right: 1rem;
}

.order-item .product-options {
    flex-shrink: 0;
}

.product-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.product-price {
    color: #764ba2;
    font-weight: 600;
}

.product-quantity {
    color: #6c757d;
    font-size: 0.9rem;
}

.delivery-badge {
    margin-bottom: 0.5rem;
}

.delivery-badge .badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
}

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

.order-actions .btn {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.order-actions .btn-outline-primary {
    border-color: #764ba2;
    color: #764ba2;
}

.order-actions .btn-outline-primary:hover {
    background: #764ba2;
    border-color: #764ba2;
    color: white;
}

.order-actions .btn-outline-secondary {
    border-color: #6c757d;
    color: #6c757d;
}

.order-actions .btn-outline-secondary:hover {
    background: #6c757d;
    border-color: #6c757d;
    color: white;
}

.order-actions .btn-outline-danger {
    border-color: #dc3545;
    color: #dc3545;
}

.order-actions .btn-outline-danger:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
}

.order-actions .btn-outline-success {
    border-color: #28a745;
    color: #28a745;
}

.order-actions .btn-outline-success:hover {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

.order-actions .btn-outline-warning {
    border-color: #ffc107;
    color: #856404;
}

.order-actions .btn-outline-warning:hover {
    background: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

/* 상품별 장바구니 담기 버튼 */
.product-info .btn-sm {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    margin-top: 0.5rem;
}

.product-info .btn-outline-primary {
    border-color: #764ba2;
    color: #764ba2;
}

.product-info .btn-outline-primary:hover {
    background: #764ba2;
    border-color: #764ba2;
    color: white;
}

/* 빈 주문 내역 스타일 */
.orders-empty-icon {
    font-size: 4rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.orders-shop-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s;
}

.orders-shop-btn:hover {
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 모바일 반응형 스타일 */
@media (max-width: 768px) {
    .cart-table th,
    .cart-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .cart-product-image {
        width: 50px;
        height: 50px;
    }
    
    .cart-quantity-controls {
        width: 120px !important;
    }
    
    .cart-quantity {
        min-width: 50px;
    }
    
    .cart-quantity-btn {
        min-width: 35px;
        padding: 0.4rem 0.6rem;
    }
    

    
    .order-card-header {
        padding: 0.5rem 0.75rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .order-card-header .order-date {
        font-size: 0.85rem;
    }
    
    .order-card-header .order-detail-link {
        font-size: 0.8rem;
    }
    
    .order-card .card-body {
        padding: 1rem;
    }
    
    .order-item {
        padding: 0.75rem 0;
    }
    
    .product-image img {
        width: 60px !important;
        height: 60px !important;
    }
    
    .order-actions {
        flex-direction: column;
    }
    
    .order-actions .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .order-actions .btn:last-child {
        margin-bottom: 0;
    }
}

/* 중복 제거 - 위의 통합된 @media (max-width: 768px) 블록으로 이동됨 */

.container, .container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 1224px !important;
}
.contact-section .row.gx-4, .contact-section .row.gx-4.gx-lg-5 {
    --bs-gutter-x: 1rem;
}
.contact-section .col-md-10.col-lg-8.mx-auto.text-center {
    max-width: 100% !important;
    flex: 0 0 100% !important;
}
.contact-section .row.gx-4.gx-lg-5 .col-lg-4, .contact-section .row.gx-4.gx-lg-5 .col-md-6 {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}
.contact-section .row.gx-4.gx-lg-5 {
    margin-left: 0 !important;
    margin-right: 0 !important;
}
@media (max-width: 768px) {
    .container, .container-fluid {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
}

/* 카드, 앨범 이미지 꽉 차게 */
.card-img-top,
.product-card img,
.album-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 카드 내부 여백 조정 (필요시) */
.product-card .card-body,
.card .card-body {
    padding: 1.1rem 1rem 1rem 1rem;
}

.contact-section .container {
    max-width: 1224px !important;
}
.album-gallery-wrap {
    padding: 0 56px;
    position: relative;
}
.album-arrow {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    color: #764ba2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    opacity: 0.85;
}
.album-arrow:hover {
    background: #764ba2;
    color: #fff;
    opacity: 1;
}

/* 중복 제거 - 위의 통합된 @media (max-width: 768px) 블록으로 이동됨 */

.album-arrow svg polygon {
    transition: fill 0.2s;
    fill: #764ba2;
}
.album-arrow:hover svg polygon {
    fill: #fff;
}

/* PC: 기본은 닫힘, show 클래스 있을 때만 보임 */
/* 중복 제거 - 위의 통합된 @media (max-width: 768px) 블록으로 이동됨 */

.footer-tel-fax .footer-fax {
  margin-left: 0;
}

/* 중복 제거 - 위의 통합된 @media (max-width: 768px) 블록으로 이동됨 */

.projects-section,
.about-section,
.contact-section {
    padding: 48px 0 32px 0; /* 기존 100px 0 등 → 48px 0 32px 0 */
}

/* 중복 제거 - 위의 통합된 @media (max-width: 768px) 블록으로 이동됨 */

.projects-section {
    margin-bottom: 0;
}

/* 992px 이상: 드롭다운 메뉴 nav 오른쪽 끝 정렬 */
@media (min-width: 992px) {
  .custom-dropdown-menu {
    right: 0;
    left: auto !important;
    position: absolute;
    min-width: 180px;
    top: 100%;
    z-index: 1050;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15);
    border-radius: 0.5rem;
  }
  .navbar-nav {
    position: relative;
  }
  .nav-item {
    position: relative;
  }
}

/* 991px 이하: 드롭다운 메뉴 전체 너비, static */
@media (max-width: 991.98px) {
  .custom-dropdown-menu {
    position: static;
    width: 100%;
    min-width: unset;
    right: unset;
    left: unset;
    box-shadow: none;
    border-radius: 0;
  }
}

@media (max-width: 768px) {
  .album-gallery-wrap {
    padding: 0 !important;
  }
}
