/*
Theme Name: Software Codes
Description: Kadence WooCommerce child theme for software-codes.de.
Author: Software Codes
Template: kadence
Version: 1.0.0
Text Domain: software-codes
*/

.header-cart-total {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.4em;
    padding: 0 0.45em;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1.1em;
    line-height: 1.4;
}

.header-cart-total.header-cart-is-empty-false {
    background-color: #dc2626 !important;
    color: #ffffff !important;
    border-color: #dc2626 !important;
}

#main-header {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.wc-block-components-product-metadata__description {
    display: none !important;
}

#main-header .site-header-row-container-inner {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

#main-header img.custom-logo {
    max-height: 48px !important;
    width: auto !important;
    height: auto !important;
}

.primary-menu-container .menu-item > a {
    font-weight: 600;
}

.sc-header-bar {
    background: #f3f4f6;
    color: #1f2937;
    padding: 0.6rem 1.5rem;
}

.sc-header-bar-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    align-items: center;
}

.sc-header-bar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.sc-redbar-icon {
    width: 42px;
    height: 42px;
    border: 2px solid #e74c3c;
    border-radius: 50%;
    color: #e74c3c;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sc-redbar-icon svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.5;
}

.sc-redbar-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    min-width: 0;
}

.sc-redbar-text strong {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #1f2937;
}

.sc-redbar-text span {
    font-size: 0.8rem;
    color: #6b7280;
}

@media (max-width: 1024px) {
    .sc-header-bar-inner {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 0.75rem;
    }
}

@media (max-width: 767.98px) {
    .sc-header-bar {
        display: none;
    }
}

.sc-trust-bar {
    background: #fff;
    padding: 1.5rem 1.5rem;
    border-top: 1px solid #f3f4f6;
}

.sc-trust-bar-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.sc-trust-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 1.25rem;
    border-right: 1px solid #f3f4f6;
}

.sc-trust-item:last-child {
    border-right: none;
}

.sc-trust-icon {
    width: 38px;
    height: 38px;
    color: #e74c3c;
    flex-shrink: 0;
}

.sc-trust-text {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
    min-width: 0;
}

.sc-trust-text strong {
    color: #1f2937;
    font-weight: 700;
    font-size: 0.95rem;
}

.sc-trust-text span {
    color: #6b7280;
    font-size: 0.825rem;
}

@media (max-width: 1024px) {
    .sc-trust-bar-inner {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 1.75rem;
    }
    .sc-trust-item {
        border-right: none;
        padding: 0 0.75rem;
    }
}

@media (max-width: 767.98px) {
    .sc-trust-bar {
        display: none;
    }
}

.sc-footer {
    background: #f3f4f6;
    color: #1f2937;
    padding: 2rem 1.25rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.95rem;
    line-height: 1.6;
}

.sc-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.sc-footer-logo {
    display: block;
    max-width: 220px;
    width: 100%;
    height: auto;
    margin: 0 0 1rem;
}

.sc-footer-heading,
.sc-footer summary {
    font-weight: 700;
    font-size: 1.05rem;
    margin: 0;
    padding: 1rem 0;
    color: inherit;
}

.sc-footer summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sc-footer summary::-webkit-details-marker {
    display: none;
}

.sc-footer summary::after {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.sc-footer details[open] summary::after {
    transform: rotate(-135deg);
}

.sc-footer-section,
.sc-footer-col-contact,
.sc-footer-col-newsletter {
    border-bottom: 1px solid #e5e7eb;
}

.sc-footer-body {
    padding: 0 0 1rem;
    margin: 0;
}

.sc-footer-body p {
    margin: 0 0 0.5rem;
}

.sc-footer-body ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sc-footer-body li {
    margin: 0 0 0.5rem;
}

.sc-footer-body a {
    color: inherit;
    text-decoration: none;
}

.sc-footer-body a:hover {
    text-decoration: underline;
}

.sc-newsletter-form {
    display: flex;
    margin: 0.25rem 0 0.75rem;
}

.sc-newsletter-form input[type="email"] {
    flex: 1;
    min-width: 0;
    border: 1px solid #d1d5db;
    border-right: none;
    border-radius: 4px 0 0 4px;
    padding: 0.625rem 0.75rem;
    background: #ffffff;
    color: #1f2937;
    font-size: 0.9rem;
}

.sc-newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: #6b7280;
}

.sc-newsletter-form button {
    border: 1px solid #d1d5db;
    border-radius: 0 4px 4px 0;
    background: #ffffff;
    color: #1f2937;
    padding: 0 0.875rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sc-newsletter-form button:hover {
    background: #f3f4f6;
}

.sc-newsletter-consent {
    margin: 0;
    font-size: 0.8rem;
    color: #6b7280;
}

.sc-newsletter-consent a {
    color: inherit;
    text-decoration: underline;
}

@media (min-width: 768px) {
    .sc-footer {
        padding: 3rem 1.25rem 2rem;
    }

    .sc-footer-inner {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 2rem 2.5rem;
    }

    .sc-footer-section,
    .sc-footer-col-contact,
    .sc-footer-col-newsletter {
        border-bottom: none;
    }

    .sc-footer details > .sc-footer-body {
        display: block !important;
        content-visibility: visible !important;
    }

    .sc-footer summary,
    .sc-footer-heading {
        cursor: default;
        padding: 0 0 1rem;
    }

    .sc-footer summary {
        pointer-events: none;
    }

    .sc-footer summary::after {
        display: none;
    }
}

.kadence-breadcrumbs {
    font-size: 0.85rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f3f4f6;
}

.kadence-breadcrumbs a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.15s ease;
}

.kadence-breadcrumbs a:hover {
    color: #e74c3c;
}

.kadence-breadcrumbs a:hover span {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.kadence-breadcrumbs .bc-delimiter {
    font-size: 0;
    color: #d1d5db;
    margin: 0 0.35rem;
}

.kadence-breadcrumbs .bc-delimiter::before {
    content: "›";
    font-size: 1rem;
    font-weight: 400;
    line-height: 1;
}

.kadence-breadcrumbs .kadence-bread-current {
    color: #1f2937;
    font-weight: 500;
}


.primary-menu-container .menu-item a[href*="/product-category/office-2024/"] {
    background: #fff;
    color: #000;
    padding: 0.4rem 0.95rem;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
}

.primary-menu-container .menu-item a[href*="/product-category/office-2024/"]:hover,
.primary-menu-container .menu-item a[href*="/product-category/office-2024/"]:focus,
.primary-menu-container .menu-item.current-menu-item a[href*="/product-category/office-2024/"] {
    background: #f3f4f6;
    color: #000;
    border-color: #d1d5db;
}

.primary-menu-container .sub-menu,
.primary-menu-container ul.sub-menu,
.header-navigation .header-menu-container ul ul {
    background: #fff !important;
    border: 1px solid #e5e7eb;
}

.primary-menu-container .sub-menu .menu-item > a,
.primary-menu-container .sub-menu .menu-item a,
.header-navigation .header-menu-container ul ul li.menu-item > a {
    color: #000 !important;
    background: #fff !important;
    font-size: 1rem !important;
    transition: text-decoration 0.15s ease;
}

.primary-menu-container .sub-menu .menu-item > a:hover,
.primary-menu-container .sub-menu .menu-item > a:focus,
.primary-menu-container .sub-menu .menu-item.current-menu-item > a,
.header-navigation .header-menu-container ul ul li.menu-item > a:hover,
.header-navigation .header-menu-container ul ul li.menu-item > a:focus,
.header-navigation .header-menu-container ul ul li.menu-item.current-menu-item > a {
    color: #000 !important;
    background: #fff !important;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1.5px;
}
