/*
Theme Name: Lila Candles
Theme URI: https://wordpress.org/themes/twentytwentyfour/
Template: twentytwentyfour
Author: Lila Candles
Author URI: http://LilaCandles
Description: This is theme is designed to showcase the Lila Candle brand and identity.
Tags: one-column,custom-colors,custom-menu,custom-logo,editor-style,featured-images,full-site-editing,block-patterns,rtl-language-support,sticky-post,threaded-comments,translation-ready,wide-blocks,block-styles,style-variations,accessibility-ready,blog,portfolio,news
Version: 1.3.1774459243
Updated: 2026-03-25 17:20:43

*/

*:focus-visible {
    outline: none;
}

.product-slider {
    position: relative;
}

.swiper-wrapper{
  margin-bottom: 1.5rem;
}

.swiper .swiper-slide{
  height: -webkit-fill-available;
  margin-block-start: 0;
}

.swiper-slide{
  box-shadow: 0 1px 1px rgba(0,0,0,0.08);
  padding-bottom: 1.5rem;
  box-sizing: border-box;
  margin: 0;
}

.slider-button-prev,
.slider-button-next {
    position: absolute;
    top: 50%;
    width: 42px;
    height: 42px;
    border: 1px solid var(--wp--preset--color--custom-primary-accent);
  	fill:var(--wp--preset--color--custom-primary-accent);
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    background-color:#fff;
  	user-select:none;
}

.slider-button-prev { left: 2.5%; }
.slider-button-next { right: 2.5%; }

.wp-block-query {
    padding: 0;
}

footer,
main {
    margin-top: 0;
}

.accent {
    color: accent;
}


.sticky{
  	position:sticky;
    top: 0;
  	z-index: 9999;
}


/* =====================================================
   BUTTON EFFECTS
   ===================================================== */

.wp-block-button {
    transition: transform 0.3s ease;
}

.wp-block-button:hover {
    transform: scale(1.2);
  	border-radius:1.5rem;
}

.wp-element-button:hover, .wp-block-button__link:hover{
 background-color:#3D3D3D;
}

/* =====================================================
   RATING STARS
   ===================================================== */

.rating-stars-container {
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.rating-stars {
    display: flex;
    gap: 0.25rem;
    color: #D4A373;
    font-size: 14px;
}

.rating-stars .star.filled {
    color: #D4A373;
}

.wp-block-group.accent-slider .rating-stars .star.filled {
    color: #3D3D3D;
}

/* =====================================================
   PRODUCT CARD
   ===================================================== */

.product-showcase-block {
    position: relative;
    flex-shrink: 0;
    scroll-snap-align: center;
    margin: 0;
    box-sizing: border-box;
}

.product-showcase-block:focus {
    outline: none;
}

.product-showcase-block:focus:not(:focus-visible) {
    outline: none;
}

/* Scale Target Wrapper */
.scale-target {
    transition: transform 0.2s ease-out;
    transform-origin: center;
    user-select: none;
}

/* Product Image Wrapper */
.product-image-wrapper {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    background-color: #F3F4F6;
    cursor: pointer;
}

/* Base */
.product-image-wrapper .main-image,
.product-image-wrapper .hover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    user-select: none;
    -webkit-user-drag: none;
    transition: none;
}

/* Start hidden */
.product-image-wrapper .hover-image {
    opacity: 0;
}

/* Keyframes */
@keyframes cycleMain {
    0%   { opacity: 1; }
    12%  { opacity: 0; }   /* smooth fade out (0.6s of 5.2s) */
    50%  { opacity: 0; }   /* hold invisible */
    62%  { opacity: 1; }   /* smooth fade in (0.6s) */
    100% { opacity: 1; }   /* hold visible */
}

/* Smooth HOVER IMAGE cycle */
@keyframes cycleHover {
    0%   { opacity: 0; }
    12%  { opacity: 1; }   /* smooth fade in */
    50%  { opacity: 1; }   /* hold visible */
    62%  { opacity: 0; }   /* smooth fade out */
    100% { opacity: 0; }   /* hold invisible */
}

/* Trigger loop on hover */
.product-image-wrapper.has-hover-image:hover .main-image {
    animation: cycleMain 5.2s ease-in-out infinite;
}

.product-image-wrapper.has-hover-image:hover .hover-image {
    animation: cycleHover 5.2s ease-in-out infinite;
}
/* Content Wrapper */
.product-showcase-block .content-wrapper {
    margin-top: 1.5rem;
}

/* Product Header/Title */
.product-showcase-block .p-header {
    font-size: 1rem;
    font-family: 'Noto Serif';
    color: #2C2C2C;
    margin: 0.5rem 0;
    text-align: center;
}


.accessories .product-showcase-block .p-price {
    font-size: 1.125rem;
    font-weight: 500;
    color: #2c2c2c;
    text-align: center;
}

.aromatherapy .product-showcase-block .p-price {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--wp--preset--color--custom-primary-accent);
    text-align: center;
}




/* Price with strikethrough */
.product-showcase-block .p-price s {
    text-decoration: line-through;
}

/* Flex container for regular + discounted price */
.product-showcase-block .p-flex {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin: 0.5rem 0;
}

/* Discounted price styling */
.product-showcase-block .p-flex .p-price:last-child {
    color: #D4A373;
}

.wp-block-group.accent-slider .product-showcase-block .p-flex .p-price:last-child{
  color:#6B7280;
}


.aromatherapy .product-showcase-block .p-link{
    padding: 0.5rem 1.25rem;
    border: 2px solid var(--wp--preset--color--custom-primary-accent);
    background: transparent;
    color: var(--wp--preset--color--custom-primary-accent);
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: inherit;
}

.aromatherapy .product-showcase-block .p-link:hover{
    padding: 0.5rem 1.25rem;
    border: 2px solid var(--wp--preset--color--custom-primary-accent);
    background: #3D3D3D;
    color: var(--wp--preset--color--custom-primary-accent);
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: inherit;
}

.product-showcase-block .p-link:hover {
    transform: translateY(-2px);
}

.aromatherapy .product-showcase-block h2{
  color: var(--wp--preset--color--custom-primary-accent);
}

/* Center the button */
.product-showcase-block .content-wrapper > div:last-child {
    text-align: center;
}


/* =====================================================
   SCENT PILLS
   ===================================================== */

/* ───────────── SCENT PILLS CONTAINER ───────────── */
.scent-pills-container {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    max-width: calc(100% - 24px);
    z-index: 10;

    /* light glass base so pills never get dark */
    background: rgba(255,255,255,0.12);
    padding: 4px;
    border-radius: 18px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* ───────────── BASE PILL STYLE ───────────── */
/* Base pill */
.scent-pill {
    display: inline-block;
    position: relative;
    cursor: pointer;

    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.3px;

    background: rgba(255, 255, 255, 0.14);
    color: #333;

    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.6),
                0 2px 8px rgba(0,0,0,0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
    /* remove overflow:hidden so pseudo-element can expand outside */
}

.scent-pill:hover {
    transform: translateY(-1px) scale(1.03);
}

/* Tooltip pseudo-element */
.scent-pill::after {
    content: attr(data-description);
    position: absolute;

    left: 0;
    top: 100%; /* show below pill */
    margin-top: 8px;

    min-width: 180px;
    max-width: 240px;
    padding: 10px 14px;

    background: rgba(255, 255, 255, 0.92);
    color: #333;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 600;
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    transform-origin: top left;
    transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
    pointer-events: none;
    z-index: 50;
}

/* Active: show tooltip */
.scent-pill.active::after {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    pointer-events: auto;
}
/* ───────────── COLOR VARIANTS (LIGHTENED) ───────────── */
.scent-pill.citrus {
    background: rgba(255, 249, 196, 0.22);
    color: #f57f17;
    border-color: rgba(255, 241, 118, 0.5);
}

.scent-pill.floral {
    background: rgba(252, 228, 236, 0.22);
    color: #880e4f;
    border-color: rgba(248, 187, 208, 0.5);
}

.scent-pill.fresh-clean {
    background: rgba(224, 247, 250, 0.22);
    color: #006064;
    border-color: rgba(178, 235, 242, 0.5);
}

.scent-pill.herbal {
    background: rgba(232, 245, 233, 0.22);
    color: #2e7d32;
    border-color: rgba(200, 230, 201, 0.5);
}

.scent-pill.spicy-warm {
    background: rgba(255, 235, 238, 0.22);
    color: #c62828;
    border-color: rgba(255, 205, 210, 0.5);
}

.scent-pill.sweet-gourmand {
    background: rgba(255, 243, 224, 0.22);
    color: #e65100;
    border-color: rgba(255, 224, 178, 0.5);
}

.scent-pill.woody-earthy {
    background: rgba(239, 235, 233, 0.22);
    color: #4e342e;
    border-color: rgba(215, 204, 200, 0.5);
}

/* =====================================================
   filter buttons
   ===================================================== */

.candle-filters {
  gap: 0.75rem;
  margin: 1rem 0 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border: 2px solid var(--wp--preset--color--custom-primary-accent);
  background: transparent;
  color: var(--wp--preset--color--custom-primary-accent);
  border-radius: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
}

.filter-btn:hover {
  background: rgba(255, 160, 122, 0.1);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--wp--preset--color--custom-primary-accent);
  color: var(--wp--preset--color--base);
}


/* Menu container smooth transitions */
.wp-block-navigation__responsive-container {
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 100vh;
  overflow: hidden;
}

/* When menu is closed */
.wp-block-navigation__responsive-container.hidden-by-default {
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  transform: translateY(-30px);
  pointer-events: none;
}

/* When menu is open */
.wp-block-navigation__responsive-container.has-modal-open,
.wp-block-navigation__responsive-container.is-menu-open {
  opacity: 1;
  visibility: visible;
  max-height: 100vh;
  transform: translateY(0);
  pointer-events: auto;
}

/* Background overlay smooth transition */
.wp-block-navigation__responsive-close {
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dialog smooth transitions */
.wp-block-navigation__responsive-dialog {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Submenu items smooth transitions */
.wp-block-navigation__submenu-container {
  transition: all 0.3s ease-in-out;
  max-height: 1000px;
  overflow: hidden;
}

header {
  overflow: unset;
}

