/* ====================================================================
   DYNAMIC ACF FILTER SYSTEM - GRID-BASED LAYOUT
   Version: 2.0 - Optimized Grid System
   ==================================================================== */

/* ====================================================================
   CONFIGURATION GUIDE
   ====================================================================
   
   EASY CUSTOMIZATION:
   
   1. CAROUSEL WIDTH (% of page):
      - Change max-width in .daf-filters-carousel-wrapper and .daf-products-container
      - Default: 1400px (you can use 90%, 95%, 100%, etc.)
   
   2. COLUMNS PER ROW:
      Desktop:
        - Filters: grid-template-columns: repeat(7, 1fr) [line 52]
        - Products: grid-template-columns: repeat(6, 1fr) [line 188]
      
      Tablet (1024px):
        - Filters: grid-template-columns: repeat(5, 1fr) [line 560]
        - Products: grid-template-columns: repeat(4, 1fr) [line 565]
      
      Mobile (768px):
        - Filters: grid-template-columns: repeat(3, 1fr) [line 593]
        - Products: grid-template-columns: repeat(2, 1fr) [line 598]
   
   3. GAP BETWEEN ITEMS:
      - Filters: gap: 15px [line 54]
      - Products: gap: 20px [line 190]
   
   4. ARROW POSITION:
      - Arrows are positioned at the edges (left: 0 and right: 0)
      - Padding creates space: padding: 0 60px [line 44]
   
   ==================================================================== */



   /* This rule applies Mulish as the primary font for the entire page (body and all inherited elements).
    Crimson Pro is listed as a fallback that is a good *serif* option.
*/
body {
    /* The order is important: 
       1. Mulish (Primary Font)
       2. Crimson Pro (Fallback Serif Font)
       3. sans-serif (Universal Fallback for safety)
    */
    font-family: "Mulish", "Crimson Pro", sans-serif;
}


/* RECOMMENDED: Override the H1, H2, etc. to use the SERIF font for a stylish contrast.
    This creates the popular pairing of a serif heading and a sans-serif body.
*/
h1, h2, h3, h4, h5, h6 {
    /* Set the headings to the secondary font you uploaded */
    font-family: "Crimson Pro", serif;
    /* Headings are bold by default (700) */
    font-weight: 700; 
}


/* CSS Reset for Plugin Container */
.daf-filter-section,
.daf-filter-section * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.daf-filter-section {
    all: initial;
    display: block;
    box-sizing: border-box;
}

.daf-filter-section * {
    box-sizing: border-box;
}

/* Section Container */
.daf-filter-section {
    margin: 60px 0;
    padding: 0;
    font-family: mulish, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
}

/* Section Header */
.daf-section-header {
    margin-bottom: 40px;
    text-align: center;
}

.daf-section-title {
    font-size: 36px;
    font-weight: 700;
    margin: 0;
    color: #333;
    line-height: 1.2;
}

/* ====================================================================
   FILTERS CAROUSEL - HYBRID GRID + SLICK APPROACH
   ==================================================================== */

.daf-filters-carousel-wrapper {
    margin-bottom: 50px;
    position: relative;
    width: 100%;
    max-width: 1400px; /* CUSTOMIZE: Change to control total width (e.g., 90%, 1200px) */
    margin-left: auto;
    margin-right: auto;
    padding: 0; /* Space for arrows */
}

.daf-filters-carousel {
    margin: 0;
    width: 100%;
}

/* Grid Layout for Filters - Let Slick handle widths */
.daf-filters-carousel .slick-track {
    display: flex !important;
    align-items: stretch;
    padding: 20px 0;
    justify-content: center; /* Center items when less than slidesToShow */
    margin-left: auto !important;
    margin-right: auto !important;
}

.daf-filters-carousel .slick-list {
    overflow: hidden;
    margin: 0 -7.5px; /* Negative margin for gaps */
    padding: 0;
    width: 100%;
}

.daf-filter-slide {
    outline: none;
    box-sizing: border-box;
    height: auto;
    display: flex !important;
    padding: 0 7.5px; /* 15px total gap */
    flex-shrink: 0; /* Prevent shrinking */
}

/* Let Slick control width - remove manual percentage */

/* Filter Item */
.daf-filter-item {
    background: transparent;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    width: 100%;
}

.daf-filter-item:hover {
    outline: 5px solid #0B5B50;
    transform: scale(1.03);
    padding: 17px;
}

.daf-filter-item.active {
    outline: 5px solid #0B5B50;
    background: #ddf5f2;
    box-shadow: none;
    padding: 17px;
}

/* Filter Image */
.daf-filter-image {
    margin-bottom: 15px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.daf-filter-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    max-height: 120px;
    object-fit: contain;
    display: block;
}

/* Filter Name */
.daf-filter-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.daf-filter-item.active .daf-filter-name {
    color: #0B5B50;
}

/* ====================================================================
   FILTER CAROUSEL ARROWS
   ==================================================================== */

.daf-filters-carousel-wrapper .slick-arrow,
.daf-filters-carousel-wrapper .slick-prev,
.daf-filters-carousel-wrapper .slick-next {
    width: auto;
    height: auto;
    z-index: 10;
    background: #0B5B50;
    border: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 20px;
}

.daf-filters-carousel > .slick-prev {
  left: -25px;
}

.daf-filters-carousel > .slick-next {
  right: -25px;
}

.daf-filters-carousel-wrapper .slick-arrow:before,
.daf-filters-carousel-wrapper .slick-prev:before,
.daf-filters-carousel-wrapper .slick-next:before {
    font-size: 0;
    opacity: 0;
}

/* Chevron Icons */
.daf-filters-carousel-wrapper .slick-prev:after,
.daf-filters-carousel-wrapper .slick-next:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 16px;
    height: 16px;
    border-style: solid;
    border-color: white;
}

.daf-filters-carousel-wrapper .slick-prev:after {
    border-width: 0 0 4px 4px;
    margin-left: 3px;
}

.daf-filters-carousel-wrapper .slick-next:after {
    border-width: 4px 4px 0 0;
    margin-left: -3px;
}

.daf-filters-carousel-wrapper .slick-arrow:hover,
.daf-filters-carousel-wrapper .slick-prev:hover,
.daf-filters-carousel-wrapper .slick-next:hover {
    background: #094840;
}

.daf-filters-carousel-wrapper .slick-dots {
    display: none !important;
}

/* ====================================================================
   PRODUCTS CONTAINER
   ==================================================================== */

.daf-products-container {
    width: 100%;
    max-width: 1400px; /* CUSTOMIZE: Same as filters for consistency */
    margin-left: auto;
    margin-right: auto;
    padding: 0; /* Space for arrows */
    position: relative;
    margin-top: 50px;
    min-height: 300px;
}

.daf-products-wrapper {
    display: block;
}

/* Loading State */
.daf-loading {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.daf-spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0B5B50;
    border-radius: 50%;
    animation: daf-spin 1s linear infinite;
    margin-right: 12px;
    vertical-align: middle;
}

@keyframes daf-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ====================================================================
   PRODUCTS CAROUSEL - HYBRID FLEX + SLICK APPROACH
   ==================================================================== */

.daf-products-carousel {
    margin: 0;
    width: 100%;
}

/* Flex Layout for Products - Let Slick handle widths */
.daf-products-carousel .slick-track {
    display: flex !important;
    align-items: stretch;
    gap: 15px;
}

.daf-products-carousel .slick-list {
    overflow: hidden;
    margin: 0 -10px; /* Negative margin for gaps */
    padding: 0;
    width: 100%;
}

.daf-products-carousel .slick-slide {
    outline: none;
    box-sizing: border-box;
    height: auto;
    display: flex !important;
    padding: 0 8px 8px 10px; /* 20px total gap */
}

.daf-product-card.slick-slide.slick-active {
  min-height: 400px;
  height: 400px;
}
.daf-product-card.slick-slide {
  min-height: 400px;
  height: 400px;
}

/* Let Slick control width - remove manual percentage */

/* ====================================================================
   PRODUCT CAROUSEL ARROWS
   ==================================================================== */

.daf-products-carousel .slick-arrow,
.daf-products-carousel .slick-prev,
.daf-products-carousel .slick-next {
    width: auto;
    height: auto;
    z-index: 10;
    background: #0B5B50;
    border: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 20px;
}

.daf-products-carousel > .slick-prev {
  left: -15px;
}

.daf-products-carousel > .slick-next {
  right: -10px;
}

.daf-products-carousel .slick-arrow:before,
.daf-products-carousel .slick-prev:before,
.daf-products-carousel .slick-next:before {
    font-size: 0;
    opacity: 0;
}

/* Chevron Icons */
.daf-products-carousel .slick-prev:after,
.daf-products-carousel .slick-next:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 16px;
    height: 16px;
    border-style: solid;
    border-color: white;
}

.daf-products-carousel .slick-prev:after {
    border-width: 0 0 4px 4px;
    margin-left: 2px;
}

.daf-products-carousel .slick-next:after {
    border-width: 4px 4px 0 0;
    margin-left: -2px;
}

.daf-products-carousel .slick-arrow:hover,
.daf-products-carousel .slick-prev:hover,
.daf-products-carousel .slick-next:hover {
    background: #0B5B50;
}


.daf-products-carousel .slick-dots {
    display: none !important;
}

/* ====================================================================
   PRODUCT CARD - EQUAL HEIGHT
   ==================================================================== */

.daf-product-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 500px;
}



/* Product Image */
.daf-product-image {
    position: relative;
    overflow: hidden;
    background: #f9f9f9;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
}

.daf-product-image a {
    display: block;
    text-decoration: none;
    width: 100%;
    height: 100%;
}

.daf-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.daf-product-card:hover .daf-product-image img {
    transform: scale(1.1);
}

.daf-product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ff5252;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1;
}

/* Product Info */
.daf-product-info {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 15px;
}

/* Top Section */
.daf-product-top-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

/* Bottom Section */
.daf-product-bottom-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    margin-top: auto;
}

/* Benefit Tags */
.daf-benefit-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    justify-content: center;
}

.daf-benefit-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 400;
    font-family: 'Mulish', 'Crimson Pro', sans-serif;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #000;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Benefit Tag Colors */
.daf-benefit-tag[data-benefit="calm-spirit"],
.daf-benefit-tag[data-benefit="Calm Spirit"] {
    background-color: #67DFD0;
}

.daf-benefit-tag[data-benefit="discomfort-relief"],
.daf-benefit-tag[data-benefit="Discomfort Relief"] {
    background-color: #54D5C6;
}

.daf-benefit-tag[data-benefit="energy-boost"],
.daf-benefit-tag[data-benefit="Energy Boost"] {
    background-color: #F58F29;
}

.daf-benefit-tag[data-benefit="focus-productivity"],
.daf-benefit-tag[data-benefit="Focus & Productivity"],
.daf-benefit-tag[data-benefit="focus-&-productivity"] {
    background-color: #A0CF29;
}

.daf-benefit-tag[data-benefit="relaxed-body"],
.daf-benefit-tag[data-benefit="Relaxed Body"] {
    background-color: #3EAEDB;
}

.daf-benefit-tag:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

/* Product Title */
.daf-product-title {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    font-family: 'Mulish', sans-serif;
    line-height: 1.4;
    text-align: center;
    width: 100%;
}

.daf-product-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.daf-product-title a:hover {
    color: #0B5B50;
}

/* Product Price */
.daf-product-price {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Mulish', sans-serif;
    color: black;
    text-align: center;
    width: 100%;
}

.daf-product-price del {
    color: #999;
    font-weight: 400;
    font-size: 16px;
    margin-right: 8px;
    text-decoration: line-through;
}

.daf-product-price ins {
    text-decoration: none;
}

.daf-product-price .amount {
    font-weight: inherit;
}

/* Product Actions */
.daf-product-actions {
    width: 100%;
}

.daf-product-actions a.added_to_cart,
.daf-product-actions a.add_to_cart_button,
.daf-product-actions .button {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    padding: 10px 10px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-family: 'Mulish', sans-serif !important;
    transition: all 0.3s ease !important;
    background-color: #FFDE21 !important;
    color: black !important;
    border: none !important;
    text-decoration: none !important;
    font-size: 16px !important;
    cursor: pointer !important;
    box-shadow: none !important;
    margin: 0 !important;
}

.daf-product-actions a.added_to_cart:hover,
.daf-product-actions a.add_to_cart_button:hover,
.daf-product-actions .button:hover {
   scale: 1.02;
}

.daf-product-actions a.added_to_cart:before,
.daf-product-actions a.add_to_cart_button:before,
.daf-product-actions .button:before,
.daf-product-actions a.added_to_cart:after,
.daf-product-actions a.add_to_cart_button:after,
.daf-product-actions .button:after {
    display: none !important;
    content: none !important;
}

.daf-product-actions .button.loading {
    opacity: 0.7 !important;
    pointer-events: none !important;
}

/* No Products */
.daf-no-products {
    text-align: center;
    padding: 80px 20px;
    color: #666;
}

.daf-no-products p {
    font-size: 18px;
    margin: 0;
}

/* Error Message */
.daf-error-message {
    text-align: center;
    padding: 60px 20px;
    color: #f44336;
}

.daf-error-message p {
    font-size: 18px;
    margin: 0;
}
.daf-badge-right {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10;
}
.daf-badge-left {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 10;
}


/* ====================================================================
   RESPONSIVE DESIGN
   ==================================================================== */

/* Tablet - 1024px */
@media (max-width: 1024px) {
    .daf-section-title {
        font-size: 30px;
    }
    
    .daf-filters-carousel-wrapper,
    .daf-products-container {
        max-width: 1200px;
        padding: 0 50px;
    }
}

/* Mobile - 768px */
@media (max-width: 768px) {
    .daf-filter-section {
        margin: 40px 0;
        padding: 0;
    }
    
    .daf-section-header {
        margin-bottom: 30px;
    }
    
    .daf-section-title {
        font-size: 24px;
    }
    
    /* Smaller gaps on mobile */
    .daf-filter-slide {
        padding: 0 5px; /* 10px total gap */
    }
    
    
    .daf-filters-carousel .slick-list {
        margin: 0 -5px;
    }
    
    .daf-products-carousel .slick-list {
        margin: 0 -7.5px;
    }
    
    .daf-filters-carousel-wrapper {
        margin-bottom: 60px;
        padding: 0;
    }
    
    .daf-products-container {
        padding: 0;
    }
    
    /* Show dots on mobile for filters */
    .daf-filters-carousel-wrapper .slick-dots {
        display: block !important;
        bottom: -40px;
    }
    
    .daf-filters-carousel-wrapper .slick-dots li button:before {
        font-size: 12px;
        color: #0B5B50;
        opacity: 0.3;
    }
    
    .daf-filters-carousel-wrapper .slick-dots li.slick-active button:before {
        opacity: 1;
    }
    
    /* Hide filter arrows on mobile */
    .daf-filters-carousel-wrapper .slick-arrow {
        display: none !important;
    }
    
    /* Smaller product arrows on mobile */
    .daf-products-carousel .slick-arrow {
        width: 35px;
        height: 35px;
    }

    .daf-products-carousel > .slick-prev {
  left: -5px;
}

.daf-products-carousel > .slick-next {
  right: -5px;
}
    
    .daf-filter-item {
        padding: 15px;
        min-height: 150px;
    }
    
    .daf-filter-item:hover,
    .daf-filter-item.active {
        padding: 12px;
    }
    
    .daf-filter-image img {
        max-height: 80px;
    }
    
    .daf-filter-name {
        font-size: 13px;
    }
    
    .daf-products-container {
        margin-top: 40px;
    }
    
    .daf-product-card {
        min-height: 450px;
    }
    
    .daf-product-info {
        padding: 0;
    }
    
    .daf-product-title {
        font-size: 14px;
    }
    
    .daf-product-price {
        font-size: 18px;
    }
    /* Flex Layout for Products - Let Slick handle widths */
.daf-products-carousel .slick-track {
    display: flex !important;
    align-items: stretch;
    gap: 10px;
}
}

/* Small Mobile - 480px */
@media (max-width: 480px) {
    .daf-section-title {
        font-size: 20px;
    }
    
    .daf-filter-item {
        padding: 12px;
        min-height: 130px;
    }
    
    .daf-filter-item:hover,
    .daf-filter-item.active {
        padding: 9px;
    }
    
    .daf-filter-slide {
        padding: 0 4px; /* Smaller gap */
    }
    
    
    .daf-filters-carousel .slick-list {
        margin: 0 -4px;
    }
    
    .daf-products-carousel .slick-list {
        margin: 0 -6px;
    }
    
    
    
    .daf-product-card {
        min-height: 400px;
    }
    
    .daf-product-actions a.added_to_cart,
    .daf-product-actions a.add_to_cart_button,
    .daf-product-actions .button {
        padding: 10px 16px !important;
        font-size: 13px !important;
    }
}