/* JOHARY THEME STYLES - FRONT PAGE */

/* Typography Overrides */
h1, h2, h3, h4, .johary-section-title {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--black);
}

body {
  background-color: #fff;
}

.johary-btn-white {
  display: inline-block;
  background: #fff;
  color: #111;
  padding: 12px 30px;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  border: 1px solid #fff;
  transition: all 0.3s;
}

.johary-btn-white:hover {
  background: transparent;
  color: #fff;
}

.johary-btn-gold {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  padding: 12px 30px;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  border: 1px solid var(--gold);
  transition: all 0.3s;
}

.johary-btn-gold:hover {
  background: #111;
  border-color: #111;
}

/* HERO SECTION */
.johary-hero {
  position: relative;
  height: 80vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.johary-hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: url('https://demos.codezeel.com/wordpress/WCM09/WCM090225/default/wp-content/uploads/2021/04/Main-banner-1.jpg') center/cover no-repeat;
  z-index: 0;
}

.johary-hero .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.johary-hero-content {
  max-width: 500px;
  color: #fff;
}

.johary-hero-title {
  font-size: 56px;
  line-height: 1.1;
  margin-bottom: 20px;
  color: #fff;
}

.johary-hero-subtitle {
  font-size: 16px;
  margin-bottom: 40px;
  color: #fff;
}

/* SHOP BY CATEGORIES */
.johary-categories-section {
  padding: 80px 0;
  text-align: center;
}

.johary-section-title {
  font-size: 32px;
  margin-bottom: 50px;
}

.johary-categories-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.johary-cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  transition: transform 0.3s;
}

.johary-cat-item:hover {
  transform: translateY(-5px);
}

.johary-cat-iconbox {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  transition: all 0.3s;
}

.johary-cat-item:hover .johary-cat-iconbox {
  border-color: var(--gold);
}

.johary-cat-iconbox svg {
  width: 50px;
  height: 50px;
}

.johary-cat-name {
  font-size: 16px;
  color: #111;
  font-weight: 500;
}

/* PROMO BANNERS */
.johary-promo-banners {
  padding: 40px 0;
}

.johary-promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.johary-promo-card {
  background-color: #F8F4E6;
  padding: 40px;
  position: relative;
  min-height: 250px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 4px;
}

.johary-promo-content {
  position: relative;
  z-index: 1;
}

.johary-promo-tag {
  display: inline-block;
  background: #C19417;
  color: #fff;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.johary-promo-title {
  font-size: 24px;
  line-height: 1.3;
  margin-bottom: 20px;
}

.johary-promo-link {
  font-size: 12px;
  font-weight: 600;
  color: #111;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-transform: uppercase;
}

.johary-promo-link:hover {
  color: var(--gold);
}

/* TRENDING PRODUCTS */
.johary-trending-products {
  padding: 80px 0;
}

.johary-trending-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

.johary-trending-tabs {
  display: flex;
  gap: 5px;
}

.johary-tab {
  background: #f5f5f5;
  border: none;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  transition: all 0.3s;
}

.johary-tab.active, .johary-tab:hover {
  background: var(--gold);
  color: #fff;
}

.johary-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

/* FEATURE BLOCK */
.johary-feature-block {
  padding: 100px 0;
  margin: 60px 0;
  background: url('https://demos.codezeel.com/wordpress/WCM09/WCM090225/default/wp-content/uploads/2021/04/Sub-banner-4.jpg') center/cover no-repeat;
  text-align: center;
  position: relative;
}

.johary-feature-content {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  padding: 50px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.johary-feature-title {
  font-size: 32px;
  margin-bottom: 20px;
}

.johary-feature-desc {
  font-size: 15px;
  color: #666;
  margin-bottom: 30px;
  line-height: 1.8;
}

/* SERVICES */
.johary-services {
  padding: 60px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.johary-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  gap: 30px;
}

.johary-service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.johary-service-item svg {
  width: 40px;
  height: 40px;
  stroke: var(--gold);
}

.johary-service-item h4 {
  font-size: 16px;
  margin: 0;
}

.johary-service-item p {
  font-size: 14px;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 992px) {
  .johary-hero-title { font-size: 40px; }
  .johary-promo-grid { grid-template-columns: 1fr; }
  .johary-product-grid { grid-template-columns: repeat(2, 1fr); }
  .johary-services-grid { grid-template-columns: repeat(2, 1fr); }
  .johary-trending-header { flex-direction: column; align-items: flex-start; gap: 20px; }
}

@media (max-width: 576px) {
  .johary-hero-title { font-size: 32px; }
  .johary-product-grid { grid-template-columns: 1fr; }
  .johary-services-grid { grid-template-columns: 1fr; }
}

/* SWIPER OVERRIDES */
.johary-swiper .johary-nav-btn {
  color: #fff;
  opacity: 0.5;
  transition: opacity 0.3s;
}
.johary-swiper .johary-nav-btn:hover {
  opacity: 1;
}
.johary-swiper .swiper-button-next:after, 
.johary-swiper .swiper-button-prev:after {
  font-size: 24px;
}

/* NAVIGATION BADGES */
.header-nav .has-badge-sale > a,
.header-nav .has-badge-hot > a {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.header-nav .has-badge-sale > a::after {
  content: "SALE";
  background: #C19417; /* Adjust if their SALE badge is a different color, often red/green, I'll use gold */
  background: #3eb594; /* Match category sale tag color from screenshot */
  color: #fff;
  font-size: 8px;
  padding: 2px 5px;
  border-radius: 2px;
  margin-left: 5px;
  position: absolute;
  top: -10px;
  right: -25px;
}

.header-nav .has-badge-hot > a::after {
  content: "HOT";
  background: #f72c6e; /* Hot badge color */
  color: #fff;
  font-size: 8px;
  padding: 2px 5px;
  border-radius: 2px;
  margin-left: 5px;
  position: absolute;
  top: -10px;
  right: -20px;
}

/* MEGAMENU LOGIC */
.header-nav .has-megamenu {
  position: static !important; /* Forces the megamenu to be relative to the header, not the item */
}

.header-nav {
  position: relative;
}

.alessa-megamenu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border-top: 1px solid #eee;
  padding: 40px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.header-nav .has-megamenu:hover .alessa-megamenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.mega-row {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.mega-col h4 {
  font-size: 16px;
  font-weight: 600;
  color: #111;
  margin-bottom: 20px;
  font-family: var(--font-display);
}

.mega-col ul {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.mega-col ul li a {
  font-size: 14px;
  color: #666;
  text-decoration: none;
  font-family: var(--font-body);
  transition: color 0.2s;
}

.mega-col ul li a:hover {
  color: var(--gold);
}

.mega-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.mega-product-small {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #fff;
  padding: 10px;
}

.mega-product-small img {
  width: 60px;
  height: 60px;
  object-fit: cover;
}

.mega-prod-info a {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #111;
  text-decoration: none;
  margin-bottom: 5px;
  line-height: 1.3;
}

.mega-prod-info span {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
}

/* Category Megamenu Specific */
.mega-cat-icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.mega-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.mega-icon-item .circle-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 1px solid #eee;
  background: url('https://demos.codezeel.com/wordpress/WCM09/WCM090225/default/wp-content/uploads/2021/04/Cat-1.jpg') center/cover;
}

.mega-icon-item span {
  font-size: 14px;
  font-family: var(--font-display);
  color: #111;
}

/* Prod Megamenu Horizontal */
.mega-prod-horizontal .mega-product-card {
  text-align: center;
}

.mega-prod-horizontal img {
  width: 100%;
  height: auto;
  margin-bottom: 15px;
}

.mega-prod-horizontal h5 {
  font-size: 14px;
  margin-bottom: 10px;
}

.mega-prod-horizontal h5 a {
  text-decoration: none;
  color: #111;
}

.mega-prod-horizontal span {
  font-size: 14px;
  color: #666;
}
