/* Scoped styles for the widget */
.to-header-widget {
    font-family: 'Raleway', sans-serif;
    width: 100%;
    background-color: #fff;
    box-sizing: border-box;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.to-header-widget *,
.to-header-widget *::before,
.to-header-widget *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Top Promotional Bar */
.to-promo-bar {
    background-color: #000;
    color: #fff;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 20px;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 101;
    display: block;
    text-decoration: none;
}

.to-promo-bar:hover {
    color: #fff;
    text-decoration: none;
}

/* Main Header Container */
.to-main-header {
    width: 100%;
    background-color: #fff;
    border-bottom: 1px solid #e5e5e5;
    position: relative;
}

/* Top Row: Parent Logo, Brands & Icons */
.to-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 40px;
    height: 60px;
    border-bottom: 1px solid #f0f0f0;
    gap: 24px;
}

/* Parent Logo (Top Row) - OLD2 Design */
.to-parent-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    color: #000;
}

.to-parent-logo {
    height: auto;
    width: auto;
    display: block;
    object-fit: contain;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.to-parent-logo-link:hover {
    opacity: 0.8;
}

.to-parent-logo-link,
.to-parent-logo-link:visited,
.to-parent-logo-link:hover,
.to-parent-logo-link:active {
    color: #000;
}

/* Separator between parent logo and brand switcher */
.to-logo-separator {
    display: inline-block;
    color: #999;
    margin: 0 16px;
    font-size: 16px;
    line-height: 1;
    opacity: 0.5;
    flex-shrink: 0;
}

/* Brand Switcher */
.to-brand-switcher {
    display: flex;
    align-items: center;
    gap: 24px;
}

.to-brand-link {
    text-decoration: none;
    color: #000;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
}

.to-brand-logo {
    height: 20px;
    width: auto;
    display: block;
    object-fit: contain;
}

.to-brand-main {
    font-weight: 700;
    font-size: 16px;
    opacity: 1;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.to-brand-secondary {
    font-weight: 500;
    font-size: 15px;
    opacity: 0.5;
    text-transform: uppercase;
}

.to-brand-secondary:hover {
    opacity: 1;
}

/* Icons Right */
.to-header-icons {
    display: flex;
    align-items: center;
    gap: 0;
    /* No gaps between icons */
    margin-left: auto;
}

.to-icon-btn {
    background: #fff !important;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    /* Add padding for better click area */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.2s;
    color: #000 !important;
    text-decoration: none;
    position: relative;
}

.to-icon-btn:hover {
    opacity: 0.7;
    color: #000 !important;
}

.to-icon-svg {
    width: 18px;
    /* Thinner icons */
    height: 18px;
    fill: #000 !important;
    stroke: #000 !important;
    stroke-width: 1;
    /* Thinner stroke */
    stroke-linecap: round;
    stroke-linejoin: round;
    color: #000 !important;
}

.to-icon-svg i {
    color: #000 !important;
    font-size: 18px;
    font-weight: 300;
    /* Thinner font weight */
}

.to-icon-svg svg {
    fill: #000 !important;
    stroke: #000 !important;
}

/* Cart Count */
.to-cart-count {
    position: absolute;
    top: -2px;
    right: -6px;
    background-color: #000;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Bottom Row: Navigation */
.to-header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    height: 60px;
    gap: 40px;
}

.to-nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.to-nav-item-wrap {
    height: 100%;
    display: flex;
    align-items: center;
}

.to-nav-item {
    text-decoration: none;
    color: #000;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

.to-nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #000;
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.to-nav-item:hover::after {
    transform: scaleX(1);
}

/* Button */
.to-regimen-btn {
    text-decoration: none;
    color: #000;
    background-color: #fff;
    border: 1px solid #000;
    padding: 10px 24px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-block;
}

.to-regimen-btn:hover {
    background-color: #000;
    color: #fff;
}

/* Mobile Menu Toggle (Hidden on Desktop) */
.to-mobile-toggle {
    display: none;
    background: #fff !important;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #000 !important;
}

.to-mobile-toggle .to-icon-svg,
.to-mobile-toggle .to-icon-svg i,
.to-mobile-toggle .to-icon-svg svg {
    color: #000 !important;
    fill: #000 !important;
    stroke: #000 !important;
}

/* Mobile Menu Drawer (Off-canvas) */
.to-mobile-menu-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background-color: #fff;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.to-mobile-menu-drawer.active {
    transform: translateX(0);
}

.to-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.to-mobile-menu-logo {
    width: 120px;
    height: 40px;
    object-fit: contain;
}

.to-drawer-title {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000;
}

.to-close-drawer {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 5px;
    color: #000;
}

.to-drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

/* Mobile Brands List (Vertical) */
.to-mobile-brands-list {
    display: flex;
    flex-direction: column;
    padding: 0;
    border-bottom: 1px solid #f5f5f5;
}

.to-mobile-brand-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 15px 20px;
    text-decoration: none;
    color: #000;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #f5f5f5;
    transition: background-color 0.2s;
}

.to-mobile-brand-item:hover {
    background-color: #f9f9f9;
}

.to-mobile-brand-item.to-brand-active {
    opacity: 1;
    font-weight: 700;
    color: #000;
}

.to-mobile-brand-logo {
    max-height: 24px;
    width: auto;
    object-fit: contain;
}

.to-mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center menu items */
}

.to-mobile-nav-item {
    border-bottom: 1px solid #f5f5f5;
    width: 100%;
    /* Full width for border */
    text-align: center;
    /* Center text */
}

.to-mobile-nav-link {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #000;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.to-mobile-btn-container {
    padding: 20px;
    border-bottom: 1px solid #f5f5f5;
}

.to-mobile-regimen-btn {
    display: block;
    width: 100%;
    text-align: center;
}

.to-mobile-footer-links {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-bottom: 1px solid #f5f5f5;
}

.to-mobile-footer-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #000;
    font-size: 14px;
    font-weight: 600;
}

.to-mobile-icon {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000 !important;
}

.to-mobile-icon i,
.to-mobile-icon svg {
    color: #000 !important;
    fill: #000 !important;
    stroke: #000 !important;
}

/* Ensure all mobile menu text and links are black */
.to-mobile-nav-link,
.to-mobile-brand-item,
.to-mobile-footer-link {
    color: #000 !important;
}

.to-mobile-brand-item:hover,
.to-mobile-footer-link:hover {
    color: #000 !important;
}

.to-mobile-brand-footer {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.to-visit-text {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    margin-bottom: -5px;
}

.to-brand-footer-link {
    text-decoration: none;
    color: #000;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
}

/* Cart Drawer (Right Side) */
.to-cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background-color: #fff;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.to-cart-drawer.active {
    transform: translateX(0);
}

.to-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.to-cart-title {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #000;
}

.to-close-cart {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 5px;
    color: #000;
}

.to-cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px 24px;
    font-family: 'Raleway', sans-serif;
    color: #000;
}

/* WooCommerce Mini Cart Overrides */
.to-cart-content .widget_shopping_cart_content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.to-cart-content .woocommerce-mini-cart__empty-message {
    text-align: center;
    margin-top: 50px;
    font-size: 16px;
}

.to-cart-content .woocommerce-mini-cart {
    flex: 1;
    padding: 0;
    margin: 0;
}

.to-cart-content .woocommerce-mini-cart-item {
    display: flex;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid #f0f0f0;
}

.to-cart-content .woocommerce-mini-cart-item img {
    width: 72px;
    height: auto;
    margin-right: 18px;
}

.to-cart-content .woocommerce-mini-cart__empty-message,
.to-cart-content .woocommerce-mini-cart__total,
.to-cart-content .woocommerce-mini-cart__buttons,
.to-cart-content .woocommerce-mini-cart-item a,
.to-cart-content .woocommerce-mini-cart-item span,
.to-cart-content .woocommerce-Price-amount {
    font-family: 'Raleway', sans-serif;
    color: #000;
}

.to-cart-content .woocommerce-mini-cart__total strong {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Custom The Ordinary-style mini cart */
.to-mini-cart-panel {
    width: 100%;
}

.to-cart-free-msg {
    font-size: 13px;
    margin-bottom: 16px;
    color: #000;
}

.to-cart-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.to-cart-item {
    display: flex;
    align-items: flex-start;
}

.to-cart-thumb {
    flex: 0 0 auto;
    margin-right: 18px;
}

.to-cart-thumb img {
    width: 80px;
    height: auto;
    object-fit: contain;
    display: block;
}

.to-cart-item-info {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.to-cart-item-brand {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.to-cart-item-name {
    font-size: 14px;
    font-weight: 700;
    color: #000;
    text-decoration: none;
    line-height: 1.4;
    margin-bottom: 4px;
}

.to-cart-item-variation {
    font-size: 12px;
    color: #555;
    margin-bottom: 6px;
}

.to-cart-item-pricing {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 6px;
}

.to-cart-price-regular del {
    font-size: 13px;
    color: #777;
}

.to-cart-price-sale {
    font-size: 14px;
    font-weight: 700;
    color: #c1272d;
}

.to-cart-price-main {
    font-size: 14px;
    font-weight: 600;
}

.to-cart-item-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    margin-top: 4px;
    gap: 12px;
}

/* Quantity Controls */
.to-cart-qty-controls {
    display: flex !important;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    background-color: #fff;
    transition: border-color 0.2s ease;
    visibility: visible !important;
    opacity: 1 !important;
}

.to-cart-qty-controls:hover {
    border-color: #000;
}

.to-cart-qty-controls.updating {
    opacity: 0.6;
    pointer-events: none;
}

.to-qty-btn {
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: 400;
    color: #000;
    padding: 0;
    transition: background-color 0.2s ease, color 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
    line-height: 1;
}

.to-qty-btn:hover {
    background-color: #f5f5f5;
    color: #000;
}

.to-qty-btn:active {
    background-color: #e0e0e0;
}

.to-qty-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.to-qty-input {
    width: 40px;
    height: 32px;
    border: none;
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #000;
    padding: 0;
    background: transparent;
    -moz-appearance: textfield;
    appearance: textfield;
    font-family: 'Raleway', sans-serif;
}

.to-qty-input::-webkit-outer-spin-button,
.to-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.to-qty-input:focus {
    outline: none;
    background-color: #fafafa;
}

.to-qty-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.to-cart-remove {
    font-size: 12px;
    color: #000;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.to-cart-remove:hover {
    text-decoration: underline;
    opacity: 0.7;
}

.to-cart-summary {
    margin-top: 18px;
}

.to-cart-total-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.to-cart-total-value {
    font-size: 16px;
    font-weight: 700;
}

.to-cart-actions {
    margin-top: 16px;
}

.to-cart-content .woocommerce-mini-cart__total {
    padding: 20px 0;
    border-top: 1px solid #000;
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 16px;
}

.to-cart-content .woocommerce-mini-cart__buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.to-cart-content .button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 15px;
    background-color: #000;
    color: #fff;
    text-transform: uppercase;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid #000;
    transition: all 0.3s;
}

.to-cart-content .button:hover {
    background-color: #fff;
    color: #000;
}

.to-cart-content .button.checkout {
    background-color: #000;
    color: #fff;
}

/* Drawer Overlay */
.to-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.to-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Search Overlay */
.to-search-overlay {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    padding: 20px 40px;
    border-bottom: 1px solid #e5e5e5;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.to-search-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.to-search-container {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.to-search-form {
    flex: 1;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #000;
}

.to-search-icon {
    color: #000 !important;
}

.to-search-icon i,
.to-search-icon svg {
    color: #000 !important;
    fill: #000 !important;
    stroke: #000 !important;
}

.to-search-field {
    flex: 1;
    border: none;
    background: none;
    padding: 10px 0;
    font-size: 18px;
    outline: none;
    font-family: inherit;
    color: #000;
}

.to-search-submit {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #000;
}

.to-close-search {
    background: #fff !important;
    border: 1px solid #000;
    font-size: 20px;
    cursor: pointer;
    margin-left: 20px;
    color: #000 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    padding: 0;
    flex-shrink: 0;
}

/* Search Results */
.to-search-results {
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.to-search-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.to-search-list li {
    border-bottom: 1px solid #f0f0f0;
}

.to-search-list li a {
    display: flex;
    align-items: center;
    padding: 15px 0;
    text-decoration: none;
    color: #000;
    transition: background-color 0.2s;
}

.to-search-list li a:hover {
    background-color: #f9f9f9;
}

.to-search-list img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-right: 15px;
    border-radius: 4px;
}

.to-search-item-info {
    display: flex;
    flex-direction: column;
}

.to-search-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    color: #000;
}

.to-search-price {
    font-size: 13px;
    color: #666;
}

.to-no-results {
    padding: 20px 0;
    text-align: center;
    color: #666;
}

/* Mobile Brand Default (Hidden on Desktop) */
.to-mobile-brand {
    display: none;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .to-header-top {
        padding: 12px 20px;
    }

    .to-header-nav {
        padding: 0 20px;
    }

    .to-nav-links {
        gap: 20px;
    }

    .to-brand-switcher {
        gap: 16px;
    }

    .to-parent-logo-link {
        margin-right: 0;
    }

    .to-logo-separator {
        display: none; /* Hide separator on mobile */
    }
}

@media (max-width: 900px) {

    /* Mobile Layout */
    .to-header-top {
        height: 50px;
        padding: 10px 16px;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .to-mobile-toggle {
        display: flex;
        order: 1;
        background: #fff !important;
        color: #000 !important;
    }

    .to-brand-switcher {
        display: none;
    }

    /* Show parent logo on mobile, hide separator */
    .to-parent-logo-link {
        display: flex;
        order: 2; /* After mobile toggle */
        flex: 1;
    }

    /* Mobile logo position options */
    .to-mobile-logo-left .to-parent-logo-link {
        justify-content: flex-start;
        margin-left: 0;
        margin-right: auto;
    }

    .to-mobile-logo-center .to-parent-logo-link {
        justify-content: center;
        margin: 0 auto;
    }

    .to-mobile-logo-right .to-parent-logo-link {
        justify-content: flex-end;
        margin-left: auto;
        margin-right: 0;
    }

    .to-logo-separator {
        display: none; /* Hide separator on mobile */
    }

    /* Hide mobile brand title completely */
    .to-mobile-brand {
        display: none !important;
    }

    .to-header-icons {
        order: 3;
        margin-left: auto;
        gap: 0;
        /* No gaps between icons */
        display: flex;
        flex-shrink: 0;
    }

    /* Hide desktop nav */
    .to-header-nav {
        display: none;
    }

    /* Search overlay mobile adjustments */
    .to-search-overlay {
        padding: 15px 16px;
    }

    .to-search-container {
        flex-direction: column;
        align-items: stretch;
    }

    .to-search-form {
        width: 100%;
    }

    .to-close-search {
        position: absolute;
        right: 16px;
        top: 15px;
    }
}

/* ======================================================================
   The Ordinary Products Widget
   ====================================================================== */

.to-products-widget {
    font-family: 'Raleway', sans-serif;
    position: relative;
    width: 100%;
}

/* Grid container */
.to-products-grid {
    display: grid;
    width: 100%;
    gap: 24px;
}

.to-product-card {
    width: 100%;
}

.to-product-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #ffffff;
}

.to-product-media {
    position: relative;
}

.to-product-image-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 260px;
    background-color: #FAF9F6;
    padding: 24px;
    overflow: hidden;
}

.to-product-image-wrap img {
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    position: relative;
    z-index: 1;
}


/* Products Badge Widget - Full contain image display */
.to-products-badge .to-product-image-wrap {
    position: relative;
    display: block;
    width: 100%;
    height: 260px;
    background-color: #FAF9F6;
    padding: 24px;
    overflow: hidden;
}

.to-products-badge .to-product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0;
    padding: 0;
}

.to-product-badges {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}

.to-product-badge {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #000;
    background-color: #ffffff;
    color: #000000;
}

.to-product-wishlist {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    z-index: 2;
}

.to-product-body {
    display: flex;
    flex-direction: column;
    padding: 16px 0 0;
    gap: 8px;
}

.to-product-title {
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.to-product-title a {
    color: inherit;
    text-decoration: none;
}

.to-product-tags {
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #000000;
    margin: 4px 0 8px 0;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.to-product-rating {
    display: inline-flex;
    margin-bottom: 6px;
}

.to-product-rating .to-star {
    font-size: 13px;
    color: #000000;
    margin-right: 2px;
}

.to-product-rating .to-star-empty {
    opacity: 0.25;
}

.to-product-desc {
    font-size: 13px;
    color: #555555;
    margin-bottom: 0;
    line-height: 1.5em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    max-height: calc(1.5em * 2); /* Exactly 2 lines */
}

.to-product-price {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}

.to-product-price-main {
    font-size: 14px;
    font-weight: 600;
    color: #111111;
}

.to-product-price-regular del {
    color: #777777;
}

.to-product-price-sale {
    font-size: 14px;
    font-weight: 700;
    color: #c1272d;
}

.to-product-size {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #555555;
}

.to-product-btn {
    text-decoration: none;
    border-radius: 0;
    border: 1px solid #000000;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    background-color: #ffffff;
    color: #000000;
    text-align: center;
    transition: background-color 0.2s ease, color 0.2s ease;
    margin-top: 12px;
    width: 100%;
    display: block;
}

.to-product-btn:hover {
    background-color: #000000;
    color: #ffffff;
}

/* Grid column layouts */
.to-products-grid-wrapper {
    width: 100%;
}

.to-products-grid-wrapper.to-grid-cols-1 .to-products-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.to-products-grid-wrapper.to-grid-cols-2 .to-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.to-products-grid-wrapper.to-grid-cols-3 .to-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.to-products-grid-wrapper.to-grid-cols-4 .to-products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.to-products-grid-wrapper.to-grid-cols-5 .to-products-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.to-products-grid-wrapper.to-grid-cols-6 .to-products-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

/* Grid B: Always 2 per line on all screen sizes */
.to-grid-b .to-products-grid,
.to-grid-two-per-line {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

/* Grid A: Responsive breakpoints */
@media (max-width: 1024px) {
    .to-grid-a.to-grid-cols-4 .to-products-grid,
    .to-grid-a.to-grid-cols-5 .to-products-grid,
    .to-grid-a.to-grid-cols-6 .to-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    /* Grid A: Mobile always 2 products per line */
    .to-grid-a .to-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    
    /* Grid B: Still 2 per line on mobile */
    .to-grid-b .to-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    
    .to-products-grid {
        gap: 16px;
    }
}

@media (max-width: 480px) {
    /* Grid A: Small mobile - 1 column */
    .to-grid-a .to-products-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    }
    
    /* Grid B: Still 2 per line even on small mobile */
    .to-grid-b .to-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* Customizable Grid Responsive */
@media (max-width: 768px) {
    .to-products-customizable .to-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 480px) {
    .to-products-customizable .to-products-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    }
}

/* Hide default Woo "View cart" button after AJAX add-to-cart inside this widget */
.to-products-widget .added_to_cart.wc-forward {
    display: none !important;
}

/* ======================================================================
   The Ordinary Footer
   ====================================================================== */

.to-footer {
    font-family: 'Raleway', sans-serif;
    width: 100%;
    background-color: #ffffff;
    color: #000000;
    border-top: 1px solid #e5e5e5;
}

.to-footer-main {
    padding: 40px 20px 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.to-footer-columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 2fr;
    gap: 30px;
    margin-bottom: 40px;
    align-items: start;
}

.to-footer-column {
    display: flex;
    flex-direction: column;
}

.to-footer-column-title {
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    margin: 0 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.to-footer-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.to-footer-menu-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.to-footer-menu-item a {
    color: inherit;
    text-decoration: none;
}

.to-footer-menu-item a:hover {
    opacity: 0.7;
}

.to-footer-menu-icon {
    margin-right: 8px;
    display: inline-flex;
    align-items: center;
}


.to-footer-newsletter {
    max-width: 100%;
}

.to-footer-newsletter-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: #000000;
}

.to-footer-newsletter-desc {
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 20px 0;
    color: #000000;
}

.to-footer-newsletter-form {
    margin-bottom: 16px;
}

.to-footer-newsletter-input-wrapper {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #000000;
    padding-bottom: 8px;
    position: relative;
}

.to-footer-newsletter-input {
    flex: 1;
    padding: 8px 0;
    padding-right: 30px;
    border: none;
    border-bottom: none;
    outline: none;
    font-size: 14px;
    font-family: 'Raleway', sans-serif;
    background: transparent;
    color: #000000;
    border-radius: 0;
}

.to-footer-newsletter-submit {
    position: absolute;
    right: 0;
    padding: 8px 0;
    border: none;
    background: transparent;
    color: #000000;
    font-size: 18px;
    cursor: pointer;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.to-footer-newsletter-submit:hover {
    color: #666666;
}

.to-footer-newsletter-submit:hover {
    opacity: 0.7;
}

.to-footer-newsletter-input::placeholder {
    color: #999999;
}

.to-footer-newsletter-legal {
    font-size: 11px;
    line-height: 1.6;
    color: #666666;
    margin: 0;
}

.to-footer-newsletter-legal a {
    color: inherit;
    text-decoration: underline;
}


.to-footer-brand-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 30px 20px;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    flex-wrap: wrap;
}

.to-footer-parent-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.to-footer-parent-logo {
    max-height: 30px;
    width: auto;
    display: block;
}

.to-footer-logo-separator {
    color: #999999;
    font-size: 16px;
    opacity: 0.5;
}

.to-footer-brand-switcher {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.to-footer-brand-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #000000 !important;
    font-size: 14px;
    font-weight: 400;
}

.to-footer-brand-link.to-brand-main,
.to-footer-brand-link.to-brand-secondary {
    color: #000000 !important;
    font-weight: 400;
}

.to-footer-brand-link:hover {
    color: #000000 !important;
    opacity: 1;
}

.to-footer-brand-link:hover {
    opacity: 0.7;
}

.to-footer-brand-logo {
    height: 20px;
    width: auto;
    display: block;
}

.to-footer-bottom {
    padding: 20px;
    text-align: center;
    background-color: #ffffff;
    border-top: 1px solid #e5e5e5;
}

.to-footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    font-size: 12px;
    color: #000000;
}

.to-footer-copyright {
    display: block;
    text-align: center;
}

/* Footer Responsive */
@media (max-width: 1024px) {
    .to-footer-columns {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .to-footer-newsletter {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .to-footer-main {
        padding: 30px 16px 20px;
    }
    
    .to-footer-columns {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 30px;
    }
    
    .to-footer-newsletter {
        grid-column: 1;
    }
    
    .to-footer-brand-section {
        flex-direction: column;
        gap: 12px;
        padding: 25px 16px;
    }
    
    .to-footer-bottom {
        padding: 16px;
    }
    
    .to-footer-bottom-content {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .to-footer-main {
        padding: 25px 12px 15px;
    }
    
    .to-footer-column-title {
        font-size: 13px;
        margin-bottom: 14px;
    }
    
    .to-footer-menu-item {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    .to-footer-newsletter-title {
        font-size: 15px;
    }
    
    .to-footer-newsletter-desc {
        font-size: 13px;
    }
    
    .to-footer-social {
        gap: 16px;
    }
    
    .to-footer-social-icon {
        font-size: 18px;
    }
}

/* ======================================================================
   As Seen On Social Widget
   ====================================================================== */

.to-as-seen-on-social {
    font-family: 'Raleway', sans-serif;
    width: 100%;
    overflow: hidden;
}

.to-as-seen-slider {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #cccccc #f5f5f5;
    gap: 20px;
    padding-bottom: 10px;
    width: 100%;
}

.to-as-seen-slider::-webkit-scrollbar {
    height: 6px;
}

.to-as-seen-slider::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.to-as-seen-slider::-webkit-scrollbar-thumb {
    background: #cccccc;
    border-radius: 3px;
}

.to-as-seen-slider::-webkit-scrollbar-thumb:hover {
    background: #999999;
}

.to-as-seen-slide {
    flex: 0 0 auto;
    width: calc(100% - 20px);
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    height: 100%;
    min-height: 520px;
}

.to-as-seen-media {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.to-as-seen-image,
.to-as-seen-video-wrapper {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.to-as-seen-video-wrapper iframe,
.to-as-seen-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.to-as-seen-overlay-text {
    position: absolute;
    bottom: 16px;
    left: 16px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 400;
    z-index: 2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.to-as-seen-product-info {
    background-color: #ffffff;
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 120px;
    justify-content: space-between;
}

.to-as-seen-product-title {
    font-size: 14px;
    font-weight: 400;
    color: #000000;
    margin: 0 0 12px 0;
    line-height: 1.4;
    word-wrap: break-word;
}

.to-as-seen-product-bottom {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.to-as-seen-product-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.to-as-seen-shop-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #000000;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
    border-radius: 0;
}

.to-as-seen-shop-btn:hover {
    background-color: #000000;
    color: #ffffff;
    border-color: #000000;
}

/* Responsive */
@media (min-width: 481px) and (max-width: 768px) {
    .to-as-seen-slide {
        width: calc(50% - 10px);
        min-width: calc(50% - 10px);
    }
}

@media (min-width: 769px) {
    .to-as-seen-slide {
        width: calc(25% - 15px);
        min-width: calc(25% - 15px);
    }
}

@media (max-width: 480px) {
    .to-as-seen-slide {
        width: calc(100% - 20px);
        min-width: calc(100% - 20px);
    }
}

/* ======================================================================
   Featured Product Hero Banner
   ====================================================================== */

.to-featured-hero {
    font-family: 'Raleway', sans-serif;
    position: relative;
    width: 100%;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.to-featured-hero-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 33%;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    pointer-events: none;
    z-index: 1;
    will-change: transform;
}

.to-featured-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0;
    padding: 0 0 60px 60px;
    text-align: left;
}

.to-featured-hero-title {
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px 0;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.to-featured-hero-description {
    font-size: 15px;
    font-weight: 400;
    color: #ffffff;
    margin: 0 0 20px 0;
    line-height: 1.5;
    max-width: 550px;
}

.to-featured-hero-cta {
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    position: relative;
    padding-bottom: 2px;
    transition: opacity 0.2s ease;
    line-height: 1;
}

.to-featured-hero-cta::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    border-bottom: 1px solid #ffffff;
}

.to-featured-hero-cta:hover {
    opacity: 0.85;
}

.to-featured-hero-cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-left: 6px;
    transition: transform 0.2s ease;
    font-weight: 400;
}

.to-featured-hero-cta:hover .to-featured-hero-cta-icon {
    transform: translate(2px, -2px);
}

.to-featured-hero-label {
    position: absolute;
    top: 40px;
    right: 40px;
    font-size: 12px;
    font-weight: 400;
    color: #ffffff;
    z-index: 3;
    text-align: right;
    max-width: 200px;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 1024px) {
    .to-featured-hero-content {
        padding: 0 0 50px 50px;
    }
    
    .to-featured-hero-title {
        font-size: 36px;
    }
    
    .to-featured-hero-label {
        top: 30px;
        right: 30px;
        max-width: 150px;
    }
}

@media (max-width: 768px) {
    .to-featured-hero {
        min-height: 500px;
    }
    
    .to-featured-hero-content {
        padding: 0 0 40px 40px;
    }
    
    .to-featured-hero-title {
        font-size: 28px;
    }
    
    .to-featured-hero-description {
        font-size: 14px;
        max-width: 100%;
    }
    
    .to-featured-hero-gradient {
        height: 40%;
    }
    
    .to-featured-hero-label {
        top: 20px;
        right: 20px;
        font-size: 11px;
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    .to-featured-hero {
        min-height: 400px;
    }
    
    .to-featured-hero-content {
        padding: 0 0 30px 24px;
    }
    
    .to-featured-hero-title {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .to-featured-hero-description {
        font-size: 13px;
        margin-bottom: 16px;
    }
    
    .to-featured-hero-gradient {
        height: 45%;
    }
    
    .to-featured-hero-label {
        top: 15px;
        right: 15px;
        font-size: 10px;
        max-width: 100px;
    }
}


/* ========================================
   Filterable Products Widget
   ======================================== */

.to-filterable-products-widget {
    width: 100%;
    box-sizing: border-box;
}

/* ========================================
   Filterable Products Widget - Refactored
   Clean Black/White Design
   ======================================== */

/* Main Widget Container */
.to-filterable-products-widget {
    width: 100%;
    font-family: 'Raleway', sans-serif;
    color: #000000;
    background-color: #ffffff;
}

/* Filters Section - Scoped to filterable widget only */
.to-filterable-products-widget .to-filters-section {
    margin-bottom: 40px;
    padding: 30px;
    background-color: #ffffff;
    border: 1px solid #000000;
}

.to-filterable-products-widget .to-filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #000000;
}

.to-filterable-products-widget .to-filters-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Raleway', sans-serif;
    color: #000000;
}

.to-filterable-products-widget .to-reset-filters-btn {
    padding: 10px 20px;
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #000000;
    cursor: pointer;
    font-family: 'Raleway', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    min-width: 100px;
}

.to-filterable-products-widget .to-reset-filters-btn:hover {
    background-color: #000000;
    color: #ffffff;
}

.to-filterable-products-widget .to-filters-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    align-items: start;
}

.to-filterable-products-widget .to-filter-group {
    display: flex;
    flex-direction: column;
}

.to-filterable-products-widget .to-filter-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #000000;
    font-family: 'Raleway', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Price Filter - Scoped to filterable widget only */
.to-filterable-products-widget .to-price-range-container {
    position: relative;
}

.to-filterable-products-widget .to-price-range-wrapper {
    position: relative;
    margin: 15px 0;
}

.to-filterable-products-widget .to-price-range {
    width: 100%;
    margin: 0;
    -webkit-appearance: none;
    appearance: none;
    height: 2px;
    background: #000000;
    outline: none;
    position: relative;
    z-index: 1;
}

.to-filterable-products-widget .to-price-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #000000;
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px #000000;
}

.to-filterable-products-widget .to-price-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #000000;
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px #000000;
}

.to-filterable-products-widget .to-price-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    font-size: 12px;
    font-weight: 700;
    font-family: 'Raleway', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #000000;
}

.to-filterable-products-widget .to-price-separator {
    margin: 0 8px;
}

/* Sort By Dropdown - Scoped to filterable widget only */
.to-filterable-products-widget .to-filter-select {
    width: 100%;
    padding: 12px 15px;
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #000000;
    font-family: 'Raleway', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23000000' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    padding-right: 40px;
    transition: all 0.2s ease;
}

.to-filterable-products-widget .to-filter-select:hover {
    background-color: #000000;
    color: #ffffff;
}

.to-filterable-products-widget .to-filter-select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.to-filterable-products-widget .to-filter-select option {
    background-color: #ffffff;
    color: #000000;
    padding: 10px;
}

.to-filterable-products-widget .to-multi-select-hint {
    font-size: 10px;
    color: #666666;
    margin-top: 6px;
    font-style: italic;
    text-transform: none;
    letter-spacing: 0;
}

/* Checkbox Filters - Scoped to filterable widget only */
.to-filterable-products-widget .to-filter-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}

.to-filterable-products-widget .to-filter-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 12px;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 0;
    transition: color 0.2s ease;
}

.to-filterable-products-widget .to-filter-checkbox-label:hover {
    color: #666666;
}

.to-filterable-products-widget .to-filter-checkbox-label input[type="checkbox"],
.to-filterable-products-widget .to-filter-checkbox-label input[type="radio"] {
    margin-right: 12px;
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #000000;
    flex-shrink: 0;
}

.to-filterable-products-widget .to-filter-checkbox-label span {
    user-select: none;
}

/* Brand Images Grid - Scoped to filterable widget only */
.to-filterable-products-widget .to-filter-brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.to-filterable-products-widget .to-filter-brand-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    text-align: center;
    transition: opacity 0.2s ease;
}

.to-filterable-products-widget .to-filter-brand-item:hover {
    opacity: 0.7;
}

.to-filterable-products-widget .to-filter-brand-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.to-filterable-products-widget .to-filter-brand-item input[type="checkbox"]:checked + .to-brand-image-wrapper {
    border-color: #000000;
    border-width: 2px;
}

.to-filterable-products-widget .to-brand-image-wrapper {
    width: 80px;
    height: 80px;
    border: 1px solid #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    transition: all 0.2s ease;
    overflow: hidden;
    background-color: #ffffff;
}

.to-filterable-products-widget .to-brand-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.to-filterable-products-widget .to-brand-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    text-transform: uppercase;
}

.to-filterable-products-widget .to-brand-name {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #000000;
    line-height: 1.2;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Loading State - Scoped to filterable widget only */
.to-filterable-products-widget .to-products-loading {
    text-align: center;
    padding: 60px 20px;
    font-size: 12px;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000000;
}

.to-filterable-products-widget .to-filter-group.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.to-filterable-products-widget .to-filter-group.loading::after {
    content: 'Loading...';
    display: block;
    margin-top: 10px;
    font-size: 10px;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Products Section - Scoped to filterable widget only */
.to-filterable-products-widget .to-products-section {
    position: relative;
    margin-top: 40px;
}

.to-filterable-products-widget .to-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    transition: opacity 0.3s ease;
}

.to-filterable-products-widget .to-product-wrapper {
    width: 100%;
    opacity: 0;
    animation: fadeInProduct 0.4s ease-in forwards;
}

@keyframes fadeInProduct {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Load More Button - Scoped to filterable widget only */
.to-filterable-products-widget .to-load-more-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    padding: 20px 0;
}

.to-filterable-products-widget .to-load-more-btn {
    padding: 14px 40px;
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #000000;
    cursor: pointer;
    font-family: 'Raleway', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    min-width: 180px;
}

.to-filterable-products-widget .to-load-more-btn:hover {
    background-color: #000000;
    color: #ffffff;
}

.to-filterable-products-widget .to-load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* No Products Message - Scoped to filterable widget only */
.to-filterable-products-widget .to-no-products {
    text-align: center;
    padding: 60px 20px;
    font-size: 14px;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000000;
}

.to-filterable-products-widget .to-no-categories {
    font-size: 11px;
    color: #666666;
    font-style: italic;
    padding: 10px 0;
    text-transform: none;
    letter-spacing: 0;
}

/* Responsive: Mobile - Scoped to filterable widget only */
@media (max-width: 767px) {
    .to-filterable-products-widget .to-filters-section {
        padding: 20px;
    }
    
    .to-filterable-products-widget .to-filters-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .to-filterable-products-widget .to-filter-group {
        width: 100%;
    }
    
    .to-filterable-products-widget .to-filters-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .to-filterable-products-widget .to-reset-filters-btn {
        width: 100%;
    }
    
    .to-filterable-products-widget .to-filter-brands-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 12px;
    }
    
    .to-filterable-products-widget .to-brand-image-wrapper {
        width: 70px;
        height: 70px;
    }
    
    .to-filterable-products-widget .to-brand-name {
        max-width: 70px;
    }
    
    .to-filterable-products-widget .to-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px;
    }
    
    .to-filterable-products-widget .to-load-more-btn {
        width: 100%;
        min-width: 100%;
    }
}

/* Responsive: Tablet - Scoped to filterable widget only */
@media (min-width: 768px) and (max-width: 1024px) {
    .to-filterable-products-widget .to-filters-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .to-filterable-products-widget .to-filter-group {
        min-width: 0;
    }
    
    .to-filterable-products-widget .to-filter-brands-grid {
        grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
    }
    
    .to-filterable-products-widget .to-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 20px;
    }
}

/* Responsive: Desktop - Scoped to filterable widget only */
@media (min-width: 1025px) {
    .to-filterable-products-widget .to-filters-container {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    
    .to-filterable-products-widget .to-products-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 24px;
    }
}

/* ========================================
   Tiered Pricing - Shortcode Implementation
   ======================================== */

/* Frontend: Tiered Pricing Container */
.to-tiered-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
    width: 100%;
    box-sizing: border-box;
}

/* Frontend: Tier Button - The Ordinary Aesthetic */
.to-tier-btn {
    flex: 1;
    min-width: 140px;
    padding: 16px 20px;
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #000000 !important;
    cursor: pointer;
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 80px;
    line-height: 1.4;
    box-sizing: border-box;
    margin: 0;
}

.to-tier-btn:hover {
    background: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
}

.to-tier-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.to-tier-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.to-tier-btn.added {
    background: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
}

.to-tier-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Button Content Lines */
.to-tier-line-1 {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: 1px;
    text-transform: uppercase !important;
}

.to-tier-line-2 {
    display: block;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: 1px;
    text-transform: uppercase !important;
}

.to-tier-line-3 {
    display: block;
    font-size: 11px;
    font-weight: 500;
    margin-top: 4px;
    opacity: 0.8;
    letter-spacing: 1px;
    text-transform: uppercase !important;
}

/* Standard Cart Container (when tiered pricing is off) */
.to-standard-cart {
    width: 100%;
    margin: 20px 0;
}

/* Responsive: Stack vertically on mobile */
@media (max-width: 767px) {
    .to-tiered-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .to-tier-btn {
        width: 100% !important;
        min-width: 100% !important;
    }
}

/* ========================================
   Product Archive Grid Widget - NEW
   Clean, Simple Implementation
   ======================================== */

.to-product-archive-widget {
    width: 100%;
    font-family: 'Raleway', sans-serif;
    color: #000000;
    background-color: #ffffff;
}

/* Filters - Compact Layout */
.to-archive-filters {
    padding: 24px;
    margin-bottom: 40px;
    background-color: #ffffff;
    border: 1px solid #000000;
    box-sizing: border-box;
}

.to-archive-filter-row {
    margin-bottom: 20px;
}

.to-archive-filter-row:last-child {
    margin-bottom: 0;
}

.to-archive-filter-label {
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000000;
    font-family: 'Raleway', sans-serif;
}

/* Brand Dropdown - Similar to Category */
.to-archive-brand-dropdown {
    position: relative;
    width: 100%;
    z-index: 10;
}

.to-archive-brand-toggle {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e5e5;
    background-color: #ffffff;
    color: #000000;
    font-family: 'Raleway', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.2s ease;
    text-align: left;
}

.to-archive-brand-toggle:hover {
    border-color: #000000;
}

.to-archive-brand-arrow {
    font-size: 10px;
    transition: transform 0.2s ease;
}

.to-archive-brand-dropdown.open .to-archive-brand-arrow {
    transform: rotate(180deg);
}

.to-archive-brand-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #000000;
    background-color: #ffffff;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.to-archive-brand-dropdown.open .to-archive-brand-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.to-archive-brand-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f5f5f5;
    width: 100%;
    text-align: left;
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
    font-family: 'Raleway', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #000000;
}

.to-archive-brand-option:last-child {
    border-bottom: none;
}

.to-archive-brand-option:hover {
    background-color: #f5f5f5;
}

.to-archive-brand-option.active {
    background-color: #000000;
    color: #ffffff;
}

.to-archive-brand-option-image {
    width: 30px;
    height: 30px;
    object-fit: contain;
    margin-right: 12px;
    flex-shrink: 0;
}

.to-archive-brand-option span {
    flex: 1;
}

/* Single Row: Brand, Category, Sort */
.to-archive-filter-row-single {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: nowrap;
}

.to-archive-filter-control-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.to-archive-filter-group-brands {
    flex: 0 0 auto;
    min-width: 200px;
    max-width: 40%;
}

.to-archive-filter-group-category {
    flex: 1;
    min-width: 150px;
}

.to-archive-filter-group-sort {
    flex: 0 0 auto;
    min-width: 180px;
}

.to-archive-filter-group-reset {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-end;
}

.to-archive-filter {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e5e5;
    background-color: #ffffff;
    color: #000000;
    font-family: 'Raleway', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23000000' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
    padding-right: 40px;
    transition: all 0.2s ease;
    min-height: 44px;
}

.to-archive-filter:hover {
    border-color: #000000;
}

.to-archive-filter:focus {
    outline: none;
    border-color: #000000;
}

/* Category Multi-Select Wrapper */
/* Category Custom Dropdown */
.to-archive-category-dropdown {
    position: relative;
    z-index: 20;
}

.to-archive-brand-dropdown {
    position: relative;
    z-index: 20;
}

.to-archive-category-toggle {
    width: 100%;
    min-height: 44px;
    padding: 12px 40px 12px 16px;
    border: 1px solid #e5e5e5;
    background-color: #ffffff;
    color: #000000;
    font-family: 'Raleway', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    transition: border-color 0.2s ease;
}

.to-archive-category-toggle:hover {
    border-color: #000000;
}

.to-archive-category-toggle[aria-expanded="true"] {
    border-color: #000000;
}

.to-archive-category-display-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.to-archive-category-arrow {
    flex-shrink: 0;
    margin-left: 8px;
    font-size: 10px;
    transition: transform 0.3s ease;
}

.to-archive-category-toggle[aria-expanded="true"] .to-archive-category-arrow {
    transform: rotate(180deg);
}

.to-archive-category-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #000000;
    background-color: #ffffff;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.to-archive-category-dropdown.open .to-archive-category-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.to-archive-category-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f5f5f5;
}

.to-archive-category-option:last-child {
    border-bottom: none;
}

.to-archive-category-option:hover {
    background-color: #f5f5f5;
}

.to-archive-category-checkbox {
    margin-right: 12px;
    width: 16px;
    height: 16px;
    cursor: pointer;
    flex-shrink: 0;
}

.to-archive-category-option span {
    flex: 1;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #000000;
}

.to-archive-filter.to-archive-category option {
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.to-archive-filter.to-archive-category option:checked {
    background-color: #000000;
    color: #ffffff;
}


/* Reset Filters Button (Mobile Only) */
.to-archive-reset-filters {
    width: auto;
    padding: 10px 20px;
    margin: 0;
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #000000;
    cursor: pointer;
    font-family: 'Raleway', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    white-space: nowrap;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.to-archive-reset-filters:hover {
    background-color: #000000;
    color: #ffffff;
}

/* Product Count */
.to-archive-product-count {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 20px;
    margin-bottom: 24px;
    font-family: 'Raleway', sans-serif;
}

.to-archive-product-count-number {
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    letter-spacing: 1px;
}

.to-archive-product-count-text {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000000;
}

/* Active Filters Chips */
.to-archive-active-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px 0;
    flex-wrap: wrap;
}

.to-archive-active-filters-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000000;
}

.to-archive-active-filters-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.to-archive-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background-color: #f5f5f5;
    border: 1px solid #000000;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #000000;
}

.to-archive-filter-chip-remove {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    font-size: 14px;
    line-height: 1;
    transition: opacity 0.2s ease;
}

.to-archive-filter-chip-remove:hover {
    opacity: 0.6;
}

/* Loading Skeleton */
.to-archive-loading-skeleton {
    margin-bottom: 40px;
}

.to-archive-skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.to-archive-skeleton-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.to-archive-skeleton-image {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

.to-archive-skeleton-title {
    width: 80%;
    height: 16px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

.to-archive-skeleton-price {
    width: 60%;
    height: 14px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Products Section */
.to-archive-products-section {
    position: relative;
}

.to-archive-loading {
    text-align: center;
    padding: 40px 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000000;
}

.to-archive-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    transition: opacity 0.3s ease;
}

/* Use the same product card styles as the main product widget */
.to-product-archive-widget .to-product-card {
    width: 100%;
}

.to-archive-load-more-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    padding: 20px 0;
    width: 100%;
}

.to-archive-load-more {
    padding: 14px 40px;
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #000000;
    cursor: pointer;
    font-family: 'Raleway', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    min-width: 180px;
}

.to-archive-load-more:hover {
    background-color: #000000;
    color: #ffffff;
}

/* Load More - Controlled by JavaScript only */
/* Removed redundant styles that were hiding the button */

.to-archive-no-products {
    text-align: center;
    padding: 60px 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000000;
}

/* Loading state for category select */
.to-archive-filter.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Responsive Styles */

/* Desktop (≥1024px) - Default styles above */

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .to-archive-filters {
        padding: 20px;
    }

    .to-archive-filter-row-controls {
        flex-wrap: nowrap;
        gap: 12px;
        align-items: flex-end;
    }

    .to-archive-filter-control-group {
        flex: 1;
        min-width: 0;
    }
    
    .to-archive-price-buttons {
        flex-wrap: nowrap;
        overflow-x: auto;
    }
}

/* Mobile (≤767px) */
@media (max-width: 767px) {
    .to-archive-filters {
        padding: 16px;
    }

    .to-archive-filter-row {
        margin-bottom: 16px;
    }


    .to-archive-filter-row-single {
        flex-direction: column;
        gap: 16px;
    }

    .to-archive-filter-control-group {
        width: 100%;
    }

    .to-archive-filter-group-brands {
        max-width: 100%;
    }

    .to-archive-filter-group-reset {
        width: 100%;
        margin-top: 16px;
    }

    .to-archive-reset-filters {
        width: 100%;
        padding: 10px 16px;
    }

    .to-archive-skeleton-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .to-archive-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    /* Load More - Mobile styles */
    .to-archive-load-more-container {
        padding: 20px 16px;
    }

    .to-archive-load-more {
        width: 100%;
        max-width: 100%;
        min-width: auto;
        padding: 16px 20px;
        font-size: 12px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .to-archive-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1025px) {
    .to-archive-products-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ========================================
   Products Slider Widget
   Lightweight slider with native scrolling
   ======================================== */

.to-products-slider-container {
    position: relative;
    width: 100%;
    font-family: 'Raleway', sans-serif;
}

.to-slider-wrapper {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 20px;
    padding: 0;
    margin: 0;
}

.to-slider-wrapper::-webkit-scrollbar {
    display: none;
}

.to-slider-wrapper .to-product-card {
    flex: 0 0 auto;
    min-width: 0;
}

/* Responsive per-view using CSS custom properties */
.to-slider-wrapper {
    --per-view: 1;
}

@media (min-width: 768px) {
    .to-slider-wrapper {
        --per-view: var(--per-view-tablet, 3);
    }
}

@media (min-width: 1025px) {
    .to-slider-wrapper {
        --per-view: var(--per-view-desktop, 4);
    }
}

/* Card width is set by JavaScript based on per-view settings */
.to-slider-wrapper .to-product-card {
    flex-shrink: 0;
}

/* Navigation Arrows */
.to-slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border: 1px solid #000000;
    background-color: #ffffff;
    color: #000000;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 0;
    padding: 0;
}

.to-slider-nav-btn:hover {
    background-color: #000000;
    color: #ffffff;
}

.to-slider-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.to-slider-prev {
    left: 10px;
}

.to-slider-next {
    right: 10px;
}

/* Hide arrows on mobile and prevent touch blocking */
@media (max-width: 767px) {
    .to-slider-nav-btn {
        display: none;
        pointer-events: none;
    }
}

/* Prevent arrows from blocking touch on all devices */
.to-slider-nav-btn {
    pointer-events: auto;
}

@media (max-width: 767px) {
    .to-slider-nav-btn {
        pointer-events: none;
    }
}

/* ========================================
   Add to Cart + WhatsApp Button Widget
   ======================================== */

.to-atc-wa-widget {
    width: 100%;
    font-family: 'Raleway', sans-serif;
}

.to-atc-wa-container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Quantity Selector */
.to-atc-wa-quantity {
    display: flex;
    align-items: center;
    gap: 0;
}

.to-atc-wa-qty-btn {
    display: none !important;
    visibility: hidden;
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.to-atc-wa-qty-input {
    width: 80px;
    height: 44px;
    border: 1px solid #000000;
    background-color: #ffffff;
    color: #000000;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Raleway', sans-serif;
    padding: 0;
    -moz-appearance: textfield;
    border-radius: 0;
}

.to-atc-wa-qty-input::-webkit-outer-spin-button,
.to-atc-wa-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.to-atc-wa-qty-input:focus {
    outline: 2px solid #000000;
    outline-offset: -2px;
    background-color: #f5f5f5;
}

/* Buttons */
.to-atc-wa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    border-radius: 0;
    min-height: 44px;
    box-sizing: border-box;
}

/* Add to Cart Button */
.to-atc-wa-add-cart {
    background-color: #000000;
    color: #ffffff;
    flex: 1;
    min-width: 140px;
    border: 1px solid transparent;
}

.to-atc-wa-add-cart:hover {
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #000000;
}

.to-atc-wa-add-cart.to-atc-wa-disabled {
    background-color: #e5e5e5;
    color: #999999;
    cursor: not-allowed;
    pointer-events: none;
}

/* WhatsApp Button */
.to-atc-wa-whatsapp {
    background-color: #25D366;
    color: #ffffff;
    flex: 1;
    min-width: 140px;
}

.to-atc-wa-whatsapp:hover {
    background-color: #20BA5A;
}

/* Responsive */
@media (max-width: 767px) {
    .to-atc-wa-container {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    /* First row: Quantity + Add to Cart (side by side) */
    .to-atc-wa-quantity {
        flex: 0 0 auto;
        order: 1;
    }
    
    .to-atc-wa-qty-input {
        width: 80px;
        min-width: 80px;
    }
    
    /* Add to Cart button on same row as quantity */
    .to-atc-wa-add-cart {
        flex: 1;
        min-width: 0;
        order: 2;
    }
    
    /* WhatsApp button on second row (full width) */
    .to-atc-wa-whatsapp {
        width: 100%;
        flex: 1 1 100%;
        order: 3;
    }
}

/* ========================================
   Product Share Buttons Widget
   ======================================== */

.to-share-buttons-widget {
    width: 100%;
    font-family: 'Raleway', sans-serif;
}

.to-share-buttons-container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.to-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    padding: 0;
}

.to-share-btn svg {
    width: 24px;
    height: 24px;
    display: block;
}

/* Brand Colors Style */
.to-share-buttons-widget[data-icon-style="brand"] .to-share-facebook {
    background-color: #1877F2;
    color: #ffffff;
}

.to-share-buttons-widget[data-icon-style="brand"] .to-share-facebook:hover {
    background-color: #166FE5;
}

.to-share-buttons-widget[data-icon-style="brand"] .to-share-whatsapp {
    background-color: #25D366;
    color: #ffffff;
}

.to-share-buttons-widget[data-icon-style="brand"] .to-share-whatsapp:hover {
    background-color: #20BA5A;
}

.to-share-buttons-widget[data-icon-style="brand"] .to-share-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff;
}

.to-share-buttons-widget[data-icon-style="brand"] .to-share-instagram:hover {
    opacity: 0.9;
}

/* Simple Gray Style */
.to-share-buttons-widget[data-icon-style="simple"] .to-share-btn {
    background-color: #f5f5f5;
    color: #000000;
    border: 1px solid #e5e5e5;
}

.to-share-buttons-widget[data-icon-style="simple"] .to-share-btn:hover {
    background-color: #e5e5e5;
    border-color: #000000;
}

/* Responsive */
@media (max-width: 767px) {
    .to-share-buttons-container {
        gap: 10px;
    }
}

/* ========================================
   Product Brand Image Widget
   ======================================== */

.to-brand-image-widget {
    width: 100%;
    font-family: 'Raleway', sans-serif;
}

.to-brand-image-container {
    display: block;
    width: 100%;
}

.to-brand-image {
    display: inline-block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Responsive */
@media (max-width: 767px) {
    .to-brand-image {
        max-width: 100%;
    }
}

/* ========================================
   Global Max Quantity Enforcement (5)
   ======================================== */

/* Disabled quantity buttons */
.quantity button:disabled,
.quantity .plus:disabled,
.quantity .minus:disabled,
button.qty-plus:disabled,
button.qty-minus:disabled,
button[class*="qty-plus"]:disabled,
button[class*="qty-minus"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Max quantity notice */
.to-max-qty-notice {
    display: block;
    font-size: 12px;
    color: #d32f2f;
    margin-top: 4px;
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
}


/* ========================================
   Product Archive Grid Widget - NEW
   Clean, Simple Implementation
   ======================================== */

/* ========================================
   Product Image Widget
   ======================================== */

.to-product-image-widget {
    width: 100%;
    font-family: 'Raleway', sans-serif;
}

.to-product-image-container {
    width: 100%;
    background-color: #FAFAFA;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    /* Ensure container maintains aspect ratio and full height */
    height: 100%;
}

.to-product-image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.3s ease;
    /* Absolute positioning ensures perfect centering */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 0;
}

.to-product-image-link:hover {
    opacity: 0.9;
}

.to-product-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    /* Absolute positioning for consistent centering */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 0;
}

.to-product-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    /* Remove margin to use flexbox centering only */
    margin: 0;
    /* Ensure image stays centered and doesn't shift */
    position: relative;
    flex-shrink: 0;
    flex-grow: 0;
}

/* Lightbox Styles */
.to-product-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #FAFAFA;
    z-index: 999999;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.to-product-lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.to-product-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    padding: 40px;
    box-sizing: border-box;
}

.to-product-lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0;
    /* Perfect centering in lightbox */
    position: relative;
    flex-shrink: 0;
    flex-grow: 0;
}

.to-product-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
    color: #000;
    z-index: 1000000;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    font-family: Arial, sans-serif;
}

.to-product-lightbox-close:hover {
    background-color: rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.3);
}

.to-product-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
    color: #000;
    z-index: 1000000;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    font-family: Arial, sans-serif;
}

.to-product-lightbox-nav:hover {
    background-color: rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.3);
}

.to-product-lightbox-prev {
    left: 20px;
}

.to-product-lightbox-next {
    right: 20px;
}

.to-product-lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #000;
    font-size: 14px;
    font-family: 'Raleway', sans-serif;
    background-color: rgba(0, 0, 0, 0.05);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 767px) {
    .to-product-image-container {
        min-height: 300px;
    }

    .to-product-lightbox-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }

    .to-product-lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .to-product-lightbox-prev {
        left: 10px;
    }

    .to-product-lightbox-next {
        right: 10px;
    }

    .to-product-lightbox-counter {
        bottom: 10px;
        font-size: 12px;
        padding: 6px 12px;
    }

    .to-product-lightbox-content {
        padding: 20px;
    }
}

/* ========================================
   Coupon Form Widget
   ======================================== */

.to-coupon-form-widget {
    width: 100%;
    font-family: 'Raleway', sans-serif;
    background-color: #ffffff;
}

.to-coupon-form-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.to-coupon-form-title {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    color: #000000;
    background-color: #000000;
    color: #ffffff;
    padding: 15px 20px;
    margin: 0 0 20px 0;
    letter-spacing: 1px;
}

.to-coupon-form-description {
    font-size: 14px;
    line-height: 1.6;
    color: #666666;
    text-align: center;
    margin: 0 0 30px 0;
}

.to-coupon-form {
    width: 100%;
}

.to-coupon-form-fields {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
}

.to-coupon-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 14px;
    font-family: 'Raleway', sans-serif;
    color: #000000;
    background-color: #ffffff;
    border: 1px solid #cccccc;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s ease;
}

.to-coupon-input:focus {
    border-color: #000000;
}

.to-coupon-input::placeholder {
    color: #999999;
    text-transform: lowercase;
}

.to-coupon-submit-btn {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Raleway', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    background-color: #000000;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    box-sizing: border-box;
}

.to-coupon-submit-btn:hover:not(:disabled) {
    background-color: #333333;
}

.to-coupon-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.to-coupon-form-message {
    margin-top: 20px;
    padding: 15px;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
    font-family: 'Raleway', sans-serif;
}

.to-coupon-message-success {
    color: #000000;
    background-color: #f0f0f0;
}

.to-coupon-message-error {
    color: #000000;
    background-color: #f0f0f0;
}

.to-coupon-message-info {
    color: #000000;
    background-color: #f0f0f0;
}

/* Responsive */
@media (max-width: 767px) {
    .to-coupon-form-container {
        padding: 30px 15px;
    }

    .to-coupon-form-title {
        font-size: 20px;
        padding: 12px 15px;
    }

    .to-coupon-form-description {
        font-size: 13px;
    }

    .to-coupon-input {
        padding: 10px 12px;
        font-size: 13px;
    }

    .to-coupon-submit-btn {
        padding: 12px 15px;
        font-size: 14px;
    }
}

/* ========================================
   Coupon Form Popup
   ======================================== */

.to-coupon-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
}

.to-coupon-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

.to-coupon-popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-sizing: border-box;
    text-align: center;
    z-index: 1000000;
}

.to-coupon-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background-color: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #000000;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
}

.to-coupon-popup-close:hover {
    opacity: 0.7;
}

.to-coupon-popup-message {
    font-size: 16px;
    line-height: 1.6;
    color: #000000;
    margin-bottom: 20px;
    font-family: 'Raleway', sans-serif;
}

.to-coupon-popup-code {
    font-size: 32px;
    font-weight: 700;
    color: #000000;
    letter-spacing: 2px;
    padding: 20px;
    background-color: #f5f5f5;
    border: 2px solid #000000;
    font-family: 'Raleway', sans-serif;
    word-break: break-all;
}

/* Responsive */
@media (max-width: 767px) {
    .to-coupon-popup-content {
        padding: 30px 20px;
        max-width: 90%;
    }

    .to-coupon-popup-message {
        font-size: 14px;
    }

    .to-coupon-popup-code {
        font-size: 24px;
        padding: 15px;
        letter-spacing: 1px;
    }
}
