:root {
    --primary-green: #2D5A27;
    --primary-green-dark: #1F3E1B;
    --primary-green-light: #417A38;
    --accent-yellow: #E5A919;
    --background-light: #F8FAF7;
    --background-subtle: #EDF4EC;
    --text-primary: #1A2E17;
    --text-secondary: #4B5563;
    --border-color: #D1E2CF;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans KR', sans-serif;
    background-color: var(--background-light);
    color: var(--text-primary);
    font-weight: 400;
    line-height: 1.6;
    word-break: keep-all;
    overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 700;
    line-height: 1.25;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

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

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

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

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

#cookieConsentBanner {
    display: none;
}

#cookieConsentModal {
    display: none;
}

@media (max-width: 768px) {
    h1 {
        font-size: clamp(1.75rem, 5vw, 2.25rem);
    }

    h2 {
        font-size: clamp(1.5rem, 4vw, 1.875rem);
    }

    h3 {
        font-size: clamp(1.25rem, 3.5vw, 1.5rem);
    }

    h4,
    h5,
    h6 {
        font-size: clamp(1.1rem, 3vw, 1.25rem);
    }

    a[href^="mailto:"],
    a[href^="tel:"],
    .break-mobile-string {
        word-break: break-all;
        font-size: 0.95rem;
    }
}

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

html {
    scroll-behavior: smooth;
}

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

#hero h1,
#hero h2,
#hero h3 {
    hyphens: auto;
}

/* ===== tasks_navigation ===== */
#tasks {
    width: 100%;
}

#tasks .task-card-item {
    width: 100%;
    min-height: 220px;
    will-change: transform;
}

#tasks .task-card-item:hover {
    transform: translateY(-4px);
}

/* ===== catalog_grid ===== */
#catalog {
    overflow: hidden;
}

#catalog .product-card {
    min-height: 100%;
}

#catalog .js-variant-select {
    cursor: pointer;
}

#catalog .modal-dialog {
    -webkit-overflow-scrolling: touch;
}

/* ===== seasonal_guide ===== */
#seasonal {
    word-break: keep-all;
    hyphens: auto;
}

#seasonal h2,
#seasonal h3 {
    line-height: 1.25;
}

/* ===== tool_care_section ===== */
#tool-care {
    position: relative;
    background-color: var(--background-light);
    color: var(--text-primary);
    box-sizing: border-box;
}

#tool-care * {
    box-sizing: border-box;
    hyphens: auto;
}

/* ===== delivery_info ===== */
#delivery {
    overflow: hidden;
}

#delivery h2,
#delivery h3 {
    hyphens: auto;
}

/* ===== faq_section ===== */
#faq {
    hyphens: auto;
}

#faq .js-faq-content {
    will-change: max-height;
}

#faq .js-faq-item.is-active {
    border-color: #2D5A27;
}

#faq .js-faq-item.is-active .js-faq-icon {
    transform: rotate(180deg);
}

/* ===== contacts_feedback ===== */
#contacts {
    overflow: hidden;
    hyphens: auto;
}

#contacts input::placeholder,
#contacts textarea::placeholder {
    color: #9CA3AF;
}

#contacts select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232D5A27'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    appearance: none;
    padding-right: 2.5rem;
}

#contacts input:focus,
#contacts textarea:focus,
#contacts select:focus {
    box-shadow: 0 0 0 2px rgba(45, 90, 39, 0.15);
}

/* ===== footer ===== */
#footer {
    hyphens: auto;
}

#footer a {
    text-decoration: none;
}

#footer a:focus-visible {
    outline: 2px solid #E5A919;
    outline-offset: 2px;
}
/* Shared branding, navigation and accessible overlays. */
.site-icon { display: inline-block; width: 1em; height: 1em; flex-shrink: 0; vertical-align: -0.15em; }
.site-icon.hidden { display: none; }
.brand-logo { width: 40px; height: 40px; flex: 0 0 40px; object-fit: contain; }
a[class~="text-white"], a[class~="text-white"]:hover, a[class~="text-white"]:focus { color: #fff; }
a[class~="hover:text-white"]:hover, a[class~="hover:text-white"]:focus-visible { color: #fff; background-color: #2D5A27; }
button[class~="text-white"] { color: #fff; }
a:focus-visible, button:focus-visible { outline: 3px solid #E5A919; outline-offset: 3px; }
.js-mobile-menu-toggle { width: 44px; height: 44px; align-items: center; justify-content: center; flex-shrink: 0; }
.js-mobile-menu-toggle .site-icon { width: 26px; height: 26px; }
.mobile-nav-link { display: block; padding: 12px; border-radius: 6px; font-size: 15px; font-weight: 500; }
.mobile-nav-link:hover, .mobile-nav-link:focus-visible { background: #EDF4EC; color: #2D5A27; }
#mobile-menu.hidden { display: none; }
.js-detail-modal, .js-order-modal { z-index: 100; }
.js-detail-modal.hidden, .js-order-modal.hidden { display: none !important; }
.js-detail-modal:not(.hidden), .js-order-modal:not(.hidden) { display: flex; }
.modal-dialog { overscroll-behavior: contain; max-height: 90dvh; }
.modal-dialog h3 { padding-right: 40px; }
.js-close-detail.absolute, .js-close-order.absolute { background: #EDF4EC; border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; z-index: 2; }
.order-field-label { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 500; }
.order-total-label { display: flex; justify-content: space-between; gap: 12px; margin: 12px 0 0; font-size: 14px; color: #2D5A27; }
.policy-page { width: 100%; max-width: 1280px; margin: 0 auto; padding: 64px 32px; }
.policy-layout, .policy-content { width: 100%; max-width: none; margin: 0; padding: 0; min-height: 0; }
@media (max-width: 1023px) { .js-mobile-menu-toggle { display: inline-flex; } }
@media (min-width: 1024px) { .js-mobile-menu-toggle, #mobile-menu { display: none !important; } }
@media (max-width: 639px) {
    #header nav { gap: 10px; }
    #header nav > div:last-child { gap: 8px; }
    #header nav > div:last-child > a { display: none; }
    .brand-logo { width: 34px; height: 34px; flex-basis: 34px; }
    .policy-page { padding: 32px 16px; }
    .modal-dialog { padding: 24px 20px; }
    .modal-dialog input, .modal-dialog select { font-size: 16px; }
}

.order-cancel { display: block; width: 100%; padding: 12px; border: 1px solid #D1E2CF; border-radius: 8px; color: #2D5A27; font-size: 14px; }
.order-cancel:hover { background: #EDF4EC; }
