@font-face {
  font-family: "Inter";
  src: url(../fonts/Inter/Inter-VariableFont_opsz\,wght.ttf);
}

:root {
  --color-purple: #52018d;
  --color-dark-purple: #310054;
  --color-orange: #fbad00;
  --color-black: #121212;
  --color-white: #fff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  overflow-x: hidden;
  font-family: Inter;
}

a {
  text-decoration: none;
}

/* Header styles */

.header-top {
  padding: 1rem 3.75rem;
  background-color: var(--color-dark-purple);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100vw;
}

.header-top nav ul {
  display: flex;
  gap: 1.875rem;
  align-items: center;
}

.header-top a {
  color: var(--color-white);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.02625rem;
}

.header-middle {
  padding: 1.2rem 3.75rem;
  background-color: var(--color-purple);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4rem;
  width: 100vw;
}

.header-middle .logo {
  color: var(--color-white);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.06rem;
}

.header-middle .input-container {
  width: 100%;
  max-width: 48rem;
  height: 3.375rem;
  background-color: #faf5ff;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.09) inset;
  padding: 0.3rem 0.3rem 0.3rem 1rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  border-radius: 6.25rem;
}

.header-middle .input-container .icon-container {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background-color: var(--color-orange);
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-middle .input-container input {
  flex: 1;
  font-family: inherit;
  background-color: transparent;
  border: none;
  height: 100%;
  padding-left: 1rem;
}

.header-middle .right-side {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.header-middle select {
  background-color: transparent;
  border: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.02625rem;
  color: var(--color-white);
}

.header-middle .cart-container {
  position: relative;
  width: 3rem;
  height: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-middle .cart-container img {
  width: 1.25rem;
}

.header-middle .cart-container .cart-count-badge {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  background-color: var(--color-orange);
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.75rem;
}

.header-bottom {
  padding: 1.8rem 3.75rem;
  background-color: var(--color-orange);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  width: 100vw;
  z-index: 1000;
}

.header-bottom > a {
  color: var(--color-black);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.028rem;
  text-transform: capitalize;
}

.header-bottom .left-side {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.category-dropdown {
  position: relative;
  width: 260px;
}

.dropdown-menu {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.dropdown.is-open .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown.is-open .dropdown-menu {
  display: block;
}

.category-menu-heading i {
  pointer-events: none;
}

.category-menu-heading {
  transition: all 0.3s ease-in-out;
  align-items: center;
  background-color: transparent;
  border: none;
}

.category-menu-heading i {
  margin-left: 0.5rem;
}

.rotated {
  transform: rotate(180deg);
}

.product-cat-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--color-orange);
  border: 1px solid #e5e5e5;
  position: absolute;
  top: 0.5rem;
  width: 10rem;
  z-index: 9999;
}

.product-cat-menu > li {
  position: relative;
}

.product-cat-menu li a {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  color: #222;
  text-decoration: none;
  font-size: 14px;
}

.product-cat-menu li:hover > a {
  background: #f6f6f6;
}

.header-bottom .right-side ul {
  display: flex;
  list-style-type: none;
  gap: 1.5rem;
}

.header-bottom .right-side a {
  color: var(--color-black);
}

/* Submenu */
.product-cat-menu li ul {
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 260px;
  background: var(--color-orange);
  border: 1px solid #e5e5e5;
  display: none;
  z-index: 9999;
}

/* Show submenu on hover */
.product-cat-menu li:hover > ul {
  display: block;
}

/* Arrow indicator */
.product-cat-menu li.has-children > a::after {
  content: "›";
  font-size: 14px;
}

.product-cat-menu li.open > ul {
  display: block;
}

/* Footer styles */

.footer-subscribe-section {
  background:
    linear-gradient(107deg, #52018d 9.54%, rgba(82, 1, 141, 0.15) 74.53%),
    url(../images/subscribe-bg.png);
  background-size: cover;
  background-repeat: no-repeat;
  padding: 2.5rem 3.75rem;
}

.footer-subscribe-section h3 {
  color: var(--color-white);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.075rem;
  max-width: 44rem;
}

.footer-subscribe-section p {
  margin-top: 0.5rem;
  color: var(--color-white);
  font-size: 1.2rem;
  letter-spacing: -0.03481rem;
}

.footer-subscribe-section .input-container {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  width: 30rem;
  height: 3.5rem;
  padding: 0.625rem 0.25rem 0.625rem 1.25rem;
  border-radius: 6.25rem;
  background-color: var(--color-white);
}

.footer-subscribe-section .input-container input {
  flex: 1;
  border: none;
}

.footer-subscribe-section .input-container .sign-up-btn {
  width: 8rem;
  height: 3rem;
  border-radius: 6.25rem;
  background-color: var(--color-orange);
  color: var(--color-black);
  font-weight: 700;
  letter-spacing: -0.03rem;
  border: none;
  cursor: pointer;
}

.subscribe-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.subscribe-popup .popup-content {
  background-color: var(--color-white);
  padding: 1.5rem;
  border-radius: 0.625rem;
}

.close-popup {
  cursor: pointer;
}

.footer-copyright {
  padding: 1.5rem 3.75rem;
}

footer {
  bottom: 0;
}

/* Home page styles */

.home-hero {
  display: flex;
  align-items: center;
  background-color: var(--color-purple);
  position: relative;
  height: fit-content;
  justify-content: end;
  padding: 2rem 0 2rem 2rem;
}

.home-hero .left-side {
  position: absolute;
  max-width: 50%;
  margin-right: 4rem;
  margin-left: 1.5rem;
  left: 3.75rem;
  z-index: 2;
}

.home-hero .countdown {
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  border-radius: 2.25rem;
  background-color: rgba(255, 255, 255, 0.2);
  width: fit-content;
}

.home-hero .countdown p {
  color: var(--color-white);
  font-weight: 700;
  letter-spacing: -0.03rem;
}

.home-hero .countdown .uppercase {
  text-transform: uppercase;
}

h1 {
  margin-top: 1.5rem;
  color: var(--color-white);
  font-size: 4.5rem;
  font-weight: 600;
  letter-spacing: -0.135rem;
  text-transform: capitalize;
}

.home-hero h1 span {
  color: var(--color-orange);
}

.home-hero h3 {
  margin-top: 1.5rem;
  color: var(--color-white);
  line-height: 1.5;
  letter-spacing: -0.03rem;
  text-transform: capitalize;
}

.home-hero .cta-btn {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.12rem 2.5rem;
  background-color: var(--color-orange);
  border-radius: 2.25rem;
  color: var(--color-black);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 97%;
  letter-spacing: -0.0375rem;
  width: fit-content;
}

.home-hero .hero-image {
  object-fit: cover;
  width: 50%;
}

.hero-bottom-section {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  background-color: var(--color-orange);
  padding: 0.88rem 1.5rem;
  gap: 4.5rem;
}

.hero-bottom-section .feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-bottom-section .feature img {
  width: 1.5rem;
  height: 1.5rem;
}

.hero-bottom-section .feature h4 {
  color: var(--color-black);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.02625rem;
}

.featured-items-section {
  padding: 5rem 3.75rem 0;
}

.featured-items-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

h2 {
  color: var(--color-black);
  font-size: 3rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.09rem;
}

.featured-items-header a {
  display: flex;
  padding: 1rem 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 2.25rem;
  background-color: var(--color-orange);
  color: var(--color-black);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.0375rem;
}

.products-container {
  margin-top: 2rem;
  display: flex;
  overflow-x: scroll;
  scroll-behavior: smooth;
  gap: 0.75rem;
}

.product-carousel-wrapper {
  position: relative;
  overflow: hidden; /* prevents arrows from shifting */
}

.product-carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1rem 0;
  scrollbar-width: none;
}

.product-carousel::-webkit-scrollbar {
  display: none;
}

/* Products */
.product-carousel > * {
  flex: 0 0 auto;
}

/* Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-arrow.left {
  left: -0.5rem;
}

.carousel-arrow.right {
  right: -0.5rem;
}

/* Hide arrows on touch devices */
@media (hover: none) {
  .carousel-arrow {
    display: none;
  }
}

.product-item {
  width: 20rem;
  max-width: 100%;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  border-radius: 1rem;
  border: 1px solid #f0f0f0;
  background-color: #f5f4f5;
  position: relative;
}

/* Overlay background */

.product-banner {
  background-color: var(--color-purple);
  color: #fff;
  padding: 0.3125rem 0.625rem;
  font-weight: 500;
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 2;
  font-size: 0.9375rem;
  text-transform: uppercase;
}

.product-banner.stock-banner {
  background-color: #929fa5;
}

.product-item .wp-post-image {
  width: 100%;
  height: auto;
  border-radius: 1rem;
}

.product-item .reviews-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-item .reviews-container img {
  width: 40%;
}

.product-item .reviews-container .num-ratings {
  color: #515151;
  line-height: 1.4;
  letter-spacing: -0.03rem;
}

.product-item .info-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-item .product-name {
  overflow: hidden;
  color: var(--color-black);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.03375rem;
  text-transform: capitalize;
}

.product-item .row-start-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.product-item .sold-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  background: rgba(251, 173, 0, 0.08);
}

.product-item .sold-container p {
  color: var(--color-orange);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.03rem;
}

.product-item .price-container {
  align-self: flex-end;
}

.product-item .regular-price,
.product-item .sale-price {
  color: var(--color-black);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.045rem;
  text-transform: capitalize;
}

.product-item .regular-price-discounted {
  text-decoration: line-through;
}

.product-item .add_to_cart_button {
  width: 100%;
  display: flex !important;
  padding: 0.875rem 2.5rem;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  border-radius: 2.25rem;
  border: 1px solid #e0e0e0;
  background-color: var(--color-white) !important;
  color: var(--color-black);
  font-weight: 600;
  letter-spacing: -0.03rem;
  cursor: pointer;
  position: relative;
  bottom: 0;
  z-index: 4;
}

.product-item .add_to_cart_button img {
  width: 1.25rem;
}

.popular-categories-section {
  padding: 4.5rem 3.75rem 0;
}

.popular-categories-section h2 {
  text-align: center;
}

.popular-categories-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.popular-categories-grid img {
  width: 100%;
}

.banner-grid-section {
  margin: 4.5rem 3.75rem;
  display: grid;
  grid-template-columns: 1fr 1.1fr 1.1fr;
  grid-template-rows: repeat(2, 16.1875rem);
  grid-template-areas: "tshirts hoodies accessories" "tshirts decor accessories";
  gap: 0.75rem;
}

.tshirts {
  grid-area: tshirts;
  background: url(../images/tshirtshanging.png);
  background-size: cover;
  border-radius: 1.25rem;
  padding: 1.5rem;
}

.tshirts h4,
.decor h4 {
  color: var(--color-white);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.0375rem;
}

.decor h4 {
  color: var(--color-black);
  width: 40%;
}

.tshirts h3,
.accessories h3 {
  margin-top: 0.5rem;
  color: var(--color-white);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.0675rem;
  width: 60%;
}

.accessories h3 {
  width: 70%;
}

.tshirts a,
.hoodies a,
.decor a,
.accessories a {
  color: var(--color-white);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.03375rem;
  margin-top: 1rem;
  display: block;
}

.hoodies a,
.decor a {
  color: var(--color-black);
}

.hoodies {
  grid-area: hoodies;
  background-color: #feeecc;
  border-radius: 1.25rem;
  padding: 1.5rem;
  width: 100%;
  background-image: url(../images/hoodie.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right;
}

.hoodies h3 {
  color: var(--color-black);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.0675rem;
  width: 60%;
}

.decor {
  grid-area: decor;
  background-color: #dccce8;
  border-radius: 1.25rem;
  padding: 1.5rem;
  width: 100%;
  background-image: url(../images/vases.png);
  background-size: 60%;
  background-repeat: no-repeat;
  background-position: bottom right;
}

.accessories {
  grid-area: accessories;
  background-color: var(--color-purple);
  border-radius: 1.25rem;
  padding: 1.5rem;
  width: 100%;
  background-image: url(../images/hatbag.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom right;
}

/* Shop page styles */

.products-page-container {
  padding: 4.5rem 3.75rem;
}

.products-page-container h1 {
  color: var(--color-black);
  font-size: 3rem;
  text-align: center;
  margin-bottom: 4rem;
}

.products-page-container .search-results {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.products-page-container .search-results p {
  color: red;
  font-size: 0.875rem;
  text-decoration: underline;
  cursor: pointer;
}

.filters-bar {
  margin-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 3rem;
}

.filters-bar .results,
.filters-bar label {
  color: var(--color-black);
  font-weight: 700;
  font-size: 0.875rem;
  width: 100%;
}

.filters-bar label {
  margin-left: 3rem;
}

.filters-bar select {
  padding: 0.25rem 0.75rem;
  border: 1px solid #e0e0e0;
  border-radius: 1.25rem;
}

.select-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  padding-right: 2.5rem;
}

.select-wrapper {
  position: relative;
  display: inline-block;
}

.select-wrapper::after {
  content: "";
  position: absolute;
  right: 0.9rem;
  top: 50%;
  width: 0.45rem;
  height: 0.45rem;

  border-right: 2px solid #333;
  border-bottom: 2px solid #333;
  transform: translateY(-50%) rotate(45deg); /* 👈 move arrow DOWN */

  pointer-events: none;
}

#price-slider {
  margin: 1rem 0;
  height: 6px;
  width: 20rem;
  max-width: 90%;
}

#price-slider .noUi-connect {
  background: var(--color-purple);
}

#price-slider .noUi-handle {
  width: 18px;
  height: 18px;
  top: -6px;
  border-radius: 50%;
  cursor: pointer;
}

/* .price-filter-group {
  display: flex;
  align-items: center;
  gap: 1rem;
} */

.price-filter-group form {
  position: relative;
}

.price-filter-group .labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.reset {
  color: red;
  font-size: 0.875rem;
  cursor: pointer;
  text-decoration: underline;
}

.apply-filters {
  display: flex;
  padding: 0.25rem 0.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 2.25rem;
  background-color: var(--color-orange);
  color: var(--color-black);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.0375rem;
  border: none;
}

.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  row-gap: 2.5rem;
  margin: 2rem auto;
}

.woocommerce-pagination {
  text-align: center;
}

.woocommerce-pagination .page-numbers {
  list-style-type: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.woocommerce-pagination .page-numbers li {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 0.25rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.woocommerce-pagination .page-numbers li a {
  color: var(--color-black);
}

.woocommerce-pagination .page-numbers li .current {
  color: var(--color-orange);
}

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

/* Image zoom (optional) */
.product-image-wrapper img {
  display: block;
  width: 100%;
  transition: transform 0.4s ease;
}

.product-card:hover .product-image-wrapper img {
  transform: scale(1.05);
}

/* Overlay */
.product-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  opacity: 0;
  transition: opacity 0.35s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 3;
}

/* Show overlay only on image hover */
.product-image-wrapper:hover .product-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* Actions */
.overlay-actions {
  display: flex;
  gap: 1rem;
}

/* Icons */
.overlay-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;

  transform: translateY(15px);
  opacity: 0;

  transition:
    transform 0.35s ease,
    opacity 0.35s ease,
    background 0.2s ease;
}

.overlay-icon i,
.overlay-icon .wishlist-icon {
  color: #000;
  font-size: 1.1rem;
}

.overlay-icon.compare-button img {
  width: 1.5rem;
  border-radius: 50%x;
  color: var(--color-black);
}

.overlay-icon:hover {
  background: #000;
}

.overlay-icon:hover i,
.overlay-icon:hover .wishlist-icon {
  color: #fff;
}

.product-image-wrapper:hover .overlay-icon {
  transform: translateY(0);
  opacity: 1;
  color: #fff;
}

.product-image-wrapper:hover .overlay-icon:nth-child(1) {
  transition-delay: 0.05s;
}

.product-image-wrapper:hover .overlay-icon:nth-child(2) {
  transition-delay: 0.15s;
}

.product-image-wrapper:hover .overlay-icon:nth-child(3) {
  transition-delay: 0.25s;
}
/* In public/wp-content/themes/junipercustomtheme/assets/css/index.css */

/* --- For #wc-snackbar (Add to Cart messages) --- */
/* Your existing .wc-snackbar styling: */
.wc-snackbar {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333; /* Current default, will be overridden by .success or .error */
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

/* Define success color for #wc-snackbar */
.wc-snackbar.success {
  background-color: #4caf50; /* Green */
}

/* Define error color for #wc-snackbar */
.wc-snackbar.error {
  background-color: #f44336; /* Red */
}

/* --- For #compare-snackbar (Product Comparison messages) --- */
/* Your existing .compare-snackbar styling: */
.compare-snackbar {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: #f44336; /* Currently default red, will be overridden by .success */
  color: white;
  padding: 1rem 2rem;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  text-align: center;
}

/* Define success color for #compare-snackbar */
.compare-snackbar.success {
  background-color: #4caf50; /* Green */
}

.wc-snackbar.show,
.compare-snackbar.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-6px);
}

a.added_to_cart.wc-forward {
  display: none !important;
}

.woocommerce-product-gallery__image img {
  pointer-events: all;
}

.woocommerce-product-gallery__wrapper {
  overflow: visible;
}

/* Single page styles */

.single-page-container {
  padding: 4.5rem 3.75rem;
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 3rem;
  margin: 0 auto;
}

.product-right .rating-container {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.product-right .rating-container .stars {
  width: 6.75rem;
}

.product-right .rating-container p {
  color: var(--color-black);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25rem;
}

.product-right .rating-container p span {
  color: #5f6c72;
  font-size: 0.875rem;
  font-weight: 400;
}

.single-page-container .product-title {
  color: var(--color-black);
  font-size: 2.5rem;
  letter-spacing: normal;
}

.single-page-container .product-meta-details {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  row-gap: 0.5rem;
}

.single-page-container .label {
  color: #5f6c72;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.single-page-container .product-meta-details .meta-row .value {
  color: var(--color-black);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25rem;
}

.product-meta-details .meta-row a {
  color: #1b6392;
}

.in-stock {
  color: #2db224 !important;
}

.out-of-stock {
  color: #be4646 !important;
}

.single-page-container .product-price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.single-page-container .product-price .current-price,
.woocommerce-variation-price ins,
.woocommerce-grouped-product-list-item ins {
  color: #2da5f3;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 2rem;
  text-decoration: none;
}

.single-page-container .product-price .regular-price,
.woocommerce-variation-price del {
  color: #77878f;
  font-size: 1.125rem;
  line-height: 1.5rem;
  text-decoration: line-through;
}

.single-page-container .product-price .percent-discount {
  padding: 0.3125rem 0.625rem;
  border-radius: 0.125rem;
  background-color: var(--color-orange);
}

.single-page-container .product-price .percent-discount p {
  color: var(--color-black);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25rem;
  text-transform: uppercase;
}

/* Table layout */
.variations {
  width: 100%;
  margin: 1.5rem 0 0;
  display: flex;
  align-items: center;
}

.variations tr {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 1rem;
}

.variations td {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.variations td.value {
  width: 100%;
  display: flex;
  align-items: center;
}

/* Select styling */
.variations select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ddd;
  background-color: #fff;
  cursor: pointer;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-image: url("/path/to/chevron.svg");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
}

.woocommerce-variation-description {
  display: none;
}

.woocommerce-variation-price {
  margin: 1.5rem 0;
}

.single-page-container .product-purchase-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.single-page-container .quantity-container {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* .single-page-container .quantity-wrapper {
  width: 6rem;
  height: 2.5rem;
  padding: 0 1.25rem;
  border-radius: 0.1875rem;
  border: 2px solid #e4e7e9; */

.single-page-container input.qty {
  text-align: center;
  border: none;
  width: 6rem;
  height: 2.5rem;
  padding: 0 1.25rem;
  border-radius: 0.1875rem;
  border: 2px solid #e4e7e9;
}

.single_variation_wrap {
  display: block !important;
}

.single-page-container .single_add_to_cart_button,
.wc-blocks-components-button,
.add-to-cart-btn {
  background-color: var(--color-purple) !important;
  color: var(--color-white);
  padding: 0 2rem;
  height: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.012rem;
  text-transform: uppercase;
  border: none;
  outline: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.1875rem;
}

.add-to-cart-btn img {
  width: 1.5rem;
}

.single-page-container .buy-now-btn {
  background-color: transparent;
  color: var(--color-purple);
  border: 2px solid var(--color-purple);
  padding: 0 2rem;
  height: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.012rem;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0.1875rem;
}

.product-purchase-row--variable .variations {
  margin-top: 0; /* if needed */
}

.product-purchase-row--variable .woocommerce-variation-add-to-cart {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.product-purchase-row--variable .quantity {
  width: 6rem;
  height: 2.5rem;
  padding: 0 1.25rem;
  border-radius: 0.1875rem;
  border: 2px solid #e4e7e9;
  display: flex;
  align-items: center;
}

.js-hidden-init {
  display: none;
}

.product-purchase-row {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.product-purchase-row button {
  pointer-events: auto !important;
  opacity: 1 !important;
}

.product-purchase-row .cart,
.variations_button {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.add-to-wishlist-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.flex-control-thumbs {
  list-style-type: none;
  display: flex;
  gap: 0.5rem;
}

.woocommerce-grouped-product-list-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.woocommerce-grouped-product-list-item del {
  display: none;
}

.woocommerce-grouped-product-list-item a {
  color: var(--color-black);
}

.single-page-container .product-description {
  color: var(--color-black);
  margin-top: 1rem;
  opacity: 0.8;
}

/* Styling for the main breadcrumb container */
.woocommerce-breadcrumb {
  padding: 1rem 3.75rem;
  margin-bottom: 0rem;
  background-color: #f8f8f8; /* Light background for visibility */
  border-bottom: 1px solid #eee;
  font-size: 0.9em;
  color: #666;
}

/* Styling for individual breadcrumb items */
.woocommerce-breadcrumb a {
  color: #007bff; /* Link color */
  text-decoration: none;
}

.woocommerce-breadcrumb a:hover {
  text-decoration: underline;
}

/* Styling for the separator (often using content property) */
.woocommerce-breadcrumb span:not(:last-child):after {
  content: "/"; /* Separator character */
  padding: 0 8px;
  color: #999;
}

/* Hide the last item (current page) link if preferred */
.woocommerce-breadcrumb span:last-child {
  font-weight: bold;
  color: #333;
}

/* Custom Mini-Cart Overlay */
#custom-mini-cart {
  position: fixed;
  inset: 0;
  padding-top: 7rem;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: flex-end; /* panel sticks to right */
  align-items: stretch;
  z-index: 10000;
  overflow-y: scroll;
}

#custom-mini-cart.show {
  display: flex;
}
.custom-mini-cart-content {
  width: 350px;
  max-width: 90vw;
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

#custom-mini-cart.show .custom-mini-cart-content {
  transform: translateX(0);
}

/* Show the mini-cart overlay */
#custom-mini-cart.show {
  display: flex; /* Show the overlay */
}

body.mini-cart-open {
  overflow: hidden;
}

#custom-mini-cart.show .custom-mini-cart-content {
  transform: translateX(0);
}

.mini-cart-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.custom-mini-cart-content {
  width: 350px;
  max-width: 90vw;

  background: #fff;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

#custom-mini-cart.show .custom-mini-cart-content {
  transform: translateX(0);
}
/* Header and Footer Styling */
.mini-cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
  margin-bottom: 1rem;
}

.mini-cart-header h3 {
  margin: 0;
  font-size: 1.25rem;
}

.mini-cart-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.mini-cart-thumb a img {
  width: 6rem !important;
  height: 6rem !important;
  object-fit: cover;
}

.mini-cart-item {
  display: flex;
  gap: 1rem;
  width: 100%;
  justify-content: flex-start;
}

.product-container {
  display: flex;
  gap: 0.75rem;
}

.mini-cart-title {
  color: var(--color-black);
  font-weight: 500;
}

.mini-cart-qty {
  color: var(--color-black);
  font-weight: 300;
  font-size: 0.875rem;
}

.subtotal {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

.mini-cart-footer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
  margin-top: auto; /* Push to bottom */
}

.mini-cart-footer .button {
  text-align: center;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  font-weight: bold;
  text-transform: uppercase;
}

.mini-cart-footer .view-cart-btn {
  background-color: #f0f0f0;
  color: #333;
  border: 1px solid #ccc;
}

.mini-cart-footer .checkout-btn {
  background-color: var(--color-purple, #6c4bda);
  color: #fff;
  border: none;
}

.custom-mini-cart-content {
  width: 380px;
  height: fit-content;
  background: #fff;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

/* .woocommerce-mini-cart {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
} */

/* Adjust default WooCommerce mini-cart widget styling if needed */
.woocommerce.widget_shopping_cart {
  margin-bottom: 1rem;
}
.woocommerce.widget_shopping_cart .cart_list {
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: calc(100vh - 200px); /* Adjust based on header/footer size */
  overflow-y: auto;
}
/* ... further styling for cart items within the list if necessary ... */

/* Checkout page styles */

.wc-block-checkout {
  padding: 3rem 3.75rem;
}

/* In public/wp-content/themes/junipercustomtheme/assets/css/index.css */

/* Styling for the compare snackbar */
.compare-snackbar {
  position: fixed;
  bottom: 2rem; /* Adjust position as needed, e.g., below wc-snackbar */
  left: 50%;
  transform: translateX(-50%);
  background-color: #f44336; /* Red background for error */
  color: white;
  padding: 1rem 2rem;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 10000; /* Ensure it's above other content */
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  text-align: center;
}

.compare-snackbar.show {
  opacity: 1;
  visibility: visible;
}

/* Cart page styles */

.woocommerce-cart-form {
  padding: 4.5rem 3.75rem;
}

.woocommerce-cart-form .product-thumbnail {
  width: 10rem;
}

.woocommerce-cart-form #coupon_code {
  width: 20rem;
  height: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0 0.5rem;
}

.cart-collaterals {
  padding: 0 3.75rem 3rem;
  display: flex;
  justify-content: flex-start;
}

.cart-collaterals .cart_totals {
  padding: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 5px;
}

/* Compare page styles */

.no-products,
.compare-table {
  margin: 4.5rem 3.75rem;
  position: relative;
}

.compare-table .top-section button {
  background-color: transparent;
  border: none;
  outline: none;
  color: #be4646;
  font-size: 1rem;
  cursor: pointer;
  position: absolute;
  bottom: -1rem;
}

.compare-table .wishlist-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* 404 page styles */

.not-found-page-container {
  padding: 3.75rem;
  display: grid;
  grid-template-columns: 1fr 4fr;
  place-items: center;
}

.not-found-page-container .left-side h1 {
  font-size: 3.75rem;
  font-weight: 700;
  line-height: 4rem;
  color: var(--color-black);
}

.not-found-page-container .left-side p {
  margin-top: 1.5rem;
  color: var(--color-black);
}

.not-found-page-container .left-side a {
  display: block;
  background-color: var(--color-purple);
  color: var(--color-white);
  padding: 0.5rem 1rem;
  margin-top: 2rem;
  width: fit-content;
}

.not-found-page-container .right-side img {
  width: 100%;
}

.woocommerce .products ul::after,
.woocommerce .products ul::before,
.woocommerce ul.products::after,
.woocommerce ul.products::before {
  display: none;
}

.products-page-container .products-section {
  margin-top: 2rem;
}

.options-container .compare-button {
  background-color: transparent;
  border: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.options-container .compare-button img {
  width: 1.5rem;
}

.product-purchase-row .quantity {
  width: 5rem !important;
}

.product-purchase-row .quantity input.qty {
  width: 5rem;
}

/*
=============================
RESPONSIVE STYLES (RESTORED)
Put at END of file
=============================
*/

/* Small fix: avoid 100vw causing horizontal scroll when scrollbars exist */
.header-top,
.header-middle,
.header-bottom {
  width: 100%;
}

/* Make images behave */
img {
  max-width: 100%;
  height: auto;
}

.product-purchase-row {
  padding: 0 2rem;
  max-width: 44rem;
  text-align: left;
}

/* Adjust heading sizes for better readability on smaller screens (general) */
h1 {
  /* Default Desktop size was 4.5rem; adjusted in media queries below */
}
h2 {
  /* Default Desktop size was 3rem; adjusted in media queries below */
}

.featured-items-header {
  gap: 1rem;
  flex-wrap: wrap;
}

/* Products grid changes */
.products {
  /* Adjusted in media queries below */
}
.product-item {
  /* Adjusted in media queries below */
}

/* Price filter adjustments */
#price-slider {
  width: 100%;
}
.price-filter-group {
  width: 100%;
  flex-wrap: wrap;
}
.filters-bar label {
  margin-left: 0; /* Remove left margin on mobile */
  /* grid-template-columns: repeat(2, 1fr); - this appears to be a stray, likely belongs to a grid container */
}
/* .filters-bar {
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
} */

/* Single product page adjustments */
.single-page-container .product-title {
  font-size: 1.9rem;
}
.single-page-container .product-meta-details {
  grid-template-columns: 1fr;
}
.variations tr {
  flex-direction: column;
  align-items: stretch;
}
.product-purchase-row .quantityinput.qty {
  width: 5rem;
}

/* Footer subscribe section */
.footer-subscribe-section .input-container .sign-up-btn {
  /* Adjusted in media queries below */
}

/* Mobile Nav - Initially hidden, shown via media query */
.mobile-nav {
  display: none;
}

.mobile-menu {
  display: none; /* Controlled by JS and .active class */
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--color-purple);
  color: var(--color-white);
  width: 25rem; /* Default width */
  max-width: 100%;
  padding: 1rem;
  position: absolute;
  right: 0;
  z-index: 1000;
  top: 6rem; /* Adjust based on your header height */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  color: var(--primary-white);
  padding: 0.5rem 0;
  width: 100%;
  text-align: center;
}

body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

@media (max-width: 1500px) {
  .home-hero .left-side {
    left: 1.5rem;
  }

  .home-hero .hero-image {
    width: 60%;
    height: auto;
  }
}

@media (max-width: 1080px) {
  .home-hero {
    flex-direction: column;
    align-items: flex-end;
    position: relative;
    height: fit-content;
  }

  .home-hero .left-side {
    position: relative;
    max-width: 100%;
  }
}

@media (max-width: 992px) {
  .home-hero {
    align-items: center;
  }

  .home-hero .left-side {
    text-align: center;
    margin-right: 1.5rem;
  }

  .home-hero .hero-image {
    display: none;
  }

  .header-middle {
    flex-direction: column;
    gap: 1rem;
  }

  .main-header {
    display: none;
  }

  .header-bottom .right-side {
    display: none;
  }

  .mobile-nav {
    display: flex;
    position: relative;
    justify-content: space-between;
    height: 6rem;
    padding: 0 2rem;
  }

  .logo-with-bg {
    height: 4rem;
    width: 3rem;
  }

  #hamburger-icon {
    cursor: pointer;
    padding: 10px;
    align-self: center;
  }

  #hamburger-icon .bar {
    background-color: var(--color-purple);
    display: block;
    position: relative;
    width: 1.5rem;
    height: 2px;
    margin: 5px 0;
    transition: all 0.3s ease;
  }

  #hamburger-icon.open .bar1 {
    transform: rotate(135deg);
    top: 9px;
  }

  #hamburger-icon.open .bar2 {
    opacity: 0;
  }

  #hamburger-icon.open .bar3 {
    transform: rotate(-135deg);
    top: -5px;
  }
}

@media (max-width: 768px) {
  .header-middle,
  .header-bottom {
    padding: 1.2rem 1.5rem;
  }

  .mobile-nav {
    padding: 0 1rem;
  }
}

/* =========================
   GLOBAL RESPONSIVE SYSTEM
========================= */

:root {
  --container-padding: 3.75rem;
}

@media (max-width: 1200px) {
  :root {
    --container-padding: 2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --container-padding: 1.25rem;
  }
}

/* Apply dynamic padding */
.header-top,
.header-middle,
.header-bottom,
.featured-items-section,
.popular-categories-section,
.banner-grid-section,
.products-page-container,
.single-page-container,
.woocommerce-cart-form,
.cart-collaterals,
.wc-block-checkout {
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

@media (max-width: 1200px) {
  h1 {
    font-size: 3.5rem;
  }
}

@media (max-width: 992px) {
  .home-hero {
    flex-direction: column;
    height: auto;
    padding: 4rem 0;
  }

  .home-hero .left-side {
    position: relative;
    left: 0;
    max-width: 100%;
    padding: 2rem 0;
  }

  h1 {
    font-size: 2.8rem;
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: 2.1rem;
  }

  .home-hero h3 {
    font-size: 1rem;
  }

  .home-hero .cta-btn {
    width: 100%;
  }
}

/* Desktop */
.products {
  grid-template-columns: repeat(4, 1fr);
}

/* Laptop */
@media (max-width: 1480px) {
  .products {
    grid-template-columns: repeat(3, 1fr);
    place-items: center;
  }
}

/* Tablet */
@media (max-width: 992px) {
  .products {
    grid-template-columns: repeat(2, 1fr);
    place-items: center;
  }
}

@media (max-width: 768px) {
  .products {
    grid-template-columns: 1fr;
    place-items: center;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .products {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 992px) {
  .popular-categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .popular-categories-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 992px) {
  .banner-grid-section {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "tshirts"
      "hoodies"
      "decor"
      "accessories";
  }

  .tshirts,
  .hoodies,
  .decor,
  .accessories {
    min-height: 18rem;
  }
}

@media (max-width: 992px) {
  .header-top {
    display: none;
  }

  .header-middle {
    flex-direction: column;
    gap: 1rem;
  }

  .header-middle .right-side {
    width: 100%;
    justify-content: space-between;
  }

  .header-middle .input-container {
    width: 100%;
  }
}

@media (max-width: 992px) {
  .single-page-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .single-page-container .product-title {
    font-size: 2rem;
  }

  .product-purchase-row {
    flex-direction: column;
    align-items: stretch;
  }

  .single_add_to_cart_button,
  .buy-now-btn {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .footer-subscribe-section h3 {
    font-size: 1.75rem;
  }

  .footer-subscribe-section .input-container {
    width: 100%;
    flex-direction: column;
    height: auto;
    border-radius: 1rem;
    padding: 1rem;
  }

  .footer-subscribe-section .sign-up-btn {
    width: 100%;
    margin-top: 0.5rem;
  }
}

@media (max-width: 600px) {
  .custom-mini-cart-content {
    width: 100%;
    border-radius: 0;
  }
}

@media (max-width: 768px) {
  .filters-bar {
    flex-direction: column;
  }

  /* .products-section {
    display: grid;
    grid-template-columns: 1;
    place-items: center;
  } */
}

@media (max-width: 356px) {
  .product-item {
    width: 19rem;
  }
}

.cart-count-badge.is-hidden {
  display: none;
}
