:root {
    --main-background: #fdfbf7;
    --main-text: #2d2926;
    --secondary-background: #e9e4df;
    --secondary-text: #4a4a4a;
    --accent-color: #8c7355;
    --accent-text: #ffffff;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --transition-speed: 0.3s;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--main-background);
    color: var(--main-text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: inherit;
}

a,
a:hover,
a:focus {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed) ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
}

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

button {
    cursor: pointer;
    border: none;
    transition: all var(--transition-speed) ease;
}

#cookieConsentWrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: var(--main-background);
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    border-top: 1px solid var(--secondary-background);
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
}

.cookie-consent-text {
    font-size: 14px;
    color: var(--secondary-text);
    margin: 0;
}

.cookie-consent-actions {
    display: flex;
    gap: 0.75rem;
}

.cookie-consent-actions button,
.js-cookie-save-prefs {
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 600;
}

.js-cookie-accept-all {
    background-color: var(--accent-color);
    color: var(--accent-text);
}

.js-cookie-customize {
    background-color: var(--secondary-background);
    color: var(--main-text);
}

.cookie-consent-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.cookie-consent-modal-box {
    background: var(--main-background);
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 400px;
    width: 90%;
}

.cookie-consent-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    h1 {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

    h2 {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .cookie-consent-actions {
        flex-direction: column;
        width: 100%;
    }

    .cookie-consent-actions button {
        width: 100%;
    }
}

@media (min-width: 768px) {
    .cookie-consent-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* ===== header ===== */
.mobile-menu-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.mobile-menu-panel.open {
    max-height: 400px;
}

a:hover {
    color: var(--accent-color);
}

.btn:hover {
    filter: brightness(1.1);
}

/* ===== hero_section ===== */
#hero {
    min-height: 80vh;
    padding: 100px 0;
    background-color: var(--main-background);
    position: relative;
}

.hero-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.z-index-1 {
    z-index: 2;
}

.hero-headline {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    hyphens: auto;
}

.hero-subheadline {
    font-size: 1.25rem;
    line-height: 1.5;
    opacity: 0.9;
}

.hero-cta-btn {
    background-color: var(--accent-color);
    color: var(--accent-text);
    border: 2px solid var(--accent-color);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    border-radius: 4px;
}

.hero-cta-btn:hover {
    background-color: transparent;
    color: var(--accent-text);
    border-color: var(--accent-text);
    transform: translateY(-2px);
}

@media (max-width: 767px) {
    .hero-headline {
        font-size: 1.125rem !important;
        line-height: 1.2 !important;
    }

    .hero-subheadline {
        font-size: 0.875rem !important;
        line-height: 1.3 !important;
    }

    .hero-wrapper {
        min-height: 60vh;
        padding: 60px 0;
    }
}

/* ===== brand_benefits ===== */
#benefits {
    background-color: var(--main-background);
    padding: 80px 0;
    overflow: hidden;
}

.section-main-title {
    color: var(--main-text);
    font-weight: 700;
    margin-bottom: 16px;
    font-size: 2rem;
    hyphens: auto;
}

.section-main-subtitle {
    color: var(--secondary-text);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.5;
}

.benefit-card {
    background-color: var(--secondary-background);
    padding: 40px 30px;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.benefit-icon-wrapper {
    background-color: var(--accent-color);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
}

.benefit-icon {
    color: var(--accent-text);
    width: 24px;
    height: 24px;
}

.benefit-title {
    color: var(--main-text);
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 16px;
    line-height: 1.2;
}

.benefit-text {
    color: var(--secondary-text);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

@media (max-width: 767px) {
    #benefits {
        padding: 40px 0;
    }

    .section-main-title {
        font-size: 1rem;
        line-height: 1.2;
    }

    .section-main-subtitle {
        font-size: 0.875rem;
    }

    .benefit-card {
        padding: 24px;
    }

    .benefit-title {
        font-size: 0.875rem;
        line-height: 1.3;
    }

    .benefit-text {
        font-size: 0.875rem;
    }

    .benefit-icon-wrapper {
        width: 40px;
        height: 40px;
        margin-bottom: 16px;
    }
}

/* ===== product_showcase ===== */
#catalog .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

#catalog .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

#catalog .btn {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: opacity 0.3s ease;
}

#catalog .btn:hover {
    opacity: 0.9;
}

@media (max-width: 767px) {
    #catalog h2 {
        font-size: 1rem !important;
    }

    #catalog h3 {
        font-size: 0.875rem !important;
    }

    #catalog p,
    #catalog ul {
        font-size: 0.8rem !important;
    }
}

/* ===== material_guide ===== */
#materials {
    hyphens: auto;
}

.js-material-card:hover {
    transform: translateY(-8px);
}

@media (max-width: 767px) {
    .mobile-h2 {
        font-size: 1rem !important;
        line-height: 1.2 !important;
    }

    .mobile-h3 {
        font-size: 0.875rem !important;
        line-height: 1.2 !important;
    }

    #materials {
        padding: 40px 0 !important;
    }
}

/* ===== size_filter ===== */
#selection {
    hyphens: auto;
}

#selection .transition-dim {
    transition: opacity 0.4s ease, filter 0.4s ease, transform 0.4s ease;
}

#selection .form-range::-webkit-slider-runnable-track {
    background: #c9c0b6;
    height: 8px;
    border-radius: 4px;
}

#selection .form-range::-webkit-slider-thumb {
    background: var(--accent-color);
    border: none;
    width: 20px;
    height: 20px;
    margin-top: -6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#selection .form-range::-moz-range-thumb {
    background: var(--accent-color);
    border: none;
    width: 20px;
    height: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#selection .form-range::-moz-range-track {
    background: #c9c0b6;
    height: 8px;
    border-radius: 4px;
}

@media (max-width: 767px) {
    #selection h2 {
        font-size: 1.125rem !important;
    }

    #selection h3 {
        font-size: 0.875rem !important;
    }

    #selection p {
        font-size: 0.8rem !important;
    }
}

/* ===== expert_tips ===== */
#expert-tips {
    background-color: var(--main-background);
    overflow: hidden;
}

.expert-tip-item {
    transition: transform 0.2s ease-in-out;
}

.expert-tip-item:hover {
    transform: scale(1.01);
}

.js-share-btn:hover {
    filter: brightness(1.1);
}

@media (max-width: 767px) {
    #expert-tips {
        padding: 40px 0;
    }

    #expert-tips h2 {
        font-size: 1rem !important;
    }

    #expert-tips h3 {
        font-size: 0.875rem !important;
    }

    #expert-tips p {
        font-size: 0.85rem !important;
    }

    .expert-tip-item {
        padding: 1.5rem !important;
    }
}

/* ===== seasonal_gallery ===== */
#new-arrivals {
    hyphens: auto;
}

#new-arrivals h2 {
    line-height: 1.2;
}

#new-arrivals h3 {
    line-height: 1.3;
}

.js-card {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.js-card:hover {
    transform: translateY(-8px);
}

@media (max-width: 767.98px) {
    #new-arrivals h2 {
        font-size: 1rem !important;
    }

    #new-arrivals h3 {
        font-size: 0.875rem !important;
    }

    #new-arrivals .section-subtitle {
        font-size: 0.8rem !important;
    }
}

/* ===== top_hits ===== */
#hits .js-hit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

@media (max-width: 767.98px) {
    #hits h2 {
        font-size: 1rem !important;
        line-height: 1.2;
    }

    #hits h3 {
        font-size: 0.875rem !important;
        line-height: 1.2;
    }

    #hits {
        padding: 40px 0 !important;
    }

    #hits .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* ===== workflow_steps ===== */
#how-it-works .step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

#how-it-works .icon-wrapper svg {
    width: 32px;
    height: 32px;
    stroke: var(--accent-text);
}

@media (max-width: 767px) {
    #how-it-works h2 {
        font-size: 1rem !important;
        line-height: 1.2;
    }

    #how-it-works h3 {
        font-size: 0.875rem !important;
        line-height: 1.2;
    }

    #how-it-works p {
        font-size: 0.8rem !important;
    }

    #how-it-works .step-card {
        padding: 1.5rem !important;
    }
}

/* ===== customer_reviews ===== */
#testimonials {
    hyphens: auto;
}

#testimonials .js-testimonial-card {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

#testimonials .js-testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

@media (max-width: 767px) {
    #testimonials h2 {
        font-size: 1rem !important;
        line-height: 1.2;
    }

    #testimonials h3 {
        font-size: 0.875rem !important;
        line-height: 1.2;
    }

    #testimonials p {
        font-size: 0.85rem;
    }
}

/* ===== order_contact_section ===== */
#order-form .form-control:focus,
#order-form .form-select:focus {
    border-color: var(--accent-color);
    box-shadow: none;
    outline: none;
}

#order-form input::placeholder,
#order-form textarea::placeholder {
    color: var(--secondary-text);
    opacity: 0.6;
}

@media (max-width: 767px) {
    #order-form h2 {
        font-size: 1rem !important;
        line-height: 1.2;
    }

    #order-form h3 {
        font-size: 0.875rem !important;
        line-height: 1.2;
    }

    #order-form .form-label {
        font-size: 0.75rem;
    }

    #order-form .btn {
        font-size: 0.85rem;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}

/* ===== footer ===== */
#footer a:hover {
    color: var(--accent-color) !important;
    transition: color 0.3s ease;
}

#footer svg {
    display: block;
    width: 100%;
    height: 100%;
}

.js-footer-logo {
    transition: transform 0.3s ease;
}

.js-footer-logo:hover {
    transform: scale(1.05);
}