/*
Theme Name: KT Mega Theme
Description: Custom theme for KT Mega integrated site.
Author: KT Mega Dev
Version: 1.3
*/

/* Core Vars */
:root {
    --kt-red: #E60012;
    --kt-dark: #222222;
    --kt-gray: #f4f4f4;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background: #fff;
    color: #333;
    margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Utilities */
.kt-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.kt-btn {
    background: var(--kt-red);
    color: #fff;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.kt-btn:hover {
    background: #c4000f;
}

.kt-btn-secondary {
    background: var(--kt-dark);
}

/* Header */
header.site-header {
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
    position: relative;
    z-index: 1000;
    background: #fff;
}

/* Desktop Menu */
.kt-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.kt-nav-menu li {
    position: relative;
    margin-left: 20px;
}

.kt-nav-menu a {
    display: block;
    padding: 10px 0;
    font-weight: 500;
}

.kt-nav-menu a:hover {
    color: var(--kt-red);
}

/* Dropdown */
.kt-nav-menu ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: -15px;
    background: #fff;
    min-width: 160px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    border-radius: 4px;
    z-index: 1000;
}

.kt-nav-menu li:hover>ul.sub-menu {
    display: block;
}

.kt-nav-menu ul.sub-menu a {
    padding: 8px 15px;
    font-size: 0.9rem;
    color: #555;
}

.kt-nav-menu ul.sub-menu a:hover {
    background: #f9f9f9;
    color: var(--kt-red);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    border-radius: 2px;
}

/* Sticky Bottom Bar */
.sticky-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--kt-red);
    padding: 10px 0;
    z-index: 999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.sticky-bottom-bar .cta-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    width: 100%;
    cursor: pointer;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: 0.3s;
}

.mobile-nav-overlay.active {
    visibility: visible;
    opacity: 1;
}

.mobile-nav-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.mobile-nav-content {
    position: absolute;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: #fff;
    padding: 20px;
    transition: 0.3s;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.mobile-nav-overlay.active .mobile-nav-content {
    right: 0;
}

.mobile-nav-close {
    align-self: flex-end;
    font-size: 2rem;
    cursor: pointer;
    margin-bottom: 20px;
}

.mobile-branding {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

/* Mobile Menu List */
.kt-mobile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.kt-mobile-menu li {
    margin-bottom: 0;
    border-bottom: 1px solid #f9f9f9;
}

.kt-mobile-menu a {
    display: block;
    padding: 15px 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
}

.kt-mobile-menu .sub-menu {
    display: none;
    background: #f9f9f9;
    padding-left: 15px;
    list-style: none;
}

.kt-mobile-menu .sub-menu.open {
    display: block;
}

.kt-mobile-menu .sub-menu a {
    font-size: 0.95rem;
    color: #666;
    padding: 10px 0;
}

/* Forms */
.kt-form-group {
    margin-bottom: 15px;
}

.kt-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.kt-form-group input,
.kt-form-group select,
.kt-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Grid & Responsive */
.kt-store-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.store-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
    background: #fff;
}

.store-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.store-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.store-card .info {
    padding: 15px;
    text-align: center;
}

/* Modal Styles */
.kt-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.kt-modal-box {
    background: #fff;
    width: 90%;
    max-width: 500px;
    padding: 30px;
    border-radius: 8px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.kt-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

.kt-modal-close:hover {
    color: #333;
}

.service-card {
    border: 1px solid #eee;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    background: #f9f9f9;
}

/* Responsive Queries */
@media (max-width: 1024px) {
    .kt-store-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {

    /* Hide Desktop Nav */
    .site-navigation {
        display: none !important;
    }

    /* Show Mobile Toggle */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Show Sticky Bar */
    .sticky-bottom-bar {
        display: block;
    }

    /* Grid */
    .kt-store-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Spacing for Sticky Bar */
    body {
        padding-bottom: 60px;
    }
}

@media (max-width: 480px) {
    .kt-store-grid {
        grid-template-columns: 1fr;
    }
}