:root {
    --kgc-bg: #ffffff;
    --kgc-soft: #f7f5f2;
    --kgc-text: #171717;
    --kgc-muted: #707070;
    --kgc-border: #e7e3de;
    --kgc-accent: #8b5e4a;
    --kgc-max: 1440px;
}

.kgc-container {
    width: min(calc(100% - 48px), var(--kgc-max));
    margin-inline: auto;
}

/* TOP BAR */

.kgc-topbar {
    background: var(--kgc-text);
    color: #fff;
    font-size: 12px;
    letter-spacing: .04em;
}

.kgc-topbar .kgc-container {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* HEADER */

.kgc-header {
    background: #fff;
    color: var(--kgc-text);
    border-bottom: 1px solid var(--kgc-border);
}

.kgc-header-main {
    min-height: 92px;
    display: grid;
    grid-template-columns: 210px minmax(280px, 1fr) auto;
    align-items: center;
    gap: 40px;
}

.kgc-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--kgc-text);
    font-size: 22px;
    font-weight: 700;
}

.kgc-logo img {
    display: block;
    width: auto;
    max-width: 180px;
    max-height: 64px;
    object-fit: contain;
}

/* SEARCH */

.kgc-search {
    width: 100%;
    max-width: 650px;
    justify-self: center;
}

.kgc-search .woocommerce-product-search {
    width: 100%;
    display: flex;
    margin: 0;
}

.kgc-search .search-field {
    flex: 1;
    min-width: 0;
    height: 48px;
    margin: 0;
    padding: 0 17px;
    border: 1px solid var(--kgc-border);
    border-right: 0;
    border-radius: 8px 0 0 8px;
    background: #fafafa;
    color: var(--kgc-text);
    box-shadow: none;
}

.kgc-search button {
    height: 48px;
    padding: 0 22px;
    border: 1px solid var(--kgc-text);
    border-radius: 0 8px 8px 0;
    background: var(--kgc-text);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

/* ACCOUNT + CART */

.kgc-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    white-space: nowrap;
}

.kgc-actions a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--kgc-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

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

.kgc-cart-count {
    min-width: 21px;
    height: 21px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--kgc-text);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

/* NAVIGATION */

.kgc-nav {
    border-top: 1px solid var(--kgc-border);
}

.kgc-nav .kgc-container {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(20px, 3vw, 46px);
}

.kgc-nav a {
    position: relative;
    flex: 0 0 auto;
    color: var(--kgc-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.kgc-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -7px;
    height: 1px;
    background: currentColor;
    transition: right .2s ease;
}

.kgc-nav a:hover::after {
    right: 0;
}

/* PRODUCT GRID */

.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 34px 22px;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none !important;
}

.woocommerce ul.products li.product {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    float: none !important;
}

.woocommerce ul.products li.product a img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin: 0 0 15px;
    border-radius: 10px;
    background: var(--kgc-soft);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    margin: 0 0 7px;
    padding: 0;
    color: var(--kgc-text);
    font-size: 15px;
    line-height: 1.4;
    font-weight: 600;
}

.woocommerce ul.products li.product .price {
    color: var(--kgc-text);
    font-size: 15px;
    font-weight: 700;
}

.woocommerce ul.products li.product .price del {
    color: var(--kgc-muted);
    opacity: .65;
}

.woocommerce ul.products li.product .button {
    width: 100%;
    margin-top: 13px;
    padding: 12px 15px;
    border-radius: 7px;
    background: var(--kgc-text);
    color: #fff;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
}

.woocommerce ul.products li.product .button:hover {
    background: var(--kgc-accent);
}

/* TABLET */

@media (max-width: 1024px) {

    .kgc-header-main {
        grid-template-columns: 170px 1fr auto;
        gap: 20px;
    }

    .kgc-logo img {
        max-width: 150px;
    }

    .kgc-nav .kgc-container {
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .kgc-nav .kgc-container::-webkit-scrollbar {
        display: none;
    }

    .woocommerce ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* MOBILE */

@media (max-width: 700px) {

    .kgc-container {
        width: min(calc(100% - 28px), var(--kgc-max));
    }

    .kgc-topbar .kgc-container {
        justify-content: center;
    }

    .kgc-topbar span:last-child {
        display: none;
    }

    .kgc-header-main {
        min-height: auto;
        padding: 14px 0;
        grid-template-columns: 1fr auto;
        gap: 14px;
    }

    .kgc-logo img {
        max-width: 145px;
        max-height: 54px;
    }

    .kgc-search {
        grid-column: 1 / -1;
        grid-row: 2;
        max-width: none;
    }

    .kgc-search .search-field,
    .kgc-search button {
        height: 44px;
    }

    .kgc-actions {
        gap: 12px;
    }

    .kgc-actions a {
        font-size: 12px;
    }

    .kgc-nav .kgc-container {
        min-height: 46px;
        gap: 22px;
    }

    .kgc-nav a {
        font-size: 13px;
    }

    .woocommerce ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 25px 12px;
    }
}

/* ==========================================================
   KG COLLECTION V2 — HOME
   ========================================================== */

.kgc-home {
    background: #fff;
    color: var(--kgc-text);
}

.kgc-home-section {
    padding: 90px 0;
}

.kgc-eyebrow {
    display: block;
    margin-bottom: 14px;
    color: var(--kgc-accent);
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .16em;
}

/* HERO */

.kgc-hero {
    padding: 42px 0 72px;
}

.kgc-hero-grid {
    min-height: 560px;
    display: grid;
    grid-template-columns: .88fr 1.12fr;
    overflow: hidden;
    border-radius: 18px;
    background: var(--kgc-soft);
}

.kgc-hero-copy {
    padding: clamp(55px, 7vw, 105px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.kgc-hero h1 {
    max-width: 600px;
    margin: 0 0 24px;
    color: var(--kgc-text);
    font-size: clamp(46px, 5vw, 76px);
    line-height: .98;
    letter-spacing: -.045em;
    font-weight: 600;
}

.kgc-hero p {
    max-width: 520px;
    margin: 0 0 32px;
    color: var(--kgc-muted);
    font-size: 17px;
    line-height: 1.7;
}

.kgc-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.kgc-btn {
    min-height: 48px;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--kgc-text);
    border-radius: 7px;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 700;
    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease;
}

.kgc-btn:hover {
    transform: translateY(-1px);
}

.kgc-btn-dark {
    background: var(--kgc-text);
    color: #fff !important;
}

.kgc-btn-dark:hover {
    background: var(--kgc-accent);
    border-color: var(--kgc-accent);
}

.kgc-btn-light {
    background: transparent;
    color: var(--kgc-text) !important;
}

.kgc-btn-light:hover {
    background: #fff;
}

.kgc-hero-image {
    display: block;
    min-height: 560px;
    overflow: hidden;
}

.kgc-hero-image img {
    width: 100%;
    height: 100%;
    min-height: 560px;
    display: block;
    object-fit: cover;
    transition: transform .6s ease;
}

.kgc-hero-image:hover img {
    transform: scale(1.025);
}

/* SECTION HEADING */

.kgc-section-heading {
    margin-bottom: 34px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.kgc-section-heading h2 {
    margin: 0;
    color: var(--kgc-text);
    font-size: clamp(30px, 3vw, 44px);
    line-height: 1.08;
    letter-spacing: -.03em;
}

.kgc-section-heading > a {
    flex: 0 0 auto;
    padding-bottom: 5px;
    color: var(--kgc-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

/* CATEGORIES */

.kgc-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 20px;
}

.kgc-category-card {
    display: block;
    color: var(--kgc-text);
    text-decoration: none !important;
}

.kgc-category-image {
    aspect-ratio: 1.08 / 1;
    overflow: hidden;
    border-radius: 12px;
    background: var(--kgc-soft);
}

.kgc-category-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .45s ease;
}

.kgc-category-card:hover .kgc-category-image img {
    transform: scale(1.035);
}

.kgc-category-info {
    padding: 15px 3px 0;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.kgc-category-info h3 {
    margin: 0;
    color: var(--kgc-text);
    font-size: 17px;
    font-weight: 650;
}

.kgc-category-info span {
    color: var(--kgc-muted);
    font-size: 12px;
}

/* NEW PRODUCTS */

.kgc-new-products {
    background: #f8f8f7;
}

.kgc-new-products .woocommerce ul.products {
    margin-bottom: 0;
}

/* FEATURE */

.kgc-feature {
    padding: 40px 0 90px;
    background: #fff;
}

.kgc-feature-inner {
    min-height: 310px;
    padding: clamp(45px, 6vw, 82px);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 50px;
    border-radius: 16px;
    background:
        linear-gradient(
            120deg,
            #ede5dc 0%,
            #f8f5f1 55%,
            #eee7df 100%
        );
}

.kgc-feature h2 {
    margin: 0 0 18px;
    color: var(--kgc-text);
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.02;
    letter-spacing: -.04em;
}

.kgc-feature p {
    max-width: 620px;
    margin: 0;
    color: var(--kgc-muted);
    font-size: 15px;
    line-height: 1.7;
}

/* BENEFITS */

.kgc-benefits {
    border-top: 1px solid var(--kgc-border);
    border-bottom: 1px solid var(--kgc-border);
    background: #fff;
}

.kgc-benefit-grid {
    min-height: 145px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.kgc-benefit-grid > div {
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--kgc-border);
}

.kgc-benefit-grid > div:first-child {
    border-left: 1px solid var(--kgc-border);
}

.kgc-benefit-grid strong {
    margin-bottom: 5px;
    color: var(--kgc-text);
    font-size: 14px;
}

.kgc-benefit-grid span {
    color: var(--kgc-muted);
    font-size: 12px;
}

/* HOME PRODUCT REFINEMENTS */

.kgc-home .woocommerce ul.products li.product {
    background: transparent;
}

.kgc-home .woocommerce ul.products li.product a {
    text-decoration: none;
}

.kgc-home .woocommerce ul.products li.product a img {
    aspect-ratio: .9 / 1;
    border-radius: 10px;
}

.kgc-home .woocommerce span.onsale {
    min-width: auto;
    min-height: auto;
    padding: 7px 10px;
    border-radius: 5px;
    background: var(--kgc-text);
    color: #fff;
    font-size: 10px;
    line-height: 1;
}

/* TABLET */

@media (max-width: 1024px) {

    .kgc-home-section {
        padding: 70px 0;
    }

    .kgc-hero-grid {
        min-height: 470px;
        grid-template-columns: .95fr 1.05fr;
    }

    .kgc-hero-copy {
        padding: 55px 45px;
    }

    .kgc-hero-image,
    .kgc-hero-image img {
        min-height: 470px;
    }

    .kgc-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kgc-benefit-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .kgc-benefit-grid > div {
        border-bottom: 1px solid var(--kgc-border);
    }
}

/* MOBILE */

@media (max-width: 700px) {

    .kgc-home-section {
        padding: 55px 0;
    }

    .kgc-hero {
        padding: 18px 0 55px;
    }

    .kgc-hero-grid {
        min-height: 0;
        grid-template-columns: 1fr;
        border-radius: 12px;
    }

    .kgc-hero-copy {
        padding: 46px 25px;
    }

    .kgc-hero h1 {
        font-size: clamp(40px, 13vw, 58px);
    }

    .kgc-hero p {
        font-size: 15px;
    }

    .kgc-hero-actions {
        width: 100%;
    }

    .kgc-btn {
        flex: 1 1 auto;
    }

    .kgc-hero-image,
    .kgc-hero-image img {
        min-height: 380px;
    }

    .kgc-hero-image img {
        aspect-ratio: 1 / 1;
    }

    .kgc-section-heading {
        margin-bottom: 25px;
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .kgc-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 12px;
    }

    .kgc-category-image {
        aspect-ratio: 1 / 1.08;
    }

    .kgc-category-info {
        display: block;
    }

    .kgc-category-info h3 {
        margin-bottom: 3px;
        font-size: 14px;
    }

    .kgc-feature {
        padding: 15px 0 55px;
    }

    .kgc-feature-inner {
        min-height: 360px;
        padding: 40px 25px;
        align-items: flex-start;
        flex-direction: column;
        justify-content: space-between;
    }

    .kgc-benefit-grid {
        grid-template-columns: 1fr 1fr;
    }

    .kgc-benefit-grid > div {
        padding: 25px 18px;
    }
}

/* V2 home: force recent products into our own responsive grid */

.kgc-new-products ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 34px 20px !important;
}

.kgc-new-products ul.products li.product {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    float: none !important;
    clear: none !important;
}

.kgc-new-products ul.products li.product img {
    width: 100% !important;
    height: auto;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover;
}

@media (max-width: 1024px) {
    .kgc-new-products ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 700px) {
    .kgc-new-products ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 24px 12px !important;
    }
}

/* ==========================================================
   KG COLLECTION V2 — FOOTER
   ========================================================== */

.kgc-footer {
    background: #171717;
    color: #fff;
}

.kgc-footer-main {
    padding-top: 72px;
    padding-bottom: 68px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
}

.kgc-footer-brand {
    max-width: 330px;
}

.kgc-footer-logo {
    display: inline-flex;
    margin-bottom: 22px;
}

.kgc-footer-logo img {
    width: auto;
    max-width: 155px;
    max-height: 62px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.kgc-footer-brand p {
    max-width: 300px;
    margin: 0;
    color: #aaa;
    font-size: 13px;
    line-height: 1.7;
}

.kgc-footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
}

.kgc-footer-column h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
}

.kgc-footer-column a {
    color: #aaa;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.5;
    transition: color .2s ease;
}

.kgc-footer-column a:hover {
    color: #fff;
}

.kgc-footer-bottom {
    border-top: 1px solid #333;
}

.kgc-footer-bottom .kgc-container {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    color: #888;
    font-size: 11px;
}

/* FOOTER TABLET */

@media (max-width: 900px) {

    .kgc-footer-main {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 45px 30px;
    }

    .kgc-footer-brand {
        grid-column: 1 / -1;
        max-width: 420px;
    }
}

/* FOOTER MOBILE */

@media (max-width: 700px) {

    .kgc-footer-main {
        padding-top: 50px;
        padding-bottom: 45px;
        grid-template-columns: 1fr 1fr;
        gap: 40px 25px;
    }

    .kgc-footer-brand {
        grid-column: 1 / -1;
    }

    .kgc-footer-logo img {
        max-width: 135px;
    }

    .kgc-footer-bottom .kgc-container {
        padding: 20px 0;
        min-height: 0;
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }
}

/* ==========================================================
   KG COLLECTION V2 — HOME PRODUCT CARDS
   ========================================================== */

.kgc-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 38px 20px;
}

.kgc-product-card {
    min-width: 0;
}

.kgc-product-image {
    display: block;
    overflow: hidden;
    background: #f4f3f1;
    border-radius: 8px;
    aspect-ratio: 1 / 1;
}

.kgc-product-image img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    transition: transform .35s ease;
}

.kgc-product-card:hover .kgc-product-image img {
    transform: scale(1.025);
}

.kgc-product-info {
    padding-top: 14px;
}

.kgc-product-category {
    margin-bottom: 5px;
    color: var(--kgc-muted);
    font-size: 11px;
    line-height: 1.4;
}

.kgc-product-category a {
    color: inherit;
    text-decoration: none;
}

.kgc-product-title {
    margin: 0 0 7px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
}

.kgc-product-title a {
    color: var(--kgc-text);
    text-decoration: none;
}

.kgc-product-price {
    margin-bottom: 15px;
    color: var(--kgc-text);
    font-size: 14px;
    font-weight: 600;
}

.kgc-product-price del {
    margin-right: 5px;
    color: var(--kgc-muted);
    font-weight: 400;
}

.kgc-product-price ins {
    text-decoration: none;
}

.kgc-product-button {
    display: inline-flex;
    min-height: 38px;
    padding: 0 18px;
    align-items: center;
    justify-content: center;
    background: var(--kgc-text);
    border: 1px solid var(--kgc-text);
    border-radius: 4px;
    color: #fff !important;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .03em;
    text-decoration: none !important;
    transition:
        background .2s ease,
        color .2s ease;
}

.kgc-product-button:hover {
    background: transparent;
    color: var(--kgc-text) !important;
}

/* PRODUCT CARDS — TABLET */

@media (max-width: 1024px) {
    .kgc-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* PRODUCT CARDS — MOBILE */

@media (max-width: 700px) {
    .kgc-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 12px;
    }

    .kgc-product-info {
        padding-top: 10px;
    }

    .kgc-product-title {
        font-size: 13px;
    }

    .kgc-product-category {
        font-size: 10px;
    }

    .kgc-product-price {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .kgc-product-button {
        width: 100%;
        padding-inline: 10px;
    }
}

/* ==========================================================
   KG COLLECTION V2 — SHOP / PRODUCT ARCHIVES
   ========================================================== */

body.woocommerce-shop .site-content,
body.tax-product_cat .site-content,
body.tax-product_tag .site-content {
    background: #fff;
}

body.woocommerce-shop .site-main,
body.tax-product_cat .site-main,
body.tax-product_tag .site-main {
    padding-top: 38px;
    padding-bottom: 70px;
}

body.woocommerce-shop ul.products,
body.tax-product_cat ul.products,
body.tax-product_tag ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 42px 20px !important;
}

body.woocommerce-shop ul.products::before,
body.woocommerce-shop ul.products::after,
body.tax-product_cat ul.products::before,
body.tax-product_cat ul.products::after,
body.tax-product_tag ul.products::before,
body.tax-product_tag ul.products::after {
    display: none !important;
}

body.woocommerce-shop ul.products li.product,
body.tax-product_cat ul.products li.product,
body.tax-product_tag ul.products li.product {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: none !important;
}

.kgc-archive-card {
    width: 100%;
}

.kgc-archive-card__image {
    display: block;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f4f3f1;
    border-radius: 8px;
}

.kgc-archive-card__image img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    object-fit: cover;
    transition: transform .35s ease;
}

.kgc-archive-card:hover .kgc-archive-card__image img {
    transform: scale(1.025);
}

.kgc-archive-card__info {
    padding-top: 14px;
}

.kgc-archive-card__category {
    margin-bottom: 5px;
    color: var(--kgc-muted);
    font-size: 11px;
    line-height: 1.4;
}

.kgc-archive-card__category a {
    color: inherit;
    text-decoration: none;
}

.kgc-archive-card__title {
    margin: 0 0 7px !important;
    padding: 0 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
}

.kgc-archive-card__title a {
    color: var(--kgc-text);
    text-decoration: none;
}

.kgc-archive-card__price {
    margin-bottom: 15px;
    color: var(--kgc-text);
    font-size: 14px;
    font-weight: 600;
}

.kgc-archive-card__price del {
    margin-right: 5px;
    color: var(--kgc-muted);
    font-weight: 400;
}

.kgc-archive-card__price ins {
    text-decoration: none;
}

.kgc-archive-card__button {
    display: inline-flex;
    min-height: 38px;
    padding: 0 18px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--kgc-text);
    border-radius: 4px;
    background: var(--kgc-text);
    color: #fff !important;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .03em;
    text-decoration: none !important;
    transition: background .2s ease, color .2s ease;
}

.kgc-archive-card__button:hover {
    background: transparent;
    color: var(--kgc-text) !important;
}

/* Result count + sorting */

body.woocommerce-shop .woocommerce-result-count,
body.tax-product_cat .woocommerce-result-count,
body.tax-product_tag .woocommerce-result-count {
    color: var(--kgc-muted);
    font-size: 13px;
}

body.woocommerce-shop .woocommerce-ordering select,
body.tax-product_cat .woocommerce-ordering select,
body.tax-product_tag .woocommerce-ordering select {
    min-height: 42px;
    padding: 0 36px 0 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 13px;
}

/* Pagination */

body.woocommerce nav.woocommerce-pagination {
    margin-top: 55px;
}

body.woocommerce nav.woocommerce-pagination ul {
    border: 0;
}

body.woocommerce nav.woocommerce-pagination ul li {
    border: 0;
    margin: 0 3px;
}

body.woocommerce nav.woocommerce-pagination ul li a,
body.woocommerce nav.woocommerce-pagination ul li span {
    display: inline-flex;
    min-width: 38px;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

/* Tablet */

@media (max-width: 1024px) {
    body.woocommerce-shop ul.products,
    body.tax-product_cat ul.products,
    body.tax-product_tag ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

/* Mobile */

@media (max-width: 700px) {
    body.woocommerce-shop .site-main,
    body.tax-product_cat .site-main,
    body.tax-product_tag .site-main {
        padding-top: 24px;
        padding-bottom: 50px;
    }

    body.woocommerce-shop ul.products,
    body.tax-product_cat ul.products,
    body.tax-product_tag ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 30px 12px !important;
    }

    .kgc-archive-card__info {
        padding-top: 10px;
    }

    .kgc-archive-card__category {
        font-size: 10px;
    }

    .kgc-archive-card__title {
        font-size: 13px !important;
    }

    .kgc-archive-card__price {
        margin-bottom: 12px;
        font-size: 13px;
    }

    .kgc-archive-card__button {
        width: 100%;
        padding-inline: 10px;
    }
}

/* ==========================================================
   KG COLLECTION V2 — PRODUCT STOCK STATUS
   ========================================================== */

.kgc-archive-card__image {
    position: relative;
}

.kgc-archive-card__soldout {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 6px 10px;
    border-radius: 5px;

    background: #e32626;
    color: #fff;

    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;

    pointer-events: none;
}

.kgc-archive-card__stock {
    margin-top: 3px;

    color: #777;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

/*
 * Keep the stock label from colliding with the product button
 * in both Astra grid and list views.
 */
.kgc-archive-card__stock + .kgc-archive-card__button {
    margin-top: 10px;
}


/* =========================================================
   KG Collection V2 — compact WooCommerce list view
   ========================================================= */

@media (min-width: 769px) {

    /* One product per row */
    body.woocommerce.ast-woocommerce-shop-page-list-view ul.products:not(.elementor-grid),
    body.ast-woocommerce-shop-page-list-view ul.products.columns-4 {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
        width: 100% !important;
    }

    /* Disable Astra's own 1fr/2fr product layout */
    body.woocommerce.ast-woocommerce-shop-page-list-view ul.products li.product,
    body.woocommerce-page.ast-woocommerce-shop-page-list-view ul.products li.product {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
    }

    /* Complete row */
    body.ast-woocommerce-shop-page-list-view .kgc-archive-card {
        display: grid !important;
        grid-template-columns: 220px minmax(0, 1fr) !important;
        align-items: center !important;
        gap: 18px !important;

        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;

        padding: 6px 10px !important;

        border: 1px solid #ededed;
        border-radius: 7px;
        background: #fff;
    }

    /* Image area: 220 × 80 */
    body.ast-woocommerce-shop-page-list-view .kgc-archive-card__image {
        display: block !important;
        position: relative;

        width: 220px !important;
        height: 80px !important;
        min-height: 80px !important;
        max-height: 80px !important;

        aspect-ratio: auto !important;
        margin: 0 !important;

        overflow: hidden;
        border-radius: 5px;
        background: #f7f7f7;
    }

    body.ast-woocommerce-shop-page-list-view .kgc-archive-card__image img {
        display: block !important;

        width: 220px !important;
        height: 80px !important;
        max-width: 220px !important;
        max-height: 80px !important;

        margin: 0 !important;

        object-fit: contain !important;
        transform: none !important;
    }

    /* Actual PHP class is __info */
    body.ast-woocommerce-shop-page-list-view .kgc-archive-card__info {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;

        gap: 22px !important;

        width: 100% !important;
        min-width: 0 !important;

        padding: 0 !important;
        margin: 0 !important;
    }

    body.ast-woocommerce-shop-page-list-view .kgc-archive-card__category {
        display: none !important;
    }

    body.ast-woocommerce-shop-page-list-view .kgc-archive-card__title {
        flex: 1 1 auto;
        min-width: 160px;

        margin: 0 !important;
        padding: 0 !important;

        font-size: 14px !important;
        line-height: 1.3 !important;
    }

    body.ast-woocommerce-shop-page-list-view .kgc-archive-card__price {
        flex: 0 0 auto;

        margin: 0 !important;

        font-size: 14px !important;
        font-weight: 600;

        white-space: nowrap;
    }

    body.ast-woocommerce-shop-page-list-view .kgc-archive-card__stock {
        flex: 0 0 auto;

        margin: 0 !important;

        font-size: 12px !important;
        white-space: nowrap;
    }

    body.ast-woocommerce-shop-page-list-view .kgc-archive-card__button,
    body.ast-woocommerce-shop-page-list-view .kgc-archive-card__stock + .kgc-archive-card__button {
        flex: 0 0 auto;

        width: auto !important;
        min-height: 34px !important;

        margin: 0 !important;
        padding: 0 14px !important;

        white-space: nowrap;
    }

    body.ast-woocommerce-shop-page-list-view .kgc-archive-card__soldout {
        top: 5px;
        left: 5px;
        padding: 3px 6px;
        font-size: 9px;
    }
}


/* =========================================================
   KG Collection V2 — language flags
   ========================================================= */

.kgc-language-switcher {
    display: flex;
    align-items: center;
}

.kgc-language-switcher ul {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.kgc-language-switcher li {
    margin: 0;
    padding: 0;
    line-height: 1;
}

.kgc-language-switcher a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border: 1px solid transparent;
    border-radius: 5px;
    line-height: 1;
    transition: border-color .2s ease, opacity .2s ease;
}

.kgc-language-switcher img {
    display: block;
    width: 24px;
    height: auto;
    margin: 0;
}

.kgc-language-switcher li.current-lang a {
    border-color: currentColor;
}

.kgc-language-switcher li:not(.current-lang) a {
    opacity: .65;
}

.kgc-language-switcher li:not(.current-lang) a:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .kgc-language-switcher ul {
        gap: 5px;
    }

    .kgc-language-switcher img {
        width: 22px;
    }
}



/* KG Collection V2 — flags-only language menu */

.kgc-language-menu__dropdown {
    min-width: 0;
    width: auto;
    padding: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.kgc-language-menu__dropdown a {
    width: auto;
    padding: 6px;
    gap: 0;
}

.kgc-language-menu__dropdown img {
    width: 26px;
}

@media (max-width: 768px) {
    .kgc-language-menu__dropdown {
        min-width: 0;
    }
}


/* =========================================================
   KG Collection V2 — two language flags only
   ========================================================= */

.kgc-language-flags {
    display: flex;
    align-items: center;
    gap: 8px;
}

.kgc-language-flags a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    line-height: 1;
    text-decoration: none;
    opacity: .65;
}

.kgc-language-flags a.is-current {
    opacity: 1;
}

.kgc-language-flags a:hover {
    opacity: 1;
}

.kgc-language-flags img {
    display: block;
    width: 25px;
    height: auto;
    margin: 0;
}

@media (max-width: 768px) {
    .kgc-language-flags {
        gap: 6px;
    }

    .kgc-language-flags img {
        width: 23px;
    }
}


/* =========================================================
   KG Collection V2 — single active language flag
   ========================================================= */

.kgc-language-menu--single .kgc-language-menu__current {
    width: auto;
    height: auto;
    padding: 3px;
    border: 0;
    background: transparent;
    list-style: none;
}

.kgc-language-menu--single .kgc-language-menu__current::-webkit-details-marker {
    display: none;
}

.kgc-language-menu--single .kgc-language-menu__current::marker {
    content: "";
    display: none;
}

.kgc-language-menu--single .kgc-language-menu__current::before,
.kgc-language-menu--single .kgc-language-menu__current::after {
    display: none !important;
    content: none !important;
}

.kgc-language-menu--single .kgc-language-menu__current img {
    width: 25px;
    height: auto;
    display: block;
    margin: 0;
}

.kgc-language-menu--single .kgc-language-menu__dropdown {
    min-width: 0;
    width: auto;
    padding: 5px;
    right: 0;
}

.kgc-language-menu--single .kgc-language-menu__dropdown a {
    display: block;
    width: auto;
    padding: 3px;
}

.kgc-language-menu--single .kgc-language-menu__dropdown img {
    display: block;
    width: 25px;
    height: auto;
    margin: 0;
}


/* KG Collection V2 — align language flags */

.kgc-language-menu--single {
    width: 31px;
}

.kgc-language-menu--single .kgc-language-menu__current {
    box-sizing: border-box;
    width: 31px;
    padding: 3px;
    justify-content: center;
}

.kgc-language-menu--single .kgc-language-menu__dropdown {
    box-sizing: border-box;
    width: 31px;
    min-width: 31px;
    padding: 3px;
    right: 0;
}

.kgc-language-menu--single .kgc-language-menu__dropdown a {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    padding: 0;
    margin: 0;
}

.kgc-language-menu--single .kgc-language-menu__current img,
.kgc-language-menu--single .kgc-language-menu__dropdown img {
    display: block;
    width: 25px;
    height: auto;
    margin: 0;
}


/* =========================================================
   KG Collection V2 — hero button alignment
   ========================================================= */

.kgc-hero-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.kgc-hero-actions .kgc-btn {
    box-sizing: border-box;
    width: 190px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    text-align: center;
}

@media (max-width: 480px) {
    .kgc-hero-actions .kgc-btn {
        width: 100%;
        max-width: 220px;
    }
}


/* KG Collection V2 — footer brand */

.kgc-footer-logo--text {
    display: inline-block;
    color: #fff !important;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    margin-bottom: 22px;
}

.kgc-footer-logo--text:hover {
    color: #fff !important;
    opacity: .85;
}


/* =========================================================
   KG Collection V2 — Cart
   Same presentation for Norwegian and English cart pages.
   ========================================================= */

body.woocommerce-cart {
    background: #f7f7f7;
}

/* Remove shop sidebar from the purchase flow. */
body.woocommerce-cart #secondary,
body.woocommerce-cart .widget-area,
body.woocommerce-cart .ast-left-sidebar,
body.woocommerce-cart .ast-right-sidebar {
    display: none !important;
}

/* Neutralise legacy Astra page-specific widths. */
body.woocommerce-cart .site-content > .ast-container {
    width: min(calc(100% - 48px), 1240px) !important;
    max-width: 1240px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 48px 0 72px !important;
    display: block !important;
}

body.woocommerce-cart #primary,
body.woocommerce-cart .content-area,
body.woocommerce-cart .site-main,
body.woocommerce-cart article,
body.woocommerce-cart .entry-content {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

/* Remove Astra/Elementor legacy card around the page. */
body.woocommerce-cart .ast-article-single {
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Page heading. */
body.woocommerce-cart .entry-content > h1 {
    margin: 0 0 28px !important;
    color: var(--kgc-text) !important;
    font-size: clamp(32px, 4vw, 48px) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.035em;
}

/* WooCommerce progress steps. */
body.woocommerce-cart .checkout-steps,
body.woocommerce-cart .ast-checkout-control-nav {
    margin-bottom: 32px;
}

/* Main Woo cart becomes a modern two-column layout. */
body.woocommerce-cart .woocommerce-cart-form {
    float: left !important;
    width: calc(100% - 420px) !important;
    margin: 0 !important;
}

body.woocommerce-cart .cart-collaterals {
    float: right !important;
    width: 380px !important;
    margin: 0 !important;
}

body.woocommerce-cart .woocommerce::after {
    content: "";
    display: table;
    clear: both;
}

/* Product table/card. */
body.woocommerce-cart table.shop_table {
    margin: 0 !important;
    border: 1px solid var(--kgc-border) !important;
    border-radius: 14px !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    overflow: hidden;
    background: var(--kgc-bg);
}

body.woocommerce-cart table.shop_table th {
    padding: 16px 18px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--kgc-border) !important;
    background: var(--kgc-soft);
    color: var(--kgc-text);
    font-size: 13px;
    font-weight: 700;
}

body.woocommerce-cart table.shop_table td {
    padding: 18px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--kgc-border) !important;
    vertical-align: middle !important;
}

body.woocommerce-cart table.shop_table tr:last-child td {
    border-bottom: 0 !important;
}

body.woocommerce-cart td.product-thumbnail {
    width: 92px;
}

body.woocommerce-cart td.product-thumbnail img {
    width: 72px !important;
    height: 72px !important;
    object-fit: cover;
    border-radius: 10px;
}

body.woocommerce-cart td.product-name a {
    color: var(--kgc-text) !important;
    font-weight: 650;
    text-decoration: none;
}

body.woocommerce-cart td.product-price,
body.woocommerce-cart td.product-subtotal {
    white-space: nowrap;
    font-weight: 600;
}

/* Quantity. */
body.woocommerce-cart .quantity .qty {
    min-height: 42px;
    border: 1px solid var(--kgc-border) !important;
    border-radius: 8px !important;
    background: #fff;
}

/* Order summary. */
body.woocommerce-cart .cart_totals {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 24px !important;
    border: 1px solid var(--kgc-border);
    border-radius: 14px;
    background: var(--kgc-bg);
    box-shadow: 0 12px 32px rgba(23, 23, 23, 0.06);
}

body.woocommerce-cart .cart_totals h2 {
    margin: 0 0 18px !important;
    color: var(--kgc-text) !important;
    font-size: 22px !important;
    line-height: 1.25;
}

body.woocommerce-cart .cart_totals table.shop_table {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent;
}

body.woocommerce-cart .cart_totals table.shop_table th,
body.woocommerce-cart .cart_totals table.shop_table td {
    padding: 14px 0 !important;
    background: transparent !important;
    border-bottom: 1px solid var(--kgc-border) !important;
    vertical-align: top !important;
}

body.woocommerce-cart .cart_totals table.shop_table th {
    width: 34%;
    padding-right: 16px !important;
    font-size: 14px;
}

body.woocommerce-cart .cart_totals table.shop_table td {
    font-size: 14px;
}

/* Give shipping labels enough room and keep them readable. */
body.woocommerce-cart ul#shipping_method {
    margin: 0 !important;
}

body.woocommerce-cart ul#shipping_method li {
    margin: 0 0 12px !important;
    line-height: 1.45;
}

body.woocommerce-cart ul#shipping_method li:last-child {
    margin-bottom: 0 !important;
}

body.woocommerce-cart ul#shipping_method label {
    display: inline !important;
    font-size: 14px;
    line-height: 1.45;
}

/* Checkout CTA. */
body.woocommerce-cart .wc-proceed-to-checkout {
    padding: 22px 0 0 !important;
}

body.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
    width: 100% !important;
    min-height: 54px;
    margin: 0 !important;
    padding: 16px 20px !important;
    border: 1px solid var(--kgc-text) !important;
    border-radius: 8px !important;
    background: var(--kgc-text) !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 750 !important;
    line-height: 1.3 !important;
    letter-spacing: .025em;
    text-align: center;
}

body.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover {
    background: var(--kgc-accent) !important;
    border-color: var(--kgc-accent) !important;
    color: #fff !important;
}

/* Keep summary visible while reviewing a longer cart. */
@media (min-width: 1025px) {
    body.woocommerce-cart .cart_totals {
        position: sticky;
        top: 32px;
    }
}

/* Tablet. */
@media (max-width: 1024px) {
    body.woocommerce-cart .site-content > .ast-container {
        width: min(calc(100% - 40px), 900px) !important;
    }

    body.woocommerce-cart .woocommerce-cart-form,
    body.woocommerce-cart .cart-collaterals {
        float: none !important;
        width: 100% !important;
    }

    body.woocommerce-cart .cart-collaterals {
        margin-top: 28px !important;
    }
}

/* Mobile. */
@media (max-width: 700px) {
    body.woocommerce-cart .site-content > .ast-container {
        width: min(calc(100% - 28px), 100%) !important;
        padding: 28px 0 48px !important;
    }

    body.woocommerce-cart .entry-content > h1 {
        margin-bottom: 20px !important;
        font-size: 34px !important;
    }

    body.woocommerce-cart table.shop_table {
        border-radius: 12px !important;
    }

    body.woocommerce-cart table.shop_table_responsive tr {
        padding: 14px !important;
        border-bottom: 1px solid var(--kgc-border) !important;
    }

    body.woocommerce-cart table.shop_table_responsive tr:last-child {
        border-bottom: 0 !important;
    }

    body.woocommerce-cart table.shop_table_responsive td {
        padding: 10px 0 !important;
    }

    body.woocommerce-cart td.product-thumbnail img {
        width: 64px !important;
        height: 64px !important;
    }

    body.woocommerce-cart .cart_totals {
        padding: 20px !important;
        border-radius: 12px;
    }

    body.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
        min-height: 52px;
    }
}


/* =========================================================
   KG Collection V2 — Cart header + checkout progress
   ========================================================= */

/* Astra outputs the page title separately.
   Cart content already contains the correct language H1. */
body.woocommerce-cart .entry-header {
    display: none !important;
}

/* Slightly tighter top spacing. */
body.woocommerce-cart .site-content > .ast-container {
    padding-top: 36px !important;
}

/* Cart H1. */
body.woocommerce-cart .entry-content > h1 {
    margin: 0 0 26px !important;
    font-size: clamp(32px, 3.2vw, 44px) !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    letter-spacing: -0.035em;
}

/* Astra multi-step checkout navigation. */
body.woocommerce-cart #ast-checkout-wrap {
    margin: 0 0 32px !important;
    padding: 0 !important;
}

/* Keep the progress indicator compact. */
body.woocommerce-cart #ast-checkout-wrap ul {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.woocommerce-cart #ast-checkout-wrap li {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
}

/* Step text. */
body.woocommerce-cart #ast-checkout-wrap li p {
    margin: 0 !important;
    font-size: 15px !important;
    line-height: 1.3 !important;
    font-weight: 600 !important;
}

/* Number circles. */
body.woocommerce-cart #ast-checkout-wrap .ast-step-number {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    margin-right: 8px !important;
    font-size: 13px !important;
    line-height: 28px !important;
}

/* Reduce Astra's large arrows / spacing between steps. */
body.woocommerce-cart #ast-checkout-wrap .ahfb-svg-iconset {
    margin: 0 14px !important;
}

body.woocommerce-cart #ast-checkout-wrap svg {
    width: 14px !important;
    height: 14px !important;
}

/* Current cart step follows KG Collection styling. */
body.woocommerce-cart #ast-checkout-wrap .ast-current p {
    color: var(--kgc-text) !important;
}

body.woocommerce-cart #ast-checkout-wrap .ast-current .ast-step-number {
    background: var(--kgc-text) !important;
    border-color: var(--kgc-text) !important;
    color: #fff !important;
}

/* More room for order summary / shipping. */
body.woocommerce-cart .woocommerce-cart-form {
    width: calc(100% - 440px) !important;
}

body.woocommerce-cart .cart-collaterals {
    width: 400px !important;
}

/* Tablet/mobile remain one column. */
@media (max-width: 1024px) {
    body.woocommerce-cart .woocommerce-cart-form,
    body.woocommerce-cart .cart-collaterals {
        width: 100% !important;
    }
}

@media (max-width: 700px) {

    body.woocommerce-cart .site-content > .ast-container {
        padding-top: 24px !important;
    }

    body.woocommerce-cart #ast-checkout-wrap {
        margin-bottom: 24px !important;
    }

    body.woocommerce-cart #ast-checkout-wrap li p {
        font-size: 12px !important;
    }

    body.woocommerce-cart #ast-checkout-wrap .ast-step-number {
        width: 24px !important;
        height: 24px !important;
        min-width: 24px !important;
        margin-right: 5px !important;
        font-size: 11px !important;
        line-height: 24px !important;
    }

    body.woocommerce-cart #ast-checkout-wrap .ahfb-svg-iconset {
        margin: 0 6px !important;
    }

    body.woocommerce-cart #ast-checkout-wrap svg {
        width: 10px !important;
        height: 10px !important;
    }
}

/* =========================================================
   KG COLLECTION — CHECKOUT V2
   Shared layout for Norwegian + English checkout
   ========================================================= */

/* Checkout uses the full storefront width — no shop sidebar. */
body.woocommerce-checkout:not(.woocommerce-order-received) #secondary {
    display: none !important;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #primary {
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    margin: 0 !important;
    border: 0 !important;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .site-content > .ast-container {
    max-width: 1240px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* Remove old boxed-page appearance. */
body.woocommerce-checkout:not(.woocommerce-order-received) .site-main,
body.woocommerce-checkout:not(.woocommerce-order-received) article,
body.woocommerce-checkout:not(.woocommerce-order-received) .entry-content {
    background: transparent;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .entry-content {
    margin: 0;
}

/* Hide the small duplicate page title.
   Astra's checkout heading remains as the main title. */
body.woocommerce-checkout:not(.woocommerce-order-received) .entry-content > h1:first-of-type {
    display: none;
}

/* Checkout progress */
body.woocommerce-checkout:not(.woocommerce-order-received) #ast-checkout-wrap {
    max-width: 760px;
    margin: 28px auto 38px;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #ast-checkout-wrap ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #ast-checkout-wrap li p {
    font-size: 15px;
    font-weight: 600;
}

/* Main checkout form: details + order summary */
body.woocommerce-checkout:not(.woocommerce-order-received)
form.checkout.woocommerce-checkout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(360px, .85fr);
    column-gap: 32px;
    align-items: start;
}

/* Customer details */
body.woocommerce-checkout:not(.woocommerce-order-received)
form.checkout #customer_details {
    width: auto !important;
    float: none !important;
    margin: 0 !important;
    padding: 28px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, .05);
}

/* Billing + shipping should use the full left card */
body.woocommerce-checkout:not(.woocommerce-order-received)
#customer_details .col-1,
body.woocommerce-checkout:not(.woocommerce-order-received)
#customer_details .col-2 {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
#customer_details .col-2 {
    margin-top: 24px !important;
}

/* Section headings */
body.woocommerce-checkout:not(.woocommerce-order-received)
#customer_details h3,
body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review_heading {
    margin: 0 0 22px;
    padding: 0 0 14px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
}

/* Modern fields */
body.woocommerce-checkout:not(.woocommerce-order-received)
.woocommerce-billing-fields__field-wrapper,
body.woocommerce-checkout:not(.woocommerce-order-received)
.woocommerce-shipping-fields__field-wrapper {
    display: flex;
    flex-wrap: wrap;
    column-gap: 16px;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
.form-row {
    margin-bottom: 14px;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
.form-row-first,
body.woocommerce-checkout:not(.woocommerce-order-received)
.form-row-last {
    width: calc(50% - 8px) !important;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
.form-row-wide {
    width: 100% !important;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
input.input-text,
body.woocommerce-checkout:not(.woocommerce-order-received)
textarea,
body.woocommerce-checkout:not(.woocommerce-order-received)
.select2-container .select2-selection--single {
    min-height: 46px;
    border: 1px solid #d8dde5;
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
input.input-text,
body.woocommerce-checkout:not(.woocommerce-order-received)
textarea {
    padding: 11px 13px;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
textarea {
    min-height: 100px;
    resize: vertical;
}

/* Order summary column */
body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review_heading {
    grid-column: 2;
    grid-row: 1;
    width: auto !important;
    float: none !important;
    margin: 0 !important;
    padding: 24px 26px 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-bottom: 0;
    border-radius: 14px 14px 0 0;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review {
    grid-column: 2;
    grid-row: 1;
    width: auto !important;
    float: none !important;
    margin: 65px 0 0 !important;
    padding: 0 26px 26px !important;
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-top: 0 !important;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, .05);
}

/* Remove old yellow order area. */
body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review table,
body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review table th,
body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review table td,
body.woocommerce-checkout:not(.woocommerce-order-received)
#payment {
    background: transparent !important;
}

/* Order table */
body.woocommerce-checkout:not(.woocommerce-order-received)
.woocommerce-checkout-review-order-table {
    margin: 0 0 20px;
    border: 0;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
.woocommerce-checkout-review-order-table th,
body.woocommerce-checkout:not(.woocommerce-order-received)
.woocommerce-checkout-review-order-table td {
    padding: 14px 4px;
    border-bottom: 1px solid #edf0f3;
    vertical-align: top;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
.woocommerce-checkout-review-order-table td:last-child,
body.woocommerce-checkout:not(.woocommerce-order-received)
.woocommerce-checkout-review-order-table th:last-child {
    text-align: right;
}

/* Shipping methods */
body.woocommerce-checkout:not(.woocommerce-order-received)
#shipping_method {
    margin: 4px 0 0;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
#shipping_method li {
    margin: 8px 0;
    line-height: 1.45;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
#shipping_method label {
    font-size: 14px;
}

/* Payment / notices */
body.woocommerce-checkout:not(.woocommerce-order-received)
#payment {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e5e7eb;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
#payment .woocommerce-info,
body.woocommerce-checkout:not(.woocommerce-order-received)
#payment .woocommerce-error,
body.woocommerce-checkout:not(.woocommerce-order-received)
#payment .woocommerce-message {
    border-radius: 8px;
}

/* Place order button */
body.woocommerce-checkout:not(.woocommerce-order-received)
#place_order {
    width: 100%;
    min-height: 50px;
    margin-top: 14px;
    border-radius: 8px;
    font-weight: 700;
    letter-spacing: .02em;
}

/* Free-shipping progress notice */
body.woocommerce-checkout:not(.woocommerce-order-received)
.flexible-shipping-free-shipping-notice-container {
    margin: 0 0 28px;
    padding: 16px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
}

/* Tablet */
@media (max-width: 921px) {

    body.woocommerce-checkout:not(.woocommerce-order-received)
    form.checkout.woocommerce-checkout {
        grid-template-columns: 1fr;
        row-gap: 24px;
    }

    body.woocommerce-checkout:not(.woocommerce-order-received)
    #order_review_heading {
        grid-column: 1;
        grid-row: auto;
        margin-bottom: -24px !important;
    }

    body.woocommerce-checkout:not(.woocommerce-order-received)
    #order_review {
        grid-column: 1;
        grid-row: auto;
        margin-top: 0 !important;
    }
}

/* Mobile */
@media (max-width: 600px) {

    body.woocommerce-checkout:not(.woocommerce-order-received)
    .site-content > .ast-container {
        padding-left: 14px;
        padding-right: 14px;
    }

    body.woocommerce-checkout:not(.woocommerce-order-received)
    form.checkout #customer_details {
        padding: 20px 16px;
        border-radius: 10px;
    }

    body.woocommerce-checkout:not(.woocommerce-order-received)
    .form-row-first,
    body.woocommerce-checkout:not(.woocommerce-order-received)
    .form-row-last {
        width: 100% !important;
    }

    body.woocommerce-checkout:not(.woocommerce-order-received)
    #order_review_heading {
        padding: 20px 18px 14px;
        border-radius: 10px 10px 0 0;
    }

    body.woocommerce-checkout:not(.woocommerce-order-received)
    #order_review {
        padding: 0 18px 20px !important;
        border-radius: 0 0 10px 10px;
    }

    body.woocommerce-checkout:not(.woocommerce-order-received)
    #ast-checkout-wrap {
        margin: 20px auto 28px;
    }

    body.woocommerce-checkout:not(.woocommerce-order-received)
    #ast-checkout-wrap li p {
        font-size: 12px;
    }
}


/* =========================================================
   KG COLLECTION — CHECKOUT V2 POLISH
   ========================================================= */

/* Hide Astra/legacy page entry title on both NB + EN. */
body.woocommerce-checkout:not(.woocommerce-order-received) .entry-header {
    display: none !important;
}

/* Keep only the H1 inside page content as our main title. */
body.woocommerce-checkout:not(.woocommerce-order-received)
.entry-content > h1:first-of-type {
    display: block !important;
    max-width: 1240px;
    margin: 26px auto 18px !important;
    padding: 0;
    color: #171717 !important;
    font-size: 38px !important;
    line-height: 1.15;
    font-weight: 700;
}

/* Progress directly below title and keep desktop labels on one line. */
body.woocommerce-checkout:not(.woocommerce-order-received)
#ast-checkout-wrap {
    max-width: 760px;
    margin: 0 auto 34px !important;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
#ast-checkout-wrap ul {
    flex-wrap: nowrap !important;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
#ast-checkout-wrap li {
    white-space: nowrap;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
#ast-checkout-wrap li p {
    white-space: nowrap;
    margin: 0;
}

/* Give order summary a little more room. */
body.woocommerce-checkout:not(.woocommerce-order-received)
form.checkout.woocommerce-checkout {
    grid-template-columns: minmax(0, 1.55fr) minmax(390px, .95fr);
    gap: 32px;
}

/* Keep shipping labels readable inside order summary. */
body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review #shipping_method li {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 6px;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review #shipping_method label {
    white-space: normal;
}

/* Tablet/mobile remains one column. */
@media (max-width: 921px) {

    body.woocommerce-checkout:not(.woocommerce-order-received)
    form.checkout.woocommerce-checkout {
        grid-template-columns: 1fr;
    }

    body.woocommerce-checkout:not(.woocommerce-order-received)
    .entry-content > h1:first-of-type {
        font-size: 32px !important;
    }
}

@media (max-width: 600px) {

    body.woocommerce-checkout:not(.woocommerce-order-received)
    .entry-content > h1:first-of-type {
        margin-top: 20px !important;
        font-size: 28px !important;
    }

    body.woocommerce-checkout:not(.woocommerce-order-received)
    #ast-checkout-wrap ul {
        gap: 6px;
    }

    body.woocommerce-checkout:not(.woocommerce-order-received)
    #ast-checkout-wrap li {
        white-space: normal;
    }

    body.woocommerce-checkout:not(.woocommerce-order-received)
    #ast-checkout-wrap li p {
        white-space: normal;
    }
}



/* =========================================================
   KG Collection V2 — Checkout order summary polish
   ========================================================= */

/* Give the order table a clean, consistent rhythm. */
body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review .woocommerce-checkout-review-order-table {
    width: 100%;
    margin-bottom: 18px;
    border-collapse: collapse;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review .woocommerce-checkout-review-order-table th,
body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review .woocommerce-checkout-review-order-table td {
    padding: 16px 0;
}

/* Product column gets most of the available width. */
body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review .product-name {
    width: 68%;
    padding-right: 18px;
    line-height: 1.55;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review .product-total {
    width: 32%;
    white-space: nowrap;
}

/* Subtotal / shipping / total labels. */
body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review tfoot th {
    width: 34%;
    padding-right: 16px;
    text-align: left;
    font-weight: 500;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review tfoot td {
    width: 66%;
    text-align: right;
}

/* Shipping options: clean vertical list. */
body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review #shipping_method {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    margin: 0;
    padding: 0;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review #shipping_method li {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;

    width: 100%;
    margin: 0;
    padding: 5px 0;

    list-style: none;
    line-height: 1.4;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review #shipping_method input[type="radio"] {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin: 0;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review #shipping_method label {
    flex: 1 1 auto;
    margin: 0;
    padding: 0;

    color: #222;
    font-size: 15px;
    line-height: 1.4;
    text-align: left;
    white-space: normal;
    cursor: pointer;
}

/* Make the final total visually distinct. */
body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review .order-total th,
body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review .order-total td {
    padding-top: 20px;
    padding-bottom: 20px;
    border-top: 1px solid #dfe3e8;
    font-weight: 700;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review .order-total .woocommerce-Price-amount {
    font-size: 19px;
    font-weight: 700;
}

/* Keep amounts from breaking over multiple lines. */
body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review .woocommerce-Price-amount {
    white-space: nowrap;
}


/* Mobile order summary. */
@media (max-width: 600px) {

    body.woocommerce-checkout:not(.woocommerce-order-received)
    #order_review .woocommerce-checkout-review-order-table th,
    body.woocommerce-checkout:not(.woocommerce-order-received)
    #order_review .woocommerce-checkout-review-order-table td {
        padding-top: 14px;
        padding-bottom: 14px;
    }

    body.woocommerce-checkout:not(.woocommerce-order-received)
    #order_review .product-name {
        width: 64%;
        padding-right: 12px;
    }

    body.woocommerce-checkout:not(.woocommerce-order-received)
    #order_review .product-total {
        width: 36%;
    }

    body.woocommerce-checkout:not(.woocommerce-order-received)
    #order_review #shipping_method label {
        font-size: 14px;
    }
}


/* =========================================================
   KG Collection V2 — Checkout shipping row
   Put shipping methods below the Shipping/Leveranse heading.
   ========================================================= */

body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review tr.woocommerce-shipping-totals.shipping {
    display: table-row;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review tr.woocommerce-shipping-totals.shipping > th,
body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review tr.woocommerce-shipping-totals.shipping > td {
    display: block;
    width: 100% !important;
    box-sizing: border-box;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review tr.woocommerce-shipping-totals.shipping > th {
    padding: 18px 0 7px;
    border-bottom: 0;
    font-weight: 600;
    text-align: left;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review tr.woocommerce-shipping-totals.shipping > td {
    padding: 0 0 17px;
    text-align: left;
    border-bottom: 1px solid #edf0f3;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review tr.woocommerce-shipping-totals.shipping #shipping_method {
    width: 100%;
    margin: 0;
    padding: 0;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review tr.woocommerce-shipping-totals.shipping #shipping_method li {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 36px;
    margin: 0;
    padding: 6px 0;
    gap: 10px;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review tr.woocommerce-shipping-totals.shipping #shipping_method input[type="radio"] {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 0;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review tr.woocommerce-shipping-totals.shipping #shipping_method label {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: space-between;
    gap: 14px;

    width: auto;
    margin: 0;
    padding: 0;

    font-size: 15px;
    line-height: 1.4;
    text-align: left;
    white-space: normal;
}

/* Keep the price at the right when Woo outputs it as a price element. */
body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review tr.woocommerce-shipping-totals.shipping
#shipping_method label .woocommerce-Price-amount {
    margin-left: auto;
    white-space: nowrap;
    font-weight: 600;
}


/* Mobile */
@media (max-width: 600px) {

    body.woocommerce-checkout:not(.woocommerce-order-received)
    #order_review tr.woocommerce-shipping-totals.shipping
    #shipping_method label {
        font-size: 14px;
        gap: 8px;
    }
}


/* KG Collection V2 — keep desktop checkout progress compact. */
@media (min-width: 922px) {

    body.woocommerce-checkout:not(.woocommerce-order-received)
    #ast-checkout-wrap {
        max-width: 820px;
    }

    body.woocommerce-checkout:not(.woocommerce-order-received)
    #ast-checkout-wrap ul {
        display: flex;
        flex-wrap: nowrap !important;
        align-items: center;
        justify-content: center;
    }

    body.woocommerce-checkout:not(.woocommerce-order-received)
    #ast-checkout-wrap li,
    body.woocommerce-checkout:not(.woocommerce-order-received)
    #ast-checkout-wrap li p {
        white-space: nowrap !important;
    }
}


/* =========================================================
   KG Collection V2 — final checkout shipping method layout
   ========================================================= */

body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review tr.woocommerce-shipping-totals.shipping
#shipping_method li {
    position: relative;
    display: grid !important;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: center;
    column-gap: 10px;

    width: 100%;
    margin: 0;
    padding: 7px 0;
}

/* Reset Astra/Woo positioning so the radio gets its own column. */
body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review tr.woocommerce-shipping-totals.shipping
#shipping_method input[type="radio"] {
    position: static !important;
    float: none !important;

    grid-column: 1;
    width: 17px !important;
    height: 17px !important;
    margin: 0 !important;
    padding: 0 !important;

    transform: none !important;
}

/* Label occupies the complete second column. */
body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review tr.woocommerce-shipping-totals.shipping
#shipping_method label {
    grid-column: 2;

    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 16px;

    width: 100%;
    margin: 0 !important;
    padding: 0 !important;

    line-height: 1.4;
    text-align: left;
}

/* Method name on the left. */
body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review .kgc-shipping-name {
    min-width: 0;
    text-align: left;
}

/* Price / Free on the right. */
body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review .kgc-shipping-value {
    justify-self: end;
    text-align: right;
    white-space: nowrap;
    font-weight: 600;
}


/* Mobile */
@media (max-width: 600px) {

    body.woocommerce-checkout:not(.woocommerce-order-received)
    #order_review tr.woocommerce-shipping-totals.shipping
    #shipping_method label {
        column-gap: 10px;
    }
}


/* =========================================================
   KG Collection V2 — Boutique checkout polish
   Palette:
   Burgundy  #6f263d
   Gold      #c7a56a
   Cream     #faf7f3
   Ink       #211d1e
   ========================================================= */

body.woocommerce-checkout:not(.woocommerce-order-received) {
    background: #faf7f3;
    color: #211d1e;
}

/* ---------- Desktop proportions ---------- */

@media (min-width: 922px) {

    body.woocommerce-checkout:not(.woocommerce-order-received)
    form.checkout.woocommerce-checkout {
        grid-template-columns: minmax(0, 1.12fr) minmax(500px, .88fr);
        gap: 32px;
    }
}


/* ---------- Main cards ---------- */

body.woocommerce-checkout:not(.woocommerce-order-received)
#customer_details,

body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review {
    background: #fff;
    border: 1px solid #eadfd8;
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(48, 31, 35, .06);
}


/* ---------- Headings ---------- */

body.woocommerce-checkout:not(.woocommerce-order-received)
h1,

body.woocommerce-checkout:not(.woocommerce-order-received)
.woocommerce-billing-fields > h3,

body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review_heading {
    color: #6f263d;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review_heading {
    border-bottom: 1px solid #eadfd8;
}


/* ---------- Form fields ---------- */

body.woocommerce-checkout:not(.woocommerce-order-received)
input.input-text,

body.woocommerce-checkout:not(.woocommerce-order-received)
textarea,

body.woocommerce-checkout:not(.woocommerce-order-received)
.select2-selection {
    background: #fff;
    border-color: #ddd3cd !important;
    transition:
        border-color .18s ease,
        box-shadow .18s ease;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
input.input-text:focus,

body.woocommerce-checkout:not(.woocommerce-order-received)
textarea:focus,

body.woocommerce-checkout:not(.woocommerce-order-received)
.select2-container--focus .select2-selection {
    border-color: #c7a56a !important;
    box-shadow: 0 0 0 3px rgba(199, 165, 106, .16);
    outline: none;
}


/* ---------- Order table ---------- */

body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review .woocommerce-checkout-review-order-table th {
    color: #6f263d;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review .woocommerce-checkout-review-order-table th,

body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review .woocommerce-checkout-review-order-table td {
    border-color: #eee5df;
}

/* Give product text more room. */
body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review .product-name {
    width: 74% !important;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review .product-total {
    width: 26% !important;
    white-space: nowrap;
}


/* ---------- Shipping methods ---------- */

body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review tr.woocommerce-shipping-totals.shipping
#shipping_method {
    display: grid !important;
    gap: 8px;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review tr.woocommerce-shipping-totals.shipping
#shipping_method li {
    position: relative !important;

    display: grid !important;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: center;
    column-gap: 11px;

    min-height: 46px;
    padding: 9px 12px !important;

    background: #fdfbf9;
    border: 1px solid #eadfd8;
    border-radius: 11px;

    transition:
        border-color .18s ease,
        background .18s ease,
        box-shadow .18s ease;
}


/* Hide browser/Astra radio visually but keep it functional. */
body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review tr.woocommerce-shipping-totals.shipping
#shipping_method input.shipping_method[type="radio"] {
    position: static !important;
    appearance: none !important;
    -webkit-appearance: none !important;

    display: block !important;
    grid-column: 1;

    width: 17px !important;
    height: 17px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 1.5px solid #a99d97 !important;
    border-radius: 50% !important;
    background: #fff !important;

    box-shadow: none !important;
    transform: none !important;
}


/* Selected radio. */
body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review tr.woocommerce-shipping-totals.shipping
#shipping_method input.shipping_method[type="radio"]:checked {
    border: 5px solid #6f263d !important;
    background: #fff !important;
}


/* Highlight selected shipping row where supported. */
body.woocommerce-checkout:not(.woocommerce-order-received)
#shipping_method li:has(input.shipping_method:checked) {
    background: #fbf5f6;
    border-color: #c7a56a;
    box-shadow: 0 3px 12px rgba(111, 38, 61, .06);
}


/* Shipping label. */
body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review tr.woocommerce-shipping-totals.shipping
#shipping_method label {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 18px;

    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;

    color: #211d1e;
    cursor: pointer;
}


/* Shipping price / Free. */
body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review .kgc-shipping-value {
    color: #6f263d;
    font-weight: 700;
}


/* ---------- Total ---------- */

body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review .order-total th,

body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review .order-total td {
    color: #6f263d;
    border-top: 2px solid #c7a56a;
}


/* ---------- Place order ---------- */

body.woocommerce-checkout:not(.woocommerce-order-received)
#place_order {
    background: #6f263d !important;
    border: 1px solid #6f263d !important;
    border-radius: 10px !important;
    color: #fff !important;

    font-weight: 700;
    letter-spacing: .02em;

    box-shadow: 0 5px 16px rgba(111, 38, 61, .18);

    transition:
        background .18s ease,
        transform .18s ease,
        box-shadow .18s ease;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
#place_order:hover {
    background: #572032 !important;
    border-color: #572032 !important;
    transform: translateY(-1px);
    box-shadow: 0 7px 20px rgba(111, 38, 61, .24);
}


/* ---------- Links / small accents ---------- */

body.woocommerce-checkout:not(.woocommerce-order-received)
a:not(.button) {
    color: #6f263d;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
a:not(.button):hover {
    color: #572032;
}


/* ---------- Mobile ---------- */

@media (max-width: 921px) {

    body.woocommerce-checkout:not(.woocommerce-order-received)
    #customer_details,

    body.woocommerce-checkout:not(.woocommerce-order-received)
    #order_review {
        border-radius: 14px;
    }
}

@media (max-width: 600px) {

    body.woocommerce-checkout:not(.woocommerce-order-received)
    #order_review .product-name {
        width: 68% !important;
    }

    body.woocommerce-checkout:not(.woocommerce-order-received)
    #order_review .product-total {
        width: 32% !important;
    }

    body.woocommerce-checkout:not(.woocommerce-order-received)
    #order_review tr.woocommerce-shipping-totals.shipping
    #shipping_method li {
        padding: 9px 10px !important;
    }
}


/* =========================================================
   KG Collection V2 — Astra shipping radio alignment fix
   Astra adds padding-left:22px + text-indent:-22px.
   ========================================================= */

body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review tr.woocommerce-shipping-totals.shipping
#shipping_method li {
    padding-left: 0 !important;
    text-indent: 0 !important;
}

body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review tr.woocommerce-shipping-totals.shipping
#shipping_method input.shipping_method {
    position: static !important;
    float: none !important;
    margin: 0 !important;
    transform: none !important;
}


/* =========================================================
   KG Collection V2 — polished shipping selector
   ========================================================= */

body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review tr.woocommerce-shipping-totals.shipping
#shipping_method li {
    min-height: 48px;
    padding: 9px 12px !important;
    text-indent: 0 !important;

    border: 1px solid #eadfd8;
    border-radius: 11px;
    background: #fff;
    transition:
        border-color .18s ease,
        background-color .18s ease,
        box-shadow .18s ease;
}

/* Radio — clean outer circle */
body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review
#shipping_method input.shipping_method[type="radio"] {
    position: relative !important;
    appearance: none !important;
    -webkit-appearance: none !important;

    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 1.5px solid #a99d97 !important;
    border-radius: 50% !important;
    background: #fff !important;
    box-shadow: none !important;

    cursor: pointer;
}

/* Selected radio — small burgundy centre dot */
body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review
#shipping_method input.shipping_method[type="radio"]:checked {
    border-color: #6f263d !important;
    background:
        radial-gradient(
            circle at center,
            #6f263d 0,
            #6f263d 4px,
            #fff 4.5px,
            #fff 100%
        ) !important;
}

/* Selected shipping card */
body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review
#shipping_method li:has(input.shipping_method:checked) {
    border-color: #c7a56a;
    background: #fdf8f9;
    box-shadow: 0 2px 8px rgba(111, 38, 61, .06);
}

/* Method text */
body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review .kgc-shipping-name {
    font-weight: 500;
    color: #211d1e;
}

/* Price / Gratis */
body.woocommerce-checkout:not(.woocommerce-order-received)
#order_review .kgc-shipping-value {
    font-weight: 600;
    color: #6f263d;
}


/* =========================================================
   KG Collection V2 — Boutique footer palette
   ========================================================= */

.kgc-footer {
    background: #321923 !important;
    color: #e8dee1 !important;
}

.kgc-footer h2,
.kgc-footer h3,
.kgc-footer h4,
.kgc-footer strong {
    color: #ffffff !important;
}

.kgc-footer p {
    color: #e8dee1 !important;
}

.kgc-footer a {
    color: #d7b57a !important;
    transition: color .18s ease;
}

.kgc-footer a:hover,
.kgc-footer a:focus {
    color: #ffffff !important;
}

.kgc-footer-bottom {
    border-top-color: rgba(255,255,255,.12) !important;
    color: #cdbfc4 !important;
}

.kgc-footer-bottom a {
    color: #d7b57a !important;
}

/* ==========================================================
   KG COLLECTION V2 — PRODUCT ARCHIVE FULL WIDTH
   Astra may keep ast-left-sidebar layout even when no
   #secondary sidebar is rendered.
   ========================================================== */

@media (min-width: 922px) {
    body.woocommerce-shop #primary,
    body.tax-product_cat #primary,
    body.tax-product_tag #primary {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        border-left: 0 !important;
        border-right: 0 !important;
    }

    body.woocommerce-shop .site-content > .ast-container,
    body.tax-product_cat .site-content > .ast-container,
    body.tax-product_tag .site-content > .ast-container {
        display: block !important;
    }
}


/* ==========================================================
   KG COLLECTION V2 — COMPACT DESKTOP
   Reduce excessive vertical space without scaling the site.
   ========================================================== */

@media (min-width: 1025px) {

    /* ---------- HEADER ---------- */

    .kgc-topbar .kgc-container {
        min-height: 28px;
    }

    .kgc-header-main {
        min-height: 74px;
        grid-template-columns: 180px minmax(280px, 1fr) auto;
        gap: 30px;
    }

    .kgc-logo img {
        max-width: 160px;
        max-height: 54px;
    }

    .kgc-search .search-field,
    .kgc-search button {
        height: 42px;
    }

    .kgc-actions {
        gap: 20px;
    }

    .kgc-nav .kgc-container {
        min-height: 44px;
        gap: clamp(18px, 2.5vw, 38px);
    }


    /* ---------- HOME ---------- */

    .kgc-home-section {
        padding-top: 62px;
        padding-bottom: 62px;
    }

    .kgc-hero {
        padding-top: 26px;
        padding-bottom: 48px;
    }

    .kgc-hero-grid {
        min-height: 450px;
    }

    .kgc-hero-copy {
        padding: clamp(44px, 5vw, 72px);
    }

    .kgc-hero h1 {
        max-width: 560px;
        margin-bottom: 18px;
        font-size: clamp(42px, 4vw, 60px);
        line-height: 1;
    }

    .kgc-hero p {
        margin-bottom: 24px;
        font-size: 16px;
        line-height: 1.6;
    }

    .kgc-hero-image,
    .kgc-hero-image img {
        min-height: 450px;
    }

    .kgc-section-heading {
        margin-bottom: 26px;
    }

    .kgc-feature {
        padding-top: 28px;
        padding-bottom: 62px;
    }

    .kgc-feature-inner {
        min-height: 260px;
        padding: clamp(38px, 4.5vw, 64px);
    }

    .kgc-benefit-grid {
        min-height: 112px;
    }

    .kgc-benefit-grid > div {
        padding-top: 24px;
        padding-bottom: 24px;
    }


    /* ---------- SHOP / PRODUCT ARCHIVES ---------- */

    body.woocommerce-shop .site-main,
    body.tax-product_cat .site-main,
    body.tax-product_tag .site-main {
        padding-top: 24px;
        padding-bottom: 52px;
    }


    /* ---------- CART ---------- */

    body.woocommerce-cart .site-content > .ast-container {
        padding-top: 22px !important;
    }

    body.woocommerce-cart .entry-content > h1 {
        margin-bottom: 18px !important;
        font-size: clamp(30px, 2.6vw, 38px) !important;
    }

    body.woocommerce-cart #ast-checkout-wrap {
        margin-bottom: 22px !important;
    }


    /* ---------- CHECKOUT ---------- */

    body.woocommerce-checkout:not(.woocommerce-order-received)
    .entry-content > h1:first-of-type {
        margin-top: 20px !important;
        margin-bottom: 14px !important;
        font-size: 36px !important;
    }

    body.woocommerce-checkout:not(.woocommerce-order-received)
    #ast-checkout-wrap {
        margin-bottom: 24px !important;
    }
}

/* ==========================================================
   KG COLLECTION V2 — PRODUCT ARCHIVE VERTICAL SPACING
   Remove Astra's desktop 4em #primary margin on shop archives.
   ========================================================== */

@media (min-width: 1025px) {
    body.woocommerce-shop #primary,
    body.tax-product_cat #primary,
    body.tax-product_tag #primary {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
}

/* ==========================================================
   KG COLLECTION V2 — COMPACT PRODUCT ARCHIVE DESKTOP
   ========================================================== */
@media (min-width: 1025px) {

    body.woocommerce-shop .site-main,
    body.tax-product_cat .site-main,
    body.tax-product_tag .site-main {
        padding-top: 20px;
        padding-bottom: 52px;
    }

    body.woocommerce-shop .woocommerce-breadcrumb,
    body.tax-product_cat .woocommerce-breadcrumb,
    body.tax-product_tag .woocommerce-breadcrumb {
        margin-bottom: 12px;
    }

    body.woocommerce-shop .woocommerce-products-header,
    body.tax-product_cat .woocommerce-products-header,
    body.tax-product_tag .woocommerce-products-header {
        margin-bottom: 20px;
    }

    body.woocommerce-shop .woocommerce-products-header__title,
    body.tax-product_cat .woocommerce-products-header__title,
    body.tax-product_tag .woocommerce-products-header__title {
        margin-top: 0;
        margin-bottom: 0;
    }

    body.woocommerce-shop .ast-shop-toolbar-container,
    body.tax-product_cat .ast-shop-toolbar-container,
    body.tax-product_tag .ast-shop-toolbar-container {
        margin-bottom: 24px;
    }

    body.woocommerce-shop .woocommerce-result-count,
    body.tax-product_cat .woocommerce-result-count,
    body.tax-product_tag .woocommerce-result-count {
        margin-top: 0;
        margin-bottom: 0;
    }

    body.woocommerce-shop ul.products,
    body.tax-product_cat ul.products,
    body.tax-product_tag ul.products {
        margin-top: 0 !important;
    }
}

/* KG COLLECTION V2 — hide redundant archive title */
body.woocommerce-shop .woocommerce-products-header,
body.tax-product_cat .woocommerce-products-header,
body.tax-product_tag .woocommerce-products-header {
    display: none;
}

/* KG COLLECTION V2 — WooCommerce archive container spacing
   Override Astra's desktop 5.34em vertical padding on product archives. */
@media (min-width: 1025px) {
    body.woocommerce-shop .ast-woocommerce-container,
    body.tax-product_cat .ast-woocommerce-container,
    body.tax-product_tag .ast-woocommerce-container {
        padding-top: 24px !important;
        padding-bottom: 52px !important;
    }
}

/* KG COLLECTION V2 — final compact product archive spacing */
@media (min-width: 1025px) {

    body.woocommerce-shop .site-main,
    body.tax-product_cat .site-main,
    body.tax-product_tag .site-main {
        padding-top: 12px !important;
    }

    body.woocommerce-shop .ast-woocommerce-container,
    body.tax-product_cat .ast-woocommerce-container,
    body.tax-product_tag .ast-woocommerce-container {
        padding-top: 12px !important;
    }

    body.woocommerce-shop .woocommerce-breadcrumb,
    body.tax-product_cat .woocommerce-breadcrumb,
    body.tax-product_tag .woocommerce-breadcrumb {
        margin-bottom: 8px !important;
    }

    body.woocommerce-shop .ast-shop-toolbar-container,
    body.tax-product_cat .ast-shop-toolbar-container,
    body.tax-product_tag .ast-shop-toolbar-container {
        margin-bottom: 16px !important;
    }
}

/* KG COLLECTION V2 — compact homepage desktop */
@media (min-width: 1025px) {

    .kgc-home-section {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .kgc-hero {
        padding-top: 22px;
        padding-bottom: 38px;
    }

    .kgc-hero-grid {
        min-height: 380px;
    }

    .kgc-hero-copy {
        padding: clamp(34px, 4vw, 54px);
    }

    .kgc-hero h1 {
        max-width: 520px;
        margin-bottom: 16px;
        font-size: clamp(38px, 3.5vw, 52px);
        line-height: 1.02;
    }

    .kgc-hero p {
        margin-bottom: 20px;
        font-size: 15px;
        line-height: 1.55;
    }

    .kgc-hero-image,
    .kgc-hero-image img {
        min-height: 380px;
    }

    .kgc-section-heading {
        margin-bottom: 22px;
    }

    .kgc-feature {
        padding-top: 22px;
        padding-bottom: 48px;
    }

    .kgc-feature-inner {
        min-height: 230px;
        padding: clamp(32px, 4vw, 52px);
    }

    .kgc-benefit-grid {
        min-height: 100px;
    }

    .kgc-benefit-grid > div {
        padding-top: 20px;
        padding-bottom: 20px;
    }
}

/* KG COLLECTION V2 — compact desktop hero image */
@media (min-width: 1025px) {
    .kgc-hero-grid {
        height: 420px;
        min-height: 420px;
    }

    .kgc-hero-copy,
    .kgc-hero-image {
        height: 420px;
        min-height: 0;
    }

    .kgc-hero-image img {
        width: 100%;
        height: 420px;
        min-height: 0;
        object-fit: cover;
    }
}

/* KG COLLECTION V2 — desktop hero image position */
@media (min-width: 1025px) {
    .kgc-hero-image img {
        object-position: center 58%;
    }
}

/* KG COLLECTION V2 — compact space below desktop hero */
@media (min-width: 1025px) {
    .kgc-hero {
        padding-bottom: 16px;
    }

    .kgc-hero + .kgc-home-section {
        padding-top: 16px;
    }
}

/* KG COLLECTION V2 — clickable shipping benefit */
.kgc-benefit-grid > .kgc-benefit-link {
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid var(--kgc-border);
    border-right: 1px solid var(--kgc-border);
    color: inherit;
    text-decoration: none;
    transition: background-color .2s ease;
}

.kgc-benefit-grid > .kgc-benefit-link:hover,
.kgc-benefit-grid > .kgc-benefit-link:focus-visible {
    background: #faf7f3;
    text-decoration: none;
}

@media (max-width: 1024px) {
    .kgc-benefit-grid > .kgc-benefit-link {
        border-bottom: 1px solid var(--kgc-border);
    }
}

/* KG COLLECTION V2 — live product search */
.kgc-search {
    position: relative;
    z-index: 50;
}

.kgc-live-search-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 1000;
    max-height: 480px;
    overflow-y: auto;
    border: 1px solid var(--kgc-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 14px 35px rgba(33, 29, 30, .14);
}

.kgc-live-search-results[hidden] {
    display: none;
}

.kgc-live-search-item {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 76px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--kgc-border);
    color: var(--kgc-text);
    text-decoration: none;
}

.kgc-live-search-item:last-child {
    border-bottom: 0;
}

.kgc-live-search-item:hover,
.kgc-live-search-item:focus,
.kgc-live-search-item.is-active {
    background: #faf7f3;
    color: var(--kgc-text);
    text-decoration: none;
}

.kgc-live-search-item img {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    border-radius: 7px;
    object-fit: cover;
}

.kgc-live-search-content {
    min-width: 0;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
}

.kgc-live-search-content strong {
    overflow: hidden;
    color: var(--kgc-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kgc-live-search-price {
    color: #6f263d;
    font-size: 13px;
    font-weight: 600;
}

.kgc-live-search-empty {
    padding: 18px;
    color: var(--kgc-muted);
    font-size: 13px;
    text-align: center;
}

@media (max-width: 700px) {
    .kgc-live-search-results {
        max-height: 390px;
    }

    .kgc-live-search-item {
        min-height: 68px;
        padding: 8px 10px;
    }

    .kgc-live-search-item img {
        width: 50px;
        height: 50px;
        flex-basis: 50px;
    }
}

/* KG Collection V2 — Flexible Shipping free-shipping progress */
.flexible-shipping-free-shipping-notice-container
.fs-free-shipping-notice-progress-bar {
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: #E9E1D7;
    overflow: hidden;
}

.flexible-shipping-free-shipping-notice-container
.fs-free-shipping-notice-progress-bar > span {
    height: 100%;
    background: #6F263D;
    border-radius: 999px;
}

/* KG Collection V2 — free-shipping progress visibility fix */
.fs-free-shipping-notice-progress-bar {
    border: 1px solid #D8CDBF !important;
    background-color: #E9E1D7 !important;
}

.fs-free-shipping-notice-progress-bar > span {
    background-color: #6F263D !important;
}

/* KG Collection V2 — compact variation size swatches */
.woocommerce div.product form.cart .cfvsw-product-container
.cfvsw-swatches-option.cfvsw-label-option {
    min-width: 48px !important;
    min-height: 42px !important;
    width: 48px;
    height: 42px;
    padding: 4px 8px;
    border-radius: 4px !important;
    font-size: 14px;
    font-weight: 600;
}

.woocommerce div.product form.cart .cfvsw-product-container {
    gap: 8px;
}

/* KG COLLECTION V2 — hero slider */
.kgc-hero-image[data-kgc-hero-slider] {
    position: relative;
}

.kgc-hero-image[data-kgc-hero-slider] .kgc-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity .8s ease,
        visibility .8s ease,
        transform .6s ease;
}

.kgc-hero-image[data-kgc-hero-slider] .kgc-hero-slide.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
}

.kgc-hero-image[data-kgc-hero-slider]:hover .kgc-hero-slide {
    transform: none;
}

.kgc-hero-image[data-kgc-hero-slider]:hover .kgc-hero-slide.is-active {
    transform: scale(1.025);
}

@media (prefers-reduced-motion: reduce) {
    .kgc-hero-image[data-kgc-hero-slider] .kgc-hero-slide {
        transition: none;
    }
}

/* ==========================================================
   KG COLLECTION V2 — WORDPRESS MAIN MENU
   ========================================================== */

.kgc-nav .kgc-main-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(20px, 3vw, 46px);
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.kgc-nav .kgc-main-menu > li {
    position: relative;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    list-style: none;
}

.kgc-nav .kgc-main-menu > li > a {
    display: block;
    padding: 17px 0;
}

/* Dropdown indicator */
.kgc-nav .kgc-main-menu > .menu-item-has-children > a {
    display: flex;
    align-items: center;
    gap: 7px;
}

.kgc-nav .kgc-main-menu > .menu-item-has-children > a::before {
    content: "";
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    order: 2;
}

/* Dropdown */
.kgc-nav .kgc-main-menu .sub-menu {
    position: absolute;
    z-index: 1000;
    top: calc(100% - 1px);
    left: 50%;
    display: grid;
    grid-template-columns: repeat(3, minmax(145px, 1fr));
    gap: 0;
    width: max-content;
    min-width: 520px;
    margin: 0;
    padding: 14px;
    list-style: none;
    background: #fff;
    border: 1px solid var(--kgc-border);
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .10);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 8px);
    transition:
        opacity .18s ease,
        transform .18s ease,
        visibility .18s ease;
}

.kgc-nav .kgc-main-menu .sub-menu li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.kgc-nav .kgc-main-menu .sub-menu a {
    display: block;
    padding: 10px 14px;
    border-radius: 6px;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 500;
}

.kgc-nav .kgc-main-menu .sub-menu a::after {
    display: none;
}

.kgc-nav .kgc-main-menu .sub-menu a:hover,
.kgc-nav .kgc-main-menu .sub-menu a:focus {
    background: var(--kgc-soft);
}

/* Desktop hover + keyboard navigation */
.kgc-nav .kgc-main-menu li:hover > .sub-menu,
.kgc-nav .kgc-main-menu li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

/* Tablet */
@media (max-width: 900px) {
    .kgc-nav .kgc-main-menu {
        justify-content: flex-start;
        gap: 26px;
        width: max-content;
    }

    .kgc-nav .kgc-main-menu .sub-menu {
        left: 0;
        grid-template-columns: repeat(2, minmax(145px, 1fr));
        min-width: 360px;
        transform: translate(0, 8px);
    }

    .kgc-nav .kgc-main-menu li:hover > .sub-menu,
    .kgc-nav .kgc-main-menu li:focus-within > .sub-menu {
        transform: translate(0, 0);
    }
}

/* Mobile */
@media (max-width: 700px) {
    .kgc-nav .kgc-main-menu {
        gap: 22px;
    }

    .kgc-nav .kgc-main-menu > li > a {
        padding: 14px 0;
        font-size: 13px;
    }

    .kgc-nav .kgc-main-menu .sub-menu {
        position: fixed;
        top: auto;
        right: 14px;
        left: 14px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: auto;
        min-width: 0;
        max-height: 60vh;
        overflow-y: auto;
        transform: translateY(8px);
    }

    .kgc-nav .kgc-main-menu li:hover > .sub-menu,
    .kgc-nav .kgc-main-menu li:focus-within > .sub-menu {
        transform: translateY(0);
    }

    .kgc-nav .kgc-main-menu .sub-menu a {
        white-space: normal;
    }
}

/* ==========================================================
   KG COLLECTION V2 — DROPDOWN OVERFLOW FIX
   Allow WordPress submenu to extend below navigation.
   ========================================================== */

@media (min-width: 701px) {
    .kgc-nav .kgc-container {
        overflow: visible;
    }
}

/* ==========================================================
   KG COLLECTION V2 — MOBILE MENU OPEN STATE
   Controlled by kgcollection.js.
   ========================================================== */

@media (max-width: 700px) {
    .kgc-nav .kgc-main-menu > .menu-item-has-children.kgc-menu-open > .sub-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .kgc-nav .kgc-main-menu > .menu-item-has-children.kgc-menu-open > a::before {
        transform: rotate(225deg) translate(-1px, -1px);
    }
}

/* ==========================================================
   KG COLLECTION V2 — SOCIAL MEDIA ICONS
   ========================================================== */

.kgc-social-links {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.kgc-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(111, 38, 61, 0.28);
    border-radius: 50%;
    color: #6F263D;
    background: transparent;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.kgc-social-links a:hover,
.kgc-social-links a:focus-visible {
    color: #fff;
    background: #6F263D;
    border-color: #6F263D;
    transform: translateY(-2px);
}

.kgc-social-links svg {
    display: block;
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.kgc-social-links a:focus-visible {
    outline: 2px solid #C7A56A;
    outline-offset: 3px;
}

@media (max-width: 700px) {
    .kgc-social-links {
        margin-top: 16px;
    }

    .kgc-social-links a {
        width: 38px;
        height: 38px;
    }

    .kgc-social-links svg {
        width: 18px;
        height: 18px;
    }
}

/* =========================================================
   KG Collection V2 — Compact shop filters
   ========================================================= */

.kgc-shop-controls {
    width: 100%;
    margin: 0 0 22px;
}

.kgc-shop-filter {
    width: 100%;
}

.kgc-shop-filter__top {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto auto;
    gap: 10px;
    align-items: center;
}

.kgc-shop-filter__search {
    position: relative;
    display: block;
    margin: 0;
}

.kgc-shop-filter__search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    pointer-events: none;
    font-size: 20px;
    line-height: 1;
    color: #6f263d;
}

.kgc-shop-filter__search input {
    width: 100%;
    height: 46px;
    margin: 0;
    padding: 0 16px 0 43px;
    border: 1px solid rgba(111, 38, 61, .22);
    border-radius: 12px;
    background: #fff;
    color: #211d1e;
    box-shadow: none;
}

.kgc-shop-filter__search input:focus {
    border-color: #6f263d;
    outline: none;
}

.kgc-shop-filter__toggle,
.kgc-shop-filter__orderby {
    height: 46px;
    min-width: 126px;
    margin: 0;
    border: 1px solid rgba(111, 38, 61, .25);
    border-radius: 12px;
    background: #fff;
    color: #211d1e;
    font: inherit;
}

.kgc-shop-filter__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    cursor: pointer;
}

.kgc-shop-filter__toggle:hover,
.kgc-shop-filter__toggle[aria-expanded="true"] {
    border-color: #6f263d;
    background: #faf7f3;
}

.kgc-shop-filter__sort,
.kgc-shop-filter__sort label {
    display: block;
    margin: 0;
}

.kgc-shop-filter__orderby {
    min-width: 180px;
    padding: 0 36px 0 14px;
    cursor: pointer;
}

.kgc-shop-filter__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    margin: 12px 0 0;
}

.kgc-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 5px 10px;
    border: 1px solid rgba(111, 38, 61, .18);
    border-radius: 999px;
    background: #faf7f3;
    color: #6f263d;
    font-size: 13px;
    line-height: 1.25;
    text-decoration: none;
}

.kgc-filter-chip:hover {
    border-color: #6f263d;
    color: #6f263d;
}

.kgc-filter-chip span {
    font-size: 17px;
    line-height: 1;
}

.kgc-shop-filter__clear {
    margin-left: 4px;
    color: #6f263d;
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.kgc-shop-filter__panel {
    display: none;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
    padding: 14px;
    border: 1px solid rgba(111, 38, 61, .16);
    border-radius: 14px;
    background: #faf7f3;
}

.kgc-shop-filter__panel.is-open {
    display: grid;
}

.kgc-filter-section {
    min-width: 0;
    border: 1px solid rgba(111, 38, 61, .14);
    border-radius: 10px;
    background: #fff;
}

.kgc-filter-section summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 44px;
    padding: 10px 12px;
    color: #211d1e;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.kgc-filter-section summary::-webkit-details-marker {
    display: none;
}

.kgc-filter-section summary > span:last-child {
    transition: transform .18s ease;
}

.kgc-filter-section[open] summary > span:last-child {
    transform: rotate(180deg);
}

.kgc-filter-section__body {
    padding: 0 10px 11px;
}

.kgc-filter-section__body label {
    display: block;
    margin: 0;
}

.kgc-filter-section select,
.kgc-filter-section input[type="number"] {
    width: 100%;
    min-height: 40px;
    margin: 0;
    border: 1px solid rgba(111, 38, 61, .18);
    border-radius: 8px;
    background: #fff;
    color: #211d1e;
}

.kgc-filter-section select {
    padding: 0 30px 0 10px;
}

.kgc-filter-section input[type="number"] {
    padding: 0 10px;
}

.kgc-filter-price {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.kgc-filter-price label > span {
    display: block;
    margin: 0 0 4px;
    font-size: 12px;
}

.kgc-shop-filter__stock {
    display: flex !important;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    cursor: pointer;
}

.kgc-shop-filter__stock input {
    width: 17px;
    height: 17px;
    margin: 0;
}

.kgc-shop-filter__actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    padding-top: 2px;
}

.kgc-shop-filter__actions a {
    color: #6f263d;
    text-decoration: none;
}

.kgc-shop-filter__actions button {
    min-height: 42px;
    padding: 8px 20px;
    border: 0;
    border-radius: 10px;
    background: #6f263d;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.kgc-shop-filter__actions button:hover {
    opacity: .92;
}

/*
 * V2 has its own compact ordering control.
 * Keep WooCommerce result count, hide only its duplicate ordering dropdown.
 */
.kgc-v2-active .woocommerce-before-shop-loop .woocommerce-ordering,
.kgc-v2-active .ast-shop-toolbar-container .woocommerce-ordering {
    display: none;
}

@media (max-width: 900px) {
    .kgc-shop-filter__panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .kgc-shop-controls {
        margin-bottom: 16px;
    }

    .kgc-shop-filter__top {
        grid-template-columns: 1fr 1fr;
    }

    .kgc-shop-filter__search {
        grid-column: 1 / -1;
    }

    .kgc-shop-filter__toggle,
    .kgc-shop-filter__orderby {
        width: 100%;
        min-width: 0;
    }

    .kgc-shop-filter__panel {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .kgc-shop-filter__actions {
        justify-content: space-between;
    }

    .kgc-shop-filter__chips {
        margin-top: 10px;
    }
}

/* =========================================================
   KG Collection V2 — Compact filter refinements
   ========================================================= */

/* Compact top row */
.kgc-shop-controls {
    max-width: 820px;
    margin: 0 0 12px;
}

.kgc-shop-filter__top {
    grid-template-columns: minmax(180px, 1fr) auto auto;
    gap: 7px;
}

.kgc-shop-filter__search input,
.kgc-shop-filter__toggle,
.kgc-shop-filter__orderby {
    height: 38px;
    min-height: 38px;
    border-radius: 8px;
    font-size: 13px;
}

.kgc-shop-filter__search input {
    padding-left: 36px;
}

.kgc-shop-filter__search-icon {
    left: 12px;
    font-size: 16px;
}

.kgc-shop-filter__toggle {
    min-width: 92px;
    padding: 0 12px;
    font-size: 13px;
}

.kgc-shop-filter__orderby {
    min-width: 155px;
    padding-left: 10px;
    font-size: 13px;
}

/* Smaller filter panel */
.kgc-shop-filter__panel {
    gap: 7px;
    margin-top: 8px;
    padding: 9px;
    border-radius: 10px;
}

.kgc-filter-section {
    border-radius: 8px;
}

.kgc-filter-section summary {
    min-height: 36px;
    padding: 7px 9px;
    font-size: 13px;
    font-weight: 600;
}

.kgc-filter-section__body {
    padding: 0 8px 8px;
}

.kgc-filter-section select,
.kgc-filter-section input[type="number"] {
    min-height: 34px;
    height: 34px;
    font-size: 12px;
    border-radius: 6px;
}

.kgc-shop-filter__stock {
    min-height: 34px;
    font-size: 12px;
}

.kgc-shop-filter__actions {
    gap: 10px;
}

.kgc-shop-filter__actions a {
    font-size: 12px;
}

.kgc-shop-filter__actions button {
    min-height: 35px;
    padding: 6px 14px;
    border-radius: 7px;
    font-size: 12px;
}

/* Smaller active-filter chips */
.kgc-shop-filter__chips {
    gap: 5px;
    margin-top: 7px;
}

.kgc-filter-chip {
    min-height: 27px;
    padding: 3px 8px;
    font-size: 11px;
}

.kgc-filter-chip span {
    font-size: 14px;
}

.kgc-shop-filter__clear {
    font-size: 11px;
}

/*
 * Hide WooCommerce/Astra's original sorting dropdown.
 * Our compact sorter above remains visible.
 */
.woocommerce .woocommerce-ordering,
.ast-shop-toolbar-container .woocommerce-ordering,
.woocommerce-page .woocommerce-ordering {
    display: none !important;
}

/* Keep result count compact */
.woocommerce .woocommerce-result-count {
    margin: 0 0 10px;
    font-size: 12px;
}

/* Mobile */
@media (max-width: 640px) {
    .kgc-shop-controls {
        max-width: none;
    }

    .kgc-shop-filter__top {
        grid-template-columns: 1fr auto auto;
        gap: 5px;
    }

    .kgc-shop-filter__search {
        grid-column: auto;
    }

    .kgc-shop-filter__toggle {
        width: auto;
        min-width: 72px;
        padding: 0 8px;
    }

    .kgc-shop-filter__orderby {
        width: auto;
        min-width: 118px;
        max-width: 135px;
    }

    .kgc-shop-filter__panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 460px) {
    .kgc-shop-filter__top {
        grid-template-columns: 1fr auto;
    }

    .kgc-shop-filter__search {
        grid-column: 1 / -1;
    }

    .kgc-shop-filter__sort {
        min-width: 0;
    }

    .kgc-shop-filter__orderby {
        width: 100%;
        max-width: none;
    }
}

/* =========================================================
   KG Collection V2 — Ultra compact filter panel
   ========================================================= */

.kgc-shop-filter__panel.is-open {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 6px;
    padding: 7px;
    margin-top: 7px;
}

.kgc-filter-section {
    flex: 0 0 auto;
    width: auto;
    min-width: 120px;
    margin: 0;
}

.kgc-filter-section summary {
    min-height: 34px;
    padding: 6px 10px;
    white-space: nowrap;
}

.kgc-filter-section[open] {
    min-width: 150px;
}

.kgc-filter-section__body {
    padding: 2px 7px 7px;
}

.kgc-filter-section select {
    width: 100%;
    min-width: 130px;
}

.kgc-filter-section__price {
    display: flex;
    gap: 5px;
}

.kgc-filter-section__price label {
    min-width: 70px;
}

.kgc-filter-section__price input {
    width: 76px;
}

/* Actions belong on the same row as the filters */
.kgc-shop-filter__actions {
    display: flex;
    align-items: center;
    align-self: flex-start;
    gap: 7px;
    margin: 0 0 0 auto;
    padding: 0;
}

.kgc-shop-filter__actions button {
    height: 34px;
    min-height: 34px;
    margin: 0;
    padding: 0 13px;
    white-space: nowrap;
}

.kgc-shop-filter__actions a {
    white-space: nowrap;
}

/* Don't reserve vertical space below the filter controls */
.kgc-shop-filter__panel {
    min-height: 0;
}

/* Active chips stay compact above the panel */
.kgc-shop-filter__chips {
    margin: 6px 0 0;
}

/* Mobile remains stacked and touch friendly */
@media (max-width: 700px) {
    .kgc-shop-filter__panel.is-open {
        align-items: stretch;
    }

    .kgc-filter-section,
    .kgc-filter-section[open] {
        flex: 1 1 calc(50% - 4px);
        min-width: 0;
    }

    .kgc-shop-filter__actions {
        flex: 1 1 100%;
        justify-content: flex-end;
        margin-left: 0;
    }
}

@media (max-width: 460px) {
    .kgc-filter-section,
    .kgc-filter-section[open] {
        flex-basis: 100%;
    }
}
