/* Solera Home Page Styles */
.home-custom-header {
    background-color: #32245e;
}

.solera-shop-landing {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 1rem;
	padding: 2rem;
	margin: 0 auto;
	max-width: 1400px;
}

/* Hero Section */
.solera-landing-hero {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	text-align: center;
	padding-bottom: 0.25rem;
}

.solera-landing-title {
	margin: 0;
	font-size: 2rem;
	font-weight: 700;
}

.solera-landing-subtitle {
	margin: 0;
	font-size: 1.2rem;
	font-weight: 500;
	color: #555;
}

/* Stores Grid */
.solera-stores-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	margin-top: 1rem;
	justify-content: center;
}

/* Store Card */
.solera-store-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border-radius: 12px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.3s ease, transform 0.3s ease;
	min-width: 280px;
	max-width: 380px;
	min-height: 580px;
	flex: 1 1 calc(33.333% - 2rem);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.solera-store-card:hover {
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
	transform: translateY(-6px);
}

/* Admin-only: inactive store card */
.solera-store-card--inactive {
	opacity: 0.6;
	filter: grayscale(40%);
}

.solera-store-card--inactive:hover {
	opacity: 0.75;
}

.solera-store-inactive-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	background: #b91c1c;
	color: #ffffff;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 3px 8px;
	border-radius: 4px;
	z-index: 10;
	pointer-events: none;
}

.solera-store-card-image {
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: #f5f5f5;
	height: 220px;
	min-height: 220px;
	max-height: 220px;
	flex-shrink: 0;
}

.solera-store-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.solera-store-card-image--placeholder {
	background: #e8edf5;
	justify-content: center;
	align-items: center;
}

.solera-store-card-image-placeholder-text {
	font-size: 1.1rem;
	font-weight: 600;
	color: #6b7280;
	text-align: center;
	padding: 1rem;
}

.solera-store-card-name-fallback {
	font-weight: 700;
	color: var(--solera-jacarta);
}

.solera-store-card-content {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 1.25rem;
	flex-grow: 1;
	justify-content: space-between;
}

.solera-store-card-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 45px;
}

.solera-store-text-logo {
	height: auto;
	max-width: 100%;
	max-height: 45px;
	object-fit: contain;
}

.solera-store-card-description {
	color: #555555;
	font-size: 1rem;
	line-height: 1.6;
	min-height: 3rem;
	flex-grow: 1;
}

.solera-store-card .btn {
	margin-top: auto;
	padding: 0.75rem 1.25rem;
	font-size: 0.9rem;
	border-radius: 6px;
	transition: all 0.3s ease;
}

.solera-store-card .btn-primary {
	box-shadow: 0 2px 4px rgba(50, 36, 94, 0.15);
}

.solera-store-card .btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(50, 36, 94, 0.25);
}

.solera-store-card .btn:active {
	transform: translateY(0);
}

/* Why Choose Solera Section */
.solera-why-choose-section {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-top: 0.75rem;
}

.solera-why-choose-title {
	text-align: center;
	margin: 0;
	font-size: 1.7rem !important;
	font-weight: 700;
}

.solera-features-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	justify-content: center;
}

.solera-feature-card {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 2rem;
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	min-width: 280px;
	max-width: 380px;
	flex: 1 1 calc(33.333% - 2rem);
	justify-content: center;
	align-items: center;
	text-align: center;
}

.solera-feature-title {
	margin: 0;
	text-align: center;
	font-size: 1.3rem !important;
	font-weight: 600;
}

.solera-feature-description {
	margin: 0;
	text-align: center;
	font-size: 0.95rem;
	color: #666;
	line-height: 1.5;
}

/* ---- Home Header ---- */
.solera-home-header {
  background-color: var(--solera-jacarta);
  height: 70px;
  position: relative;
}

.solera-home-header .ast-container,
.solera-home-header .container {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  height: 70px;
  padding: 0 1.5rem;
}

/* WooCommerce injects this into every container â€” remove from flex flow */
.solera-home-header .woocommerce-notices-wrapper {
  display: none;
}

.solera-home-header img {
  height: auto;
  width: 325px;
  flex-shrink: 0;
  align-self: center;
}

.solera-home-header__logo {
  width: 325px;
  height: auto;
}

.solera-home-header__nav {
  display: flex;
  align-items: stretch;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  padding-left: 2rem;
}

.solera-home-header__nav li {
  display: flex;
  align-items: stretch;
}

.solera-home-header .solera-home-header__nav-link {
  display: block;
  line-height: 70px;
  height: 70px;
  padding: 0 10px;
  color: var(--solera-white);
  font-family: inherit;
  font-size: 18px;
  font-weight: normal;
  letter-spacing: normal;
  text-transform: uppercase;
  text-decoration: none;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 0;
  outline: none;
  white-space: nowrap;
  vertical-align: baseline;
  width: auto;
  transition: background 0.2s ease, color 0.2s ease;
}

.solera-home-header .solera-home-header__nav-link:hover {
  color: var(--solera-white);
}

/* Nav item hover: yellow bg + dark text (matches CTA) */
.solera-home-header .solera-home-header__nav-item:hover > .solera-home-header__nav-link {
  background: #feb032;
  color: #32245e;
}

/* ---- Dropdown ---- */
.solera-home-header__nav-item {
  position: relative;
}

.solera-home-header__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #f2f2f2;
  z-index: 1000;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  width: 90vw;
  max-width: 900px;
}

.solera-home-header__nav-item:hover .solera-home-header__dropdown {
  display: block;
}

.solera-home-header__dropdown-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 2rem 1.5rem;
  gap: 2rem;
}

.solera-home-header__dropdown-col {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.solera-home-header__dropdown-heading {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1b1e24 !important;
  text-decoration: none !important;
  display: block;
  cursor: pointer;
}

.solera-home-header__dropdown-heading:hover {
  color: #1b1e24 !important;
  text-decoration: none !important;
}

.solera-home-header__dropdown-heading:visited {
  color: #1b1e24 !important;
}

.solera-home-header .solera-home-header__cta {
  display: flex;
  align-items: center;
  width: auto;
  padding: 0 20px;
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
  background: #feb032;
  color: #32245e;
  font-weight: bold;
  border-radius: 0;
}

.solera-home-header .solera-home-header__cta:hover,
.solera-home-header .solera-home-header__cta:visited,
.solera-home-header .solera-home-header__cta:active {
  color: #32245e;
  background: #feb032;
}

/* Hamburger hidden on desktop */
.solera-home-header__hamburger {
  display: none;
}

/* Override Astra's button:hover/focus rule for the hamburger */
.solera-home-header .solera-home-header__hamburger:hover,
.solera-home-header .solera-home-header__hamburger:focus,
.solera-home-header .solera-home-header__hamburger:focus-visible,
.solera-home-header .solera-home-header__hamburger:active {
  outline: none !important;
  background-color: transparent !important;
  border-color: transparent !important;
  color: var(--solera-white) !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
}

/* Mobile nav panel hidden on desktop */
.solera-home-header__mobile-nav {
  display: none;
}

@media (max-width: 768px) {
  .solera-home-header__logo {
    width: 163px !important;
    height: auto !important;
  }

  /* Hide desktop nav and CTA, show hamburger */
  .solera-home-header__nav,
  .solera-home-header .solera-home-header__cta {
    display: none;
  }

  .solera-home-header__hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
    height: 70px;
    -webkit-tap-highlight-color: transparent;
  }

  .solera-home-header__hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--solera-white);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  /* Animate to X when open */
  .solera-home-header.mobile-open .solera-home-header__hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .solera-home-header.mobile-open .solera-home-header__hamburger span:nth-child(2) {
    opacity: 0;
  }
  .solera-home-header.mobile-open .solera-home-header__hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Mobile nav panel */
  .solera-home-header__mobile-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: var(--solera-jacarta);
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  }

  .solera-home-header__mobile-nav.is-open {
    display: block;
  }

  .solera-home-header__mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .solera-home-header__mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: var(--solera-white);
    font-family: inherit;
    font-size: 16px;
    font-weight: normal;
    text-transform: uppercase;
    padding: 1rem 1.5rem;
    cursor: pointer;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
  }

  .solera-home-header__mobile-toggle:active {
    background: transparent;
  }

  .solera-home-header__mobile-arrow {
    font-size: 0.6rem;
    transition: transform 0.2s ease;
    display: inline-block;
  }

  .solera-home-header__mobile-toggle.is-open .solera-home-header__mobile-arrow {
    transform: rotate(180deg);
  }

  /* Products submenu (hidden by default, revealed on toggle) */
  .solera-home-header__mobile-submenu {
    display: none;
    background: rgba(0,0,0,0.15);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .solera-home-header__mobile-submenu.is-open {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }

  .solera-home-header__mobile-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }

  .solera-home-header__mobile-heading {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #feb032 !important;
    text-decoration: none;
  }

  .solera-home-header__mobile-link {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85) !important;
    text-decoration: none;
    padding-left: 0.5rem;
  }

  .solera-home-header__mobile-link:hover,
  .solera-home-header__mobile-heading:hover {
    color: #feb032 !important;
  }

  /* Contact Us in mobile panel */
  .solera-home-header__mobile-cta {
    display: block;
    background: #feb032;
    color: #32245e !important;
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    padding: 1rem;
  }

  .solera-home-header__mobile-cta:hover {
    color: #32245e !important;
    opacity: 0.9;
  }
}

/* Responsive Design */

/* Tablet (768px to 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
	.solera-shop-landing .solera-stores-grid {
		display: flex;
		flex-wrap: wrap;
		gap: 15px;
		justify-content: center;
	}

	.solera-shop-landing .solera-stores-grid > .solera-store-card {
		flex: 0 0 calc(50% - 7.5px);
		max-width: calc(50% - 7.5px);
		width: auto;
	}

	.solera-shop-landing .solera-features-grid {
		display: flex;
		flex-wrap: wrap;
		gap: 15px;
		justify-content: center;
	}

	.solera-shop-landing .solera-features-grid > .solera-feature-card {
		flex: 0 0 calc(50% - 7.5px);
		max-width: calc(50% - 7.5px);
	}
}

/* Small devices (768px and below) */
@media (max-width: 767px) {
	.solera-shop-landing {
		gap: 2rem;
		padding: 2rem 1rem;
	}

	.solera-landing-title {
		font-size: 2rem;
	}

	.solera-stores-grid {
		flex-direction: column;
		align-items: center;
		gap: 1.5rem;
	}

	.solera-store-card {
		width: 100%;
		max-width: 380px;
	}

	.solera-features-grid {
		flex-direction: column;
		align-items: center;
		gap: 1.5rem;
	}

	.solera-feature-card {
		width: 100%;
		max-width: 380px;
	}
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
	.solera-shop-landing {
		gap: 1.5rem;
		padding: 1.5rem 1rem;
	}

	.solera-landing-title {
		font-size: 1.5rem;
	}

	.solera-stores-grid {
		flex-direction: column;
		align-items: center;
		gap: 1rem;
	}

	.solera-store-card {
		width: 100%;
		max-width: 320px;
		height: auto;
	}

	.solera-store-card-image {
		height: 200px;
	}

	.solera-why-choose-title {
		font-size: 1.5rem;
	}

	.solera-features-grid {
		flex-direction: column;
		align-items: center;
		gap: 1rem;
	}

	.solera-feature-card {
		width: 100%;
		max-width: 320px;
	}
}


