/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

/* Header Styles */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

/* Header Logo */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.logo img {
    height: 40px;
    width: auto;
    margin-right: 10px;
}

.logo span {
    display: block;
    font-size: 1.2rem;
    color: #333;
}

.logo:hover {
    color: #007bff;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #e74c3c;
}

.hamburger {
    display: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #2c3e50;
    margin: 5px 0;
    transition: 0.3s;
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        padding: 1rem 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: flex;
        flex-direction: column;
    }

    .nav-menu li {
        margin: 0;
        padding: 0.5rem 1rem;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .logo img {
        height: 35px;
    }
    
    .logo span {
        font-size: 1rem;
    }
}

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 8rem 0;
    margin-top: 60px;
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
}

.hero .container {
    text-align: left;
    padding: 2rem;
    max-width: 600px;
    margin: 0;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* About Section */
.about {
    padding: 4rem 0;
    text-align: center;
}

.about h2 {
    margin-bottom: 2rem;
    color: #2c3e50;
}

/* Featured Products */
.featured-products {
    padding: 4rem 0;
    background-color: #f9f9f9;
    position: relative;
}

.featured-products h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

/* Swiper Styles */
.swiper {
    width: 100%;
    padding: 2rem 0;
    position: relative;
    overflow: visible;
}

.swiper-wrapper {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
}

.swiper-button-prev,
.swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    z-index: 10;
    margin: 0 20px;
}

.swiper-button-prev {
    left: 0;
}

.swiper-button-next {
    right: 0;
}

.swiper-button-prev:after,
.swiper-button-next:after {
    font-size: 20px;
}

.product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-card h3 {
    padding: 1rem;
    text-align: center;
    color: #2c3e50;
    margin-top: auto;
    background-color: #fff;
    border-top: 1px solid #eee;
}

/* Timber Page Styles */
.timber-intro {
    padding: 6rem 0;
    flex: 1;
}

.search-filter {
    margin-bottom: 2rem;
}

.search-box {
    display: flex;
    margin-bottom: 1rem;
}

.search-box input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
}

.search-box button {
    padding: 0.8rem 1rem;
    background: #8B4513;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.category-btn {
    padding: 0.5rem 1rem;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn.active {
    background: #8B4513;
    color: white;
    border-color: #8B4513;
}

.category-btn:hover {
    background: #ddd;
}

.category-btn.active:hover {
    background: #6B3610;
}

/* Timber Grid Styles */
.timber-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.timber-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.timber-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.timber-item h3 {
    padding: 0.5rem;
    text-align: center;
    color: #2c3e50;
    margin: 0;
    background-color: #fff;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    line-height: 1.2;
}

/* Modern Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.prev-btn,
.next-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background-color: #f8f9fa;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.prev-btn:hover,
.next-btn:hover {
    background-color: #007bff;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.prev-btn:disabled,
.next-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #e9ecef;
}

.prev-btn:disabled:hover,
.next-btn:disabled:hover {
    transform: none;
    box-shadow: none;
    background-color: #e9ecef;
    color: #333;
}

.page-numbers {
    display: flex;
    gap: 0.5rem;
}

.page-numbers span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f8f9fa;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.page-numbers span:hover {
    background-color: #007bff;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.page-numbers span.active {
    background-color: #007bff;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Location Page Styles */
.location {
    padding: 4rem 0;
    text-align: center;
    margin-top: 80px;
}

.location h2 {
    margin-bottom: 2rem;
    color: #2c3e50;
}

.address-info {
    margin-bottom: 2rem;
}

.address-info p {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.address-info h3 {
    font-size: 1.1rem;
    color: #666;
    font-weight: normal;
}

.map-container {
    margin-top: 2rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.map {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.map:hover {
    transform: scale(1.02);
}

.map-link {
    display: inline-block;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease;
}

.map-link:hover {
    transform: scale(1.02);
}

.map-preview {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.map-text {
    display: block;
    margin-top: 1rem;
    font-size: 1.1rem;
    color: #666;
}

.map-text:hover {
    color: #333;
}

/* Footer Styles */
footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 2rem 0;
    margin-top: auto;
}

footer .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-info {
    flex: 1;
    min-width: 300px;
}

.footer-info h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #fff;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.footer-info p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.footer-info i {
    margin-right: 0.5rem;
    color: #3498db;
}

.bank-info {
    flex: 1;
    min-width: 300px;
}

.bank-info h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #fff;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.bank-info p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.bank-info i {
    margin-right: 0.5rem;
    color: #3498db;
}

.copyright {
    width: 100%;
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 2rem;
    }

    .timber-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .category-filter {
        justify-content: center;
    }

    .map {
        height: 300px;
    }

    .location {
        margin-top: 60px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 6rem 0;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .timber-grid {
        grid-template-columns: 1fr;
    }
}

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

.modal-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.modal-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

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

.close-modal:hover {
    color: #bbb;
}

/* Timber Item Styles */
.timber-item {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.timber-item:hover {
    transform: scale(1.02);
}

.vat-calculator {
    padding: 4rem 0;
    text-align: center;
    margin-top: 80px;
}

.vat-calculator h2 {
    margin-bottom: 2rem;
    color: #2c3e50;
}

.calculator-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.input-group {
    margin-bottom: 2rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1.1rem;
    text-align: right;
}

.result-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.result-item .label {
    color: #666;
}

.result-item .amount {
    font-weight: bold;
    color: #2c3e50;
    font-size: 1.2rem;
}

.result-item .unit {
    color: #666;
    margin-left: 0.5rem;
}

@media (max-width: 768px) {
    .vat-calculator {
        margin-top: 60px;
    }
    
    .calculator-form {
        padding: 1.5rem;
    }
} 