
:root {
    color-scheme: dark;
    --jw-red: #DC2626;
    --jw-black: #0A0A0A;
    --jw-surface: #181818;
    --jw-border: #333333;
    --jw-text: #FFFFFF;
}

html, body, body.jw-site {
    background: #0A0A0A !important;
    color: #FFFFFF !important;
}

.jw-header, .jw-header-main,
.jw-nav, .jw-nav-inner,
.jw-footer, .jw-bottom-nav,
.jw-drawer, .jw-drawer-head,
.jw-drawer-body {
    background: #111111 !important;
    color: #FFFFFF !important;
}

.jw-promo,
.jw-nav-categories,
.jw-nav-sale,
.jw-cart-count,
.jw-support-float {
    background: #DC2626 !important;
    color: #FFFFFF !important;
}

.jw-site a {
    color: inherit;
}

.jw-site a:hover {
    color: #EF4444;
}

.jw-site button,
.jw-site input,
.jw-site select,
.jw-site textarea {
    color: #FFFFFF;
}

.jw-site input,
.jw-site select,
.jw-site textarea,
.jw-search-form {
    background: #202020 !important;
    border-color: #383838 !important;
}

.jw-site input::placeholder,
.jw-site textarea::placeholder {
    color: #AAAAAA;
}

.jw-site button:focus-visible,
.jw-site a:focus-visible,
.jw-site input:focus-visible {
    outline: 2px solid #EF4444;
    outline-offset: 2px;
}

.jw-site ::selection {
    background: #DC2626;
    color: #FFFFFF;
}

.jw-site .jw-footer a:hover,
.jw-site .jw-nav a:hover {
    color: #EF4444 !important;
}

.jw-site .jw-drawer {
    border-color: #333333;
}

.jw-site .jw-footer,
.jw-site .jw-bottom-nav {
    border-color: #333333 !important;
}

/* Black & Red Storefront */
body.jw-site {
    --jw-red: #dc2626;
    --jw-deep: #991b1b;
    --jw-ink: #f5f5f5;
    --jw-muted: #a3a3a3;
    --jw-line: #333333;
    --jw-soft: #202020;
    color-scheme: dark;
}

body.jw-site,
body.jw-shop-home,
.jw-home {
    background: #0a0a0a !important;
    color: #f5f5f5 !important;
}

.jw-home .jw-product,
.jw-blog-card,
.jw-promo-card,
.jw-hero,
.jw-category-circle,
.jw-quicklinks a,
.jw-rail-controls button,
.jw-icon-button,
.jw-hero-controls {
    background: #181818 !important;
    border-color: #333333 !important;
    color: #f5f5f5 !important;
}

.jw-product-image,
.jw-blog-placeholder,
.jw-designed-slide,
.jw-orbit,
.jw-hero-tile {
    background: #202020 !important;
}

.jw-product-price strong,
.jw-product-category,
.jw-product-price small,
.jw-product-price > span,
.jw-promo-card p,
.jw-hero-copy p,
.jw-hero-label,
.jw-footer-main h2 {
    color: #e5e5e5 !important;
}

.jw-category:nth-child(n) .jw-category-circle {
    background: #202020 !important;
    border-color: #383838 !important;
}

.jw-deals {
    background: #991b1b !important;
}

.jw-discount,
.jw-home .jw-button {
    background: #dc2626 !important;
    color: #ffffff !important;
}

.jw-footer-main a,
.jw-footer-main p,
.jw-bottom-nav {
    color: #d4d4d4 !important;
}

.jw-product:hover,
.jw-blog-card:hover {
    border-color: #dc2626 !important;
}

.jw-product-image img,
.jw-category-circle img,
.jw-promo-card img {
    background: transparent !important;
}


/* Smooth UI */
.jw-site {
    --jw-radius: 14px;
}

.jw-site :is(
    a, button, input, select, textarea,
    .jw-product, .jw-blog-card,
    .jw-category-circle, .jw-promo-card,
    .jw-icon-button, .jw-search-form
) {
    transition:
        color .25s ease,
        background-color .25s ease,
        border-color .25s ease,
        box-shadow .3s ease,
        transform .3s ease;
}

.jw-site :is(
    .jw-product, .jw-blog-card,
    .jw-promo-card, .jw-icon-button,
    .jw-search-form, .jw-home .jw-button
) {
    border-radius: 14px;
}

.jw-hero,
.jw-designed-slide {
    border-radius: 18px;
}

@media (hover: hover) {
    .jw-home .jw-product:hover,
    .jw-blog-card:hover,
    .jw-promo-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 30px rgba(220,38,38,.12);
    }

    .jw-category:hover .jw-category-circle {
        transform: translateY(-5px) scale(1.04);
        border-color: #dc2626 !important;
        box-shadow: 0 8px 24px rgba(220,38,38,.15);
    }

    .jw-icon-button:hover {
        transform: translateY(-2px);
        border-color: #dc2626 !important;
    }

    .jw-home .jw-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(220,38,38,.3);
    }

    .jw-nav-inner > a:hover {
        color: #ef4444 !important;
    }
}

.jw-search-form:focus-within {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220,38,38,.12);
}

@media (prefers-reduced-motion: reduce) {
    .jw-site *,
    .jw-site *::before,
    .jw-site *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}


/* Smooth Drawer Animation */
#jw-drawer {
    transform: translateX(105%);
    opacity: 0;
    transition:
        transform 350ms cubic-bezier(.22,1,.36,1),
        opacity 250ms ease,
        overlay 350ms allow-discrete,
        display 350ms allow-discrete;
    will-change: transform;
}

#jw-drawer[open] {
    transform: translateX(0);
    opacity: 1;
}

@starting-style {
    #jw-drawer[open] {
        transform: translateX(105%);
        opacity: 0;
    }
}

#jw-drawer::backdrop {
    background: rgba(0,0,0,0);
    transition:
        background 350ms ease,
        overlay 350ms allow-discrete,
        display 350ms allow-discrete;
}

#jw-drawer[open]::backdrop {
    background: rgba(0,0,0,.75);
}

@starting-style {
    #jw-drawer[open]::backdrop {
        background: rgba(0,0,0,0);
    }
}

@media (prefers-reduced-motion: reduce) {
    #jw-drawer,
    #jw-drawer::backdrop {
        transition: none !important;
    }
}


/* Desktop Navigation */
.jw-site .jw-nav,
.jw-site .jw-nav-inner {
    background: #111111 !important;
}

.jw-site .jw-nav-inner > a {
    background: transparent !important;
    color: #f5f5f5 !important;
    border-radius: 8px;
    transition: color .25s ease, background-color .25s ease;
}

.jw-site .jw-nav-inner > a:hover {
    background: #242424 !important;
    color: #ff4545 !important;
}

.jw-site .jw-nav .jw-nav-sale {
    background: transparent !important;
    color: #ff4545 !important;
    font-weight: 700;
}

.jw-site .jw-nav .jw-nav-sale:hover {
    background: #3b1717 !important;
    color: #ffffff !important;
}

.jw-site .jw-nav-categories {
    background: #dc2626 !important;
    color: #ffffff !important;
    border: 0 !important;
    border-radius: 8px;
    padding: 8px 14px !important;
}

.jw-site .jw-nav-categories:hover {
    background: #b91c1c !important;
    color: #ffffff !important;
}

/* Mobile Navigation */
@media (max-width: 767px) {
    .jw-site .jw-bottom-nav {
        background: #111111 !important;
        border-top: 1px solid #333333 !important;
    }

    .jw-site .jw-bottom-nav a,
    .jw-site .jw-bottom-nav button {
        color: #e5e5e5 !important;
        background: transparent !important;
    }

    .jw-site .jw-bottom-nav [aria-current="page"] {
        color: #ff4545 !important;
    }
}


/* Center Enamad in Footer */
.jw-footer .jw-enamad {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    padding: 25px 0 !important;
    text-align: center !important;
    box-sizing: border-box;
}

.jw-footer .jw-enamad a {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.jw-footer .jw-enamad img {
    display: block;
    max-width: 110px;
    height: auto;
}


/* Professional Deals Slider */

.jw-site .jw-deals {
    display: flex;
    align-items: stretch;
    gap: 16px;
    padding: 18px !important;
    border-radius: 16px;
}

.jw-site .jw-deals-heading {
    flex: 0 0 175px;
    padding: 16px 4px;
    justify-content: center;
    gap: 12px;
}

.jw-site .jw-deal-track {
    display: flex;
    align-items: stretch;
    gap: 12px;
    min-width: 0;
    padding: 0 0 8px;
    margin: 0;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.jw-site .jw-deal-track > .jw-product {
    flex: 0 0 190px;
    width: 190px;
    height: auto;
    align-self: stretch;
    border-radius: 12px !important;
}

.jw-site .jw-deal-track .jw-product-image {
    aspect-ratio: auto;
    height: 175px;
    padding: 10px;
    overflow: hidden;
}

.jw-site .jw-deal-track .jw-product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.jw-site .jw-deal-track .jw-product-body {
    flex: 1;
    padding: 12px;
}

.jw-site .jw-deal-track .jw-product-body h3 {
    min-height: 42px;
    margin-bottom: 8px !important;
    line-height: 1.8;
}

.jw-site .jw-deal-track .jw-product-price {
    min-height: 42px;
}

@media (max-width: 1050px) {
    .jw-site .jw-deals-heading {
        flex-basis: 145px;
    }

    .jw-site .jw-deal-track > .jw-product {
        flex-basis: 175px;
        width: 175px;
    }

    .jw-site .jw-deal-track .jw-product-image {
        height: 160px;
    }
}

@media (max-width: 767px) {
    .jw-site .jw-deals {
        gap: 10px;
        padding: 12px !important;
    }

    .jw-site .jw-deals-heading {
        flex-basis: 95px;
        padding: 8px 0;
    }

    .jw-site .jw-deals-heading h2 {
        font-size: 15px;
    }

    .jw-site .jw-deal-track {
        gap: 8px;
    }

    .jw-site .jw-deal-track > .jw-product {
        flex: 0 0 145px;
        width: 145px;
    }

    .jw-site .jw-deal-track .jw-product-image {
        height: 135px;
    }

    .jw-site .jw-deal-track .jw-product-body {
        padding: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .jw-site .jw-deal-track {
        scroll-behavior: auto;
    }
}


/* Standard Product Rail */

.jw-home .jw-product-track:not(.jw-deal-track) {
    display: flex;
    align-items: stretch;
    gap: 14px;
    padding-block: 5px 16px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.jw-home .jw-product-track:not(.jw-deal-track) > .jw-product {
    flex: 0 0 calc((100% - 56px) / 5);
    min-width: 0;
    height: auto;
    border-radius: 14px !important;
    overflow: hidden;
    scroll-snap-align: start;
}

.jw-home .jw-product-track:not(.jw-deal-track) .jw-product-image {
    width: 100%;
    height: 210px;
    aspect-ratio: auto;
    padding: 12px;
    background: #202020 !important;
    overflow: hidden;
}

.jw-home .jw-product-track:not(.jw-deal-track) .jw-product-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
}

.jw-home .jw-product-track:not(.jw-deal-track) .jw-product-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 13px;
}

.jw-home .jw-product-track:not(.jw-deal-track) .jw-product-body h3 {
    font-size: 12px;
    line-height: 1.9;
    min-height: 46px;
    margin: 6px 0 10px !important;
}

.jw-home .jw-product-track:not(.jw-deal-track) .jw-product-price {
    margin-top: auto;
    min-height: 48px;
}

@media (max-width: 1050px) {
    .jw-home .jw-product-track:not(.jw-deal-track) > .jw-product {
        flex-basis: calc((100% - 28px) / 3);
    }

    .jw-home .jw-product-track:not(.jw-deal-track) .jw-product-image {
        height: 180px;
    }
}

@media (max-width: 767px) {
    .jw-home .jw-product-track:not(.jw-deal-track) {
        gap: 10px;
    }

    .jw-home .jw-product-track:not(.jw-deal-track) > .jw-product {
        flex: 0 0 calc((100% - 10px) / 2);
    }

    .jw-home .jw-product-track:not(.jw-deal-track) .jw-product-image {
        height: 145px;
        padding: 8px;
    }

    .jw-home .jw-product-track:not(.jw-deal-track) .jw-product-body {
        padding: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .jw-home .jw-product-track:not(.jw-deal-track) {
        scroll-behavior: auto;
    }
}


/* About Page - Dark Red Theme */

.jw-site .as-inner-page,
.jw-site .as-about-page {
    background: #0a0a0a !important;
    color: #f5f5f5 !important;
}

.jw-site .as-inner-hero {
    background: linear-gradient(135deg, #181818, #270d10) !important;
    color: #ffffff !important;
    border-bottom: 1px solid #383838;
}

.jw-site .as-inner-hero h1,
.jw-site .as-about-intro h2,
.jw-site .as-about-grid h3,
.jw-site .as-about-contact h2 {
    color: #ffffff !important;
}

.jw-site .as-inner-hero p,
.jw-site .as-about-intro p,
.jw-site .as-about-grid p {
    color: #c9c9c9 !important;
}

.jw-site .as-inner-hero span,
.jw-site .as-about-intro span,
.jw-site .as-about-contact span {
    color: #ff5555 !important;
}

.jw-site .as-about-grid article {
    background: #181818 !important;
    color: #f5f5f5 !important;
    border: 1px solid #333333 !important;
    border-radius: 16px !important;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.jw-site .as-about-grid strong {
    color: #ff5555 !important;
}

.jw-site .as-about-contact {
    background: #181818 !important;
    color: #ffffff !important;
    border: 1px solid #383838 !important;
    border-radius: 18px !important;
}

.jw-site .as-about-contact a {
    background: #dc2626 !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    transition: background-color .25s ease, transform .25s ease;
}

@media (hover: hover) {
    .jw-site .as-about-grid article:hover {
        transform: translateY(-5px);
        border-color: #dc2626 !important;
        box-shadow: 0 12px 28px rgba(220,38,38,.12);
    }

    .jw-site .as-about-contact a:hover {
        background: #b91c1c !important;
        transform: translateY(-2px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .jw-site .as-about-grid article,
    .jw-site .as-about-contact a {
        transition: none !important;
    }
}


/* Contact, Blog & Article Dark Theme */

.jw-site .as-contact-page,
.jw-site .as-blog-page,
.jw-site .as-blog-content,
.jw-site .blog-detail-page,
.jw-site .related-posts {
    background: #0a0a0a !important;
    color: #f5f5f5 !important;
}

.jw-site .as-blog-hero {
    background: linear-gradient(135deg,#181818,#301013) !important;
    color: #fff !important;
}

.jw-site :is(
    .as-contact-info,
    .as-contact-form,
    .as-contact-item,
    .as-blog-card,
    .blog-sidebar-box,
    .blog-sidebar-author,
    .blog-sidebar-cta,
    .blog-detail-author,
    .blog-share-box,
    .blog-comment,
    .blog-comment-form-box,
    .related-posts .blog-card
) {
    background: #181818 !important;
    color: #f5f5f5 !important;
    border: 1px solid #333 !important;
    border-radius: 16px !important;
}

.jw-site :is(
    .as-contact-info h2,
    .as-contact-form h2,
    .as-blog-hero h1,
    .as-blog-heading h2,
    .as-blog-card h2,
    .blog-detail-header h1,
    .blog-detail-content h2,
    .blog-detail-content h3,
    .blog-comments-header h2,
    .blog-sidebar-box h3,
    .blog-comment-form-box h3,
    .related-posts h2,
    .related-posts h3
) {
    color: #fff !important;
}

.jw-site :is(
    .as-contact-info p,
    .as-blog-hero p,
    .as-blog-card p,
    .blog-detail-excerpt,
    .blog-detail-content,
    .blog-detail-content p,
    .blog-comment-body p,
    .blog-sidebar-author p,
    .blog-comments-header p
) {
    color: #d1d1d1 !important;
}

.jw-site :is(
    .as-contact-label,
    .as-blog-category,
    .as-blog-heading span,
    .blog-detail-category,
    .blog-card-category,
    .blog-card-more
) {
    color: #ff5555 !important;
}

.jw-site :is(
    .as-contact-form input,
    .as-contact-form textarea,
    .blog-comment-form input,
    .blog-comment-form textarea,
    .blog-search input
) {
    background: #242424 !important;
    border: 1px solid #444 !important;
    color: #fff !important;
    border-radius: 10px !important;
}

.jw-site :is(
    .as-contact-form input,
    .as-contact-form textarea,
    .blog-comment-form input,
    .blog-comment-form textarea,
    .blog-search input
):focus {
    border-color: #dc2626 !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(220,38,38,.15);
}

.jw-site :is(
    .as-contact-form button,
    .blog-comment-form button,
    .blog-sidebar-cta a
) {
    background: #dc2626 !important;
    color: #fff !important;
    border-color: #dc2626 !important;
    border-radius: 10px !important;
}

.jw-site :is(
    .as-blog-card,
    .related-posts .blog-card,
    .as-contact-item
) {
    transition: transform .3s ease, border-color .3s ease,
                box-shadow .3s ease;
}

@media (hover:hover) {
    .jw-site :is(
        .as-blog-card,
        .related-posts .blog-card,
        .as-contact-item
    ):hover {
        transform: translateY(-4px);
        border-color: #dc2626 !important;
        box-shadow: 0 10px 26px rgba(220,38,38,.12);
    }
}

@media (prefers-reduced-motion:reduce) {
    .jw-site :is(
        .as-blog-card,
        .related-posts .blog-card,
        .as-contact-item
    ) {
        transition: none !important;
    }
}



/* Admin Image Only Hero - Final */
body.jw-site.jw-shop-home .jw-hero {
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden;
    background: transparent !important;
    border-radius: 14px;
}

body.jw-site.jw-shop-home .jw-hero-track {
    display: flex;
    width: 100%;
    height: auto !important;
}

body.jw-site.jw-shop-home .jw-hero-slide {
    flex: 0 0 100%;
    width: 100%;
    height: auto !important;
    aspect-ratio: 1717 / 916 !important;
    padding: 0 !important;
    background: transparent !important;
}

body.jw-site.jw-shop-home .jw-image-slide picture,
body.jw-site.jw-shop-home .jw-image-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    background: transparent !important;
}

/* Category Images Only */
.jw-home .jw-category-track {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    overflow: visible;
    padding: 8px 0 20px;
}

.jw-home .jw-category-image-only {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 0;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background: transparent;
    transition: transform .3s ease;
}

.jw-home .jw-category-image-only img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    padding: 0;
    background: transparent !important;
    border: none !important;
    border-radius: 12px;
}

@media (hover: hover) {
    .jw-home .jw-category-image-only:hover {
        transform: translateY(-4px);
    }
}

@media (max-width: 1024px) {
    .jw-home .jw-category-track {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .jw-home .jw-category-track {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .jw-home .jw-category-image-only {
        transition: none;
    }
}


/* Category image and title */
.jw-home .jw-category-image-only {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    text-align: center;
    background: transparent !important;
}

.jw-home .jw-category-image-only img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 12px;
    background: transparent !important;
}

.jw-home .jw-category-image-only strong {
    display: block;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.8;
}

