/*
Theme Name: Toolbay
Theme URI: https://toolbay.uk
Author: Toolbay
Description: Toolbay storefront based on the Shopperr theme. Black header and footer with RAL 5021 water blue (#007577) accents.
Version: 4.2.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: shopperr
*/

/* Toolbay theme - mobile-first storefront */
:root {
    color-scheme: light;
    --shopperr-bg: #ffffff;
    --shopperr-bg-muted: #f9fafb;
    --shopperr-surface: #ffffff;
    --shopperr-text: #111827;
    --shopperr-text-muted: #6b7280;
    --shopperr-border: #e5e7eb;
    --shopperr-accent: #007577;
    --shopperr-page-max: 96rem;
}

html[data-theme="dark"] {
    color-scheme: dark;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    background: var(--shopperr-bg);
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    overflow-x: hidden;
    width: 100%;
    background: var(--shopperr-bg);
    color: var(--shopperr-text);
}

img, video, svg {
    max-width: 100%;
    height: auto;
}

/* Touch targets — real controls only */
button, input[type="submit"], input[type="button"], select {
    min-height: 44px;
}
button:active { transform: scale(0.98); }

/* Shop page shell — prevents horizontal blowout */
.shop-page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}
.shop-page__inner {
    width: 100%;
    max-width: var(--shopperr-page-max);
    margin: 0 auto;
    padding: 1rem 1rem 1.5rem;
}
@media (min-width: 640px) {
    .shop-page__inner {
        padding: 1.5rem 1.25rem 2rem;
    }
}
@media (min-width: 1024px) {
    .shop-page__inner {
        padding: 1.5rem 1rem 2rem;
    }
}

/* Product grids */
.products {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.75rem !important;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
@media (min-width: 640px) {
    .products { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 1rem !important; }
}
@media (min-width: 1024px) {
    .products { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 1.25rem !important; }
}
@media (min-width: 1280px) {
    .products { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
}

:is(.products, .top-products__list) li.product {
    border: 1px solid #f3f4f6;
    border-radius: 0.85rem;
    overflow: hidden;
    background: white;
    transition: box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
}
:is(.products, .top-products__list) li.product:hover {
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    transform: translateY(-2px);
}
:is(.products, .top-products__list) li.product .product-card__title {
    font-size: 0.82rem;
    line-height: 1.35;
    min-height: 2.5em;
}
@media (min-width: 640px) {
    :is(.products, .top-products__list) li.product .product-card__title {
        font-size: 0.95rem;
        min-height: 2.4em;
    }
}

/* Product card footer — compact price + button row */
:is(.products, .top-products__list) li.product .product-card__footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.45rem;
    margin-top: auto;
    padding: 0.65rem 0.75rem 0.75rem;
    border-top: 1px solid #f3f4f6;
    background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
}
@media (min-width: 640px) {
    :is(.products, .top-products__list) li.product .product-card__footer {
        gap: 0.6rem;
        padding: 0.75rem 1rem 1rem;
    }
}

:is(.products, .top-products__list) li.product .product-card__price {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.2;
    color: #111827;
}
:is(.products, .top-products__list) li.product .product-card__price .woocommerce-Price-amount {
    color: inherit;
}
:is(.products, .top-products__list) li.product .product-card__price ins {
    text-decoration: none;
    color: #007577;
}
:is(.products, .top-products__list) li.product .product-card__price del {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    color: #9ca3af;
}
:is(.products, .top-products__list) li.product .product-card__price .from,
:is(.products, .top-products__list) li.product .product-card__price .woocommerce-price-suffix {
    font-size: 0.68rem;
    font-weight: 500;
    color: #6b7280;
}

:is(.products, .top-products__list) li.product .product-card__action {
    flex-shrink: 0;
}

:is(.products, .top-products__list) li.product .added_to_cart,
:is(.products, .top-products__list) li.product a.wc-forward {
    display: none !important;
}

:is(.products, .top-products__list) li.product .product-card__btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 32px !important;
    padding: 0.35rem 0.65rem !important;
    border: none !important;
    border-radius: 9999px !important;
    background: #007577 !important;
    color: #fff !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
    line-height: 1 !important;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgb(0 117 119 / 0.25);
    transition: background 0.15s ease, transform 0.15s ease;
}
@media (min-width: 640px) {
    :is(.products, .top-products__list) li.product .product-card__btn {
        min-height: 38px !important;
        padding: 0.45rem 0.9rem !important;
        font-size: 0.75rem !important;
    }
}
:is(.products, .top-products__list) li.product .product-card__btn:hover {
    background: #005c5e !important;
}
:is(.products, .top-products__list) li.product .product-card__btn:active {
    transform: scale(0.97);
}

@media (max-width: 400px) {
    :is(.products, .top-products__list) li.product .product-card__footer {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }
    :is(.products, .top-products__list) li.product .product-card__action {
        width: 100%;
    }
    :is(.products, .top-products__list) li.product .product-card__btn {
        width: 100% !important;
        min-height: 36px !important;
    }
}

.product-page__layout {
    width: 100%;
    padding: 1.25rem 0 1.75rem;
}
@media (min-width: 640px) {
    .product-page__layout {
        padding: 1.5rem 0 2rem;
    }
}

/* Swipeable product image gallery */
.product-gallery {
    display: grid;
    gap: 0.85rem;
    min-width: 0;
}
.product-gallery__track {
    display: flex;
    width: 100%;
    aspect-ratio: 1;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    border-radius: 1rem;
    border: 1px solid #f3f4f6;
    background: #f5f5f5;
    touch-action: pan-x pan-y;
}
.product-gallery__track::-webkit-scrollbar { display: none; }
@media (min-width: 640px) {
    .product-gallery__track {
        aspect-ratio: 4 / 3;
        border-radius: 1.5rem;
    }
}
@media (min-width: 1024px) {
    .product-gallery__track { aspect-ratio: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .product-gallery__track { scroll-behavior: auto; }
}
.product-gallery__slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}
.product-gallery__choice {
    position: absolute;
    left: 0.65rem;
    bottom: 0.65rem;
    max-width: calc(100% - 1.3rem);
    padding: 0.15rem 0.45rem;
    border-radius: 0.4rem;
    background: rgba(17, 24, 39, 0.78);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
    pointer-events: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.product-gallery__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}
.product-gallery__thumbs {
    display: flex;
    gap: 0.55rem;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
}
.product-gallery__thumbs::-webkit-scrollbar { display: none; }
.product-gallery__thumb {
    position: relative;
    flex: 0 0 auto;
    width: 4.25rem;
    height: 4.25rem;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 0.8rem;
    overflow: hidden;
    background: #f5f5f5;
    cursor: pointer;
    scroll-snap-align: start;
}
.product-gallery__thumb .product-gallery__choice {
    left: 0;
    right: 0;
    bottom: 0;
    max-width: none;
    padding: 0.08rem 0.2rem;
    border-radius: 0;
    font-size: 0.62rem;
    text-align: center;
}
.product-gallery__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-gallery__thumb.is-active {
    border-color: #007577;
}

.product-faqs,
.product-also {
    margin-top: 3rem;
}
.product-faqs__title,
.product-also__title {
    margin: 0 0 0.85rem;
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #111827;
}
.product-faqs__list {
    border-top: 1px solid #e5e7eb;
}
.product-faqs__item {
    border-bottom: 1px solid #e5e7eb;
}
.product-faqs__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.05rem 0.15rem;
    cursor: pointer;
    list-style: none;
    font-size: 1.02rem;
    font-weight: 700;
    color: #111827;
}
.product-faqs__item summary::-webkit-details-marker { display: none; }
.product-faqs__item summary::after {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    flex-shrink: 0;
    margin-right: 0.35rem;
    transition: transform 0.2s ease;
}
.product-faqs__item[open] summary::after {
    transform: rotate(225deg);
    margin-top: 0.3rem;
}
.product-faqs__answer {
    max-width: 46rem;
    padding: 0 0.15rem 1.15rem;
    color: #4b5563;
    font-size: 0.98rem;
    line-height: 1.65;
}
.product-faqs__answer p { margin: 0 0 0.65rem; }
.product-faqs__answer p:last-child { margin-bottom: 0; }
.product-faqs__answer ol {
    margin: 0.35rem 0 0.75rem;
    padding-left: 1.25rem;
}
.product-faqs__answer a {
    color: #00585a;
    font-weight: 700;
    text-decoration: none;
}
.product-faqs__answer a:hover { text-decoration: underline; }
.product-also__copy {
    margin: -0.25rem 0 1rem;
    color: #6b7280;
}

/* Single product purchase area */
.single-product__price .price {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.2;
    color: #111827;
}
@media (min-width: 640px) {
    .single-product__price .price {
        font-size: 1.6rem;
    }
}
.single-product__price .price del {
    font-size: 0.95rem;
    font-weight: 500;
    color: #9ca3af;
}
.single-product__price .price ins {
    text-decoration: none;
    color: #007577;
}

.single-product__excerpt:empty {
    display: none;
    margin: 0 !important;
}

.single-product__purchase .cart {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.single-product__purchase table.variations {
    width: 100%;
    margin: 0;
}
.single-product__purchase table.variations tr {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.85rem;
}
.single-product__purchase table.variations th.label {
    padding: 0;
    text-align: left;
}
.single-product__purchase table.variations th.label label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #374151;
}
.single-product__purchase table.variations td.value {
    padding: 0;
}
.single-product__purchase table.variations select {
    width: 100%;
    min-height: 44px;
    padding: 0.55rem 0.85rem;
    border: 1px solid #d1d5db;
    border-radius: 0.85rem;
    background: #fff;
    font-size: 0.95rem;
    color: #111827;
}
.single-product__purchase table.variations td.value {
    position: relative;
}
.single-product__purchase select.shopperr-choice-select {
    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;
}
.shopperr-choice-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.shopperr-choice-swatch {
    position: relative;
    width: 4.5rem;
    height: 4.5rem;
    padding: 0;
    border: 2px solid #e5e7eb;
    border-radius: 0.8rem;
    overflow: hidden;
    background: #f5f5f5;
    cursor: pointer;
}
.shopperr-choice-swatch img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.shopperr-choice-swatch__label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.08rem 0.2rem;
    background: rgba(17, 24, 39, 0.78);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.shopperr-choice-swatch.is-active {
    border-color: #007577;
}
.single-product__purchase .reset_variations {
    display: inline-block;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    color: #6b7280;
}

/* Hide ships-from / origin variation rows */
.single-product__purchase .variations tr:has(.shopperr-hidden-variation),
.single-product__purchase .variations tr:has([name="attribute_ships-from"]),
.single-product__purchase .variations tr:has([name="attribute_ships_from"]) {
    display: none !important;
}

.single-product__purchase .woocommerce-variation-add-to-cart,
.single-product__purchase form.cart:not(.variations_form) {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.65rem;
}

.single-product__purchase .quantity {
    display: flex;
    align-items: center;
    min-width: 108px;
}
.single-product__purchase .quantity .qty {
    width: 100%;
    min-height: 46px;
    padding: 0.45rem 0.65rem;
    border: 1px solid #d1d5db;
    border-radius: 0.85rem;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
}

.single-product__purchase .single_add_to_cart_button,
.single-product__purchase .button.alt {
    flex: 1 1 12rem;
    width: auto;
    max-width: 18rem;
    min-height: 46px !important;
    padding: 0.7rem 1.25rem !important;
    border: none !important;
    border-radius: 9999px !important;
    background: #007577 !important;
    color: #fff !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    box-shadow: 0 8px 20px -10px rgb(0 117 119 / 0.8);
}
.single-product__purchase .single_add_to_cart_button:hover,
.single-product__purchase .button.alt:hover {
    background: #005c5e !important;
}

@media (max-width: 639px) {
    .single-product__purchase .woocommerce-variation-add-to-cart,
    .single-product__purchase form.cart:not(.variations_form) {
        flex-direction: column;
    }
    .single-product__purchase .quantity {
        width: 100%;
    }
    .single-product__purchase .single_add_to_cart_button,
    .single-product__purchase .button.alt {
        width: 100%;
        max-width: none;
        flex: 1 1 auto;
    }
}

/* Generic Woo buttons outside product cards */
.single_add_to_cart_button,
.button.alt,
.add_to_cart_button {
    background: #007577 !important;
    color: #fff !important;
    border: none !important;
}
.single_add_to_cart_button:hover,
.add_to_cart_button:hover {
    background: #005c5e !important;
}

/* Site notice popup */
body.shopperr-modal-open {
    overflow: hidden;
}
.shopperr-modal[hidden] {
    display: none !important;
}
.shopperr-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}
@media (min-width: 768px) {
    .shopperr-modal {
        align-items: center;
        padding: 1.5rem;
    }
}
.shopperr-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.48);
}
.shopperr-modal__panel {
    position: relative;
    width: 100%;
    max-width: 28rem;
    background: #fff;
    border-radius: 1.35rem 1.35rem 0 0;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.28);
    overflow: hidden;
}
@media (min-width: 768px) {
    .shopperr-modal__panel {
        border-radius: 1.35rem;
    }
}
.shopperr-modal__header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid #f3f4f6;
}
.shopperr-modal__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background: #e7f4f4;
    color: #007577;
    flex-shrink: 0;
}
.shopperr-modal__icon svg {
    width: 1.1rem;
    height: 1.1rem;
}
.shopperr-modal[data-type="error"] .shopperr-modal__icon {
    background: #fef2f2;
    color: #dc2626;
}
.shopperr-modal[data-type="info"] .shopperr-modal__icon {
    background: #eff6ff;
    color: #2563eb;
}
.shopperr-modal__title {
    margin: 0;
    flex: 1;
    font-size: 1rem;
    font-weight: 800;
    color: #111827;
}
.shopperr-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 9999px;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
}
.shopperr-modal__close svg {
    width: 1.2rem;
    height: 1.2rem;
}
.shopperr-modal__close:hover {
    background: #f3f4f6;
    color: #111827;
}
.shopperr-modal__body {
    padding: 1.15rem;
}
.shopperr-modal__product {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
}
.shopperr-modal__image {
    width: 4.25rem;
    height: 4.25rem;
    flex-shrink: 0;
    border-radius: 1rem;
    overflow: hidden;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
}
.shopperr-modal__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.shopperr-modal__name {
    font-weight: 700;
    color: #111827;
    line-height: 1.35;
}
.shopperr-modal__price {
    margin-top: 0.2rem;
    font-size: 0.9rem;
    color: #6b7280;
}
.shopperr-modal__status {
    margin-top: 0.3rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #059669;
}
.shopperr-modal__message {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #374151;
}
.shopperr-modal__message:not([hidden]) + .shopperr-modal__product,
.shopperr-modal__product:not([hidden]) + .shopperr-modal__message:not([hidden]) {
    margin-top: 0.85rem;
}
.shopperr-modal__message a {
    color: #00585a;
    font-weight: 700;
}
.shopperr-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.95rem 1.15rem 1.15rem;
    border-top: 1px solid #f3f4f6;
    background: #f9fafb;
}
@media (min-width: 480px) {
    .shopperr-modal__actions {
        flex-direction: row;
    }
}
.shopperr-modal__secondary,
.shopperr-modal__primary {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.7rem 1rem;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}
.shopperr-modal__secondary {
    border: 1px solid #d1d5db;
    background: #fff;
    color: #111827;
}
.shopperr-modal__primary {
    border: none;
    background: linear-gradient(135deg, #007577, #005c5e);
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(0, 117, 119, 0.22);
}
.shopperr-modal__primary[hidden] {
    display: none !important;
}

/* WooCommerce notices — formatted toast fallback before JS promotes them to the popup */
.woocommerce-notices-wrapper {
    position: relative;
}
.woocommerce-notices-wrapper.is-harvested,
.woocommerce-message.is-harvested,
.woocommerce-info.is-harvested,
.woocommerce-error.is-harvested {
    display: none !important;
}
.woocommerce-notices-wrapper:not(.is-harvested) .woocommerce-message,
.woocommerce-notices-wrapper:not(.is-harvested) .woocommerce-info,
.woocommerce-notices-wrapper:not(.is-harvested) .woocommerce-error,
.woocommerce-message:not(.is-harvested),
.woocommerce-info:not(.is-harvested),
ul.woocommerce-error:not(.is-harvested) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0 0 1rem;
    padding: 0.95rem 1.1rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
    color: #111827;
    font-size: 0.95rem;
    line-height: 1.45;
    list-style: none;
}
.woocommerce-notices-wrapper:not(.is-harvested) .woocommerce-message,
.woocommerce-message:not(.is-harvested) {
    border-color: #fde68a;
    background: #fffbeb;
}
.woocommerce-notices-wrapper:not(.is-harvested) .woocommerce-info,
.woocommerce-info:not(.is-harvested) {
    border-color: #bfdbfe;
    background: #eff6ff;
}
.woocommerce-notices-wrapper:not(.is-harvested) .woocommerce-error,
ul.woocommerce-error:not(.is-harvested) {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}
.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button,
.woocommerce-message a.wc-forward,
.woocommerce-info a.wc-forward {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.35rem;
    padding: 0.45rem 0.95rem;
    border: none;
    border-radius: 9999px;
    background: linear-gradient(135deg, #007577, #005c5e);
    color: #fff !important;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none !important;
    white-space: nowrap;
}

/* Legacy responsive grid helper (if any old classes) */
@media (max-width: 1024px) {
    .grid-cols-1.lg\\:grid-cols-2 { grid-template-columns: 1fr; }
}

/* Cart page - force single image + much better mobile experience */
.woocommerce-cart-form .product-thumbnail img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #eee;
}

.woocommerce-cart-form table.shop_table {
    border: none !important;
}
.woocommerce-cart-form td, .woocommerce-cart-form th {
    padding: 12px 8px !important;
    vertical-align: middle;
}

/* ===== Basket page ===== */
.basket-page__toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}
.basket-page__continue {
    font-size: 0.88rem;
    font-weight: 600;
    color: #00585a;
    text-decoration: none;
}
.basket-page__continue:hover {
    color: #007577;
}
.basket-page__table-wrap {
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    background: #fff;
}
.basket-table {
    width: 100%;
    border-collapse: collapse;
}
.basket-table__head th {
    padding: 0.75rem 1rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}
.basket-table__row td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}
.basket-table__image {
    width: 4.5rem;
    height: 4.5rem;
    object-fit: cover;
    border-radius: 0.75rem;
    border: 1px solid #f3f4f6;
}
.basket-table__name {
    font-weight: 700;
    color: #111827;
    text-decoration: none;
}
.basket-table__name:hover {
    color: #007577;
}
.basket-table__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    color: #9ca3af;
    font-size: 1.4rem;
    line-height: 1;
    text-decoration: none;
}
.basket-table__remove:hover {
    color: #ef4444;
    background: #fef2f2;
}
.basket-table__actions td {
    padding: 1rem;
}
.basket-page__update {
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    padding: 0.65rem 1.2rem;
    background: #fff;
    font-weight: 600;
    cursor: pointer;
}
.basket-page__checkout {
    margin-top: 1.25rem;
    padding: 1.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    background: linear-gradient(180deg, #e7f4f4 0%, #fff 100%);
    text-align: right;
}
.basket-page__summary {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}
.basket-page__summary-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #6b7280;
}
.basket-page__summary-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
}
.basket-page__checkout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.85rem 1.75rem;
    border: none;
    border-radius: 9999px;
    background: linear-gradient(135deg, #007577, #005c5e);
    color: #fff !important;
    font-size: 0.95rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(0, 117, 119, 0.22);
}
.basket-page__checkout-btn:hover {
    filter: brightness(1.05);
}
.basket-page__checkout-note {
    margin: 0.65rem 0 0;
    font-size: 0.75rem;
    color: #6b7280;
}
.basket-empty {
    text-align: center;
    padding: 3rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    background: #fff;
}
.basket-empty__message {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    color: #4b5563;
}
.basket-empty__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #007577, #005c5e);
    color: #fff !important;
    font-weight: 700;
    text-decoration: none;
}
.shop-page--utility .cart-collaterals {
    display: none;
}

/* Checkout order summary — one thumbnail, title only (no description text) */
.wc-block-components-order-summary-item__image img ~ img {
    display: none !important;
}
.wc-block-components-order-summary-item .wc-block-components-product-metadata__description {
    display: none !important;
}
.shopperr-cart-thumb {
    width: 4.5rem;
    height: 4.5rem;
    object-fit: cover;
    border-radius: 0.75rem;
}
.account-page--guest:has(.account-auth__grid--split) {
    align-items: flex-start;
    padding-top: 2.5rem;
}
.account-page--guest:has(.account-auth__grid--split) .account-page__inner--auth {
    max-width: min(56rem, calc(100vw - 2.5rem));
}

@media (max-width: 767px) {
    .basket-table__head {
        display: none;
    }
    .basket-table__row {
        display: grid;
        grid-template-columns: 4.5rem 1fr auto;
        gap: 0.65rem 0.85rem;
        padding: 1rem;
    }
    .basket-table__row td {
        display: block;
        padding: 0;
        border: none;
    }
    .basket-table__row .product-thumbnail {
        grid-row: 1 / span 2;
    }
    .basket-table__row .product-remove {
        grid-column: 3;
        grid-row: 1;
        text-align: right;
    }
    .basket-page__checkout {
        text-align: center;
    }
    .basket-page__summary {
        justify-content: center;
    }
    .basket-page__checkout-btn {
        width: 100%;
    }
}

/* Highly mobile-friendly cart - stack rows on small screens */
@media (max-width: 640px) {
    .woocommerce-cart-form table.shop_table {
        display: block;
    }
    .woocommerce-cart-form thead { display: none; }
    .woocommerce-cart-form tbody, .woocommerce-cart-form tr, .woocommerce-cart-form td {
        display: block;
        width: 100%;
    }
    .woocommerce-cart-form tr {
        margin-bottom: 1rem;
        padding: 1rem;
        background: #fafafa;
        border-radius: 12px;
        border: 1px solid #f0f0f0;
    }
    .woocommerce-cart-form td.product-thumbnail {
        float: left;
        width: 70px;
        margin-right: 12px;
        padding: 0 !important;
    }
    .woocommerce-cart-form td.product-name {
        font-weight: 600;
        padding-left: 82px !important;
        margin-bottom: 0.5rem;
    }
    .woocommerce-cart-form td.product-price,
    .woocommerce-cart-form td.product-subtotal {
        display: inline-block;
        width: 48%;
        font-size: 0.95rem;
    }
    .woocommerce-cart-form td.product-quantity {
        display: inline-block;
        width: 48%;
        text-align: right;
    }
    .woocommerce-cart-form td.product-remove {
        text-align: right;
        clear: both;
        padding-top: 0.5rem;
    }
}

/* Single product page - mobile friendly layout */
.single-product .product {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .single-product .product {
        flex-direction: row;
        gap: 2.5rem;
    }
    .single-product .product > .images,
    .single-product .product > .summary {
        width: 50%;
    }
}

/* Shop layout — sidebar + main */
.shop-layout {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}
@media (min-width: 1024px) {
    .shop-layout {
        display: block;
    }
}

.shop-layout__main {
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

/* Streamlined category sidebar */
.shop-sidebar {
    position: relative;
}
@media (min-width: 1024px) {
    .shop-sidebar {
        position: sticky;
        top: 5.5rem;
    }
}

.shop-sidebar__nav {
    border: 1px solid #e8ecf1;
    border-radius: 0.85rem;
    background: #fff;
    overflow: hidden;
}
@media (min-width: 1024px) {
    .shop-sidebar__nav {
        max-height: calc(100vh - 8rem);
        overflow: auto;
        scrollbar-width: thin;
    }
}

.shop-sidebar__list,
.shop-sidebar__sublist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.shop-sidebar__link,
.shop-sidebar__sublink {
    display: block;
    padding: 0.62rem 0.85rem;
    color: #4b5563;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.3;
    transition: background 0.15s ease, color 0.15s ease;
}
.shop-sidebar__link:hover,
.shop-sidebar__sublink:hover {
    background: #f9fafb;
    color: #111827;
}
.shop-sidebar__link.is-active,
.shop-sidebar__sublink.is-active {
    background: #e7f4f4;
    color: #00484a;
}
@media (min-width: 1024px) {
    .shop-sidebar__link.is-active,
    .shop-sidebar__sublink.is-active {
        box-shadow: inset 3px 0 0 #007577;
    }
}

.shop-sidebar__list > .shop-sidebar__item + .shop-sidebar__item {
    border-top: 1px solid #f1f5f9;
}

.shop-sidebar__sublist {
    background: #fafafa;
    border-top: 1px solid #f1f5f9;
}
.shop-sidebar__sublink {
    padding: 0.48rem 0.85rem 0.48rem 1.25rem;
    font-size: 0.78rem;
    font-weight: 500;
}

/* Mobile: contained horizontal category pills */
@media (max-width: 1023px) {
    .shop-sidebar {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
    }
    .shop-sidebar__nav {
        border: none;
        background: transparent;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        overscroll-behavior-x: contain;
    }
    .shop-sidebar__nav::-webkit-scrollbar {
        display: none;
    }
    .shop-sidebar__list {
        display: flex;
        flex-wrap: nowrap;
        gap: 0.4rem;
        width: max-content;
        max-width: none;
        padding: 0.1rem 0 0.25rem;
    }
    .shop-sidebar__item {
        flex: 0 0 auto;
    }
    .shop-sidebar__list > .shop-sidebar__item + .shop-sidebar__item {
        border-top: none;
    }
    .shop-sidebar__link {
        display: inline-flex;
        align-items: center;
        min-height: 38px;
        padding: 0.45rem 0.85rem;
        border: 1px solid #e5e7eb;
        border-radius: 9999px;
        background: #fff;
        font-size: 0.78rem;
        white-space: nowrap;
        line-height: 1.2;
    }
    .shop-sidebar__link.is-active {
        border-color: #007577;
        background: #007577;
        color: #fff;
    }
    .shop-sidebar__sublist {
        display: none;
    }
}

.shop-products-section {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.shop-products-section.is-infinite-scroll .woocommerce-pagination,
.shop-products-section.is-infinite-scroll .shop-results-footer,
.shop-products-section.is-infinite-scroll .woocommerce-result-count {
    display: none !important;
}

.shopperr-infinite {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 0 0.5rem;
}

.shopperr-infinite__more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 10rem;
    padding: 0.7rem 1.25rem;
    border-radius: 999px;
    background: var(--shopperr-accent, #007577);
    color: #111827;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
}

.shopperr-infinite__more:hover {
    filter: brightness(1.05);
}

.shopperr-infinite__status {
    min-height: 1.25rem;
    font-size: 0.875rem;
    color: var(--shopperr-text-muted, #6b7280);
}

.shopperr-infinite__status.is-loading::before {
    content: '';
    display: inline-block;
    width: 0.85rem;
    height: 0.85rem;
    margin-right: 0.45rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 999px;
    vertical-align: -0.1rem;
    animation: shopperr-infinite-spin 0.7s linear infinite;
}

.shopperr-infinite__sentinel {
    width: 1px;
    height: 1px;
}

@keyframes shopperr-infinite-spin {
    to { transform: rotate(360deg); }
}

.shop-products-section__title {
    margin: 0 0 0.85rem;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #111827;
}
@media (min-width: 640px) {
    .shop-products-section__title {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }
}

/* WooCommerce catalog toolbar + results footer */
.shop-products-section .woocommerce-notices-wrapper,
.shop-page__inner > .woocommerce-notices-wrapper {
    margin-bottom: 0.75rem;
}

.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    margin: 0 0 1rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
}

.shop-toolbar .woocommerce-ordering {
    float: none !important;
    margin: 0 !important;
    width: 100%;
}

.shop-toolbar .woocommerce-ordering select,
.shop-page__inner .woocommerce-ordering select,
.shop-products-section .woocommerce-ordering select {
    width: 100%;
    min-height: 2.5rem;
    padding: 0.45rem 2.25rem 0.45rem 0.9rem;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    font-size: 0.86rem;
    font-weight: 600;
    color: #374151;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.shop-toolbar .woocommerce-ordering select:hover,
.shop-page__inner .woocommerce-ordering select:hover,
.shop-products-section .woocommerce-ordering select:hover {
    border-color: #7ec8c9;
}

.shop-toolbar .woocommerce-ordering select:focus,
.shop-page__inner .woocommerce-ordering select:focus,
.shop-products-section .woocommerce-ordering select:focus {
    outline: none;
    border-color: #007577;
    box-shadow: 0 0 0 4px rgba(0, 117, 119, 0.12);
}

.shop-results-footer {
    margin: 1rem 0 0;
    padding-top: 0.85rem;
    border-top: 1px solid #f3f4f6;
    text-align: center;
}

.shop-results-footer .woocommerce-result-count,
.shop-page__inner .woocommerce-result-count,
.shop-products-section .woocommerce-result-count {
    float: none !important;
    width: 100%;
    margin: 0 !important;
    font-size: 0.82rem;
    font-weight: 600;
    color: #6b7280;
}

.shop-page__inner .page-title,
.shop-page__inner .woocommerce-products-header__title.page-title {
    display: none !important;
}

@media (min-width: 640px) {
    .shop-toolbar {
        justify-content: flex-end;
        padding: 0.55rem 0.75rem;
    }
    .shop-toolbar .woocommerce-ordering,
    .shop-page__inner .woocommerce-ordering,
    .shop-products-section .woocommerce-ordering {
        width: auto;
    }
    .shop-toolbar .woocommerce-ordering select,
    .shop-page__inner .woocommerce-ordering select,
    .shop-products-section .woocommerce-ordering select {
        width: auto;
        min-width: 13rem;
    }
}

/* Category grids */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
@media (min-width: 640px) {
    .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
}
@media (min-width: 1024px) {
    .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
}

/* Bottom category mosaic — flush, responsive */
.category-grid--bottom {
    gap: 0;
    border-radius: 0.85rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 640px) {
    .category-grid--bottom { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .category-grid--bottom { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.shop-by-category--bottom {
    margin-top: 1.5rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}
.shop-by-category__heading {
    margin: 0 0 0.65rem;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #111827;
}

.category-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.category-card:hover {
    transform: translateY(-3px);
    border-color: #fed7aa;
    box-shadow: 0 18px 30px -18px rgb(0 117 119 / 0.45);
}
.category-card:active { transform: translateY(-1px); }

.category-card--tile {
    border: none;
    border-radius: 0;
    box-shadow: none;
}
.category-card--tile:hover {
    transform: none;
    z-index: 1;
}
.category-card--tile .category-card__media {
    aspect-ratio: 1 / 1;
}
.category-card--tile .category-card__overlay {
    background: linear-gradient(180deg, rgb(15 23 42 / 0) 45%, rgb(15 23 42 / 0.72) 100%);
}
.category-card--tile:hover .category-card__image {
    transform: scale(1.04);
}
.category-card__tile-label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.5rem 0.35rem;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-shadow: 0 1px 2px rgb(0 0 0 / 0.35);
    pointer-events: none;
}
.category-card__tile-label span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (min-width: 640px) {
    .category-card__tile-label {
        font-size: 0.74rem;
        padding: 0.65rem 0.5rem;
    }
}

.category-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f8fafc;
}
.category-card__image,
.category-card__placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.category-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}
.category-card:hover .category-card__image {
    transform: scale(1.05);
}
.category-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgb(15 23 42 / 0) 35%, rgb(15 23 42 / 0.18) 100%);
    pointer-events: none;
}

.category-card__content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 1rem 1.1rem;
}
.category-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}
.category-card__title {
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.3;
    color: #111827;
}
.category-card__badge {
    flex-shrink: 0;
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
    background: #e7f4f4;
    color: #00585a;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.category-card__excerpt {
    font-size: 0.8rem;
    line-height: 1.45;
    color: #6b7280;
}
.category-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.15rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #007577;
}

/* Header + footer containment on small screens */
header, footer {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}
header .max-w-7xl,
footer .max-w-7xl {
    max-width: var(--shopperr-page-max);
}
@media (min-width: 1024px) {
    footer .max-w-7xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Tap polish */
button, a, input[type="submit"] {
    -webkit-tap-highlight-color: transparent;
}
:is(.products, .top-products__list) li.product a {
    min-height: 0;
}
input, select, textarea {
    font-size: 16px; /* prevent zoom on iOS */
}

/* Cart count badge */
.cart-contents {
    font-feature-settings: "tnum";
}

/* Loop buttons keep compact sizing via .product-card__btn */

/* Footer and general responsiveness */
.site-footer {
    background: #111111;
    border-top: 3px solid #007577;
}
footer {
    font-size: 0.875rem;
}
@media (max-width: 640px) {
    footer .max-w-7xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ===== Modern header navigation ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: #111111;
    border-bottom: 3px solid #007577;
    box-shadow: none;
}
.site-header__bar {
    max-width: var(--shopperr-page-max);
    margin: 0 auto;
}
.site-header__inner {
    padding: 0 1rem;
    min-height: 4.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.site-header__brand { flex-shrink: 0; }
.site-header__logo,
.site-header__brand .custom-logo-link {
    font-size: 1.65rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #007577;
    text-decoration: none;
}
.site-header__search { flex: 1; max-width: 28rem; }
.site-header__search-wrap {
    position: relative;
}
.site-header__search-wrap svg {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.1rem;
    height: 1.1rem;
    color: #9ca3af;
}
.site-header__search-wrap input {
    width: 100%;
    border: 1px solid #2a2a2a;
    border-radius: 9999px;
    padding: 0.7rem 1rem 0.7rem 2.6rem;
    font-size: 0.92rem;
    background: #1c1c1c;
    color: #f5f5f5;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.site-header__search-wrap input::placeholder {
    color: #9ca3af;
}
.site-header__search-wrap input:focus {
    outline: none;
    border-color: #007577;
    background: #111111;
    box-shadow: 0 0 0 4px rgba(0, 117, 119, 0.22);
}
.site-header__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid #2a2a2a;
    border-radius: 0.8rem;
    background: #1c1c1c;
    color: #f5f5f5;
}
.site-header__toggle svg { width: 1.35rem; height: 1.35rem; }

.site-nav {
    flex-shrink: 0;
}
.site-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    flex-shrink: 0;
}

.site-nav__link,
.site-nav .menu-item a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.9rem;
    border-radius: 9999px;
    color: #f5f5f5;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}
.site-nav__link:hover,
.site-nav .menu-item a:hover,
.site-nav__link.is-active,
.site-nav .menu-item.current-menu-item > a,
.site-nav .menu-item.current_page_item > a {
    background: #007577;
    color: #fff;
}
.site-nav__wp-list,
.site-nav__wp-list .menu-item {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
}
.site-nav__dropdown { position: relative; }
.site-nav__trigger {
    border: none;
    background: transparent;
    cursor: pointer;
}
.site-nav__chevron {
    width: 1rem;
    height: 1rem;
    transition: transform 0.2s ease;
}
.site-nav__dropdown.is-open .site-nav__chevron { transform: rotate(180deg); }
.site-nav__panel {
    position: absolute;
    left: 0;
    top: calc(100% + 0.65rem);
    width: min(38rem, calc(100vw - 2rem));
    opacity: 0;
    visibility: hidden;
    transform: translateY(0.4rem);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
}
.site-nav__dropdown.is-open .site-nav__panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
.site-nav__panel-inner {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1.1rem;
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.14);
    padding: 1rem;
}
.site-nav__panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
}
.site-nav__panel-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: #111827;
}
.site-nav__panel-all {
    font-size: 0.82rem;
    font-weight: 700;
    color: #007577;
    text-decoration: none;
}
.site-nav__category-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}
.site-nav__category {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem;
    border-radius: 0.85rem;
    text-decoration: none;
    transition: background 0.2s ease;
}
.site-nav__category:hover,
.site-nav__category.is-active {
    background: #e7f4f4;
}
.site-nav__category-media,
.site-nav__category-fallback {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #e7f4f4, #d3ecec);
    color: #00585a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}
.site-nav__category-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.site-nav__category-name {
    display: block;
    font-size: 0.86rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.25;
}
.site-nav__category-count {
    display: block;
    font-size: 0.72rem;
    color: #6b7280;
}

.site-actions__account,
.site-actions__cart {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: inherit;
}
.site-actions__account {
    padding: 0.45rem 0.8rem 0.45rem 0.45rem;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-actions__account:hover,
.site-actions__account.is-active {
    border-color: #7ec8c9;
    box-shadow: 0 8px 20px rgba(0, 117, 119, 0.12);
}
.site-actions__account-icon {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 9999px;
    background: #e7f4f4;
    color: #00585a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.site-actions__account-icon svg { width: 1.1rem; height: 1.1rem; }
.site-actions__account-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.1;
}
.site-actions__account-sub {
    display: block;
    font-size: 0.72rem;
    color: #6b7280;
}
.site-actions__cart {
    position: relative;
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 9999px;
    justify-content: center;
    background: #007577;
    color: #fff;
}
.site-actions__cart svg { width: 1.2rem; height: 1.2rem; }
.site-actions__cart-count {
    position: absolute;
    top: -0.2rem;
    right: -0.2rem;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.25rem;
    border-radius: 9999px;
    background: #111111;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.7rem;
    height: 2.7rem;
    border: 1px solid #2a2a2a;
    border-radius: 9999px;
    background: #1c1c1c;
    color: #f5f5f5;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.theme-toggle:hover {
    border-color: #007577;
    color: #007577;
    background: #1c1c1c;
}
.theme-toggle__icon {
    width: 1.2rem;
    height: 1.2rem;
}
.theme-toggle__icon--sun {
    display: none;
}
html[data-theme="dark"] .theme-toggle__icon--sun {
    display: block;
}
html[data-theme="dark"] .theme-toggle__icon--moon {
    display: none;
}

/* ===== Category slider (below main nav) ===== */
.category-slider {
    border-top: 1px solid #f3f4f6;
    background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
}
.category-slider__inner {
    max-width: var(--shopperr-page-max);
    margin: 0 auto;
    padding: 0.55rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.category-slider__track-wrap {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 1.25rem, #000 calc(100% - 1.25rem), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 1.25rem, #000 calc(100% - 1.25rem), transparent 100%);
}
.category-slider__track {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.15rem 0.25rem;
}
.category-slider__track::-webkit-scrollbar { display: none; }
.category-slider__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 0;
    padding: 0.4rem 0.85rem 0.4rem 0.4rem;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    background: #fff;
    color: #374151;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.category-slider__chip:hover,
.category-slider__chip.is-active {
    border-color: #7ec8c9;
    background: #e7f4f4;
    color: #00585a;
    box-shadow: 0 6px 16px rgba(0, 117, 119, 0.1);
}
.category-slider__chip-media {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 9999px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #e7f4f4, #d3ecec);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.category-slider__chip-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.category-slider__chip-fallback {
    font-size: 0.72rem;
    font-weight: 800;
    color: #00585a;
}
.category-slider__chip-label {
    white-space: nowrap;
    line-height: 1.1;
}
.category-slider__arrow {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    background: #fff;
    color: #6b7280;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}
.category-slider__arrow svg {
    width: 1.1rem;
    height: 1.1rem;
}
.category-slider__arrow:hover:not(:disabled) {
    border-color: #7ec8c9;
    color: #00585a;
    background: #e7f4f4;
}
.category-slider__arrow:disabled {
    opacity: 0.35;
    cursor: default;
}
@media (max-width: 767px) {
    .category-slider__inner {
        padding: 0.45rem 0.75rem;
        gap: 0;
    }
    .category-slider__arrow { display: none; }
    .category-slider__track-wrap {
        -webkit-mask-image: none;
        mask-image: none;
    }
    .category-slider__chip {
        font-size: 0.78rem;
        padding: 0.35rem 0.7rem 0.35rem 0.35rem;
    }
    .category-slider__chip-media {
        width: 1.65rem;
        height: 1.65rem;
    }
}

.mobile-nav {
    border-top: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}
.mobile-nav__inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 1rem;
    display: grid;
    gap: 0.85rem;
}
.mobile-nav__search input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    padding: 0.85rem 1rem;
    font-size: 1rem;
}
.site-header__mobile {
    margin-left: auto;
}
.site-actions--bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
@media (max-width: 420px) {
    .site-actions--bar .site-actions__account-text {
        display: none;
    }
    .site-actions--bar .site-actions__account {
        padding: 0.45rem;
    }
}
.site-actions--drawer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.65rem;
    align-items: center;
    padding: 0.85rem;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    background: #fafafa;
}
.site-actions--drawer .site-actions__account {
    min-width: 0;
}
.site-actions--drawer .site-actions__account-text {
    min-width: 0;
}
.site-actions--drawer .site-actions__account-label,
.site-actions--drawer .site-actions__account-sub {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-nav__links,
.mobile-nav__accordion-panel {
    display: grid;
    gap: 0.15rem;
}
.mobile-nav__category-link,
.mobile-nav__links a {
    display: block;
    padding: 0.85rem 0.35rem;
    border-bottom: 1px solid #f3f4f6;
    color: #111827;
    font-weight: 600;
    text-decoration: none;
}
.mobile-nav__accordion-trigger {
    width: 100%;
    text-align: left;
    padding: 0.85rem 0.35rem;
    border: none;
    border-bottom: 1px solid #f3f4f6;
    background: transparent;
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}
.mobile-nav__accordion-panel {
    padding-left: 0.75rem;
}

/* ===== Account / login ===== */
.account-page {
    width: 100%;
    max-width: 100%;
}
.account-page__inner,
.account-page .shop-page__inner {
    width: 100%;
    max-width: 72rem;
    margin: 0 auto;
    padding: 1.25rem 1rem 2.5rem;
}
.account-page--logged-in {
    display: flex;
    justify-content: center;
    padding: 1.5rem 1rem 2.5rem;
    box-sizing: border-box;
}
.account-page__inner--logged-in {
    width: 100%;
    max-width: min(72rem, calc(100vw - 2rem));
    margin: 0 auto;
    padding: 0;
}
.account-page--logged-in .woocommerce {
    display: block;
    width: 100%;
    max-width: 100%;
}
.account-page--guest {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100dvh - 8rem);
    padding: 2rem 1.25rem 3rem;
    box-sizing: border-box;
}
.account-page__inner--auth {
    width: 100%;
    max-width: min(34rem, calc(100vw - 2.5rem));
    margin: 0 auto;
    padding: 0;
    flex: 0 0 auto;
}
.account-page__inner--auth:has(.account-auth__grid--split) {
    max-width: min(56rem, calc(100vw - 2.5rem));
}
.account-page__inner--auth .woocommerce {
    width: 100%;
    max-width: 100%;
    display: block;
}
.account-page--guest .account-auth {
    width: 100%;
    margin: 0 auto;
}
.account-page--guest .account-auth--login-only .account-card {
    overflow: hidden;
    padding: 0;
}
.account-page--guest .account-card__hero {
    padding: 1.75rem 1.5rem 1.25rem;
    text-align: center;
    background: linear-gradient(135deg, #111827 0%, #1f2937 55%, #374151 100%);
    color: #fff;
}
.account-page--guest .account-card__hero .account-auth__copy {
    margin: 0.65rem auto 0;
    color: #d1d5db;
    max-width: 22rem;
}
.account-page--guest .account-auth--login-only .account-form {
    padding: 1.5rem;
    margin-top: 0;
}
/* Order received */
.order-received {
    max-width: 52rem;
    margin: 0.5rem auto 2rem;
}
.order-received__hero {
    margin: 0 0 1.25rem;
    padding: 1.6rem 1.5rem 1.4rem;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, #111827 0%, #1f2937 55%, #374151 100%);
    color: #fff;
}
.order-received__hero--failed {
    background: linear-gradient(135deg, #450a0a 0%, #7f1d1d 100%);
}
.order-received__eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7ec8c9;
}
.order-received__title {
    margin: 0;
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    line-height: 1.2;
    font-weight: 800;
    color: #fff;
}
.order-received__copy {
    margin: 0.7rem 0 0;
    max-width: 38rem;
    color: #d1d5db;
    line-height: 1.55;
}
.order-received__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.1rem;
}
.order-received__continue,
.order-received__secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    margin-top: 1.1rem;
    padding: 0.7rem 1.25rem;
    border-radius: 9999px;
    font-weight: 800;
    text-decoration: none;
}
.order-received__actions .order-received__continue,
.order-received__actions .order-received__secondary {
    margin-top: 0;
}
.order-received__continue {
    background: linear-gradient(135deg, #007577, #005c5e);
    color: #fff;
}
.order-received__secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
}
.woocommerce-order-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
    gap: 0.75rem;
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
}
.woocommerce-order-overview li {
    margin: 0;
    padding: 0.9rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    background: #fff;
    color: #6b7280;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.woocommerce-order-overview li strong {
    display: block;
    margin-top: 0.3rem;
    color: #111827;
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
}
.woocommerce-order-details,
.woocommerce-customer-details,
.order-received .woocommerce-bacs-bank-details,
.order-received .wc-bacs-bank-details {
    margin: 0 0 1rem;
    padding: 1.15rem 1.2rem 1.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 1.1rem;
    background: #fff;
}
.woocommerce-order-details__title,
.woocommerce-column__title,
.woocommerce-customer-details h2,
.order-received h2 {
    margin: 0 0 0.85rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: #111827;
}
.woocommerce-table--order-details {
    width: 100%;
    border-collapse: collapse;
}
.woocommerce-table--order-details th,
.woocommerce-table--order-details td {
    padding: 0.7rem 0.2rem;
    border-bottom: 1px solid #f3f4f6;
    text-align: left;
    vertical-align: top;
}
.woocommerce-table--order-details thead th {
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b7280;
}
.woocommerce-table--order-details tfoot th {
    color: #6b7280;
    font-weight: 600;
}
.woocommerce-table--order-details .product-total,
.woocommerce-table--order-details tfoot td {
    text-align: right;
}
.woocommerce-table--order-details a {
    color: #111827;
    font-weight: 700;
    text-decoration: none;
}
.woocommerce-customer-details address {
    margin: 0;
    font-style: normal;
    line-height: 1.55;
    color: #4b5563;
}
.woocommerce-customer-details .woocommerce-columns--addresses {
    display: grid;
    gap: 1rem;
}
@media (min-width: 700px) {
    .woocommerce-customer-details .woocommerce-columns--addresses {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.order-received .button,
.order-received .woocommerce-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.6rem;
    padding: 0.6rem 1.1rem;
    border: none;
    border-radius: 9999px;
    background: #111827;
    color: #fff !important;
    font-weight: 700;
    text-decoration: none;
}

.shop-page--utility .shop-page__inner--utility {
    max-width: var(--shopperr-page-max);
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
}

/* Give Stripe Payment Element / card fields room to mount */
.wc-block-checkout__payment-method,
.wp-block-woocommerce-checkout-payment-block,
#wc-stripe-upe-form,
.wc-stripe-upe-element,
.wc-block-components-radio-control {
    min-height: 2.5rem;
}
.wc-stripe-upe-element iframe,
.wc-block-checkout__payment-method iframe {
    min-height: 140px;
}
.shop-page--utility .entry-title,
.shop-page--utility .page-title,
.account-page .entry-title,
.account-page .page-title,
.account-page .woocommerce > h1,
.account-page .woocommerce > h2:first-child {
    display: none !important;
}
.account-auth {
    display: grid;
    gap: 1.5rem;
}
.account-auth__intro {
    padding: 1.5rem;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, #111827 0%, #1f2937 55%, #374151 100%);
    color: #fff;
}
.account-auth__eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7ec8c9;
}
.account-auth__title {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1.15;
}
.account-auth__copy {
    margin: 0.75rem 0 0;
    color: #d1d5db;
    max-width: 38rem;
}
.account-auth__grid {
    display: grid;
    gap: 1rem;
}
.account-auth__grid--split {
    grid-template-columns: 1fr;
}
@media (min-width: 900px) {
    .account-auth__grid--split {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.account-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1.2rem;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
    padding: 1.25rem;
}
.account-card__head h3 {
    margin: 0;
    font-size: 1.2rem;
}
.account-card__head p {
    margin: 0.35rem 0 0;
    color: #6b7280;
    font-size: 0.9rem;
}
.account-form { margin-top: 1rem; }
.account-field label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #374151;
}
.account-input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 0.85rem;
    padding: 0.8rem 0.95rem;
    font-size: 1rem;
    background: #f9fafb;
}
.account-input:focus {
    outline: none;
    border-color: #007577;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 117, 119, 0.12);
}
.account-form__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 0.5rem 0 1rem;
}
.account-check {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.88rem;
}
.account-forgot a {
    color: #00585a;
    font-weight: 600;
    text-decoration: none;
}
.account-button {
    width: 100%;
    border: none;
    border-radius: 9999px;
    padding: 0.9rem 1.2rem;
    background: linear-gradient(135deg, #007577, #005c5e);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
}
.account-button--secondary {
    background: #111827;
}
.account-hint {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.88rem;
    color: #6b7280;
}
.account-field {
    margin: 0 0 1rem;
}
.account-card--login .account-form .account-field .account-input,
.lost_reset_password .account-input {
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.account-shell {
    display: grid;
    gap: 1.25rem;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}
@media (min-width: 900px) {
    .account-shell {
        grid-template-columns: 17rem minmax(0, 1fr);
        align-items: start;
    }
}
.account-nav,
.woocommerce-MyAccount-navigation {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1.2rem;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.05);
    padding: 1rem;
}
.account-nav__profile {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding-bottom: 1rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #f3f4f6;
}
.account-nav__avatar {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #007577, #005c5e);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}
.account-nav__name {
    margin: 0;
    font-weight: 800;
    color: #111827;
}
.account-nav__email {
    margin: 0.15rem 0 0;
    font-size: 0.78rem;
    color: #6b7280;
    word-break: break-word;
}
.account-nav__list,
.woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.35rem;
}
.account-nav__link,
.woocommerce-MyAccount-navigation a {
    display: block;
    padding: 0.75rem 0.85rem;
    border-radius: 0.8rem;
    text-decoration: none;
    color: #374151;
    font-weight: 600;
}
.account-nav__item.is-active .account-nav__link,
.woocommerce-MyAccount-navigation .is-active a {
    background: #e7f4f4;
    color: #00585a;
}
.woocommerce-MyAccount-content {
    width: 100%;
    min-width: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1.2rem;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.05);
    padding: 1.25rem;
}
@media (min-width: 640px) {
    .woocommerce-MyAccount-content {
        padding: 1.5rem;
    }
}
.woocommerce-account .woocommerce > h2,
.woocommerce-account .entry-title {
    display: none;
}

/* Logged-in account content — typography & layout */
.account-panel__head {
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #f3f4f6;
}
.account-panel__head--hero {
    margin-bottom: 1.25rem;
    padding: 1.25rem 1.35rem;
    border: none;
    border-radius: 1rem;
    background: linear-gradient(135deg, #111827 0%, #1f2937 55%, #374151 100%);
    color: #fff;
}
.account-panel__eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7ec8c9;
}
.account-panel__title {
    margin: 0;
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    line-height: 1.2;
    font-weight: 800;
    color: inherit;
}
.account-panel__copy {
    margin: 0.65rem 0 0;
    max-width: 40rem;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #6b7280;
}
.account-panel__head--hero .account-panel__copy {
    color: #d1d5db;
}

.account-dashboard__grid {
    display: grid;
    gap: 0.85rem;
}
@media (min-width: 640px) {
    .account-dashboard__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
.account-tile {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    background: #fafafa;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.account-tile:hover {
    border-color: #7ec8c9;
    box-shadow: 0 12px 28px rgba(0, 117, 119, 0.12);
    transform: translateY(-1px);
}
.account-tile__icon {
    flex: 0 0 auto;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #007577, #005c5e);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.account-tile__icon svg {
    width: 1.25rem;
    height: 1.25rem;
}
.account-tile__body {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}
.account-tile__label {
    font-weight: 800;
    color: #111827;
    font-size: 0.95rem;
}
.account-tile__copy {
    font-size: 0.82rem;
    line-height: 1.45;
    color: #6b7280;
}
.account-dashboard__logout {
    margin: 1.25rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
    font-size: 0.88rem;
    color: #6b7280;
}
.account-dashboard__logout a {
    color: #00585a;
    font-weight: 700;
    text-decoration: none;
}
.account-dashboard__logout a:hover {
    text-decoration: underline;
}

/* Account content — body text & links */
.woocommerce-MyAccount-content > p,
.woocommerce-MyAccount-content .woocommerce-Address address {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4b5563;
}
.woocommerce-MyAccount-content a:not(.button):not(.woocommerce-button):not(.account-tile) {
    color: #00585a;
    font-weight: 600;
    text-decoration: none;
}
.woocommerce-MyAccount-content a:not(.button):not(.woocommerce-button):not(.account-tile):hover {
    text-decoration: underline;
}
.woocommerce-MyAccount-content mark {
    background: #e7f4f4;
    color: #00484a;
    padding: 0.1rem 0.35rem;
    border-radius: 0.35rem;
    font-weight: 700;
}

/* Section headings inside account pages */
.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3 {
    margin: 1.5rem 0 0.75rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: #111827;
}
.woocommerce-MyAccount-content h2:first-child,
.woocommerce-MyAccount-content h3:first-child {
    margin-top: 0;
}

/* Orders table */
.woocommerce-MyAccount-content .woocommerce-orders-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e5e7eb;
    border-radius: 0.85rem;
    overflow: hidden;
    font-size: 0.9rem;
}
.woocommerce-MyAccount-content .woocommerce-orders-table thead th {
    padding: 0.75rem 1rem;
    background: #f9fafb;
    color: #374151;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}
.woocommerce-MyAccount-content .woocommerce-orders-table tbody td,
.woocommerce-MyAccount-content .woocommerce-orders-table tbody th {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
    vertical-align: middle;
}
.woocommerce-MyAccount-content .woocommerce-orders-table tbody tr:last-child td,
.woocommerce-MyAccount-content .woocommerce-orders-table tbody tr:last-child th {
    border-bottom: none;
}
.woocommerce-MyAccount-content .woocommerce-orders-table a {
    font-weight: 700;
}

/* Address cards */
.woocommerce-MyAccount-content .woocommerce-Addresses {
    display: grid;
    gap: 1rem;
}
@media (min-width: 700px) {
    .woocommerce-MyAccount-content .woocommerce-Addresses {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.woocommerce-MyAccount-content .woocommerce-Address {
    padding: 1rem 1.1rem;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    background: #fafafa;
}
.woocommerce-MyAccount-content .woocommerce-Address-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}
.woocommerce-MyAccount-content .woocommerce-Address-title h2 {
    margin: 0;
    font-size: 1rem;
}
.woocommerce-MyAccount-content .woocommerce-Address-title .edit {
    font-size: 0.82rem;
    font-weight: 700;
    color: #00585a;
    text-decoration: none;
    white-space: nowrap;
}
.woocommerce-MyAccount-content .woocommerce-Address address {
    margin: 0;
    font-style: normal;
    line-height: 1.55;
    color: #4b5563;
}

/* Account forms */
.woocommerce-MyAccount-content .woocommerce-EditAccountForm,
.woocommerce-MyAccount-content .woocommerce-address-fields,
.woocommerce-MyAccount-content form.edit-account {
    margin-top: 0.5rem;
}
.woocommerce-MyAccount-content .form-row {
    margin-bottom: 1rem;
}
.woocommerce-MyAccount-content .form-row label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #374151;
}
.woocommerce-MyAccount-content .form-row .required {
    color: #005c5e;
}
.woocommerce-MyAccount-content .input-text,
.woocommerce-MyAccount-content select,
.woocommerce-MyAccount-content textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 0.85rem;
    padding: 0.8rem 0.95rem;
    font-size: 1rem;
    background: #f9fafb;
    color: #111827;
}
.woocommerce-MyAccount-content .input-text:focus,
.woocommerce-MyAccount-content select:focus,
.woocommerce-MyAccount-content textarea:focus {
    outline: none;
    border-color: #007577;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 117, 119, 0.12);
}
.woocommerce-MyAccount-content fieldset {
    margin: 1.5rem 0 0;
    padding: 1.1rem 1.15rem;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    background: #fafafa;
}
.woocommerce-MyAccount-content fieldset legend {
    padding: 0 0.35rem;
    font-size: 0.92rem;
    font-weight: 800;
    color: #111827;
}
.woocommerce-MyAccount-content .form-row em,
.woocommerce-MyAccount-content .form-row span em {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.82rem;
    color: #6b7280;
    font-style: normal;
}
@media (min-width: 640px) {
    .woocommerce-MyAccount-content .form-row-first,
    .woocommerce-MyAccount-content .form-row-last {
        width: calc(50% - 0.5rem);
        display: inline-block;
        vertical-align: top;
    }
    .woocommerce-MyAccount-content .form-row-first {
        margin-right: 0.5rem;
    }
    .woocommerce-MyAccount-content .form-row-last {
        margin-left: 0.5rem;
    }
}

/* Buttons & notices */
.woocommerce-MyAccount-content .button,
.woocommerce-MyAccount-content .woocommerce-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.7rem 1.35rem;
    border: none;
    border-radius: 9999px;
    background: linear-gradient(135deg, #007577, #005c5e);
    color: #fff !important;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 117, 119, 0.18);
}
.woocommerce-MyAccount-content .button:hover,
.woocommerce-MyAccount-content .woocommerce-button:hover {
    filter: brightness(1.05);
}
.woocommerce-MyAccount-content .woocommerce-Button--previous,
.woocommerce-MyAccount-content .woocommerce-Button--next {
    margin-top: 0.5rem;
}
.woocommerce-MyAccount-content .woocommerce-message,
.woocommerce-MyAccount-content .woocommerce-info,
.woocommerce-MyAccount-content .woocommerce-error {
    margin: 0 0 1.25rem;
    padding: 0.9rem 1rem;
    border-radius: 0.85rem;
    border: 1px solid transparent;
    font-size: 0.92rem;
    line-height: 1.5;
    list-style: none;
}
.woocommerce-MyAccount-content .woocommerce-message {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}
.woocommerce-MyAccount-content .woocommerce-info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}
.woocommerce-MyAccount-content .woocommerce-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

/* Order detail timeline */
.woocommerce-MyAccount-content .woocommerce-OrderUpdates {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.75rem;
}
.woocommerce-MyAccount-content .woocommerce-OrderUpdate {
    padding: 0.9rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.85rem;
    background: #fafafa;
}
.woocommerce-MyAccount-content .woocommerce-OrderUpdate-meta {
    margin: 0 0 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.woocommerce-MyAccount-content .woocommerce-OrderUpdate-description p {
    margin: 0;
    color: #374151;
}

/* Responsive orders table */
@media (max-width: 767px) {
    .woocommerce-MyAccount-content .woocommerce-orders-table thead {
        display: none;
    }
    .woocommerce-MyAccount-content .woocommerce-orders-table tbody tr {
        display: block;
        padding: 0.85rem 0;
        border-bottom: 1px solid #e5e7eb;
    }
    .woocommerce-MyAccount-content .woocommerce-orders-table tbody tr:last-child {
        border-bottom: none;
    }
    .woocommerce-MyAccount-content .woocommerce-orders-table tbody td,
    .woocommerce-MyAccount-content .woocommerce-orders-table tbody th {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        padding: 0.35rem 1rem;
        border: none;
        text-align: right;
    }
    .woocommerce-MyAccount-content .woocommerce-orders-table tbody td::before,
    .woocommerce-MyAccount-content .woocommerce-orders-table tbody th::before {
        content: attr(data-title);
        font-weight: 700;
        color: #6b7280;
        text-align: left;
    }
}

/* ===== Dark mode ===== */
html[data-theme="dark"] {
    --shopperr-bg: #0c1117;
    --shopperr-bg-muted: #151b23;
    --shopperr-surface: #171e27;
    --shopperr-text: #f3f4f6;
    --shopperr-text-muted: #9ca3af;
    --shopperr-border: #2a3340;
    --shopperr-accent: #007577;
    background: var(--shopperr-bg);
    color: var(--shopperr-text);
}

html[data-theme="dark"] body {
    background: var(--shopperr-bg);
    color: var(--shopperr-text);
}

.site-actions--drawer .theme-toggle {
    display: none;
}

html[data-theme="dark"] .site-header {
    background: #0a0a0a;
    border-bottom: 3px solid #007577;
    box-shadow: none;
}
html[data-theme="dark"] .site-header__logo,
html[data-theme="dark"] .site-header__brand .custom-logo-link {
    color: #007577;
}
html[data-theme="dark"] .site-header__search-wrap svg {
    color: #6b7280;
}
html[data-theme="dark"] .site-header__search-wrap input {
    border-color: var(--shopperr-border);
    background: #111827;
    color: var(--shopperr-text);
}
html[data-theme="dark"] .site-header__search-wrap input:focus {
    background: #0c1117;
    border-color: #007577;
}
html[data-theme="dark"] .site-header__toggle,
html[data-theme="dark"] .theme-toggle {
    border-color: var(--shopperr-border);
    background: var(--shopperr-surface);
    color: #e5e7eb;
}
html[data-theme="dark"] .theme-toggle:hover,
html[data-theme="dark"] .site-header__toggle:hover {
    border-color: #7ec8c9;
    background: #062628;
    color: #7ec8c9;
}

html[data-theme="dark"] .site-nav__link,
html[data-theme="dark"] .site-nav .menu-item a {
    color: #d1d5db;
}
html[data-theme="dark"] .site-nav__link:hover,
html[data-theme="dark"] .site-nav .menu-item a:hover,
html[data-theme="dark"] .site-nav__link.is-active,
html[data-theme="dark"] .site-nav .menu-item.current-menu-item > a,
html[data-theme="dark"] .site-nav .menu-item.current_page_item > a {
    background: #062628;
    color: #7ec8c9;
}
html[data-theme="dark"] .site-nav__panel-inner {
    background: var(--shopperr-surface);
    border-color: var(--shopperr-border);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
}
html[data-theme="dark"] .site-nav__panel-title,
html[data-theme="dark"] .site-nav__category-name {
    color: var(--shopperr-text);
}
html[data-theme="dark"] .site-nav__category:hover,
html[data-theme="dark"] .site-nav__category.is-active {
    background: #062628;
}
html[data-theme="dark"] .site-nav__category-media,
html[data-theme="dark"] .site-nav__category-fallback {
    background: linear-gradient(135deg, #062628, #0c3334);
    color: #7ec8c9;
}
html[data-theme="dark"] .site-nav__category-count {
    color: var(--shopperr-text-muted);
}

html[data-theme="dark"] .site-actions__account {
    border-color: var(--shopperr-border);
    background: var(--shopperr-surface);
}
html[data-theme="dark"] .site-actions__account:hover,
html[data-theme="dark"] .site-actions__account.is-active {
    border-color: #7ec8c9;
    box-shadow: 0 8px 20px rgba(0, 117, 119, 0.16);
}
html[data-theme="dark"] .site-actions__account-icon {
    background: #062628;
    color: #7ec8c9;
}
html[data-theme="dark"] .site-actions__account-label {
    color: var(--shopperr-text);
}
html[data-theme="dark"] .site-actions__account-sub {
    color: var(--shopperr-text-muted);
}
html[data-theme="dark"] .site-actions__cart {
    background: #f3f4f6;
    color: #111827;
}

html[data-theme="dark"] .category-slider {
    border-top-color: var(--shopperr-border);
    background: linear-gradient(180deg, #111827 0%, #0c1117 100%);
}
html[data-theme="dark"] .category-slider__chip,
html[data-theme="dark"] .category-slider__arrow {
    border-color: var(--shopperr-border);
    background: var(--shopperr-surface);
    color: #d1d5db;
}
html[data-theme="dark"] .category-slider__chip:hover,
html[data-theme="dark"] .category-slider__chip.is-active,
html[data-theme="dark"] .category-slider__arrow:hover:not(:disabled) {
    border-color: #7ec8c9;
    background: #062628;
    color: #7ec8c9;
}
html[data-theme="dark"] .category-slider__chip-media {
    background: linear-gradient(135deg, #062628, #0c3334);
}
html[data-theme="dark"] .category-slider__chip-fallback {
    color: #7ec8c9;
}

html[data-theme="dark"] .mobile-nav {
    border-top-color: var(--shopperr-border);
    background: var(--shopperr-surface);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
html[data-theme="dark"] .mobile-nav__search input {
    border-color: var(--shopperr-border);
    background: #111827;
    color: var(--shopperr-text);
}
html[data-theme="dark"] .site-actions--drawer {
    border-color: var(--shopperr-border);
    background: #111827;
}
html[data-theme="dark"] .mobile-nav__category-link,
html[data-theme="dark"] .mobile-nav__links a,
html[data-theme="dark"] .mobile-nav__accordion-trigger {
    border-bottom-color: var(--shopperr-border);
    color: var(--shopperr-text);
}

html[data-theme="dark"] :is(.products, .top-products__list) li.product {
    border-color: var(--shopperr-border);
    background: var(--shopperr-surface);
}
html[data-theme="dark"] :is(.products, .top-products__list) li.product:hover {
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
}
html[data-theme="dark"] :is(.products, .top-products__list) li.product .product-card__footer {
    border-top-color: var(--shopperr-border);
    background: linear-gradient(180deg, #171e27 0%, #121820 100%);
}
html[data-theme="dark"] :is(.products, .top-products__list) li.product .product-card__price {
    color: var(--shopperr-text);
}
html[data-theme="dark"] :is(.products, .top-products__list) li.product .product-card__price del,
html[data-theme="dark"] :is(.products, .top-products__list) li.product .product-card__price .from,
html[data-theme="dark"] :is(.products, .top-products__list) li.product .product-card__price .woocommerce-price-suffix {
    color: #9ca3af;
}

html[data-theme="dark"] .shop-sidebar__nav {
    border-color: var(--shopperr-border);
    background: var(--shopperr-surface);
}
html[data-theme="dark"] .shop-sidebar__link,
html[data-theme="dark"] .shop-sidebar__sublink {
    color: #d1d5db;
}
html[data-theme="dark"] .shop-sidebar__link:hover,
html[data-theme="dark"] .shop-sidebar__sublink:hover {
    background: #111827;
    color: var(--shopperr-text);
}
html[data-theme="dark"] .shop-sidebar__link.is-active,
html[data-theme="dark"] .shop-sidebar__sublink.is-active {
    background: #062628;
    color: #7ec8c9;
}
html[data-theme="dark"] .shop-sidebar__list > .shop-sidebar__item + .shop-sidebar__item {
    border-top-color: var(--shopperr-border);
}
html[data-theme="dark"] .shop-sidebar__sublist {
    background: #111827;
    border-top-color: var(--shopperr-border);
}
@media (max-width: 1023px) {
    html[data-theme="dark"] .shop-sidebar__link {
        border-color: var(--shopperr-border);
        background: var(--shopperr-surface);
    }
    html[data-theme="dark"] .shop-sidebar__link.is-active {
        border-color: #007577;
        background: #007577;
        color: #fff;
    }
}

html[data-theme="dark"] .shop-products-section__title,
html[data-theme="dark"] .shop-by-category__heading,
html[data-theme="dark"] .category-card__title {
    color: var(--shopperr-text);
}
html[data-theme="dark"] .shop-toolbar {
    border-color: var(--shopperr-border);
    background: linear-gradient(180deg, #151b23 0%, #171e27 100%);
}
html[data-theme="dark"] .shop-toolbar .woocommerce-ordering select,
html[data-theme="dark"] .shop-page__inner .woocommerce-ordering select,
html[data-theme="dark"] .shop-products-section .woocommerce-ordering select {
    border-color: var(--shopperr-border);
    color: var(--shopperr-text);
    background-color: #111827;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%239ca3af' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
}
html[data-theme="dark"] .shop-results-footer {
    border-top-color: var(--shopperr-border);
}
html[data-theme="dark"] .shop-results-footer .woocommerce-result-count,
html[data-theme="dark"] .shop-page__inner .woocommerce-result-count,
html[data-theme="dark"] .shop-products-section .woocommerce-result-count {
    color: var(--shopperr-text-muted);
}

html[data-theme="dark"] .category-grid--bottom {
    border-color: var(--shopperr-border);
}
html[data-theme="dark"] .category-card {
    border-color: var(--shopperr-border);
    background: var(--shopperr-surface);
}
html[data-theme="dark"] .category-card__media,
html[data-theme="dark"] .category-card__placeholder {
    background: #111827;
}
html[data-theme="dark"] .category-card__badge {
    background: #062628;
    color: #7ec8c9;
}
html[data-theme="dark"] .category-card__excerpt {
    color: var(--shopperr-text-muted);
}

html[data-theme="dark"] .product-gallery__track,
html[data-theme="dark"] .product-gallery__thumb {
    border-color: #334155;
    background: #1e293b;
}
html[data-theme="dark"] .product-gallery__thumb.is-active,
html[data-theme="dark"] .shopperr-choice-swatch.is-active {
    border-color: #007577;
}
html[data-theme="dark"] .shopperr-choice-swatch {
    border-color: #334155;
    background: #1e293b;
}
html[data-theme="dark"] .product-faqs__title,
html[data-theme="dark"] .product-also__title,
html[data-theme="dark"] .product-faqs__item summary {
    color: var(--shopperr-text);
}
html[data-theme="dark"] .product-faqs__list,
html[data-theme="dark"] .product-faqs__item {
    border-color: var(--shopperr-border);
}
html[data-theme="dark"] .product-faqs__answer,
html[data-theme="dark"] .product-also__copy {
    color: var(--shopperr-text-muted);
}
html[data-theme="dark"] .product-faqs__answer a {
    color: #7ec8c9;
}

html[data-theme="dark"] .single-product__price .price {
    color: var(--shopperr-text);
}
html[data-theme="dark"] .single-product__purchase table.variations th.label label {
    color: #d1d5db;
}
html[data-theme="dark"] .single-product__purchase table.variations select,
html[data-theme="dark"] .single-product__purchase .quantity .qty {
    border-color: var(--shopperr-border);
    background: #111827;
    color: var(--shopperr-text);
}
html[data-theme="dark"] .single-product__purchase .reset_variations {
    color: var(--shopperr-text-muted);
}
html[data-theme="dark"] .woocommerce-tabs ul.tabs {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--shopperr-border);
}
html[data-theme="dark"] .woocommerce-tabs ul.tabs li a {
    display: inline-block;
    padding: 0.65rem 0.9rem;
    color: var(--shopperr-text-muted);
    text-decoration: none;
    font-weight: 700;
}
html[data-theme="dark"] .woocommerce-tabs ul.tabs li.active a {
    color: #7ec8c9;
    box-shadow: inset 0 -2px 0 #007577;
}
html[data-theme="dark"] .woocommerce-Tabs-panel,
html[data-theme="dark"] .woocommerce-tabs .panel {
    color: #d1d5db;
}

html[data-theme="dark"] .basket-page__continue {
    color: #7ec8c9;
}
html[data-theme="dark"] .basket-page__table-wrap,
html[data-theme="dark"] .basket-empty {
    border-color: var(--shopperr-border);
    background: var(--shopperr-surface);
}
html[data-theme="dark"] .basket-table__head th {
    color: var(--shopperr-text-muted);
    background: #111827;
    border-bottom-color: var(--shopperr-border);
}
html[data-theme="dark"] .basket-table__row td {
    border-bottom-color: var(--shopperr-border);
    color: var(--shopperr-text);
}
html[data-theme="dark"] .basket-table__image {
    border-color: var(--shopperr-border);
}
html[data-theme="dark"] .basket-table__name {
    color: var(--shopperr-text);
}
html[data-theme="dark"] .basket-table__remove {
    color: #9ca3af;
}
html[data-theme="dark"] .basket-table__remove:hover {
    color: #fca5a5;
    background: #3f1d1d;
}
html[data-theme="dark"] .basket-page__update {
    border-color: var(--shopperr-border);
    background: #111827;
    color: var(--shopperr-text);
}
html[data-theme="dark"] .order-received__hero {
    border: 1px solid var(--shopperr-border);
}
html[data-theme="dark"] .woocommerce-order-overview li,
html[data-theme="dark"] .woocommerce-order-details,
html[data-theme="dark"] .woocommerce-customer-details,
html[data-theme="dark"] .order-received .woocommerce-bacs-bank-details {
    background: var(--shopperr-surface);
    border-color: var(--shopperr-border);
    color: var(--shopperr-text-muted);
}
html[data-theme="dark"] .woocommerce-order-overview li strong,
html[data-theme="dark"] .woocommerce-order-details__title,
html[data-theme="dark"] .woocommerce-column__title,
html[data-theme="dark"] .order-received h2,
html[data-theme="dark"] .woocommerce-table--order-details a {
    color: var(--shopperr-text);
}
html[data-theme="dark"] .woocommerce-table--order-details th,
html[data-theme="dark"] .woocommerce-table--order-details td,
html[data-theme="dark"] .woocommerce-customer-details address {
    border-color: var(--shopperr-border);
    color: var(--shopperr-text-muted);
}
html[data-theme="dark"] .woocommerce-table--order-details tbody td,
html[data-theme="dark"] .woocommerce-table--order-details tbody th,
html[data-theme="dark"] .woocommerce-table--order-details tfoot td {
    color: var(--shopperr-text);
}

html[data-theme="dark"] .basket-page__checkout {
    border-color: var(--shopperr-border);
    background: linear-gradient(180deg, #062628 0%, #171e27 100%);
}
html[data-theme="dark"] .basket-page__summary-label,
html[data-theme="dark"] .basket-page__checkout-note,
html[data-theme="dark"] .basket-empty__message {
    color: var(--shopperr-text-muted);
}
html[data-theme="dark"] .basket-page__summary-value {
    color: var(--shopperr-text);
}
html[data-theme="dark"] .woocommerce-cart-form .product-thumbnail img {
    border-color: var(--shopperr-border);
}
@media (max-width: 640px) {
    html[data-theme="dark"] .woocommerce-cart-form tr {
        background: #111827;
        border-color: var(--shopperr-border);
    }
}

html[data-theme="dark"] .account-card,
html[data-theme="dark"] .account-nav,
html[data-theme="dark"] .woocommerce-MyAccount-navigation,
html[data-theme="dark"] .woocommerce-MyAccount-content {
    background: var(--shopperr-surface);
    border-color: var(--shopperr-border);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}
html[data-theme="dark"] .account-card__head h3,
html[data-theme="dark"] .account-nav__name,
html[data-theme="dark"] .woocommerce-MyAccount-content h2,
html[data-theme="dark"] .woocommerce-MyAccount-content h3 {
    color: var(--shopperr-text);
}
html[data-theme="dark"] .account-card__head p,
html[data-theme="dark"] .account-nav__email,
html[data-theme="dark"] .account-hint,
html[data-theme="dark"] .account-panel__copy {
    color: var(--shopperr-text-muted);
}
html[data-theme="dark"] .account-field label,
html[data-theme="dark"] .woocommerce-MyAccount-content .form-row label {
    color: #d1d5db;
}
html[data-theme="dark"] .account-input,
html[data-theme="dark"] .woocommerce-MyAccount-content .input-text,
html[data-theme="dark"] .woocommerce-MyAccount-content select,
html[data-theme="dark"] .woocommerce-MyAccount-content textarea {
    border-color: var(--shopperr-border);
    background: #111827;
    color: var(--shopperr-text);
}
html[data-theme="dark"] .account-input:focus,
html[data-theme="dark"] .woocommerce-MyAccount-content .input-text:focus,
html[data-theme="dark"] .woocommerce-MyAccount-content select:focus,
html[data-theme="dark"] .woocommerce-MyAccount-content textarea:focus {
    background: #0c1117;
}
html[data-theme="dark"] .account-nav__profile {
    border-bottom-color: var(--shopperr-border);
}
html[data-theme="dark"] .account-nav__link,
html[data-theme="dark"] .woocommerce-MyAccount-navigation a {
    color: #d1d5db;
}
html[data-theme="dark"] .account-nav__item.is-active .account-nav__link,
html[data-theme="dark"] .woocommerce-MyAccount-navigation .is-active a {
    background: #062628;
    color: #7ec8c9;
}
html[data-theme="dark"] .account-panel__head {
    border-bottom-color: var(--shopperr-border);
}
html[data-theme="dark"] .account-tile,
html[data-theme="dark"] .woocommerce-MyAccount-content .woocommerce-Address,
html[data-theme="dark"] .woocommerce-MyAccount-content fieldset,
html[data-theme="dark"] .woocommerce-MyAccount-content .woocommerce-OrderUpdate {
    border-color: var(--shopperr-border);
    background: #111827;
}
html[data-theme="dark"] .account-tile__label {
    color: var(--shopperr-text);
}
html[data-theme="dark"] .account-tile__copy,
html[data-theme="dark"] .woocommerce-MyAccount-content > p,
html[data-theme="dark"] .woocommerce-MyAccount-content .woocommerce-Address address {
    color: #d1d5db;
}
html[data-theme="dark"] .woocommerce-MyAccount-content .woocommerce-orders-table {
    border-color: var(--shopperr-border);
}
html[data-theme="dark"] .woocommerce-MyAccount-content .woocommerce-orders-table thead th {
    background: #111827;
    color: #d1d5db;
    border-bottom-color: var(--shopperr-border);
}
html[data-theme="dark"] .woocommerce-MyAccount-content .woocommerce-orders-table tbody td,
html[data-theme="dark"] .woocommerce-MyAccount-content .woocommerce-orders-table tbody th {
    border-bottom-color: var(--shopperr-border);
    color: #d1d5db;
}
html[data-theme="dark"] .woocommerce-MyAccount-content mark {
    background: #062628;
    color: #7ec8c9;
}
html[data-theme="dark"] .woocommerce-MyAccount-content .woocommerce-message {
    background: #052e1b;
    border-color: #065f46;
    color: #6ee7b7;
}
html[data-theme="dark"] .woocommerce-MyAccount-content .woocommerce-info {
    background: #0b1f3a;
    border-color: #1e3a8a;
    color: #93c5fd;
}
html[data-theme="dark"] .woocommerce-MyAccount-content .woocommerce-error {
    background: #3f1d1d;
    border-color: #7f1d1d;
    color: #fca5a5;
}

html[data-theme="dark"] .site-footer {
    background: #080b10;
    border-top: 1px solid var(--shopperr-border);
}
html[data-theme="dark"] .shopperr-modal__panel {
    background: var(--shopperr-surface);
    color: var(--shopperr-text);
}
html[data-theme="dark"] .shopperr-modal__header,
html[data-theme="dark"] .shopperr-modal__actions {
    border-color: var(--shopperr-border);
}
html[data-theme="dark"] .shopperr-modal__actions {
    background: #111827;
}
html[data-theme="dark"] .shopperr-modal__title,
html[data-theme="dark"] .shopperr-modal__name,
html[data-theme="dark"] .shopperr-modal__message {
    color: var(--shopperr-text);
}
html[data-theme="dark"] .shopperr-modal__secondary {
    background: #1f2937;
    border-color: #4b5563;
    color: #f9fafb;
}
html[data-theme="dark"] .shopperr-modal__image {
    background: #111827;
    border-color: var(--shopperr-border);
}
html[data-theme="dark"] .shopperr-modal__icon {
    background: #062628;
    color: #7ec8c9;
}

html[data-theme="dark"] .woocommerce-message,
html[data-theme="dark"] .woocommerce-info,
html[data-theme="dark"] .woocommerce-error,
html[data-theme="dark"] .woocommerce-notices-wrapper .woocommerce-message {
    background: #111827;
    border-color: var(--shopperr-border);
    color: var(--shopperr-text);
}

html[data-theme="dark"] .wp-block-woocommerce-checkout,
html[data-theme="dark"] .wc-block-checkout,
html[data-theme="dark"] .wc-block-components-sidebar,
html[data-theme="dark"] .wc-block-components-panel,
html[data-theme="dark"] .wc-block-components-totals-wrapper {
    color: var(--shopperr-text);
}
html[data-theme="dark"] .wc-block-components-sidebar,
html[data-theme="dark"] .wc-block-components-panel,
html[data-theme="dark"] .wc-block-checkout .wc-block-components-checkout-step,
html[data-theme="dark"] .wc-block-components-order-summary {
    background: var(--shopperr-surface);
    border-color: var(--shopperr-border);
}
html[data-theme="dark"] .wc-block-components-text-input input,
html[data-theme="dark"] .wc-block-components-textarea,
html[data-theme="dark"] .wc-block-components-combobox input,
html[data-theme="dark"] .wc-block-components-select select,
html[data-theme="dark"] .wc-block-components-text-input textarea,
html[data-theme="dark"] .wc-block-checkout input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
html[data-theme="dark"] .wc-block-checkout textarea,
html[data-theme="dark"] .wc-block-checkout select,
html[data-theme="dark"] .wc-block-components-form .wc-block-components-text-input input[type="text"],
html[data-theme="dark"] .wc-block-components-form .wc-block-components-text-input input[type="email"],
html[data-theme="dark"] .wc-block-components-form .wc-block-components-text-input input[type="tel"],
html[data-theme="dark"] .wc-block-components-form .wc-block-components-text-input input[type="number"],
html[data-theme="dark"] .wc-block-components-form .wc-block-components-text-input input[type="password"],
html[data-theme="dark"] .wc-block-components-form .wc-block-components-text-input input[type="url"] {
    background-color: #111827 !important;
    border-color: #334155 !important;
    color: #f3f4f6 !important;
    -webkit-text-fill-color: #f3f4f6 !important;
    caret-color: #f3f4f6;
}
html[data-theme="dark"] .wc-block-checkout input:-webkit-autofill,
html[data-theme="dark"] .wc-block-components-text-input input:-webkit-autofill {
    -webkit-text-fill-color: #f3f4f6 !important;
    caret-color: #f3f4f6;
    box-shadow: 0 0 0 1000px #111827 inset !important;
}
html[data-theme="dark"] .wc-block-components-text-input label,
html[data-theme="dark"] .wc-block-components-combobox label,
html[data-theme="dark"] .has-dark-controls .wc-block-components-text-input label {
    color: #d1d5db !important;
}
html[data-theme="dark"] .wc-block-components-text-input input::placeholder {
    color: #9ca3af !important;
    -webkit-text-fill-color: #9ca3af !important;
    opacity: 1;
}
html[data-theme="dark"] .wc-block-components-checkout-step__title,
html[data-theme="dark"] .wc-block-components-title,
html[data-theme="dark"] .wc-block-components-product-name {
    color: var(--shopperr-text);
}
html[data-theme="dark"] .wc-block-components-checkout-step__description,
html[data-theme="dark"] .wc-block-components-product-metadata,
html[data-theme="dark"] .wc-block-components-checkout-step__title::after {
    color: var(--shopperr-text-muted);
}

/* What each checkout section is for. Labels sit inside the fields. */
.wp-block-woocommerce-checkout-contact-information-block .wc-block-components-checkout-step__title::after,
.wp-block-woocommerce-checkout-shipping-address-block .wc-block-components-checkout-step__title::after,
.wp-block-woocommerce-checkout-billing-address-block .wc-block-components-checkout-step__title::after,
.wp-block-woocommerce-checkout-shipping-methods-block .wc-block-components-checkout-step__title::after,
.wp-block-woocommerce-checkout-payment-block .wc-block-components-checkout-step__title::after {
    display: block;
    margin-top: 0.35rem;
    max-width: 36rem;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.45;
    color: #6b7280;
    white-space: normal;
}
.wp-block-woocommerce-checkout-contact-information-block .wc-block-components-checkout-step__title::after {
    content: "We email your order confirmation and tracking to this address.";
}
.wp-block-woocommerce-checkout-shipping-address-block .wc-block-components-checkout-step__title::after {
    content: "The name and address where this order should be delivered.";
}
.wp-block-woocommerce-checkout-billing-address-block .wc-block-components-checkout-step__title::after {
    content: "The address used for your payment receipt. It can match your delivery address.";
}
.wp-block-woocommerce-checkout-shipping-methods-block .wc-block-components-checkout-step__title::after {
    content: "Choose how the order is delivered. Delivery usually takes 2–8 days.";
}
.wp-block-woocommerce-checkout-payment-block .wc-block-components-checkout-step__title::after {
    content: "Checkout is encrypted. Toolbay does not store your card number.";
}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
    color: var(--shopperr-text);
}

html[data-theme="dark"] .bg-white { background-color: var(--shopperr-surface) !important; }
html[data-theme="dark"] .bg-gray-50 { background-color: #111827 !important; }
html[data-theme="dark"] .bg-gray-100 { background-color: #1f2937 !important; }
html[data-theme="dark"] .text-gray-900 { color: var(--shopperr-text) !important; }
html[data-theme="dark"] .text-gray-800,
html[data-theme="dark"] .text-gray-700 { color: #e5e7eb !important; }
html[data-theme="dark"] .text-gray-600,
html[data-theme="dark"] .text-gray-500 { color: #9ca3af !important; }
html[data-theme="dark"] .border-gray-100,
html[data-theme="dark"] .border-gray-200,
html[data-theme="dark"] .border-gray-300 { border-color: var(--shopperr-border) !important; }
html[data-theme="dark"] .prose { color: #d1d5db; }

html[data-theme="dark"] .account-button--secondary {
    background: #1f2937;
    border: 1px solid #4b5563;
    color: #f9fafb;
}
html[data-theme="dark"] .single-product__purchase label,
html[data-theme="dark"] .single-product__purchase .label {
    color: #d1d5db;
}
html[data-theme="dark"] .woocommerce-info,
html[data-theme="dark"] .woocommerce-message,
html[data-theme="dark"] .woocommerce-error,
html[data-theme="dark"] .woocommerce-notices-wrapper .woocommerce-info,
html[data-theme="dark"] .woocommerce-notices-wrapper .woocommerce-message {
    background: #171e27;
    border: 1px solid var(--shopperr-border);
    color: #e5e7eb;
}
html[data-theme="dark"] .woocommerce-pagination .page-numbers,
html[data-theme="dark"] .woocommerce-pagination a {
    color: #d1d5db;
}

/* ===== Top products merchandising slider ===== */
.top-products {
    margin: 0 0 1.5rem;
    padding: 1rem 0 0.25rem;
}
.top-products__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
}
.top-products__eyebrow {
    margin: 0 0 0.2rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #00585a;
}
.top-products__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #111827;
}
.top-products__copy {
    margin: 0.25rem 0 0;
    font-size: 0.88rem;
    color: #6b7280;
}
.top-products__slider {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.top-products__track-wrap {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 1rem, #000 calc(100% - 1rem), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 1rem, #000 calc(100% - 1rem), transparent 100%);
}
.top-products__list {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 0.85rem !important;
    margin: 0 !important;
    padding: 0.2rem 0.15rem 0.7rem !important;
    list-style: none !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.top-products__list::-webkit-scrollbar { display: none; }
.top-products__list > li.product {
    flex: 0 0 11.25rem;
    width: 11.25rem;
    scroll-snap-align: start;
}
@media (min-width: 640px) {
    .top-products__title { font-size: 1.45rem; }
    .top-products__list > li.product {
        flex-basis: 13.25rem;
        width: 13.25rem;
    }
}
.top-products__arrow {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    background: #fff;
    color: #6b7280;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}
.top-products__arrow svg {
    width: 1.15rem;
    height: 1.15rem;
}
.top-products__arrow:hover:not(:disabled) {
    border-color: #7ec8c9;
    color: #00585a;
    background: #e7f4f4;
}
.top-products__arrow:disabled {
    opacity: 0.35;
    cursor: default;
}
@media (max-width: 767px) {
    .top-products {
        margin-bottom: 1.15rem;
    }
    .top-products__arrow { display: none; }
    .top-products__track-wrap {
        -webkit-mask-image: none;
        mask-image: none;
    }
}

html[data-theme="dark"] .top-products__title {
    color: var(--shopperr-text);
}
html[data-theme="dark"] .top-products__copy {
    color: var(--shopperr-text-muted);
}
html[data-theme="dark"] .top-products__arrow {
    background: var(--shopperr-surface);
    border-color: var(--shopperr-border);
    color: #d1d5db;
}
html[data-theme="dark"] .top-products__arrow:hover:not(:disabled) {
    background: #062628;
    border-color: #92400e;
    color: #7ec8c9;
}
