/* The Kids Treasure (thekidstreasure.com) — Preloader Craft Treasure Palette & Overrides */
:root {
    --primary-color: #451A03;
    --secondary-color: #FFFFFF;
    --bg-color: #FDF8EE;
    --text-color: #6B4E3D;
    --accent-color: #451A03;
    --accent-secondary-color: #EA580C;
    --treasure-gold: #F59E0B;
    --treasure-gold-bright: #FACC15;
    --treasure-gold-soft: #FEF3C7;
    --treasure-mahogany: #5C1D0C;
    --white-color: #FFFFFF;
    --black-color: #270D02;
    --divider-color: rgba(69, 26, 3, 0.12);
    --dark-divider-color: rgba(254, 240, 138, 0.18);
    --accent-font: "Fredoka", "Mouse Memoirs", sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

.topbar {
    background: linear-gradient(90deg, #451A03 0%, #7C2D12 50%, #451A03 100%) !important;
    border-bottom: 2px solid rgba(250, 204, 21, 0.45);
}

header.main-header .header-sticky {
    background-color: #FFFDF9;
    border-bottom: 1px solid rgba(69, 26, 3, 0.08);
}

.dark-section {
    background-color: #451A03;
}

.main-footer.dark-section {
    background: linear-gradient(180deg, #451A03 0%, #2D1002 100%) !important;
}

.our-limited-deals.dark-section {
    background: linear-gradient(180deg, #451A03 55%, #FDF8EE 45%);
}

.section-sub-title {
    color: #EA580C !important;
}

.btn-default {
    border-color: #451A03;
}

.btn-default::after {
    background: linear-gradient(135deg, #EA580C 0%, #F59E0B 100%) !important;
}

.btn-default.btn-highlighted {
    background: linear-gradient(135deg, #EA580C 0%, #F59E0B 100%) !important;
    border-color: transparent !important;
}

.btn-default.btn-highlighted span {
    color: #FFFFFF !important;
}

.header-search-form .form-group .header-search-btn {
    background: #451A03;
}

.header-search-form .form-group .header-search-btn:hover {
    background: #EA580C;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.navbar-brand img {
    display: block;
    height: 52px !important;
    max-height: 52px !important;
    max-width: 220px !important;
    width: auto !important;
    object-fit: contain;
}

@media (max-width: 767px) {
    .navbar-brand img {
        height: 42px !important;
        max-height: 42px !important;
        max-width: 175px !important;
    }
}

.footer-logo img {
    display: block;
    height: 56px !important;
    max-height: 56px !important;
    max-width: 230px !important;
    width: auto !important;
    object-fit: contain;
}

.breadcrumb { --bs-breadcrumb-divider: "/"; }
.page-header-box ol .breadcrumb-item + .breadcrumb-item::before { content: "/" !important; }
.goog-te-banner-frame.skiptranslate { display: none !important; }
body { top: 0 !important; }
iframe.skiptranslate { display: none !important; visibility: hidden !important; }
#google_translate_element { position: absolute; height: 0; overflow: hidden; clip: rect(0,0,0,0); width: 1px; }

/* Header search suggest dropdown */
.tp-product-search-field-wrap { position: relative; }
.tp-product-suggest-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid rgba(69, 26, 3, 0.12);
    border-radius: 14px;
    box-shadow: 0 14px 35px rgba(69, 26, 3, 0.14);
    z-index: 1050;
    overflow: hidden;
    max-height: 360px;
    overflow-y: auto;
}
.tp-product-suggest-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    text-decoration: none;
    color: var(--primary-color, #451A03);
    border-bottom: 1px solid #f7efe2;
    transition: background-color 0.2s ease;
}
.tp-product-suggest-item:last-child { border-bottom: 0; }
.tp-product-suggest-item:hover { background: #FFF8EB; }
.tp-product-suggest-item img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

/* Cart badge in header */
.tw-cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    background: linear-gradient(135deg, #EA580C 0%, #F59E0B 100%);
    color: #fff;
    margin-left: 4px;
    line-height: 1;
}

/* Product card sale badge & quick cart button */
.product-item { position: relative; border: 1px solid rgba(69, 26, 3, 0.06); }
.product-item.highlighted-box::before { content: none !important; display: none !important; }
.product-item-header { position: relative; }
.tw-sale-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 3;
    background: linear-gradient(135deg, #EA580C 0%, #F59E0B 100%);
    color: var(--white-color, #fff);
    font-size: 13px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
    line-height: normal;
    box-shadow: 0 4px 10px rgba(234, 88, 12, 0.28);
}
.tw-out-of-stock-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 3;
    background: var(--primary-color, #451A03);
    color: #FEF3C7;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
    line-height: normal;
}
@media (max-width: 1300px) {
    .tw-sale-badge {
        font-size: 13px;
        padding: 4px 8px;
        top: 12px;
        left: 12px;
    }
    .tw-out-of-stock-badge {
        top: 12px;
        right: 12px;
    }
}
@media (max-width: 767px) {
    .tw-sale-badge {
        top: 0;
        left: 0;
        font-size: 11px;
        padding: 4px 8px;
        border-radius: 0 0 10px 0;
    }
}
.product-item-action form { display: inline; margin: 0; padding: 0; }
.product-item-action button.tw-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 0;
    background: var(--primary-color, #451A03);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.product-item-action button.tw-action-btn:hover {
    background: var(--accent-secondary-color, #EA580C);
    transform: translateY(-2px);
}
.product-item-action button.tw-action-btn img { width: 18px; height: 18px; }

.product-item-image figure img {
    width: 100%;
    height: 230px;
    object-fit: contain;
}
.collection-item-image figure img {
    width: 100%;
    height: 155px;
    object-fit: cover;
}
.arrivals-item-image figure img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}
.limited-deals-item-image figure img,
.top-deals-item-image figure img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}
.product-brand-pill {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-secondary-color, #EA580C);
    margin-bottom: 4px;
}

/* Filter count pills & active chips */
.tw-filter-count {
    font-size: 12px;
    color: #9A7B69;
    margin-left: auto;
}
.product-category-item ul li {
    display: flex;
    align-items: center;
    gap: 8px;
}
.tw-active-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #FEF3C7;
    border: 1px solid #FDE68A;
    color: #451A03;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}
.tw-active-chip:hover { background: #FDE68A; color: #451A03; }

/* The Kids Treasure Pagination */
.tw-pagination .pagination {
    justify-content: center;
    gap: 6px;
    margin-top: 32px;
}
.tw-pagination .page-link {
    border-radius: 10px !important;
    border: 1px solid rgba(69, 26, 3, 0.14);
    color: #451A03;
    font-weight: 600;
    padding: 8px 14px;
}
.tw-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #451A03 0%, #7C2D12 100%);
    border-color: #451A03;
    color: #FEF08A;
}

/* Offcanvas mini-cart */
.tw-mini-cart-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
    background: #FDF8EE;
}

/* WhatsApp Floating Button */
.tw-whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background-color: #25d366;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
    z-index: 9990;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, background-color 0.25s ease;
    text-decoration: none !important;
}
.tw-whatsapp-float:hover { background-color: #128c7e; transform: scale(1.08); }
.tw-whatsapp-float svg { width: 30px; height: 30px; }

/* Topbar utilities */
.tw-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.tw-topbar-links {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
}
.tw-topbar-links a {
    color: #FEF3C7;
    text-decoration: none;
    font-weight: 500;
    opacity: 0.92;
}
.tw-topbar-links a:hover { color: #FDE047; opacity: 1; text-decoration: underline; }

/* Brand logo slider item */
.company-logo img {
    max-height: 56px;
    max-width: 140px;
    object-fit: contain;
}
.tw-brand-text-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(254, 240, 138, 0.14);
    border: 1px solid rgba(254, 240, 138, 0.26);
    color: #FEF3C7;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}

/* CMS inner page content */
.tw-cms-content {
    background: #fff;
    border-radius: 20px;
    padding: 36px;
    border: 1px solid rgba(69, 26, 3, 0.08);
    box-shadow: 0 10px 30px rgba(69, 26, 3, 0.05);
}
.tw-cms-content img { max-width: 100%; height: auto; border-radius: 14px; }

/* Product detail gallery: crisp 4-image studio display & active thumb highlight */
.product-single-image-slider .swiper-slide {
    border: 2px solid transparent;
    padding: 4px;
    transition: border-color 0.2s ease, opacity 0.2s ease;
    opacity: 0.78;
}
.product-single-image-slider .swiper-slide:hover,
.product-single-image-slider .swiper-slide-thumb-active {
    border-color: var(--accent-secondary-color, #EA580C);
    opacity: 1;
}
.product-single-image-slider .swiper-slide figure img {
    object-fit: contain;
    background: #fff;
}
.product-single-image-item .swiper-slide figure img {
    object-fit: contain;
    background: #fff;
    padding: 12px;
}
@media (max-width: 767px) {
    .product-single-image-slider .swiper-slide {
        width: calc(25% - 7.5px) !important;
    }
}

/* Contact Form Anti-Bot Honeypot & Slide-to-Submit Control */
.tkt-hp-field {
    position: absolute !important;
    clip-path: inset(50%);
    overflow: hidden;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    white-space: nowrap;
}

.tkt-slide-submit-wrap {
    max-width: 380px;
    width: 100%;
    user-select: none;
    -webkit-user-select: none;
}

.tkt-slide-sr-label {
    position: absolute;
    clip-path: inset(50%);
    overflow: hidden;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    white-space: nowrap;
}

.tkt-slide-track {
    --tkt-slide-pct: 0;
    --tkt-thumb-size: 48px;
    --tkt-track-pad: 4px;
    position: relative;
    height: 56px;
    border-radius: 999px;
    background: linear-gradient(135deg, #451A03 0%, #5C1D0C 100%);
    border: 2px solid #F59E0B;
    box-shadow: 0 8px 22px rgba(69, 26, 3, 0.18), inset 0 2px 6px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.tkt-slide-track:has(.tkt-slide-input:focus-visible) {
    outline: 3px solid #EA580C;
    outline-offset: 3px;
}

.tkt-slide-track.is-nudge {
    border-color: #EA580C;
    box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.24);
}

.tkt-slide-fill {
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: calc(var(--tkt-thumb-size) + var(--tkt-track-pad) * 2 + (100% - var(--tkt-thumb-size) - var(--tkt-track-pad) * 2) * var(--tkt-slide-pct) / 100);
    background: linear-gradient(90deg, #EA580C 0%, #F59E0B 100%);
    border-radius: 999px;
    pointer-events: none;
    transition: width 0.06s linear;
}

.tkt-slide-track.is-snapping .tkt-slide-fill,
.tkt-slide-track.is-snapping .tkt-slide-thumb {
    transition: all 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.tkt-slide-text {
    position: relative;
    z-index: 2;
    font-family: "Fredoka", "Inter", sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #FEF3C7;
    padding-inline-start: 44px;
    padding-inline-end: 16px;
    display: inline-flex;
    align-items: center;
    pointer-events: none;
    transition: opacity 0.15s ease, color 0.2s ease;
}

.tkt-slide-chevrons {
    color: #FACC15;
    animation: tktChevronNudge 1.6s ease-in-out infinite;
}

@keyframes tktChevronNudge {
    0%, 100% { transform: translateX(0); opacity: 0.7; }
    50% { transform: translateX(5px); opacity: 1; }
}

.tkt-slide-thumb {
    position: absolute;
    top: 50%;
    inset-inline-start: calc(var(--tkt-track-pad) + (100% - var(--tkt-thumb-size) - var(--tkt-track-pad) * 2) * var(--tkt-slide-pct) / 100);
    transform: translateY(-50%);
    width: var(--tkt-thumb-size);
    height: var(--tkt-thumb-size);
    border-radius: 50%;
    background: linear-gradient(135deg, #FEF9C3 0%, #FACC15 50%, #F59E0B 100%);
    color: #451A03;
    border: 2px solid #FFFBEB;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 3;
    pointer-events: none;
    transition: left 0.06s linear, background 0.25s ease, color 0.25s ease;
}

.tkt-slide-thumb .tkt-thumb-check {
    display: none;
}

.tkt-slide-track.is-verified {
    border-color: #16A34A;
}

.tkt-slide-track.is-verified .tkt-slide-fill {
    background: linear-gradient(90deg, #15803D 0%, #22C55E 100%);
}

.tkt-slide-track.is-verified .tkt-slide-text {
    color: #FFFFFF;
    padding-inline-start: 16px;
    padding-inline-end: 52px;
}

.tkt-slide-track.is-verified .tkt-slide-thumb {
    background: #FFFFFF;
    color: #15803D;
}

.tkt-slide-track.is-verified .tkt-thumb-arrow {
    display: none;
}

.tkt-slide-track.is-verified .tkt-thumb-check {
    display: inline-block;
}

.tkt-slide-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: grab;
    z-index: 4;
    touch-action: pan-y;
    -webkit-appearance: none;
    appearance: none;
}

.tkt-slide-input:active {
    cursor: grabbing;
}

.tkt-slide-input:disabled {
    cursor: default;
}

.tkt-slide-hint {
    margin-top: 8px;
    font-size: 12.5px;
    color: #785A46;
}

.tkt-slide-hint.is-error {
    color: #DC2626;
    font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
    .tkt-slide-chevrons {
        animation: none;
    }
    .tkt-slide-track.is-snapping .tkt-slide-fill,
    .tkt-slide-track.is-snapping .tkt-slide-thumb {
        transition: none;
    }
}

/* Payment Method Badges (COD & Bank Transfer) */
.tkt-payment-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}
.tkt-payment-pill--dark {
    background: rgba(254, 240, 138, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.55);
    color: #FEF3C7;
}
.tkt-payment-pill--dark i {
    color: #FACC15;
    font-size: 14px;
}
.tkt-payment-pill--light {
    background: #FDF8EE;
    border: 1px solid #F59E0B;
    color: #451A03;
}
.tkt-payment-pill--light i {
    color: #EA580C;
    font-size: 14px;
}

/* Homepage 2-Card COD & Dynamic Bank Transfer Showcase */
.tkt-payment-deals-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.tkt-payment-deal-card {
    position: relative;
    border-radius: 22px;
    padding: 38px 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 360px;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(41, 11, 3, 0.22);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.tkt-payment-deal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 50px rgba(41, 11, 3, 0.3);
}

.tkt-payment-deal-card::after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    right: -65px;
    bottom: -75px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(254, 240, 138, 0.22) 0%, rgba(254, 240, 138, 0) 70%);
    pointer-events: none;
}

.tkt-payment-deal-card--cod {
    background: linear-gradient(135deg, #5C1D0C 0%, #7C2D12 52%, #451A03 100%);
    border: 2px solid rgba(250, 204, 21, 0.52);
    color: #FFFBEB;
}

.tkt-payment-deal-card--bank {
    background: linear-gradient(135deg, #EA580C 0%, #D97706 58%, #B45309 100%);
    border: 2px solid rgba(254, 240, 138, 0.72);
    color: #FFFFFF;
}

.tkt-payment-deal-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.tkt-payment-deal-icon {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

.tkt-payment-deal-card--cod .tkt-payment-deal-icon {
    background: rgba(250, 204, 21, 0.16);
    border: 1.5px solid rgba(250, 204, 21, 0.55);
    color: #FDE047;
}

.tkt-payment-deal-card--bank .tkt-payment-deal-icon {
    background: rgba(69, 26, 3, 0.24);
    border: 1.5px solid rgba(254, 240, 138, 0.65);
    color: #FEF08A;
}

.tkt-payment-deal-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    background: rgba(254, 240, 138, 0.15);
    border: 1px solid rgba(250, 204, 21, 0.55);
    color: #FEF08A;
}

.tkt-payment-deal-pill--highlight {
    background: #FFFBEB;
    border-color: #FDE047;
    color: #9A3412;
    box-shadow: 0 6px 16px rgba(69, 26, 3, 0.2);
}

.tkt-payment-deal-body {
    position: relative;
    z-index: 1;
}

.tkt-payment-deal-body h3 {
    font-family: var(--accent-font, "Fredoka", sans-serif);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    color: #FFFFFF;
    margin-bottom: 12px;
}

.tkt-payment-deal-body p {
    font-size: 15.5px;
    line-height: 1.65;
    color: rgba(255, 251, 235, 0.92);
    margin-bottom: 20px;
}

.tkt-payment-deal-perks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    list-style: none;
    padding: 0;
    margin: 0 0 26px;
}

.tkt-payment-deal-perks li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
    font-weight: 600;
    color: #FEF3C7;
}

.tkt-payment-deal-perks li i {
    color: #FDE047;
}

.tkt-payment-deal-footer {
    position: relative;
    z-index: 1;
}

.tkt-btn-mahogany {
    background: #451A03 !important;
    border-color: #FEF08A !important;
    color: #FEF08A !important;
}

.tkt-btn-mahogany span {
    color: #FEF08A !important;
}

.tkt-btn-mahogany:hover {
    background: #2D1002 !important;
}

@media (max-width: 991px) {
    .tkt-payment-deals-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .tkt-payment-deal-card {
        padding: 28px 24px;
        min-height: auto;
    }
    .tkt-payment-deal-body h3 {
        font-size: 26px;
    }
}

/* Product Detail Brand & Collection Meta Tags */
.product-single-details-list ul li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.product-single-details-list ul li a,
.tkt-meta-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none !important;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.tkt-meta-tag-group {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tkt-meta-tag--brand {
    background: #451A03;
    border: 1px solid #451A03;
    color: #FEF08A !important;
}

.tkt-meta-tag--brand:hover {
    background: #EA580C;
    border-color: #EA580C;
    color: #FFFFFF !important;
    transform: translateY(-1px);
}

.tkt-meta-tag--collection {
    background: #FDF8EE;
    border: 1px solid #F59E0B;
    color: #7C2D12 !important;
}

.tkt-meta-tag--collection:hover {
    background: #FEF3C7;
    border-color: #EA580C;
    color: #451A03 !important;
    transform: translateY(-1px);
}
