/*
Theme Name: Shoptimizer Child Theme
Theme URI: 
Description: Child theme of Shoptimizer
Author: CommerceGurus
Author URI: 
Template: shoptimizer
Version: 1.2.1
License:         	GNU General Public License v2 or later
License URI:     	http://www.gnu.org/licenses/gpl-2.0.html
*/

/**
 * Child Theme Custom Styles
 * Organized by section for easy maintenance
 */

/* ============================================================================
   PRODUCT GRID LAYOUT
   ========================================================================= */

/**
 * Mobile product grid - Force 2 columns on small screens
 * Applies to product archive pages with m-grid-1 class
 */
@media (max-width: 770px) {
  .m-grid-1 ul.products li.product {
    width: 50% !important;
    float: left;
  }
}

/**
 * Category/Subcategory grid - Force 3 columns layout
 * Makes subcategories match the product grid column count
 */
@media (min-width: 993px) {
  ul.products.subcategories li.product-category {
    width: 33.3053% !important;
  }
}


/* ============================================================================
   PAGINATION
   ========================================================================= */

/**
 * Hide top pagination on category pages
 * Keeps only the bottom pagination visible to reduce clutter
 */
.shoptimizer-sorting:not(.sorting-end) .woocommerce-pagination {
  display: none !important;
}


/* ============================================================================
   CUSTOM INPUT FIELDS (Product Pages)
   ========================================================================= */

/**
 * Custom input field wrapper styling
 * Provides visual separation and improved UX for custom product fields
 */
.custom-input-field-wrapper {
  margin-top: 0;
  padding: 10px 0;
  background: #f8f8f8;
  border-radius: 5px;
}

.custom-input-field-wrapper label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-size: 1rem;
  font-weight: bold;
}

.custom-input-field-wrapper input[type="number"] {
  width: 100%;
  max-width: none;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

/**
 * Focus state for custom input fields
 * Improves accessibility and user experience
 */
.custom-input-field-wrapper input[type="number"]:focus {
  border-color: #007cba;
  outline: none;
  box-shadow: 0 0 0 1px #007cba;
}


/* ============================================================================
   PRODUCT-SPECIFIC STYLES
   ========================================================================= */

/**
 * Custom "Add to Cart" button for product ID 7265
 * Black background with hover effect
 */
.postid-7265 .single_add_to_cart_button {
  background-color: #000000 !important;
  color: #ffffff !important;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.postid-7265 .single_add_to_cart_button:hover {
  background-color: #333333 !important;
  color: #ffffff !important;
}


/* ============================================================================
   CART & CHECKOUT STYLING
   ========================================================================= */

/**
 * Fee row styling in cart table
 * Highlights fees with green color for better visibility
 */
tr.fee {
  background-color: #f9f9f9 !important;
}

tr.fee th {
  color: #28a745 !important;
  font-weight: bold !important;
  padding: 10px !important;
}

tr.fee td {
  color: #28a745 !important;
  font-weight: bold !important;
  padding: 10px !important;
}

tr.fee span.woocommerce-Price-amount,
tr.fee .amount {
  color: #28a745 !important;
  font-weight: bold !important;
}

/**
 * Savings row styling
 * Used for displaying discount amounts
 */
.savings-row th,
.savings-row td {
  color: #3BB54A !important;
}

/**
 * ============================================================================
 * FONT LOADING OPTIMIZATION
 * Prevent flash of unstyled text (FOUT)
 * ============================================================================
 */

/**
 * Use system fonts as fallback during font loading
 * This prevents layout shift and provides instant text rendering
 */
body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, 
               Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/**
 * Optional: Force font-display swap on all @font-face declarations
 * Already set in your fonts, but this ensures it's applied
 */
@supports (font-display: swap) {
  @font-face {
    font-display: swap;
  }
}

/* Baby Bow Landing Page - WordPress Optimized CSS */
/* Only includes styles used in babybow-wordpress-content.html */

/* ========================================
   BASE STYLES
   ======================================== */

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

:root {
    --color-white: #FFFFFF;
    --color-pink: #FFB0B0;
    --color-gray: #ABABAB;
    --color-black: #2B2D38;
    --color-purple: #FFD09B;
    --color-cyan: #FFECC8;
    --color-orange: #FFB0B0;
    --color-yellow: #FFF7D1;
}

body {
    font-family: Poppins, sans-serif;
    background: #fafaf8;
    color: var(--color-black);
    overflow-x: hidden;
}

/* ========================================
   HERO CONTAINER
   ======================================== */

.hero-container {
    width: 100%;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* ========================================
   HERO CONTENT
   ======================================== */

.hero-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 96px 160px 64px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: center;
    position: relative;
}

.content-left {
    max-width: 784px;
}

.hero-title {
    font-family: Merriweather, serif;
    font-size: 80px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 32px;
    background: linear-gradient(135deg, #ffb0b0 0%, #ffd09b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 24px;
    line-height: 40px;
    color: var(--color-black);
    opacity: 0.7;
    margin-bottom: 48px;
    max-width: 648px;
}

.cta-section {
    display: flex;
    align-items: center;
    gap: 48px;
    margin-bottom: 80px;
}

.btn-primary {
    background: var(--color-pink);
    color: var(--color-white);
    border: none;
    padding: 18px 68px;
    font-size: 18px;
    font-weight: 400;
    border-radius: 16px 16px 16px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: #ff9999;
    transform: translateY(-2px);
    box-shadow: 0 30px 60px rgba(255, 176, 176, 0.4);
}

/* ========================================
   IMAGE GRID
   ======================================== */

.content-right {
    position: relative;
    height: 781px;
    width: 789px;
}

.image-grid {
    position: relative;
    width: 100%;
    height: 100%;
}

.ellipse {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.ellipse-1 {
    width: 1102px;
    height: 1102px;
    background: radial-gradient(circle, rgba(255, 208, 155, 0.2) 0%, transparent 70%);
    left: 0;
    top: 89px;
}

.ellipse-2 {
    width: 850px;
    height: 850px;
    background: radial-gradient(circle, rgba(255, 176, 176, 0.15) 0%, transparent 70%);
    left: 246px;
    top: 366px;
}

.image-card {
    position: absolute;
    border-radius: 90px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

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

.card-1 {
    width: 240px;
    height: 240px;
    background: var(--color-cyan);
    left: 277px;
    top: 0;
}

.card-2 {
    width: 240px;
    height: 509px;
    background: var(--color-purple);
    left: 5px;
    top: 0;
}

.card-3 {
    width: 240px;
    height: 240px;
    background: var(--color-pink);
    left: 5px;
    top: 541px;
}

.card-4 {
    width: 240px;
    height: 509px;
    background: var(--color-orange);
    left: 277px;
    top: 272px;
}

.card-5 {
    width: 240px;
    height: 509px;
    background: var(--color-yellow);
    left: 549px;
    top: 136px;
}

/* ========================================
   SECTION TITLE
   ======================================== */

.section-title {
    font-family: Merriweather, serif;
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #ffb0b0 0%, #ffd09b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   FILTER CARDS SECTION
   ======================================== */

.filter-section {
    max-width: 1600px;
    margin: 80px auto 120px;
    padding: 0 80px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1600px;
    width: 100%;
}

.filter-card {
    list-style: none;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
}

.filter-card:before {
    content: '';
    display: block;
    padding-bottom: 140%;
    width: 100%;
}

.filter-card__background {
    background-size: cover;
    background-position: center;
    border-radius: 24px;
    bottom: 0;
    filter: brightness(0.85) saturate(1.1) contrast(0.9);
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transform-origin: center;
    transform: scale(1) translateZ(0);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.filter-card:hover .filter-card__background {
    transform: scale(1.05) translateZ(0);
    filter: brightness(0.95) saturate(1.2) contrast(1);
}

.filter-grid:hover > .filter-card:not(:hover) .filter-card__background {
    filter: brightness(0.6) saturate(0.5) contrast(1.1) blur(8px);
}

.filter-card__content {
    left: 0;
    padding: 20px;
    position: absolute;
    top: 0;
}

.filter-card__category {
    color: rgba(255, 255, 255, 0.8);
    font-family: Poppins, sans-serif;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.filter-card__heading {
    color: white;
    font-family: Merriweather, serif;
    font-size: 24px;
    font-weight: 700;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    line-height: 1.3;
}

.filter-card__button {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--color-black);
    border: none;
    padding: 10px 24px;
    font-family: Poppins, sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    display: inline-block;
}

.filter-card:hover .filter-card__button {
    opacity: 1;
}

.filter-card__button:hover {
    background-color: var(--color-pink);
    color: white;
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 6px 16px rgba(255, 176, 176, 0.4);
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */

.testimonials-section {
    max-width: 1600px;
    margin: 80px auto 120px;
    padding: 0 80px;
}

input[type="radio"][name="testimonial-slider"] {
    display: none;
}

.testimonials-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding: 40px 0;
}

.testimonial-cards {
    position: relative;
    width: 100%;
    height: 500px;
    margin-bottom: 20px;
}

.testimonial-card {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    right: 0;
    margin: auto;
    transition: transform 0.4s ease, opacity 0.4s ease;
    cursor: pointer;
}

.testimonial-content {
    background: white;
    border-radius: 24px;
    padding: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.testimonial-card:hover .testimonial-content {
    box-shadow: 0 12px 48px rgba(255, 176, 176, 0.2);
}

.testimonial-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--color-pink);
    flex-shrink: 0;
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-text {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stars {
    color: gold;
    font-size: 24px;
    margin-bottom: 16px;
    letter-spacing: 4px;
}

.testimonial-quote {
    font-size: 18px;
    line-height: 1.7;
    color: var(--color-black);
    opacity: 0.8;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-name {
    font-family: Merriweather, serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 4px;
}

.testimonial-location {
    font-size: 14px;
    color: var(--color-gray);
}

/* Testimonial Slider States */
#testimonial-1:checked ~ .testimonial-cards #review-5,
#testimonial-2:checked ~ .testimonial-cards #review-1,
#testimonial-3:checked ~ .testimonial-cards #review-2,
#testimonial-4:checked ~ .testimonial-cards #review-3,
#testimonial-5:checked ~ .testimonial-cards #review-4 {
    transform: translateX(-50%) scale(0.85);
    opacity: 0.3;
    z-index: 0;
}

#testimonial-1:checked ~ .testimonial-cards #review-2,
#testimonial-2:checked ~ .testimonial-cards #review-3,
#testimonial-3:checked ~ .testimonial-cards #review-4,
#testimonial-4:checked ~ .testimonial-cards #review-5,
#testimonial-5:checked ~ .testimonial-cards #review-1 {
    transform: translateX(50%) scale(0.85);
    opacity: 0.3;
    z-index: 0;
}

#testimonial-1:checked ~ .testimonial-cards #review-1,
#testimonial-2:checked ~ .testimonial-cards #review-2,
#testimonial-3:checked ~ .testimonial-cards #review-3,
#testimonial-4:checked ~ .testimonial-cards #review-4,
#testimonial-5:checked ~ .testimonial-cards #review-5 {
    transform: translateX(0) scale(1);
    opacity: 1;
    z-index: 1;
}

/* Testimonial Navigation */
.testimonial-navigation {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
}

.testimonial-nav-arrow {
    pointer-events: all;
    cursor: pointer;
    background: linear-gradient(135deg, #ffb0b0 0%, #ffd09b 100%);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(255, 176, 176, 0.3);
}

.testimonial-nav-arrow svg {
    color: white;
}

.testimonial-nav-arrow:hover {
    background: linear-gradient(135deg, #ff9999 0%, #ffbe7d 100%);
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(255, 176, 176, 0.5);
}

.testimonial-nav-arrow-left {
    margin-right: auto;
}

.testimonial-nav-arrow-right {
    margin-left: auto;
}

#testimonial-1:checked ~ .testimonial-navigation #testimonial-nav-left-1,
#testimonial-1:checked ~ .testimonial-navigation #testimonial-nav-right-1 {
    display: flex;
}

#testimonial-2:checked ~ .testimonial-navigation #testimonial-nav-left-2,
#testimonial-2:checked ~ .testimonial-navigation #testimonial-nav-right-2 {
    display: flex;
}

#testimonial-3:checked ~ .testimonial-navigation #testimonial-nav-left-3,
#testimonial-3:checked ~ .testimonial-navigation #testimonial-nav-right-3 {
    display: flex;
}

#testimonial-4:checked ~ .testimonial-navigation #testimonial-nav-left-4,
#testimonial-4:checked ~ .testimonial-navigation #testimonial-nav-right-4 {
    display: flex;
}

#testimonial-5:checked ~ .testimonial-navigation #testimonial-nav-left-5,
#testimonial-5:checked ~ .testimonial-navigation #testimonial-nav-right-5 {
    display: flex;
}

/* ========================================
   FEATURED PRODUCTS SECTION
   ======================================== */

.featured-section {
    max-width: 1600px;
    margin: 80px auto 120px;
    padding: 0 80px;
}

.products-container {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card .product-price {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.product-card .product-price .original-price {
    color: #999;
    text-decoration: line-through;
    font-size: 14px;
}

.product-card .product-price .discount-price {
    color: var(--color-pink);
    font-size: 20px;
    font-weight: 700;
}

.product-card .product-content {
    padding: 16px 12px;
}

.product-card .product-content h3 {
    font-family: Poppins, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 6px;
}

.product-card .product-content p {
    margin: 0 0 8px;
    color: #565656;
    font-size: 13px;
    line-height: 1.4;
}

.product-card-inner {
    position: relative;
    width: 100%;
    height: 300px;
    background: var(--clr);
    border-radius: 20px;
    border-bottom-right-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card:hover .product-card-inner {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.product-card-inner .product-box {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 20px;
    overflow: hidden;
}

.product-card-inner .product-box .product-imgBox {
    position: absolute;
    inset: 0;
}

.product-card-inner .product-box .product-imgBox img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-inner .product-box .product-icon {
    position: absolute;
    bottom: -6px;
    right: -6px;
    width: 80px;
    height: 80px;
    background: var(--clr);
    border-top-left-radius: 50%;
}

.product-card-inner .product-box .product-icon:hover .product-iconBox {
    transform: scale(1.1);
}

.product-card-inner .product-box .product-icon::before {
    position: absolute;
    content: "";
    bottom: 6px;
    left: -20px;
    background: transparent;
    width: 20px;
    height: 20px;
    border-bottom-right-radius: 20px;
    box-shadow: 5px 5px 0 5px white;
}

.product-card-inner .product-box .product-icon::after {
    position: absolute;
    content: "";
    top: -20px;
    right: 6px;
    background: transparent;
    width: 20px;
    height: 20px;
    border-bottom-right-radius: 20px;
    box-shadow: 5px 5px 0 5px var(--clr);
}

.product-card-inner .product-box .product-icon .product-iconBox {
    position: absolute;
    inset: 10px;
    background: var(--clr);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
    cursor: pointer;
}

.product-card-inner .product-box .product-icon .product-iconBox span {
    color: var(--color-black);
    font-size: 24px;
    font-weight: 700;
}

.view-all-container {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

.btn-view-all {
    background: linear-gradient(135deg, #ffb0b0 0%, #ffd09b 100%);
    color: white;
    border: none;
    padding: 16px 48px;
    font-family: Poppins, sans-serif;
    font-size: 16px;
    font-weight: 600;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(255, 176, 176, 0.3);
    text-decoration: none;
    display: inline-block;
}

.btn-view-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 176, 176, 0.4);
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

@media (max-width: 1440px) {
    .hero-content {
        padding-left: 80px;
        padding-right: 80px;
    }

    .hero-title {
        font-size: 64px;
    }

    .hero-description {
        font-size: 20px;
        line-height: 36px;
    }
}

@media (max-width: 1200px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .content-right {
        height: 500px;
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }

    /* Scale ellipses proportionally */
    .ellipse-1 {
        width: 700px;
        height: 700px;
        left: -100px;
        top: 50px;
    }

    .ellipse-2 {
        width: 550px;
        height: 550px;
        left: 150px;
        top: 200px;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 60px 40px 80px;
    }

    .content-right {
        order: 1;
    }

    .content-left {
        order: 0;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-description {
        font-size: 18px;
        line-height: 32px;
        margin-bottom: 40px;
    }

    .cta-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        margin-bottom: 40px;
    }

    .btn-primary {
        width: 100%;
        min-height: 48px;
        padding: 18px 48px;
    }

    .content-right {
        height: 450px;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .image-grid {
        width: 100%;
        height: 100%;
        position: relative;
        transform: none;
    }

    /* Adjust ellipses for tablet */
    .ellipse-1 {
        width: 500px;
        height: 500px;
        left: -50px;
        top: 30px;
    }

    .ellipse-2 {
        width: 400px;
        height: 400px;
        left: 100px;
        top: 150px;
    }

    /* Reposition cards using consistent positioning */
    .card-1 {
        width: 180px;
        height: 180px;
        left: 207px;
        top: 0;
    }

    .card-2 {
        width: 180px;
        height: 380px;
        left: 5px;
        top: 0;
    }

    .card-3 {
        width: 180px;
        height: 180px;
        left: 5px;
        top: 408px;
    }

    .card-4 {
        width: 180px;
        height: 380px;
        left: 207px;
        top: 208px;
    }

    .card-5 {
        width: 180px;
        height: 380px;
        left: 409px;
        top: 104px;
    }

    /* Filter Section */
    .filter-section {
        padding: 0 24px;
        margin: 48px auto 80px;
    }

    .filter-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .filter-card__content {
        padding: 16px;
    }

    .filter-card__category {
        font-size: 10px;
        margin-bottom: 6px;
    }

    .filter-card__heading {
        font-size: 18px;
    }

    .filter-card__button {
        bottom: 16px;
        padding: 8px 20px;
        font-size: 11px;
    }

    /* Testimonials Section */
    .testimonials-section {
        padding: 0 24px;
        margin: 24px auto 80px;
    }

    .testimonial-cards {
        height: 520px;
    }

    .testimonial-content {
        padding: 16px;
        gap: 8px;
    }

    .testimonial-image {
        width: 100px;
        height: 100px;
    }

    .stars {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .testimonial-quote {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .testimonial-name {
        font-size: 18px;
    }

    .testimonial-location {
        font-size: 13px;
    }

    .testimonial-nav-arrow {
        width: 48px;
        height: 48px;
    }

    .testimonial-nav-arrow svg {
        width: 32px;
        height: 32px;
    }

    /* Reduce side card offset on tablet */
    #testimonial-1:checked ~ .testimonial-cards #review-5,
    #testimonial-2:checked ~ .testimonial-cards #review-1,
    #testimonial-3:checked ~ .testimonial-cards #review-2,
    #testimonial-4:checked ~ .testimonial-cards #review-3,
    #testimonial-5:checked ~ .testimonial-cards #review-4 {
        transform: translateX(-35%) scale(0.8);
    }

    #testimonial-1:checked ~ .testimonial-cards #review-2,
    #testimonial-2:checked ~ .testimonial-cards #review-3,
    #testimonial-3:checked ~ .testimonial-cards #review-4,
    #testimonial-4:checked ~ .testimonial-cards #review-5,
    #testimonial-5:checked ~ .testimonial-cards #review-1 {
        transform: translateX(35%) scale(0.8);
    }

    /* Products Section */
    .featured-section {
        padding: 0 24px;
        margin: 48px auto 80px;
    }

    .products-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-top: 24px;
    }

    .product-card-inner {
        height: 240px;
    }

    .product-card .product-content {
        padding: 12px 10px;
    }

    .product-card .product-content h3 {
        font-size: 16px;
    }

    .product-card .product-content p {
        font-size: 12px;
    }

    .product-card .product-price .discount-price {
        font-size: 18px;
    }

    .product-card .product-price .original-price {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 40px 24px 60px;
    }

    .hero-title {
        font-size: 36px;
        margin-bottom: 24px;
    }

    .hero-description {
        font-size: 16px;
        line-height: 28px;
        margin-bottom: 32px;
    }

    .cta-section {
        margin-bottom: 8px;
    }

    .btn-primary {
        width: 100%;
        padding: 16px 32px;
        font-size: 16px;
        min-height: 48px;
    }

    .content-right {
        height: 380px;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .image-grid {
        width: 100%;
        height: 100%;
        position: relative;
        transform: none;
    }

    /* Compact ellipses for mobile */
    .ellipse-1 {
        width: 350px;
        height: 350px;
        left: -30px;
        top: 20px;
    }

    .ellipse-2 {
        width: 280px;
        height: 280px;
        left: 70px;
        top: 100px;
    }

    /* Cards now use percentage-based sizing to fill container */
    .card-1 {
        width: 28%;
        height: 30%;
        left: 35%;
        top: 0;
    }

    .card-2 {
        width: 28%;
        height: 63%;
        left: 1%;
        top: 0;
    }

    .card-3 {
        width: 28%;
        height: 30%;
        left: 1%;
        top: 68%;
    }

    .card-4 {
        width: 28%;
        height: 63%;
        left: 35%;
        top: 34%;
    }

    .card-5 {
        width: 28%;
        height: 63%;
        left: 69%;
        top: 17%;
    }

    /* Filter Section */
    .filter-section {
        padding: 0 16px;
        margin: 40px auto 60px;
    }

    .filter-grid {
        gap: 10px;
    }

    .filter-card__content {
        padding: 14px;
    }

    .filter-card__category {
        font-size: 9px;
    }

    .filter-card__heading {
        font-size: 16px;
    }

    .filter-card__button {
        bottom: 14px;
        padding: 7px 16px;
        font-size: 10px;
    }

    /* Testimonials Section */
    .testimonials-section {
        padding: 0 16px;
        margin: 40px auto 60px;
    }

    .testimonials-container {
        max-width: 100%;
        aspect-ratio: 1 / 1;
        padding: 0;
    }

    .testimonial-cards {
        height: 100%;
        aspect-ratio: 1 / 1;
    }

    .testimonial-content {
        padding: 24px;
        gap: 0px;
    }

    .testimonial-image {
        width: 132px;
        height: 132px;
        border-width: 3px;
        margin-top: 24px;
    }

    .stars {
        font-size: 16px;
        letter-spacing: 2px;
        margin-bottom: 4px;
    }

    .testimonial-quote {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 12px;
    }

    .testimonial-name {
        font-size: 15px;
    }

    .testimonial-location {
        font-size: 11px;
    }

    .testimonial-nav-arrow {
        width: 40px;
        height: 40px;
    }

    .testimonial-nav-arrow svg {
        width: 28px;
        height: 28px;
    }

    .testimonial-navigation {
        padding: 0 10px;
    }

    /* Hide side cards on mobile, show only active */
    #testimonial-1:checked ~ .testimonial-cards #review-5,
    #testimonial-2:checked ~ .testimonial-cards #review-1,
    #testimonial-3:checked ~ .testimonial-cards #review-2,
    #testimonial-4:checked ~ .testimonial-cards #review-3,
    #testimonial-5:checked ~ .testimonial-cards #review-4,
    #testimonial-1:checked ~ .testimonial-cards #review-2,
    #testimonial-2:checked ~ .testimonial-cards #review-3,
    #testimonial-3:checked ~ .testimonial-cards #review-4,
    #testimonial-4:checked ~ .testimonial-cards #review-5,
    #testimonial-5:checked ~ .testimonial-cards #review-1 {
        opacity: 0;
        pointer-events: none;
    }

    /* Products Section */
    .featured-section {
        padding: 0 16px;
        margin: 40px auto 60px;
    }

    .products-container {
        gap: 10px;
    }

    .product-card-inner {
        height: 200px;
    }

    .product-card .product-content h3 {
        font-size: 15px;
    }

    .product-card .product-content p {
        font-size: 11px;
    }

    .product-card .product-price .discount-price {
        font-size: 16px;
    }
}

