/* Campaign Section Styling */
.campaign-section {
    padding: 2rem 0;
}

.campaign-header-wrapper {
    margin-bottom: 2.5rem;
}

.campaign-header-wrapper .section-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--snitch-blue), var(--snitch-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.campaign-header-wrapper .view-more-btn {
    background: linear-gradient(135deg, var(--snitch-blue), var(--snitch-indigo));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.2);
}

.campaign-header-wrapper .view-more-btn:hover {
    background: linear-gradient(135deg, var(--snitch-blue-light), var(--snitch-cyan));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.3);
}

.campaign-content-wrapper {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.95));
    backdrop-filter: blur(15px);
    border: 2px solid var(--snitch-silver);
    box-shadow: 0 10px 40px rgba(30, 58, 138, 0.1);
    position: relative;
}

.campaign-info {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--snitch-silver);
}

.campaign-title {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.campaign-subtitle {
    font-size: 1rem;
    color: var(--text-light);
}

.countdown-bar {
    background: linear-gradient(90deg, var(--snitch-indigo), var(--snitch-cyan));
    color: white;
    border-radius: 2rem;
    padding: 0.6rem 1.2rem;
    font-size: 1.1rem;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(79, 70, 229, 0.3);
    min-width: 200px;
    justify-content: center;
}

.countdown-bar i {
    font-size: 1.3rem;
    margin-left: 0.5rem; /* Adjust for RTL */
}

.countdown-block {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    padding: 0.3rem 0.6rem;
    min-width: 35px;
    text-align: center;
    margin: 0 0.2rem;
    display: inline-block;
}

/* Product Card Overrides for Campaign */
.campaign-section .ohana-product-card {
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--snitch-silver);
  overflow: hidden;
  transition: all 0.3s ease;
  max-width: 260px;
  margin: 0 auto;
  
}

.campaign-section .ohana-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(30, 58, 138, 0.15);
    border-color: var(--snitch-cyan);
}

.campaign-section .ohana-product-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    border-bottom: 1px solid var(--snitch-silver);
}

.campaign-section .product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.campaign-section .ohana-product-card:hover .product-img {
    transform: scale(1.08);
}

.campaign-section .product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(30, 58, 138, 0.2); /* Darker overlay */
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.campaign-section .ohana-product-card:hover .product-overlay {
    opacity: 1;
    pointer-events: all;
}

.campaign-section .product-actions {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.campaign-section .product-actions button {
    border: none;
    background: rgba(255, 255, 255, 0.5);
    color: var(--snitch-blue);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.campaign-section .product-actions button:hover {
    background: var(--snitch-blue);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.4);
}

.campaign-section .product-actions button.important {
    background: var(--snitch-cyan);
    color: white;
}

.campaign-section .product-actions button.important:hover {
    background: var(--snitch-blue-light);
}

.campaign-section .ohana-product-info {
    padding: 1.5rem;
    text-align: right;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.campaign-section .ohana-product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    max-height: 2.8em; /* Limit to 2 lines */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.campaign-section .product-discount {
    color: white;
    font-size: 0.85rem;
    background: linear-gradient(90deg, var(--snitch-indigo), var(--snitch-cyan));
    padding: 0.2rem 0.6rem;
    border-radius: 0.5rem;
    margin-right: 0.5rem; /* Adjust for RTL */
    font-weight: bold;
    box-shadow: 0 1px 5px rgba(79, 70, 229, 0.2);
}

.campaign-section .product-old {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-left: 0.5rem; /* Adjust for RTL */
}

.campaign-section .product-price {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--snitch-blue);
}

.campaign-section .product-price.discounted {
    color: var(--snitch-indigo);
}

.campaign-section .product-unit {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* SplideJS Customizations - Scoped to #campaign-splide */
#campaign-splide .splide__arrow {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--snitch-silver);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 1; /* Always visible */
}

#campaign-splide .splide__arrow svg {
    fill: var(--snitch-blue);
    width: 1.5rem;
    height: 1.5rem;
}

#campaign-splide .splide__arrow:hover {
    background: var(--snitch-blue);
    border-color: var(--snitch-blue);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.3);
}

#campaign-splide .splide__arrow:hover svg {
    fill: white;
}

/* RTL adjustments for arrows */
#campaign-splide .splide__arrow--prev {
    left: auto;
    right: -20px; /* Position on the right for RTL prev */
}

#campaign-splide .splide__arrow--next {
    right: auto;
    left: -20px; /* Position on the left for RTL next */
}

#campaign-splide .splide__pagination {
    bottom: -2rem; /* Adjust position below slider */
}

#campaign-splide .splide__pagination__page {
    background: var(--snitch-silver);
    width: 10px;
    height: 10px;
    margin: 0 5px;
    transition: all 0.3s ease;
}

#campaign-splide .splide__pagination__page.is-active {
    background: var(--snitch-indigo);
    transform: scale(1.2);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    #campaign-splide .splide__arrow--prev { right: -10px; }
    #campaign-splide .splide__arrow--next { left: -10px; }
}

@media (max-width: 992px) {
    .campaign-title {
        font-size: 1.8rem;
    }
    .countdown-bar {
        font-size: 1rem;
        padding: 0.5rem 1rem;
        min-width: 180px;
    }
    #campaign-splide .splide__arrow {
        width: 38px;
        height: 38px;
    }
    #campaign-splide .splide__arrow svg {
        width: 1.2rem;
        height: 1.2rem;
    }
    #campaign-splide .splide__arrow--prev { right: -5px; }
    #campaign-splide .splide__arrow--next { left: -5px; }
}

@media (max-width: 768px) {
    .campaign-header-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .campaign-header-wrapper .section-title {
        margin-bottom: 1rem;
    }
    .campaign-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .campaign-title {
        font-size: 1.6rem;
    }
    .campaign-subtitle {
        font-size: 0.9rem;
    }
    .countdown-bar {
        margin-top: 1rem;
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
        min-width: unset;
    }
    #campaign-splide .splide__arrow {
        display: none; /* Hide arrows on mobile, rely on swipe */
    }
    #campaign-splide .splide__pagination {
        bottom: -1.5rem;
    }
    .campaign-content-wrapper {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .campaign-content-wrapper {
        padding: 1rem;
    }
    .campaign-title {
        font-size: 1.4rem;
    }
    .campaign-section .ohana-product-title {
        font-size: 1rem;
    }
    .campaign-section .product-price {
        font-size: 1.2rem;
    }
    .campaign-section .product-discount {
        font-size: 0.75rem;
    }
}

/* --- Make campaign cards match blog card sizing --- */
#campaign-splide .splide__list,
#campaign-splide .splide__slide {
  height: 100%;
}

/* Keep image ratio identical to blog slider */
.campaign-section .ohana-product-image {
  aspect-ratio: 16/9;
  object-fit: cover; /* Ensure image fills the container properly */
}

/* Inner info padding should match blog card */
.campaign-section .ohana-product-info {
  padding: 1.5rem; /* Match blog card padding */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Campaign Slider Custom Styles */
#campaign-splide .splide__list,
#campaign-splide .splide__slide {
  height: 100%; /* Ensures the slide takes full height */
}

#campaign-splide .splide__list,
#campaign-splide .splide__slide {
  gap: 0; /* Removes the gap between the slides */
}

/* Optional: Add other styles to adjust the appearance */
#campaign-splide .splide__list {
  display: flex;
  flex-wrap: nowrap; /* Ensure the items are in a single line */
}

#campaign-splide .splide__slide {
  flex: 1; /* Ensures the slide takes full width */
}

