/* ===================================================
   OrderFromTR — Brand Override
   Report Global Trading Ltd. Color Scheme
   Palette: Turquoise #28CEBD · Dark Turquoise #1c908d · CTA Blue #2854cd · Charcoal #2C3E50
   Loads AFTER bootstrap.min.css & style.css
   =================================================== */

:root {
  /* Primary: Turquoise */
  --bs-primary: #28CEBD;
  --bs-primary-rgb: 40, 206, 189;

  /* Secondary: Dark Turquoise */
  --bs-secondary: #1c908d;
  --bs-secondary-rgb: 28, 144, 141;

  /* Link color */
  --bs-link-color: #28CEBD;
  --bs-link-hover-color: #1c908d;

  /* Brand accent */
  --brand-primary: #28CEBD;
  --brand-accent: #1c908d;
  --brand-dark: #2C3E50;
  --brand-gradient: linear-gradient(135deg, #28CEBD, #1c908d);

  /* CTA Blue (full-width Save-style buttons inspired by reference) */
  --brand-cta: #2854cd;
  --brand-cta-rgb: 40, 84, 205;

  /* Decorative success accent (does NOT replace Bootstrap success #198754) */
  --brand-success-accent: #29ce29;
  --brand-success-accent-rgb: 41, 206, 41;

  /* Pastel mint background for opt-in form inputs */
  --brand-mint-bg: #f0fbf6;
}

/* ---- Bootstrap utility overrides ---- */
.text-primary   { color: #28CEBD !important; }
.bg-primary     { background-color: #28CEBD !important; }
.border-primary { border-color: #28CEBD !important; }

.text-secondary   { color: #1c908d !important; }
.bg-secondary     { background-color: #1c908d !important; }
.border-secondary { border-color: #1c908d !important; }

/* ---- Buttons ---- */
.btn-primary {
  background: linear-gradient(135deg, #28CEBD, #1c908d) !important;
  border-color: #28CEBD !important;
  color: #fff !important;
  box-shadow: 0 3px 10px rgba(40, 206, 189, 0.25);
  transition: transform .15s, box-shadow .2s, opacity .2s;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(40, 206, 189, 0.35) !important;
  border-color: #1c908d !important;
}

.btn-secondary {
  background-color: #1c908d !important;
  border-color: #1c908d !important;
  color: #fff !important;
}
.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
  background-color: #28CEBD !important;
  border-color: #28CEBD !important;
  color: #fff !important;
}

.btn-outline-primary {
  color: #28CEBD !important;
  border-color: #28CEBD !important;
}
.btn-outline-primary:hover {
  background-color: #28CEBD !important;
  color: #fff !important;
}

.btn-outline-secondary {
  color: #1c908d !important;
  border-color: #1c908d !important;
}
.btn-outline-secondary:hover {
  background-color: #1c908d !important;
  color: #fff !important;
}

/* ---- Links ---- */
a { color: #28CEBD; }
a:hover { color: #1c908d; }

/* ---- Navbar ---- */
.nav-bar .bg-primary {
  background-color: #fff !important;
  border-bottom: 2px solid #1c908d;
  box-shadow: 0 2px 16px rgba(40, 206, 189, 0.12);
}

/* Hide dropdown caret on pill buttons (lang/currency/cart) */
.nav-bar .d-flex .nav-item.dropdown > .btn.dropdown-toggle::after { display: none; }

/* Mini-cart item row */
.mini-cart-item { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.mini-cart-item img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; }
.mini-cart-item-info { flex: 1; min-width: 0; }
.mini-cart-item-name { font-size: 0.82rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #2C3E50; }
.mini-cart-item-meta { font-size: 0.75rem; color: #888; }

/* ---- All Categories toggle — match nav-link vertical padding ---- */
.nav-bar .col-lg-3 .navbar-toggler {
  padding-top: 18px !important;
  padding-bottom: 18px !important;
}

/* All Categories button — keep FR on one line; other langs shrink proportionally */
.nav-bar .col-lg-3 .navbar-toggler h4 {
  font-size: 1.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Navbar link hover */
.nav-bar .navbar-nav .nav-link:hover,
.nav-bar .navbar-nav .nav-link.active {
  color: #28CEBD !important;
}

/* ---- Spinner ---- */
.spinner-border.text-primary {
  color: #28CEBD !important;
}

/* ---- Pagination ---- */
.pagination a.active {
  background: linear-gradient(135deg, #28CEBD, #1c908d);
  border-color: #28CEBD;
}
.pagination a:hover:not(.active) {
  background-color: #28CEBD;
  border-color: #28CEBD;
}

/* ---- Copyright / footer bar ---- */
.copyright {
  background: #2C3E50 !important;
}

/* ---- Form focus states ---- */
.form-control:focus,
.form-select:focus {
  border-color: #1c908d;
  box-shadow: 0 0 0 0.25rem rgba(28, 144, 141, 0.20);
}

/* ---- Back to top ---- */
.btn.back-to-top {
  background: linear-gradient(135deg, #28CEBD, #1c908d) !important;
  border: none;
}

/* ---- Logo styling (Amazon-style: CSS background, not <img>) ---- */
.brand-logo {
  display: inline-block;
  background: url('/img/logo.png?v=20260501') no-repeat center center;
  background-size: contain;
  text-decoration: none;
  /* Block right-click "Save image as" — there is no <img> element to target */
}
.brand-logo--mobile {
  width: 220px;
  height: 50px;
}
.brand-logo--desktop {
  width: 260px;
  height: 42px;
}
@media (max-width: 575px) {
  .brand-logo--mobile { width: 180px; height: 40px; }
}

/* Legacy fallback (kept in case any page still has <img> inside .navbar-brand) */
.navbar-brand img {
  max-height: 60px;
  max-width: 240px;
  width: auto;
  height: auto;
  object-fit: contain;
}
@media (min-width: 992px) {
  .navbar-brand img {
    max-height: 75px;
    max-width: 360px;
  }
}

/* ---- Product badges ---- */
.product-new {
  background: #1c908d !important;
}
.product-sale {
  background: #c0392b !important;
}

/* ---- Nav tabs ---- */
.nav.nav-tabs .nav-link.active {
  color: #28CEBD !important;
  border-bottom-color: #28CEBD !important;
}
.nav.nav-tabs .nav-link:hover {
  color: #1c908d !important;
}

/* ---- Carousel dots (single product) ---- */
.single-product .single-carousel .owl-dots .owl-dot img {
  border-color: #28CEBD;
}
.single-product .single-carousel .owl-dots .owl-dot.active img {
  border-color: #1c908d;
}

/* ---- Star ratings keep gold ---- */
.fas.fa-star.text-primary {
  color: #f39c12 !important;
}

/* ---- Page header gradient ---- */
.page-header {
  background: linear-gradient(rgba(40, 206, 189, 0.65), rgba(44, 62, 80, 0.75)), url(../img/carousel-1.jpg);
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: scroll; /* fixed breaks on iOS Safari */
}

/* ---- Product card hover glow + image zoom ---- */
.product-item { overflow: visible !important; }
.product-item-inner {
  transition: box-shadow .25s, border-color .25s !important;
}
.product-item:hover .product-item-inner {
  box-shadow: 0 6px 24px rgba(40, 206, 189, 0.18) !important;
  border-color: #1c908d !important;
}

/* Image zoom on hover — universal for all product grids */
.product-item-inner-item {
  overflow: hidden;
}
.product-item-inner-item img {
  transition: transform 0.4s ease;
  will-change: transform;
}
.product-item:hover .product-item-inner-item img {
  transform: scale(1.02);
}

/* ---- Action button always visible (override template's hidden/slide-up) ---- */
.product .product-item .product-item-add,
.products .product-item .product-item-add {
  position: static !important;
  opacity: 1 !important;
  margin-bottom: 0 !important;
  background: transparent;
}
.product .product-item:hover .product-item-add,
.products .product-item:hover .product-item-add {
  margin-bottom: 0 !important;
}

/* ---- Product card eye-icon overlay (.products mirrors .product from style.css) ---- */
.products .product-item .product-item-inner .product-item-inner-item {
  position: relative;
  border-top-right-radius: 10px;
  border-top-left-radius: 10px;
  overflow: hidden;
}
.products .product-item .product-item-inner .product-item-inner-item .product-details {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border-top-right-radius: 10px;
  border-top-left-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  background: rgba(255, 255, 255, 0.2);
  transition: 0.5s;
}
.products .product-item:hover .product-item-inner .product-details {
  opacity: 1;
}
.products .product-item .product-item-inner .product-item-inner-item .product-details a i {
  width: 50px;
  height: 50px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bs-primary);
  color: var(--bs-white);
  transition: 0.5s;
}
.products .product-item:hover .product-item-inner .product-item-inner-item .product-details a i:hover {
  background: var(--bs-secondary);
  color: var(--bs-white);
}

/* ---- Search category select — restore right padding for dropdown arrow ---- */
#searchCategory {
  padding-right: 2.25rem !important;
  width: 240px !important;
}

/* ---- Cyan search button (matches phone/WA button color) ---- */
#searchBtn,
#shopSearchBtn {
  background: #1c908d !important;
  border-color: #1c908d !important;
  color: #fff !important;
  box-shadow: none !important;
}
#searchBtn:hover,
#shopSearchBtn:hover {
  background: #28CEBD !important;
  border-color: #28CEBD !important;
}

/* ---- Topbar My Account button (cyan, matches phone button) ---- */
.btn-alibaba-account {
  background: #1c908d;
  color: #fff !important;
  border: none;
  border-radius: 50px;
  padding: 5px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.btn-alibaba-account:hover {
  background: #28CEBD;
  color: #fff !important;
}

/* ---- Topbar accent ---- */
.top-bar {
  background: #2C3E50 !important;
  border-bottom: 1px solid #374f61;
}

/* ---- Section headings accent ---- */
.section-title h1::after,
.section-title h2::after {
  background: linear-gradient(90deg, #28CEBD, #1c908d);
}

/* ---- Featured/services icon circles ---- */
.service-item .service-icon,
.featured .featured-icon {
  background: linear-gradient(135deg, rgba(40,206,189,0.12), rgba(28,144,141,0.12));
  border: 1px solid rgba(28, 144, 141, 0.25);
  color: #28CEBD;
}

/* ---- Category nav highlight ---- */
.category-filter .btn.active,
.category-filter .btn:hover {
  background: linear-gradient(135deg, #28CEBD, #1c908d) !important;
  border-color: #28CEBD !important;
  color: #fff !important;
}

/* ---- Hero Product Carousel ---- */
.hero-product-carousel {
  position: relative;
  height: 440px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}
.hero-carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
.hero-carousel-slide {
  flex: 0 0 100%;
  position: relative;
  overflow: hidden;
}
.hero-carousel-slide img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  display: block;
}
.hero-carousel-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px 20px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.72));
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}
.hero-carousel-dots {
  position: absolute;
  bottom: 14px; right: 14px;
  display: flex;
  gap: 7px;
  z-index: 2;
}
.hero-carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  border: none;
  padding: 0;
}
.hero-carousel-dot.active {
  background: #fff;
  transform: scale(1.35);
}
.hero-carousel-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(40,206,189,0.3), rgba(28,144,141,0.2));
}

/* ====================================================
   Mobile Responsiveness
   ==================================================== */

/* ---- Carousel nav buttons: hide on mobile ---- */
@media (max-width: 767px) {
  .carousel-nav-btn { display: none !important; }
}

/* ---- Tablet: slightly smaller cards in home carousel ---- */
@media (max-width: 767px) {
  #featuredProductsGrid > * { width: 230px !important; }
}

/* ---- Navbar logo smaller on mobile ---- */
@media (max-width: 575px) {
  .navbar-brand img { max-height: 50px !important; max-width: 220px !important; }
}

/* ---- Navbar action buttons: compact on mobile ---- */
@media (max-width: 575px) {
  .nav-bar .d-flex.flex-wrap.gap-2 {
    gap: 6px !important;
  }
  .nav-bar .d-flex.flex-wrap .btn {
    padding: 8px 12px !important;
    font-size: 0.8rem;
  }
  .nav-bar .navbar-nav .nav-link {
    padding: 10px 0 !important;
    font-size: 0.95rem;
  }
}

/* ---- Trust bar (homepage): smaller text + tighter padding on mobile ---- */
@media (max-width: 575px) {
  .trust-bar .trust-item {
    font-size: 0.72rem;
    padding: 10px 2px;
  }
  .trust-bar .trust-item i {
    font-size: 0.8rem;
    margin-right: 4px !important;
  }
}

/* ---- Shop Services / Trust Badges: responsive grid ---- */
@media (max-width: 575px) {
  .container-fluid.px-0 > .row.g-0 > [class*="col-6"] {
    width: 100% !important;
    flex: 0 0 100%;
    max-width: 100%;
    border-bottom: 1px solid #e9ecef;
  }
  .container-fluid.px-0 > .row.g-0 > [class*="col-6"] .p-4 {
    padding: 12px 16px !important;
  }
  .container-fluid.px-0 > .row.g-0 > [class*="col-6"] h6 {
    font-size: 0.8rem;
    margin-bottom: 2px !important;
  }
  .container-fluid.px-0 > .row.g-0 > [class*="col-6"] p {
    font-size: 0.78rem;
  }
  .container-fluid.px-0 > .row.g-0 > [class*="col-6"] .fa-2x {
    font-size: 1.3rem !important;
  }
}
@media (min-width: 576px) and (max-width: 767px) {
  .container-fluid.px-0 > .row.g-0 > [class*="col-6"] .p-4 {
    padding: 10px 12px !important;
  }
  .container-fluid.px-0 > .row.g-0 > [class*="col-6"] h6 {
    font-size: 0.75rem;
  }
  .container-fluid.px-0 > .row.g-0 > [class*="col-6"] p {
    font-size: 0.72rem;
  }
  .container-fluid.px-0 > .row.g-0 > [class*="col-6"] .fa-2x {
    font-size: 1.2rem !important;
  }
}

/* ---- Page header: smaller on mobile ---- */
@media (max-width: 575px) {
  .container-fluid.page-header {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  .container-fluid.page-header h1 {
    font-size: 1.5rem !important;
  }
  .container-fluid.page-header .breadcrumb {
    font-size: 0.82rem;
  }
}

/* ---- Hero section: mobile adjustments ---- */
@media (max-width: 575px) {
  .hero-section {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  .hero-section h1.display-4 {
    font-size: 1.6rem !important;
    line-height: 1.3 !important;
  }
  .hero-section .fs-5 {
    font-size: 0.92rem !important;
  }
  .hero-stat-chip {
    font-size: 0.72rem;
    padding: 7px 12px;
  }
  .hero-section .btn {
    width: 100%;
    text-align: center;
    padding: 12px 20px !important;
  }
  .hero-section .d-flex.flex-wrap.gap-3 {
    gap: 8px !important;
  }
}
@media (min-width: 576px) and (max-width: 767px) {
  .hero-section h1.display-4 {
    font-size: 2rem !important;
  }
}

/* ---- Category cards: 2 cols on small mobile ---- */
@media (max-width: 575px) {
  .cat-card .cat-bg {
    height: 140px;
  }
  .cat-card .cat-bg img {
    max-height: 100px;
  }
  .cat-card .cat-body {
    padding: 14px 16px;
  }
  .cat-card .cat-body h4 {
    font-size: 1rem;
  }
  .cat-card .cat-body p {
    font-size: 0.78rem;
  }
}

/* ---- Shop product grid: 1 column on xs, 2 on sm ---- */
@media (max-width: 575px) {
  #shopProductGrid .col-md-6 { width: 100% !important; max-width: 100% !important; }
}
@media (min-width: 576px) and (max-width: 767px) {
  #shopProductGrid .col-md-6 { width: 50% !important; }
}

/* ---- Product card: responsive image height ---- */
@media (max-width: 575px) {
  .product-item-inner-item img { height: 200px !important; object-fit: cover; }
}

/* ---- Shop sidebar: collapsible on mobile ---- */
@media (max-width: 991px) {
  .shop-sidebar { margin-bottom: 1.5rem; }
  .shop .container > .row > .col-lg-3 {
    margin-bottom: 0.5rem;
  }
  .shop .col-lg-3 h4 {
    font-size: 1rem;
  }
  /* Filter toggle button styling */
  #shopFilters {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
  }
}

/* ---- Shop sort & count bar ---- */
@media (max-width: 575px) {
  #shopSort {
    font-size: 0.82rem;
    padding: 6px 8px;
  }
  #shopResultCount {
    font-size: 0.78rem !important;
  }
}

/* ---- Pagination: better touch targets ---- */
@media (max-width: 575px) {
  #shopPagination .page-link {
    min-width: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px !important;
    font-size: 0.85rem;
  }
}

/* ---- Search bar: full width on mobile ---- */
@media (max-width: 575px) {
  #shopSearchInput { font-size: 0.9rem; }
  #searchCategory { width: 100% !important; max-width: 100%; }
}

/* ---- RFQ Form: better touch targets ---- */
@media (max-width: 575px) {
  .rfq-section .form-control,
  .rfq-section .form-select {
    padding: 12px 14px !important;
    font-size: 0.92rem;
    min-height: 46px;
  }
  .rfq-section .btn {
    min-height: 48px;
    font-size: 1rem;
  }
}

/* ---- Step cards (How It Works): smaller on mobile ---- */
@media (max-width: 575px) {
  .step-card {
    padding: 20px 16px;
  }
  .step-number {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }
}

/* ---- Export destination flags: readable on mobile ---- */
@media (max-width: 575px) {
  .flag-grid {
    gap: 10px;
    justify-content: center;
  }
  .flag-item {
    width: 58px;
    font-size: 0.82rem;
  }
  .export-stat-box h2 {
    font-size: 2rem;
  }
}

/* ---- Footer: center + compact on mobile ---- */
@media (max-width: 767px) {
  .footer .row.g-4 > [class*="col-"] { text-align: center; }
  .footer .row.g-4 > [class*="col-"] .rounded-circle { margin-left: auto; margin-right: auto; }
  .footer { padding: 2rem 0 !important; }
  .footer h4 { font-size: 1.1rem; }
}

/* ---- General: prevent horizontal overflow ---- */
html, body {
  overflow-x: hidden;
}

/* ---- Touch targets: minimum 44px for all interactive elements ---- */
@media (max-width: 767px) {
  .spec-filter + label {
    padding: 6px 0;
    min-height: 36px;
    display: flex;
    align-items: center;
  }
  .form-check {
    padding-top: 4px;
    padding-bottom: 4px;
  }
  .categories-item a,
  .categories-bars-item a {
    padding: 10px 12px;
    display: block;
  }
}

/* ---- Price filter: stack on mobile ---- */
@media (max-width: 575px) {
  .shop .col-lg-3 .d-flex.align-items-center.gap-2 {
    flex-wrap: wrap;
  }
  .shop .col-lg-3 #priceMin,
  .shop .col-lg-3 #priceMax {
    width: 70px !important;
  }
}

/* ---- Carousel nav buttons: 44px touch target ---- */
.carousel-nav-btn {
  width: 44px;
  height: 44px;
}

/* ---- Contact form: proper touch targets on mobile ---- */
@media (max-width: 767px) {
  .form-control,
  .form-select {
    min-height: 46px;
    padding: 10px 14px;
    font-size: 16px; /* prevents iOS zoom on focus */
  }
  textarea.form-control {
    min-height: 120px;
  }
  .btn[type="submit"],
  form .btn-primary {
    min-height: 48px;
    font-size: 1rem;
  }
}

/* ---- Shop pagination: bottom-centered, polished pill buttons ---- */
/* NOTE: !important on display/flex because theme style.css overrides .pagination to inline-block */
#shopPagination .pagination {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center;
  gap: 8px;
  padding: 0;
  list-style: none;
}
#shopPagination .page-item {
  display: inline-flex;
  list-style: none;
}
#shopPagination .page-link {
  border-radius: 50px;
  min-width: 44px;
  padding: 0.55rem 1rem;
  border: 1px solid #e5e7eb;
  color: #374151;
  text-align: center;
  font-weight: 500;
  transition: all 0.15s ease;
  margin-left: 0;
}
#shopPagination .page-link:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #111827;
  transform: translateY(-1px);
}
#shopPagination .page-item.active .page-link {
  background: var(--bs-primary);
  border-color: var(--bs-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(13, 110, 253, 0.25);
}
#shopPagination .page-item.disabled .page-link {
  opacity: 0.45;
  cursor: not-allowed;
  background: transparent;
}
#shopPagination .page-link-ellipsis {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: default;
}
#shopPagination .pagination-info {
  text-align: center;
  font-size: 0.82rem;
  color: #6b7280;
  margin: 0.85rem 0 0;
}
@media (max-width: 575px) {
  #shopPagination .pagination { gap: 6px; }
  #shopPagination .page-link {
    min-width: 40px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }
}

/* CLS prevention for shop product grid (audit fix 2026-04-17) */
#shopProductGrid {
  min-height: 600px;
}
#shopProductGrid .product-item-inner-item {
  aspect-ratio: 300/220;
  background: #f8f9fa;
  overflow: hidden;
  padding: 10px;
}
#shopProductGrid .product-item-inner-item img {
  aspect-ratio: 300/220;
  background: #f8f9fa;
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

/* ============================================================
   CSP cleanup 2026-04-20 — replaces inline style="" attributes
   ============================================================ */

/* ---- Brand color utilities ---- */
.text-brand-cyan        { color: #1c908d; }
.text-muted-white       { color: rgba(255,255,255,0.65); }
.border-muted-white     { border-color: rgba(255,255,255,0.1) !important; }
.bg-brand-gradient      { background: linear-gradient(135deg, #2C3E50 0%, #28CEBD 100%); }
.bg-export-stat         { background: linear-gradient(135deg, #2C3E50, #28CEBD); }
.bg-white-03            { background: rgba(255,255,255,0.03); }

/* ---- Icon-color classes (replace $iconColor inline attr in header.php) ---- */
.nav-icon-cyan          { color: #1c908d; }
.nav-icon-blue          { color: #28CEBD; }
.nav-icon-amber         { color: #f0ad4e; }
.nav-icon-green         { color: #28a745; }
.nav-icon-fixed         { width: 20px; }

/* ---- Font size / spacing helpers ---- */
.eyebrow                { letter-spacing: 3px; font-size: 0.82rem; }
.lh-tight-2             { line-height: 1.2; }
.lead-comfortable       { font-size: 1.1rem; line-height: 1.65; }
.fs-72                  { font-size: .72rem; }
.fs-74                  { font-size: .74rem; }
.fs-78                  { font-size: .78rem; }
.fs-85                  { font-size: .85rem; }
.fs-3rem                { font-size: 3rem; }

/* ---- Trust badge (5 single.php + 4 payment badges) ---- */
.badge-trust            { font-size: .78rem; padding: 6px 10px; }
.badge-pay              { font-size: .74rem; }
.btn-unit-toggle        { font-size: .72rem; padding: 2px 8px; }

/* ---- Max-width helpers ---- */
.mw-280                 { max-width: 280px; }
.mw-420                 { max-width: 420px; }
.mw-520                 { max-width: 520px; }
.mw-620                 { max-width: 620px; }
.mw-720                 { max-width: 720px; }

/* ---- Height / width fixed boxes ---- */
.h-100px                { height: 100px; }
.h-160px                { height: 160px; }
.mh-200                 { min-height: 200px; }
.mh-400                 { min-height: 400px; }
.iframe-map             { height: 100%; min-height: 400px; }
.logo-55                { max-height: 55px; max-width: 230px; width: auto; height: auto; object-fit: contain; }
.logo-105               { max-height: 75px; max-width: 360px; width: auto; height: auto; object-fit: contain; }
.spinner-3rem           { width: 3rem; height: 3rem; }
.navbar-cat-toggle      { width: 250px; }
.w-120                  { width: 120px; }
.w-240-fixed            { width: 240px; flex: 0 0 240px; }

/* ---- Avatar / circle helpers ---- */
.circle-70              { width: 70px; height: 70px; }
.avatar-50              { width: 50px; height: 50px; min-width: 50px; }
.social-icon-pill {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  transition: background .2s;
}

/* ---- Image / media helpers ---- */
.img-cover-220          { height: 220px; object-fit: cover; }
.product-main-img {
  max-height: 400px;
  width: auto;
  object-fit: contain;
  cursor: zoom-in;
  aspect-ratio: 600/400;
}

/* ---- Search bar components ---- */
.search-wrap-flex       { display: flex !important; flex-wrap: nowrap; }
.search-input-flex      { flex: 1 1 auto; min-width: 0; }
.btn-search-no-border   { border: 0; }

/* ---- Dropdown / cart popover ---- */
.dropdown-menu-wide     { min-width: 280px; }
.cat-dropdown-pane {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1050;
  width: 250px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
}
.mini-cart-dropdown {
  min-width: 300px;
  top: 100%;
  z-index: 1050;
}
.cart-badge-small       { font-size: .65rem; }
.shop-sort-auto         { width: auto; }

/* ---- Review picker ---- */
.rating-picker          { cursor: pointer; color: #ddd; }

/* ---- Mobile sticky bar (single.php, gap-scan ICE #5 2026-04-22) ---- */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1020;
  background: #fff;
  border-top: 1px solid #e5e5e5;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -2px 10px rgba(0,0,0,.08);
}
.mobile-sticky-btn      { padding: 10px 6px; font-size: .85rem; font-weight: 600; min-height: 44px; }
/* Lift content clear of fixed bar on mobile PDP so last row isn't hidden */
@media (max-width: 767.98px) {
  body:has(#mobileStickyBar) { padding-bottom: 76px; }
}

/* ---- RFQ inline section gradient (single.php) ---- */
.rfq-inline-section-bg  { background: linear-gradient(135deg, #2C3E50 0%, #28CEBD 100%); }

/* ---- Translucent footer panel bg ---- */
.bg-white-3             { background: rgba(255, 255, 255, .03); }

/* ---- Position helpers ---- */
.pos-relative           { position: relative; }

/* Mobile body padding to clear sticky bar (was inline <style> in single.php:956) */
@media (max-width: 767.98px) {
  body                  { padding-bottom: 72px; }
}

/* ============================================================
   Externalized <style> blocks (formerly inline in modules)
   ============================================================ */

/* ---- modules/account.php (was lines 118-137) ---- */
.account-card                           { border: none; box-shadow: 0 2px 20px rgba(0,0,0,.08); border-radius: 12px; }
.account-card .card-header              { background: transparent; border-bottom: 2px solid #f0f0f0; padding: 1.5rem 1.5rem 0; }
.account-nav-pills .nav-link            { color: #555; font-weight: 500; border-radius: 8px 8px 0 0; padding: .75rem 1.5rem; }
.account-nav-pills .nav-link.active     { background-color: var(--bs-primary, #0d6efd); color: #fff; }
.account-form .form-floating label      { color: #888; }
.why-register-icon                      { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.dashboard-tab-content                  { padding: 1.5rem 0 0; }
.order-status-badge                     { font-size: .75rem; padding: .35em .65em; }
#accountMessage                         { margin-top: 1rem; }
.welcome-bar                            { background: linear-gradient(135deg, #1a3c6b 0%, #2563a8 100%); border-radius: 10px; padding: 1.25rem 1.75rem; margin-bottom: 1.5rem; }
.welcome-bar h4                         { margin: 0; color: #fff; font-size: 1.25rem; }
.welcome-bar a                          { color: rgba(255,255,255,.75); font-size: .85rem; text-decoration: none; }
.welcome-bar a:hover                    { color: #fff; text-decoration: underline; }
.orders-table th                        { background: #f8f9fa; font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: #666; }
.empty-state                            { padding: 3rem 1rem; text-align: center; }
.empty-state i                          { font-size: 3rem; color: #ccc; margin-bottom: 1rem; }
.quick-quote-area textarea              { min-height: 140px; resize: vertical; }
#regCountry, #profCountry               { font-family: 'Open Sans', 'Roboto', Arial, sans-serif; }

/* ---- modules/home.php (was lines 224-241) ---- */
.hero-section                           { background: linear-gradient(135deg, #0f1c2c 0%, #1c4d5e 45%, #1c908d 100%); position: relative; overflow: hidden; }
.hero-section::before                   { content: ''; position: absolute; inset: 0; background: url('/img/carousel-1.jpg') center/cover no-repeat; opacity: 0.18; }
.hero-section::after                    { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.15) 100%); pointer-events: none; }
.hero-section .container                { position: relative; z-index: 1; }
/* Highlight words ("OrderFromTR" + "Direct From The Manufacturer") — parlak mint + dark shadow for contrast against gradient */
.hero-section .text-brand-cyan          { color: #6FF0DE !important; text-shadow: 0 2px 12px rgba(0,0,0,0.5), 0 0 1px rgba(0,0,0,0.4); }
.hero-section .eyebrow.text-brand-cyan  { color: #B8FFEF !important; text-shadow: 0 1px 6px rgba(0,0,0,0.4); }
.hero-section h1.display-4              { text-shadow: 0 2px 14px rgba(0,0,0,0.4); }
.hero-section .text-muted-white         { color: rgba(255,255,255,0.92) !important; text-shadow: 0 1px 8px rgba(0,0,0,0.35); }
.hero-stat-chip                         { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.22); border-radius: 50px; padding: 10px 20px; color: #fff; font-weight: 600; font-size: 0.85rem; backdrop-filter: blur(6px); }
.hero-stat-chip i                       { color: #1c908d; }
.trust-bar                              { background: #2C3E50; }
.trust-bar .trust-item                  { color: #fff; font-size: 0.88rem; font-weight: 500; padding: 15px 0; }
.trust-bar .trust-item i                { color: #1c908d; }
.step-card                              { text-align: center; padding: 32px 24px; border-radius: 12px; background: #fff; border: 1px solid #e9ecef; height: 100%; transition: box-shadow 0.3s; }
.step-card:hover                        { box-shadow: 0 8px 32px rgba(40,206,189,0.15); }
.step-number                            { width: 54px; height: 54px; background: linear-gradient(135deg, #28CEBD, #1c908d); color: #fff; font-size: 1.3rem; font-weight: 700; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.step-icon                              { font-size: 1.8rem; color: #28CEBD; margin-bottom: 12px; }
.flag-grid                              { display: flex; flex-wrap: wrap; gap: 14px; }
.flag-item                              { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 0.8rem; color: #555; font-weight: 500; width: 64px; }
.flag-item .flag img                    { width: 36px; height: 27px; border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,0.15); }
.export-stat-box                        { background: linear-gradient(135deg, #28CEBD, #1c908d); color: #fff; border-radius: 12px; padding: 28px 24px; text-align: center; }
.export-stat-box h2                     { font-size: 2.6rem; font-weight: 700; margin: 0; }
.export-stat-box p                      { margin: 4px 0 0; opacity: 0.9; font-size: 0.88rem; }
.rfq-section                            { background: linear-gradient(135deg, #2C3E50 0%, #28CEBD 100%); }
.rfq-section .form-control,
.rfq-section .form-select               { border-radius: 8px; border: 1px solid #dee2e6; padding: 11px 15px; }
.product-carousel-wrap                  { position: relative; }
#featuredProductsGrid                   { flex-wrap: nowrap !important; overflow-x: hidden !important; scroll-behavior: auto; -webkit-overflow-scrolling: touch; }
#featuredProductsGrid > *               { flex: 0 0 auto !important; width: 270px !important; }
.carousel-nav-btn                       { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: none; background: #28CEBD; color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; box-shadow: 0 3px 12px rgba(40,206,189,0.35); display: flex; align-items: center; justify-content: center; }
.carousel-nav-btn.prev                  { left: -18px; }
.carousel-nav-btn.next                  { right: -18px; }

/* WCAG 2.1 AAA touch target (≥44×44 px) for PDP qty +/- buttons (Sprint Alpha A8) */
.btn-qty-touch                          { min-width: 44px; min-height: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }

/* Mobile sticky search (gap-scan Quick Win #3, 2026-04-22) */
.mobile-sticky-search                   { position: sticky; top: 0; z-index: 1020; background: #fff; border-bottom: 1px solid #e5e5e5; box-shadow: 0 2px 6px rgba(0,0,0,.05); }
.mobile-sticky-search .form-control:focus { box-shadow: 0 0 0 .2rem rgba(40,206,189,.15); border-color: #28CEBD; }

/* Checkout secure trust row (gap-scan Quick Win #2, 2026-04-22) */
.checkout-trust-row                     { background: #f8f9fa; }
.checkout-trust-row .fa-cc-visa         { color: #1a1f71; }
.checkout-trust-row .fa-cc-mastercard   { color: #eb001b; }
.checkout-trust-row .fa-cc-amex         { color: #2e77bc; }
.checkout-trust-row .fa-cc-paypal       { color: #003087; }
.checkout-trust-row .fa-university      { color: #2C3E50; }
.checkout-trust-row .fa-lock            { color: #198754 !important; }

/* SSR star rating above-fold on PDP (gap-scan ICE #3, 2026-04-22) */
.product-rating-stars                   { display: inline-flex; align-items: center; gap: .45rem; font-size: .9rem; line-height: 1; flex-wrap: wrap; }
.product-rating-stars .stars            { color: #f8b739; letter-spacing: 1px; font-size: 1rem; white-space: nowrap; }
.product-rating-stars .stars i          { margin-right: 1px; }
.product-rating-stars .rating-score     { color: #212529; font-weight: 600; }
.product-rating-stars .rating-count     { color: #6c757d; text-decoration: none; }
.product-rating-stars .rating-count:hover { text-decoration: underline; color: var(--bs-primary, #28CEBD); }
.product-rating-stars.no-reviews        { color: #6c757d; }

/* ===================================================
   Bootstrap baked-orange (#F28B00) overrides — 2026-04-29
   Bootstrap was recompiled with #F28B00 as primary; brand.css
   only overrode .btn-primary class. These rules cover the
   remaining Bootstrap utilities so no orange leaks through.
   =================================================== */

/* Nav links / tabs / pills */
.nav-link {
  color: var(--bs-primary) !important;
}
.nav-link:hover,
.nav-link:focus {
  color: var(--bs-secondary) !important;
}
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  background-color: var(--bs-primary) !important;
  color: #fff !important;
}

/* Dropdown active item */
.dropdown-item.active,
.dropdown-item:active {
  background-color: var(--bs-primary) !important;
  color: #fff !important;
}
.dropdown-menu-dark .dropdown-item.active,
.dropdown-menu-dark .dropdown-item:active {
  background-color: var(--bs-primary) !important;
}

/* Pagination */
.page-link {
  color: var(--bs-primary) !important;
}
.page-link:focus {
  color: var(--bs-secondary) !important;
  box-shadow: 0 0 0 0.25rem rgba(40, 206, 189, 0.25) !important;
}
.page-link:hover {
  color: var(--bs-secondary) !important;
}
.page-item.active .page-link {
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
  color: #fff !important;
}

/* List group */
.list-group-item.active {
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
  color: #fff !important;
}

/* Progress bar */
.progress-bar {
  background-color: var(--bs-primary) !important;
}

/* Btn-link, link-primary */
.btn-link {
  color: var(--bs-primary) !important;
}
.btn-link:hover {
  color: var(--bs-secondary) !important;
}
.link-primary {
  color: var(--bs-primary) !important;
}
.link-primary:hover {
  color: var(--bs-secondary) !important;
}

/* Universal focus ring (replaces Bootstrap's orange glow) */
.btn:focus,
.btn-check:focus + .btn {
  box-shadow: 0 0 0 0.25rem rgba(40, 206, 189, 0.25) !important;
}
.btn-outline-primary:focus,
.btn-check:focus + .btn-outline-primary {
  box-shadow: 0 0 0 0.25rem rgba(40, 206, 189, 0.5) !important;
}
.btn-close:focus {
  box-shadow: 0 0 0 0.25rem rgba(40, 206, 189, 0.25) !important;
}

/* Form focus ring (was orange) */
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: var(--bs-secondary) !important;
  box-shadow: 0 0 0 0.25rem rgba(40, 206, 189, 0.20) !important;
}
.form-check-input:checked {
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
}
.form-check-input[type="checkbox"]:indeterminate {
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
}

/* Form-range slider */
.form-range::-webkit-slider-thumb {
  background-color: var(--bs-primary) !important;
}
.form-range::-moz-range-thumb {
  background-color: var(--bs-primary) !important;
}
.form-range:focus::-webkit-slider-thumb {
  box-shadow: 0 0 0 1px #fff, 0 0 0 0.25rem rgba(40, 206, 189, 0.25) !important;
}

/* Accordion focus */
.accordion-button:focus {
  border-color: var(--bs-secondary) !important;
  box-shadow: 0 0 0 0.25rem rgba(40, 206, 189, 0.25) !important;
}
.accordion-button:not(.collapsed) {
  color: var(--bs-primary) !important;
  background-color: rgba(40, 206, 189, 0.10) !important;
}

/* Bootstrap base "a" color got compiled to orange — overridden globally
   (brand.css already has `a { color: var(--bs-link-color); }` but
   the compiled Bootstrap rule still wins on certain combinators) */
a:not(.btn):not(.dropdown-toggle):not(.dropdown-item) {
  color: var(--bs-link-color);
}
a:not(.btn):not(.dropdown-toggle):not(.dropdown-item):hover {
  color: var(--bs-link-hover-color);
}

/* ===================================================
   Palette Refresh 2026-04-29 — Reference-inspired utilities
   Opt-in classes; existing buttons/forms unaffected.
   =================================================== */

/* (1) Big blue full-width CTA — inspired by reference "Save Changes" */
.btn-cta {
  background: var(--brand-cta) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px;
  padding: .85rem 1.5rem;
  font-weight: 600;
  letter-spacing: .2px;
  box-shadow: 0 3px 10px rgba(40, 84, 205, 0.22);
  transition: transform .15s, box-shadow .2s, opacity .2s;
}
.btn-cta:hover,
.btn-cta:focus,
.btn-cta:active {
  background: #1f44b3 !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(40, 84, 205, 0.32) !important;
}
.btn-cta-block { width: 100%; display: block; }

/* (2) Pastel-bg circular icon badges — reference profile-row icons */
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1rem;
  flex-shrink: 0;
}
.icon-badge--turquoise { background: rgba(40, 206, 189, 0.15); color: #1c908d; }
.icon-badge--blue      { background: rgba(40, 84, 205, 0.13);  color: #2854cd; }
.icon-badge--green     { background: rgba(41, 206, 41, 0.15);  color: #1f9e1f; }
.icon-badge--dark      { background: rgba(44, 62, 80, 0.10);   color: #2C3E50; }

/* (3) Opt-in mint-tinted form input — reference style */
.input-mint.form-control,
.input-mint .form-control {
  background-color: var(--brand-mint-bg) !important;
  border: 1px solid #d8efe5;
  border-radius: 8px;
  padding: .65rem .85rem;
}
.input-mint.form-control:focus,
.input-mint .form-control:focus {
  background-color: #fff !important;
  border-color: #1c908d;
  box-shadow: 0 0 0 0.2rem rgba(40, 206, 189, 0.18);
}
.label-up {
  display: block;
  text-transform: uppercase;
  font-size: .72rem;
  letter-spacing: 1px;
  font-weight: 600;
  color: #8a96a3;
  margin-bottom: .3rem;
}
