/*
Theme Name: Corgeut Adaptive Theme
Theme URI: https://example.com/corgeut
Author: Codex
Author URI: https://example.com
Description: Converted adaptive HTML pages into a WordPress theme with granular section controls.
Version: 1.0.4
Text Domain: corgeut
*/

.corgeut-page-sections {
    display: block;
}

[data-corgeut-section] {
    --corgeut-text-color: inherit;
    --corgeut-text-size: inherit;
}

[data-corgeut-section] :is(h1, h2, h3, h4, h5, h6, p, li, span, a, small, em, strong) {
    color: var(--corgeut-text-color, inherit) !important;
    font-size: var(--corgeut-text-size, inherit) !important;
}

.logo-text,
.m-top-logo-text {
    display: none !important;
}

header .header-wrapper .logo-text {
    display: none !important;
}

.nav-menu .menu-item {
    position: relative;
}

.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    padding: 8px 0;
    display: none;
    z-index: 1000;
}

.nav-menu .menu-item:hover > .sub-menu {
    display: block;
}

.nav-menu .sub-menu li {
    padding: 6px 14px;
    white-space: nowrap;
}

.nav-menu .sub-menu li a {
    display: block;
    font-size: 12px;
    color: #333;
}

.nav-menu .sub-menu li a:hover {
    color: #eab760;
}

.corgeut-auto-top-banner {
    background: #232f3e;
    color: #fff;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    padding: 8px 16px;
}

.corgeut-auto-top-banner .corgeut-top-banner-link {
    color: inherit;
}

header > .container,
.download-site-header > .container {
    width: min(1520px, calc(100vw - 32px)) !important;
    max-width: min(1520px, calc(100vw - 32px)) !important;
    padding-inline: 20px !important;
}

.header-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 18px !important;
}

.corgeut-primary-nav {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    justify-content: center;
}

header .logo-section {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    cursor: pointer !important;
}

header .header-wrapper .logo-icon {
    width: 120px !important;
    height: 36px !important;
    margin-bottom: 4px !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    clip-path: none !important;
}

header .nav-menu {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 18px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #333 !important;
    min-width: 0 !important;
}

header .nav-menu > li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

header .nav-menu .menu-item {
    min-width: 0 !important;
}

header .nav-menu .menu-item > a,
header .nav-menu .nav-item {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 5px 0 !important;
    color: inherit !important;
    white-space: nowrap !important;
    line-height: 1.1 !important;
    transition: color 0.2s ease !important;
}

header .nav-menu .menu-item > a::after,
header .nav-menu .nav-item::after {
    display: none !important;
}

header .nav-menu .menu-item > a:hover,
header .nav-menu .nav-item:hover {
    color: #eab760 !important;
    transform: none !important;
}

header .nav-menu .arrow-down-icon {
    width: 10px !important;
    height: 10px !important;
    stroke-width: 3 !important;
}

header .nav-menu .menu-item > a:hover .arrow-down-icon,
header .nav-menu .nav-item:hover .arrow-down-icon {
    transform: none !important;
    stroke: currentColor !important;
}

.header-tools,
.m-right-icons {
    gap: 12px;
}

.header-tools {
    display: flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    min-width: 0 !important;
}

.search-bar {
    background-color: #dcdcdc !important;
    border-radius: 20px !important;
    padding: 5px 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 126px !important;
    border: 1px solid transparent !important;
    box-shadow: none !important;
}

.header-tools:focus-within .search-bar {
    width: 126px !important;
    background-color: #dcdcdc !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.tool-icons {
    display: flex !important;
    align-items: center !important;
    gap: 18px !important;
    cursor: pointer !important;
}

.tool-icons a:hover svg,
.tool-icons span:hover svg {
    transform: none !important;
    stroke: #eab760 !important;
}

.mobile-header-logo-top {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0 5px;
    background: #fff;
}

.mobile-header-container {
    background: #fff !important;
    padding: 10px 15px !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

.m-top-logo-icon {
    width: 110px !important;
    height: 30px !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    clip-path: none !important;
}

.corgeut-language-switcher {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.corgeut-language-switcher.is-compact {
    flex-shrink: 0;
}

.corgeut-language-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #d7dce2;
    border-radius: 999px;
    background: #fff;
    color: #1a2233;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.corgeut-language-btn:hover {
    transform: translateY(-1px);
    border-color: #1a2233;
}

.corgeut-language-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.corgeut-language-btn.is-active {
    background: #1a2233;
    color: #fff;
    border-color: #1a2233;
}

.product-card .prod-img-box,
.shop-card .card-img {
    position: relative;
}

.corgeut-card-quick-add {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.86);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
    z-index: 3;
}

.corgeut-card-quick-add svg {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
}

.corgeut-card-quick-add:hover {
    transform: translateY(-2px);
    background: #eab760;
    color: #111;
    box-shadow: 0 16px 36px rgba(234, 183, 96, 0.28);
}

.product-card .prod-title,
.product-card .prod-sub,
.shop-card .card-title,
.shop-card .card-excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .prod-title,
.shop-card .card-title {
    -webkit-line-clamp: 1;
}

.product-card .prod-sub,
.shop-card .card-excerpt {
    -webkit-line-clamp: 1;
    color: #666;
}

.shop-card .card-excerpt {
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 8px;
    min-height: 17px;
}

.corgeut-overlay-open {
    overflow: hidden;
}

.corgeut-quick-shop-root {
    position: fixed;
    inset: 0;
    z-index: 9998;
}

.corgeut-quick-shop-overlay {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(17, 17, 17, 0.42);
    cursor: pointer;
}

.corgeut-quick-shop-drawer {
    position: absolute;
    top: 0;
    right: 0;
    width: min(390px, 100vw);
    height: 100%;
    background: #fff;
    box-shadow: -18px 0 50px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
}

.corgeut-quick-shop-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.corgeut-overlay-close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #f3f3f3;
    font-size: 22px;
    cursor: pointer;
}

.corgeut-overlay-close:hover {
    background: #1a2233;
    color: #fff;
}

.corgeut-quick-shop-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px 16px 22px;
}

.corgeut-quick-loading {
    display: grid;
    place-items: center;
    min-height: 180px;
    color: #666;
    font-size: 14px;
}

.corgeut-quick-shop-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.corgeut-quick-shop-media {
    border: 1px solid #eee;
    border-radius: 14px;
    overflow: hidden;
    background: #f7f7f7;
}

.corgeut-quick-shop-media img {
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.corgeut-quick-shop-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.corgeut-quick-shop-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
}

.corgeut-quick-shop-price {
    color: #1a1a1a;
    font-size: 18px;
    font-weight: 700;
}

.corgeut-quick-shop-price ins {
    color: #8f2f2f;
    text-decoration: none;
}

.corgeut-quick-shop-desc,
.corgeut-quick-shop-meta {
    font-size: 12px;
    line-height: 1.6;
    color: #666;
}

.corgeut-quick-shop-link {
    font-size: 13px;
    font-weight: 700;
    color: #1a2233;
}

.corgeut-purchase-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.qty-box {
    display: inline-flex;
    width: 120px;
    height: 40px;
    border: 1px solid #d8d8d8;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.qty-btn {
    width: 36px;
    border: 0;
    background: #fff;
    font-size: 18px;
    cursor: pointer;
}

.qty-btn:hover {
    background: #f4f4f4;
}

.qty-val {
    flex: 1;
    border: 0;
    border-left: 1px solid #e8e8e8;
    border-right: 1px solid #e8e8e8;
    text-align: center;
    font-size: 15px;
    min-width: 0;
}

.btn-big {
    min-height: 46px;
    border: 0;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
}

.btn-cart {
    background: #ffccbc;
    color: #d84315;
}

.btn-buy {
    background: #ff5722;
    color: #fff;
}

.corgeut-product-options {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.corgeut-option-label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.corgeut-option-select {
    width: 100%;
    min-height: 42px;
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    background: #fff;
}

.corgeut-option-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.corgeut-option-swatch {
    width: 58px;
    height: 58px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fff;
    padding: 4px;
    cursor: pointer;
    overflow: hidden;
}

.corgeut-option-swatch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.corgeut-option-swatch span {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    font-size: 11px;
    font-weight: 700;
    color: #333;
}

.corgeut-option-swatch.is-active {
    border-color: #111;
    box-shadow: 0 0 0 2px #111 inset;
}

.corgeut-selected-variation {
    min-height: 18px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #666;
}

.corgeut-product-bundle {
    border: 1px solid #eadfcb;
    border-radius: 16px;
    padding: 16px;
    background: linear-gradient(180deg, #fffdf8 0%, #fff 100%);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.corgeut-bundle-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.corgeut-bundle-description,
.corgeut-bundle-note {
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
    color: #6b6b6b;
}

.corgeut-bundle-apply {
    border: 1px solid #1f1f1f;
    border-radius: 999px;
    background: #1f1f1f;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 10px 16px;
    cursor: pointer;
    white-space: nowrap;
}

.corgeut-bundle-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.corgeut-bundle-item {
    position: relative;
    display: grid;
    grid-template-columns: 18px 68px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #ece7de;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
}

.corgeut-bundle-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.corgeut-bundle-marker {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid #b9b0a1;
    background: #fff;
    position: relative;
    flex-shrink: 0;
}

.corgeut-bundle-checkbox:checked + .corgeut-bundle-marker {
    border-color: #111;
    background: #111;
}

.corgeut-bundle-checkbox:checked + .corgeut-bundle-marker::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
}

.corgeut-bundle-media {
    width: 68px;
    height: 68px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #efefef;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #faf7f1;
}

.corgeut-bundle-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.corgeut-bundle-media-placeholder {
    font-size: 22px;
    color: #baa57f;
    font-weight: 700;
}

.corgeut-bundle-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.corgeut-bundle-copy strong {
    font-size: 13px;
    color: #1f1f1f;
}

.corgeut-bundle-copy small {
    font-size: 12px;
    line-height: 1.5;
    color: #777;
}

.corgeut-bundle-price {
    font-size: 13px;
    font-weight: 700;
    color: #1f1f1f;
    white-space: nowrap;
}

.corgeut-bundle-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.corgeut-bundle-total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #333;
}

.corgeut-bundle-total-line strong {
    font-size: 15px;
}

.corgeut-purchase-bottom {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.corgeut-qty-block .qty-box {
    margin-top: 0;
}

.corgeut-purchase-actions {
    display: flex;
    gap: 10px;
}

.corgeut-purchase-actions .btn-big {
    flex: 1;
}

.corgeut-purchase-status {
    min-height: 18px;
    font-size: 12px;
}

.corgeut-purchase-status.is-error {
    color: #c62828;
}

.corgeut-purchase-status.is-success {
    color: #2e7d32;
}

.corgeut-purchase-status.is-pending {
    color: #666;
}

.woocommerce-checkout-review-order-table .corgeut-shipping-protection-row td {
    padding: 14px 0 6px;
    border-top: 0;
}

.corgeut-shipping-protection-block {
    margin: 14px 0 10px;
}

.corgeut-shipping-protection {
    border: 1px solid #eadfcb;
    border-radius: 18px;
    background: linear-gradient(180deg, #fffef9 0%, #fff 100%);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.corgeut-shipping-protection.is-loading {
    opacity: 0.65;
    pointer-events: none;
}

.corgeut-shipping-protection--blocks {
    margin: 0;
}

.corgeut-shipping-protection__top,
.corgeut-shipping-protection__title-wrap,
.corgeut-shipping-protection__toggle,
.corgeut-shipping-protection__toggle-copy {
    display: flex;
    align-items: center;
}

.corgeut-shipping-protection__top,
.corgeut-shipping-protection__toggle {
    justify-content: space-between;
    gap: 12px;
}

.corgeut-shipping-protection__title-wrap {
    gap: 12px;
}

.corgeut-shipping-protection__icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #f7eddc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.corgeut-shipping-protection__icon svg {
    width: 20px;
    height: 20px;
    stroke: #b07a22;
    fill: none;
    stroke-width: 1.8;
}

.corgeut-shipping-protection__title {
    font-size: 14px;
    font-weight: 700;
    color: #1f1f1f;
}

.corgeut-shipping-protection__badge {
    display: inline-flex;
    margin-top: 4px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #1f1f1f;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.corgeut-shipping-protection__text {
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
    color: #666;
}

.corgeut-shipping-protection__toggle-copy {
    gap: 10px;
    font-size: 13px;
    color: #222;
}

.corgeut-shipping-protection__toggle input {
    width: 16px;
    height: 16px;
    margin: 0;
}

.corgeut-shipping-protection__toggle strong {
    font-size: 14px;
    color: #1f1f1f;
}

.wc-block-components-order-summary .corgeut-shipping-protection__toggle,
.wc-block-components-totals-wrapper .corgeut-shipping-protection__toggle {
    width: 100%;
}

.corgeut-translate-element,
.goog-te-banner-frame,
.goog-te-gadget-icon {
    display: none !important;
}

.trp-language-switcher .trp-language-item-name {
    display: none !important;
}

.trp-floating-switcher .trp-language-item,
.trp-floating-switcher .trp-language-item__current {
    justify-content: center;
    gap: 0;
    min-width: 0;
    padding-inline: 10px !important;
}

body {
    top: 0 !important;
}

@media (max-width: 768px) {
    .corgeut-language-switcher:not(.is-compact) {
        display: none;
    }

    .corgeut-language-switcher.is-compact .corgeut-language-btn {
        width: 34px;
        height: 34px;
    }

    .corgeut-card-quick-add {
        padding: 9px;
        border-radius: 50%;
    }

    .corgeut-card-quick-add span {
        display: none;
    }

    .corgeut-quick-shop-content {
        padding: 18px;
    }

    .corgeut-bundle-head,
    .corgeut-shipping-protection__top,
    .corgeut-shipping-protection__toggle {
        flex-direction: column;
        align-items: flex-start;
    }

    .corgeut-bundle-apply {
        width: 100%;
    }

    .corgeut-bundle-item {
        grid-template-columns: 18px 52px minmax(0, 1fr);
    }

    .corgeut-bundle-price {
        grid-column: 2 / -1;
        padding-left: 2px;
    }

    .trp-floating-switcher {
        right: 14px !important;
        bottom: 80px !important;
    }
}
