* {
    box-sizing: border-box;
}

i[data-tabler] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

i[data-tabler] svg {
    width: 100%;
    height: 100%;
    fill: none;
}


html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    word-break: break-word;
    font-family: var(--font-segoe-ui-regular);
    background-color: #FFFFFF;
    overflow-x: hidden;
    max-width: 100%;
}

.container {
    max-width: 1310px !important;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

.container-fluid {
    max-width: 100% !important;
    margin: 0 auto;
    padding: 0px clamp(15px, 3vw, 60px);
    width: 100%;
}


a {
    transition: all 0.3s ease-in-out;
}

img {
    max-width: 100%;
    height: auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.form-label {
    font-family: var(--font-segoe-ui-semibold);
    font-size: 14px;
    font-weight: 600;
    color: #68645D;
}

.form-control {
    border-radius: 6px;
    border: 1px solid #DED8CC;
    background: #F7F8FA;
    color: #171717;
    font-family: var(--font-segoe-ui-regular);
    font-size: 14px;
    font-weight: 400;
    padding: 15px 14px;
    height: 51px;
    width: 100%;
    outline: none;
}

.form-control::placeholder {
    color: #757575;
}

.form-control-datetime {
    padding-right: 42px;
}

.form-control-password {
    padding-right: 48px;
}

.form-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #68645D;
    cursor: pointer;
}

.form-password-toggle:hover {
    color: #FF1313;
}

.form-control-datetime::-webkit-calendar-picker-indicator {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.form-datetime-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    pointer-events: none;
}

.form-control-muted {
    background: #f0f0f0 !important;
    color: #757575;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%2368645D' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    color: #171717;
}

textarea.form-control {
    height: auto;
    min-height: 169px;
    resize: vertical;
}

.form-upload {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 111px;
    padding: 14px;
    border-radius: 6px;
    border: 1px solid #DED8CC;
    background: #F7F8FA;
    cursor: pointer;
    text-align: center;
}

.form-upload input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.form-file-chip {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 13px;
    width: 100%;
    max-width: fit-content;
    padding: 12px 10px;
    border-radius: 6px;
    border: 1px solid #DED8CC;
    background: #F8F8F8;
}

/* Dashboard sidebar: stay in viewport and scroll internally */
.site-sidebar {
    position: sticky;
    top: 0;
    max-height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #ff7575 #f2f2f2;
}

.site-sidebar::-webkit-scrollbar {
    width: 6px;
}

.site-sidebar::-webkit-scrollbar-track {
    background: #f2f2f2;
    border-radius: 999px;
}

.site-sidebar::-webkit-scrollbar-thumb {
    background: #FF1313;
    border-radius: 999px;
}

.site-sidebar::-webkit-scrollbar-thumb:hover {
    background: #D70501;
}

.site-sidebar .sidebar-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.sidebar-backdrop {
    display: none;
}

@media (max-width: 1023px) {
    .site-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 120;
        width: min(288px, 88vw);
        max-height: 100dvh;
        padding-top: 15px;
        transform: translateX(-105%);
        transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
        box-shadow: 12px 0 40px rgba(0, 0, 0, 0.18);
        border-right: 1px solid #e5e7eb;
    }

    body:has(#sidebar-toggle:checked) .site-sidebar {
        transform: translateX(0);
    }

    body:has(#sidebar-toggle:checked) {
        overflow: hidden;
    }

    .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 115;
        background: rgba(0, 0, 0, 0.55);
        backdrop-filter: blur(3px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        cursor: pointer;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    body:has(#sidebar-toggle:checked) .sidebar-backdrop {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #e8e8e8;
    background: #f2f2f2;
    color: #000;
    font-family: var(--font-segoe-ui-regular);
    font-size: 14px;
    line-height: 1;
    text-transform: capitalize;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pagination-btn:hover {
    background: #e8e8e8;
}

.pagination-btn.is-active {
    background: #000;
    border-color: #e8e8e8;
    color: #fff;
}

.pagination-btn.is-active:hover {
    background: #111;
}

.pagination-btn.is-next,
.pagination-btn.is-prev {
    background: #111111;
    border-color: #111111;
    color: #fff;
}

.pagination-btn.is-next:hover,
.pagination-btn.is-prev:hover {
    background: #000;
}

.btn {
    position: relative;
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-family: var(--font-segoe-ui-bold);
    font-size: 16px;
    font-weight: 700;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
    transform: translateY(0) scale(1);
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        background-color 0.3s ease,
        color 0.3s ease;
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(120deg,
            transparent 0%,
            rgba(255, 255, 255, 0.35) 45%,
            transparent 70%);
    transform: translateX(-130%) skewX(-18deg);
    transition: transform 0.65s ease;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
}

.btn:hover::before {
    transform: translateX(130%) skewX(-18deg);
}

.btn:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-primary {
    color: #FFFFFF;
    background: #FF1313;
    background-size: 200% 200%;
}

.btn-primary:hover {
    background: #D70501;
    background-position: 100% 0;
}

.btn-black {
    color: #FFFFFF;
    background: #000000;
}

.btn-black:hover {
    background: #171717;
}

.btn-white {
    color: #000;
    background: #fff;
}

.btn-white:hover {
    background: #f2f2f2;
}

.btn-outline {
    color: #000;
    background: #fff;
    border: 1px solid #000;
}

.btn-outline:hover {
    background: #f2f2f2;
}

.btn-outline-primary {
    color: #ff1313;
    background: #fff;
    border: 1px solid #ff1313;
}

.btn-outline-primary:hover {
    background: #fff5f5;
    color: #d70501;
    border-color: #d70501;
}

.form-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    user-select: none;
}

.form-toggle .form-label {
    cursor: default;
}

.form-toggle-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
}

.form-toggle-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
}

.form-toggle-track {
    position: relative;
    width: 36px;
    height: 20px;
    border-radius: 12px;
    background: #f3f3f3;
    padding: 2px;
    box-sizing: border-box;
    transition: background-color 0.2s ease;
}

.form-toggle-track::after {
    content: "";
    display: block;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease;
}

.form-toggle-input:checked+.form-toggle-track {
    background: #ff1313;
}

.form-toggle-input:checked+.form-toggle-track::after {
    transform: translateX(16px);
}

.form-toggle-input:focus-visible+.form-toggle-track {
    outline: 2px solid #ff1313;
    outline-offset: 2px;
}

/* Seller/Vendor switch: keep track red in both states */
[data-role-switch] .role-switch-track {
    background: #ff1313;
}

[data-role-switch] .form-toggle-input:not(:checked)+.role-switch-track {
    background: #ff1313;
}

.btn-primary:hover {
    background-position: 100% 0;
}

/* Product / equipment card CTAs (Figma h-10) */
.product-card .btn {
    min-height: 40px;
    height: 40px;
    padding: 12px 20px;
    font-size: 14px;
    border-radius: 6px;
}


/* Hero pagination pills */
.hero-pagination {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-bullet {
    display: inline-block;
    width: 28px;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.70);
    cursor: pointer;
    transition:
        width 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        background-color 0.35s ease,
        opacity 0.35s ease,
        transform 0.35s ease;
}

.hero-bullet:hover {
    background: rgba(255, 255, 255, 0.75);
    transform: scaleY(1.4);
}

.hero-bullet-active {
    background: #FF1313;
    opacity: 1;
    animation: hero-bullet-pulse 1.6s ease-in-out infinite;
}

@keyframes hero-bullet-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 19, 19, 0.45);
    }

    50% {
        box-shadow: 0 0 0 4px rgba(255, 19, 19, 0);
    }
}

/* Secondary image gallery preview */
.file-upload-gallery-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
}

.file-upload-gallery-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    color: #ffffff;
    background: #d9251d;
    transition: all 0.2s ease-in-out;
    border: none;
    cursor: pointer;
}

.file-upload-gallery-remove:hover {
    background: #b91c1c;
    transform: scale(1.1);
}

.file-upload-gallery-primary {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 6px;
    border: 0;
    background: #000;
    color: #fff;
    font-family: "Segoe UI", sans-serif;
    font-weight: 700;
    font-size: 7px;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
}

/* FAQ accordion */
.faq-accordion .faq-panel {
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
}

.faq-accordion .faq-item.is-open .faq-panel {
    height: auto;
}

/* Product filters: accordion below lg, always visible on lg+ */
.product-filters>summary {
    list-style: none;
}

.product-filters>summary::-webkit-details-marker {
    display: none;
}

.product-filters-chevron {
    transition: transform 0.2s ease;
}

.product-filters[open] .product-filters-chevron {
    transform: rotate(180deg);
}

.product-filters-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-top: 15px;
}

.product-filters-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-filters-reset-mobile {
    display: none;
}

.price-range {
    position: relative;
    width: 100%;
    height: 24px;
    user-select: none;
    touch-action: none;
}

.price-range-track,
.price-range-fill {
    position: absolute;
    top: 50%;
    height: 4px;
    margin-top: -2px;
    border-radius: 999px;
    pointer-events: none;
}

.price-range-track {
    left: 8px;
    right: 8px;
    background: #f0f0f0;
}

.price-range-fill {
    background: #ff1313;
}

.price-range-thumb {
    position: absolute;
    top: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0;
    padding: 0;
    border: 2px solid #ff1313;
    border-radius: 50%;
    background: #fff;
    box-sizing: border-box;
    cursor: grab;
    z-index: 2;
    transform: translateX(-50%);
}

.price-range-thumb:active {
    cursor: grabbing;
}

.price-range-thumb:focus-visible {
    outline: 2px solid #ff1313;
    outline-offset: 2px;
}

.vendor-category-swiper {
    width: 100%;
    min-height: 220px;
    overflow: hidden;
}

.vendor-category-swiper .swiper-slide {
    height: auto !important;
}

.vendor-cat-thumb {
    width: 146px;
    height: 146px;
    border-radius: 73px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    background: #111111;
    flex-shrink: 0;
}

.vendor-cat-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
}

/* Reusable site modal (<dialog>) */
.site-modal {
    border: 0;
    padding: 20px 15px;
    margin: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    background: transparent;
    overflow: hidden;
}

.site-modal::backdrop {
    background: rgba(0, 0, 0, 0.8);
    background: color(display-p3 0.000 0.000 0.000 / 0.8);
}

.site-modal[open] {
    display: grid;
    place-items: center;
}

.site-modal-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 650px;
    max-height: calc(100dvh - 40px);
    min-height: 0;
    overflow: hidden;
    background: #ffffff;
    padding: 30px clamp(15px, 3vw, 30px);
    border-radius: 16px;
    position: relative;
}

.site-modal-title {
    margin: 0;
    font-family: var(--font-impact-regular);
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 400;
    line-height: 1.1;
    text-align: center; 
    text-transform: uppercase;
    color: #171717;
}

.site-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 100px;
    background: #f2f2f2;
    color: #171717;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.site-modal-close:hover {
    background: #e8e8e8;
    color: #ff1313;
}

.site-modal-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.vendor-sellers-swiper {
    width: 100%;
    overflow: hidden;
}

.vendor-sellers-swiper .swiper-slide {
    height: auto !important;
}

.preview-device-scaler {
    position: relative;
    width: 100%;
    min-height: 480px;
}

.preview-device-frame {
    display: block;
    border: 0;
    background: #fff;
    transform-origin: top left;
    pointer-events: auto;
}