/*
 Theme Name:   Shapd Theme
 Theme URI:    https://shapd.nl
 Description:  Custom child theme voor Shapd – Personaliseerbare producten webshop. Gebaseerd op Storefront.
 Author:       Shapd
 Author URI:   https://shapd.nl
 Template:     storefront
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  shapd-theme
*/

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */

:root {
    --shapd-primary: #7f54b3;
    --shapd-primary-dark: #6b3fa0;
    --shapd-primary-light: #9b7bc7;
    --shapd-primary-glow: rgba(127, 84, 179, 0.3);
    --shapd-dark: #1a1a2e;
    --shapd-text: #333333;
    --shapd-text-light: #6d6d6d;
    --shapd-white: #ffffff;
    --shapd-off-white: #f8f7fc;
    --shapd-light-gray: #f0f0f0;
    --shapd-border: #eeeeee;
    --shapd-gradient: linear-gradient(135deg, #7f54b3 0%, #9b7bc7 50%, #b89dd9 100%);
    --shapd-gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #2d2b55 100%);
    --shapd-radius: 16px;
    --shapd-radius-sm: 8px;
    --shapd-radius-lg: 24px;
    --shapd-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    --shapd-shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.1);
    --shapd-shadow-purple: 0 8px 32px rgba(127, 84, 179, 0.2);
    --shapd-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shapd-transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Global Overrides
   ========================================================================== */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--shapd-text);
    overflow-x: hidden;
}

a {
    color: var(--shapd-primary);
    transition: color var(--shapd-transition);
}

a:hover {
    color: var(--shapd-primary-dark);
}

/* Hide default Storefront homepage content on front page */
.home .site-main > .type-page > .entry-content > *:not(.shapd-homepage),
.home .page-header,
.home .entry-header {
    display: none;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.shapd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 36px;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--shapd-transition);
    border: none;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
}

.shapd-btn-primary {
    background: var(--shapd-primary);
    color: var(--shapd-white);
    box-shadow: var(--shapd-shadow-purple);
}

.shapd-btn-primary:hover {
    background: var(--shapd-primary-dark);
    color: var(--shapd-white);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(127, 84, 179, 0.35);
}

.shapd-btn-outline {
    background: transparent;
    color: var(--shapd-white);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.shapd-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--shapd-white);
    color: var(--shapd-white);
    transform: translateY(-2px);
}

.shapd-btn-dark {
    background: var(--shapd-dark);
    color: var(--shapd-white);
}

.shapd-btn-dark:hover {
    background: #2d2b55;
    color: var(--shapd-white);
    transform: translateY(-2px);
}

.shapd-btn svg {
    width: 18px;
    height: 18px;
    transition: transform var(--shapd-transition);
}

.shapd-btn:hover svg {
    transform: translateX(4px);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.shapd-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--shapd-gradient-dark);
    overflow: hidden;
}

.shapd-hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.shapd-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: orbFloat 20s ease-in-out infinite;
}

.shapd-hero-orb--1 {
    width: 600px;
    height: 600px;
    background: var(--shapd-primary);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.shapd-hero-orb--2 {
    width: 400px;
    height: 400px;
    background: #9b7bc7;
    bottom: -100px;
    left: -50px;
    animation-delay: -7s;
}

.shapd-hero-orb--3 {
    width: 300px;
    height: 300px;
    background: #b89dd9;
    top: 50%;
    left: 50%;
    animation-delay: -14s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(40px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 40px) scale(0.95); }
    75% { transform: translate(30px, 20px) scale(1.02); }
}

.shapd-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

.shapd-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 24px 80px;
    width: 100%;
}

.shapd-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(127, 84, 179, 0.15);
    border: 1px solid rgba(127, 84, 179, 0.3);
    border-radius: 50px;
    color: var(--shapd-primary-light);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.shapd-hero-badge span {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--shapd-primary-light);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.shapd-hero h1 {
    font-size: clamp(40px, 7vw, 80px);
    font-weight: 800;
    line-height: 1.05;
    color: var(--shapd-white);
    margin: 0 0 24px;
    letter-spacing: -0.03em;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.15s forwards;
}

.shapd-hero h1 .shapd-highlight {
    background: var(--shapd-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shapd-hero-subtitle {
    font-size: clamp(17px, 2.2vw, 21px);
    color: rgba(255, 255, 255, 0.65);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 40px;
    font-weight: 400;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.3s forwards;
}

.shapd-hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.45s forwards;
}

.shapd-hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 64px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

.shapd-hero-stat {
    text-align: left;
}

.shapd-hero-stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--shapd-white);
    line-height: 1;
    margin-bottom: 4px;
}

.shapd-hero-stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll indicator */
.shapd-scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: fadeInUp 0.8s ease 0.8s forwards;
    opacity: 0;
}

.shapd-scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

/* ==========================================================================
   Trust Bar
   ========================================================================== */

.shapd-trust-bar {
    background: var(--shapd-white);
    border-bottom: 1px solid var(--shapd-border);
    padding: 24px 0;
}

.shapd-trust-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.shapd-trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--shapd-text-light);
    font-size: 14px;
    font-weight: 500;
}

.shapd-trust-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--shapd-off-white);
    border-radius: 10px;
    color: var(--shapd-primary);
}

.shapd-trust-icon svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   Section Base
   ========================================================================== */

.shapd-section {
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.shapd-section--full {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.shapd-section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.shapd-section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--shapd-primary);
    margin-bottom: 16px;
    padding: 6px 16px;
    background: rgba(127, 84, 179, 0.08);
    border-radius: 50px;
}

.shapd-section-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    color: var(--shapd-dark);
    line-height: 1.15;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

.shapd-section-subtitle {
    font-size: 17px;
    color: var(--shapd-text-light);
    line-height: 1.7;
    margin: 0;
}

/* ==========================================================================
   Scroll Animations
   ========================================================================== */

.shapd-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.shapd-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.shapd-reveal-delay-1 { transition-delay: 0.1s; }
.shapd-reveal-delay-2 { transition-delay: 0.2s; }
.shapd-reveal-delay-3 { transition-delay: 0.3s; }
.shapd-reveal-delay-4 { transition-delay: 0.4s; }

/* ==========================================================================
   How It Works
   ========================================================================== */

.shapd-how-it-works {
    background: var(--shapd-off-white);
}

.shapd-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
}

.shapd-steps::before {
    content: '';
    position: absolute;
    top: 48px;
    left: calc(16.67% + 16px);
    right: calc(16.67% + 16px);
    height: 2px;
    background: linear-gradient(to right, var(--shapd-primary), var(--shapd-primary-light));
    opacity: 0.3;
}

.shapd-step {
    text-align: center;
    position: relative;
    padding: 0 16px;
}

.shapd-step-number {
    width: 96px;
    height: 96px;
    border-radius: 28px;
    background: var(--shapd-white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: var(--shapd-shadow);
    position: relative;
    transition: all var(--shapd-transition);
}

.shapd-step:hover .shapd-step-number {
    transform: translateY(-4px);
    box-shadow: var(--shapd-shadow-purple);
}

.shapd-step-number svg {
    width: 40px;
    height: 40px;
    color: var(--shapd-primary);
}

.shapd-step-count {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    background: var(--shapd-primary);
    color: var(--shapd-white);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shapd-step h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--shapd-dark);
    margin: 0 0 8px;
}

.shapd-step p {
    font-size: 15px;
    color: var(--shapd-text-light);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   Featured Products
   ========================================================================== */

.shapd-products-section {
    background: var(--shapd-white);
}

.shapd-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.shapd-products-grid .product {
    background: var(--shapd-white);
    border-radius: var(--shapd-radius);
    overflow: hidden;
    border: 1px solid var(--shapd-border);
    transition: all var(--shapd-transition);
    position: relative;
}

.shapd-products-grid .product:hover {
    transform: translateY(-6px);
    box-shadow: var(--shapd-shadow-lg);
    border-color: transparent;
}

.shapd-products-grid .product a img,
.shapd-products-grid .product .woocommerce-placeholder {
    border-radius: 0;
    margin: 0;
    aspect-ratio: 1;
    object-fit: cover;
    width: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.shapd-products-grid .product:hover a img {
    transform: scale(1.05);
}

.shapd-products-grid .product .attachment-woocommerce_thumbnail {
    overflow: hidden;
}

.shapd-products-grid .product a {
    overflow: hidden;
    display: block;
}

.shapd-products-grid .product .woocommerce-loop-product__title,
.shapd-products-grid .product h2 {
    font-size: 16px !important;
    font-weight: 600;
    color: var(--shapd-dark);
    padding: 16px 16px 4px !important;
    margin: 0;
}

.shapd-products-grid .product .price {
    padding: 0 16px 16px;
    font-size: 18px;
    font-weight: 700;
    color: var(--shapd-primary);
}

.shapd-products-grid .product .button,
.shapd-products-grid .product .add_to_cart_button {
    display: block;
    width: calc(100% - 32px);
    margin: 0 16px 16px;
    text-align: center;
    background: var(--shapd-primary);
    color: var(--shapd-white);
    border-radius: var(--shapd-radius-sm);
    padding: 12px;
    font-weight: 600;
    font-size: 14px;
    transition: all var(--shapd-transition);
    border: none;
}

.shapd-products-grid .product .button:hover,
.shapd-products-grid .product .add_to_cart_button:hover {
    background: var(--shapd-primary-dark);
}

.shapd-products-cta {
    text-align: center;
    margin-top: 48px;
}

/* ==========================================================================
   USP / Features Grid
   ========================================================================== */

.shapd-features {
    background: var(--shapd-off-white);
}

.shapd-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.shapd-feature-card {
    background: var(--shapd-white);
    border-radius: var(--shapd-radius);
    padding: 40px;
    border: 1px solid var(--shapd-border);
    transition: all var(--shapd-transition);
    position: relative;
    overflow: hidden;
}

.shapd-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--shapd-gradient);
    opacity: 0;
    transition: opacity var(--shapd-transition);
}

.shapd-feature-card:hover {
    border-color: transparent;
    box-shadow: var(--shapd-shadow-lg);
    transform: translateY(-4px);
}

.shapd-feature-card:hover::before {
    opacity: 1;
}

.shapd-feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(127, 84, 179, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--shapd-primary);
}

.shapd-feature-icon svg {
    width: 28px;
    height: 28px;
}

.shapd-feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--shapd-dark);
    margin: 0 0 8px;
}

.shapd-feature-card p {
    font-size: 15px;
    color: var(--shapd-text-light);
    line-height: 1.7;
    margin: 0;
}

/* ==========================================================================
   Marquee / Social Proof
   ========================================================================== */

.shapd-marquee-section {
    background: var(--shapd-dark);
    padding: 20px 0;
    overflow: hidden;
}

.shapd-marquee {
    display: flex;
    animation: marquee 30s linear infinite;
    gap: 48px;
    white-space: nowrap;
}

.shapd-marquee-item {
    font-size: 18px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.shapd-marquee-item span {
    color: var(--shapd-primary-light);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.shapd-testimonials {
    background: var(--shapd-white);
}

.shapd-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.shapd-testimonial {
    background: var(--shapd-off-white);
    border-radius: var(--shapd-radius);
    padding: 32px;
    transition: all var(--shapd-transition);
}

.shapd-testimonial:hover {
    transform: translateY(-4px);
    box-shadow: var(--shapd-shadow);
}

.shapd-testimonial-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 16px;
    color: #f5a623;
}

.shapd-testimonial-stars svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.shapd-testimonial p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--shapd-text);
    margin: 0 0 20px;
    font-style: italic;
}

.shapd-testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.shapd-testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--shapd-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--shapd-white);
    font-weight: 700;
    font-size: 16px;
}

.shapd-testimonial-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--shapd-dark);
}

.shapd-testimonial-info {
    font-size: 13px;
    color: var(--shapd-text-light);
}

/* ==========================================================================
   CTA Banner
   ========================================================================== */

.shapd-cta-section {
    padding: 100px 24px;
}

.shapd-cta-banner {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--shapd-gradient-dark);
    border-radius: var(--shapd-radius-lg);
    padding: 80px 64px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.shapd-cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: var(--shapd-primary);
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.2;
}

.shapd-cta-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: #9b7bc7;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
}

.shapd-cta-banner > * {
    position: relative;
    z-index: 1;
}

.shapd-cta-banner h2 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    color: var(--shapd-white);
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

.shapd-cta-banner p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.65);
    margin: 0 0 36px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.shapd-cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   Product Categories
   ========================================================================== */

.shapd-categories {
    background: var(--shapd-white);
}

.shapd-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.shapd-category-card {
    position: relative;
    border-radius: var(--shapd-radius);
    overflow: hidden;
    aspect-ratio: 1;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    transition: all var(--shapd-transition);
}

.shapd-category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 46, 0.85) 0%, rgba(26, 26, 46, 0.1) 60%);
    z-index: 1;
    transition: all var(--shapd-transition);
}

.shapd-category-card:hover::before {
    background: linear-gradient(to top, rgba(127, 84, 179, 0.85) 0%, rgba(127, 84, 179, 0.1) 60%);
}

.shapd-category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shapd-shadow-purple);
}

.shapd-category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.shapd-category-card:hover img {
    transform: scale(1.08);
}

.shapd-category-card-content {
    position: relative;
    z-index: 2;
    padding: 24px;
    width: 100%;
}

.shapd-category-card-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--shapd-white);
    margin: 0 0 4px;
}

.shapd-category-card-content span {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* Fallback for categories without images */
.shapd-category-placeholder {
    position: absolute;
    inset: 0;
    background: var(--shapd-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
}

.shapd-category-placeholder svg {
    width: 64px;
    height: 64px;
    color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

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

@media (max-width: 768px) {
    .shapd-hero {
        min-height: auto;
        padding: 0;
    }

    .shapd-hero-content {
        padding: 100px 20px 60px;
    }

    .shapd-hero-stats {
        gap: 32px;
        flex-wrap: wrap;
    }

    .shapd-hero-stat-value {
        font-size: 24px;
    }

    .shapd-scroll-indicator {
        display: none;
    }

    .shapd-section {
        padding: 64px 20px;
    }

    .shapd-steps {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .shapd-steps::before {
        display: none;
    }

    .shapd-features-grid {
        grid-template-columns: 1fr;
    }

    .shapd-testimonials-grid {
        grid-template-columns: 1fr;
    }

    .shapd-cta-banner {
        padding: 48px 24px;
    }

    .shapd-trust-bar-inner {
        gap: 24px;
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .shapd-trust-bar-inner::-webkit-scrollbar {
        display: none;
    }

    .shapd-trust-item {
        flex-shrink: 0;
    }

    .shapd-hero-actions {
        flex-direction: column;
    }

    .shapd-hero-actions .shapd-btn {
        width: 100%;
    }

    .shapd-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

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

@media (max-width: 480px) {
    .shapd-products-grid {
        grid-template-columns: 1fr;
    }

    .shapd-hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .shapd-categories-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Storefront Overrides for Homepage
   ========================================================================== */

.home .site-header {
    background-color: transparent !important;
    position: absolute;
    width: 100%;
    z-index: 100;
    border-bottom: none !important;
}

.home.scrolled .site-header {
    background-color: var(--shapd-white) !important;
    position: fixed;
    box-shadow: var(--shapd-shadow);
    transition: all var(--shapd-transition);
}

.home .site-header .site-title a,
.home .site-header .main-navigation a {
    color: var(--shapd-white);
    transition: color var(--shapd-transition);
}

.home.scrolled .site-header .site-title a,
.home.scrolled .site-header .main-navigation a {
    color: var(--shapd-text);
}

/* Fix storefront content max width */
.home .site-content > .col-full {
    max-width: 100%;
    padding: 0;
}

.home .content-area {
    width: 100%;
}

.home .entry-content {
    margin: 0;
}

/* WooCommerce star rating colors */
.star-rating span::before {
    color: #f5a623 !important;
}

/* Fix Storefront breadcrumbs on homepage */
.home .storefront-breadcrumb {
    display: none;
}

/* ==========================================================================
   Smooth Scroll
   ========================================================================== */

html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background: rgba(127, 84, 179, 0.2);
    color: var(--shapd-dark);
}
