/*
Theme Name: Kordagraph Theme
Theme URI: https://kordagraph.de
Author: Sandor Zverescsukov
Author URI: https://kordagraph.de
Description: Custom premium theme for Kordagraph - Digital, Print, Textile.
Version: 1.0
Text Domain: kordagraph
*/

/* =========================================================================
   GLOBAL: Remove all rounded corners site-wide
   ========================================================================= */
*,
*::before,
*::after {
    border-radius: 0 !important;
}

/* Custom Logo from Customizer */
.custom-logo-link img,
.custom-logo {
    max-height: 40px;
    width: auto;
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('./fonts/outfit-400.ttf') format('truetype');
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('./fonts/outfit-700.ttf') format('truetype');
}

:root {
    --bg-color: #F7F7F7;
    --text-color: #484849;
    --primary-color: #1E2245;
    /* Dark Blue */
    --secondary-color: #AA8147;
    /* Gold */
    --tertiary-color: #AA8147;
    /* Gold */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(30, 34, 69, 0.1);
    --font-main: 'Outfit', Arial, Helvetica, sans-serif;
    --font-heading: 'Outfit', Arial, Helvetica, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 1rem;
    line-height: 1.7;
    overflow-x: hidden;
    padding-top: 80px;
    /* Prevent content hiding behind fixed header */
}

/* Headings: Clean hierarchy & vertical rhythm (Large Top Margin, Compact Bottom Margin) */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.35;
    margin-top: 1.8rem !important;
    margin-bottom: 0.5rem !important;
}

h1:first-child,
h2:first-child,
h3:first-child,
h4:first-child,
h5:first-child,
h6:first-child {
    margin-top: 0 !important;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
h5 { font-size: 1.05rem; }
h6 { font-size: 0.95rem; }

/* Paragraphs & Text (Balanced top & bottom margins for equal rhythm) */
p {
    margin-top: 0.6rem !important;
    margin-bottom: 0.6rem !important;
    line-height: 1.75 !important;
}

p:first-child {
    margin-top: 0 !important;
}

p:last-child {
    margin-bottom: 0 !important;
}

/* Lists & List Items (Fix squished list items & bullet alignment) */
ul, ol {
    margin-top: 0.6rem !important;
    margin-bottom: 1.25rem !important;
    padding-left: 1.5rem !important;
}

ul {
    list-style-type: disc;
}

ol {
    list-style-type: decimal;
}

li {
    margin-bottom: 0.45rem !important;
    line-height: 1.65 !important;
}

li:last-child {
    margin-bottom: 0 !important;
}

li > ul,
li > ol {
    margin-top: 0.4rem !important;
    margin-bottom: 0.4rem !important;
    padding-left: 1.25rem !important;
}

strong, b {
    font-weight: 700;
    color: var(--primary-color);
}

em, i {
    font-style: italic;
}

/* =========================================================================
   WOOCOMMERCE PRODUCT TABS & CONTENT TYPOGRAPHY OVERRIDES
   ========================================================================= */

.woocommerce div.product .woocommerce-tabs .panel,
.woocommerce-page div.product .woocommerce-tabs .panel,
.woocommerce-Tabs-panel,
.wc-tab,
.entry-content,
.page-content,
.post-content,
.site-main article,
.kordagraph-content,
.content-layer {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
}

/* Headings in WooCommerce Tabs & Page Content: 1.8rem top margin, 0.4rem bottom margin */
.woocommerce div.product .woocommerce-tabs .panel h1,
.woocommerce div.product .woocommerce-tabs .panel h2,
.woocommerce div.product .woocommerce-tabs .panel h3,
.woocommerce div.product .woocommerce-tabs .panel h4,
.woocommerce div.product .woocommerce-tabs .panel h5,
.woocommerce div.product .woocommerce-tabs .panel h6,
.woocommerce-Tabs-panel h1, .woocommerce-Tabs-panel h2, .woocommerce-Tabs-panel h3, .woocommerce-Tabs-panel h4, .woocommerce-Tabs-panel h5, .woocommerce-Tabs-panel h6,
.wc-tab h1, .wc-tab h2, .wc-tab h3, .wc-tab h4, .wc-tab h5, .wc-tab h6,
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4, .entry-content h5, .entry-content h6,
.page-content h1, .page-content h2, .page-content h3, .page-content h4, .page-content h5, .page-content h6 {
    margin-top: 1.8rem !important;
    margin-bottom: 0.4rem !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    color: var(--primary-color) !important;
}

/* Strong & Bold styling */
strong, b {
    font-weight: 700 !important;
    color: var(--primary-color);
}

/* Paragraphs stay normal font weight 400 */
p,
.entry-content p,
.page-content p,
.woocommerce-Tabs-panel p,
.wc-tab p {
    font-weight: 400 !important;
}

/* Standalone Paragraph Titles (where strong/b is the only text child in <p>) */
.woocommerce div.product .woocommerce-tabs .panel p:has(> strong:only-child),
.woocommerce div.product .woocommerce-tabs .panel p:has(> b:only-child),
.woocommerce-Tabs-panel p:has(> strong:only-child),
.woocommerce-Tabs-panel p:has(> b:only-child),
.wc-tab p:has(> strong:only-child),
.wc-tab p:has(> b:only-child),
.entry-content p:has(> strong:only-child),
.entry-content p:has(> b:only-child) {
    margin-top: 1.5rem !important;
    margin-bottom: 0.3rem !important;
}

/* First heading inside tab panel has 0 top margin */
.woocommerce div.product .woocommerce-tabs .panel h1:first-child,
.woocommerce div.product .woocommerce-tabs .panel h2:first-child,
.woocommerce div.product .woocommerce-tabs .panel h3:first-child,
.woocommerce div.product .woocommerce-tabs .panel h4:first-child,
.woocommerce-Tabs-panel h1:first-child,
.woocommerce-Tabs-panel h2:first-child,
.woocommerce-Tabs-panel h3:first-child,
.woocommerce-Tabs-panel h4:first-child,
.wc-tab h1:first-child,
.wc-tab h2:first-child,
.wc-tab h3:first-child,
.wc-tab h4:first-child,
.woocommerce div.product .woocommerce-tabs .panel p:first-child,
.woocommerce-Tabs-panel p:first-child,
.wc-tab p:first-child {
    margin-top: 0 !important;
}

.woocommerce div.product .woocommerce-tabs .panel p,
.woocommerce-Tabs-panel p,
.wc-tab p,
.entry-content p,
.page-content p {
    margin-top: 0.6rem !important;
    margin-bottom: 0.6rem !important;
    line-height: 1.75 !important;
}

.woocommerce div.product .woocommerce-tabs .panel ul,
.woocommerce div.product .woocommerce-tabs .panel ol,
.woocommerce-Tabs-panel ul,
.woocommerce-Tabs-panel ol,
.wc-tab ul,
.wc-tab ol,
.entry-content ul,
.entry-content ol {
    margin-top: 0.5rem !important;
    margin-bottom: 1.25rem !important;
    padding-left: 1.5rem !important;
}

.woocommerce div.product .woocommerce-tabs .panel ul li,
.woocommerce div.product .woocommerce-tabs .panel ol li,
.woocommerce-Tabs-panel ul li,
.woocommerce-Tabs-panel ol li,
.wc-tab ul li,
.wc-tab ol li,
.entry-content ul li,
.entry-content ol li {
    margin-bottom: 0.45rem !important;
    line-height: 1.65 !important;
}

.woocommerce div.product .woocommerce-tabs .panel ul li,
.woocommerce div.product .woocommerce-tabs .panel ol li,
.woocommerce-Tabs-panel ul li,
.woocommerce-Tabs-panel ol li,
.wc-tab ul li,
.wc-tab ol li,
.entry-content ul li,
.entry-content ol li {
    margin-bottom: 0.45rem !important;
    line-height: 1.65 !important;
}

/* TinyMCE & Classic Editor Body Alignment */
.mce-content-body {
    font-family: var(--font-main) !important;
    line-height: 1.75 !important;
    color: var(--text-color) !important;
    padding: 20px !important;
}

.mce-content-body p {
    margin-bottom: 1rem !important;
    line-height: 1.75 !important;
}

.mce-content-body h1, .mce-content-body h2, .mce-content-body h3, .mce-content-body h4 {
    margin-top: 1.8rem !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.35 !important;
}

.mce-content-body ul li, .mce-content-body ol li {
    margin-bottom: 0.45rem !important;
    line-height: 1.65 !important;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-bottom: none;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title a {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-navigation a {
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: #AA8147;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Glassmorphism Utility */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 0;
    padding: 2rem;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 5px 10px;
    background-color: #1E2245;
    color: #fff;
    border-radius: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #ffffff;
}

/* Mobile Menu Styles */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: var(--primary-color);
}

@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }

    .menu-toggle[aria-expanded="true"] .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle[aria-expanded="true"] .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .main-navigation {
        position: fixed;
        top: 80px;
        /* Header height */
        left: 0;
        width: 100%;
        background: #ffffff;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);

        /* Animation: Slide Down using Max-Height */
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.4s ease-in-out;
        z-index: 999;
        padding: 0;
        /* Important: hide padding when closed */
    }

    .main-navigation.toggled {
        max-height: 100vh;
        opacity: 1;
        padding: 20px;
    }

    .main-navigation ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .header-cta {
        display: none;
    }

    /* Show mobile menu icon in mobile view */
    .mobile-menu-icon {
        display: flex !important;
        justify-content: flex-end;
        width: 100%;
        margin-bottom: 20px;
        padding-right: 20px;
        gap: 20px;
    }
}

/* Custom Icon Styles */
.mobile-menu-icon {
    display: none;
}

.icon-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: #1E2245;
    /* цвет значка и текста */
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 10px;
}

.icon-link:hover {
    color: #AA8147;
    /* при наведении меняется и текст, и stroke у SVG */
}

.icon {
    display: block;
    /* чтобы не было странных отступов у svg */
}

/* Footer Link Hover */
.site-footer a:hover {
    color: #AA8147;
}

/* Social Media Icon Buttons Hover */
.site-footer .social-icon-btn,
.social-icon-btn {
    color: #ffffff !important;
}

.site-footer .social-icon-btn svg,
.social-icon-btn svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

.site-footer .social-icon-btn:hover,
.social-icon-btn:hover {
    background: #AA8147 !important;
    border-color: #FFE29A !important;
    color: #ffffff !important;
}

.site-footer .social-icon-btn:hover svg,
.social-icon-btn:hover svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

/* --- Lumise Plugin Overrides --- */
/* Lumise buttons in Shop / Product pages */
.lumise-button,
.lumise-button-customize,
#lumise-customize-button,
.woocommerce a.button.lumise-button,
.woocommerce button.button.lumise-button {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    border-radius: 0 !important;
    font-family: var(--font-main) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border: 2px solid var(--primary-color) !important;
    padding: 10px 20px !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
}

.lumise-button:hover,
.lumise-button-customize:hover,
#lumise-customize-button:hover,
.woocommerce a.button.lumise-button:hover,
.woocommerce button.button.lumise-button:hover {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    color: #ffffff !important;
}

/* WooCommerce Generic Buttons Overrides */
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    border-radius: 0 !important;
    font-family: var(--font-main) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border: 2px solid var(--primary-color) !important;
    padding: 10px 20px !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
}

.woocommerce button.button:hover,
.woocommerce a.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    color: #ffffff !important;
}

/* Hide Add to Cart button on Shop/Archive pages */
.woocommerce ul.products li.product .button.add_to_cart_button {
    display: none !important;
}

/* Header Cart Icon and Count */
.cart-icon-link {
    position: relative !important;
    display: inline-flex !important;
    align-items: center;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--secondary-color);
    /* Gold color */
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 0;
    padding: 0 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* --- Lumise "Edit Design" Button Fix (WooCommerce Block Cart) --- */
/* Beats Lumise's ".woocommerce a.lumise-edit-design" specificity */
body.woocommerce-cart .woocommerce a.lumise-edit-design,
body.woocommerce-page .woocommerce a.lumise-edit-design,
.wc-block-cart a.lumise-edit-design.button,
.wc-block-components-product-details a.lumise-edit-design {
    background-color: #1E2245 !important;
    background: #1E2245 !important;
    color: #ffffff !important;
    border: 2px solid #1E2245 !important;
    padding: 8px 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: inline-block !important;
    margin-top: 15px !important;
}

body.woocommerce-cart .woocommerce a.lumise-edit-design:hover,
body.woocommerce-page .woocommerce a.lumise-edit-design:hover,
.wc-block-cart a.lumise-edit-design.button:hover,
.wc-block-components-product-details a.lumise-edit-design:hover {
    background-color: #AA8147 !important;
    background: #AA8147 !important;
    border-color: #AA8147 !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

/* --- Force Quantity & Remove Link Visible (WooCommerce Block Cart) --- */
/* The Block Cart hides .wc-block-cart-item__quantity via inline display:none */
.wc-block-cart-item__quantity {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-top: 15px !important;
}

.wc-block-cart-item__remove-link {
    color: var(--primary-color) !important;
    text-decoration: underline !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 0.85rem !important;
    padding: 0 !important;
}

.wc-block-cart-item__remove-link:hover {
    color: #cc0000 !important;
}

/* =========================================================================
   WooCommerce My Account — Theme Styles
   ========================================================================= */

/* Account wrapper: sidebar + content */
.woocommerce-MyAccount-navigation,
.woocommerce-MyAccount-content {
    vertical-align: top;
}

.woocommerce-MyAccount-navigation {
    width: 25%;
    display: inline-block;
    vertical-align: top;
}

.woocommerce-MyAccount-content {
    width: 72%;
    display: inline-block;
    vertical-align: top;
}

/* Navigation list */
.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-MyAccount-navigation ul li {
    margin-bottom: 0;
}

.woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 10px 15px;
    color: var(--text-color);
    text-decoration: none;
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li a:hover {
    color: var(--primary-color);
    background: rgba(170, 129, 71, 0.12);
    font-weight: 600;
}

/* ---------- Address columns ---------- */
.woocommerce-Addresses {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.woocommerce-Addresses .woocommerce-Address {
    flex: 1 1 45%;
    min-width: 280px;
}

/* Address title row */
.woocommerce-Address-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.woocommerce-Address-title h3 {
    margin: 0;
    font-family: var(--font-main);
    font-weight: 700;
    color: var(--primary-color);
}

.woocommerce-Address-title a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.woocommerce-Address-title a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Address text */
.woocommerce-Addresses address {
    font-style: normal;
    line-height: 1.8;
    color: var(--text-color);
    font-family: var(--font-main);
}

/* ---------- Edit address form ---------- */
.woocommerce-EditAccountForm,
.woocommerce-address-fields {
    max-width: 800px;
}

.woocommerce-address-fields .form-row {
    margin-bottom: 1rem;
}

.woocommerce-address-fields label {
    display: block;
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
}

.woocommerce-address-fields input[type="text"],
.woocommerce-address-fields input[type="email"],
.woocommerce-address-fields input[type="tel"],
.woocommerce-address-fields select,
.woocommerce-EditAccountForm input[type="text"],
.woocommerce-EditAccountForm input[type="email"],
.woocommerce-EditAccountForm input[type="password"] {
    width: 100%;
    display: block;
    font-family: var(--font-main);
    font-size: 0.95rem;
    color: var(--text-color);
    background-color: var(--bg-color);
    border: 1.5px solid rgba(30, 34, 69, 0.2);
    padding: 10px 14px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    outline: none;
    box-sizing: border-box;
}

.woocommerce-address-fields input:focus,
.woocommerce-address-fields select:focus,
.woocommerce-EditAccountForm input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 34, 69, 0.12);
    background-color: #ffffff;
}

/* Two-column layout for address form on desktop */
@media (min-width: 768px) {
    .woocommerce-address-fields__field-wrapper {
        display: flex;
        flex-wrap: wrap;
        gap: 0 30px;
    }

    .woocommerce-address-fields__field-wrapper .form-row {
        flex: 0 0 calc(50% - 15px);
    }

    .woocommerce-address-fields__field-wrapper .form-row-wide {
        flex: 0 0 100%;
    }
}

/* Save button */
.woocommerce-address-fields button[type="submit"],
.woocommerce-EditAccountForm button[type="submit"] {
    display: inline-block;
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 12px 28px;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    margin-top: 1rem;
}

.woocommerce-address-fields button[type="submit"]:hover,
.woocommerce-EditAccountForm button[type="submit"]:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #ffffff;
}

/* ---------- WooCommerce Notices ---------- */
.woocommerce-info,
.woocommerce-message,
.woocommerce-error {
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--text-color);
    background-color: var(--bg-color);
    border: none;
    padding: 1.25rem 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

.woocommerce-info::before,
.woocommerce-message::before {
    position: static !important;
    float: none !important;
    display: inline-block !important;
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-right: 1rem;
    line-height: 1;
}

.woocommerce-error {
    color: #c0392b;
}

.woocommerce-info a.button,
.woocommerce-message a.button,
.woocommerce-MyAccount-content a.button,
.woocommerce a.button {
    display: inline-block;
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 24px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.woocommerce-info a.button:hover,
.woocommerce-message a.button:hover,
.woocommerce-MyAccount-content a.button:hover,
.woocommerce a.button:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #ffffff;
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {

    .woocommerce-MyAccount-navigation,
    .woocommerce-MyAccount-content {
        width: 100%;
        display: block;
    }

    .woocommerce-Addresses {
        flex-direction: column;
    }
}

/* =========================================================================
   CONTACT FORM 7 — Theme Styles
   ========================================================================= */

/* Wrapper: white card with soft shadow */
.wpcf7 {
    background: #ffffff;
    border: 1px solid rgba(30, 34, 69, 0.1);
    border-radius: 0;
    padding: 3rem;
    max-width: 100%;
    /* Stretch out the form */
    margin: 1rem auto;
    box-shadow: none;
}

@media (min-width: 768px) {
    .wpcf7 .wpcf7-form {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-column-gap: 40px;
        align-items: start;
    }

    /* Default: All standard input paragraphs stack in left column */
    .wpcf7 .wpcf7-form>p {
        grid-column: 1 / 2;
        margin-bottom: 1rem;
    }

    /* Right column textarea */
    .wpcf7 .wpcf7-form>p:has(textarea) {
        grid-column: 2 / 3;
        grid-row: 1 / 4;
        height: 100%;
        display: flex;
        flex-direction: column;
        margin-bottom: 0;
    }

    .wpcf7 .wpcf7-form>p:has(textarea) label {
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .wpcf7 .wpcf7-form>p:has(textarea) .wpcf7-form-control-wrap {
        flex-grow: 1;
        display: flex;
    }

    .wpcf7 .wpcf7-form>p:has(textarea) textarea {
        flex-grow: 1;
        min-height: 220px;
    }

    /* Submit button */
    .wpcf7 .wpcf7-form>p:has(input[type="submit"]) {
        grid-column: 1 / 2;
        grid-row: 4;
        margin-top: 15px;
        align-self: center;
        width: fit-content;
    }

    /* Recaptcha notice next to button */
    .wpcf7 .wpcf7-form>p.wpcf7-recaptcha-notice {
        grid-column: 1 / 3;
        grid-row: 4;
        margin-top: 15px;
        margin-left: 170px;
        align-self: center;
        font-size: 0.72rem;
        line-height: 1.4;
    }

    /* Response span full width below */
    .wpcf7 .wpcf7-response-output {
        grid-column: 1 / 3;
    }
}

/* Labels */
.wpcf7 label,
.wpcf7 .wpcf7-form p>label {
    display: block;
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
}

/* Input fields & textarea */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 input[type="date"],
.wpcf7 select,
.wpcf7 textarea {
    width: 100%;
    display: block;
    font-family: var(--font-main);
    font-size: 0.95rem;
    color: var(--text-color);
    background-color: var(--bg-color);
    border: 1.5px solid rgba(30, 34, 69, 0.2);
    border-radius: 0;
    padding: 10px 14px;
    margin-top: 0.25rem;
    margin-bottom: 1rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    outline: none;
    box-sizing: border-box;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 input[type="number"]:focus,
.wpcf7 input[type="date"]:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 34, 69, 0.12);
    background-color: #ffffff;
}

.wpcf7 textarea {
    min-height: 140px;
    resize: vertical;
}

/* Paragraph wrapper spacing */
.wpcf7 .wpcf7-form p {
    margin-bottom: 0;
}

/* Submit button — matches .btn */
.wpcf7 input[type="submit"],
.wpcf7 .wpcf7-submit {
    display: inline-block;
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 0;
    padding: 12px 28px;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    margin-top: 0.5rem;
}

.wpcf7 input[type="submit"]:hover,
.wpcf7 .wpcf7-submit:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #ffffff;
}

/* Validation: invalid field highlight */
.wpcf7 .wpcf7-not-valid {
    border-color: #c0392b !important;
    background-color: #fff5f5 !important;
}

/* Inline validation tip */
.wpcf7 .wpcf7-not-valid-tip {
    font-size: 0.78rem;
    color: #c0392b;
    display: block;
    margin-top: -0.75rem;
    margin-bottom: 0.75rem;
}

/* Response messages */
.wpcf7 .wpcf7-response-output {
    font-family: var(--font-main);
    font-size: 0.9rem;
    border-radius: 0;
    padding: 12px 16px;
    margin-top: 1rem;
    border: none;
}

/* Success */
.wpcf7 .wpcf7-mail-sent-ok {
    background-color: #eaf6ec;
    color: #1e6e35;
    border-left: 4px solid #27ae60;
}

/* Error / Spam */
.wpcf7 .wpcf7-mail-sent-ng,
.wpcf7 .wpcf7-spam-blocked,
.wpcf7 .wpcf7-validation-errors {
    background-color: #fdf0ef;
    color: #922b21;
    border-left: 4px solid #c0392b;
}

/* =========================================================================
   reCAPTCHA v3 — Hide floating badge (legal notice shown near form)
   ========================================================================= */
.grecaptcha-badge {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* reCAPTCHA legal notice under the submit button */
.wpcf7-recaptcha-notice {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.72rem;
    color: #888;
    line-height: 1.5;
}

.wpcf7-recaptcha-notice a {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* About & Services sections (Über Kordagraph & Das Kordagraph-Prinzip) white background like SHOP */
.about-section,
.services-section {
    background-color: #ffffff !important;
}

/* Shop Product Images — Whole & Centered (object-fit: contain) */
.product-image {
    background-color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.product-image img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center !important;
}

/* Shop Coming Soon Card Text Contrast */
.shop-coming-soon-card strong,
.shop-coming-soon-card b,
.coming-soon-intro strong,
.coming-soon-intro b {
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* =========================================================================
   PRICE LEGAL DISCLAIMERS & NOTICE UNDER PRICES (§ 19 UStG)
   ========================================================================= */

.woocommerce-price-suffix,
.price-suffix,
.wc-gzd-additional-info,
.wc-gzd-product-units,
.small-legal-info,
.price-legal-note,
.packages-disclaimer,
.packages-disclaimer p,
.price-disclaimer,
.tax-info,
.legal-price-info,
.price + small,
.price + span.woocommerce-price-suffix,
p.price + small,
div.price + small,
.woocommerce div.product p.price + small,
.woocommerce div.product span.price + small,
.woocommerce div.product p.price + span.woocommerce-price-suffix,
.woocommerce div.product .price-suffix,
.woocommerce ul.products li.product .price-suffix,
.woocommerce-variation-price + small,
.single-product .price + small,
.single-product .price + span {
    font-size: 0.8rem !important;
    font-style: italic !important;
    font-weight: 400 !important;
    color: #777777 !important;
    line-height: 1.45 !important;
    margin-top: 6px !important;
    display: block !important;
}

/* =========================================================================
   PRODUCT COLORS & SWATCHES STYLING
   ========================================================================= */

.kg-product-colors-container {
    margin-bottom: 20px !important;
    padding: 16px !important;
    background: #F8F9FA !important;
    border: 1px solid #E9ECEF !important;
    border-radius: 6px !important;
}

.kg-swatch-item:hover {
    transform: scale(1.08);
    border-color: #AA8147 !important;
}

.kg-swatch-item.active {
    border-color: #AA8147 !important;
    box-shadow: 0 0 0 2px #AA8147 !important;
}

#kg-color-select-dropdown:focus {
    border-color: #AA8147 !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(170, 129, 71, 0.2) !important;
}

/* =========================================================================
   SIZE CHART (GRÖSSENTABELLE) STYLING & MODAL
   ========================================================================= */

.kg-open-size-chart-btn:hover {
    color: var(--secondary-color, #AA8147) !important;
}

.kg-size-table-responsive {
    overflow-x: auto;
    margin: 15px 0 10px 0;
}

.kg-size-table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 0.92rem !important;
    text-align: center !important;
    background: #ffffff !important;
}

.kg-size-table th {
    background-color: #1E2245 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    padding: 12px 14px !important;
    border: 1px solid #1E2245 !important;
}

.kg-size-table td {
    padding: 10px 14px !important;
    border: 1px solid #E2E8F0 !important;
    color: #333333 !important;
}

.kg-size-table tbody tr:nth-child(even) {
    background-color: #F8F9FA !important;
}

.kg-size-guide-note {
    font-size: 0.78rem !important;
    color: #777777 !important;
    font-style: italic !important;
    margin-top: 8px !important;
    line-height: 1.4 !important;
}

/* =========================================================================
   WOOCOMMERCE: MY ACCOUNT & REGISTRATION STYLING
   ========================================================================= */
.woocommerce-account .woocommerce {
    max-width: 1050px;
    margin: 40px auto;
}

.woocommerce-account .u-columns,
.woocommerce-account .col2-set {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin: 30px 0;
}

.woocommerce-account .u-column1,
.woocommerce-account .u-column2,
.woocommerce-account .col-1,
.woocommerce-account .col-2 {
    flex: 1 1 420px;
    background: #ffffff;
    border: 1px solid #E2E8F0;
    padding: 35px 30px;
    box-shadow: 0 4px 20px rgba(30, 34, 69, 0.04);
}

.woocommerce-account h2 {
    color: #1E2245;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid #AA8147;
}

.woocommerce-account form.login,
.woocommerce-account form.register {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce-account .form-row input.input-text {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #CBD5E1;
    font-family: inherit;
    font-size: 0.95rem;
    color: #1E2245;
    background: #FAFAFA;
    transition: all 0.2s ease;
}

.woocommerce-account .form-row input.input-text:focus {
    border-color: #AA8147;
    outline: none;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(170, 129, 71, 0.15);
}

.woocommerce-account .woocommerce-Button,
.woocommerce-account button.button {
    background-color: #1E2245 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 14px 28px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.woocommerce-account .woocommerce-Button:hover,
.woocommerce-account button.button:hover {
    background-color: #AA8147 !important;
}

.woocommerce-account .woocommerce-LostPassword a {
    color: #AA8147;
    font-size: 0.88rem;
    text-decoration: underline;
}

/* =========================================================================
   WOOCOMMERCE: NOTICES & MESSAGES (FIX ICON OVERLAP WITH FLEXBOX)
   ========================================================================= */
.woocommerce-error,
.woocommerce-info,
.woocommerce-message,
.woocommerce .woocommerce-error,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-message,
ul.woocommerce-error,
div.woocommerce-message,
div.woocommerce-info {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 16px 24px !important;
    margin: 0 auto 30px auto !important;
    max-width: 1050px !important;
    background-color: #FFF5F5 !important;
    color: #B91C1C !important;
    border-left: 5px solid #EF4444 !important;
    border-top: none !important;
    border-right: 1px solid #FEE2E2 !important;
    border-bottom: 1px solid #FEE2E2 !important;
    border-radius: 4px !important;
    list-style: none !important;
    line-height: 1.5 !important;
    font-size: 0.95rem !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
}

.woocommerce-error::before,
.woocommerce-info::before,
.woocommerce-message::before,
.woocommerce .woocommerce-error::before,
.woocommerce .woocommerce-info::before,
.woocommerce .woocommerce-message::before,
ul.woocommerce-error::before {
    position: static !important;
    transform: none !important;
    font-size: 1.3rem !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    color: #EF4444 !important;
    display: inline-block !important;
}

.woocommerce-info,
.woocommerce .woocommerce-info {
    border-left-color: #AA8147 !important;
    background-color: #FDFBF7 !important;
    border-right-color: #F3EBDD !important;
    border-bottom-color: #F3EBDD !important;
    color: #1E2245 !important;
}

.woocommerce-info::before,
.woocommerce .woocommerce-info::before {
    color: #AA8147 !important;
}

.woocommerce-message,
.woocommerce .woocommerce-message {
    border-left-color: #10B981 !important;
    background-color: #F0FDF4 !important;
    border-right-color: #DCFCE7 !important;
    border-bottom-color: #DCFCE7 !important;
    color: #065F46 !important;
}

.woocommerce-message::before,
.woocommerce .woocommerce-message::before {
    color: #10B981 !important;
}

.woocommerce-error li,
.woocommerce-info li,
.woocommerce-message li,
.woocommerce .woocommerce-error li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    display: inline-block !important;
}

