/*
 * Treed Store × CreatorHub – custom styles
 * This file will not be overwritten by theme updates.
*/
:root {
  --ts-mint: #f0f5ff;
  --ts-mint-2: #f7faff;
  --ts-green: #2f62da;
  --ts-green-d: #1047c6;
  --ts-ink: #151b28;
  --ts-muted: #6c7689;
  --ts-line: #e6e9ef;
  --ts-white: #ffffff;
  --ts-radius: 18px;
}

/* ---------- Global light look ---------- */
html, body { background: #fff !important; color: var(--ts-ink); }
body { font-family: var(--bs-font-sans-serif); -webkit-font-smoothing: antialiased; }
#snow { display: none !important; }
a { color: var(--ts-green-d); }

/* Announcement */
.announcement, [data-component-id="announcement"] {
  background: var(--ts-ink) !important; color: #fff !important;
  font-size: 13px; letter-spacing: .02em;
}
[data-component-id="announcement"] a { color: #b7cbff !important; }

/* Navbar */
header.sticky-top { background: rgba(250, 252, 255, .92); backdrop-filter: blur(10px); }
.navbar { background: transparent !important; border: 0 !important; }
.navbar .navbar-brand img { display: none !important; }
.navbar .navbar-brand span {
  font-weight: 700; font-size: 24px; letter-spacing: -.03em; color: var(--ts-ink) !important;
  text-transform: lowercase;
}
.navbar .navbar-brand span::after { content: "™"; font-size: 11px; vertical-align: super; margin-left: 2px; }
.navbar .nav-link { color: var(--ts-ink) !important; font-weight: 500; font-size: 15px; padding: 6px 14px !important; position: relative; }
.navbar .nav-link:hover::after, .navbar .nav-item:first-child .nav-link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -2px; height: 2px; background: var(--ts-green);
}
@media (min-width: 992px) { .navbar .navbar-nav.me-auto { margin: 0 auto !important; } }
.navbar .btn-outline-primary, .navbar .cart .btn {
  border: 0 !important; background: transparent !important; color: var(--ts-ink) !important; box-shadow: none !important;
}
.navbar .btn-outline-primary:hover { color: var(--ts-green-d) !important; }
.navbar-toggler { border: 0 !important; }
.navbar-toggler-icon { filter: invert(1) brightness(.2); }
.navbar .count { background: var(--ts-green) !important; color: #fff !important; }

/* ---------- Buttons ---------- */
.ts-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 4px; font-weight: 500; font-size: 15px;
  text-decoration: none !important; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  border: 1.5px solid transparent;
}
.ts-btn:hover { transform: translateY(-2px); }
.ts-btn-primary { background: var(--ts-green); color: #fff !important; box-shadow: 0 10px 24px -10px rgba(16,71,198,.55); }
.ts-btn-primary:hover { background: var(--ts-green-d); }
.ts-btn-dark { background: var(--ts-ink); color: #fff !important; }
.ts-btn-ghost { background: transparent; color: var(--ts-ink) !important; border-color: var(--ts-ink); }
.ts-btn-sm { padding: 10px 18px; font-size: 14px; }

/* Bootstrap buttons used by the theme (product page, cart) */
.btn-primary { background: var(--ts-green) !important; border-color: var(--ts-green) !important; color: #fff !important; }
.btn-primary:hover { background: var(--ts-green-d) !important; border-color: var(--ts-green-d) !important; }
.btn-outline-primary { color: var(--ts-green-d) !important; border-color: var(--ts-green) !important; }
.btn-outline-primary:hover { background: var(--ts-green) !important; color: #fff !important; }
.text-primary { color: var(--ts-green-d) !important; }

/* ---------- Home ---------- */
.ts { overflow-x: hidden; }
.ts-section { padding: 96px 0; }
.ts-title {
  text-align: center; font-weight: 400; font-size: clamp(30px, 4vw, 42px);
  color: var(--ts-green); letter-spacing: .01em; margin-bottom: 14px;
}
.ts-title-left { text-align: left; }
.ts-lead { text-align: center; color: var(--ts-muted); max-width: 560px; margin: 0 auto 56px; line-height: 1.7; }

/* Hero */
.ts-hero { position: relative; background: var(--ts-mint); padding: 60px 0 0; min-height: 620px; }
.ts-hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.ts-collab-pill {
  display: inline-block; padding: 7px 14px; border-radius: 99px; background: #fff;
  font-size: 13px; font-weight: 500; color: var(--ts-ink); box-shadow: 0 6px 18px -10px rgba(0,0,0,.25);
}
.ts-collab-pill b { color: var(--ts-green); margin: 0 4px; }
.ts-wordmark {
  font-size: clamp(64px, 9vw, 124px); font-weight: 700; letter-spacing: -.06em; line-height: .95;
  color: var(--ts-ink); margin: 22px 0 26px;
}
.ts-hero-sub { color: var(--ts-green-d); font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.ts-hero-text { color: var(--ts-muted); font-size: 15px; line-height: 1.75; max-width: 460px; }
.ts-option-label { color: var(--ts-muted); font-size: 13px; margin-top: 22px; opacity: .8; }
.ts-options { display: flex; align-items: center; gap: 22px; margin-top: 8px; font-size: 14px; }
.ts-option { display: inline-flex; align-items: center; gap: 8px; color: var(--ts-ink); }
.ts-option i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--ts-ink); position: relative; }
.ts-option.active i::after { content: ""; position: absolute; inset: 2.5px; border-radius: 50%; background: var(--ts-green); }
.ts-option-price { font-weight: 700; font-size: 18px; color: var(--ts-ink); }
.ts-divider { height: 1px; background: rgba(45,50,47,.18); width: 100%; max-width: 380px; margin: 22px 0 34px; }
.ts-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.ts-hero-visual { position: relative; height: 560px; display: flex; align-items: flex-end; justify-content: center; }
.ts-vertical-word {
  position: absolute; right: -40px; top: 10px; writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: 120px; font-weight: 700; letter-spacing: -.04em; color: rgba(47, 98, 218,.13); line-height: 1; white-space: nowrap;
}
.ts-phone {
  position: relative; z-index: 2; width: 250px; height: 500px; margin-bottom: 52px;
  background: #1b1e1c; border-radius: 40px; padding: 12px;
  box-shadow: 0 40px 60px -25px rgba(21, 40, 90,.55), inset 0 0 0 2px #3a3f3c;
  animation: ts-float 6s ease-in-out infinite;
}
.ts-phone-notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 80px; height: 20px; background: #1b1e1c; border-radius: 12px; z-index: 3; }
.ts-screen { height: 100%; border-radius: 30px; background: #111312; overflow: hidden; display: flex; flex-direction: column; }
.ts-preview {
  flex: 1; position: relative;
  background: linear-gradient(160deg, #6f9bff 0%, #2662ed 45%, #0f43bd 100%);
}
.ts-preview-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.25); backdrop-filter: blur(4px); }
.ts-preview-play::after { content: ""; position: absolute; left: 22px; top: 17px; border-left: 14px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.ts-preview-caption { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #fff; font-weight: 700; font-size: 13px; text-shadow: 0 2px 6px rgba(0,0,0,.4); }
.ts-timeline { position: relative; padding: 14px 12px 8px; background: #181b19; }
.ts-playhead { position: absolute; top: 6px; bottom: 0; left: 46%; width: 2px; background: #fff; animation: ts-scrub 5s linear infinite; }
.ts-track { display: flex; gap: 3px; margin-bottom: 6px; height: 18px; }
.ts-track span { border-radius: 4px; background: #5b8cff; }
.ts-track-b span { background: #e7c46b; height: 12px; margin-top: 3px; }
.ts-track-c span { background: #b48ce0; height: 8px; margin-top: 5px; }
.ts-tools { display: flex; justify-content: space-around; padding: 12px 10px 18px; background: #181b19; }
.ts-tools i { width: 22px; height: 22px; border-radius: 6px; background: #2c312e; }
.ts-tools i:nth-child(3) { background: var(--ts-green); }
.ts-float {
  position: absolute; z-index: 3; background: #fff; border-radius: 12px; padding: 10px 14px;
  font-size: 13px; color: var(--ts-ink); box-shadow: 0 18px 30px -16px rgba(21, 40, 90,.45);
}
.ts-float b { color: var(--ts-green-d); }
.ts-float-a { left: 2%; top: 30%; animation: ts-float 7s ease-in-out infinite reverse; }
.ts-float-b { right: 4%; top: 62%; animation: ts-float 8s ease-in-out infinite; }
.ts-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #34c770; margin-right: 6px; box-shadow: 0 0 0 4px rgba(52,199,112,.18); }
.ts-pedestal {
  position: absolute; bottom: 10px; width: 420px; max-width: 95%; height: 84px; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 30%, #f6f1ea 0%, #cfc7bb 55%, #a69e92 100%);
  box-shadow: 0 30px 40px -20px rgba(21,40,90,.55), inset 0 -10px 18px rgba(0,0,0,.12);
}
.ts-side-tab {
  position: absolute; left: 0; bottom: 70px; background: var(--ts-ink); color: #fff !important; text-decoration: none;
  writing-mode: vertical-rl; transform: rotate(180deg); padding: 18px 10px; font-size: 12px; letter-spacing: .08em;
}
@keyframes ts-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes ts-scrub { 0% { left: 10%; } 100% { left: 90%; } }

/* Stats */
.ts-stats { background: var(--ts-mint-2); padding: 44px 0; }
.ts-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; gap: 20px; }
.ts-stats strong { display: block; font-size: 34px; font-weight: 500; color: var(--ts-green); }
.ts-stats span { color: var(--ts-ink); font-size: 15px; }

/* Why */
.ts-why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; max-width: 900px; margin: 0 auto; }
.ts-why-item svg { width: 52px; height: 52px; color: var(--ts-green-d); margin-bottom: 18px; }
.ts-why-item h4 { font-size: 19px; font-weight: 500; color: var(--ts-ink); }
.ts-why-item p { color: var(--ts-muted); font-size: 14px; line-height: 1.7; max-width: 240px; margin: 0 auto; }

/* About / collab */
.ts-about { padding-top: 40px; }
.ts-about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.ts-about-copy p { color: var(--ts-muted); line-height: 1.8; margin-bottom: 16px; }
.ts-about-copy .ts-hero-actions { margin-top: 30px; }
.ts-about-visual { position: relative; }
.ts-dots {
  position: absolute; right: -24px; top: -36px; width: 120px; height: 100px;
  background-image: radial-gradient(var(--ts-green) 2px, transparent 2px); background-size: 16px 16px; opacity: .6;
}
.ts-collab-card {
  position: relative; background: var(--ts-mint-2); min-height: 380px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px; padding: 40px; text-align: center;
}
.ts-collab-logo { font-size: clamp(34px, 4vw, 48px); font-weight: 700; letter-spacing: -.04em; color: var(--ts-ink); line-height: 1.1; }
.ts-collab-x { font-size: 40px; color: var(--ts-green); font-weight: 300; line-height: 1; }
.ts-collab-card p { margin-top: 18px; color: var(--ts-muted); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }

/* Products section (theme component) */
.ts-products-wrap { background: #f7f8f7; }
.ts-products-wrap .section-title h2 { font-weight: 400; color: var(--ts-green); text-align: center; font-size: clamp(30px, 4vw, 42px); }
.ts-products-wrap .section-subtitle p { text-align: center; color: var(--ts-muted); }
.ts-products-wrap .row.products { justify-content: center; }

/* Product cards (everywhere) */
.products .card {
  background: #fff !important; border: 1px solid var(--ts-line) !important; border-radius: var(--ts-radius) !important;
  overflow: hidden; box-shadow: 0 20px 40px -30px rgba(21, 40, 90,.45); transition: transform .2s ease, box-shadow .2s ease;
}
.products .card:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -30px rgba(21, 40, 90,.55); }
.products .card .card-img-top { background: var(--ts-mint) !important; }
.products .card .product-img-placeholder { color: var(--ts-green) !important; }
.products .card .card-title { color: var(--ts-ink) !important; font-weight: 600; }
.products .card .price { color: var(--ts-ink) !important; font-weight: 700; }

/* Features */
.ts-feature-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 46px; margin-top: 40px; }
.ts-feature { display: flex; flex-direction: column; align-items: center; gap: 14px; color: var(--ts-ink); font-size: 16px; font-weight: 500; }
.ts-feature span {
  width: 92px; height: 92px; border-radius: 50%; background: #fff; display: grid; place-items: center;
  box-shadow: 0 14px 30px -16px rgba(21, 40, 90,.4); color: var(--ts-green-d); transition: transform .2s ease;
}
.ts-feature:hover span { transform: translateY(-4px); }
.ts-feature svg { width: 40px; height: 40px; }

/* Steps */
.ts-steps { background: #fff; }
.ts-steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 50px; align-items: center; }
.ts-step { background: #fff; border-radius: var(--ts-radius); padding: 34px 30px; box-shadow: 0 20px 50px -30px rgba(21, 40, 90,.35); border: 1px solid var(--ts-line); }
.ts-step em { font-style: normal; font-size: 46px; font-weight: 700; color: rgba(47, 98, 218,.35); line-height: 1; }
.ts-step h4 { margin: 14px 0 8px; font-size: 19px; color: var(--ts-ink); font-weight: 600; }
.ts-step p { color: var(--ts-muted); font-size: 14px; line-height: 1.7; margin: 0; }
.ts-step-main { transform: scale(1.06); }

/* Support */
.ts-chat-head { font-weight: 600; color: var(--ts-ink); margin-bottom: 4px; }
.ts-channel { background: #fff; border-radius: 10px; padding: 10px 14px; color: var(--ts-muted); font-size: 14px; box-shadow: 0 10px 20px -14px rgba(0,0,0,.3); }
.ts-chat-head + .ts-channel { background: var(--ts-green); color: #fff; }
.ts-chat-tip { font-size: 13px; color: var(--ts-green-d); margin-top: 6px; }
.ts-support { background: linear-gradient(180deg, #fff 0%, var(--ts-mint-2) 100%); }
.ts-support-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.ts-support-visual {
  background: var(--ts-mint); padding: 50px 40px; clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
  min-height: 320px; display: flex; align-items: center;
}
.ts-chat { display: flex; flex-direction: column; gap: 12px; width: 85%; }
.ts-msg { padding: 12px 16px; border-radius: 16px; font-size: 14px; max-width: 85%; box-shadow: 0 10px 20px -14px rgba(0,0,0,.3); }
.ts-msg-in { background: #fff; color: var(--ts-ink); align-self: flex-start; border-bottom-left-radius: 4px; }
.ts-msg-out { background: var(--ts-green); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.ts-support-title { font-size: clamp(30px, 3.6vw, 40px); font-weight: 400; color: var(--ts-green-d); }
.ts-support-copy p { color: var(--ts-muted); margin: 10px 0 26px; line-height: 1.7; }
.ts-support-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Footer */
.ts-footer { background: var(--ts-mint-2) !important; border-top: 1px solid var(--ts-line) !important; padding: 60px 0 24px; color: var(--ts-ink); }
.ts-footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px; }
.ts-footer-brand { font-size: 26px; font-weight: 700; letter-spacing: -.04em; color: var(--ts-ink) !important; text-decoration: none; }
.ts-footer h6 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ts-green-d); margin-bottom: 14px; }
.ts-footer ul { list-style: none; padding: 0; margin: 0; }
.ts-footer li { margin-bottom: 8px; }
.ts-footer li a { color: var(--ts-muted) !important; text-decoration: none; font-size: 14px; }
.ts-footer li a:hover { color: var(--ts-green-d) !important; }
.ts-footer-note { color: var(--ts-muted); font-size: 14px; line-height: 1.6; margin: 10px 0 14px; }
.ts-footer-bottom { border-top: 1px solid var(--ts-line); margin-top: 40px; padding-top: 18px; font-size: 13px; color: var(--ts-muted); text-align: center; }

/* Product page / other pages – light surfaces */
.card, .modal-content, .form-control, .form-select, .choices__inner, .list-group-item {
  background-color: #fff !important; color: var(--ts-ink) !important; border-color: var(--ts-line) !important;
}
.form-control::placeholder { color: #9aa39d !important; }
h1, h2, h3, h4, h5, h6 { color: var(--ts-ink); }
.product-page, [data-component-id="product-page"] { color: var(--ts-ink); }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .ts-hero-inner, .ts-about-grid, .ts-support-grid { grid-template-columns: 1fr; }
  .ts-hero { padding-top: 40px; }
  .ts-hero-visual { height: 470px; }
  .ts-phone { width: 210px; height: 420px; }
  .ts-vertical-word { font-size: 80px; right: -10px; }
  .ts-stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .ts-why-grid, .ts-steps-grid { grid-template-columns: 1fr; }
  .ts-step-main { transform: none; }
  .ts-footer-grid { grid-template-columns: 1fr 1fr; }
  .ts-section { padding: 70px 0; }
  .ts-side-tab { display: none; }
  .ts-support-visual { clip-path: none; }
  .ts-feature-row { gap: 26px; }
}
@media (max-width: 575px) {
  .ts-wordmark { font-size: 60px; }
  .ts-float-a { left: 0; }
  .ts-float-b { right: 0; }
  .ts-footer-grid { grid-template-columns: 1fr; }
  .ts-hero-actions .ts-btn { flex: 1 1 100%; }
}
/* fixes */
.ts-hero { overflow: hidden; }
.ts-products-wrap .section-title, .ts-products-wrap .section-subtitle { text-align: center; }
.ts-products-wrap .section-title h2 { text-transform: uppercase; margin-bottom: 10px; }
.ts-products-wrap .section-subtitle p { margin-bottom: 30px; }
/* ===== CreatorHub blue colorway ===== */
.ts-hero { background: linear-gradient(180deg, #f0f5ff 0%, #fafcff 70%, #ffffff 100%); }
.ts-pedestal { background: radial-gradient(ellipse at 50% 30%, #ffffff 0%, #dfe7f7 55%, #b9c6e3 100%); box-shadow: 0 30px 40px -20px rgba(21,40,90,.35), inset 0 -10px 18px rgba(16,71,198,.10); }
.ts-btn { border-radius: 10px; font-weight: 600; }
.ts-btn-primary { background: linear-gradient(160deg, #2662ed 0%, #1047c6 100%); }
.ts-btn-primary:hover { background: linear-gradient(160deg, #1f57dc 0%, #0d3aa6 100%); }
.ts-btn-ghost { border-color: #e6e9ef; background: #fff; box-shadow: 0 6px 16px -12px rgba(21,27,40,.35); }
.ts-wordmark span, .ts-hero-sub { color: #2f62da; }
.ts-title { font-weight: 700; letter-spacing: -.01em; }
.ts-collab-pill b, .ts-collab-x { color: #2f62da; }
.ts-stats { background: #f7faff; border-top: 1px solid #e6e9ef; border-bottom: 1px solid #e6e9ef; }
.ts-stats strong { font-weight: 700; color: #2f62da; }
.ts-products-wrap { background: #f7faff; }
.ts-collab-card { background: linear-gradient(160deg, #2662ed 0%, #1047c6 100%); border-radius: 24px; }
.ts-collab-card .ts-collab-logo { color: #fff; }
.ts-collab-card .ts-collab-x { color: #b7cbff; }
.ts-collab-card p { color: rgba(255,255,255,.75); }
.ts-support-visual { background: #f0f5ff; border-radius: 24px 0 0 24px; }
.ts-feature span { border: 1px solid #e6e9ef; }
.ts-step em { color: rgba(47,98,218,.25); }
.btn-primary { background: linear-gradient(160deg, #2662ed 0%, #1047c6 100%) !important; border: 0 !important; border-radius: 10px !important; }
.btn-outline-primary { border-radius: 10px !important; }
.products .card .card-img-top { background: #f0f5ff !important; }
[data-component-id="announcement"] { background: #151b28 !important; }
/* CapCut logo placements */
.ts-app-logo { position: absolute; top: 44%; left: 50%; transform: translate(-50%,-50%); width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 18px 36px -12px rgba(0,0,0,.55), 0 0 0 4px rgba(255,255,255,.18); }
.ts-hero-sub { display: flex; align-items: center; gap: 12px; font-size: 20px; }
.ts-sub-logo { width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 8px 18px -8px rgba(0,0,0,.45); }
.ts-collab-capcut { width: 72px; height: 72px; border-radius: 16px; margin-bottom: 18px; box-shadow: 0 14px 28px -12px rgba(0,0,0,.55); }
@media (max-width: 991px){ .ts-app-logo { width: 76px; height: 76px; border-radius: 18px; } }
/* product image: no box, full width */
.products .card .card-img-top { background: #fff !important; border-bottom: 1px solid #eef1f6; }
.products .card .card-img-top img { width: 100%; height: 100%; object-fit: cover !important; }
/* ===== treedstore logo ===== */
.ts-logo-mark { display: inline-block; flex: none; }
.navbar .navbar-brand { display: inline-flex !important; align-items: center; gap: 8px; }
.navbar .navbar-brand span::after { content: none !important; }
.navbar .navbar-brand span b { color: #2f62da; font-weight: 700; }
.ts-nav-mark { width: 30px; height: 30px; }
.ts-footer-brand { display: inline-flex; align-items: center; gap: 8px; }
.ts-footer-brand b { color: #2f62da; font-weight: 700; }
.ts-ft-mark { width: 32px; height: 32px; }
.ts-wordmark { display: flex; align-items: center; gap: .12em; }
.ts-wordmark .ts-wm-store { color: #2f62da; }
.ts-hero-mark { width: .82em; height: .82em; margin-right: .02em; }
.ts-collab-pill { display: inline-flex; align-items: center; gap: 6px; }
.ts-pill-mark { width: 18px; height: 18px; }
.ts-pill-ch { height: 15px; width: auto; }
.ts-collab-logo { display: inline-flex; align-items: center; gap: 14px; }
.ts-cc-mark { width: 46px; height: 46px; }
.ts-cc-ch { height: 42px; width: auto; }
@media (max-width: 575px) { .ts-cc-mark { width: 34px; height: 34px; } .ts-cc-ch { height: 32px; } }.ts-wordmark > span { color: #151b28 !important; }
.ts-wordmark .ts-wm-store { color: #2f62da !important; }