/* ============================================================================
   Comfortrek V447 — Site-Wide Every-Page Luxury Polish (Light + Dark Safe)
   Elevates Shop, Search, Cart, Checkout, Auth, Account, Compare, Wishlist,
   Track, Concierge, Luggage Lab, Quiz, Blog, Warranty, Contact, Info & Footer.
   ============================================================================ */

/* ---------- 0. UNIVERSAL LUXURY FORM INPUTS, BUTTONS & CARDS ---------- */
html body#comfortrek-storefront[data-storefront-theme] :is(.luxury-form, .smart-form, .ct-checkout, .checkout-narrow, .ct289-search-page, .ct426-page, .ct425-page, .global-seller-page, #comfortrek-account) :is(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="search"], input[type="password"], select, textarea, .form-input) {
  background: var(--ct340-paper) !important;
  color: var(--ct340-ink) !important;
  border: 1px solid var(--ct340-edge) !important;
  border-radius: 12px !important;
  padding: 12px 15px;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}
html body#comfortrek-storefront[data-storefront-theme] :is(.luxury-form, .smart-form, .ct-checkout, .checkout-narrow, .ct289-search-page, .ct426-page, .ct425-page, .global-seller-page, #comfortrek-account) :is(input, select, textarea, .form-input):focus {
  outline: none !important;
  border-color: var(--ct446-glow) !important;
  box-shadow: 0 0 0 3.5px color-mix(in srgb, var(--ct446-glow) 24%, transparent) !important;
}
html body#comfortrek-storefront[data-storefront-theme] :is(.luxury-form, .smart-form, .ct-checkout, .checkout-narrow) label {
  color: var(--ct340-ink);
  font-weight: 600;
  font-size: 13.5px;
}
html body#comfortrek-storefront[data-storefront-theme] :is(.btn-secondary, .home-custom-cta) {
  border-radius: 12px;
  border: 1px solid var(--ct340-edge) !important;
  background: var(--ct340-paper) !important;
  color: var(--ct340-ink) !important;
  transition: transform 0.24s cubic-bezier(0.22,1,0.36,1), border-color 0.24s ease, box-shadow 0.24s ease !important;
}
@media (hover: hover) {
  html body#comfortrek-storefront[data-storefront-theme] :is(.btn-secondary, .home-custom-cta):hover {
    transform: translateY(-2px);
    border-color: var(--ct446-glow) !important;
    box-shadow: 0 10px 24px -14px color-mix(in srgb, var(--ct446-glow) 45%, transparent) !important;
  }
}

/* ---------- 1. SHOP / CATALOG & SEARCH PAGES ---------- */
html body#comfortrek-storefront[data-storefront-theme] :is(#ct-shop349, .ct289-search-page) .ct289-search-hero,
html body#comfortrek-storefront[data-storefront-theme] #ct-shop349 .ct289-shop-head {
  background: radial-gradient(ellipse at 85% 12%, color-mix(in srgb, var(--ct446-glow) 16%, transparent), transparent 55%), var(--ct340-paper) !important;
  border: 1px solid var(--ct340-edge) !important;
  border-radius: 22px !important;
  padding: clamp(22px, 3vw, 38px) !important;
  box-shadow: 0 16px 40px -26px rgba(0, 0, 0, 0.18);
  margin-bottom: 24px;
}
html body#comfortrek-storefront[data-storefront-theme] :is(#ct-shop349, .ct289-search-page) .ct289-filter-chip {
  background: var(--ct340-paper) !important;
  color: var(--ct340-ink) !important;
  border: 1px solid var(--ct340-edge) !important;
  border-radius: 999px !important;
  padding: 7px 15px !important;
  font-weight: 600;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
html body#comfortrek-storefront[data-storefront-theme] :is(#ct-shop349, .ct289-search-page) .ct289-filter-chip:hover,
html body#comfortrek-storefront[data-storefront-theme] :is(#ct-shop349, .ct289-search-page) .ct289-filter-chip.is-active,
html body#comfortrek-storefront[data-storefront-theme] :is(#ct-shop349, .ct289-search-page) .ct289-filter-chip.active {
  border-color: var(--ct446-glow) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ct446-glow) 20%, transparent);
  transform: translateY(-1px);
}

/* ---------- 2. CART PAGE & CART DRAWER ---------- */
html body#comfortrek-storefront[data-storefront-theme] .ct354-cart-layout .cart-line {
  background: var(--ct340-paper) !important;
  color: var(--ct340-ink) !important;
  border: 1px solid var(--ct340-edge) !important;
  border-radius: 18px !important;
  padding: 18px !important;
  margin-bottom: 14px;
  box-shadow: 0 10px 28px -20px rgba(0, 0, 0, 0.16);
  transition: transform 0.26s ease, border-color 0.26s ease, box-shadow 0.26s ease;
}
@media (hover: hover) {
  html body#comfortrek-storefront[data-storefront-theme] .ct354-cart-layout .cart-line:hover {
    border-color: color-mix(in srgb, var(--ct446-glow) 38%, var(--ct340-edge)) !important;
    transform: translateY(-2px);
  }
}
html body#comfortrek-storefront[data-storefront-theme] .ct354-cart-layout .cart-line img {
  border-radius: 12px !important;
  background: var(--ct340-soft);
}
html body#comfortrek-storefront[data-storefront-theme] .ct-cart-summary403 {
  background: var(--ct340-paper) !important;
  color: var(--ct340-ink) !important;
  border: 1px solid color-mix(in srgb, var(--ct446-glow) 26%, var(--ct340-edge)) !important;
  border-top: 3px solid var(--ct446-glow) !important;
  border-radius: 20px !important;
  padding: 24px !important;
  box-shadow: 0 20px 48px -24px rgba(0, 0, 0, 0.22);
}
html body#comfortrek-storefront[data-storefront-theme] .ct-cart-summary403 :is(strong, h2, h3, .price) {
  color: var(--ct340-ink) !important;
  font-variant-numeric: tabular-nums;
}
html body#comfortrek-storefront[data-storefront-theme] :is(#cart-drawer, .cart-drawer) {
  background: var(--ct340-paper) !important;
  color: var(--ct340-ink) !important;
  border-left: 1px solid var(--ct340-edge) !important;
}

/* ---------- 3. CHECKOUT & AUTH PAGES ---------- */
html body#comfortrek-storefront[data-storefront-theme] :is(.ct-checkout, .checkout-narrow) .tag-card,
html body#comfortrek-storefront[data-storefront-theme] .ct-checkout .ct177-truth-box,
html body#comfortrek-storefront[data-storefront-theme] .ct-checkout .ct-pay-card,
html body#comfortrek-storefront[data-storefront-theme] .ct-checkout .address-card {
  background: var(--ct340-paper) !important;
  color: var(--ct340-ink) !important;
  border: 1px solid var(--ct340-edge) !important;
  border-radius: 18px !important;
  box-shadow: 0 14px 34px -22px rgba(0, 0, 0, 0.18);
}
html body#comfortrek-storefront[data-storefront-theme] .checkout-steps,
html body#comfortrek-storefront[data-storefront-theme] .ca362-checkout-steps {
  border-radius: 999px;
  padding: 10px 18px;
  background: var(--ct340-paper);
  border: 1px solid var(--ct340-edge);
  box-shadow: 0 8px 24px -18px rgba(0, 0, 0, 0.16);
}
html body#comfortrek-storefront[data-storefront-theme] .ct-auth362 .ca362-panel {
  border: 1px solid color-mix(in srgb, var(--ct446-glow) 25%, var(--ct340-edge)) !important;
  box-shadow: 0 24px 56px -26px rgba(0, 0, 0, 0.28), 0 0 32px -16px color-mix(in srgb, var(--ct446-glow) 26%, transparent) !important;
}

/* ---------- 4. CUSTOMER ACCOUNT DASHBOARD ---------- */
html body#comfortrek-storefront[data-storefront-theme] #comfortrek-account .cr-account-card {
  background: var(--ct340-paper) !important;
  color: var(--ct340-ink) !important;
  border: 1px solid var(--ct340-edge) !important;
  border-radius: 18px !important;
  transition: transform 0.28s cubic-bezier(0.22,1,0.36,1), border-color 0.24s ease, box-shadow 0.28s ease !important;
}
@media (hover: hover) {
  html body#comfortrek-storefront[data-storefront-theme] #comfortrek-account .cr-account-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--ct446-glow) 44%, var(--ct340-edge)) !important;
    box-shadow: 0 18px 38px -20px rgba(0, 0, 0, 0.22), 0 0 22px -10px color-mix(in srgb, var(--ct446-glow) 36%, transparent) !important;
  }
}
html body#comfortrek-storefront[data-storefront-theme] #comfortrek-account .cr-account-card strong { color: var(--ct340-ink) !important; }
html body#comfortrek-storefront[data-storefront-theme] #comfortrek-account .cr-account-card small { color: var(--ct340-muted) !important; }

/* ---------- 5. COMPARE & WISHLIST PAGES ---------- */
html body#comfortrek-storefront[data-storefront-theme] .ct269-compare-toolbar {
  background: var(--ct340-paper) !important;
  color: var(--ct340-ink) !important;
  border: 1px solid var(--ct340-edge) !important;
  border-radius: 18px !important;
  padding: 20px 24px !important;
  box-shadow: 0 12px 30px -20px rgba(0, 0, 0, 0.16);
}
html body#comfortrek-storefront[data-storefront-theme] .ct269-compare-table {
  background: var(--ct340-paper) !important;
  color: var(--ct340-ink) !important;
  border: 1px solid var(--ct340-edge) !important;
  border-radius: 16px !important;
  overflow: hidden;
}
html body#comfortrek-storefront[data-storefront-theme] .ct269-compare-table :is(th, td) {
  border-color: var(--ct340-edge) !important;
  color: var(--ct340-ink) !important;
  padding: 14px 16px !important;
}
html body#comfortrek-storefront[data-storefront-theme] .ct269-compare-table .compare-label {
  background: var(--ct340-soft) !important;
  color: var(--ct340-muted) !important;
  font-weight: 700 !important;
}

/* ---------- 6. LUXURY PAGES: CONCIERGE, LUGGAGE LAB, QUIZ, TRIP PLANNER, WARRANTY, CONTACT, BULK, GLOBAL SELLER ---------- */
html body#comfortrek-storefront[data-storefront-theme] :is(.luxury-page, .global-seller-page, .luggage-lab-page, .ct426-page, .ct425-page) {
  color: var(--ct340-ink) !important;
}
html body#comfortrek-storefront[data-storefront-theme] :is(.luxury-hero, .ai-concierge-hero, .global-seller-hero) {
  background: radial-gradient(ellipse at 85% 15%, color-mix(in srgb, var(--ct446-glow) 18%, transparent), transparent 56%), var(--ct340-paper) !important;
  border: 1px solid var(--ct340-edge) !important;
  border-radius: 24px !important;
  padding: clamp(26px, 4vw, 48px) !important;
  box-shadow: 0 18px 46px -26px rgba(0, 0, 0, 0.20);
  margin-bottom: 28px;
}
html body#comfortrek-storefront[data-storefront-theme] :is(.luxury-eyebrow, .global-seller-hero .eyebrow, .luxury-hero .eyebrow) {
  color: var(--ct446-glow) !important;
  font-weight: 800;
  letter-spacing: 0.16em;
  font-size: 11.5px;
}
html body#comfortrek-storefront[data-storefront-theme] :is(.luxury-page h1, .global-seller-page h1, .checkout-narrow h1) {
  color: var(--ct340-ink) !important;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
html body#comfortrek-storefront[data-storefront-theme] :is(.luxury-intro, .luxury-hero p, .global-seller-hero p) {
  color: var(--ct340-muted) !important;
  line-height: 1.72;
  max-width: 66ch;
}
html body#comfortrek-storefront[data-storefront-theme] :is(.luxury-form, .smart-form, .luxury-sections article, .ct426-card, .status-card, .ai-product-mini) {
  background: var(--ct340-paper) !important;
  color: var(--ct340-ink) !important;
  border: 1px solid var(--ct340-edge) !important;
  border-radius: 18px !important;
  padding: 24px;
  box-shadow: 0 14px 36px -24px rgba(0, 0, 0, 0.18);
  transition: transform 0.26s ease, border-color 0.26s ease, box-shadow 0.26s ease;
}
@media (hover: hover) {
  html body#comfortrek-storefront[data-storefront-theme] :is(.luxury-sections article, .ai-product-mini, .ct426-card):hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--ct446-glow) 40%, var(--ct340-edge)) !important;
  }
}

/* ---------- 7. BLOG / JOURNAL & CMS READING PAGES ---------- */
html body#comfortrek-storefront[data-storefront-theme] .page-content {
  background: var(--ct340-paper) !important;
  color: var(--ct340-ink) !important;
  border: 1px solid var(--ct340-edge) !important;
  border-radius: 22px !important;
  padding: clamp(24px, 4vw, 44px) !important;
  font-size: 16px !important;
  line-height: 1.8 !important;
  box-shadow: 0 16px 40px -26px rgba(0, 0, 0, 0.16);
}
html body#comfortrek-storefront[data-storefront-theme] .page-content :is(h1, h2, h3, h4, strong) { color: var(--ct340-ink) !important; }
html body#comfortrek-storefront[data-storefront-theme] .page-content :is(p, li) { color: var(--ct340-muted) !important; margin-bottom: 14px; }

/* ---------- 8. SITE FOOTER — LUMINOUS TOP HAIRLINE & CRISP LINKS ---------- */
html body#comfortrek-storefront[data-storefront-theme] :is(footer.site-footer, .site-footer) {
  position: relative;
  border-top: 1px solid color-mix(in srgb, var(--ct446-glow) 34%, var(--ct340-edge)) !important;
}
html body#comfortrek-storefront[data-storefront-theme] :is(footer.site-footer, .site-footer)::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 8%;
  right: 8%;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--ct446-glow), transparent);
  opacity: 0.7;
}
html body#comfortrek-storefront[data-storefront-theme] :is(footer.site-footer, .site-footer) a {
  transition: color 0.2s ease, transform 0.2s ease;
}
@media (hover: hover) {
  html body#comfortrek-storefront[data-storefront-theme] :is(footer.site-footer, .site-footer) a:hover {
    color: var(--ct446-glow) !important;
  }
}
