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

html, body {
    height: 100%;
    font-family: 'Noto Sans KR', 'Outfit', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, li {
    list-style: none;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* Layout */
#wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Top Header */
#top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 30px 40px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    background: transparent;
}

#top.maintop {
    background: transparent;
}

.toplogo {
    text-align: left;
}

.toplogo a {
    display: block;
    mix-blend-mode: difference;
}

.toplogo img {
    height: 24px;
    width: auto;
    filter: invert(1);
}

/* Toggle Bar (Hamburger Menu) */
#togglebar {
    position: fixed;
    top: 30px;
    right: 40px;
    z-index: 200;
    cursor: pointer;
    mix-blend-mode: difference;
}

#toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
}

.togglebar {
    width: 28px;
    height: 1px;
    background: #fff;
    transition: all 0.3s ease;
}

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

#toggle.active .togglebar:nth-child(2) {
    opacity: 0;
}

#toggle.active .togglebar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Full Menu (Slide Out) */
#fullmenu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: #fff;
    z-index: 150;
    transition: right 0.4s ease;
    overflow-y: auto;
}

#fullmenu.open {
    right: 0;
}

#slidemenu {
    padding: 80px 40px 40px;
}

.slidemenucontainer {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.slidemenu {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.slidemenu .nonac a,
.slidemenu .mmenu a {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 1px;
    display: block;
    padding: 10px 0;
}

.slidemenu .nonac a:hover,
.slidemenu .mmenu a:hover {
    color: #888;
}

/* Accordion Menu */
.ac {
    border-bottom: none;
}

.ac-header {
    margin: 0;
}

.ac-trigger {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 1px;
    padding: 10px 0;
    width: 100%;
    text-align: left;
    position: relative;
}

.ac-trigger::after {
    content: '+';
    position: absolute;
    right: 0;
    font-weight: 300;
    font-size: 20px;
}

.ac.is-active .ac-trigger::after {
    content: '-';
}

.ac-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.ac.is-active .ac-panel {
    max-height: 500px;
}

.ac-panel ul {
    padding: 10px 0 10px 20px;
}

.ac-panel li {
    padding: 8px 0;
}

.ac-panel a {
    font-size: 14px;
    color: #666;
}

.ac-panel a:hover {
    color: #000;
}

.menulist ul {
    padding: 10px 0 10px 20px;
}

.menulist li {
    padding: 8px 0;
}

.menulist a {
    font-size: 14px;
    color: #666;
}

/* Search Bar */
.search-bar {
    padding: 15px 0 15px 20px;
}

.search-inner {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-input input {
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 8px 0;
    font-size: 14px;
    width: 200px;
    outline: none;
}

.search-button a {
    font-size: 12px;
    color: #888;
    cursor: pointer;
}

/* Logs (Account Links) */
.logs {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.logs ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.logs a {
    font-size: 13px;
    color: #888;
}

.logs a:hover {
    color: #000;
}

/* Main Menu (Desktop) */
#mainmenu {
    position: fixed;
    top: 50%;
    left: 30px;
    transform: translateY(-50%);
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#mainmenu div a {
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    writing-mode: vertical-lr;
    display: block;
    padding: 5px;
}

#mainmenu div a:hover {
    color: #888;
}

#mainmenu .shopmenu {
    display: none;
}

#mainmenu .shopmenu:first-child {
    display: block;
}

/* Contents Wrap */
#contentsWrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Main Intro (Slider) */
.mainintro {
    display: flex;
    gap: 0;
    width: 100%;
    max-width: 100%;
    height: 100vh;
}

.mainintro .swiper {
    flex: 1;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.mainintro .swiper-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mainintro .swiper-slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mainintro .swiper-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.mainintro .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Bottom Bar */
#bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 30px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    pointer-events: none;
}

#bottom > * {
    pointer-events: auto;
}

#copyinfoLayer {
    font-size: 11px;
    letter-spacing: 2px;
    color: #fff;
    cursor: pointer;
    mix-blend-mode: difference;
    text-transform: uppercase;
}

#copyinfoLayer:hover {
    opacity: 0.7;
}

#copyinfoWrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #000;
    padding: 30px 40px 60px;
    font-size: 11px;
    line-height: 2.2;
    z-index: 99;
    text-align: center;
    color: #888;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

#copyinfoWrapper.open {
    transform: translateY(0);
}

#copyinfoWrapper span {
    margin: 0 12px;
    color: #444;
}

#copyinfoWrapper a {
    color: #888;
}

#copyinfoWrapper a:hover {
    color: #fff;
}

/* Icons */
#instagram-icon,
#cart-icon {
    position: fixed;
    bottom: 30px;
    z-index: 100;
    mix-blend-mode: difference;
}

#instagram-icon {
    right: 80px;
}

#cart-icon {
    right: 40px;
}

#instagram-icon a,
#cart-icon a {
    display: block;
}

#instagram-icon svg,
#cart-icon svg {
    width: 22px;
    height: 22px;
    stroke: #fff;
    stroke-width: 1.5;
}

#instagram-icon:hover svg,
#cart-icon:hover svg {
    opacity: 0.7;
}

/* Overlay */
#wrap_dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 140;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#wrap_dialog.open {
    opacity: 1;
    visibility: visible;
}

/* Brand Page */
.brand-content {
    padding: 120px 50px 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.brand-content h1 {
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 40px;
    letter-spacing: 2px;
}

.brand-image {
    width: 100%;
    max-width: 600px;
    margin-bottom: 40px;
}

.brand-image img {
    width: 100%;
    height: auto;
}

.brand-text {
    max-width: 600px;
}

.brand-text h2 {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 20px;
    font-family: 'Outfit', sans-serif;
}

.brand-text p {
    font-size: 14px;
    line-height: 2;
    color: #666;
    margin-bottom: 20px;
}

/* Shop Page */
.shop-content {
    padding: 120px 50px 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.shop-header {
    margin-bottom: 40px;
}

.shop-header h1 {
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.shop-categories {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.shop-categories a {
    font-size: 13px;
    padding: 10px 20px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.shop-categories a:hover,
.shop-categories a.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-item {
    text-align: center;
}

.product-item .product-image {
    width: 100%;
    aspect-ratio: 3/4;
    background: #f5f5f5;
    margin-bottom: 15px;
    overflow: hidden;
}

.product-item .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-item:hover .product-image img {
    transform: scale(1.05);
}

.product-item .product-name {
    font-size: 14px;
    margin-bottom: 5px;
}

.product-item .product-price {
    font-size: 13px;
    color: #888;
}

/* Archive Page */
.archive-content {
    padding: 120px 50px 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.archive-header h1 {
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 40px;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.archive-item {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
}

.archive-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.archive-item:hover img {
    transform: scale(1.05);
}

/* Community Pages */
.community-content {
    padding: 120px 50px 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.community-header h1 {
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 40px;
}

.board-list {
    border-top: 2px solid #000;
}

.board-item {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.board-item a {
    font-size: 14px;
}

.board-item a:hover {
    color: #888;
}

.board-item .date {
    font-size: 12px;
    color: #888;
}

/* Page Info */
.page-info {
    padding: 120px 50px 50px;
    max-width: 800px;
    margin: 0 auto;
}

.page-info h1 {
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 40px;
}

.page-info p {
    font-size: 14px;
    line-height: 2;
    color: #666;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 1024px) {
    #mainmenu {
        display: none;
    }

    #contentsWrap {
        padding: 0;
    }

    .mainintro {
        flex-direction: column;
        height: 100vh;
    }

    .mainintro .swiper {
        height: 50vh;
        overflow: hidden;
    }
}

@media (max-width: 768px) {
    #top {
        padding: 20px;
    }

    #togglebar {
        right: 20px;
        top: 20px;
    }

    #bottom {
        padding: 20px;
    }

    #instagram-icon {
        right: 60px;
        bottom: 20px;
    }

    #cart-icon {
        right: 20px;
        bottom: 20px;
    }

    .toplogo img {
        height: 20px;
    }

    #contentsWrap {
        padding: 0;
    }

    .mainintro .swiper {
        height: 50vh;
        overflow: hidden;
    }

    .brand-content,
    .shop-content,
    .archive-content,
    .community-content,
    .page-info {
        padding: 100px 20px 30px;
    }
}

/* Animation */
[data-aos="fade"] {
    opacity: 0;
    transition: opacity 0.8s ease;
}

[data-aos="fade"].aos-animate {
    opacity: 1;
}
