/* thestore.lk overrides on top of the Multikart template. Brand: #4F46E5 (deep indigo), white, black text. */
:root { --ts-ink: #111827; --ts-muted: #6b7280; --ts-line: #e5e7eb; --ts-soft: #eef2ff; --ts-radius: 10px; }
body.ts-body { color: var(--ts-ink); }
a { color: inherit; }
a:hover { color: var(--theme-color); }
.btn-solid, .btn-solid:focus { background-color: var(--theme-color) !important; border-color: var(--theme-color) !important; color: #fff !important; background-image: none !important; }
.btn-solid:hover { background-color: #4338ca !important; border-color: #4338ca !important; color: #fff !important; }
.btn-outline { border: 1px solid var(--theme-color); color: var(--theme-color); background: #fff; }
.btn-outline:hover { background: var(--theme-color); color: #fff; }
.form-control:focus, .form-select:focus { border-color: var(--theme-color); box-shadow: 0 0 0 .2rem rgba(79, 70, 229, .15); }
.form-check-input:checked { background-color: var(--theme-color); border-color: var(--theme-color); }

/* Header */
.ts-logo { max-height: 46px; width: auto; max-width: 230px; object-fit: contain; }
@media (max-width: 575px) { .ts-logo { max-height: 34px; max-width: 150px; } }
.ts-logo-invert { filter: brightness(0) invert(1); max-height: 44px; max-width: 220px; }
.header-style-5 .top-header-dark .header-contact li, .header-style-5 .top-header-dark .header-dropdown li { color: #fff; }
.header-style-5 .main-menu .menu-left .brand-logo { padding: 18px 0; }
.form_search { position: relative; }
.ts-suggest { position: absolute; top: 100%; left: 0; right: 0; z-index: 50; background: #fff; border: 1px solid var(--ts-line); border-radius: 0 0 var(--ts-radius) var(--ts-radius); box-shadow: 0 12px 24px rgba(0,0,0,.08); display: none; }
.ts-suggest a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid #f3f4f6; }
.ts-suggest a:last-child { border-bottom: 0; }
.ts-suggest img { width: 40px; height: 40px; object-fit: contain; }
.ts-suggest span { flex: 1; font-size: 13px; }
.ts-suggest b { font-size: 13px; color: var(--theme-color); }
.marketplace-sidebar.ts-cat-open { display: block; }
#main-menu a.ts-active { color: var(--theme-color); }

/* Sections */
.ts-sec { padding-top: 30px; }
.ts-home > section:last-child { padding-bottom: 50px; }
.ts-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.ts-title .title { margin-bottom: 0; }
.ts-sec-sub { margin: 4px 0 0; color: var(--ts-muted); }
.ts-view-all { color: var(--theme-color); font-weight: 600; white-space: nowrap; }
.ts-countdown p { margin: 0; font-weight: 700; }
.ts-countdown .ts-cd span { display: inline-block; background: var(--theme-color); color: #fff; border-radius: 6px; padding: 3px 8px; margin: 0 2px; font-size: 13px; min-width: 34px; text-align: center; }
.ts-hero img { border-radius: var(--ts-radius); }
.ts-slider.pt-0 .ts-hero img { border-radius: 0; }
.ts-hero .slick-dots { bottom: 12px; }
.ts-banners .collection-banner img { border-radius: var(--ts-radius); transition: transform .4s; }
.ts-banners .collection-banner { display: block; overflow: hidden; border-radius: var(--ts-radius); }
.ts-banners .collection-banner:hover img { transform: scale(1.03); }
.ts-service-icon { font-size: 40px; color: var(--theme-color); margin-right: 14px; line-height: 1; }
.ts-services .service-block .media { align-items: center; }
.ts-cat-list { border: 1px solid var(--ts-line); border-radius: var(--ts-radius); overflow: hidden; }
.ts-cat-list a { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--ts-line); font-weight: 500; text-transform: capitalize; }
.ts-cat-list a:last-child { border-bottom: 0; }
.ts-cat-list a:hover { background: var(--ts-soft); }
.ts-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 18px; }
.ts-cat-tile { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.ts-cat-img { width: 110px; height: 110px; border-radius: 50%; background: var(--ts-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; transition: box-shadow .2s; }
.ts-cat-img img { width: 78%; height: 78%; object-fit: contain; }
.ts-cat-img i { font-size: 36px; color: var(--theme-color); }
.ts-cat-img.sm { width: 52px; height: 52px; }
.ts-cat-img.sm i { font-size: 22px; }
.ts-cat-tile:hover .ts-cat-img { box-shadow: 0 0 0 3px var(--theme-color); }
.ts-cat-name { font-weight: 600; font-size: 14px; }
.ts-cat-card .ts-cat-img { flex-shrink: 0; }
.ts-cat-card { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.ts-cat-grid.ts-cat-card .ts-cat-tile { background: #fff; border: 1px solid var(--ts-line); border-radius: var(--ts-radius); padding: 16px 10px; }
.ts-cat-grid.ts-cat-card .ts-cat-img { border-radius: 12px; width: 100%; height: 110px; background: transparent; }
.ts-logo-slider .logo-block img { max-height: 60px; width: auto; margin: auto; filter: grayscale(1); opacity: .75; transition: .2s; }
.ts-logo-slider .logo-block a:hover img { filter: none; opacity: 1; }
.ts-newsletter-box { background: var(--theme-color); color: #fff; border-radius: 14px; padding: 30px; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 30px 0 10px; }
.ts-newsletter-box h3 { color: #fff; margin-bottom: 4px; }
.ts-newsletter-box p { color: rgba(255,255,255,.85); margin: 0; }
.ts-newsletter-box form { min-width: min(100%, 420px); }
.ts-newsletter-box .btn-solid { background: #111 !important; border-color: #111 !important; }
.ts-tab-nav { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.ts-tab-nav li a { display: block; padding: 7px 16px; border-radius: 30px; border: 1px solid var(--ts-line); font-weight: 600; font-size: 14px; }
.ts-tab-nav li.current a { background: var(--theme-color); color: #fff; border-color: var(--theme-color); }
.ts-tabs .bg-title-part { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.ts-carousel { margin: 0 -10px; }
.ts-carousel .slick-slide > div > div { padding: 0 10px; }
.ts-carousel:not(.slick-initialized) { display: flex; overflow: hidden; }
.ts-carousel:not(.slick-initialized) > div { flex: 0 0 20%; padding: 0 10px; }

/* Product card */
.basic-product .img-wrapper { position: relative; background: #f8f8fb; border-radius: var(--ts-radius); overflow: hidden; }
.basic-product .img-wrapper > a { display: block; aspect-ratio: 1 / 1; }
.basic-product .img-wrapper > a img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.basic-product .cart-info button, .basic-product .cart-info a { cursor: pointer; }
.basic-product .cart-info .js-wish.active i { color: #e11d48; }
.basic-product .product-detail h6 { color: var(--ts-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; line-height: 1.3; }
.basic-product .product-detail .price { color: var(--ts-ink); }
.basic-product .product-detail .discounted-price { color: #16a34a; }
.ts-badge { position: absolute; top: 10px; left: 10px; z-index: 2; background: var(--theme-color); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 20px; }
.ts-badge-new { background: #111; }
.ts-badge-dark { background: #6b7280; }
.ts-badge-lg { font-size: 14px; padding: 5px 12px; top: 14px; left: 14px; }
.ts-soldout .img-wrapper img { opacity: .55; }

/* Shop */
.ts-breadcrumb { background: var(--ts-soft); }
.ts-cat-links li a { display: block; padding: 4px 0; }
.ts-scroll-list { max-height: 260px; overflow: auto; }
.ts-cat-desc { color: var(--ts-muted); }
.collection-filter-block { border-radius: var(--ts-radius); }

/* Product page */
.ts-gallery { position: relative; }
.ts-gallery-main { border: 1px solid var(--ts-line); border-radius: 14px; overflow: hidden; background: #fff; }
.ts-gallery-main img { aspect-ratio: 1 / 1; object-fit: contain; padding: 4%; }
.ts-gallery-nav { margin: 12px -6px 0; }
.ts-gallery-nav img { aspect-ratio: 1 / 1; object-fit: contain; border: 1px solid var(--ts-line); border-radius: 8px; padding: 4px; margin: 0 6px; cursor: pointer; background: #fff; }
.ts-gallery-nav .slick-current img { border-color: var(--theme-color); }
.ts-brand-link { color: var(--theme-color); font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: .5px; }
.ts-product-title { font-size: 26px; font-weight: 700; margin: 6px 0 8px; line-height: 1.3; color: var(--ts-ink); }
.ts-stars i, .ts-stars { color: #f59e0b; }
.ts-price-box { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 14px 0; }
.ts-price { font-size: 28px; font-weight: 800; color: var(--ts-ink); }
.ts-compare { color: var(--ts-muted); font-size: 17px; }
.ts-save { background: #dcfce7; color: #15803d; font-weight: 700; font-size: 13px; padding: 3px 10px; border-radius: 20px; }
.ts-sale-timer { background: #fff7ed; color: #c2410c; padding: 8px 12px; border-radius: 8px; display: inline-block; font-weight: 600; margin-bottom: 10px; }
.ts-short-desc { color: #374151; }
.ts-variants { display: flex; flex-wrap: wrap; gap: 8px; }
.ts-variant input { display: none; }
.ts-variant span { display: inline-block; border: 1.5px solid var(--ts-line); border-radius: 8px; padding: 8px 14px; cursor: pointer; font-weight: 600; font-size: 14px; }
.ts-variant input:checked + span { border-color: var(--theme-color); background: var(--ts-soft); color: var(--theme-color); }
.ts-variant.is-out span { opacity: .45; text-decoration: line-through; cursor: not-allowed; }
.ts-qty { display: inline-flex; border: 1px solid var(--ts-line); border-radius: 8px; overflow: hidden; height: 46px; }
.ts-qty button { width: 42px; border: 0; background: #f9fafb; font-size: 18px; }
.ts-qty input { width: 56px; border: 0; text-align: center; font-weight: 700; -moz-appearance: textfield; }
.ts-qty input::-webkit-outer-spin-button, .ts-qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.ts-qty-sm { height: 38px; }
.ts-qty-sm button { width: 34px; }
.ts-qty-sm input { width: 44px; }
.ts-btn-cart, .ts-btn-buy { height: 46px; padding: 0 22px; border-radius: 8px; font-weight: 700; display: inline-flex; align-items: center; }
.ts-wish-btn { width: 46px; height: 46px; border: 1px solid var(--ts-line); border-radius: 8px; background: #fff; font-size: 20px; }
.ts-wish-btn.active i { color: #e11d48; }
.ts-perks { list-style: none; padding: 16px 0 0; margin: 20px 0 0; border-top: 1px dashed var(--ts-line); }
.ts-perks li { display: flex; gap: 10px; align-items: center; padding: 5px 0; color: #374151; }
.ts-perks i { color: var(--theme-color); font-size: 20px; }
.ts-wa-ask { display: inline-flex; gap: 6px; align-items: center; margin-top: 10px; color: #16a34a; font-weight: 600; }
.ts-rich img { max-width: 100%; height: auto; }
.ts-rich { line-height: 1.75; }
.ts-spec-table th { width: 35%; font-weight: 600; }
.ts-review { border-bottom: 1px solid var(--ts-line); padding: 14px 0; }
.ts-rate-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.ts-rate-input input { display: none; }
.ts-rate-input label { font-size: 24px; color: #d1d5db; cursor: pointer; }
.ts-rate-input input:checked ~ label, .ts-rate-input label:hover, .ts-rate-input label:hover ~ label { color: #f59e0b; }

/* Cards, cart, checkout */
.ts-card { background: #fff; border: 1px solid var(--ts-line); border-radius: 14px; padding: 22px; }
.ts-note { background: var(--ts-soft); color: #3730a3; padding: 10px 14px; border-radius: 8px; }
.ts-cart-thumb { width: 64px; height: 64px; object-fit: contain; border: 1px solid var(--ts-line); border-radius: 8px; padding: 4px; }
.ts-cart-table th { font-weight: 600; color: var(--ts-muted); text-transform: none; }
.ts-sum-lines { list-style: none; padding: 0; margin: 0 0 6px; }
.ts-sum-lines li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid #f3f4f6; }
.ts-sum-lines li > div { flex: 1; }
.ts-sum-lines img { width: 56px; height: 56px; object-fit: contain; border: 1px solid var(--ts-line); border-radius: 8px; padding: 3px; }
.ts-sum-row { display: flex; justify-content: space-between; padding: 5px 0; }
.ts-sum-total { border-top: 1px solid var(--ts-line); margin-top: 6px; padding-top: 12px; font-size: 18px; font-weight: 800; }
.ts-sticky { position: sticky; top: 90px; }
.ts-pay-list { display: grid; gap: 10px; }
.ts-pay-option { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--ts-line); border-radius: 10px; padding: 12px 14px; cursor: pointer; }
.ts-pay-option input { margin-top: 4px; accent-color: var(--theme-color); }
.ts-pay-option:has(input:checked) { border-color: var(--theme-color); background: var(--ts-soft); }
.ts-pay-option.is-disabled { opacity: .55; cursor: not-allowed; }
.ts-pay-body { display: flex; flex-direction: column; }
.ts-pay-body small { color: var(--ts-muted); }
.ts-pay-body .ts-pay-limit { color: #dc2626; }
.ts-otp { font-size: 22px; letter-spacing: 8px; text-align: center; font-weight: 700; }
.ts-pills .nav-link { color: var(--ts-ink); border-radius: 20px; }
.ts-pills .nav-link.active { background: var(--theme-color); }

/* Order */
.ts-success-head, .ts-pending-head { text-align: center; padding: 10px 0 30px; }
.ts-success-head i { font-size: 64px; color: #16a34a; }
.ts-pending-head i { font-size: 56px; color: #f59e0b; }
.ts-steps { display: flex; gap: 6px; }
.ts-step { flex: 1; text-align: center; font-weight: 600; font-size: 13px; color: var(--ts-muted); border-top: 4px solid var(--ts-line); padding-top: 8px; }
.ts-step span { display: none; }
.ts-step.done { color: var(--theme-color); border-color: var(--theme-color); }
.ts-pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; background: #f3f4f6; color: #374151; }
.ts-pill-paid, .ts-st-delivered { background: #dcfce7; color: #15803d; }
.ts-pill-pending, .ts-st-pending { background: #fef3c7; color: #b45309; }
.ts-pill-failed, .ts-st-cancelled { background: #fee2e2; color: #b91c1c; }
.ts-st-processing { background: var(--ts-soft); color: #4338ca; }
.ts-st-shipped { background: #e0f2fe; color: #0369a1; }
.ts-timeline { list-style: none; padding: 0; margin: 0; }
.ts-timeline li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--ts-line); font-size: 13px; }
.ts-timeline span { color: var(--ts-muted); }
.ts-bank pre { white-space: pre-wrap; font-family: inherit; background: #f9fafb; padding: 12px; border-radius: 8px; }

/* Account */
.ts-acc-nav a { display: flex; gap: 10px; align-items: center; padding: 12px 18px; border-top: 1px solid #f3f4f6; font-weight: 500; }
.ts-acc-nav a.active { color: var(--theme-color); background: var(--ts-soft); }
.ts-acc-user { display: flex; gap: 12px; align-items: center; padding: 18px; }
.ts-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--theme-color); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; }
.ts-stat { background: #fff; border: 1px solid var(--ts-line); border-radius: 12px; padding: 16px; }
.ts-stat span { display: block; color: var(--ts-muted); font-size: 13px; }
.ts-stat b { font-size: 20px; }

/* Brands / contact */
.ts-brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.ts-brand-tile { border: 1px solid var(--ts-line); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; background: #fff; }
.ts-brand-tile img { max-height: 54px; max-width: 100%; object-fit: contain; }
.ts-brand-tile span { font-size: 12px; color: var(--ts-muted); }
.ts-brand-tile:hover { border-color: var(--theme-color); }
.ts-contact-list { list-style: none; padding: 0; }
.ts-contact-list li { display: flex; gap: 12px; align-items: center; padding: 8px 0; }
.ts-contact-list i { font-size: 20px; color: var(--theme-color); }

/* Footer */
.ts-pay-logos { color: #9ca3af; font-size: 13px; text-align: right; padding-top: 2px; }
@media (max-width: 767px) { .ts-pay-logos { text-align: left; } }

/* Floating widgets */
.ts-whatsapp { position: fixed; right: 18px; bottom: 80px; z-index: 30; width: 52px; height: 52px; border-radius: 50%; background: #25d366; color: #fff !important; display: flex; align-items: center; justify-content: center; font-size: 28px; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.ts-toast-wrap { position: fixed; z-index: 2000; left: 50%; transform: translateX(-50%); bottom: 24px; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.ts-toast { background: #111; color: #fff; padding: 11px 18px; border-radius: 8px; font-size: 14px; box-shadow: 0 8px 22px rgba(0,0,0,.2); pointer-events: auto; animation: tsin .2s ease-out; }
.ts-toast.err { background: #b91c1c; }
.ts-toast a { color: #c7d2fe; text-decoration: underline; margin-left: 8px; }
@keyframes tsin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 991px) {
    .ts-sticky { position: static; }
    .ts-product-title { font-size: 21px; }
    .ts-price { font-size: 24px; }
    .ts-cat-img { width: 84px; height: 84px; }
    .ts-cat-grid { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 12px; }
}
@media (max-width: 575px) {
    .ts-card { padding: 16px; }
    .ts-newsletter-box { padding: 20px; }
}
.ts-logo-text { font-weight: 800; font-size: 26px; letter-spacing: -.5px; color: var(--ts-ink); white-space: nowrap; filter: none; }
.ts-logo-text.ts-logo-invert { color: #fff; }
.ts-countdown { display: flex; align-items: center; }
.ts-countdown .ts-cd { display: inline-flex; gap: 4px; }
.ts-title .title { display: block !important; }
@media (max-width: 575px) {
    .ts-title .title { font-size: 17px; }
    .ts-services .service-block .media { flex-direction: column; text-align: center; }
    .ts-services .ts-service-icon { margin: 0 0 6px; font-size: 30px; }
    .ts-services .service-block h4 { font-size: 13px; }
    .ts-services .service-block p { font-size: 11px; }
}
