/* ===================================================
   OrderFromTR — Brand Override
   Report Global Trading Ltd. Color Scheme
   Palette: Turquoise #28CEBD · Dark Turquoise #1c908d · CTA Indigo #3D4DB7 · Charcoal #2C3E50
   Mint = brand identity / secondary action; Indigo = primary CTA (Add to Cart, Send RFQ, Submit, etc.)
   Loads AFTER bootstrap.min.css & style.css
   =================================================== */

/* Skeleton loaders — shimmer placeholders for product grids (featured/trending/
   shop/bestseller). HTML is emitted by page-home.js/_skeletonCards & page-shop.js;
   these rules give it visible styling (previously missing → boxes rendered blank). */
.skeleton-card { background:#fff; border:1px solid #eef1f4; border-radius:12px; overflow:hidden; }
.skeleton-pulse { background:#e9edf1; border-radius:6px; position:relative; overflow:hidden; }
.skeleton-pulse::after { content:""; position:absolute; inset:0; transform:translateX(-100%);
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent);
  animation:skel-shimmer 1.3s ease-in-out infinite; }
@keyframes skel-shimmer { 100% { transform:translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .skeleton-pulse::after { animation:none; } }

/* A3 capability badge strip (homepage, under the trust bar) — capability framing,
   not certification claims: reflects the export paperwork OrderFromTR handles. */
.cap-badge-bar { padding:14px 0; background:#fff; border-bottom:1px solid #eef1f4; }
.cap-badge { display:inline-flex; align-items:center; gap:8px; padding:7px 14px; border:1px solid #d9eeea; background:#f4fbf9; color:#1c6a66; border-radius:50px; font-size:.82rem; font-weight:600; line-height:1.2; }
.cap-badge i { color:#28CEBD; }
@media (max-width:575px){ .cap-badge{ font-size:.74rem; padding:6px 10px; gap:6px; } }

/* Newsletter signup bar (footer, A4) */
.newsletter-bar { background:linear-gradient(135deg,#1c908d,#28CEBD); }
.newsletter-form { max-width:560px; margin:0 auto; }
.newsletter-form .form-control { border:none; }
.newsletter-form .form-control:focus { box-shadow:0 0 0 .25rem rgba(255,255,255,.35); }
.text-white-70 { color:rgba(255,255,255,.85); }

:root {
  /* Primary: Turquoise (brand identity — logo, links, badges, hover) */
  --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 Royal Blue — palette swatch color #3 (reference: 5-color brand palette).
     Used by .btn-primary (primary actions: Add to Cart, Submit, Send RFQ, etc.). */
  --brand-cta: #2854cd;          /* royal/cobalt blue — palette swatch */
  --brand-cta-rgb: 40, 84, 205;
  --brand-cta-dark: #1e41a3;     /* hover/active ~20% darker */
  --brand-cta-light: #4a72db;    /* gradient stop ~lighter */

  /* Tertiary palette inspired by reference image */
  --brand-lavender: #B8B5E8;
  --brand-mint-card-bg: #DEF1ED;

  /* 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 now uses indigo CTA gradient (was mint). Mint is preserved on
   .btn-outline-primary, .text-primary, .bg-primary, links, hover states — so
   brand identity stays. Indigo draws the eye to action ("Add to Cart" et al).

   IMPORTANT: style.css emits `.btn.btn-primary { background: var(--bs-primary) !important; }`
   which has higher specificity than `.btn-primary` alone. Match that specificity
   here so this override actually wins. */
.btn-primary,
.btn.btn-primary {
  background: linear-gradient(135deg, var(--brand-cta), var(--brand-cta-dark)) !important;
  border-color: var(--brand-cta) !important;
  color: #fff !important;
  box-shadow: 0 3px 10px rgba(var(--brand-cta-rgb), 0.25);
  transition: transform .15s, box-shadow .2s, opacity .2s;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn.btn-primary:hover,
.btn.btn-primary:focus,
.btn.btn-primary:active {
  background: linear-gradient(135deg, var(--brand-cta-dark), var(--brand-cta)) !important;
  opacity: 0.96;
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(var(--brand-cta-rgb), 0.40) !important;
  border-color: var(--brand-cta-dark) !important;
}

/* Option 2 (2026-05-05): .btn-secondary now royal blue too — covers
   "+90 545 161 17 61" phone CTA, "Kayıt Ol" header button. Mint identity
   stays on logo/sidebar/badges/links/hover/footer; navigation CTAs go blue. */
.btn-secondary,
.btn.btn-secondary {
  background: linear-gradient(135deg, var(--brand-cta), var(--brand-cta-dark)) !important;
  border-color: var(--brand-cta) !important;
  color: #fff !important;
  box-shadow: 0 3px 10px rgba(var(--brand-cta-rgb), 0.20);
  transition: transform .15s, box-shadow .2s, opacity .2s;
}
.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active,
.btn.btn-secondary:hover,
.btn.btn-secondary:focus,
.btn.btn-secondary:active {
  background: linear-gradient(135deg, var(--brand-cta-dark), var(--brand-cta)) !important;
  border-color: var(--brand-cta-dark) !important;
  color: #fff !important;
  box-shadow: 0 5px 16px rgba(var(--brand-cta-rgb), 0.35) !important;
  transform: translateY(-1px);
}

.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; display: block; text-decoration: none; }
.mini-cart-item-name:hover { color: #2854cd; }
.mini-cart-item-meta { font-size: 0.75rem; color: #555; }
/* Cart page: clickable product name + category link under each row (2026-06-15) */
.cart-item-name-link { color: #212529; text-decoration: none; font-weight: 600; }
.cart-item-name-link:hover { color: #2854cd; }
.cart-item-cat-link { text-decoration: none; }
.cart-item-cat-link:hover { text-decoration: underline !important; }
.cart-item-sup-link { text-decoration: none; }
.cart-item-sup-link i { color: #1c908d; }
a.cart-item-sup-link:hover { color: #1c908d !important; text-decoration: underline; }

/* ---- 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 (Option 2 2026-05-05: active page → royal blue) ---- */
.pagination a.active,
.pagination .page-item.active .page-link {
  background: linear-gradient(135deg, var(--brand-cta), var(--brand-cta-dark)) !important;
  border-color: var(--brand-cta) !important;
  color: #fff !important;
}
.pagination a:hover:not(.active),
.pagination .page-link:hover {
  background-color: var(--brand-cta-light);
  border-color: var(--brand-cta-light);
  color: #fff;
}

/* ---- 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=20260602logo') 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 ---- */



/* ---- 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 (2026-05-06: bg image removed per user request) ---- */
.page-header {
  background: linear-gradient(rgb(40, 206, 189), rgb(44, 62, 80));
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

/* ---- 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);
}

/* ---- DHgate-style card enrichments (2026-06-02): rating, supplier, price range ---- */
.card-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  margin: -.15rem 0 .35rem;
  line-height: 1;
}
.card-rating-stars { color: #ffc107; font-size: .82rem; letter-spacing: .5px; }
.card-rating-stars .far { color: #d6d6d6; }
.card-rating-count { color: #8a94a3; font-size: .76rem; font-weight: 600; }
.card-price-range { white-space: nowrap; }
.card-price-range .card-price-dash { color: #9aa3b0; font-weight: 600; }
/* Prominent "Contact for Pricing" pill — price-less card label (2026-06-06).
   Mint-tinted, on-brand; distinct from indigo action buttons (Add to Cart). */
.card-contact-price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;            /* WCAG tap target (Tier-1 2026-06-08) */
  gap: .4rem;
  margin-top: .6rem;
  padding: .42rem 1rem;
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.1;
  color: #14756c;
  background: #e9f9f6;
  border: 1px solid rgba(40, 206, 189, .55);
  border-radius: 50px;
  letter-spacing: .2px;
}
.card-contact-price i { font-size: .85rem; color: #1c908d; }
/* Clickable: pill -> quote form, price -> product page (2026-06-06) */
a.card-contact-price,
a.card-contact-price:link,
a.card-contact-price:visited { color: #14756c !important; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
a.card-contact-price:hover { background: #d8f4ef; border-color: #28CEBD; color: #0f5f57 !important; }
/* PDP price-less "Contact for Pricing" quote panel (2026-06-09) — prominent, on-brand mint box */
.pdp-contact-price-panel { display: flex; flex-direction: column; gap: .15rem; padding: .85rem 1.1rem; margin-bottom: .5rem; background: #eafaf7; border: 1px solid #b9ece4; border-left: 4px solid #28CEBD; border-radius: 12px; text-decoration: none; transition: background .15s, border-color .15s, box-shadow .15s; }
.pdp-contact-price-panel:hover { background: #d8f4ef; border-color: #28CEBD; box-shadow: 0 2px 10px rgba(40, 206, 189, .18); }
.pdp-contact-price-panel .pcp-head { font-weight: 700; font-size: 1.15rem; color: #14756c; line-height: 1.2; }
.pdp-contact-price-panel .pcp-sub { font-size: .85rem; color: #3a6b65; line-height: 1.3; }
a.card-price-link { text-decoration: none; cursor: pointer; }
/* Tier-1 (2026-06-08): mobile form fields >=44px tap height (WCAG 2.5.5) — RFQ/contact/account */
@media (max-width: 575px) {
  .form-control, .form-select { min-height: 44px; }
}
/* PDP (2026-06-08): price + logistics note on ONE desktop row — note left, "Contact for Pricing" right.
   row-reverse: price is first in DOM (renders right), logistics note second (renders left, fills space).
   Mobile (<992px): plain block → price on top, note below (unchanged). */
@media (min-width: 992px) {
  .pdp-price-logi { display: flex; flex-direction: row-reverse; align-items: center; gap: 1rem; }
  .pdp-price-logi .pdp-logi-line  { flex: 1 1 auto; margin-bottom: 0 !important; }
  .pdp-price-logi .pdp-price-line { flex: 0 0 auto; margin-bottom: 0 !important; white-space: nowrap; }
}
a.card-price-link:hover { text-decoration: underline; }
/* Catalog-only mode (SHOP_ENABLED=false → body.shop-disabled): hide all purchasing UI. Reversible. */
.shop-disabled .add-to-cart-btn,
.shop-disabled .card-float-cart,
.shop-disabled .pdp-float-cart,
.shop-disabled #floatingCartBtn,
.shop-disabled #mobileAddToCart,
.shop-disabled #miniCartWrapper { display: none !important; }
.card-supplier {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  margin-top: .3rem;
  color: #6b7480;
  font-size: .78rem;
  max-width: 100%;
}
.card-supplier i { color: #1c908d; font-size: .72rem; flex-shrink: 0; }
.card-supplier span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
a.card-supplier { text-decoration: none; color: #6b7480; transition: color .15s; }
a.card-supplier:hover { color: #1c908d; }
a.card-supplier:hover span { text-decoration: underline; }

/* ---- 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 image link (whole image clickable, hover zoom affordance) ---- */
.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-image-link {
  display: block;
  cursor: pointer;
  overflow: hidden;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}
.products .product-item .product-image-link img,
.products .product-item .product-image-link picture img {
  transition: transform 0.4s ease;
}
.products .product-item:hover .product-image-link img,
.products .product-item:hover .product-image-link picture img {
  transform: scale(1.03);
}

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

/* ---- Search button (Option 2 2026-05-05: matches phone/Kayıt CTA royal blue) ---- */
#searchBtn,
#shopSearchBtn {
  background: linear-gradient(135deg, var(--brand-cta), var(--brand-cta-dark)) !important;
  border-color: var(--brand-cta) !important;
  color: #fff !important;
  box-shadow: none !important;
}
#searchBtn:hover,
#shopSearchBtn:hover {
  background: linear-gradient(135deg, var(--brand-cta-dark), var(--brand-cta)) !important;
  border-color: var(--brand-cta-dark) !important;
}

/* ---- Topbar My Account button (Option 2: royal blue) ---- */
.btn-alibaba-account {
  background: linear-gradient(135deg, var(--brand-cta), var(--brand-cta-dark));
  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 ---- */


/* ---- 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-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.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: 2 columns on xs (2026-05-12 shop2col), 2 on sm ---- */
/* Shop card title: clamp to 2 lines + reserve consistent height so the
   price / "Contact for Pricing" row aligns across cards regardless of title
   length. Was mobile-only (@media below) → desktop titles wrapped freely and
   pushed the price line out of alignment. Scoped to #shopProductGrid only. */
#shopProductGrid .product-item .h5 {
  display: -webkit-box !important;   /* beat Bootstrap .d-block (display:block !important) — else line-clamp is inert */
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
  min-height: 2.6em;            /* 2 lines × 1.3 */
  margin-bottom: 0.5rem !important;
}

@media (max-width: 575px) {
  #shopProductGrid > [class*="col-"] {
    width: 50% !important;
    max-width: 50% !important;
  }
  /* Tight gutter — narrow cards need more usable width */
  #shopProductGrid { --bs-gutter-x: 0.5rem; --bs-gutter-y: 0.75rem; }
  /* Image rule intentionally omitted — always-on `.product-item-inner-item`
     parent (aspect-ratio 300/220 + overflow:hidden) and img (contain) at line 889+
     handle mobile correctly; previous 110px+cover override clipped tall images. */
  /* Compact text padding inside card body */
  #shopProductGrid .product-item .p-4 { padding: 0.5rem !important; }
  /* Title: 2-line clamp, smaller font, reserve consistent height */
  #shopProductGrid .product-item .h5 {
    font-size: 0.78rem !important;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.25rem !important;
    min-height: 2.5em;
  }
  /* Category breadcrumb above title — tiny */
  #shopProductGrid .product-item .text-muted.small { font-size: 0.65rem !important; }
  /* Price block compact */
  #shopProductGrid .product-item .price,
  #shopProductGrid .product-item .product-price { font-size: 0.85rem !important; }
  /* Wishlist heart — shrink + tuck into corner */
  #shopProductGrid .wishlist-toggle {
    width: 26px !important;
    height: 26px !important;
    top: 4px !important;
    right: 4px !important;
  }
  #shopProductGrid .wishlist-toggle i { font-size: 11px !important; }
  /* Floating cart button — shrink (36px is too large at 107px card width) */
  #shopProductGrid .card-float-cart {
    width: 28px !important;
    height: 28px !important;
    bottom: 6px !important;
    right: 6px !important;
    font-size: 0.7rem !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: bottom-sheet on mobile (DHgate-style filter access 2026-06-02) ---- */
/* Was display:none since 2026-05-12 (chip strip only). Now the SAME sidebar node is
   repositioned as a slide-up sheet so mobile users reach price/material/category filters.
   Reusing the node (not a clone) keeps single-source filter state (#priceMin, #applyFiltersBtn). */
@media (max-width: 991px) {
  #shopSidebar {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 1045;
    width: 100%; max-width: 100%; max-height: 86vh; margin: 0; padding: 0;
    background: #fff; border-radius: 18px 18px 0 0;
    box-shadow: 0 -8px 30px rgba(16, 24, 40, .24);
    transform: translateY(100%); transition: transform .28s ease;
    display: flex; flex-direction: column; overflow: hidden;
  }
  body.filter-sheet-open #shopSidebar { transform: translateY(0); }
  #shopSidebar .shop-sidebar {
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    padding: 0 14px calc(16px + env(safe-area-inset-bottom));
  }
  .filter-sheet-head {
    position: sticky; top: 0; z-index: 3; background: #fff;
    padding: 8px 2px 10px; margin: 0 -2px 10px; border-bottom: 1px solid #eef1f4;
  }
  .filter-sheet-grab { width: 42px; height: 4px; border-radius: 4px; background: #d4d9e0; margin: 4px auto 8px; }
  .filter-sheet-bar { display: flex; align-items: center; justify-content: space-between; }
  .filter-sheet-bar .fsh-title { font-weight: 700; font-size: 1rem; color: #1f2a37; }
  .filter-sheet-bar .fsh-close {
    border: none; background: #f1f3f5; border-radius: 50%; width: 34px; height: 34px;
    font-size: 1.05rem; line-height: 1; color: #444; cursor: pointer; flex-shrink: 0;
  }
  /* mobile trigger row */
  .shop-filter-trigger-row { display: flex; }
  .shop-filter-trigger {
    display: inline-flex; align-items: center; gap: .45rem;
    background: #fff; border: 1px solid #d6dce3; color: #1f2a37;
    font-weight: 600; font-size: .9rem; border-radius: 10px; padding: .5rem .95rem;
    cursor: pointer;
  }
  .shop-filter-trigger i { color: #1c908d; }
  .shop-filter-trigger .filter-count-badge {
    background: #1c908d; color: #fff; border-radius: 999px; font-size: .72rem;
    min-width: 1.4em; padding: 0 .35em; line-height: 1.5; text-align: center;
  }
  #filterSheetBackdrop {
    position: fixed; inset: 0; background: rgba(16, 24, 40, .45); z-index: 1044;
    opacity: 0; visibility: hidden; transition: opacity .25s;
  }
  body.filter-sheet-open #filterSheetBackdrop { opacity: 1; visibility: visible; }
  body.filter-sheet-open { overflow: hidden; }
}
/* Sheet chrome + trigger never show on desktop (sidebar is the normal column there) */
@media (min-width: 992px) {
  .filter-sheet-head, #filterSheetBackdrop, .shop-filter-trigger-row { display: none !important; }
}

/* ---- Shop mobile category chip strip (DHgate pattern, 2026-05-12) ---- */
.shop-cat-chips {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Edge-to-edge bleed within container */
  margin-left: calc(var(--bs-gutter-x, 1.5rem) * -.5);
  margin-right: calc(var(--bs-gutter-x, 1.5rem) * -.5);
  padding: 0.25rem calc(var(--bs-gutter-x, 1.5rem) * .5);
}
.shop-cat-chips::-webkit-scrollbar { display: none; }
.shop-cat-chips-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  white-space: nowrap;
}
.shop-cat-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: #f1f3f5;
  color: #2c3e50;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none !important;
  white-space: nowrap;
  flex: 0 0 auto;
  border: 1px solid transparent;
  transition: background-color .15s, color .15s;
}
.shop-cat-chip:hover,
.shop-cat-chip:focus { background: #e9ecef; color: #2c3e50; }
.shop-cat-chip.active {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

/* ---- 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 9px !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 ---- */
/* `clip` (not `hidden`) is critical: `hidden` makes html a scroll container,
   which breaks `position: sticky` on descendants in iOS Safari + mobile Chrome. */
html, body {
  overflow-x: clip;
}

/* ---- 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-bars-item a {
    padding: 10px 12px;
    display: block;
  }
}

/* ---- Price range slider (dual-thumb, no library) ---- */
.price-slider-track { position: relative; height: 4px; margin: 14px 8px 0; background: #e0e0e0; border-radius: 2px; }
.price-slider-fill  { position: absolute; height: 4px; background: var(--bs-primary, #0d6efd); border-radius: 2px; }
.price-slider-range {
  position: absolute; top: 0; left: 0; width: 100%; height: 4px; margin: 0;
  background: none; pointer-events: none; -webkit-appearance: none; appearance: none;
}
.price-slider-range::-webkit-slider-thumb {
  -webkit-appearance: none; pointer-events: auto; width: 16px; height: 16px; margin-top: -6px;
  border-radius: 50%; background: #fff; border: 2px solid var(--bs-primary, #0d6efd); cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.price-slider-range::-moz-range-thumb {
  pointer-events: auto; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; border: 2px solid var(--bs-primary, #0d6efd); cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.price-slider-range::-moz-range-track { background: transparent; }
#priceSliderMin { z-index: 3; }   /* min thumb governs the left side; keeping it on top avoids it getting stuck */
#priceSliderMax { z-index: 2; }

/* ---- 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 {
    flex-wrap: nowrap !important;            /* tek satır garantisi — Next asla alta düşmez */
    overflow-x: auto;                        /* çok sayfalı/ellipsis durumda yatay kaydır (wrap yerine) */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;                   /* Firefox: scrollbar gizle */
    justify-content: safe center !important; /* sığınca ortalı; taşınca başa hizalı + kaydırılabilir */
    gap: 4px;
  }
  #shopPagination .pagination::-webkit-scrollbar { display: none; } /* WebKit: scrollbar gizle */
  #shopPagination .page-item { flex: 0 0 auto; }   /* öğeler ezilmesin */
  #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: #fff;
  overflow: hidden;
  padding: 0;
}
#shopProductGrid .product-item-inner-item img {
  aspect-ratio: 300/220;
  background: #fff;
  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; }

.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; }


.spinner-3rem           { width: 3rem; height: 3rem; }
.w-120                  { width: 120px; }
.w-240-fixed            { width: 240px; flex: 0 0 240px; }
.w-200-fixed            { width: 200px; flex: 0 0 200px; }

/* ---- 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;
}

/* ---- Shop card floating cart (small, bottom-right of card image) ---- */
.card-float-cart {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.95);
  border: 0;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
  transition: transform .18s ease, background .18s ease, color .18s ease;
  color: #1a1a1a;
  font-size: 0.9rem;
  padding: 0;
}
.card-float-cart:hover {
  transform: scale(1.08);
  background: var(--brand-cta, #28CEBD);
  color: #fff;
}
.card-float-cart:focus-visible {
  outline: 2px solid var(--brand-cta-dark, #1c908d);
  outline-offset: 2px;
}

/* ---- PDP share buttons v2 (2026-05-12) — customer-focused redesign:
       filled brand-color circles, 40px, subtle shadow, hover lift ---- */
.pdp-share { gap: 0.5rem; }
.pdp-share-label {
  font-weight: 600;
  color: var(--brand-dark, #2C3E50);
  font-size: 0.9rem;
  margin-right: 0.25rem;
  display: inline-flex;
  align-items: center;
}
.pdp-share-label i {
  color: #6c757d;
  margin-right: 0.4rem;
  font-size: 0.95rem;
}
.pdp-share-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 0;
  color: #fff;
  font-size: 16px;
  text-decoration: none !important;
  /* White ring isolates button color from any page background (e.g. WhatsApp green vs mint bg) */
  box-shadow: 0 0 0 2px #fff, 0 2px 8px rgba(0, 0, 0, .12);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  cursor: pointer;
  position: relative;
}
.pdp-share-btn:hover,
.pdp-share-btn:focus {
  transform: translateY(-2px);
  box-shadow: 0 0 0 2px #fff, 0 6px 14px rgba(0, 0, 0, .22);
  filter: brightness(1.08);
  color: #fff;
}
.pdp-share-btn:active {
  transform: translateY(0);
  filter: brightness(0.95);
}
.pdp-share-btn:focus-visible {
  outline: 2px solid var(--brand-cta, #2854cd);
  outline-offset: 2px;
}
.pdp-share-btn i  { line-height: 1; }
.pdp-share-btn svg { display: block; }

/* Platform brand backgrounds */
.pdp-share-fb { background: #1877F2; }
.pdp-share-li { background: #0A66C2; }
.pdp-share-x  { background: #000;    }
.pdp-share-wa { background: #25D366; }
.pdp-share-em { background: #5f6368; }

/* ---- PDP floating action button (Trendyol-style, bottom-right of product image) ---- */
.pdp-float-cart {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: #1a1a1a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 4px 14px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.04);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  z-index: 5;
  cursor: pointer;
  padding: 0;
}
.pdp-float-cart:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,.24);
  background: var(--brand-cta, #28CEBD);
  color: #fff;
}
.pdp-float-cart:focus-visible {
  outline: 3px solid var(--brand-cta-dark, #1c908d);
  outline-offset: 2px;
}
@media (max-width: 575px) {
  .pdp-float-cart { width: 46px; height: 46px; bottom: 10px; right: 10px; }
}

/* ---- Logo + Search row (logo sits flush-left of the search bar, centered as a unit) ---- */
.logo-search-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: nowrap;
}
.logo-search-brand { flex: 0 0 auto; }
.logo-search-input { flex: 1 1 auto; min-width: 0; position: relative; }

/* ---- Header content alignment v2 — both rows match Bootstrap .container
       responsive max-widths so logo lines up with hero ALL CATEGORIES sidebar
       (2026-05-12 align2) ---- */
.logo-search-row {
  /* Override default justify-content:center (line 1014) → logo flushes left */
  justify-content: flex-start;
}

@media (min-width: 992px) {
  /* Üst navbar inner row'un padding'ini sıfırla — .navbar kendi max-width'ünü ortalasın */
  .nav-bar > .row {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Her iki satır Bootstrap .container'ın breakpoint'lerine eşle */
  .nav-bar .navbar,
  .logo-search-row {
    width: 100%;
    max-width: 960px;                                         /* lg */
    margin-left: auto;
    margin-right: auto;
    padding-left: calc(var(--bs-gutter-x, 1.5rem) * .5);
    padding-right: calc(var(--bs-gutter-x, 1.5rem) * .5);
  }

  /* Üst navbar'da Shop bloğu sola, lang/cart/account sağa */
  .nav-bar .navbar {
    padding-top: 0;
    padding-bottom: 0;
  }
  .nav-bar .navbar-collapse {
    justify-content: space-between;
  }
  .nav-bar .navbar-collapse > .navbar-nav.ms-auto {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

@media (min-width: 1200px) {
  .nav-bar .navbar,
  .logo-search-row { max-width: 1140px; }                     /* xl */
}

@media (min-width: 1400px) {
  .nav-bar .navbar,
  .logo-search-row { max-width: 1320px; }                     /* xxl */
}

/* ---- 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; }
/* Option 2 (2026-05-05): search button → royal blue. Higher specificity to
   beat style.css's .btn.btn-primary { background: var(--bs-primary) !important }. */
.btn.btn-primary.btn-search-no-border,
.btn-primary.btn-search-no-border,
button.btn-search-no-border,
.btn-search-no-border.btn {
  background: linear-gradient(135deg, var(--brand-cta), var(--brand-cta-dark)) !important;
  background-color: var(--brand-cta) !important;
  border-color: var(--brand-cta) !important;
  color: #fff !important;
}
.btn.btn-primary.btn-search-no-border:hover,
.btn.btn-primary.btn-search-no-border:focus,
.btn-primary.btn-search-no-border:hover,
.btn-search-no-border.btn:hover {
  background: linear-gradient(135deg, var(--brand-cta-dark), var(--brand-cta)) !important;
}

/* ---- Dropdown / cart popover ---- */
.dropdown-menu-wide     { min-width: 280px; }
.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; }
}

/* ---- Checkout sticky pay CTA (QW4, 2026-05-19) — mobile-only -------- */
.checkout-sticky-cta    { display: none; }
@media (max-width: 991.98px) {
  .checkout-sticky-cta {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1020;
    background: #fff;
    border-top: 1px solid #e5e5e5;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -2px 10px rgba(0,0,0,.08);
  }
  .checkout-sticky-cta .btn { min-height: 44px; width: 100%; font-weight: 600; }
  /* Lift body so sticky bar doesn't overlap the consent checkbox / last field */
  body:has(.checkout-sticky-cta) { padding-bottom: 84px; }
}

/* ---- RFQ inline section gradient (single.php) ---- */


/* ---- 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: #555; }
.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: auto !important; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
#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; }
/* #5: desktop auto-scroll marquee (featured + trending) — soft-fade the edges so the
   continuously-scrolling partial cards don't show a hard "broken" sliver under the arrows.
   Desktop only: on mobile these strips don't auto-scroll and start left-aligned, so no mask. */
@media (min-width: 768px) {
  #featuredProductsGrid, #trendingProductsGrid {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 30px, #000 calc(100% - 30px), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 30px, #000 calc(100% - 30px), transparent 100%);
  }
}

/* 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; }

/* Mobile sticky header — navbar + search pin as a single block (2026-05-11) */
@media (max-width: 991.98px) {
  #navbar-placeholder {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #fff;
  }
  #navbarCollapse.show {
    max-height: calc(100vh - 130px);
    overflow-y: auto;
  }
}

/* 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 */


/* 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 */






/* (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);
}


/* ---- Compact Hero (dhgate-style 3-col layout, 2026-05-06) ---- */
.hero-section.hero-compact {
  background: linear-gradient(135deg, #1c908d 0%, #2C3E50 100%);
  min-height: 380px;
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
  /* base .hero-section overflow:hidden, kategori flyout'unu kırpıyordu — bu varyantta serbest bırak (2026-06-04) */
  overflow: visible;
}
.hero-h1-compact { font-size: 1.5rem !important; line-height: 1.25 !important; }
@media (min-width: 1200px) { .hero-h1-compact { font-size: 1.75rem !important; } }
.hero-sub-compact { font-size: 0.92rem !important; line-height: 1.4 !important; }
.hero-stat-chip.hero-stat-chip-sm {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  color: #fff;
  font-size: 0.74rem;
  padding: 4px 10px;
  border-radius: 50px;
  white-space: nowrap;
}
.hero-stat-row { gap: 6px !important; }

/* Sol kategori listesi (eşit yükseklik için min-height + flex column) */
.hero-cat-list {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 12px 14px;
  height: 100%;
  min-height: 340px;
  display: flex;
  flex-direction: column;
}
.hero-cat-list ul { flex: 1 1 auto; }
.hero-cat-list .hero-cat-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding-bottom: 8px;
}
.hero-cat-list ul li a {
  display: block;
  color: #e6f9f7 !important;
  font-size: 0.86rem;
  padding: 5px 0;
  text-decoration: none;
  transition: color .15s, padding-left .15s;
}
.hero-cat-list ul li a:hover {
  color: #28CEBD !important;
  padding-left: 4px;
}

/* Carousel kompakt */
.hero-carousel-compact { max-height: 360px !important; }
.hero-carousel-compact .hero-carousel-track img { max-height: 320px !important; }

/* Shop card variant swatch row (migration 043, 2026-05-11) */
.card-swatch-row {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
.card-swatch {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #ccc;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  text-decoration: none;
  padding: 0;
}
.card-swatch:hover {
  transform: scale(1.15);
  box-shadow: 0 0 0 1.5px var(--brand-cta, #28CEBD);
}
.card-swatch.active {
  box-shadow: 0 0 0 2px var(--brand-cta-dark, #1c908d);
}
.card-swatch.card-swatch-out {
  opacity: .4;
  cursor: not-allowed;
  pointer-events: none;
}
.card-swatch-dot {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  /* Always-visible hairline so near-white swatches (Cream / White) don't blend into card bg */
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
}
.card-swatch-count {
  font-size: .72rem;
  color: #6c757d;
  margin-left: 4px;
  white-space: nowrap;
}

/* PDP variant picker (above the title or near the image) */
.pdp-variant-picker {
  margin: 16px 0 20px;
  padding: 14px 16px;
  background: #fafbfc;
  border: 1px solid #e5e8eb;
  border-radius: 8px;
}
.pdp-variant-picker-label {
  font-size: .85rem;
  color: #6c757d;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pdp-variant-picker-label .current-color {
  color: #1a1a1a;
  font-weight: 700;
}
.pdp-variant-picker-label .stock-pill {
  margin-left: auto;
  font-size: .72rem;
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 600;
}
.pdp-variant-picker-label .stock-pill.in-stock { background: #e8f5e8; color: #1a7d2a; }
.pdp-variant-picker-label .stock-pill.out-stock { background: #fbe8e8; color: #b40000; }
.pdp-variant-swatches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pdp-variant-swatch {
  display: inline-block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px #ccc;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  text-decoration: none;
}
.pdp-variant-swatch:hover {
  transform: scale(1.1);
  box-shadow: 0 0 0 2px var(--brand-cta, #28CEBD);
}
.pdp-variant-swatch.active {
  box-shadow: 0 0 0 2.5px var(--brand-cta-dark, #1c908d);
}
.pdp-variant-swatch.out-stock {
  opacity: .4;
  position: relative;
}
.pdp-variant-swatch.out-stock::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1.5px;
  background: #b40000;
  transform: rotate(-25deg);
}

/* Hero "All Categories" hover flyout (DHGate-style mega-menu, 2026-05-11) */
.hero-cat-list ul li.hero-cat-item { position: relative; }
.hero-cat-list ul li.hero-cat-item > a {
  display: flex;
  align-items: center;
}
.hero-cat-arrow {
  opacity: .55;
  font-size: .72rem;
}
.hero-cat-flyout {
  position: absolute;
  top: -12px;
  left: 100%;
  min-width: 280px;
  max-width: 360px;
  background: #fff;
  color: #1a1a1a;
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0,0,0,.18);
  padding: 14px 18px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  pointer-events: none;
  /* çok öğeli flyout kısa ekranda viewport'u aşarsa kendi içinde scroll (2026-06-04) */
  max-height: calc(100vh - 130px);
  overflow-y: auto;
}
.hero-cat-list ul li.hero-cat-item:hover > .hero-cat-flyout,
.hero-cat-list ul li.hero-cat-item:focus-within > .hero-cat-flyout {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}
.hero-cat-flyout-title {
  font-weight: 600;
  color: var(--brand-cta-dark, #1c908d);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #eee;
  font-size: .95rem;
}
.hero-cat-flyout ul li a {
  color: #444 !important;
  padding: 6px 4px !important;
  display: block;
  font-size: .88rem;
  transition: color .15s, padding .15s;
}
.hero-cat-flyout ul li a:hover {
  color: var(--brand-cta-dark, #1c908d) !important;
  padding-left: 10px !important;
}
.hero-cat-flyout::before {
  content: '';
  position: absolute;
  top: 0;
  left: -10px;
  width: 10px;
  height: 100%;
}

/* Empty cart illustration (C2 — 2026-05-06) */
.empty-cart-illustration {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e6eef9, #c9d6f0);
  margin: 0 auto;
}
.empty-cart-illustration i {
  font-size: 4rem;
  color: var(--brand-cta);
  opacity: 0.85;
}

/* 404 popular category tiles (C1 — 2026-05-06) */
.cat-tile-404 {
  background: #f8f9fa;
  border: 1px solid #e6e9ec;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.cat-tile-404:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(40, 84, 205, 0.10);
  border-color: var(--brand-cta);
}
.cat-tile-404 .fw-semibold { color: #000 !important; }

/* ---- Resources mega-menu hover/active → visible light blue bg + royal blue text (2026-05-06 v2) ---- */
.dropdown-menu-wide .dropdown-item:hover,
.dropdown-menu-wide .dropdown-item:focus,
.dropdown-menu-wide .dropdown-item:active,
.dropdown-menu-wide .dropdown-item.active {
  background-color: #e6eef9 !important;
  color: var(--brand-cta) !important;
  transform: translateX(2px);
  transition: background-color .15s, color .15s, transform .15s;
}
.dropdown-menu-wide .dropdown-item:hover strong,
.dropdown-menu-wide .dropdown-item.active strong {
  color: var(--brand-cta) !important;
}

/* ---- Product card titles + Shop/PDP SEO footer links → black (2026-05-06) ---- */
/* Product cards (white background) — title + category links black; hover royal blue */
.product-item a:not(.text-muted):not(.btn):not(.btn-primary):not(.btn-outline-primary):not(.card-contact-price):not(.card-price-link) {
  color: #000 !important;
}

/* ---- PDP DHgate-style left-aligned ancestor breadcrumb (2026-05-20) ---- */
.oft-breadcrumb { padding: 10px 0 12px; background: #fff; border-bottom: 1px solid #f0f0f0; }
.oft-breadcrumb__list {
  display: flex; flex-wrap: nowrap; align-items: center;
  gap: 0; margin: 0; padding: 0; list-style: none;
  font-size: .82rem; line-height: 1.4;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  white-space: nowrap;
}
.oft-breadcrumb__list::-webkit-scrollbar { display: none; }
.oft-breadcrumb__list > li { display: inline-flex; align-items: center; flex: 0 0 auto; }
.oft-breadcrumb__list > li:not(:last-child)::after {
  content: ">"; margin: 0 8px; color: #bbb; font-size: .75rem;
}
.oft-breadcrumb a {
  color: #555; text-decoration: none;
}
.oft-breadcrumb a:hover { color: #000; text-decoration: underline; }
.oft-breadcrumb [aria-current="page"] {
  color: #000; font-weight: 500;
  max-width: 320px; overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 991.98px) {
  .oft-breadcrumb { padding: 8px 0 10px; }
  .oft-breadcrumb__list { font-size: .75rem; }
  .oft-breadcrumb__list > li:not(:last-child)::after { margin: 0 6px; }
  .oft-breadcrumb [aria-current="page"] { max-width: 220px; }
}
.product-item a:not(.text-muted):not(.btn):not(.card-contact-price):not(.card-price-link):hover {
  color: var(--brand-cta) !important;
}
/* SSR SEO footer link blocks at /shop bottom and PDP bottom — black on white */
.shop-seo-footer a,
.seo-link-list a {
  color: #000 !important;
}
.shop-seo-footer a:hover,
.seo-link-list a:hover {
  color: var(--brand-cta) !important;
}

/* ---- Site footer (dark bg) — strip mint, use white for readability (2026-05-06) ---- */
.footer .footer-item h4,
.footer .footer-item h4.text-primary,
.footer .footer-item a {
  color: #fff !important;
}
.footer .footer-item a:hover {
  color: #28CEBD !important;
}

/* ---- Navbar text → black (2026-05-06) ---- */
.nav-bar .navbar-nav .nav-link,
.nav-bar .navbar-nav .nav-link:hover,
.nav-bar .navbar-nav .nav-link.active,
.nav-bar .navbar-nav .nav-link.dropdown-toggle,
.nav-bar .navbar-nav .dropdown-item,
.nav-bar .navbar-nav .dropdown-item:hover,
.nav-bar .navbar-nav .dropdown-item:focus,
.nav-bar .navbar-nav .dropdown-item.active,
.nav-bar .navbar-nav .dropdown-item strong,
.nav-bar .col-lg-3 .navbar-toggler,
.nav-bar .col-lg-3 .navbar-toggler h4,
.nav-bar .categories-bars-item a,
.nav-bar .categories-bars-item a:hover,
.nav-bar .btn-light,
.nav-bar .btn-light small,
.nav-bar .btn-light span,
.nav-bar .btn-light i {
  color: #000 !important;
}

/* ====================================================
   Mobile horizontal-swipe rows (touch-driven, no auto-scroll)
   2026-05-07: dense col-* rows → swipe-snap on <=767px
   ==================================================== */
@media (max-width: 767px) {
  .swipe-row-mobile {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: auto;
    scrollbar-width: none;
    padding-bottom: 8px;
  }
  .swipe-row-mobile::-webkit-scrollbar { display: none; }
  .swipe-row-mobile > [class*="col-"] {
    flex: 0 0 80% !important;
    max-width: 80% !important;
  }
  .swipe-row-mobile.swipe-wider > [class*="col-"] {
    flex: 0 0 90% !important;
    max-width: 90% !important;
  }

  /* Featured + Trending + Bestseller product carousels */
  #featuredProductsGrid,
  #trendingProductsGrid,
  #bestsellerProductsGrid {
    overflow-x: auto !important;
    scrollbar-width: none;
    -webkit-overflow-scrolling: auto;
    padding-bottom: 8px;
  }
  #featuredProductsGrid::-webkit-scrollbar,
  #trendingProductsGrid::-webkit-scrollbar,
  #bestsellerProductsGrid::-webkit-scrollbar { display: none; }
  /* Bestseller is .row (flex-wrap) — force nowrap on mobile */
  #bestsellerProductsGrid {
    flex-wrap: nowrap !important;
  }
  #bestsellerProductsGrid > [class*="col-"] {
    flex: 0 0 80% !important;
    max-width: 80% !important;
  }
}

/* ====================================================
   Mobile swipe ghost-bug fix (2026-05-07)
   touch-action + tap-vs-swipe defense + hover guard
   ==================================================== */
@media (max-width: 767px) {
  /* No touch-action: vertical pan must work when finger is on a product image.
     Browser slop algorithm picks horizontal vs vertical from initial drag. */
  .swipe-row-mobile,
  #featuredProductsGrid,
  #trendingProductsGrid,
  #bestsellerProductsGrid {
    overscroll-behavior-x: contain;
    /* scroll-snap disabled: iOS WebKit fights momentum scrolling on snap */
    scroll-snap-type: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .swipe-row-mobile > [class*="col-"],
  #featuredProductsGrid > [class*="col-"],
  #trendingProductsGrid > [class*="col-"],
  #bestsellerProductsGrid > [class*="col-"] {
    scroll-snap-align: none !important;
  }

  .product-image-link {
    -webkit-tap-highlight-color: transparent;
  }
  .wishlist-toggle {
    touch-action: manipulation;
  }

  .swipe-row-mobile.is-swiping a,
  #featuredProductsGrid.is-swiping a,
  #trendingProductsGrid.is-swiping a,
  #bestsellerProductsGrid.is-swiping a {
    pointer-events: none;
  }
}

@media (hover: hover) and (pointer: fine) {
  .products .product-item:hover .product-image-link img,
  .products .product-item:hover .product-image-link picture img {
    transform: scale(1.03);
  }
}
@media (hover: none) {
  .products .product-item .product-image-link img,
  .products .product-item .product-image-link picture img {
    transition: none !important;
  }
  /* Disable :hover transform entirely on touch devices (iOS fires :hover on tap-hold) */
  .products .product-item:hover .product-image-link img,
  .products .product-item:hover .product-image-link picture img {
    transform: none !important;
  }
}

/* ---- PDP main image carousel — DHgate-style finger-following drag (2026-05-20) ---- */
#productMainCarousel { width: 100%; }
#productMainCarousel .owl-stage { display: flex; align-items: center; }
#productMainCarousel .oft-pdp-slide { display: flex; justify-content: center; align-items: center; min-height: 280px; }
#productMainCarousel .oft-pdp-slide img,
#productMainCarousel .owl-item img {
  width: auto;
  max-width: 100%;
  max-height: 480px;
  margin: 0 auto;
  display: block;
  object-fit: contain;
}
#productMainCarousel .owl-dots { margin-top: 12px; text-align: center; }
#productMainCarousel .owl-dots .owl-dot { display: inline-block; }
#productMainCarousel .owl-dots .owl-dot span {
  width: 8px; height: 8px; margin: 4px; background: #d0d0d0;
  border-radius: 50%; display: inline-block;
  transition: background .2s, transform .2s;
}
#productMainCarousel .owl-dots .owl-dot.active span,
#productMainCarousel .owl-dots .owl-dot:hover span { background: var(--brand-cta, #1e4d8c); transform: scale(1.15); }
@media (max-width: 575.98px) {
  #productMainCarousel .oft-pdp-slide { min-height: 220px; }
  #productMainCarousel .oft-pdp-slide img,
  #productMainCarousel .owl-item img { max-height: 360px; }
}

/* ===== Design polish pass (2026-06-09) — global card consistency + premium micro-polish ===== */
/* (a) Extend shop-grid card consistency to ALL card grids (home / best-sellers / featured / related) */
.product-item-inner-item { aspect-ratio: 300 / 220; background: #fff; overflow: hidden; padding: 0; }
.product-item-inner-item img,
.product-item-inner-item picture img { width: 100% !important; height: 100% !important; object-fit: contain !important; background: #fff; }
.product-item .h5 { display: -webkit-box !important; /* beat Bootstrap .d-block (display:block !important) — else line-clamp inert on non-shop grids */ -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; min-height: 2.6em; }
/* (b) Card elevation + radius polish (subtle resting shadow + hover lift; existing hover shadow rule retained) */
.product-item-inner { border-radius: 14px !important; overflow: hidden; border-color: transparent !important; box-shadow: 0 1px 3px rgba(16, 24, 40, .06); transition: box-shadow .25s, transform .2s, border-color .25s !important; }
.product-item:hover .product-item-inner { transform: translateY(-3px); }
/* (c) Heading hierarchy refinement — premium tightening */
h1, h2, h3 { letter-spacing: -0.012em; }
h2 { font-weight: 700; }
/* (d) Section eyebrow consistency (centered section header labels → uppercase mint tag) */
.text-center > p.h5.text-primary,
.text-center > p.h4.text-primary { text-transform: uppercase; letter-spacing: 2px; font-size: .8rem; font-weight: 700; margin-bottom: .35rem; }
