/*
Theme Name: ThemePro
Theme URI: https://themepro.net
Description: ThemePro child theme for Flatsome. Holds the ThemePro design system; custom functionality lives in the ThemePro Core module.
Author: ThemePro
Template: flatsome
Version: 1.0.5
Text Domain: themepro
*/

/* ==========================================================
   ThemePro design system: Cobalt & Graphite
   ========================================================== */
:root {
  --tp-bg: #F5F7FA;
  --tp-surface: #FFFFFF;
  --tp-ink: #141A23;
  --tp-muted: #5B6575;
  --tp-line: #E3E8EF;
  --tp-accent: #1F5BE0;
  --tp-accent-strong: #1747B5;
  --tp-accent-soft: #EAF0FD;
  --tp-sale: #E5484D;
  --tp-success: #18794E;
  --tp-rating: #E8A317;
  --tp-dark: #0F1622;
  --tp-r-sm: 8px;
  --tp-r-md: 12px;
  --tp-r-pill: 999px;
  --tp-shadow: 0 8px 24px rgba(31, 91, 224, 0.10);
}

/* Typography craft */
h1, h2, h3, h4, .h1, .h2, .h3 { line-height: 1.1; letter-spacing: -0.01em; }
body { line-height: 1.6; }
.tp-measure { max-width: 68ch; }
.price, .amount { font-variant-numeric: tabular-nums; }

/* Header */
.header-main { border-bottom: 1px solid var(--tp-line); }
.header-bottom { border-bottom: 1px solid var(--tp-line); }
.stuck .header-main { box-shadow: var(--tp-shadow); }
.header-search-form .search-field,
.searchform .search-field { border-radius: var(--tp-r-sm) 0 0 var(--tp-r-sm); border-color: var(--tp-line); box-shadow: none; }
.searchform .button.icon { border-radius: 0 var(--tp-r-sm) var(--tp-r-sm) 0; }
.header-search-form { max-width: 560px; width: 100%; }

/* Buttons and inputs */
.button, button, input[type=submit] { border-radius: var(--tp-r-sm); font-weight: 600; letter-spacing: 0; }
input[type=text], input[type=email], input[type=search], input[type=password], input[type=tel], input[type=number], select, textarea {
  border-radius: var(--tp-r-sm); border-color: var(--tp-line); box-shadow: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--tp-accent); box-shadow: 0 0 0 3px var(--tp-accent-soft); }
.button.tp-btn-secondary { background: var(--tp-surface); color: var(--tp-ink); border: 1px solid var(--tp-line); }
.button.tp-btn-secondary:hover { border-color: var(--tp-accent); color: var(--tp-accent); background: var(--tp-surface); }

/* Hero */
.tp-hero.section { padding-top: 48px !important; padding-bottom: 48px !important; }
@media (max-width: 549px) { .tp-hero.section { padding-top: 32px !important; padding-bottom: 32px !important; } }
.form-flat input:not([type=submit]), .form-flat .search-field { border-radius: var(--tp-r-sm) !important; background: var(--tp-bg); border: 1px solid var(--tp-line); }
.form-flat button, .form-flat input[type=submit] { border-radius: var(--tp-r-sm) !important; }
.tp-hero { background: var(--tp-surface); border-bottom: 1px solid var(--tp-line); }
.tp-hero h1 { font-size: clamp(2rem, 1.3rem + 1.9vw, 2.875rem); line-height: 1.08; margin-bottom: 16px; max-width: 22ch; }
.tp-hero h1 em { font-style: normal; color: var(--tp-accent); }
.tp-hero .tp-lede { font-size: 1.125rem; color: var(--tp-muted); max-width: 46ch; margin-bottom: 24px; }
.tp-hero .searchform-wrapper { max-width: 540px; margin-bottom: 20px; }
.tp-hero .searchform .search-field { height: 52px; font-size: 1rem; }
.tp-hero .searchform .button.icon { height: 52px; width: 56px; }
.tp-hero .tp-ctas .button { margin: 0 8px 8px 0; }
.tp-hero-art { display: block; width: 100%; height: auto; }

/* Trust strip */
.tp-trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--tp-line); border-radius: var(--tp-r-md); background: var(--tp-surface); }
.tp-trust__item { display: flex; gap: 12px; align-items: flex-start; padding: 18px 20px; }
.tp-trust__item + .tp-trust__item { border-left: 1px solid var(--tp-line); }
.tp-trust__item svg { flex: 0 0 22px; color: var(--tp-accent); margin-top: 2px; }
.tp-trust__item strong { display: block; color: var(--tp-ink); font-weight: 600; }
.tp-trust__item span { color: var(--tp-muted); font-size: 0.9rem; line-height: 1.45; }

/* Section heads */
.tp-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.tp-section-head h2 { font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem); margin: 0; }
.tp-section-head a { font-weight: 600; white-space: nowrap; }

/* Category tiles: one wide featured tile, then a compact grid */
.tp-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tp-cat { display: flex; flex-direction: column; gap: 10px; padding: 20px; background: var(--tp-surface); border: 1px solid var(--tp-line); border-radius: var(--tp-r-md); color: var(--tp-ink); transition: border-color .15s ease, box-shadow .15s ease; }
.tp-cat:hover { border-color: var(--tp-accent); box-shadow: var(--tp-shadow); color: var(--tp-ink); }
.tp-cat__icon { width: 40px; height: 40px; border-radius: var(--tp-r-sm); background: var(--tp-accent-soft); color: var(--tp-accent-strong); display: grid; place-items: center; }
.tp-cat__name { font-weight: 600; font-size: 1.05rem; }
.tp-cat__desc { color: var(--tp-muted); font-size: 0.9rem; line-height: 1.45; }
.tp-cat--feature { grid-column: span 2; grid-row: span 2; background: var(--tp-dark); border-color: var(--tp-dark); color: #E9EEF5; justify-content: flex-end; min-height: 260px; }
.tp-cat--wide { grid-column: span 2; }
.tp-cat--feature:hover { color: #FFFFFF; border-color: var(--tp-accent); }
.tp-cat--feature .tp-cat__icon { background: rgba(255,255,255,0.08); color: #FFFFFF; }
.tp-cat--feature .tp-cat__name { font-family: "Bricolage Grotesque", sans-serif; font-size: 1.75rem; line-height: 1.1; }
.tp-cat--feature .tp-cat__desc { color: #AEB8C7; max-width: 40ch; }

@media (max-width: 849px) {
  .tp-trust { grid-template-columns: 1fr; }
  .tp-trust__item + .tp-trust__item { border-left: 0; border-top: 1px solid var(--tp-line); }
  .tp-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-cat--feature { grid-column: span 2; grid-row: auto; min-height: 200px; }
  .tp-hero-col-art { display: none; }
}
@media (max-width: 549px) {
  .tp-hero .tp-ctas .button { width: 100%; margin-right: 0; }
  .tp-section-head { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .tp-cat { transition: none; } }

/* Footer */
.tp-footer { color: var(--tp-on-dark-muted, #AEB8C7); }
.tp-footer .tp-footer__logo { display: inline-block; margin-bottom: 16px; }
.tp-footer .tp-footer__logo img { display: block; width: 170px; height: auto; }
.tp-footer .tp-footer__about { color: #AEB8C7; font-size: 0.95rem; line-height: 1.6; max-width: 38ch; margin-bottom: 12px; }
.tp-footer .tp-footer__contact a { color: #E9EEF5; font-weight: 600; }
.tp-footer .tp-footer__title { color: #E9EEF5; font-family: "DM Sans", sans-serif; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin: 4px 0 14px; }
.tp-footer .tp-footer__links { list-style: none; margin: 0; padding: 0; }
.tp-footer .tp-footer__links li { margin: 0 0 10px; padding: 0; list-style: none; }
.tp-footer .tp-footer__links a { color: #AEB8C7; font-size: 0.95rem; }
.tp-footer a:hover, .tp-footer .tp-footer__links a:hover { color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; }
.tp-footer a:focus-visible { outline: 2px solid #1F5BE0; outline-offset: 2px; border-radius: 2px; }
.absolute-footer { border-top: 1px solid rgba(233, 238, 245, 0.08); font-size: 0.85rem; padding: 18px 0; }
.absolute-footer, .absolute-footer a { color: #AEB8C7; }
.absolute-footer .payment-icons .payment-icon { opacity: 0.85; }
@media (max-width: 549px) {
  .tp-footer .col { padding-bottom: 8px; }
  .absolute-footer .container { text-align: left; }
}

/* Policy pages */
.page-id-3 .page-wrapper, .page-id-12 .page-wrapper, .page-id-28 .page-wrapper { background: var(--tp-surface); }
.page-id-3 .entry-content, .page-id-12 .entry-content, .page-id-28 .entry-content,
.page-id-3 #content .col-inner, .page-id-12 #content .col-inner, .page-id-28 #content .col-inner { max-width: 72ch; margin-left: auto; margin-right: auto; }
.page-id-3 h2.wp-block-heading, .page-id-12 h2.wp-block-heading, .page-id-28 h2.wp-block-heading { font-size: 1.35rem; margin: 2em 0 0.6em; }
.page-id-3 .wp-block-list li, .page-id-12 .wp-block-list li, .page-id-28 .wp-block-list li { margin-bottom: 0.5em; }
/* Hero deals panel (live on-sale products) */
.tp-deals { background: var(--tp-surface); border: 1px solid var(--tp-line); border-radius: var(--tp-r-md); padding: 18px 18px 8px; box-shadow: var(--tp-shadow); }
.tp-deals__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.tp-deals__title { font-size: 1.05rem; margin: 0; }
.tp-deals__head a { font-size: 0.875rem; font-weight: 600; white-space: nowrap; }
.tp-deals__list { list-style: none; margin: 0; padding: 0; }
.tp-deals__list li { list-style: none; margin: 0; border-top: 1px solid var(--tp-line); }
.tp-deals__item { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 10px 0; color: var(--tp-ink); }
.tp-deals__item:hover { color: var(--tp-accent); }
.tp-deals__thumb { grid-row: span 2; width: 44px; height: 44px; border-radius: var(--tp-r-sm); overflow: hidden; background: var(--tp-bg); }
.tp-deals__thumb img { width: 44px; height: 44px; object-fit: cover; display: block; }
.tp-deals__name { grid-row: span 2; font-weight: 500; font-size: 0.925rem; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-deals__price { text-align: right; font-size: 0.9rem; line-height: 1.2; white-space: nowrap; }
.tp-deals__price del { color: var(--tp-muted); font-size: 0.8rem; opacity: 1; margin-right: 4px; }
.tp-deals__price ins { text-decoration: none; font-weight: 700; color: var(--tp-ink); }
.tp-deals__off { justify-self: end; margin-top: 2px; font-size: 0.72rem; font-weight: 700; color: #FFFFFF; background: var(--tp-sale); border-radius: var(--tp-r-pill); padding: 1px 8px; }

/* Product browser tabs as pills */
.tp-tabs .nav-pills > li > a, .tp-browse .nav-pills > li > a { border-radius: var(--tp-r-pill); border: 1px solid var(--tp-line); background: var(--tp-surface); color: var(--tp-ink); font-weight: 500; padding: 0 16px; line-height: 38px; text-transform: none; letter-spacing: 0; }
.tp-browse .nav-pills > li.active > a, .tp-browse .nav-pills > li > a:hover { background: var(--tp-ink); border-color: var(--tp-ink); color: #FFFFFF; }
.tp-browse .nav-pills > li { margin: 0 8px 8px 0; }
.tp-browse .tab-panels { padding-top: 16px; }

/* Product cards */
.product-small .col-inner { height: 100%; }
.product-small.box { background: var(--tp-surface); border: 1px solid var(--tp-line); border-radius: var(--tp-r-md); overflow: hidden; height: 100%; transition: border-color .15s ease, box-shadow .15s ease; }
.product-small .col-inner:hover .product-small.box { border-color: var(--tp-accent); box-shadow: var(--tp-shadow); }
.product-small .box-image { background: var(--tp-bg); }
.product-small .box-text { text-align: left !important; padding: 14px 16px 16px; }
.product-small .category { color: var(--tp-muted); font-size: 0.75rem; text-transform: none; letter-spacing: 0; opacity: 1; margin-bottom: 4px; }
.product-small .product-title { font-size: 0.975rem; line-height: 1.35; }
.product-small .product-title a { color: var(--tp-ink); font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.product-small .price { font-size: 1rem; margin-top: 6px; }
.product-small .price ins { text-decoration: none; }
.product-small .price ins .amount, .product-small .price > .amount { color: var(--tp-ink); font-weight: 700; }
.product-small .price del .amount { color: var(--tp-muted); font-weight: 400; font-size: 0.875rem; }
.product-small .add-to-cart-button { margin-top: 12px; }
.product-small .add-to-cart-button .button { width: 100%; margin: 0; background: var(--tp-surface); color: var(--tp-ink); border: 1px solid var(--tp-line); font-size: 0.875rem; line-height: 38px; min-height: 38px; }
.product-small .add-to-cart-button .button:hover { background: var(--tp-accent); border-color: var(--tp-accent); color: #FFFFFF; }
.badge-container .badge { height: auto; width: auto; }
.badge-container .badge-inner.on-sale { background: var(--tp-sale); color: #FFFFFF; border-radius: var(--tp-r-pill); font-size: 0.75rem; font-weight: 700; padding: 4px 10px; height: auto; min-width: 0; line-height: 1.2; }
.badge-container { margin: 12px 0 0 12px; }
@media (prefers-reduced-motion: reduce) { .product-small.box { transition: none; } }
.product-small .category.uppercase { text-transform: none; }
.product-small .badge-container .badge-inner.new-bubble-auto { display: none; }
@media (max-width: 549px) {
  .product-small .box-text { padding: 12px 10px 12px; }
  .product-small .product-title { font-size: 0.9rem; }
  .product-small .add-to-cart-button .button { padding: 0 6px; font-size: 0.8rem; white-space: nowrap; }
  .tp-browse .nav-pills > li > a { padding: 0 12px; line-height: 34px; font-size: 0.875rem; }
}
