/* products.css */
:root {
    --main-green: #108845;
    --text-primary: #333;
    --border-color: #ddd;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body > [data-page="products"] {
    flex: 1;
    display: flex;
    flex-direction: column;
}

[data-page="products"] .product-images {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    background: #fff;
}

[data-page="products"] .product-images img {
    flex: 1;
    height: 140px;
    object-fit: contain;
}

[data-page="products"] .green-banner {
    background: #51A447;
    color: white;
    padding: 15px 0;
    text-align: center;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}


[data-page="products"] .breadcrumb {
    padding: 10px 0px;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
}

[data-page="products"] .breadcrumb a {
    color: #0000EE;
    text-decoration: none;
}

[data-page="products"] #breadcrumbPath {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

[data-page="products"] #breadcrumbPath span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

[data-page="products"] .header {
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

[data-page="products"] .header h1 {
    font-size: 32px;
    margin: 0;
}

[data-page="products"] .quality-value {
    font-size: 18px;
    margin: 0;
}

[data-page="products"] .categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 20px;
}

[data-page="products"] .category-item {
    display: flex;
    flex-direction: column;
}

[data-page="products"] .category-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #0f0f0f;
    font-size: 18px;
    background-color: #f5f5f5;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

[data-page="products"] .category-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

[data-page="products"] .category-link .category-name {
    text-align: center;
    line-height: 1.4;
    margin-top: 8px;
}

[data-page="products"] .category-icon {
    width: 120px;
    height: 120px;
    object-fit: contain;
    flex-shrink: 0;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 10px;
    box-sizing: border-box;
}

[data-page="products"] .category-icon.no-image {
    background-color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    box-sizing: border-box;
}

[data-page="products"] .category-column a {
    color: #0f0f0f;
    text-decoration: none;
    font-size: 20px;
} 

/* 빈 상태 메시지 스타일 */
[data-page="products"] .no-items {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 18px;
    background-color: #f9f9f9;
    border: 2px dashed #ddd;
    border-radius: 12px;
    margin: 20px 0;
}

[data-page="products"] #productsContent .no-items {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 18px;
    background-color: #f9f9f9;
    border: 2px dashed #ddd;
    border-radius: 12px;
    margin: 20px 0;
}

/* 컨테이너 */
[data-page="products"].container {
    width: 100%;
    margin: 0 auto;
    padding: 20px;
}

/* 로딩 화면 */
[data-page="products"] .loading-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    gap: 20px;
}

[data-page="products"] .loading-spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--main-green);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

/* Footer Styles */
.main-footer {
    background-color: #333;
    color: #fff;
    padding: 40px 20px 20px;
    margin-top: 60px;
    border-top: 3px solid #006600;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: bold;
}

.footer-section p {
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #ccc;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: #006600;
    text-decoration: underline;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid #555;
    text-align: center;
}

.footer-bottom p {
    color: #999;
    font-size: 12px;
    margin: 0;
}

/* 반응형: 작은 화면에서 풋터 조정 */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .footer-section h4 {
        font-size: 16px;
    }
    
    .footer-section p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .main-footer {
        padding: 30px 15px 15px;
    }
}
