/* [Performance] Font imports moved to HTML for non-blocking loading */
/* Pretendard is loaded via index.html with media="print" onload trick */

:root {
    --primary-color: #000000;
    --secondary-color: #A1887F;
    --background-color: #FDFBFA;
    --surface-color: #FFFFFF;
    --text-color: #3D332D;
    --heading-color: #000000;
    --white-color: #FFFFFF;
    --light-gray-color: #F5F5F5;
    --gray-color: #757575;
    --accent-color: #FFAB91;

    --font-family-base: 'Pretendard', sans-serif;
    --font-family-heading: 'Pretendard', sans-serif;

    --container-width: 1140px;
    --border-radius: 12px;
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 16px rgba(0,0,0,0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-base);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;
    font-weight: 400;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

.section {
    padding: 6rem 0;
}

.section-title {
    font-family: var(--font-family-heading);
    color: var(--heading-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.1rem;
    color: var(--gray-color);
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

.text-center { text-align: center; }
.bg-light { background-color: var(--light-gray-color); }

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}
.btn-primary:hover {
    background-color: var(--heading-color);
    transform: translateY(-2px);
}
.btn-secondary {
    background-color: transparent;
    color: var(--white-color);
    border-color: var(--white-color);
}
.btn-secondary:hover {
    background-color: var(--white-color);
    color: var(--heading-color);
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
    text-decoration: none;
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}
.nav a:hover { color: var(--primary-color); }

/* Hero Section */
#hero {
    background: linear-gradient(135deg, #3a4b66 0%, #1a2533 100%);
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    text-align: center;
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 1;
    display: none;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
    padding: 0 1rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 0 4px 12px rgba(0,0,0,0.6);
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin: 1rem 0 2rem 0;
    font-weight: 300;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.about-item {
    background: var(--surface-color);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    text-align: center;
}
.about-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    color: var(--heading-color);
}

.about-item h3 {
    margin: 1.5rem 0 0.5rem;
    font-size: 1.25rem;
    color: var(--heading-color);
}

.about-icon {
    width: 70px;
    height: 70px;
    background-color: var(--light-gray-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.about-icon svg, .about-icon i {
    width: 35px;
    height: 35px;
    color: var(--heading-color);
    overflow: visible;
    font-size: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-item:hover .about-icon {
    background-color: var(--primary-color);
}

.about-item:hover .about-icon svg,
.about-item:hover .about-icon i {
    color: var(--white-color);
    transform: scale(1.1);
}

/* Feature Section */
.feature-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    width: 100%;
    height: auto;
}

.feature-image-placeholder {
    width: 100%;
    height: 400px;
    background-color: var(--light-gray-color);
    border-radius: var(--border-radius);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.feature-image-placeholder i {
    font-size: 5rem;
    color: #cbd5e1;
}

.feature-text ul {
    list-style: none;
    margin: 1.5rem 0;
}
.feature-text li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
}

.gallery-grid img:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-md);
}

/* Gallery Edit UI */
.gallery-delete-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 10;
}

.gallery-item:hover .gallery-delete-btn,
.is-editing .gallery-delete-btn {
    opacity: 1;
}

.gallery-add-card {
    height: 250px;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #adb5bd;
}

.gallery-add-card:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #fff;
}

.gallery-add-card i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Products Section */
.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.product-info {
    padding: 1.5rem;
}
.product-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--heading-color);
}
.product-description {
    font-size: 0.95rem;
    margin: 0.5rem 0 1rem 0;
}
.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Product Edit UI */
.product-delete-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 10;
}

.product-card:hover .product-delete-btn,
.is-editing .product-delete-btn {
    opacity: 1;
}

/* 편집 모드에서 상품 카드 수정 가능 표시 */
.is-editing .product-card:not(.add-product-card) {
    cursor: pointer;
    position: relative;
}
.is-editing .product-card:not(.add-product-card)::after {
    content: '✏️ 클릭하여 수정';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 0.2s;
}
.is-editing .product-card:not(.add-product-card):hover::after {
    opacity: 1;
}

.product-add-card {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #adb5bd;
    min-height: 350px;
}

.product-add-card:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #fff;
}

.product-add-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Product Add Modal */
.product-add-content {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
}

.product-add-content h3 {
    margin-bottom: 1.5rem;
    color: var(--heading-color);
    text-align: center;
}

.product-add-form .form-group {
    margin-bottom: 1.2rem;
}

.product-add-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.product-add-form input,
.product-add-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-family-base);
}

.product-add-form textarea {
    height: 100px;
    resize: vertical;
}

.image-preview {
    margin-top: 0.5rem;
    width: 100%;
    height: 150px;
    border: 1px dashed #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f9f9f9;
}

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

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 1.5rem;
    border: none;
    cursor: pointer;
}

.close-product-add {
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: var(--surface-color);
    padding: 4rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}
.contact-info ul {
    list-style: none;
    margin: 1.5rem 0;
}
.contact-info li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.contact-info li strong {
    width: 60px;
    color: var(--primary-color);
}
.contact-info li a {
    color: var(--heading-color);
    text-decoration: none;
}
.contact-info li a:hover {
    text-decoration: underline;
}
.map-placeholder {
    height: 200px;
    background: var(--light-gray-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    margin-top: 2rem;
}
#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-family-base);
}
#contact-form textarea {
    min-height: 120px;
    resize: vertical;
}
#contact-form button {
    width: 100%;
}

.contact-main {
    max-width: 800px;
    margin: 4rem auto 0;
    text-align: center;
    background-color: var(--surface-color);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.contact-main h3 {
    font-size: 1.75rem;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
}

.contact-info {
    margin: 2rem 0;
}

.contact-phone {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}
.contact-phone:hover {
    color: var(--heading-color);
}

#map {
    width: 100%;
    height: 350px;
    background-color: var(--light-gray-color);
    border-radius: var(--border-radius);
    margin-top: 1.5rem;
    border: 1px solid #eee;
}

.contact-address {
    font-size: 1.1rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    color: var(--heading-color);
}
.contact-address strong {
    width: 60px;
    color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--heading-color);
    color: var(--white-color);
    text-align: center;
    padding: 2rem 0;
    margin-top: 6rem;
}
.footer a {
    color: var(--accent-color);
    text-decoration: underline;
}
.footer a:hover {
    text-decoration: underline;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}
.close:hover,
.close:focus {
    color: #bbb;
}

/* Blog Styles */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.blog-card {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

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

.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-card-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-no-thumbnail {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--light-gray-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-card-excerpt {
    font-size: 0.95rem;
    color: var(--gray-color);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--gray-color);
    border-top: 1px solid var(--light-gray-color);
    padding-top: 0.75rem;
}

.blog-card-author {
    font-weight: 600;
    color: var(--primary-color);
}

.blog-card-date {
    font-style: italic;
}

/* Blog Post Actions */
.blog-post-actions {
    display: flex;
    gap: 0.75rem;
    flex-direction: row;
}

.blog-post-actions button {
    width: auto;
    min-width: 70px;
    padding: 0.6rem 1.2rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}

.edit-btn {
    background-color: #f8f9fa !important;
    color: #495057 !important;
    border: 1px solid #dee2e6 !important;
}

.edit-btn:hover {
    background-color: #e9ecef !important;
    border-color: #adb5bd !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.delete-btn {
    background-color: #fff !important;
    color: #dc3545 !important;
    border: 1px solid #dc3545 !important;
}

.delete-btn:hover {
    background-color: #dc3545 !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(220,53,69,0.3);
}

/* Blog Post Detail */
.blog-post-section {
    padding: 3rem 0 6rem 0;
}

.blog-post-header {
    margin-bottom: 2rem;
}

.blog-back-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: 1.5rem;
    font-weight: 500;
    transition: color 0.3s;
}

.blog-back-link:hover {
    color: var(--heading-color);
}

.blog-post-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--heading-color);
    line-height: 1.3;
    margin-bottom: 1rem;
}

.blog-post-meta {
    display: flex;
    gap: 2rem;
    font-size: 0.95rem;
    color: var(--gray-color);
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--light-gray-color);
}

.blog-post-author {
    font-weight: 600;
    color: var(--primary-color);
}

.blog-post-date {
    font-style: italic;
}

.blog-post-thumbnail {
    margin: 2rem 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.blog-post-thumbnail img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
}

.blog-post-content {
    max-width: 800px;
    margin: 3rem auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.blog-post-content.ql-editor {
    padding: 0;
}

.blog-post-content h1,
.blog-post-content h2,
.blog-post-content h3 {
    color: var(--heading-color);
    font-weight: 700;
    margin: 2rem 0 1rem 0;
    line-height: 1.3;
}

.blog-post-content h1 {
    font-size: 2.2rem;
}

.blog-post-content h2 {
    font-size: 1.8rem;
}

.blog-post-content h3 {
    font-size: 1.4rem;
}

.blog-post-content p {
    margin-bottom: 1.5rem;
}

.blog-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 1rem 0;
    box-shadow: var(--shadow-sm);
}

.blog-post-content ul,
.blog-post-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.blog-post-content li {
    margin-bottom: 0.5rem;
}

/* 테이블 스타일 (AI 생성 블로그용) */
.blog-post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0 2.5rem 0;
    font-size: 0.95rem;
}

.blog-post-content table th,
.blog-post-content table td {
    border: 1px solid #ddd;
    padding: 0.75rem 1rem;
    text-align: left;
}

.blog-post-content table th {
    background-color: var(--light-gray-color, #f5f5f5);
    font-weight: 600;
    color: var(--heading-color);
}

.blog-post-content table tr:nth-child(even) {
    background-color: #fafafa;
}

/* 섹션 간 여백 강화 */
/* Quill 에디터 스타일(quill.snow.css)보다 우선순위를 높이기 위해 !important 사용 */
.blog-post-content h2 {
    margin-top: 2.5rem !important;
    padding-top: 2rem !important;
    border-top: 1px solid #eee;
}

.blog-post-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.blog-post-content h3 {
    margin-top: 2rem;
}

.blog-post-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--gray-color);
}

.blog-post-content code {
    background-color: var(--light-gray-color);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.blog-post-content pre {
    background-color: var(--light-gray-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    overflow-x: auto;
    margin: 1.5rem 0;
}

.blog-post-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.blog-post-content a:hover {
    color: var(--heading-color);
}

/* Responsive */
@media (max-width: 992px) {
    .feature-content, .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    .nav ul {
        gap: 1.5rem;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    
    .blog-post-title {
        font-size: 2rem;
    }
    
    .blog-post-content {
        font-size: 1rem;
    }
    
    .blog-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* Inline Edit Mode Styles */
.editable-element {
    transition: all 0.3s ease;
}

.is-editing .editable-element {
    outline: 2px dashed #3B82F6;
    outline-offset: 4px;
    position: relative;
    border-radius: 4px;
}

.is-editing .editable-element:hover {
    outline-color: #2563EB;
    background-color: rgba(59, 130, 246, 0.05);
}

.is-editing [data-edit-type="image"],
.is-editing [data-edit-type="bg-image"] {
    position: relative;
}

.is-editing [data-edit-type="image"]:hover::after,
.is-editing [data-edit-type="bg-image"]:hover::after {
    content: '\f030';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: white;
    background: rgba(0,0,0,0.5);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10;
}

.edit-controls {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(30, 41, 59, 0.95);
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    z-index: 9999;
    box-shadow: 0 -4px 6px rgba(0,0,0,0.1);
    backdrop-filter: blur(4px);
}

.edit-mode-label {
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    margin-right: 1rem;
}

.btn-toggle-edit {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 30px;
    background: #3B82F6;
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    cursor: pointer;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-toggle-edit i {
    font-size: 1.5rem;
}

.btn-toggle-edit::after {
    content: '페이지 편집';
    position: absolute;
    right: 70px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.btn-toggle-edit:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.5);
}

.btn-toggle-edit:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.95rem;
}

/* Icon Picker Modal */
.icon-picker-content {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
}

.icon-picker-content h3 {
    margin-bottom: 1.5rem;
    color: var(--heading-color);
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
}

.icon-item {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid #ddd;
    transition: all 0.2s;
    color: var(--gray-color);
}

.icon-item:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.close-icon-picker {
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

/* Edit Icon Hover Effect */
.is-editing .editable-icon:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Hide Placeholders in Edit Mode */
.is-editing .product-placeholder,
.is-editing .gallery-placeholder {
    display: none !important;
}

/* Logo Edit Modal */
.logo-edit-content {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 450px;
    color: var(--text-color);
}

.logo-edit-content h3 {
    margin-bottom: 1.5rem;
    color: var(--heading-color);
}

.close-logo-edit {
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: var(--gray-color);
}

.close-logo-edit:hover {
    color: var(--heading-color);
}

/* Logo Resizer Handle */
.logo-resizer {
    position: absolute;
    right: -5px;
    bottom: -5px;
    width: 15px;
    height: 15px;
    background: #3B82F6;
    border: 2px solid white;
    border-radius: 50%;
    cursor: se-resize;
    z-index: 20;
    display: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.is-editing .logo-wrapper {
    position: relative;
    display: inline-block;
    border: 1px dashed transparent;
}

.is-editing .logo-wrapper:hover {
    border-color: #3B82F6;
}

.is-editing .logo-wrapper:hover .logo-resizer,
.is-editing .logo-resizer.resizing {
    display: block;
}
