/* Custom Homepage Styles */

/* overriding page left/right padding to make accessory-item visible */
.has-global-padding {
    padding-right: 4.5rem;
    padding-left: 4.5rem;
}

/* General Container */
.homepage-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Section */
.hero-section {
    position: relative;
    margin-bottom: 6rem;
}

.hero-background {
    position: absolute;
    right: 0;
    left: -7%;
    top: 20%;
    height: 70%;
    width: 90%;
    background-color: #F2F7FF;
    opacity: 0.7;
    z-index: -20;
    border-radius: 16px;
}

.hero-background-right{
    position: absolute;
    left: 55%;
    top: 20%;
    height: 70%;
    width: 45%;
    background-color: #EDE9FE;
    opacity: 0.3;
    filter: blur(20px);
    z-index: -10;
    border-radius: 50%;
}

.create-art-background{
    position: absolute;
    left: 50%;
    top: -7%;
    height: 55%;
    width: 40%;
    background-color: #C0DAE5;
    opacity: 0.2;
    filter: blur(40px);
    z-index: -10;
    border-radius: 50%;
}

.gradient-blob {
    position: absolute;
    top: -10%; /* Use percentage instead of fixed pixels */
    right: -5%; /* Use percentage instead of fixed pixels */
    width: 30%; /* Make width responsive */
    height: 0; /* Set height to 0 */
    padding-bottom: 30%; /* Create aspect ratio with padding */
    border-radius: 50%;
    background-color: #C0DAE5;
    filter: blur(50px);
    opacity: 0.25;
    z-index: -1;
    max-width: 500px; /* Add maximum width */
    max-height: 500px; /* Add maximum height */
}

.hero-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
    min-width: 200px;
}

.hero-text h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--wp--preset--color--contrast);
    line-height: 1.2;
    font-weight: 500;
}

.hero-text p {
    font-family: var(--font-body);
    font-size: 1.125rem;
    margin-bottom: 30px;
    color: #4a5568;
    line-height: 1.6;
}

.hero-image {
    display: flex;
    justify-content: center;
    position: relative;

    flex: 1; /* Allow it to grow and shrink */
    min-width: 280px; 
}

.main-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Advanced Image Comparison with Frame */
.image-compare-container {
    position: relative;
    width: max-content; /* Container will be sized to its content */
    max-width: 100%; /* But never wider than its parent */
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.3);
}

/* Simple fix: Hide auto-animate after images by default */
.image-compare-container[data-auto-animate] .canvas-after {
    opacity: 0;
}

.image-compare-container[data-auto-animate] .slider-handle {
    left: 0%;
}

.image-compare-container[data-auto-animate] .slider-line {
    left: 0%;
}

/* Frame image (bottom layer) */
.frame-image {
    display: block;
    width: auto; /* Use original width */
    height: auto; /* Maintain aspect ratio */
    max-width: 100%; /* Allow shrinking on small screens */
}

.hero-frame {
    max-width: 460px;
    width: 100%;
    height: auto;
}

/* Canvas area (where the before/after images and slider appear) */
.canvas-area {
    position: absolute;
    top: 4.8%;  
    left: 4.7%;
    width: 90.6%;
    height: 90.65%;
    overflow: hidden;
}

/* Styles for both canvas images */
.canvas-after,
.canvas-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Before image (original) - bottom layer, shows on right side */
.canvas-before {
    z-index: 1;
    /* No clipping - this image fills the entire area and shows on the right */
}

/* After image (AI transformed) - top layer, shows on left side with clipping */
.canvas-after {
    z-index: 2;
    clip-path: inset(0 38% 0 0); /* Default position for non-auto-animate */
}

/* Slider handle constrained to canvas */
.slider-handle {
    position: absolute;
    top: 0;
    left: 62%; /* Default position for non-auto-animate */
    width: 40px;
    height: 100%;
    transform: translateX(-50%);
    cursor: ew-resize;
    z-index: 10;
}

.handle-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    background-color: var(--btn-bck);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.handle-icon svg {
    width: 30px;
    height: 30px;
    stroke: white;
}

/*
.handle-icon svg:first-child {
    margin-right: -3px;
}

.handle-icon svg:last-child {
    margin-left: -3px;
}
*/

.slider-line {
    position: absolute;
    top: 0;
    left: 62%; /* Default position for non-auto-animate */
    width: 2px;
    height: 100%;
    background-color: var(--btn-bck);
    transform: translateX(-50%);
    z-index: 5;
}

/* Ensure the comparison container takes the place of the main image */
.hero-image .image-compare-container {
    width: 100%;
}

.single-hero-image {
    width: 100%;
    max-width: 550px;
    height: auto;
    display: block;
}

.AI-transform-badge {
    position: absolute;
    bottom: 8%;
    left: 8%;
    background-color: #D5FAFC;
    color: #1DB5BE;
    border-radius: 2em;
    padding: 0.4em 1em;
    display: flex;
    align-items: center;
    gap: 0.6em;
    font-size: 1.1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 2;
}

.ai-icon {
    width: 2.25em;
    height: 2.25em;
    transition: all 0.3s ease;
}


.cta_btn {
    display: inline-block;
    background-color: var(--btn-bck);
    color: white;
    padding: 14px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: background-color 0.3s;
    text-align: center;
}



.shop-now-btn:hover {
    background-color: var(--btn-hover);
    color: white;
}

/* Product Categories */
.product-categories {
    margin-bottom: 6rem;
}

.product-categories h2 {
    font-family: var(--font-heading);
    font-weight: normal;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #111827;
}

.category-grid {
    display: flex;
    flex-wrap: nowrap; /* STRICT: No wrapping on larger screens */
    gap: 1rem;
    justify-content: center;
    align-items: stretch;
    overflow-x: auto; /* Allow horizontal scroll as fallback if needed */
    padding: 0 10px; /* Small padding to prevent edge cutoff */
}

/* Hide scrollbar but keep functionality */
.category-grid::-webkit-scrollbar {
    display: none;
}
.category-grid {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.category-item {
    text-align: center;
    text-decoration: none;
    transition: transform 0.3s;
    background-color: #F9FAFB;
    padding: 1rem 0.5rem;
    border-radius: 16px;
    flex: 1 1 0; /* Equal distribution, can shrink to 0 */
    min-width: 0; /* Allow extreme shrinking */
    width: calc(100% / 7); /* Force equal width for all 7 items */
}

.category-item:hover {
    transform: translateY(-5px);
}

.category-image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.category-image img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.category-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

/* Create Art Section */
.create-art-section {
    margin-bottom: 6rem;
    position: relative;
}

.create-art-section h2,
.product-showcase h2 {
    font-family: var(--font-heading);
    font-weight: normal;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 15px;
    color: #111827;
}

.section-subtitle {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 20px;
    color: #4a5568;
    font-size: 1.125rem;
    line-height: 1.6;
}

.process-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    background-color: #f6f9ff;
    border-radius: 16px;
    padding: 1rem 2rem;
}

.process-image {
    flex: 2.2;
    min-width: 200px;
    max-width: 100%; /* Add max-width to ensure it doesn't overflow */
}

/* Process section image comparison container */
.process-compare-container {
    width: 100%;
    max-width: 800px;
    height: auto;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 0%;
}

.process-compare-container .frame-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
}

.process-compare-container .canvas-area {
    position: absolute;
    top: 3.7%;
    left: 2.5%;
    width: 95%;
    height: 92.5%;
    overflow: hidden;
}

/* CSS for style samples with horizontal scrolling */
.style-samples {
    display: flex;
    width: 100%;
    overflow-x: auto; /* Enable horizontal scrolling */
    gap: 20px;
    padding-bottom: 8px; /* Space for scrollbar */
    padding-top: 3px; /* Add padding to accommodate the upward movement */
}

/* Make scrollbar less obtrusive */
.style-samples::-webkit-scrollbar {
    height: 6px;
}

.style-samples::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.style-samples::-webkit-scrollbar-thumb {
    background: #c4c4c4;
    border-radius: 4px;
}

/* Style sample item */
.style-sample {
    flex: 0 0 auto; /* Don't grow or shrink */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

/* Style sample styling */
.style-sample {
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    position: relative;
}

.style-sample:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.style-sample.active {
    position: relative;
}

.style-sample.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--btn-bck);
    border-radius: 50%;
}

.style-sample.active img {
    border: 2px solid var(--btn-bck);
}

.style-sample img {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
}

.style-sample span {
    font-size: 0.75rem;
    color: #4a5568;
    white-space: nowrap; /* Prevent text wrapping */
}

/* Add these styles to your homepage.css file */

/* Call-to-Action Style Sample */
.style-sample-cta {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.style-sample-cta:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.cta-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--btn-bck), var(--btn-hover));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.cta-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

.cta-placeholder svg {
    color: white;
    z-index: 1;
}

.style-sample-cta span {
    color: var(--btn-bck);
    font-weight: 500;
    font-size: 0.75rem;
    white-space: nowrap;
}

.style-sample-cta:hover span {
    color: var(--btn-hover);
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.process-steps {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.process-step {
    display: flex;
    align-items: center;
    gap: 20px;
}

.step-number {
    font-family: var(--font-heading);
    color: #111827;
    font-size: 3rem;
    
}

.step-text {
    font-family: var(--font-body);
    font-size: 1.125rem;
    color: #111827;
}


.get-started-btn {
    margin-top: 20px;
    width: auto;
    max-width: fit-content;
    align-self: flex-end;
}

.get-started-btn:hover {
    background-color: #188f97;
    color: white;
}

/* Product Showcase / Best Sellers Carousel */
.product-showcase {
    margin-bottom: 60px;
    position: relative;
}

.product-showcase-background{
    position: absolute;
    left: 10%;
    top: -30%;
    height: 80%;
    width: 50%;
    background-color: #EDE9FE;
    opacity: 0.5;
    filter: blur(40px);
    z-index: -10;
    border-radius: 50%;
}

/* Best Sellers Carousel Container */
.bestsellers-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

/* Carousel Arrows */
.carousel-arrow {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid #E5E7EB;
    background: white;
    color: #6B7280;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 2;
    
    /* Keep space even when hidden */
    visibility: visible;
    opacity: 1;
}

.carousel-arrow:hover {
    border-color: var(--btn-bck);
    color: var(--btn-bck);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #E5E7EB;
    color: #9CA3AF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Hidden state - use visibility and opacity instead of display */
.carousel-arrow.hidden {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.carousel-arrow svg {
    transition: transform 0.3s ease;
}

.carousel-arrow:hover:not(:disabled):not(.hidden) svg {
    transform: scale(1.1);
}

/* Main Carousel Container */
.bestsellers-carousel {
    flex: 1;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
}

/* Carousel Track */
.bestsellers-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 20px;
}

/* Individual Bestseller Item */
.bestseller-item {
    flex: 0 0 calc(25% - 15px); /* Show 4 items, accounting for gap */
    min-width: 0; /* Allow shrinking */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    box-shadow: none;
}

.bestseller-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.bestseller-item .product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Product Image Container */
.bestseller-item .product-image {
    position: relative;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    background-color: #F9FAFB;
    overflow: hidden;
}

.bestseller-item .product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Image hover functionality */
.bestseller-item .product-image .primary-image {
    transition: opacity 0.2s ease;
    z-index: 2;
}

.bestseller-item .product-image .hover-image {
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 1;
}

/* Show hover image on product hover (only for products with listing images) */
.bestseller-item.has-hover-image:hover .primary-image {
    opacity: 0;
}

.bestseller-item.has-hover-image:hover .hover-image {
    opacity: 1;
}

/* Product Info Section */
.bestseller-item .product-info {
    padding: 1rem 0.75rem;
    text-align: left;
}

.bestseller-item .product-title {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1F2937;
    line-height: 1.2;
    
    /* Single line with ellipsis */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    
    /* Remove the multi-line clamp properties */
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
}

.bestseller-item .product-title:hover {
    text-decoration: underline;
}

/* Product Rating Styles */
.bestseller-item .product-rating {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 0.5rem;
    gap: 0.3rem;
}

.bestseller-item .product-rating-stars {
    font-size: 14px;
    line-height: 1;
    flex-shrink: 0;
}

.bestseller-item .product-rating-stars .star {
    color: #ddd;
    margin: 0 1px;
}

.bestseller-item .product-rating-stars .star.full {
    color: #ffc107;
}

.bestseller-item .product-rating-stars .star.half {
    background: linear-gradient(90deg, #ffc107 50%, #ddd 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bestseller-item .product-review-count {
    color: #666;
    font-size: 0.75rem;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Product Price */
.bestseller-item .product-price {
    color: #1F2937;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Carousel Pagination Dots */
.carousel-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background-color: #D1D5DB;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.pagination-dot:hover {
    background-color: #9CA3AF;
    transform: scale(1.1);
}

.pagination-dot.active {
    background-color: var(--btn-bck);
    transform: scale(1.2);
}

/* Legacy showcase grid styles for fallback */
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4rem;
    margin-bottom: 30px;
}

.showcase-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    line-height: 0; /* Removes any potential spacing from line-height */
    font-size: 0; /* Removes spacing caused by inline-block behavior */
  }

.showcase-item img {
    width: auto;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 10px;
    transition: transform 0.3s;
}

.showcase-item img:hover {
    transform: scale(1.05);
}

.showcase-cta {
    text-align: center;
    margin-top: 30px;
}

/* FAQs Section */
.faqs-section {
    margin-bottom: 6rem;
}

.faqs-section h2 {
    font-family: var(--font-heading);
    font-weight: normal;
    font-size: 2rem;
    margin-bottom: 30px;
    color: #111827;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 15px;
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.faq-icon {
    width: 24px;
    height: 24px;
    position: relative;
}

.faq-icon:before,
.faq-icon:after {
    content: '';
    position: absolute;
    background-color: var(--btn-bck);
    transition: transform 0.3s;
}

.faq-icon:before {
    top: 11px;
    left: 0;
    width: 24px;
    height: 2px;
}

.faq-icon:after {
    top: 0;
    left: 11px;
    width: 2px;
    height: 24px;
    transform: rotate(0);
}

.faq-icon.active:after {
    transform: rotate(90deg);
}

.faq-question h3 {
    font-size: 1.125rem;
    font-weight: 500;
    color: #1a202c;
    margin: 0;
}

.faq-answer {
    padding: 15px 0 0 34px;
    color: #4a5568;
    line-height: 1.6;
    display: none;
}

.faq-answer p {
    margin-bottom: 10px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Features Section */
.features-section {
    font-family: var(--font-body);
    margin-bottom: 60px;
}

.feature-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.feature-item {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    margin-bottom: 20px;
}

.feature-icon img {
    width: 42px;
    height: 42px;
}

.feature-icon.fast-delivery{
    margin-bottom: 7px;
}

.feature-icon.fast-delivery img {
    width: 55px;
    height: 55px;
}

.feature-item h4 {
    font-size: 1.75rem;
    margin-bottom: 10px;
    color: #111827;
    font-family: var(--font-body);
    font-weight: normal;
}

.feature-item p {
    color: #4a5568;
    line-height: 1.5;
    font-size: 1rem;
}

/* Lazy Loading Styles */
.create-art-section,
.bestsellers-carousel-container {
    /* Smooth transition when content appears */
    transition: opacity 0.3s ease-in-out;
}

/* Optional: Loading placeholder styles */
.create-art-section.loading,
.bestsellers-carousel-container.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Skeleton loading animation for carousel items (optional) */
.bestseller-item.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.bestseller-item.skeleton .product-image,
.bestseller-item.skeleton .product-info {
    opacity: 0;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Ensure smooth appearance of lazy loaded content */
.create-art-section .process-container,
.bestsellers-carousel-container .bestsellers-carousel {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

/* Optional: Hide content before it's initialized (remove if not needed) */
.create-art-section.not-initialized .style-samples,
.bestsellers-carousel-container.not-initialized .bestsellers-track {
    opacity: 0;
    transform: translateY(20px);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    
    .hero-text h1 {
        font-size: 2rem;
    }

    .accessory-item {
        width: 18%; /* Slightly larger percentage on medium screens */
    }
    
    .phone-case {
        width: 22%;
        bottom: -6%;
        right: -4%;
    }
    
    .keychain {
        width: 18%;
    }

    .AI-transform-badge {
        font-size: 0.9rem;
        padding: 0.35em 0.9em;
    }

    .gradient-blob {
        position: absolute;
        top: -10%;
        right: -5%;
        width: 40%;
        height: 0;
        padding-bottom: 40%;
    } 
    
    .category-grid {
        gap: 1.5rem;
        flex-wrap: wrap; /* NOW allow wrapping */
        overflow-x: visible; /* Remove horizontal scroll */
    }
    
    .category-item {
        padding: 0.8rem 0.3rem;
        flex: 0 0 calc(25% - 1.125rem); /* Fixed width, 4 per row */
        width: calc(25% - 1.125rem); /* Ensure consistent width */
        max-width: calc(25% - 1.125rem);
        min-width: calc(25% - 1.125rem);
    }
    
    .category-item h3 {
        font-size: 0.85rem;
    }

    /* Carousel adjustments for tablet */
    .bestseller-item {
        flex: 0 0 calc(33.333% - 13px); /* Show 3 items on tablet */
    }
    
}

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

    .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-content {
        flex-direction: column;
        gap: 10px;
    }

    .hero-text {
        width: 100%;
    }

    .process-container {
        flex-direction: column;
    }

    .feature-container {
        flex-direction: column;
    }

    .feature-item {
        width: 100%;
    }

    .hero-text h1 {
        font-size: 2rem;
    }
    
    .create-art-section h2 {
        font-size: 1.75rem;
    }

    .accessory-item {
        width: 20%; /* Larger percentage on small screens */
    }
    
    .phone-case {
        width: 25%;
        bottom: -5%;
        right: -3%;
    }
    
    .keychain {
        width: 18%;
        bottom: 20%;
    }

    .AI-transform-badge {
        font-size: 0.9rem;
        padding: 0.3em 0.8em;
        bottom: 8%;
        left: 7%;
    }
    
    .ai-icon {
        width: 2em;
        height: 2em;
    }

    .gradient-blob {
        position: absolute;
        top: -10%;
        right: -10%;
        width: 50%;
        height: 0;
        padding-bottom: 50%;
    } 

    .process-container {
        padding: 1rem 1.5rem;
    }

    .hero-text .cta_btn {
        display: block;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }

    .get-started-btn {
        align-self: center;
    }

    /* Carousel adjustments for mobile */
    .bestsellers-carousel-container {
        gap: 15px;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
    }

    .bestseller-item {
        flex: 0 0 calc(50% - 10px); /* Show 2 items on mobile */
    }

    .bestseller-item .product-info {
        padding: 0.75rem 0.5rem;
    }

    .bestseller-item .product-title {
        font-size: 0.85rem;
    }

    .bestseller-item .product-rating-stars {
        font-size: 12px;
    }

    .bestseller-item .product-review-count {
        font-size: 0.7rem;
    }

    .bestseller-item .product-price {
        font-size: 0.85rem;
    }

    /* Pagination dots smaller on mobile */
    .pagination-dot {
        width: 10px;
        height: 10px;
    }
    
}


@media (max-width: 480px) {
    .has-global-padding {
        padding-right: 1.5rem;
        padding-left: 1.5rem;
    }

    /*
    .category-grid {
        grid-template-columns: 1fr;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
    }
    */

    .hero-text h1, h2 {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .accessory-item {
        width: 22%; /* Largest percentage on smallest screens */
    }
    
    .phone-case {
        width: 28%;
        bottom: -4%;
    }
    
    .keychain {
        width: 22%;
        bottom: 18%;
    }

    .AI-transform-badge {
        font-size: 0.75rem;
        padding: 0.25em 0.7em;
        bottom: 7%;
        left: 7%;
    }
    
    .ai-icon {
        width: 1.75em;
        height: 1.75em;
    }

    .gradient-blob {
        position: absolute;
        top: -10%; 
        right: -10%;
        width: 60%;
        height: 0;
        padding-bottom: 60%;
    }    

    .process-container {
        border-radius: 8px;
        padding: 1rem 1rem;
    }

    .category-grid {
        gap: 0.8rem;
        justify-content: space-between;
    }
    
    .category-item {
        flex: 0 1 calc(50% - 0.4rem);
        width: calc(50% - 0.4rem);
        min-width: auto;
        max-width: none;
    }

    /* Very small screen carousel adjustments */
    .bestsellers-carousel-container {
        gap: 10px;
    }

    .carousel-arrow {
        width: 36px;
        height: 36px;
    }

    .bestseller-item {
        flex: 0 0 calc(100% - 0px); /* Show 1 item on very small screens */
    }

    .bestseller-item .product-title {
        font-size: 0.8rem;
        -webkit-line-clamp: 3; /* Allow more lines on small screens */
    }

    main.wp-block-group,
    .entry-content{
        margin-top: .5rem !important;
        margin-bottom: .5rem !important;
    }

    .hero-section{
        margin-bottom: 2rem;
    }

    .hero-text p {
        font-size: 1rem;
        margin-bottom: 1rem;
        line-height: 1.2;
    }

    .product-categories,
    .create-art-section,
    .faqs-section {
        margin-bottom: 3rem;
    }

    .process-steps {
        gap: 3px;
    }

    .process-step {
        gap: 10px;
    }

    .step-number {
        font-size: 1.5rem;
        
    }

    .step-text {
        font-size: 1rem;
    }

}