:root {
    --ff-overlay: rgba(2, 6, 23, 0.48);
    --ff-border: rgba(148, 163, 184, 0.25);
}

html {
    scroll-behavior: smooth;
}

body,
header,
nav,
footer,
section,
aside,
div {
    transition: background-color 0.28s ease, color 0.28s ease;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background: #64748b;
    border-radius: 999px;
}

.ff-inline-menu,
.ff-inline-menu ul,
.menu,
.sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ff-inline-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ff-inline-menu li a,
footer .menu li a {
    transition: color 0.2s ease;
}

.ff-inline-menu li a:hover,
footer .menu li a:hover {
    color: #f97316;
}

.ff-logo-image .custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.ff-logo-image img {
    max-height: 48px;
    width: auto;
}

.ff-reveal {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
    transition: opacity 0.56s ease, transform 0.56s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ff-reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.ff-mega-panel {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(0, 10px, 0) scale(0.985);
    transition: opacity 0.2s ease, transform 0.24s ease, visibility 0.24s ease;
}

.ff-mega-panel.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0) scale(1);
}

.ff-mobile-panel {
    display: none;
}

.ff-mobile-panel.is-open {
    display: block;
}

.ff-cart-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background: var(--ff-overlay);
    backdrop-filter: blur(3px);
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.ff-cart-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.ff-cart-drawer {
    transform: translate3d(100%, 0, 0);
    transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ff-cart-drawer.is-open {
    transform: translate3d(0, 0, 0);
}

.ff-no-scroll {
    overflow: hidden;
}

.ff-content > * + * {
    margin-top: 1.25rem;
}

.ff-content h2,
.ff-content h3,
.ff-content h4 {
    line-height: 1.1;
    font-weight: 900;
}

.ff-content h2 {
    margin-top: 2rem;
    font-size: clamp(1.75rem, 3vw, 2.4rem);
}

.ff-content h3 {
    margin-top: 1.75rem;
    font-size: clamp(1.4rem, 2vw, 1.85rem);
}

.ff-content p,
.ff-content li,
.ff-content blockquote {
    color: rgb(71 85 105);
    font-size: 1rem;
    line-height: 1.8;
}

.dark .ff-content p,
.dark .ff-content li,
.dark .ff-content blockquote {
    color: rgb(203 213 225);
}

.ff-content ul,
.ff-content ol {
    padding-left: 1.5rem;
}

.ff-content blockquote {
    border-left: 4px solid #f97316;
    padding-left: 1rem;
    font-style: italic;
}

.ff-content img,
.ff-content .wp-block-image img,
.ff-content .wp-block-cover,
.ff-content .wp-block-gallery {
    border-radius: 1.5rem;
}

.ff-content table {
    width: 100%;
    border-collapse: collapse;
}

.ff-home-builder .alignwide {
    max-width: min(1280px, calc(100% - 2rem));
    margin-left: auto;
    margin-right: auto;
}

.ff-home-builder .alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.ff-home-builder .wp-block-group:not(.alignfull):not(.alignwide),
.ff-home-builder .wp-block-columns:not(.alignfull):not(.alignwide),
.ff-home-builder .wp-block-cover:not(.alignfull):not(.alignwide),
.ff-home-builder .wp-block-media-text:not(.alignfull):not(.alignwide),
.ff-home-builder > p,
.ff-home-builder > h1,
.ff-home-builder > h2,
.ff-home-builder > h3,
.ff-home-builder > ul,
.ff-home-builder > ol {
    max-width: min(1280px, calc(100% - 2rem));
    margin-left: auto;
    margin-right: auto;
}

.ff-home-builder .wp-block-image img,
.ff-home-builder .wp-block-cover,
.ff-home-builder .wp-block-media-text {
    border-radius: 1.5rem;
}

.ff-home-builder .wp-block-button__link {
    border-radius: 999px;
    font-weight: 700;
}

.ff-home-builder .wp-block-heading {
    line-height: 1.05;
}

.ff-home-builder .wp-block-shortcode {
    margin-top: 0;
    margin-bottom: 0;
}

.ff-content th,
.ff-content td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

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

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    border: 0;
    border-radius: 1rem;
    padding: 1rem 1.25rem 1rem 3rem;
    background: rgb(255 247 237);
    color: rgb(154 52 18);
}

.woocommerce-error {
    background: rgb(254 242 242);
    color: rgb(153 27 27);
}

.dark .woocommerce-message,
.dark .woocommerce-info {
    background: rgba(249, 115, 22, 0.12);
    color: rgb(254 215 170);
}

.dark .woocommerce-error {
    background: rgba(239, 68, 68, 0.12);
    color: rgb(254 202 202);
}

.woocommerce div.product div.images img,
.woocommerce div.product div.images .flex-control-thumbs img {
    border-radius: 1.5rem;
}

.woocommerce div.product div.images .woocommerce-product-gallery__image a {
    display: block;
    cursor: zoom-in;
}

.ff-product-lightbox {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
}

.ff-product-lightbox.is-open {
    display: block;
}

.ff-product-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.86);
    backdrop-filter: blur(8px);
}

.ff-product-lightbox__dialog {
    position: relative;
    z-index: 1;
    width: min(92vw, 1400px);
    height: min(90vh, 980px);
    margin: 5vh auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
}

.ff-product-lightbox__figure {
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.ff-product-lightbox__image {
    display: block;
    max-width: 100%;
    max-height: calc(90vh - 4rem);
    margin: 0 auto;
    object-fit: contain;
    border-radius: 1.5rem;
    box-shadow: 0 28px 90px rgba(2, 6, 23, 0.45);
}

.ff-product-lightbox__caption {
    min-height: 1.5rem;
    text-align: center;
    color: rgb(226 232 240);
    font-size: 0.95rem;
}

.ff-product-lightbox__close,
.ff-product-lightbox__nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(15, 23, 42, 0.72);
    color: rgb(248 250 252);
    backdrop-filter: blur(12px);
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ff-product-lightbox__close:hover,
.ff-product-lightbox__nav:hover {
    background: rgba(249, 115, 22, 0.92);
    border-color: rgba(249, 115, 22, 1);
}

.ff-product-lightbox__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
}

.ff-product-lightbox__nav[hidden] {
    display: none;
}

.woocommerce div.product form.cart {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.woocommerce div.product form.cart .quantity.ff-quantity,
.woocommerce .quantity.ff-quantity {
    display: inline-flex;
    align-items: center;
    gap: 0;
    overflow: hidden;
    margin-right: 0.75rem;
}

.woocommerce div.product form.cart .quantity.ff-quantity .qty,
.woocommerce .quantity.ff-quantity .qty {
    width: 3rem;
    min-height: 40px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    text-align: center;
    box-shadow: none;
    -moz-appearance: textfield;
}

.woocommerce div.product form.cart .quantity.ff-quantity .qty::-webkit-outer-spin-button,
.woocommerce div.product form.cart .quantity.ff-quantity .qty::-webkit-inner-spin-button,
.woocommerce .quantity.ff-quantity .qty::-webkit-outer-spin-button,
.woocommerce .quantity.ff-quantity .qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.ff-qty-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 2.5rem;
    background: transparent;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.ff-qty-button:hover {
    color: #f97316;
}

.ff-qty-button:focus-visible,
.woocommerce div.product form.cart .quantity.ff-quantity .qty:focus-visible {
    outline: 2px solid rgba(249, 115, 22, 0.55);
    outline-offset: -2px;
}

.woocommerce div.product .product_title {
    font-size: clamp(2rem, 3vw, 2.5rem);
    line-height: 1.1;
    font-weight: 900;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
    color: rgb(15 23 42);
    font-size: clamp(2rem, 2.8vw, 2.6rem);
    font-weight: 900;
    margin-top: 1rem;
}

.dark .woocommerce div.product p.price,
.dark .woocommerce div.product span.price {
    color: rgb(248 250 252);
}

.woocommerce-product-details__short-description,
.woocommerce-product-rating,
.woocommerce div.product .stock,
.woocommerce div.product .product_meta {
    margin-top: 1rem;
}

.woocommerce-product-rating {
    color: rgb(100 116 139);
}

.dark .woocommerce-product-rating {
    color: rgb(148 163 184);
}

.woocommerce div.product form.cart .quantity .qty,
.woocommerce .quantity .qty,
.woocommerce form .input-text,
.woocommerce form select,
.woocommerce form textarea {
    border-radius: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(248, 250, 252, 0.85);
    padding: 0.75rem 1rem;
    min-height: 46px;
}

.dark .woocommerce div.product form.cart .quantity .qty,
.dark .woocommerce .quantity .qty,
.dark .woocommerce form .input-text,
.dark .woocommerce form select,
.dark .woocommerce form textarea {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(51, 65, 85, 1);
    color: rgb(226 232 240);
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.wc-block-components-button {
    border-radius: 0.9rem;
    background: #f97316;
    color: #fff;
    font-weight: 700;
    padding: 0.9rem 1.4rem;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.wc-block-components-button:hover {
    background: #ea580c;
    color: #fff;
}

.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    width: auto;
    margin: 0;
    float: none;
}

.woocommerce table.shop_table,
.woocommerce-page table.shop_table {
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 1.5rem;
    overflow: hidden;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td,
.woocommerce-page table.shop_table th,
.woocommerce-page table.shop_table td {
    padding: 1rem;
}

.woocommerce form.checkout_coupon,
.woocommerce form.login,
.woocommerce form.register,
.woocommerce .cart-collaterals .cart_totals,
.woocommerce .woocommerce-checkout-review-order,
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
    border-radius: 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.92);
}

.dark .woocommerce form.checkout_coupon,
.dark .woocommerce form.login,
.dark .woocommerce form.register,
.dark .woocommerce .cart-collaterals .cart_totals,
.dark .woocommerce .woocommerce-checkout-review-order,
.dark .woocommerce-account .woocommerce-MyAccount-navigation,
.dark .woocommerce-account .woocommerce-MyAccount-content {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(51, 65, 85, 1);
}

.woocommerce nav.woocommerce-pagination ul {
    border: 0;
    display: flex;
    gap: 0.5rem;
}

.woocommerce nav.woocommerce-pagination ul li {
    border: 0;
}

.woocommerce nav.woocommerce-pagination ul li span,
.woocommerce nav.woocommerce-pagination ul li a,
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(255, 255, 255, 0.92);
}

.pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.pagination .current,
.woocommerce nav.woocommerce-pagination ul li .current {
    background: #f97316;
    border-color: #f97316;
    color: #fff;
}

.ff-ordering select {
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    padding: 0.65rem 2.5rem 0.65rem 1rem;
    background: rgba(248, 250, 252, 0.85);
}

.dark .ff-ordering select {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(51, 65, 85, 1);
    color: rgb(226 232 240);
}

.comment-respond .comment-reply-title,
.comments-title {
    font-size: 1.5rem;
    line-height: 1.2;
    font-weight: 800;
}

.ff-faq-answer {
    display: none;
}

.ff-faq.is-open .ff-faq-answer {
    display: block;
}

.ff-grid-glow {
    background-image:
        radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.22), transparent 26%),
        radial-gradient(circle at 80% 0%, rgba(14, 165, 233, 0.16), transparent 24%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0));
}

.ff-dot-pattern {
    background-image: radial-gradient(rgba(148, 163, 184, 0.18) 1px, transparent 1px);
    background-size: 18px 18px;
}

.ff-brand-logo {
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
}

.dark .ff-brand-logo {
    background: rgba(15, 23, 42, 0.72);
    border-color: rgba(51, 65, 85, 0.9);
}

.ff-hover-rise {
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.ff-hover-rise:hover {
    transform: translate3d(0, -6px, 0);
    box-shadow: 0 18px 44px rgba(2, 6, 23, 0.14);
}

.ff-glass-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.24);
    backdrop-filter: blur(18px);
}

.dark .ff-glass-card {
    background: rgba(15, 23, 42, 0.78);
    border-color: rgba(51, 65, 85, 0.94);
}

.ff-timeline-line::before {
    content: "";
    position: absolute;
    left: 1.15rem;
    top: 3rem;
    bottom: -3rem;
    width: 1px;
    background: linear-gradient(180deg, rgba(249, 115, 22, 0.55), rgba(148, 163, 184, 0.1));
}

.ff-faq[open] summary i {
    transform: rotate(180deg);
}

@media (max-width: 1279px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .ff-product-lightbox__dialog {
        width: calc(100vw - 1rem);
        height: calc(100vh - 1rem);
        margin: 0.5rem auto;
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .ff-product-lightbox__figure {
        padding-top: 3.5rem;
    }

    .ff-product-lightbox__image {
        max-height: calc(100vh - 8rem);
    }

    .ff-product-lightbox__nav {
        position: absolute;
        bottom: 1rem;
        z-index: 2;
    }

    .ff-product-lightbox__nav--prev {
        left: 1rem;
    }

    .ff-product-lightbox__nav--next {
        right: 1rem;
    }

    .ff-homepage section.py-20 {
        padding-top: 3.75rem;
        padding-bottom: 3.75rem;
    }

    .ff-homepage section.py-16,
    .ff-homepage section.py-14 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .ff-homepage section.py-12,
    .ff-homepage section.py-8 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .ff-homepage h1.text-4xl,
    .ff-homepage h1.text-5xl {
        font-size: 2.35rem;
        line-height: 0.98;
    }

    .ff-homepage h2.text-4xl {
        font-size: 2rem;
        line-height: 1.08;
    }

    .ff-homepage h2.text-3xl,
    .ff-homepage h3.text-3xl {
        font-size: 1.75rem;
        line-height: 1.1;
    }

    .ff-homepage h2.text-2xl,
    .ff-homepage h3.text-2xl {
        font-size: 1.375rem;
        line-height: 1.18;
    }

    .ff-homepage p.text-lg {
        font-size: 1rem;
        line-height: 1.6;
    }

    .ff-homepage span.text-4xl,
    .ff-homepage p.text-4xl {
        font-size: 2.2rem;
    }

    .ff-homepage span.text-3xl,
    .ff-homepage p.text-3xl {
        font-size: 1.6rem;
    }

    .ff-homepage section.ff-grid-glow .container {
        padding-top: 4.75rem;
        padding-bottom: 3.5rem;
    }

    .ff-homepage .min-h-\[680px\],
    .ff-homepage .min-h-\[760px\] {
        min-height: auto;
    }

    .ff-homepage .min-h-\[360px\] {
        min-height: 280px;
    }

    .ff-homepage .min-h-\[280px\] {
        min-height: 240px;
    }

    .woocommerce ul.products {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ff-reveal,
    .ff-mega-panel,
    .ff-cart-overlay,
    .ff-cart-drawer {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
