/* ============================================================
   KianFan theme refresh
   - Teal accent palette (replaces the previous orange)
   - Subtle, modern polish: rounded buttons/cards, soft shadows,
     smooth hover transitions.
   Loaded last (after the locale main stylesheet) for all locales.
   ============================================================ */

:root {
    --kf-accent:        #0d9488; /* primary accent (teal-600)  */
    --kf-accent-dark:   #0f766e; /* hover / pressed (teal-700) */
    --kf-accent-darker: #115e59; /* deepest (teal-800)         */
    --kf-accent-tint:   #eafaf7; /* light background tint      */
}

/* ---- Smooth interactions site-wide ---- */
a,
.sc-button,
.btn-button,
.button-boxs,
button,
input[type="submit"] {
    transition: color .25s ease, background-color .25s ease,
                border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

/* ---- Buttons: rounded corners + hover lift ---- */
.sc-button,
.btn-button,
.button-boxs,
input[type="submit"] {
    border-radius: 10px !important;
}

.sc-button:hover,
.btn-button:hover,
.button-boxs:hover,
input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 148, 136, .28);
}

/* ---- Scroll-to-top button ---- */
#scroll-top.button-go {
    border-radius: 12px !important;
    box-shadow: 0 6px 18px rgba(13, 148, 136, .35);
}

/* ---- Blog cards: soft rounding, shadow, hover lift ---- */
.post {
    transition: transform .25s ease, box-shadow .25s ease;
    border-radius: 14px;
}

.post:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(18, 10, 33, .10);
}

.post img {
    border-radius: 12px;
}

/* ---- Product / slider items: gentle hover lift ---- */
.wrap-item,
.slider-item {
    transition: transform .25s ease, box-shadow .25s ease;
}

.wrap-item:hover,
.slider-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(18, 10, 33, .10);
}

/* ==========================================================
   Shop: price display, badges and buttons
   ========================================================== */
.shop-price-box {
    background: #fff;
    border: 1px solid #ece9f1;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(18, 10, 33, .06);
}

.shop-price-box__row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.shop-price-box__row:last-child {
    margin-bottom: 0;
}

.shop-price-box__label {
    font-size: 14px;
    color: #8e8e93;
}

.shop-price-box__amount {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    font-size: 26px;
    line-height: 1.4;
    color: #1a1a2e;
}

.shop-price-box__amount--ask {
    font-size: 20px;
    color: #6b6b74;
}

.shop-price-box__currency {
    font-size: 14px;
    color: #8e8e93;
}

.shop-price-box__was {
    font-size: 16px;
    color: #a5a5ad;
}

.shop-price-box__hint {
    font-size: 13px;
    color: #d9534f;
}

.shop-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.shop-badge--sale {
    background: #fdecea;
    color: #c9302c;
}

.shop-badge--in {
    background: #e8f6ed;
    color: #1e7e42;
}

.shop-badge--out {
    background: #f1f1f3;
    color: #6b6b74;
}

.shop-btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 13px 22px;
    border: 0;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s ease, transform .2s ease;
}

.shop-btn:hover {
    opacity: .9;
    transform: translateY(-2px);
}

.shop-btn--ask {
    background: #1a1a2e;
    color: #fff;
}

.shop-btn--ask:hover {
    color: #fff;
}

/* Compact price line on listing cards */
.shop-price-tag {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 8px;
    font-size: 18px;
    color: #1a1a2e;
}

.shop-price-tag__was {
    font-size: 14px;
    color: #a5a5ad;
}

.shop-price-tag__currency {
    font-size: 13px;
    color: #8e8e93;
}

.shop-price-tag__ask {
    font-size: 15px;
    color: #6b6b74;
}

/* ---- Shop: cart ---- */
.shop-flash {
    margin: 18px 0;
    padding: 13px 18px;
    border-radius: 10px;
    font-size: 15px;
}

.shop-flash--success {
    background: #e8f6ed;
    color: #1e7e42;
    border: 1px solid #bfe6cd;
}

.shop-flash--error {
    background: #fdecea;
    color: #c9302c;
    border: 1px solid #f5c6c2;
}

.shop-add-form {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.shop-add-form__qty {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: #8e8e93;
}

.shop-add-form__qty input {
    width: 90px;
    padding: 11px 12px;
    border: 1px solid #e3e0e9;
    border-radius: 10px;
    font-size: 15px;
    text-align: center;
    color: #1a1a2e;
}

.shop-add-form .shop-btn {
    width: auto;
    flex: 1 1 180px;
}

.shop-btn--cart {
    background: #2f6df6;
    color: #fff;
}

.shop-btn--cart:hover {
    color: #fff;
}

.shop-btn--inline {
    width: auto;
    padding-inline: 34px;
}

.shop-btn--disabled {
    background: #f1f1f3;
    color: #9a9aa2;
    cursor: not-allowed;
    margin-top: 14px;
}

.shop-btn--disabled:hover {
    transform: none;
    opacity: 1;
}

.shop-cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-inline-end: 16px;
    color: #1a1a2e;
}

.shop-cart-link:hover {
    color: #2f6df6;
}

.shop-cart-link__badge {
    position: absolute;
    top: -8px;
    inset-inline-end: -10px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    background: #2f6df6;
    color: #fff;
    font-size: 11px;
    line-height: 19px;
    text-align: center;
}

.shop-cart-empty {
    padding: 60px 20px;
    text-align: center;
    color: #6b6b74;
}

.shop-cart-empty p {
    margin-bottom: 20px;
    font-size: 17px;
}

.shop-cart__table-wrap {
    overflow-x: auto;
    background: #fff;
    border: 1px solid #ece9f1;
    border-radius: 14px;
}

.shop-cart__table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
}

.shop-cart__table th,
.shop-cart__table td {
    padding: 16px 18px;
    text-align: start;
    vertical-align: middle;
    border-bottom: 1px solid #f2f0f5;
}

.shop-cart__table th {
    font-size: 13px;
    font-weight: 600;
    color: #8e8e93;
}

.shop-cart__table tbody tr:last-child td {
    border-bottom: 0;
}

.shop-cart__product a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1a1a2e;
    font-weight: 600;
}

.shop-cart__product img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
}

.shop-cart__currency {
    font-size: 12px;
    color: #8e8e93;
}

.shop-cart__line-total {
    font-weight: 700;
}

.shop-cart__qty-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.shop-cart__qty-form input {
    width: 74px;
    padding: 9px 10px;
    border: 1px solid #e3e0e9;
    border-radius: 9px;
    text-align: center;
}

.shop-cart__link-btn {
    background: none;
    border: 0;
    padding: 0;
    font-size: 13px;
    color: #2f6df6;
    cursor: pointer;
    text-decoration: underline;
}

.shop-cart__link-btn--danger {
    color: #c9302c;
}

.shop-cart__footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.shop-cart__summary {
    min-width: 300px;
    margin-inline-start: auto;
    padding: 20px 22px;
    background: #fff;
    border: 1px solid #ece9f1;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(18, 10, 33, .06);
}

.shop-cart__subtotal {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 20px;
    color: #1a1a2e;
}

.shop-cart__subtotal span:first-child {
    font-size: 14px;
    color: #8e8e93;
}

.shop-cart__note {
    margin: 12px 0 16px;
    font-size: 13px;
    line-height: 1.9;
    color: #8e8e93;
}

/* ---- Shop: accounts ---- */
.shop-account-link {
    display: inline-flex;
    align-items: center;
    margin-inline-end: 16px;
    color: #1a1a2e;
}

.shop-account-link:hover {
    color: #2f6df6;
}

.shop-auth-card {
    max-width: 460px;
    margin: 0 auto;
    padding: 32px 30px;
    background: #fff;
    border: 1px solid #ece9f1;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(18, 10, 33, .07);
}

.shop-auth-card__title {
    margin-bottom: 10px;
    font-size: 24px;
}

.shop-auth-card__intro {
    margin-bottom: 22px;
    font-size: 14px;
    line-height: 2;
    color: #6b6b74;
}

.shop-auth-card__actions {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #f2f0f5;
}

.shop-field {
    display: block;
    margin-bottom: 18px;
}

.shop-field > span {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    color: #6b6b74;
}

.shop-field input {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #e3e0e9;
    border-radius: 10px;
    font-size: 15px;
    color: #1a1a2e;
    background: #fff;
}

.shop-field input:disabled {
    background: #f7f6f9;
    color: #8e8e93;
}

.shop-field small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #9a9aa2;
}

.shop-field__code {
    letter-spacing: 10px;
    text-align: center;
    font-size: 22px;
}

.shop-cart__link-btn:disabled {
    color: #9a9aa2;
    cursor: default;
    text-decoration: none;
}

.shop-panel {
    padding: 26px 26px;
    margin-bottom: 24px;
    background: #fff;
    border: 1px solid #ece9f1;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(18, 10, 33, .06);
}

.shop-panel__title {
    margin-bottom: 20px;
    font-size: 19px;
}

.shop-panel__empty {
    font-size: 14px;
    color: #8e8e93;
}

.shop-dev-code {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding: 14px 18px;
    border: 1px dashed #d9a441;
    border-radius: 10px;
    background: #fdf6e7;
}

.shop-dev-code strong {
    font-size: 24px;
    letter-spacing: 6px;
    color: #8a5b00;
    direction: ltr;
}

.shop-dev-code span {
    font-size: 12px;
    line-height: 1.8;
    color: #8a6d3b;
}

/* ---- Shop: checkout and orders ---- */
.shop-field textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #e3e0e9;
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.9;
    color: #1a1a2e;
    background: #fff;
    font-family: inherit;
    resize: vertical;
}

.shop-field-row {
    display: flex;
    gap: 14px;
}

.shop-field-row .shop-field {
    flex: 1;
}

.shop-summary {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.shop-summary li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f2f0f5;
    font-size: 14px;
}

.shop-summary__name small {
    color: #8e8e93;
}

.shop-summary__amount {
    white-space: nowrap;
    font-weight: 600;
}

.shop-summary__total {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 16px 0 4px;
    font-size: 20px;
}

.shop-summary__total span:first-child {
    font-size: 14px;
    color: #8e8e93;
}

.shop-cart__continue {
    display: block;
    margin-top: 12px;
    text-align: center;
    font-size: 14px;
    color: #2f6df6;
}

.shop-order-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.shop-order-head__label {
    display: block;
    font-size: 13px;
    color: #8e8e93;
}

.shop-order-head__ref {
    font-size: 22px;
    letter-spacing: 1px;
}

.shop-detail-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.shop-detail-list li {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid #f2f0f5;
    font-size: 14px;
}

.shop-detail-list li:last-child {
    border-bottom: 0;
}

.shop-detail-list span {
    color: #8e8e93;
    white-space: nowrap;
}

.shop-detail-list strong {
    text-align: end;
}

.shop-order-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 0;
    border-bottom: 1px solid #f2f0f5;
    color: #1a1a2e;
}

.shop-order-row:last-child {
    border-bottom: 0;
}

.shop-order-row:hover {
    color: #2f6df6;
}

.shop-order-row__ref {
    font-weight: 700;
    letter-spacing: 1px;
}

.shop-order-row__total {
    font-size: 14px;
    color: #6b6b74;
}

/* ---- Shop: category grid on the home page ---- */
.shop-categories-section {
    padding: 10px 0 40px;
}

.shop-categories__intro {
    max-width: 640px;
    margin: 10px auto 0;
    color: #6b6b74;
    line-height: 2;
}

.shop-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 22px;
    margin: 34px 0 30px;
}

.shop-category-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid #ece9f1;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(18, 10, 33, .06);
    color: #1a1a2e;
    transition: transform .25s ease, box-shadow .25s ease;
}

.shop-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 38px rgba(18, 10, 33, .12);
    color: #1a1a2e;
}

.shop-category-card__image {
    display: block;
    height: 180px;
    background: #f7f6f9;
}

.shop-category-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-category-card__body {
    display: block;
    padding: 16px 18px 20px;
}

.shop-category-card__name {
    display: block;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.7;
}

.shop-category-card__count {
    display: inline-block;
    margin-top: 7px;
    padding: 3px 11px;
    border-radius: 999px;
    background: #eef3fe;
    color: #2f6df6;
    font-size: 12px;
}

.shop-category-card__children {
    display: block;
    margin-top: 9px;
    font-size: 12.5px;
    line-height: 1.9;
    color: #8e8e93;
}

/* The category name printed on a product card, now a real link. */
.shop-card-category {
    color: #2f6df6;
}

.shop-card-category:hover {
    text-decoration: underline;
}

/* ---- Shop: product detail extras ---- */
.shop-breadcrumb a,
.shop-breadcrumb span {
    display: inline-block;
}

.shop-breadcrumb a:not(:last-child)::after,
.shop-breadcrumb a::after {
    content: "›";
    margin: 0 8px;
    color: #b9b9c1;
}

.shop-breadcrumb span::after {
    content: none;
}

.shop-product-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.shop-product-cats a {
    padding: 5px 13px;
    border-radius: 999px;
    background: #eef3fe;
    color: #2f6df6;
    font-size: 12.5px;
}

.shop-product-cats a:hover {
    background: #2f6df6;
    color: #fff;
}

.shop-product-sku {
    margin-bottom: 16px;
    font-size: 13px;
    color: #8e8e93;
}

/* ---- Shop: listing header and category filter strip ---- */
.shop-listing-head {
    margin-bottom: 18px;
}

.shop-listing-head__title {
    font-size: 30px;
    margin-bottom: 8px;
}

.shop-listing-head__intro {
    max-width: 760px;
    color: #6b6b74;
    line-height: 2;
}

.shop-catnav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
}

.shop-catnav--sub {
    padding-top: 12px;
    border-top: 1px solid #f2f0f5;
}

.shop-catnav__label {
    font-size: 13px;
    color: #8e8e93;
    margin-inline-end: 4px;
}

.shop-catnav__chip {
    padding: 8px 16px;
    border: 1px solid #e3e0e9;
    border-radius: 999px;
    background: #fff;
    color: #1a1a2e;
    font-size: 13.5px;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.shop-catnav__chip:hover {
    border-color: #2f6df6;
    color: #2f6df6;
}

.shop-catnav__chip.is-active {
    background: #2f6df6;
    border-color: #2f6df6;
    color: #fff;
}

.shop-listing-count {
    margin: 6px 0 22px;
    font-size: 13px;
    color: #8e8e93;
}

/* ---- Shop: the long category description, below the products ---- */
.shop-cat-article {
    margin-top: 46px;
    padding: 30px 32px 34px;
    background: #fff;
    border: 1px solid #ece9f1;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(18, 10, 33, .05);
}

.shop-cat-article__heading {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f2f0f5;
    font-size: 23px;
}

.shop-cat-article__body {
    position: relative;
}

.shop-cat-article__body.is-collapsed {
    max-height: 340px;
    overflow: hidden;
}

/* Fade the cut-off edge so it reads as "there is more" rather than "it ended". */
.shop-cat-article__body.is-collapsed::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 130px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 92%);
    pointer-events: none;
}

.shop-cat-article__content {
    font-size: 15px;
    line-height: 2.2;
    color: #4a4a55;
    text-align: justify;
}

.shop-cat-article__content > *:first-child {
    margin-top: 0;
}

.shop-cat-article__content p {
    margin: 0 0 16px;
}

.shop-cat-article__content h2,
.shop-cat-article__content h3,
.shop-cat-article__content h4 {
    margin: 26px 0 12px;
    color: #1a1a2e;
    line-height: 1.8;
}

.shop-cat-article__content h2 { font-size: 20px; }
.shop-cat-article__content h3 { font-size: 18px; }
.shop-cat-article__content h4 { font-size: 16px; }

.shop-cat-article__content ul,
.shop-cat-article__content ol {
    margin: 0 0 18px;
    padding-inline-start: 22px;
}

.shop-cat-article__content li {
    margin-bottom: 8px;
}

.shop-cat-article__content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 12px 0;
}

.shop-cat-article__content a {
    color: #2f6df6;
}

.shop-cat-article__content table {
    width: 100%;
    margin: 16px 0;
    border-collapse: collapse;
    display: block;
    overflow-x: auto;
}

.shop-cat-article__content th,
.shop-cat-article__content td {
    padding: 10px 12px;
    border: 1px solid #ece9f1;
    text-align: start;
}

.shop-cat-article__toggle {
    display: block;
    margin: 18px auto 0;
    padding: 11px 30px;
    border: 1px solid #2f6df6;
    border-radius: 10px;
    background: #fff;
    color: #2f6df6;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.shop-cat-article__toggle:hover {
    background: #2f6df6;
    color: #fff;
}

@media (max-width: 767px) {
    .shop-cat-article {
        padding: 22px 18px 26px;
    }
}

/* ---- Shop: imported rich text on product and article pages ----
   The content arrives as real HTML with headings, lists and tables. It used
   to be printed inside a <p>, which browsers force-close at the first nested
   block element, scattering the layout. It now sits in a div, styled here. */
.shop-rich-text {
    font-size: 15px;
    line-height: 2.2;
    color: #4a4a55;
}

.shop-rich-text > *:first-child {
    margin-top: 0;
}

.shop-rich-text p {
    margin: 0 0 16px;
}

.shop-rich-text h2,
.shop-rich-text h3,
.shop-rich-text h4 {
    margin: 26px 0 12px;
    color: #1a1a2e;
    line-height: 1.8;
}

.shop-rich-text h2 { font-size: 20px; }
.shop-rich-text h3 { font-size: 18px; }
.shop-rich-text h4 { font-size: 16px; }

.shop-rich-text ul,
.shop-rich-text ol {
    margin: 0 0 18px;
    padding-inline-start: 22px;
}

.shop-rich-text li {
    margin-bottom: 8px;
}

.shop-rich-text img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 12px 0;
}

.shop-rich-text a {
    color: #2f6df6;
}

.shop-rich-text table {
    width: 100%;
    margin: 16px 0;
    border-collapse: collapse;
    display: block;
    overflow-x: auto;
}

.shop-rich-text th,
.shop-rich-text td {
    padding: 10px 12px;
    border: 1px solid #ece9f1;
    text-align: start;
}

.shop-rich-text blockquote {
    margin: 16px 0;
    padding: 12px 18px;
    border-inline-start: 3px solid #2f6df6;
    background: #f7f9ff;
}
