/* 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: Brands & Icons */
.to-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 40px;
    height: 60px;
    border-bottom: 1px solid #f0f0f0;
}

/* 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 */
}

.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;
}

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

.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-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;
}

.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;
    }
}

@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;
    }

    /* 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;
    }

    /* 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%;
}

.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 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 260px;
    background-color: #f7f7f7;
    padding: 24px;
}

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

.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 4px 0;
}

.to-product-title {
    font-size: 14px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 6px;
}

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

.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: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.to-product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding: 8px 0 12px;
}

.to-product-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.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: 999px;
    border: 1px solid #000000;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    background-color: #ffffff;
    color: #000000;
    text-align: center;
    transition: background-color 0.2s ease, color 0.2s ease;
}

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

/* Grid column layouts (no horizontal scroll) */
.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));
}

/* 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;
}

/* Mobile Product Card Adjustments */
@media (max-width: 767px) {
    .to-product-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .to-product-price {
        align-items: center;
        width: 100%;
        margin-bottom: 4px;
    }

    .to-product-btn {
        width: 100%;
        display: block;
        text-align: center;
        padding: 10px 12px;
    }
}

/* Categories Widget */
.to-categories-grid {
    display: grid;
    width: 100%;
}

.to-category-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.to-cat-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.to-cat-image-wrap {
    width: 100%;
    overflow: hidden;
    margin-bottom: 16px;
    position: relative;
    background-color: #f5f5f5;
}

.to-cat-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.to-category-card:hover .to-cat-image-wrap img {
    transform: scale(1.05);
}

.to-cat-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.to-cat-desc {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    line-height: 1.4;
    opacity: 0.8;
}

.to-cat-title {
    font-size: 22px;
    font-weight: 500;
    margin: 0 0 16px 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.to-cat-line {
    width: 100%;
    height: 1px;
    background-color: #000;
    opacity: 0.2;
    transition: opacity 0.3s ease;
}

.to-category-card:hover .to-cat-line {
    opacity: 1;
}

/* Branding Area (Parent Logo + Switcher) */
.to-branding-area {
    display: flex;
    align-items: center;
}

.to-parent-logo-wrap {
    display: flex;
    align-items: center;
}

.to-parent-logo {
    height: auto;
    display: block;
    object-fit: contain;
}

.to-brand-separator {
    width: 1px;
    height: 24px;
    background-color: #e5e5e5;
    margin: 0 24px;
}

/* Mobile Adjustments for Branding */
@media (max-width: 900px) {
    .to-branding-area {
        order: 2; /* Place in middle between toggle (1) and icons (3) */
        flex: 1;
        justify-content: center;
    }

    .to-brand-separator {
        display: none;
    }
    
    /* Ensure brand switcher remains hidden on mobile as per original design */
    .to-brand-switcher {
        display: none;
    }
    
    /* Ensure parent logo is visible */
    .to-parent-logo-wrap {
        display: flex;
    }
}

/* ======================================================================
   Cart Drawer Styling (The Ordinary Style)
   ====================================================================== */

.to-cart-drawer {
    width: 450px;
    max-width: 100%;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.to-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 24px;
    margin-bottom: 0;
}

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

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

/* Free Shipping Bar */
.to-free-shipping-bar {
    margin-bottom: 30px;
}

.to-fs-icon {
    display: inline-block;
    margin-right: 8px;
    font-size: 14px;
}

.to-fs-text {
    font-size: 13px;
    margin-bottom: 10px;
    display: inline-block;
}

.to-fs-amount {
    font-weight: 700;
}

.to-fs-progress-bg {
    width: 100%;
    height: 4px;
    background-color: #e5e5e5;
    position: relative;
}

.to-fs-progress-fill {
    height: 100%;
    background-color: #000;
    position: absolute;
    top: 0;
    left: 0;
}

/* Mini Cart List */
.widget_shopping_cart_content .woocommerce-mini-cart {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_shopping_cart_content .woocommerce-mini-cart-item {
    display: grid;
    grid-template-columns: 90px 1fr auto; /* Image | Content | Remove */
    grid-template-rows: auto auto;
    gap: 0 20px;
    padding: 24px 0;
    border-bottom: 1px solid #e5e5e5;
    position: relative;
}

/* Image */
.widget_shopping_cart_content .woocommerce-mini-cart-item a:not(.remove) img {
    grid-row: 1 / span 2;
    grid-column: 1;
    width: 100%;
    height: auto;
    object-fit: contain;
    background-color: #f7f7f7;
    display: block;
}

/* Content Wrapper (Title, Brand, Price) */
.widget_shopping_cart_content .woocommerce-mini-cart-item a:not(.remove) {
    grid-column: 2;
    grid-row: 1;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Brand Name (Fake it with CSS content if not available, or just style title) */
.widget_shopping_cart_content .woocommerce-mini-cart-item a:not(.remove)::before {
    content: "THE ORDINARY";
    font-size: 10px;
    text-transform: uppercase;
    color: #777;
    letter-spacing: 1px;
    margin-bottom: 4px;
    font-weight: 600;
}

/* Product Title */
.widget_shopping_cart_content .woocommerce-mini-cart-item a:not(.remove) {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    color: #000;
}

/* Remove Button */
.widget_shopping_cart_content .woocommerce-mini-cart-item .remove {
    grid-column: 3;
    grid-row: 1;
    font-size: 12px;
    text-decoration: underline;
    color: #000 !important;
    background: none !important;
    border: none !important;
    width: auto !important;
    height: auto !important;
    line-height: normal !important;
    padding: 0;
    text-align: right;
    border-radius: 0 !important;
}

.widget_shopping_cart_content .woocommerce-mini-cart-item .remove:hover {
    background: none !important;
    color: #555 !important;
}

/* Quantity and Price Area */
.widget_shopping_cart_content .woocommerce-mini-cart-item .quantity {
    grid-column: 2 / span 2;
    grid-row: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 16px;
    width: 100%;
}

/* Price */
.widget_shopping_cart_content .woocommerce-mini-cart-item .quantity .amount {
    font-size: 14px;
    font-weight: 700;
    color: #000;
    order: 1; /* Price on left in this flex container? No, image reference shows price under title. */
}

/* Wait, standard Woo output puts price INSIDE .quantity span usually: "1 x .00" */
/* We need to hide the "1 x " text if possible or style it. */

.widget_shopping_cart_content .woocommerce-mini-cart-item .quantity {
    font-size: 14px;
    color: #000;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Quantity Input Styling (if present, otherwise it's just text) */
/* If it's just text "1 x ", we can't easily make it a selector without custom PHP template. */
/* For now, we style the text to look clean. */

/* Hide "1 x" part if we can't separate it easily? No, keep it simple. */
/* Actually, let's try to make it look like the reference: Price on left, Quantity box on right. */
/* But standard mini-cart doesn't have quantity box. It has "1 x ". */
/* We will style it as is for now, clean and minimal. */

/* Bottom Buttons */
.widget_shopping_cart_content .woocommerce-mini-cart__buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding-top: 20px;
}

.widget_shopping_cart_content .woocommerce-mini-cart__buttons .button {
    width: 100%;
    text-align: center;
    background-color: #000;
    color: #fff;
    border: 1px solid #000;
    padding: 12px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 0;
}

.widget_shopping_cart_content .woocommerce-mini-cart__buttons .button:hover {
    background-color: #fff;
    color: #000;
}

.widget_shopping_cart_content .woocommerce-mini-cart__buttons .checkout {
    background-color: #000;
    color: #fff;
}

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


/* ======================================================================
   Cart Drawer - The Ordinary Style (Refined)
   ====================================================================== */

/* Hide Free Shipping Bar if any remains */
.to-free-shipping-bar {
    display: none !important;
}

/* Cart Header */
.to-cart-header {
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 20px;
    padding-bottom: 20px;
}

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

/* Cart Item Layout */
.widget_shopping_cart_content .woocommerce-mini-cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto; /* Image | Content | Remove */
    grid-template-rows: auto auto;
    gap: 0 20px;
    padding: 20px 0;
    border-bottom: 1px solid #e5e5e5;
    position: relative;
    align-items: start;
}

/* Image */
.widget_shopping_cart_content .woocommerce-mini-cart-item a:not(.remove) img {
    grid-row: 1 / span 2;
    grid-column: 1;
    width: 100%;
    height: auto;
    object-fit: contain;
    background-color: #f7f7f7;
    display: block;
}

/* Content Column (Brand, Title, Price) */
.widget_shopping_cart_content .woocommerce-mini-cart-item a:not(.remove) {
    grid-column: 2;
    grid-row: 1;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Brand Label */
.widget_shopping_cart_content .woocommerce-mini-cart-item a:not(.remove)::before {
    content: "THE ORDINARY";
    font-size: 10px;
    text-transform: uppercase;
    color: #777;
    letter-spacing: 1px;
    margin-bottom: 4px;
    font-weight: 600;
    display: block;
}

/* Product Title */
.widget_shopping_cart_content .woocommerce-mini-cart-item a:not(.remove) {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    color: #000;
    margin-bottom: 4px;
}

/* Hide variation data if it looks messy, or style it */
.widget_shopping_cart_content .woocommerce-mini-cart-item .variation {
    display: none; /* Hide description/variation details as requested "no description" */
}

/* Quantity/Price Section */
.widget_shopping_cart_content .woocommerce-mini-cart-item .quantity {
    grid-column: 2;
    grid-row: 2;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 400;
    color: #000;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Remove Link (Top Right) */
.widget_shopping_cart_content .woocommerce-mini-cart-item .remove {
    grid-column: 3;
    grid-row: 1;
    font-size: 12px;
    text-decoration: underline;
    color: #000 !important;
    background: none !important;
    border: none !important;
    width: auto !important;
    height: auto !important;
    line-height: normal !important;
    padding: 0;
    text-align: right;
    border-radius: 0 !important;
    position: relative;
    top: 0;
}

.widget_shopping_cart_content .woocommerce-mini-cart-item .remove:hover {
    background: none !important;
    color: #555 !important;
}

/* Quantity Selector Simulation (if theme doesn't provide one, we style the text) */
/* If standard WC, it just shows "1 x .00". We can't turn text into buttons with CSS alone. */
/* But we can style the container to look clean. */

/* Subtotal */
.widget_shopping_cart_content .woocommerce-mini-cart__total {
    border-top: none; /* Removed border as items have borders */
    padding-top: 20px;
    margin-top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
}

.widget_shopping_cart_content .woocommerce-mini-cart__total strong {
    font-weight: 700;
}

/* Buttons */
.widget_shopping_cart_content .woocommerce-mini-cart__buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.widget_shopping_cart_content .woocommerce-mini-cart__buttons .button {
    width: 100%;
    text-align: center;
    background-color: #000;
    color: #fff;
    border: 1px solid #000;
    padding: 14px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 0;
    transition: all 0.2s ease;
}

.widget_shopping_cart_content .woocommerce-mini-cart__buttons .button:hover {
    background-color: #fff;
    color: #000;
}

.widget_shopping_cart_content .woocommerce-mini-cart__buttons .checkout {
    background-color: #000;
    color: #fff;
}


/* ======================================================================
   Cart Drawer - The Ordinary Style (Aggressive Overrides)
   ====================================================================== */

/* 1. Reset and Container */
.to-cart-drawer .widget_shopping_cart_content {
    font-family: 'Raleway', sans-serif; /* Ensure font matches */
}

.to-cart-drawer ul.woocommerce-mini-cart {
    margin: 0 !important;
    padding: 0 !important;
}

/* 2. Cart Item Grid Layout */
.to-cart-drawer li.woocommerce-mini-cart-item {
    display: grid !important;
    grid-template-columns: 80px 1fr auto !important; /* Image | Content | Remove */
    grid-template-rows: auto auto !important;
    gap: 0 15px !important;
    padding: 20px 0 !important;
    border-bottom: 1px solid #e5e5e5 !important;
    position: relative !important;
    min-height: 100px;
    align-items: start !important;
}

/* 3. Image (Left) */
.to-cart-drawer li.woocommerce-mini-cart-item img {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    width: 100% !important;
    height: auto !important;
    max-width: 80px !important;
    object-fit: contain !important;
    background-color: #f9f9f9 !important;
    margin: 0 !important;
    float: none !important;
}

/* 4. Content (Middle) - Title, Brand */
/* The link containing the title usually wraps the image too in Woo. 
   We need to target the text part. */
.to-cart-drawer li.woocommerce-mini-cart-item a:not(.remove) {
    grid-column: 2 !important;
    grid-row: 1 !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    color: #000 !important;
    text-decoration: none !important;
    display: block !important;
    padding-right: 20px !important; /* Space for remove button if it overlaps */
}

/* Brand Label (Fake it) */
.to-cart-drawer li.woocommerce-mini-cart-item a:not(.remove)::before {
    content: "THE ORDINARY";
    display: block;
    font-size: 10px;
    color: #666;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

/* 5. Remove Button (Right) */
/* We used JS to change text to "Remove" and add class .to-styled-remove */
.to-cart-drawer li.woocommerce-mini-cart-item a.remove,
.to-cart-drawer li.woocommerce-mini-cart-item a.to-styled-remove {
    grid-column: 3 !important;
    grid-row: 1 !important;
    position: relative !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
    color: #000 !important;
    background: transparent !important;
    border: none !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    text-decoration: underline !important;
    text-transform: capitalize !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1.5 !important;
    border-radius: 0 !important;
}

.to-cart-drawer li.woocommerce-mini-cart-item a.remove:hover {
    color: #555 !important;
    background: transparent !important;
}

/* 6. Quantity and Price (Bottom Middle/Right) */
.to-cart-drawer li.woocommerce-mini-cart-item .quantity {
    grid-column: 2 / span 2 !important; /* Span to right to allow price on right */
    grid-row: 2 !important;
    margin-top: 10px !important;
    font-size: 14px !important;
    color: #000 !important;
    display: flex !important;
    justify-content: space-between !important; /* Price on right, Qty on left */
    align-items: center !important;
    width: 100% !important;
}

/* Hide the "x" in "1 x " if possible? */
/* Standard Woo output: 1 &times; <span class="amount"></span> */
/* We can't easily target the text node "1 x" with CSS. */
/* But we can make the font size 0, then reset it for .amount? */
/* No, that hides the quantity number too. */

/* Let's try to just style it cleanly for now. */
.to-cart-drawer li.woocommerce-mini-cart-item .quantity {
    font-weight: 400 !important;
}

.to-cart-drawer li.woocommerce-mini-cart-item .quantity .amount {
    font-weight: 700 !important;
    color: #000 !important;
}

/* 7. Buttons */
.to-cart-drawer .woocommerce-mini-cart__buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.to-cart-drawer .woocommerce-mini-cart__buttons .button {
    width: 100% !important;
    background-color: #000 !important;
    color: #fff !important;
    border-radius: 0 !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    padding: 15px !important;
    font-size: 13px !important;
    letter-spacing: 1px !important;
    border: 1px solid #000 !important;
}

.to-cart-drawer .woocommerce-mini-cart__buttons .button:hover {
    background-color: #fff !important;
    color: #000 !important;
}

/* 8. Subtotal */
.to-cart-drawer .woocommerce-mini-cart__total {
    display: flex !important;
    justify-content: space-between !important;
    padding: 20px 0 !important;
    border-top: none !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
}

/* Hide Variation Data */
.to-cart-drawer li.woocommerce-mini-cart-item dl.variation {
    display: none !important;
}

