/* ============================================================
   ALYYO brand layer.
   All visual styling comes from the original template CSS
   (css/custom.css and friends), enqueued from functions.php.
   ============================================================ */

/* jQuery fadeOut(600) equivalent for the preloader */
.preloader {
  transition: opacity 0.6s ease;
}

.preloader.preloader-hide {
  opacity: 0;
  pointer-events: none;
}

.preloader.preloader-done {
  display: none;
}

/* WOW.js hides .wow elements until they enter the viewport.
   The effects engine toggles visibility inline, exactly like wow.min.js. */

/* Custom hero background image (user-provided) */
.hero {
  background-image: url("../images/hero.jpg") !important;
}

/* ============================================================
   ALYYO Clothing Co. brand overrides
   Colors taken from the client's existing site (alyyoclothingco.com):
   brand red #D6001C, black #212121, light gray #F1F0EF.
   ============================================================ */
/* :root:root beats custom.css's plain :root regardless of load order */
:root:root {
  --primary-color: #212121;
  --secondary-color: #f1f0ef;
  --text-color: #646464;
  --accent-color: #d6001c;
  --divider-color: #2121211a;
}

/* Circular badge logo — force a perfect square so the round badge
   never stretches into an oval */
.navbar-brand img,
.footer-logo img {
  width: 88px !important;
  height: 88px !important;
  max-width: none;
  object-fit: contain;
}

/* Keep the round badge readable on dark surfaces */
.navbar-brand img,
.footer-logo img,
#loading-icon img {
  background: #ffffff;
  border-radius: 50%;
}

/* Brand-colored magic cursor: the template's -opaque/-exclusion state used
   a white disc with mix-blend-mode: exclusion, which renders as an odd teal
   over the brand red. Use a normal-blend brand disc instead.
   (Doubled class beats mousecursor.css regardless of load order.) */
.cb-cursor.cb-cursor.-exclusion,
.cb-cursor.cb-cursor.-opaque {
  mix-blend-mode: normal;
}

.cb-cursor.cb-cursor.-exclusion:before,
.cb-cursor.cb-cursor.-opaque:before {
  background: var(--accent-color);
  opacity: 0.9;
  border: 2px solid rgba(255, 255, 255, 0.85);
}

/* ============================================================
   How We Work animated process section
   ============================================================ */
.how-it-works {
  position: relative;
  padding: 100px 0;
  background: var(--bg-color);
  overflow: hidden;
}

.how-it-works .section-row {
  margin-bottom: 30px;
}

/* soft brand-color glow blobs behind the glass panel */
.how-it-works::before,
.how-it-works::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.how-it-works::before {
  width: 480px;
  height: 480px;
  left: 4%;
  top: 220px;
  background: radial-gradient(circle, rgba(214, 0, 28, 0.28), transparent 65%);
}

.how-it-works::after {
  width: 520px;
  height: 520px;
  right: 3%;
  bottom: 40px;
  background: radial-gradient(circle, rgba(191, 156, 92, 0.35), transparent 65%);
}

.how-it-works .container {
  position: relative;
  z-index: 1;
}

/* glassmorphism panel */
.hiw-canvas {
  position: relative;
  background: rgba(255, 255, 255, 0.42);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 24px;
  padding: 30px 20px 10px;
  overflow: hidden;
  box-shadow:
    0 28px 70px rgba(33, 33, 33, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(255, 255, 255, 0.35);
}

/* glass sheen sweeping across the top of the panel */
.hiw-canvas::before {
  content: "";
  position: absolute;
  top: 0;
  left: -10%;
  width: 120%;
  height: 46%;
  background: linear-gradient(
    175deg,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(255, 255, 255, 0.12) 55%,
    transparent 100%
  );
  pointer-events: none;
}

.hiw-svg {
  display: block;
  width: 100%;
  height: auto;
  /* keep the whole circle visible within one screen; the viewBox
     letterboxes automatically so nothing distorts */
  max-height: min(78vh, 700px);
  margin: 0 auto;
}

@media only screen and (max-width: 767px) {
  .how-it-works {
    padding: 50px 0;
  }

  /* keep the diagram readable on small screens by allowing a
     horizontal scroll instead of shrinking the whole canvas */
  .hiw-canvas {
    overflow-x: auto;
    padding: 20px 12px 6px;
  }

  .hiw-svg {
    min-width: 900px;
  }
}

/* ============================================================
   Chat support widget (left side, dummy)
   ============================================================ */
.chat-support-btn {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 1100;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 22px;
  font-family: var(--default-font);
  font-size: 15px;
  font-weight: 500;
  color: var(--white-color);
  background: var(--accent-color);
  border: none;
  border-radius: 100px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(214, 0, 28, 0.35);
  transition: all 0.3s ease-in-out;
}

.chat-support-btn i {
  font-size: 20px;
}

.chat-support-btn:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

.chat-support-btn.chat-open {
  width: 54px;
  padding: 0;
  justify-content: center;
}

.chat-support-panel {
  position: fixed;
  left: 22px;
  bottom: 90px;
  z-index: 1100;
  width: 340px;
  max-width: calc(100vw - 44px);
  background: var(--white-color);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(33, 33, 33, 0.22);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.97);
  transition: all 0.3s ease-in-out;
}

.chat-support-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chat-support-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--primary-color);
}

.chat-support-header img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
}

.chat-support-header h3 {
  font-size: 17px;
  color: var(--white-color);
  margin: 0;
}

.chat-support-header p {
  font-size: 12px;
  color: #ffffffb3;
  margin: 3px 0 0;
  line-height: 1;
}

.chat-online-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  background: #35c759;
  border-radius: 50%;
}

.chat-support-body {
  max-height: 300px;
  min-height: 180px;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--secondary-color);
}

.chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  font-size: 13.5px;
  line-height: 1.5;
}

.chat-msg-bot {
  align-self: flex-start;
  background: var(--white-color);
  color: var(--text-color);
  border-radius: 14px 14px 14px 4px;
  box-shadow: 0 2px 8px rgba(33, 33, 33, 0.06);
}

.chat-msg-user {
  align-self: flex-end;
  background: var(--accent-color);
  color: var(--white-color);
  border-radius: 14px 14px 4px 14px;
}

.chat-support-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: var(--white-color);
  border-top: 1px solid var(--divider-color);
}

.chat-support-input input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--default-font);
  font-size: 14px;
  color: var(--primary-color);
  padding: 10px 12px;
  background: var(--secondary-color);
  border-radius: 100px;
}

.chat-support-input button {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border: none;
  border-radius: 50%;
  background: var(--accent-color);
  color: var(--white-color);
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.chat-support-input button:hover {
  background: var(--primary-color);
}

@media only screen and (max-width: 767px) {
  .chat-support-btn {
    left: 14px;
    bottom: 14px;
  }

  .chat-support-label {
    display: none;
  }

  .chat-support-btn {
    width: 54px;
    padding: 0;
    justify-content: center;
  }

  .chat-support-panel {
    left: 14px;
    bottom: 80px;
  }
}

/* ============================================================
   Book a Meeting popup modal
   ============================================================ */
.meeting-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(33, 33, 33, 0.65);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: meetingModalFade 0.3s ease both;
}

@keyframes meetingModalFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.meeting-modal {
  position: relative;
  width: 100%;
  max-width: 620px;
  max-height: 94vh;
  overflow-y: auto;
  background: var(--white-color);
  border-radius: 20px;
  padding: 28px 32px;
  animation: meetingModalPop 0.35s ease both;
}

@keyframes meetingModalPop {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.meeting-modal .section-title {
  margin-bottom: 14px;
}

.meeting-modal .section-title h2 {
  margin-top: 8px;
  font-size: 28px;
}

.meeting-modal .section-title .section-sub-title {
  font-size: 13px;
  padding: 5px 16px;
}

/* Compact fields so the whole form fits without inner scrolling */
.meeting-modal .form-control {
  padding: 11px 16px;
  font-size: 15px;
}

.meeting-modal .appointmnet-form-btn {
  margin-top: 4px;
}

.meeting-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--primary-color);
  background: var(--secondary-color);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  z-index: 2;
}

.meeting-modal-close:hover {
  color: var(--white-color);
  background: var(--accent-color);
}

.meeting-modal .form-group {
  margin-bottom: 12px;
}

@media only screen and (max-width: 767px) {
  .meeting-modal {
    padding: 28px 20px;
    border-radius: 16px;
  }

  .meeting-modal .section-title h2 {
    font-size: 26px;
  }
}

/* ============================================================
   WordPress layer - widgets, products, comments, inner pages
   ============================================================ */

/* The meeting modal starts hidden and is opened by js/alyyo.js */
.meeting-modal-overlay[hidden] {
  display: none !important;
}

/* Inner page spacing */
.page-content-section {
  padding: 100px 0;
}

.page-content-section.no-top {
  padding-top: 0;
}

@media only screen and (max-width: 767px) {
  .page-content-section {
    padding: 50px 0;
  }
}

/* ---------------- Sidebar widgets ---------------- */
.page-single-sidebar .widget {
  background: var(--secondary-color);
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 30px;
}

.page-single-sidebar .widget-title {
  font-size: 22px;
  line-height: normal;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--divider-color);
}

.page-single-sidebar .widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-single-sidebar .widget ul li {
  line-height: 1.5em;
  border-bottom: 1px solid var(--divider-color);
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.page-single-sidebar .widget ul li:last-child {
  border-bottom: none;
  margin: 0;
  padding: 0;
}

.page-single-sidebar .widget ul li a {
  color: inherit;
  transition: all 0.4s ease-in-out;
}

.page-single-sidebar .widget ul li a:hover {
  color: var(--accent-color);
}

/* Search form */
.alyyo-search-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.alyyo-search-form input[type="search"] {
  flex: 1;
  width: 100%;
  border: 1px solid var(--divider-color);
  background: var(--white-color);
  border-radius: 100px;
  padding: 12px 20px;
  font-family: var(--default-font);
  font-size: 15px;
  color: var(--primary-color);
  outline: none;
}

.alyyo-search-form button {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border: none;
  border-radius: 50%;
  background: var(--accent-color);
  color: var(--white-color);
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.alyyo-search-form button:hover {
  background: var(--primary-color);
}

/* Recent posts widget in the template's style */
.sidebar-recent-post {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.sidebar-recent-post:last-child {
  margin-bottom: 0;
}

.sidebar-recent-post .recent-post-image {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
}

.sidebar-recent-post .recent-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s ease-in-out;
}

.sidebar-recent-post:hover .recent-post-image img {
  transform: scale(1.08);
}

.sidebar-recent-post .recent-post-content h3 {
  font-size: 16px;
  line-height: 1.4em;
  margin-bottom: 6px;
}

.sidebar-recent-post .recent-post-content h3 a {
  color: inherit;
}

.sidebar-recent-post .recent-post-content h3 a:hover {
  color: var(--accent-color);
}

.sidebar-recent-post .recent-post-content span {
  font-size: 13px;
  color: var(--text-color);
}

/* ---------------- Products (Wholesale Shop) ---------------- */
.product-item {
  position: relative;
  background: var(--white-color);
  border: 1px solid var(--divider-color);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 30px;
  transition: all 0.4s ease-in-out;
}

.product-item:hover {
  box-shadow: 0 24px 60px rgba(33, 33, 33, 0.12);
  transform: translateY(-6px);
}

.product-item-image {
  position: relative;
  overflow: hidden;
}

.product-item-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: all 0.5s ease-in-out;
}

.product-item:hover .product-item-image img {
  transform: scale(1.06);
}

.product-item-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--white-color);
  background: var(--accent-color);
  border-radius: 100px;
  padding: 6px 14px;
}

.product-item-body {
  padding: 24px;
}

.product-item-body h2 {
  font-size: 22px;
  line-height: 1.3em;
  margin-bottom: 10px;
}

.product-item-body h2 a {
  color: inherit;
}

.product-item-body h2 a:hover {
  color: var(--accent-color);
}

.product-item-body p {
  margin-bottom: 16px;
}

.product-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--divider-color);
}

.product-item-price {
  font-family: var(--accent-font);
  font-size: 20px;
  color: var(--primary-color);
}

.product-item-price span {
  font-family: var(--default-font);
  font-size: 13px;
  color: var(--text-color);
}

.product-single-info h1 {
  margin-bottom: 16px;
}

.product-single-meta {
  list-style: none;
  margin: 24px 0;
  padding: 0;
}

.product-single-meta li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--divider-color);
  padding: 12px 0;
}

.product-single-meta li strong {
  color: var(--primary-color);
  font-weight: 500;
}

/* ---------------- Comments ---------------- */
.comments-area {
  margin-top: 60px;
}

.comments-area .comment-list {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
}

.comments-area .comment-list li {
  margin-bottom: 24px;
}

.comments-area .comment-body {
  background: var(--secondary-color);
  border-radius: 20px;
  padding: 24px;
}

.comments-area .comment-author img {
  border-radius: 50%;
  margin-right: 12px;
}

.comments-area .children {
  list-style: none;
  margin: 24px 0 0 40px;
  padding: 0;
}

.comment-form .form-control,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--divider-color);
  background: var(--white-color);
  border-radius: 20px;
  padding: 14px 22px;
  font-family: var(--default-font);
  font-size: 16px;
  color: var(--primary-color);
  outline: none;
  margin-bottom: 16px;
}

.comment-form textarea {
  min-height: 140px;
  border-radius: 20px;
}

.comment-form .submit {
  font-family: var(--default-font);
  font-size: 16px;
  font-weight: 500;
  color: var(--white-color);
  background: var(--accent-color);
  border: none;
  border-radius: 100px;
  padding: 14px 32px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.comment-form .submit:hover {
  background: var(--primary-color);
}

/* ---------------- Misc WordPress bits ---------------- */
.post-entry img,
.page-entry img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
}

.no-results-box {
  text-align: center;
  padding: 60px 0;
}

.alyyo-form-msg:empty {
  display: none;
}

/* Shop category filter pills */
.alyyo-shop-filter {
  margin-bottom: 50px;
}

.alyyo-shop-filter ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.alyyo-shop-filter ul li a {
  display: inline-block;
  font-family: var(--default-font);
  font-size: 15px;
  font-weight: 500;
  color: var(--primary-color);
  background: var(--secondary-color);
  border: 1px solid var(--divider-color);
  border-radius: 100px;
  padding: 10px 24px;
  transition: all 0.3s ease-in-out;
}

.alyyo-shop-filter ul li a:hover,
.alyyo-shop-filter ul li.active a {
  color: var(--white-color);
  background: var(--accent-color);
  border-color: var(--accent-color);
}

/* ============================================================
   Mobile: vertical step list replaces the animated circle
   ============================================================ */
.hiw-mobile-steps {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: hiw;
}

.hiw-mobile-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: 0 10px 30px rgba(33, 33, 33, 0.06);
}

.hiw-mobile-step:last-child {
  margin-bottom: 0;
}

.hiw-mobile-num {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--accent-font);
  font-size: 17px;
  color: var(--white-color);
  background: var(--accent-color);
  border-radius: 50%;
}

.hiw-mobile-body h3 {
  font-size: 16px;
  line-height: 1.35em;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
}

.hiw-mobile-body p {
  font-size: 14px;
  line-height: 1.55em;
  margin: 0;
}

@media only screen and (max-width: 767px) {
  .hiw-canvas {
    display: none;
  }

  .hiw-mobile-steps {
    display: block;
  }

  /* the blur blobs are expensive to paint on phones */
  .how-it-works::before,
  .how-it-works::after {
    display: none;
  }
}
