/* =====================================================================
   Appearance: header/footer styles three & four + theme controls
   (primary colour, buttons, cards, forms) driven from Website > Appearance.
   Loaded after style.css / custom.css / modern-one.css so it can override.
   ===================================================================== */

/* ---------- shared header bits ---------- */
.hdr-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-color);
  font-size: 18px;
  transition: background .2s, color .2s;
}
.hdr-icon-btn:hover { background: rgba(var(--primary-color), .1); color: rgba(var(--primary-color)); }
.hdr-icon-btn.cart .ct-icon { font-size: 22px; line-height: 1; }
.hdr-icon-btn.cart .ct-icon small { background: rgba(var(--primary-color)); color: #fff; }

.theme-toggle--compact { width: 40px; height: 40px; justify-content: center; border-radius: 50%; }
.theme-toggle--compact:hover { background: rgba(var(--primary-color), .1); }

.hdr-lang .cs-btn { color: var(--text-color); font-size: 14px; font-weight: 500; padding: 8px 10px; border-radius: 999px; }
.hdr-lang .cs-btn:hover { background: rgba(var(--primary-color), .1); }
.hdr-lang .drop-menu { left: auto; right: 0; }

.hdr-mobile .nav-menu { height: auto; line-height: 1.6; }
.hdr-mobile .nav-menu > li { width: 100%; }
.hdr-mobile .nav-menu .drop-menu { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none !important; padding: 4px 0 0 12px; }

/* ---------- header style three: single sticky bar ---------- */
.hdr3-bar {
  --bg-color: var(--bg-white);
  background: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: saturate(160%) blur(8px);
}
.hdr3-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 76px;
}
.hdr3-logo, .hdr3-logo a { height: auto; line-height: 1; }
.hdr3-logo a img { max-height: 40px; }
.hdr3-menu { flex: 1 1 auto; justify-content: center; gap: 28px; height: 76px; line-height: 76px; }
.hdr3-menu > li .nav-link { font-size: 15px; position: relative; }
.hdr3-menu > li > .nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 22px;
  height: 2px;
  border-radius: 2px;
  background: rgba(var(--primary-color));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}
.hdr3-menu > li > .nav-link.active::after,
.hdr3-menu > li > .nav-link:hover::after { transform: scaleX(1); }
.hdr3-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.hdr3-account .nav-menu { height: auto; line-height: 1; }
.hdr3-account .btn-1 { height: 40px; margin-left: 8px; }
.hdr3-account .drop-menu { left: auto; right: 0; }
.hdr3-bar.sticky .hdr3-inner { height: 64px; }
.hdr3-bar.sticky .hdr3-menu { height: 64px; line-height: 64px; }

/* ---------- header style four: search-first + category bar ---------- */
.hdr4-top {
  --bg-color: var(--bg-white);
  background: var(--bg-color);
}
.hdr4-top__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 84px;
}
.hdr4-logo, .hdr4-logo a { height: auto; line-height: 1; }
.hdr4-logo a img { max-height: 44px; }
.hdr4-search {
  flex: 1 1 auto;
  max-width: 640px;
  margin: 0 auto;
  height: 48px;
  border: 2px solid rgba(var(--primary-color));
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg-white);
}
.hdr4-search__cat {
  border: 0;
  border-right: 1px solid var(--border-color);
  background: rgba(var(--primary-color), .06);
  color: var(--text-color);
  padding: 0 14px;
  max-width: 180px;
  font-size: 14px;
  font-weight: 500;
  outline: none;
}
.hdr4-search__input {
  flex: 1 1 auto;
  border: 0;
  background: transparent;
  color: var(--text-color);
  padding: 0 16px;
  font-size: 15px;
  outline: none;
  min-width: 0;
}
.hdr4-search__btn {
  border: 0;
  width: 56px;
  background: rgba(var(--primary-color));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hdr4-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.hdr4-account .nav-menu { height: auto; line-height: 1; }
.hdr4-account .btn-1 { height: 40px; margin-left: 8px; }
.hdr4-account .drop-menu { left: auto; right: 0; }

.hdr4-nav {
  --bg-color: rgba(var(--primary-color));
  background: var(--bg-color);
  color: #fff;
}
.hdr4-nav__inner { display: flex; align-items: center; gap: 24px; height: 52px; }
.hdr4-cats { height: 52px; }
.hdr4-cats__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 18px;
  color: #fff;
  border-radius: 6px 6px 0 0;
  font-weight: 600;
  font-size: 15px;
  background: rgba(0, 0, 0, .18);
}
.hdr4-nav .custom-dropdown .hdr4-cats__btn,
.hdr4-nav .custom-dropdown .hdr4-cats__btn:hover { color: #fff; }
.hdr4-cats__btn .fa-chevron-down { font-size: 12px; }
.hdr4-cats__menu { min-width: 260px; }
.hdr4-menu { height: 52px; line-height: 52px; gap: 22px; }
.hdr4-menu > li .nav-link { color: rgba(255, 255, 255, .88); font-size: 15px; }
.hdr4-menu > li .nav-link.active, .hdr4-menu > li .nav-link:hover { color: #fff; }
.hdr4-menu .drop-menu .nav-link { color: var(--text-color); }
.hdr4-contact { margin-left: auto; display: flex; gap: 18px; font-size: 13px; color: rgba(255, 255, 255, .85); }
.hdr4-contact a { color: inherit; }
.hdr4-contact i { margin-right: 4px; }
.hdr4-nav.sticky { --bg-color: rgba(var(--primary-color)) !important; }
.hdr4-nav.sticky .nav-link, .hdr4-nav.sticky .hdr4-contact { color: #fff; }

@media (max-width: 991.98px) {
  .hdr4-top__inner { height: 68px; gap: 12px; }
  .hdr3-inner { height: 64px; gap: 12px; }
}

/* ---------- footer style three: dark ---------- */
.ftr3 {
  --ftr-bg: #0f0c1d;
  --ftr-ink: #e9e7f3;
  --ftr-muted: #a49fbd;
  --ftr-line: rgba(255, 255, 255, .09);
  background: var(--ftr-bg);
  color: var(--ftr-muted);
  font-size: 15px;
  padding-top: 40px;
}
.ftr3-nl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 28px 32px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(var(--primary-color), .35), rgba(var(--primary-color), .08));
  border: 1px solid rgba(var(--primary-color), .35);
  margin-bottom: 48px;
}
.ftr3-nl__title { color: #fff; font-weight: 700; margin-bottom: 4px; }
.ftr3-nl__form { display: flex; gap: 8px; flex: 0 1 460px; }
.ftr3-nl__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--ftr-line);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  outline: none;
}
.ftr3-nl__input::placeholder { color: var(--ftr-muted); }
.ftr3-nl__form .btn-1 { height: 48px; white-space: nowrap; }
.ftr3 .footer-logo img { max-height: 44px; }
.ftr3-about { line-height: 1.7; margin-bottom: 18px; }
.ftr3-contact li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.ftr3-contact i { color: rgba(var(--primary-color)); width: 16px; margin-top: 4px; }
.ftr3-contact a { color: var(--ftr-ink); }
.ftr3-heading { color: #fff; font-weight: 600; font-size: 15px; margin-bottom: 18px; }
.ftr3-links li { margin-bottom: 10px; }
.ftr3-links a { color: var(--ftr-muted); transition: color .2s, padding-left .2s; }
.ftr3-links a:hover { color: #fff; padding-left: 4px; }
.ftr3-social { display: flex; flex-wrap: wrap; gap: 10px; }
.ftr3-social a {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--ftr-line);
  color: var(--ftr-ink);
  transition: all .2s;
}
.ftr3-social a:hover { background: rgba(var(--primary-color)); border-color: transparent; color: #fff; }
.ftr3-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--ftr-line);
  margin-top: 40px;
  padding: 20px 0;
  font-size: 14px;
}
.ftr3-bottom .payment-method img { max-height: 40px; }
@media (max-width: 768px) { .ftr3-bottom { padding-bottom: 100px; } }

/* ---------- footer style four: minimal centered ---------- */
.ftr4 {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 14px;
  padding: 48px 0 28px;
}
.ftr4-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.ftr4 .footer-logo img { max-height: 42px; }
.ftr4-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin: 0; }
.ftr4-links a { color: var(--text-color); font-weight: 500; }
.ftr4-links a:hover { color: rgba(var(--primary-color)); }
.ftr4-social { display: flex; gap: 8px; }
.ftr4-social a {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  transition: all .2s;
}
.ftr4-social a:hover { background: rgba(var(--primary-color)); color: #fff; border-color: transparent; }
.ftr4-payment img { max-height: 36px; }
.ftr4-copy { font-size: 13px; }
@media (max-width: 768px) { .ftr4 { padding-bottom: 100px; } }

/* =====================================================================
   Theme controls (body[data-*] + :root vars from theme-vars.blade.php)
   ===================================================================== */

/* -- buttons: shape -- */
body[data-btn-shape="pill"]    .btn-1, body[data-btn-shape="pill"]    .m1-btn, body[data-btn-shape="pill"]    .btn-primary { --border-radius: 999px; border-radius: 999px; }
body[data-btn-shape="rounded"] .btn-1, body[data-btn-shape="rounded"] .m1-btn, body[data-btn-shape="rounded"] .btn-primary { --border-radius: 8px; border-radius: 8px; }
body[data-btn-shape="square"]  .btn-1, body[data-btn-shape="square"]  .m1-btn, body[data-btn-shape="square"]  .btn-primary { --border-radius: 0; border-radius: 0; }

/* -- buttons: style -- */
body[data-btn-style="outline"] .btn-1,
body[data-btn-style="outline"] .btn-primary {
  --bg-color: transparent;
  background: transparent;
  color: rgba(var(--primary-color));
  border: 1.5px solid rgba(var(--primary-color));
}
body[data-btn-style="outline"] .btn-1:hover,
body[data-btn-style="outline"] .btn-primary:hover { background: rgba(var(--primary-color)); color: #fff; }
body[data-btn-style="soft"] .btn-1,
body[data-btn-style="soft"] .btn-primary {
  --bg-color: rgba(var(--primary-color), .12);
  background: rgba(var(--primary-color), .12);
  color: rgba(var(--primary-color));
}
body[data-btn-style="soft"] .btn-1:hover,
body[data-btn-style="soft"] .btn-primary:hover { background: rgba(var(--primary-color)); color: #fff; }
/* Modern 1 primary buttons follow the same style but keep their accent */
body[data-btn-style="outline"] .m1-btn-primary { background: transparent; color: var(--m1-violet); border: 1.5px solid var(--m1-violet); box-shadow: none; }
body[data-btn-style="soft"]    .m1-btn-primary { background: rgba(108, 62, 244, .12); color: var(--m1-violet); box-shadow: none; }
body[data-btn-style="outline"] .m1-btn-primary:hover, body[data-btn-style="soft"] .m1-btn-primary:hover { background: var(--m1-grad); color: #fff; }

/* -- cards: radius + style -- */
.card, .collection-items { border-radius: var(--theme-card-radius, 16px); }
.m1 { --m1-radius: var(--widget-card-radius, var(--theme-card-radius, 16px)); }

body[data-card-style="bordered"] .card { border: 1px solid var(--border-color); box-shadow: none; }
body[data-card-style="elevated"] .card,
body[data-card-style="elevated"] .m1-p-card,
body[data-card-style="elevated"] .m1-blog-card,
body[data-card-style="elevated"] .m1-t-card,
body[data-card-style="elevated"] .m1-feat,
body[data-card-style="elevated"] .m1-step,
body[data-card-style="elevated"] .m1-tile { border-color: transparent; box-shadow: 0 14px 34px -14px rgba(15, 12, 29, .22); }
body[data-card-style="flat"] .card,
body[data-card-style="flat"] .m1-p-card,
body[data-card-style="flat"] .m1-blog-card,
body[data-card-style="flat"] .m1-t-card,
body[data-card-style="flat"] .m1-feat,
body[data-card-style="flat"] .m1-step,
body[data-card-style="flat"] .m1-tile { border-color: transparent; box-shadow: none; }

/* -- forms: radius + style -- */
.form-control, .form-select { border-radius: var(--theme-form-radius, 10px); }
body[data-form-style="filled"] .form-control,
body[data-form-style="filled"] .form-select {
  background: var(--bg-secondary) !important;
  border-color: transparent;
}
body[data-form-style="filled"] .form-control:focus { border-color: rgba(var(--primary-color)) !important; }
body[data-form-style="underline"] .form-control,
body[data-form-style="underline"] .form-select {
  background: transparent !important;
  border-width: 0 0 2px;
  border-radius: 0;
  padding-left: 0;
  padding-right: 0;
}

/* ---------- classic widget tweaks ---------- */
/* Image banner style 3: copy sits over an arbitrary image — keep it legible */
.banner-thumb-2::after {
  content: "";
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(60% 120% at 50% 50%, rgba(5, 7, 11, .55), rgba(5, 7, 11, .15) 70%, transparent);
}
.banner-thumb-2 .ban-content { color: #fff; }
.banner-thumb-2 .ban-content h1 { color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .45); }
.banner-thumb-2 .ban-content span { color: rgba(255, 255, 255, .85); letter-spacing: .18em; font-weight: 600; }
