/* ==========================================================
   ZENVIRA DESIGN SYSTEM v1.0 — Temply Studio
   Warm-neutral, Poppins + Inter, refined spacing
   ========================================================== */

/* ---- 1. Design Tokens ---- */
:root {
    /* Colors */
    --z-primary-dark: #202918;
    --z-primary-medium: #34402c;
    --z-primary-light: #4b5243;
    --z-neutral-900: #210d02;
    --z-neutral-700: #4f4f4f;
    --z-neutral-500: #a1a49a;
    --z-neutral-300: #cccbc2;
    --z-neutral-200: #eae8e1;
    --z-neutral-100: #ede9df;
    --z-neutral-50: #f7f4ec;
    --z-bg: #f7f4ec;
    --z-surface: #ffffff;
    --z-text: #202918;
    --z-text-secondary: #4b5243;
    --z-text-muted: #a1a49a;
    --z-border: #eae8e1;
    --z-border-strong: #cccbc2;

    /* Typography */
    --z-font-display: 'Poppins', sans-serif;
    --z-font-body: 'Inter', sans-serif;

    /* Spacing */
    --z-section: 96px;
    --z-section-mobile: 64px;
    --z-component: 48px;
    --z-element: 24px;

    /* Radius */
    --z-radius-sm: 4px;
    --z-radius-md: 8px;
    --z-radius-lg: 12px;
    --z-radius-xl: 16px;
    --z-radius-2xl: 24px;
    --z-radius-full: 9999px;

    /* Shadows */
    --z-shadow-sm: 0 1px 2px rgba(32, 41, 24, 0.05);
    --z-shadow-md: 0 4px 6px rgba(32, 41, 24, 0.07);
    --z-shadow-lg: 0 10px 15px rgba(32, 41, 24, 0.1);
    --z-shadow-xl: 0 20px 25px rgba(32, 41, 24, 0.12);

    /* Transitions */
    --z-t-fast: 150ms ease;
    --z-t-base: 250ms ease;
    --z-t-slow: 350ms ease;

    /* Legacy variable aliases — used by header.php, footer.php, front-page.php */
    --text-primary: #1E2E1F;
    --text-secondary: #6b7c6e;
    --border-color: #e0ddd4;
    --accent-color: #1E2E1F;
    --surface-color: #f7f4ec;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* ---- 2. Font Loading Support ---- */
/* Poppins + Inter from Google Fonts — enqueued via functions.php */

/* ---- 3. Base Color Overrides ---- */
body {
    color: var(--z-text);
    background-color: var(--z-bg);
    animation: z-fadeIn 0.4s ease-out;
}

h1, h2, h3, h4, h5, h6,
.elementor-heading-title {
    color: var(--z-text);
    font-family: var(--z-font-display) !important;
}

.elementor-widget-text-editor,
.entry-content,
.entry-content p,
.page-content p,
.post-content p {
    color: var(--z-text);
    font-family: var(--z-font-body) !important;
}

/* ---- 4. Section Spacing ---- */
@media (min-width: 1024px) {
    .elementor-top-section,
    .e-con.e-parent {
        padding-top: var(--z-section) !important;
        padding-bottom: var(--z-section) !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .elementor-top-section,
    .e-con.e-parent {
        padding-top: 72px !important;
        padding-bottom: 72px !important;
    }
}

@media (max-width: 767px) {
    .elementor-top-section,
    .e-con.e-parent {
        padding-top: var(--z-section-mobile) !important;
        padding-bottom: var(--z-section-mobile) !important;
    }
}

/* ---- 5. Scroll Reveal ---- */
.z-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.z-reveal.z-revealed {
    opacity: 1;
    transform: translateY(0);
}

.z-reveal-stagger > * {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.z-reveal-stagger.z-revealed > *:nth-child(1) { transition-delay: 0.05s; }
.z-reveal-stagger.z-revealed > *:nth-child(2) { transition-delay: 0.10s; }
.z-reveal-stagger.z-revealed > *:nth-child(3) { transition-delay: 0.15s; }
.z-reveal-stagger.z-revealed > *:nth-child(4) { transition-delay: 0.20s; }
.z-reveal-stagger.z-revealed > *:nth-child(5) { transition-delay: 0.25s; }
.z-reveal-stagger.z-revealed > *:nth-child(6) { transition-delay: 0.30s; }

.z-reveal-stagger.z-revealed > * {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .z-reveal,
    .z-reveal-stagger > * {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ---- 6. Image Hover ---- */
.product-image-wrapper img,
.woocommerce ul.products li.product a img,
.elementor-widget-image img,
.etheme-product-grid-item img {
    transition: transform var(--z-t-base) !important;
}

.product-image-wrapper:hover img,
.woocommerce ul.products li.product a:hover img,
.elementor-widget-image:hover img,
.etheme-product-grid-item:hover img {
    transform: scale(1.05) !important;
}

/* ---- 7. Buttons ---- */
.elementor-button,
.btn,
.button,
.woocommerce a.button,
.woocommerce button.button,
.wp-block-button__link {
    border-radius: var(--z-radius-md) !important;
    transition: all var(--z-t-fast) !important;
    font-family: var(--z-font-body) !important;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.elementor-button:hover,
.btn:hover,
.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
    transform: translateY(-1px);
    box-shadow: var(--z-shadow-md);
}

/* ---- 8. Card Hover ---- */
.woocommerce ul.products li.product,
.etheme-product-grid-item,
.product-content,
.etheme-post {
    background-color: #ffffff !important;
    transition: transform var(--z-t-base), box-shadow var(--z-t-base) !important;
    border-radius: var(--z-radius-lg);
}

.woocommerce ul.products li.product:hover,
.etheme-product-grid-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--z-shadow-lg);
}

/* ---- 9. Utility Classes ---- */
.z-bg-cream   { background-color: var(--z-neutral-100) !important; }
.z-bg-ivory   { background-color: var(--z-neutral-50) !important; }
.z-bg-dark    { background-color: var(--z-primary-dark) !important; color: var(--z-neutral-100) !important; }
.z-bg-surface { background-color: var(--z-surface) !important; }

.z-bg-dark h1, .z-bg-dark h2, .z-bg-dark h3,
.z-bg-dark h4, .z-bg-dark h5, .z-bg-dark h6,
.z-bg-dark p, .z-bg-dark span, .z-bg-dark a {
    color: var(--z-neutral-100) !important;
}

.woocommerce ul.products li.product *,
.etheme-product-grid-item *,
.product-content *,
.etheme-post * {
    color: var(--z-text);
}

/* ---- 10. Page Fade In ---- */
html {
    scroll-behavior: smooth;
}

@keyframes z-fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ---- 11. Quick View Layout Fixes ---- */
.yith-wcqv-main,
.quick-view-popup,
.woosq-popup {
    max-width: 90vw !important;
    width: 1000px !important;
    border-radius: var(--z-radius-lg) !important;
}

.yith-wcqv-main h1.product_title,
.quick-view-popup h1.product_title,
.woosq-popup h1.product_title {
    font-size: 22px !important;
    line-height: 1.3 !important;
    margin-bottom: 16px !important;
    font-family: var(--z-font-display) !important;
}

.elementor-widget-theme-post-title.elementor-page-title h1,
.product_title.entry-title {
    font-size: 28px !important;
    line-height: 1.2 !important;
    margin-bottom: 12px !important;
    font-family: var(--z-font-display) !important;
}

.yith-wcqv-main .woocommerce-product-details__short-description,
.quick-view-popup .woocommerce-product-details__short-description,
.woosq-popup .woocommerce-product-details__short-description {
    font-size: 15px !important;
    line-height: 1.6 !important;
    margin-bottom: 24px !important;
}

/* ---- 12. Zenvira Hero Section (50/50 Split) ---- */
.z-hero-split {
    display: flex;
    flex-direction: column;
    min-height: 70vh;
    background: var(--z-bg);
    padding-top: 120px;
    padding-bottom: 60px;
}
@media (min-width: 992px) {
    .z-hero-split {
        flex-direction: row;
        align-items: center;
        padding-top: 160px;
        padding-bottom: 80px;
    }
}
.z-hero-content {
    flex: 1;
    padding: 0 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}
@media (min-width: 992px) {
    .z-hero-content {
        padding: 0 5% 0 8%;
    }
}
.z-hero-site-name {
    font-family: var(--z-font-display);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--z-text-secondary);
    margin-bottom: 16px;
    display: inline-block;
    border-bottom: 1px solid var(--z-text-secondary);
    padding-bottom: 4px;
}
.z-hero-slogan {
    font-family: var(--z-font-display);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    color: var(--z-text);
    margin: 0 0 24px 0;
    font-weight: 600;
}
.z-hero-desc {
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.6;
    color: var(--z-text-secondary);
    margin: 0 0 40px 0;
    max-width: 500px;
}
.z-hero-image-wrap {
    flex: 1;
    height: 40vh;
    width: 100%;
    padding: 20px 5%;
}
@media (min-width: 992px) {
    .z-hero-image-wrap {
        height: 60vh;
        padding: 0 4% 0 0;
    }
}
.z-hero-image-wrap img,
.z-hero-image-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* ---- 13. Zenvira Social Share ---- */
.z-social-share {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--z-border);
    display: flex;
    align-items: center;
    gap: 16px;
}
.z-social-share-label {
    font-family: var(--z-font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--z-text);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.z-social-icons {
    display: flex;
    gap: 12px;
}
.z-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--z-surface);
    border: 1px solid var(--z-border);
    color: var(--z-text);
    text-decoration: none;
    transition: all var(--z-transition);
    cursor: pointer;
}
.z-social-icon:hover {
    background: var(--z-primary);
    color: #fff;
    border-color: var(--z-primary);
    transform: translateY(-2px);
}
.z-social-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}
/* Toast Notification for Copy Link */
#z-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--z-primary);
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--z-radius);
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
}
#z-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ---- 14. Blog Slider ---- */
.z-blog-slider-wrap {
    overflow: hidden;
    margin: 0 -20px;
    padding: 20px;
}
.z-blog-slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    padding-bottom: 20px;
}
.z-blog-slider::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}
.z-blog-card {
    flex: 0 0 calc(100% - 40px);
    scroll-snap-align: start;
    background: var(--z-surface);
    border-radius: var(--z-radius-lg);
    overflow: hidden;
    border: 1px solid var(--z-border);
    transition: transform var(--z-transition), box-shadow var(--z-transition);
}
@media (min-width: 768px) {
    .z-blog-card {
        flex: 0 0 calc(50% - 12px);
    }
}
@media (min-width: 1024px) {
    .z-blog-card {
        flex: 0 0 calc(33.333% - 16px);
    }
}
.z-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.z-blog-card-img {
    width: 100%;
    aspect-ratio: 1.5;
    position: relative;
    overflow: hidden;
}
.z-blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.z-blog-card:hover .z-blog-card-img img {
    transform: scale(1.05);
}
.z-blog-card-content {
    padding: 28px !important;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-sizing: border-box;
}
.z-blog-meta {
    font-size: 13px;
    color: var(--z-text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}
.z-blog-title {
    font-size: 1.25rem;
    line-height: 1.4;
    margin: 0;
    color: var(--z-text);
    font-family: var(--z-font-display);
}
.z-blog-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: var(--z-text-secondary);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.z-blog-readmore {
    font-size: 14px;
    font-weight: 600;
    color: var(--z-text);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

/* ================================================================
   PATCH v2.1 — Product Slider & WooCommerce Fixes
   ================================================================ */

/* ---- A. Slider: exactly 5 cards visible on desktop ---- */
.c-product-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    padding-bottom: 12px;
}
.c-product-slider::-webkit-scrollbar { display: none; }
.c-product-slider.dragging { cursor: grabbing; }

.c-product-card {
    flex: 0 0 calc(20% - 13px);
    min-width: 180px;
    scroll-snap-align: start;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.c-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
@media (max-width: 1024px) { .c-product-card { flex: 0 0 calc(33.333% - 11px); } }
@media (max-width: 767px)  { .c-product-card { flex: 0 0 calc(80% - 8px); } }

/* ---- B. Slider nav arrows ---- */
.c-slider-arrows { display: flex; gap: 8px; align-items: center; }
.c-arrow {
    width: 38px; height: 38px; border-radius: 50%;
    border: 1.5px solid var(--z-border-strong);
    background: var(--z-surface); color: var(--z-text);
    font-size: 16px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s ease;
}
.c-arrow:hover { background: var(--z-primary-dark); color: #fff; border-color: var(--z-primary-dark); transform: scale(1.08); }

/* ---- C. Hide WooCommerce screen-reader price labels ---- */
.woocommerce .price .screen-reader-text,
ins .screen-reader-text,
del .screen-reader-text {
    position: absolute !important; width: 1px !important; height: 1px !important;
    padding: 0 !important; margin: -1px !important; overflow: hidden !important;
    clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important;
}

/* ---- D. Price colors: regular=dark teal, sale=red ---- */
.woocommerce .price, .c-product-card .price { color: #1a3a33 !important; font-weight: 700; }
.woocommerce .price del { color: #888 !important; font-weight: 400; font-size: 0.85em; }
.woocommerce .price ins, .c-product-card .price ins {
    color: #d32f2f !important; font-weight: 800; text-decoration: none !important;
}

/* ---- E. Sale badge ---- */
.z-sale-badge {
    position: absolute; top: 8px; left: 8px;
    background: #d32f2f; color: #fff;
    font-size: 11px; font-weight: 800; text-transform: uppercase;
    padding: 3px 8px; border-radius: 20px; z-index: 3; line-height: 1.6;
}

/* ---- F. Fix tab showing "1" instead of "Description" ---- */
.woocommerce-tabs ul.tabs .count,
.woocommerce div.product .woocommerce-tabs ul.tabs li > a::before { display: none !important; content: none !important; }

/* ---- G. Related products: infinite horizontal slider ---- */
.woocommerce .related.products ul.products {
    display: flex !important; gap: 16px !important;
    overflow-x: auto !important; scroll-snap-type: x mandatory !important;
    scrollbar-width: none !important; -webkit-overflow-scrolling: touch !important;
    cursor: grab !important; flex-wrap: nowrap !important; padding-bottom: 12px;
}
.woocommerce .related.products ul.products::-webkit-scrollbar { display: none; }
.woocommerce .related.products ul.products li.product {
    flex: 0 0 calc(20% - 13px) !important; min-width: 170px !important;
    width: auto !important; float: none !important; scroll-snap-align: start;
}
@media (max-width: 1024px) { .woocommerce .related.products ul.products li.product { flex: 0 0 calc(33.333% - 11px) !important; } }
@media (max-width: 767px)  { .woocommerce .related.products ul.products li.product { flex: 0 0 80% !important; } }

/* ---- 14. Fix Related Products Equal Height ---- */
.woocommerce .related.products ul.products {
    display: flex !important;
    flex-wrap: wrap;
    align-items: stretch;
}
.woocommerce .related.products ul.products li.product {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
}
.woocommerce .related.products ul.products li.product .content-product,
.woocommerce .related.products ul.products li.product .product-details {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
}
/* Push price and button to bottom */
.woocommerce .related.products ul.products li.product .price {
    margin-top: auto !important;
}

/* ---- 15. Fix Image Wrappers Background (Remove White/Beige Box) ---- */
.product-image-wrapper,
.ts-card-img-wrap,
.c-product-card-img,
.c-product-gallery {
    background: transparent !important;
}

/* ---- 16. Single Product Guarantees Boxes Colors ---- */
.c-g-card {
    background: var(--z-primary-dark) !important;
    border-color: rgba(255,255,255,0.15) !important;
}
.c-g-card h4, 
.c-g-card p, 
.c-g-card .c-g-icon svg {
    color: #ffffff !important;
}

/* ================================================================
   PATCH v2.2 — WooCommerce Block Checkout Styling (Zenvira Theme)
   ================================================================ */

/* Checkout Page Layout */
.wc-block-checkout {
    font-family: var(--z-font-body) !important;
    color: var(--z-text) !important;
}

/* Headings */
.wc-block-checkout h2, 
.wc-block-checkout h3, 
.wc-block-components-title {
    font-family: var(--z-font-display) !important;
    color: var(--z-text) !important;
    font-weight: 600 !important;
}

/* Input Fields */
.wc-block-components-text-input input[type="text"],
.wc-block-components-text-input input[type="email"],
.wc-block-components-text-input input[type="tel"],
.wc-block-components-combobox-control input {
    background-color: var(--z-surface) !important;
    border: 1px solid var(--z-border) !important;
    border-radius: var(--z-radius-md) !important;
    color: var(--z-text) !important;
    box-shadow: none !important;
    transition: all var(--z-t-fast) !important;
}

.wc-block-components-text-input input:focus,
.wc-block-components-combobox-control input:focus {
    border-color: var(--z-primary-dark) !important;
    outline: none !important;
    box-shadow: 0 0 0 1px var(--z-primary-dark) !important;
}

/* Express Checkout / Payment Options Boxes */
.wc-block-components-express-payment-methods,
.wc-block-components-checkout-step,
.wc-block-components-payment-method-options,
.wc-block-checkout__payment-methods {
    border-color: var(--z-border) !important;
}

.wc-block-components-radio-control-accordion-content {
    background-color: var(--z-neutral-50) !important;
    border-radius: var(--z-radius-md) !important;
}

/* Order Summary Box (Right Sidebar) */
.wc-block-checkout__sidebar {
    background-color: var(--z-surface) !important;
    border-radius: var(--z-radius-lg) !important;
    box-shadow: var(--z-shadow-lg) !important;
    border: 1px solid var(--z-border) !important;
    padding: 32px !important;
}

.wc-block-components-order-summary-item__name {
    font-weight: 600 !important;
    color: var(--z-text) !important;
}

.wc-block-components-order-summary-item__quantity {
    color: var(--z-primary-dark) !important;
    font-weight: 700 !important;
}

/* Fix: Hide duplicate strikethrough regular price in order summary
   WC Blocks shows del (regular) + ins (sale) even when prices are equal */
.wc-block-components-order-summary-item__individual-prices del,
.wc-block-components-product-price del {
    display: none !important;
}

/* Show only the active/sale price cleanly */
.wc-block-components-order-summary-item__individual-prices ins,
.wc-block-components-product-price ins {
    text-decoration: none !important;
    font-weight: 600 !important;
    color: var(--z-text) !important;
}

/* Place Order Button */
.wc-block-components-checkout-place-order-button,
.wc-block-components-button:not(.is-link) {
    background-color: var(--z-primary-dark) !important;
    color: #ffffff !important;
    border-radius: var(--z-radius-full) !important;
    font-family: var(--z-font-display) !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: 16px 32px !important;
    border: none !important;
    transition: all var(--z-t-fast) !important;
}

.wc-block-components-checkout-place-order-button:hover,
.wc-block-components-button:not(.is-link):hover {
    transform: translateY(-2px) !important;
    box-shadow: var(--z-shadow-md) !important;
    background-color: var(--z-primary-medium) !important;
    color: #ffffff !important;
}

/* Return to Cart Link */
.wc-block-components-checkout-return-to-cart-button {
    color: var(--z-text-secondary) !important;
    font-weight: 500 !important;
    text-decoration: none !important;
}
.wc-block-components-checkout-return-to-cart-button:hover {
    color: var(--z-primary-dark) !important;
}

/* ================================================================
   PATCH v2.3 — Multi-Step Checkout Stepper (Custom Shortcode)
   ================================================================ */

.temply-stepper-container {
    background: #ffffff;
    border-radius: 20px;
    padding: 12px 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
    margin: 0 auto 40px auto;
    max-width: 900px;
    border: 1px solid #f1f5f9;
}

.temply-stepper-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.temply-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 14px;
    padding: 14px 20px;
    min-width: 140px;
    transition: all 0.3s ease;
    color: #6366f1; /* Indigo purple */
    border: 1px solid transparent;
}

.temply-step-icon {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.temply-step-title {
    font-family: var(--z-font-body), sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
}

/* Active State */
.temply-step.temply-step-active {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

.temply-step.temply-step-active .temply-step-title {
    font-weight: 600;
}

/* Inactive Steps Border (optional to match image exactly, the image has inactive cards in a white box) */
.temply-step:not(.temply-step-active) {
    border: 1px solid #f1f5f9;
}

/* Dividers */
.temply-step-divider {
    flex-grow: 1;
    height: 1px;
    border-bottom: 2px dashed #cbd5e1;
    margin: 0 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .temply-stepper-container {
        padding: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .temply-stepper-wrapper {
        min-width: 600px; /* Force horizontal scroll on mobile */
    }
    
    .temply-step {
        min-width: 110px;
        padding: 10px 12px;
    }
}

/* WooCommerce Cart/Checkout Cross-Sells (Block Grids) */
.wc-block-grid__products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 20px !important;
    margin-top: 20px !important;
}

.wc-block-grid__product {
    background: #ffffff !important;
    border-radius: 12px !important;
    padding: 15px !important;
    text-align: center !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    border: 1px solid #eaeaea !important;
}

.wc-block-grid__product:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

.wc-block-grid__product-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1a4f36 !important;
    margin: 10px 0 !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
}

.wc-block-grid__product-price {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1a4f36 !important;
    margin-bottom: 15px !important;
}

.wc-block-grid__product-add-to-cart.wp-block-button__link {
    background: #1a4f36 !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    padding: 10px 15px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: background 0.3s ease !important;
    margin-top: auto !important;
    display: inline-block !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.wc-block-grid__product-add-to-cart.wp-block-button__link:hover {
    background: #2a6a4a !important;
    color: #ffffff !important;
}

.wc-block-grid__product-image {
    border-radius: 8px !important;
    margin-bottom: 10px !important;
    mix-blend-mode: multiply !important;
}

/* =========================================
   C-HERO SECTION STYLES
   ========================================= */
.c-hero {
    background-color: #ffffff;
    padding: 100px 0 60px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.c-hero .ds-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

@media (min-width: 992px) {
    .c-hero .ds-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.c-hero-text {
    flex: 1;
    max-width: 600px;
}

.c-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(30, 70, 32, 0.08);
    color: #1e4620;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.c-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: #1e4620;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.c-hero-title span {
    color: #2a6a4a;
    font-style: italic;
}

.c-hero-subtitle {
    font-size: 1.1rem;
    color: #4a5c50;
    line-height: 1.6;
    margin-bottom: 32px;
}

.c-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #1e4620;
    color: #ffffff;
    padding: 16px 32px;
    border-radius: 99px;
    font-weight: 700;
    font-size: 1.05rem;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(30, 70, 32, 0.2);
}

.c-hero-btn:hover {
    background: #2a6a4a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 70, 32, 0.3);
}

.c-hero-slider-wrap {
    flex: 1.2;
    width: 100%;
    position: relative;
    max-width: 780px;
}

.c-hero-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    gap: 20px;
    padding-bottom: 20px;
}

.c-hero-slider::-webkit-scrollbar {
    display: none;
}

.c-hero-slide {
    flex: 0 0 calc(100% - 40px);
    scroll-snap-align: center;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .c-hero-slide {
        flex: 0 0 calc(33.333% - 14px);
        min-width: 200px;
    }
}

.c-hero-slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.c-hero-slide img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.c-hero-slide-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.c-hero-slide-info h4 {
    font-size: 1rem;
    color: #1e4620;
    margin: 0 0 12px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.c-hero-slide-info .price {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e4620;
    margin-top: auto;
}

.c-hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #1e4620;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
    z-index: 10;
}

.c-hero-nav:hover {
    background: #1e4620;
    color: #ffffff;
    border-color: #1e4620;
}

.c-hero-prev {
    left: -20px;
}

.c-hero-next {
    right: -20px;
}

@media (max-width: 991px) {
    .c-hero-prev { left: 0; }
    .c-hero-next { right: 0; }
}

/* =========================================
   VIEW MORE BUTTON - PROMINENT STYLE
   ========================================= */
.section-header a[href="/shop"],
.section-header a[href*="/shop"] {
    background: #1e4620 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 28px !important;
    border-radius: 999px !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 4px 14px rgba(30, 70, 32, 0.25) !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
}
.section-header a[href="/shop"]:hover,
.section-header a[href*="/shop"]:hover {
    background: #2a6a4a !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(30, 70, 32, 0.35) !important;
}

/* =========================================
   BLOG CARD TEXT PADDING FIX (Live Layout)
   Blog cards on live site have no content wrapper,
   text sits directly inside .z-blog-card
   ========================================= */
.z-blog-grid-home .z-blog-card {
    padding: 0 20px 20px 20px !important;
}
.z-blog-grid-home .z-blog-card > div:first-child {
    margin-left: -20px !important;
    margin-right: -20px !important;
    width: calc(100% + 40px) !important;
}

/* =========================================
   PRICE RANGE FILTER FIX (Shop Sidebar)
   ========================================= */
.ts-price-filter {
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}
.ts-price-filter form,
.ts-price-filter div {
    max-width: 100% !important;
    box-sizing: border-box !important;
}
.ts-price-input {
    width: 100% !important;
    max-width: calc(50% - 16px) !important;
    box-sizing: border-box !important;
    padding: 10px 14px !important;
    border: 1px solid rgba(0,0,0,0.1) !important;
    border-radius: 10px !important;
    font-size: 0.9rem !important;
    background: #f9f7f4 !important;
}
.ts-price-apply {
    width: 100% !important;
    box-sizing: border-box !important;
    margin-top: 12px !important;
    padding: 12px !important;
    background: #1e4620 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    cursor: pointer !important;
}
/* Generic WooCommerce price filter widget overflow fix */
.widget_price_filter,
.woocommerce-widget-price-filter {
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}
.widget_price_filter input[type="text"],
.widget_price_filter input[type="number"] {
    max-width: calc(50% - 12px) !important;
    box-sizing: border-box !important;
}
