:root {
    --primary-color: #BE123C;
    --primary-hover: #9F1239;
    --accent-color: #E11D48;
    --background-primary: #FFFFFF;
    --background-secondary: #FFF1F2;
    --background-card: #FFFFFF;
    --text-primary: #1E1B1D;
    --text-secondary: #64585E;
    --border-color: #FFE4E6;
    --border-subtle: #F3F4F6;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Noto Sans KR', sans-serif;
    background-color: var(--background-primary);
    color: var(--text-primary);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans KR', sans-serif;
    background-color: var(--background-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 700;
    line-height: 1.25;
    margin-top: 0;
}

a,
a:hover,
a:focus {
    text-decoration: none;
}

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

ul,
ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

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

:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    h1 {
        font-size: clamp(1.75rem, 6vw, 2.25rem);
        word-break: keep-all;
    }

    h2 {
        font-size: clamp(1.5rem, 5vw, 1.875rem);
        word-break: keep-all;
    }

    h3 {
        font-size: clamp(1.25rem, 4vw, 1.5rem);
        word-break: keep-all;
    }

    h4,
    h5,
    h6 {
        font-size: 1.125rem;
        word-break: keep-all;
    }

    a,
    p,
    span {
        overflow-wrap: break-word;
        word-break: break-word;
    }
}

/* ===== header ===== */
header#header {
    overflow: visible;
}

html {
    scroll-behavior: smooth;
}

/* ===== hero ===== */
#hero {
    overflow: hidden;
}

#hero h1,
#hero p,
#hero span,
#hero a {
    hyphens: auto;
}

/* ===== shop-by-style ===== */
#shop-by-style {
    overflow: hidden;
}

#shop-by-style h2,
#shop-by-style h3 {
    hyphens: auto;
}

#shop-by-style .js-style-btn:hover i {
    transform: translateX(3px);
    transition: transform 0.2s ease;
}

/* ===== product-catalog ===== */
#product-catalog {
    overflow: hidden;
}

#product-catalog h2,
#product-catalog h3 {
    hyphens: auto;
    line-height: 1.2;
}

@media (max-width: 767px) {
    #product-catalog h2 {
        font-size: 16px;
        line-height: 1.25;
    }

    #product-catalog h3 {
        font-size: 14px;
        line-height: 1.25;
    }
}

/* ===== color-stories ===== */
#color-stories {
    overflow: hidden;
}

#color-stories h2 {
    hyphens: auto;
}

#color-stories h3 {
    hyphens: auto;
}

/* ===== wardrobe-essentials ===== */
#wardrobe-essentials {
    hyphens: auto;
}

#wardrobe-essentials .active-item {
    border-color: #BE123C;
    background-color: #FFF8F8;
    box-shadow: 0 4px 12px rgba(190, 18, 60, 0.08);
}

/* ===== fabric-guide ===== */
#fabric-guide {
    overflow: hidden;
    hyphens: auto;
}

#fabric-guide .js-modal:not(.hidden) {
    display: flex;
}

/* ===== mix-match ===== */
#mix-match {
    overflow: hidden;
}

#mix-match button:focus {
    outline: none;
}

#mix-match .js-option {
    cursor: pointer;
}

/* ===== clothing-care ===== */
#clothing-care {
    overflow: hidden;
}

#clothing-care .js-modal.hidden {
    display: none;
}

#clothing-care .js-modal:not(.hidden) {
    display: flex;
}

/* ===== order-form ===== */
#order-form input::placeholder,
#order-form textarea::placeholder {
    color: #9ca3af;
}

#order-form {
    hyphens: auto;
}

/* ===== footer ===== */
#footer {
    background-color: #1A1618;
    color: #F9FAFB;
    overflow: hidden;
}

#footer a {
    text-decoration: none;
}

#footer a:focus-visible {
    outline: 2px solid #E11D48;
    outline-offset: 2px;
}