/* =========================================================
   managerial.ir - Brand & UI Optimization Layer
   Primary: #0A6E9C (logo blue) | Accent: #F97316 (orange)
   Load this file LAST in header
   ========================================================= */

:root {
  --brand: #0A6E9C;
  --brand-dark: #085a80;
  --brand-light: #1A8ABF;
  --brand-soft: #E8F4FA;
  --accent: #F97316;
  --accent-hover: #EA580C;
  --accent-soft: #FFF7ED;
  --text: #1E293B;
  --text-secondary: #64748B;
  --border: #E2E8F0;
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 4px 14px rgba(0,0,0,0.08);
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
}

/* ----- Global ----- */
html { scroll-behavior: smooth; }
body {
  color: var(--text) !important;
  background: var(--bg) !important;
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

a { transition: color .2s, background .2s; }

/* ----- Header / Logo area ----- */
.vfghgf {
  background: linear-gradient(135deg, #EBF8FC 0%, #F0F9FF 100%) !important;
  border-bottom: 1px solid var(--border);
}
header .img-fluid,
header img[src*="head"] {
  border-radius: 8px !important;
  object-fit: contain;
}

/* Search button & primary actions */
.vfghgf .btn,
button.btn[style*="215968"],
.btn[style*="#215968"] {
  background: var(--brand) !important;
  border-color: var(--brand) !important;
  border-radius: 8px !important;
  font-weight: 600;
  transition: all .2s;
}
.vfghgf .btn:hover {
  background: var(--brand-dark) !important;
  transform: translateY(-1px);
}

/* Login / Register accents */
a[style*="5a2678"],
.tablinksx[style*="5a2678"] {
  background: var(--brand) !important;
  border-radius: 8px !important;
}
a[style*="e60013"],
li[style*="e60013"] {
  background: var(--accent) !important;
}

/* ----- Navigation ----- */
#menuw {
  background: var(--brand) !important;
  box-shadow: var(--shadow-sm);
}
#menuw .main-menuw > li > a {
  color: #fff !important;
  font-weight: 500;
  border-radius: 6px;
  transition: background .2s;
}
#menuw .main-menuw > li > a:hover,
#menuw .main-menuw > li:hover > a {
  background: rgba(255,255,255,0.15) !important;
}
#menuw .sub-menuw {
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
  border: none !important;
}
#menuw .sub-menuw a:hover {
  background: var(--brand-soft) !important;
  color: var(--brand) !important;
}

/* Cart button */
.dcdscd a.nav-link,
a[href*="view_cart"] {
  border-radius: 8px !important;
  transition: all .2s;
}
.dcdscd a.nav-link:hover {
  filter: brightness(1.05);
}

/* ----- Section titles (index) ----- */
h1[style*="215968"],
h1[style*="#215968"] {
  color: var(--brand) !important;
  border-bottom-color: var(--brand) !important;
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  padding-bottom: 8px !important;
  margin-bottom: 1.25rem !important;
}

/* ----- Category boxes ----- */
.vbdfvd .col-md-2,
.vdfbvtbf .col-md-2 {
  transition: transform .25s ease;
}
.vbdfvd .col-md-2:hover,
.vdfbvtbf .col-md-2:hover {
  transform: translateY(-4px);
}
.vbdfvd img,
.vdfbvtbf img {
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s;
}
.vbdfvd a:hover img,
.vdfbvtbf a:hover img {
  box-shadow: var(--shadow);
}
.csdc {
  font-weight: 600 !important;
  color: var(--text) !important;
}

/* ----- Product cards ----- */
.listimgz {
  border-radius: var(--radius-lg) !important;
  overflow: hidden;
  transition: box-shadow .25s;
}
.listimgz:hover {
  box-shadow: var(--shadow) !important;
}
/* Do NOT transform product columns - modals live inside them and transform breaks modal positioning */
.vdvfgvfdvd [class*="col-"] > div {
  border-radius: var(--radius-lg) !important;
}
.listimgz img,
.vdvfgvfdvd img {
  border-radius: var(--radius) var(--radius) 0 0 !important;
}

/* Offer badge → accent orange */
.vgfbgfn,
[style*="rgb(231, 100, 13)"],
[style*="#e7640d"],
span[style*="ffc60c"] {
  background: var(--accent) !important;
  color: #fff !important;
  border-radius: 6px !important;
  font-weight: 600;
}

/* Price buttons */
[style*="0e99b0"],
[style*="#0e99b0"] {
  background: var(--brand) !important;
  border-radius: 8px !important;
}

/* CTA buttons */
.hvr-radial-out,
a.btn.gray.hvr-radial-out,
.btn[style*="c7e0eb"] {
  background: var(--brand-soft) !important;
  color: var(--brand) !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  border: 2px solid var(--brand) !important;
  transition: all .25s !important;
}
.hvr-radial-out:hover,
a.btn.gray.hvr-radial-out:hover {
  background: var(--brand) !important;
  color: #fff !important;
}
.hvr-radial-out::before {
  background: var(--brand) !important;
}

/* Accent CTA (buy / important actions) */
.btn-accent,
.ersaltt,
button[type="submit"].botmy {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
  border-radius: 8px !important;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(249,115,22,0.3);
  transition: all .2s;
}
.btn-accent:hover,
.ersaltt:hover,
button[type="submit"].botmy:hover {
  background: var(--accent-hover) !important;
  transform: translateY(-1px);
}

/* Forms */
.form-control,
input[type="text"],
input[type="email"],
input[type="password"] {
  border-radius: 8px !important;
  border-color: var(--border) !important;
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus,
input:focus {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px rgba(10,110,156,0.15) !important;
  outline: none;
}

/* Modal polish */
.modal-content {
  border-radius: var(--radius-lg) !important;
  border: none !important;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important;
}
.modal-header {
  border-bottom-color: var(--border) !important;
}

/* Slider container */
#wowslider-container1 {
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
}
#wowslider-container1 img {
  border-radius: 0 !important;
}

/* Footer soft polish */
footer, .main-footer, [class*="footer"] {
  border-top: 1px solid var(--border);
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
  .vfghgf { height: auto !important; min-height: 100px; }
  #menuw .main-menuw > li > a { padding: 10px 12px !important; }
  h1[style*="215968"] { font-size: 1.15rem !important; }
  .hvr-radial-out,
  a.btn.gray.hvr-radial-out {
    width: 100%;
    max-width: 280px;
    display: block;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .vbdfvd .col-xs-4,
  .vdfbvtbf .col-xs-4 {
    margin-bottom: 8px;
  }
  img { border-radius: 8px; }
}

@media (max-width: 480px) {
  .col-md-2.col-xs-4 { width: 50%; }
}

/* Accessibility: focus visible */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================================
   Modal / Popup fixes (Login & Register)
   ========================================================= */

.modal {
  z-index: 1050 !important;
}

.modal-backdrop {
  z-index: 1040 !important;
  background-color: rgba(0, 0, 0, 0.5) !important;
}

.modal-dialog {
  margin: 30px auto !important;
  max-width: 500px;
  width: 92%;
}

.modal-content {
  border-radius: 14px !important;
  border: none !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2) !important;
  background: #fff !important;
  overflow: visible !important;
}

.modal-header {
  border-bottom: 1px solid #E2E8F0 !important;
  padding: 14px 18px !important;
  background: #fff !important;
}

.modal-header .close {
  opacity: 0.7;
  font-size: 28px;
  font-weight: 300;
  color: #1E293B !important;
  text-shadow: none !important;
  margin-top: -4px;
}
.modal-header .close:hover {
  opacity: 1;
  color: #F97316 !important;
}

.modal-body {
  padding: 20px 22px !important;
  background: #fff !important;
  color: #1E293B !important;
  overflow: visible !important;
}

/* Tabs inside login/register modal */
.taby.vfdlbmkgfx,
.vfdlbmkgfx {
  background: #F1F5F9 !important;
  border-radius: 10px !important;
  padding: 8px !important;
  margin-bottom: 16px !important;
}

.tablinksx {
  display: inline-block !important;
  padding: 8px 16px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  text-decoration: none !important;
  color: #1E293B !important;
  background: transparent !important;
  border: none !important;
}

.tablinksx.active,
.tablinksx:hover {
  background: #0A6E9C !important;
  color: #fff !important;
}

/* Keep the purple login button as brand blue */
.tablinksx[style*="5a2678"],
a.tablinksx[style*="5a2678"] {
  background: #0A6E9C !important;
  color: #fff !important;
}

.tabcontentx {
  display: none;
  width: 100% !important;
  background: #fff !important;
}

.tabcontentx[style*="block"],
.tabcontentx[style*="display: block"] {
  display: block !important;
}

/* Form fields inside modal */
.modal .form-control,
.modal input.form-control,
.modal .uyeree {
  background: #fff !important;
  color: #1E293B !important;
  border-radius: 8px !important;
  width: 100% !important;
}

.modal label,
.modal .wefrasfd,
.modal .wefrasfd2,
.modal .wefrasfd3 {
  color: #0A6E9C !important;
}

.modal .wefrasfd2 { color: #F97316 !important; border-bottom-color: #F97316 !important; }
.modal .wefrasfd3 { color: #7C3AED !important; border-bottom-color: #7C3AED !important; }

.modal .botmy,
.modal button[type="submit"] {
  background: #0A6E9C !important;
  border-color: #0A6E9C !important;
  color: #fff !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  width: 100%;
  padding: 10px !important;
  margin-top: 8px;
}

.modal .botmy:hover,
.modal button[type="submit"]:hover {
  background: #085a80 !important;
}

.modal a[href*="regpass"] {
  color: #0A6E9C !important;
}

/* Bootstrap modal - do not force display/opacity (causes flicker) */
.modal {
  /* let Bootstrap handle show/hide */
}
body.modal-open {
  overflow: hidden !important;
}
/* Move modal to top layer cleanly */
.modal-dialog {
  z-index: 1051;
}

/* Mobile modal */
@media (max-width: 576px) {
  .modal-dialog {
    margin: 12px auto !important;
    width: 95% !important;
  }
  .modal-body {
    padding: 14px 16px !important;
  }
}


/* =========================================================
   Anti-flicker for product purchase modals (#filefile*)
   ========================================================= */

/* Never apply transform to ancestors of open modals */
.modal-open .vdvfgvfdvd [class*="col-"],
.modal-open .listimgz,
.modal-open .vdvfgvfdvd [class*="col-"] > div {
  transform: none !important;
  transition: none !important;
}

/* Product buy modal specific */
.modal[id^="filefile"],
.modal[id^="srfsl2g"] {
  z-index: 1060 !important;
}
.modal[id^="filefile"] .modal-dialog,
.modal[id^="srfsl2g"] .modal-dialog {
  z-index: 1061 !important;
}
.modal[id^="filefile"] .modal-content,
.modal[id^="srfsl2g"] .modal-content {
  transform: none !important;
  animation: none !important;
  transition: none !important;
  opacity: 1 !important;
}

/* Backdrop stable */
.modal-backdrop {
  opacity: 0.5 !important;
  transition: none !important;
}
.modal-backdrop.fade {
  opacity: 0 !important;
}
.modal-backdrop.fade.in,
.modal-backdrop.show {
  opacity: 0.5 !important;
}

/* Disable hover lift while any modal is open */
body.modal-open .vbdfvd .col-md-2:hover,
body.modal-open .vdfbvtbf .col-md-2:hover {
  transform: none !important;
}

/* =========================================================
   Login/Register modal - fix overflowing inputs
   ========================================================= */

#myModalvdfvd .modal-dialog {
  max-width: 420px !important;
  width: 92% !important;
  margin: 40px auto !important;
}

#myModalvdfvd .modal-content {
  overflow: hidden !important;
  max-width: 100% !important;
}

#myModalvdfvd .modal-body {
  overflow-x: hidden !important;
  padding: 16px 20px 24px !important;
  max-width: 100% !important;
}

#myModalvdfvd .modal-body .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

#myModalvdfvd .modal-body [class*="col-"] {
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
}

#myModalvdfvd input.form-control,
#myModalvdfvd input.uyeree,
#myModalvdfvd input.validate,
#myModalvdfvd .form-control {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  display: block !important;
  margin: 0 0 8px 0 !important;
  padding: 10px 12px !important;
  height: auto !important;
  min-height: 42px !important;
}

/* MDB prefix icons - keep input full width */
#myModalvdfvd .md-form {
  width: 100% !important;
  max-width: 100% !important;
  margin-bottom: 16px !important;
  position: relative;
}

#myModalvdfvd .md-form .prefix {
  position: absolute;
  right: 8px;
  top: 10px;
  z-index: 2;
}

#myModalvdfvd .md-form input {
  padding-right: 36px !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

#myModalvdfvd .formregc222 {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

#myModalvdfvd .taby,
#myModalvdfvd .vfdlbmkgfx {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

#myModalvdfvd .tabcontentx {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

#myModalvdfvd form {
  width: 100% !important;
  max-width: 100% !important;
}

#myModalvdfvd button.botmy,
#myModalvdfvd button[type="submit"] {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Labels shouldn't push width */
#myModalvdfvd label {
  max-width: 100% !important;
  white-space: normal !important;
}

/* Captcha row */
#myModalvdfvd .input-group {
  width: 100% !important;
  max-width: 100% !important;
  display: flex !important;
  flex-wrap: nowrap;
}
#myModalvdfvd .input-group .form-control {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
}
