/*
Theme Name: Steel Theme
Theme URI: http://example.com/steel-theme
Author: Amandeep
Author URI: http://example.com
Description: A custom WordPress theme converted from static HTML for Optimum Nutrition Clone.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: steel-theme
*/

/* =========================================
   Re-usable Variables & Base
   ========================================= */
:root {
    --primary-color: #2e9e5d;
    --text-color: #333;
    --text-light: #666;
    --border-color: #eee;
}

/* =========================================
   Shop / Product Archive Layout
   ========================================= */

/* Main Layout Wrapper */
.shop-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
    padding-top: 50px;
    padding-bottom: 50px;
}

/* Sidebar */
.shop-sidebar {
    width: 250px;
    flex-shrink: 0;
    border-right: 1px solid var(--border-color);
    padding-right: 20px;
}

.filter-group {
    margin-bottom: 30px;
}

.filter-group h3 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: #000;
    border-bottom: 2px solid #000;
    padding-bottom: 5px;
    display: inline-block;
}

.filter-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-group ul li {
    margin-bottom: 10px;
}

.filter-group ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 14px;
    display: block;
    transition: color 0.3s;
}

.filter-group ul li a:hover {
    color: var(--primary-color);
}

.checkbox-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    accent-color: #000;
    width: 16px;
    height: 16px;
}

/* Shop Content Area */
.shop-products {
    flex: 1;
    min-width: 0;
    /* Fix flex overflow issues */
}

/* Shop Header (Count & Sort) */
.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.shop-count {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    display: flex;
    align-items: center;
}

/* Grid System */
.shop-grid-container {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(3, 1fr);
}

.shop-grid-container.cols-4 {
    grid-template-columns: repeat(4, 1fr) !important;
}

@media (max-width: 1200px) {
    .shop-grid-container.cols-4 {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 992px) {
    .shop-layout {
        flex-direction: column;
    }

    .shop-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        margin-bottom: 30px;
        padding-right: 0;
        padding-bottom: 20px;
    }

    .shop-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .shop-grid-container.cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .filter-group {
        display: inline-block;
        margin-right: 30px;
        vertical-align: top;
    }
}

@media (max-width: 576px) {
    .shop-grid-container {
        grid-template-columns: 1fr;
    }

    .shop-grid-container.cols-4 {
        grid-template-columns: 1fr !important;
    }

    .filter-group {
        display: block;
        margin-right: 0;
    }
}

/* Product Card Styling (Mirrors Widget) */
.shop-grid-item {
    background: transparent;
    padding: 0;
    text-align: center;
    position: relative;
    margin-bottom: 20px;
}

.shop-item-image {
    position: relative;
    margin-bottom: 15px;
    overflow: visible;
}

.shop-item-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

/* Sale Badge */
.sale-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--primary-color);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    text-transform: uppercase;
    z-index: 10;
    line-height: 1;
}

/* Wishlist Heart */
.shop-item-actions {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
}

.wishlist-btn i {
    color: #ccc;
    font-size: 18px;
    transition: color 0.3s;
}

.wishlist-btn:hover i {
    color: var(--primary-color);
}

/* Typography */
.shop-item-details h3 {
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 5px;
    line-height: 1.4;
    text-transform: uppercase;
    min-height: 38px;
    /* Force 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #000;
    letter-spacing: 0.5px;
}

.shop-item-details h3 a {
    text-decoration: none;
    color: inherit;
}

/* =========================================
   Missing Grid Classes (Ensuring Wishlist/Related works)
   ========================================= */
.shop-grid-container {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(3, 1fr);
}

.shop-grid-container.cols-4 {
    grid-template-columns: repeat(4, 1fr) !important;
}

@media (max-width: 1200px) {
    .shop-grid-container.cols-4 {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 992px) {
    .shop-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .shop-grid-container.cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 576px) {

    .shop-grid-container,
    .shop-grid-container.cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Ratings */
.shop-item-rating {
    margin-bottom: 5px;
    min-height: 20px;
}

/* Ensure standard WC stars work */
.star-rating {
    margin: 0 auto;
    font-size: 12px;
    width: 5.4em;
    font-family: "FontAwesome";
    /* Fallback */
}

/* Price */
.shop-item-price {
    font-size: 15px;
    font-weight: 700;
    color: #000;
    margin-bottom: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.shop-item-price del {
    color: #888;
    font-size: 13px;
    font-weight: 400;
    opacity: 1;
    text-decoration: line-through;
}

.product-discount-pct {
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 700;
}

.price-note {
    font-size: 10px;
    color: #999;
    font-weight: 400;
    margin-top: 0;
    line-height: 1.2;
}

/* Flavour Count */
.flavour-count {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 5px;
}

/* Pagination */
.shop-pagination {
    margin-top: 50px;
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
    padding-bottom: 50px;
}

.shop-pagination ul {
    display: flex;
    padding: 0;
    margin: 0;
    list-style: none;
    justify-content: center;
}

.shop-pagination .page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    margin: 0 5px;
    border: 1px solid #e1e1e1;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    background: #fff;
    transition: all 0.3s;
}

.shop-pagination .page-numbers.current,
.shop-pagination .page-numbers:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

.shop-pagination .prev.page-numbers,
.shop-pagination .next.page-numbers {
    width: auto;
    padding: 0 15px;
}

/* =========================================
   Cart Page — WooCommerce Block Cart Overrides
   ========================================= */

/* ---- Proceed to Checkout Button (BLACK bg, WHITE text) ---- */
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button,
.wp-block-woocommerce-proceed-to-checkout-block a,
.wp-block-woocommerce-proceed-to-checkout-block .wc-block-components-button,
.wc-block-cart .wc-block-cart__submit-button,
.wc-block-cart .wc-block-components-button,
a.checkout-button,
.checkout-button,
button[name="update_cart"],
button[name="apply_coupon"] {
    background-color: #000 !important;
    color: #fff !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 14px 30px !important;
    font-size: 15px !important;
    letter-spacing: 1px;
    transition: background 0.3s;
    cursor: pointer;
    text-decoration: none !important;
    display: block;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover,
.wp-block-woocommerce-proceed-to-checkout-block a:hover,
.wp-block-woocommerce-proceed-to-checkout-block .wc-block-components-button:hover,
.wc-block-cart .wc-block-cart__submit-button:hover,
.wc-block-cart .wc-block-components-button:hover,
a.checkout-button:hover,
.checkout-button:hover,
button[name="update_cart"]:hover,
button[name="apply_coupon"]:hover {
    background-color: #333 !important;
    color: #fff !important;
}

/* ---- Cart Page Title ---- */
.woocommerce-cart .wp-block-heading,
.woocommerce-cart h1,
.woocommerce-cart h2 {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ---- Cart Table Header ---- */
.wc-block-cart-items .wc-block-cart-items__header {
    border-bottom: 2px solid #000;
}

.wc-block-cart-items .wc-block-cart-items__header span {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    color: #000;
}

/* ---- Cart Item Row ---- */
.wc-block-cart-items .wc-block-cart-items__row {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

/* ---- Product Name ---- */
.wc-block-components-product-name {
    font-weight: 700 !important;
    color: #000 !important;
    text-transform: uppercase;
    text-decoration: none !important;
    font-size: 14px !important;
}

/* ---- Product Image ---- */
.wc-block-cart-item__image img {
    border: 1px solid #f0f0f0;
}

/* ---- Quantity Controls ---- */
.wc-block-components-quantity-selector {
    border: 1px solid #ddd !important;
}

.wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input {
    font-weight: 700 !important;
    font-size: 14px !important;
}

.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
    color: #000 !important;
    background: transparent !important;
}

/* ---- Remove Item Link ---- */
.wc-block-cart-item__remove-link,
.wc-block-components-product-details+a {
    color: #999 !important;
    font-size: 12px !important;
    text-decoration: none !important;
}

.wc-block-cart-item__remove-link:hover {
    color: #2e9e5d !important;
}

/* ---- Price Styling ---- */
.wc-block-components-product-price__regular {
    text-decoration: line-through !important;
    color: #999 !important;
}

.wc-block-components-product-price__value {
    font-weight: 700 !important;
    color: #000 !important;
}

.wc-block-components-product-badge {
    background: #f0f0f0 !important;
    border: 1px solid #ddd !important;
    color: #333 !important;
    font-weight: 600 !important;
    font-size: 11px !important;
}

/* ---- Cart Totals Panel ---- */
.wc-block-cart .wp-block-woocommerce-cart-totals-block {
    background: #f7f7f7;
    padding: 30px;
    border: 1px solid #eee;
}

.wc-block-components-totals-wrapper {
    border-color: #eee !important;
}

.wc-block-components-totals-item__label {
    font-weight: 600 !important;
    color: #555 !important;
    font-size: 14px !important;
}

.wc-block-components-totals-item__value {
    font-weight: 700 !important;
    color: #000 !important;
    font-size: 14px !important;
}

/* ---- Order Total ---- */
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #000 !important;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #000 !important;
}

/* ---- Coupon / Add coupons ---- */
.wc-block-components-totals-coupon__button {
    background-color: #000 !important;
    color: #fff !important;
    border-radius: 0 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
}

.wc-block-components-totals-coupon__input .wc-block-components-text-input input {
    border: 1px solid #ddd !important;
}

/* ---- Make Coupon Field nicer (Classic fallback) ---- */
.coupon input.input-text {
    padding: 12px 15px !important;
    border: 1px solid #ddd !important;
    margin-right: 5px !important;
    width: 200px !important;
}

/* ---- Shipping calculator links ---- */
.woocommerce-shipping-calculator .shipping-calculator-button {
    color: #000 !important;
    text-decoration: underline !important;
    font-weight: 600;
}

/* =========================================
   Login / Register Page (Custom Template)
   ========================================= */
.steel-login-register-wrapper {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
}

.steel-login-container {
    display: flex;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

/* Col 1: Login */
.steel-col-1 {
    flex: 1;
    padding: 50px;
    border-right: 1px solid #eee;
    min-width: 300px;
}

/* Col 2: Register */
.steel-col-2 {
    flex: 1;
    padding: 50px;
    background: #fdfdfd;
    min-width: 300px;
}

.steel-auth-heading {
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.steel-auth-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
}

/* Forms */
.woocommerce-form-row {
    margin-bottom: 20px;
}

.woocommerce-form-row label {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
    text-transform: uppercase;
}

.woocommerce-Input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    font-size: 14px;
    transition: border-color 0.3s;
    outline: none;
}

.woocommerce-Input:focus {
    border-color: #000;
}

/* Buttons */
.woocommerce-button.button {
    background: #000 !important;
    color: #fff !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    padding: 12px 30px !important;
    border-radius: 0 !important;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
}

.woocommerce-button.button:hover {
    background: #333 !important;
}

/* Checkbox & Links */
.woocommerce-form-login__rememberme {
    font-size: 13px;
    display: inline-block;
    margin-right: 20px;
}

.woocommerce-LostPassword {
    margin-top: 15px;
    font-size: 13px;
}

.woocommerce-LostPassword a {
    color: #666;
    text-decoration: underline;
}

/* Registration Perks */
.registration-perks {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.registration-perks h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
}

.registration-perks ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.registration-perks ul li {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

.registration-perks ul li i {
    color: #2e7d32;
    margin-right: 10px;
}

@media (max-width: 768px) {
    .steel-login-container {
        flex-direction: column;
    }

    .steel-col-1 {
        border-right: none;
        border-bottom: 1px solid #eee;
    }
}

/* =========================================
   My Account Dashboard
   ========================================= */
.woocommerce-account .woocommerce {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
    align-items: flex-start;
}

/* Sidebar Navigation */
.woocommerce-MyAccount-navigation {
    width: 280px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    /* Optional slight rounding */
    overflow: hidden;
}

/* User Summary */
.user-profile-summary {
    background: #f8f8f8;
    padding: 25px 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.user-avatar img {
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

.user-info .greeting {
    display: block;
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.user-info .username {
    display: block;
    font-size: 16px;
    font-weight: 800;
    color: #000;
}

/* Menu List */
.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-MyAccount-navigation ul li {
    border-bottom: 1px solid #f9f9f9;
}

.woocommerce-MyAccount-navigation ul li:last-child {
    border-bottom: none;
}

.woocommerce-MyAccount-navigation ul li a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.woocommerce-MyAccount-navigation ul li a i {
    width: 25px;
    color: #999;
    transition: color 0.3s;
}

/* Hover & Active States */
.woocommerce-MyAccount-navigation ul li a:hover {
    background: #fafafa;
    color: #000;
}

.woocommerce-MyAccount-navigation ul li.is-active a {
    background: #fff;
    color: #2e9e5d;
    border-left: 3px solid #2e9e5d;
    padding-left: 17px;
    /* Compensate for border */
}

.woocommerce-MyAccount-navigation ul li.is-active a i {
    color: #2e9e5d;
}

/* Content Area */
.woocommerce-MyAccount-content {
    flex: 1;
    min-width: 0;
    background: #fff;
    padding: 30px;
    /* Optional card look */
    border: 1px solid #eee;
    /* Optional card look */
}

.woocommerce-MyAccount-content p {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

/* Account Tables (Orders) */
.woocommerce-orders-table,
.woocommerce-table--order-details {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    font-size: 14px;
}

.woocommerce-orders-table th,
.woocommerce-table--order-details th {
    text-align: left;
    padding: 12px 15px;
    background: #f8f8f8;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    font-size: 12px;
}

.woocommerce-orders-table td,
.woocommerce-table--order-details td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    color: #555;
}

.woocommerce-button.view {
    padding: 6px 12px !important;
    font-size: 11px !important;
    background: transparent !important;
    border: 1px solid #000 !important;
    color: #000 !important;
}

.woocommerce-button.view:hover {
    background: #000 !important;
    color: #fff !important;
}

/* Addresses */
.woocommerce-Address-title h3 {
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 15px;
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
    display: inline-block;
}

.woocommerce-Address {
    background: #f9f9f9;
    padding: 20px;
    font-style: normal;
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .woocommerce-account .woocommerce {
        flex-direction: column;
    }

    .woocommerce-MyAccount-navigation {
        width: 100%;
    }
}

/* =========================================
   Mobile Header Fixes
   ========================================= */
@media (max-width: 992px) {

    .header-icon-link,
    .header-icon-link i,
    .hamburger-menu,
    .hamburger-menu i {
        color: #000 !important;
        /* Force black icons */
    }

    .logo-area img {
        max-height: 35px;
        /* Adjust logo for mobile */
    }
}

/* Ensure Drawer Transitions are Global */
.cart-drawer {
    transition: right 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    /* Ease-out quart */
}

.cart-drawer.active {
    right: 0 !important;
}

/* Loading State for Single Add to Cart */
.single_add_to_cart_button.loading {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

.single_add_to_cart_button.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* =========================================
   Step Id: 708 - Shop Page Alignment & Mobile Fixes
   ========================================= */

/* Shop Header Alignment */
.shop-page-title {
    font-size: 20px;
    font-weight: 800;
    margin: 0;
    display: inline-block;
    color: #000;
    text-transform: uppercase;
    line-height: 1;
}

.shop-product-count {
    font-size: 14px;
    color: #777;
    margin-left: 10px;
    font-weight: 400;
    vertical-align: middle;
}

.shop-count {
    display: flex;
    align-items: baseline;
}

/* Price Filter Widget Styling */
.widget_price_filter .price_slider_wrapper .ui-widget-content {
    background-color: #eee;
    border-radius: 1em;
}

.widget_price_filter .ui-slider .ui-slider-range {
    background-color: var(--primary-color);
    border-radius: 1em;
}

.widget_price_filter .ui-slider .ui-slider-handle {
    background-color: #000;
    border-radius: 50%;
    border: 2px solid #fff;
    cursor: pointer;
    top: -0.2em;
}

.widget_price_filter .price_slider_amount {
    text-align: right;
    line-height: 2.4;
    font-size: 14px;
    margin-top: 15px;
}

.widget_price_filter .price_slider_amount .button {
    float: left;
    background-color: #000;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 15px;
    border-radius: 0;
    text-transform: uppercase;
}

.widget_price_filter .price_label {
    float: right;
    font-weight: 600;
}

/* Mobile Small Boxes */
@media (max-width: 576px) {
    .shop-grid-container {
        gap: 10px !important;
        /* Tighter gap */
    }

    .shop-item-image {
        margin-bottom: 5px;
    }

    .shop-item-details {
        padding: 0 5px;
    }

    .shop-item-details h3 {
        font-size: 11px !important;
        min-height: 28px !important;
        /* Allow 2 lines */
        line-height: 1.3 !important;
        margin-bottom: 3px !important;
    }

    .shop-item-rating {
        margin-bottom: 2px !important;
        min-height: 15px !important;
    }

    .star-rating {
        font-size: 10px !important;
    }

    .shop-item-price {
        font-size: 13px !important;
        justify-content: flex-start !important;
        /* Align left maybe preference? Keep center for now or left? Keeping center as original theme */
    }

    .product-discount-pct {
        font-size: 10px !important;
    }

    .sale-badge {
        font-size: 9px !important;
        padding: 3px 6px !important;
    }

    .wishlist-btn i {
        font-size: 16px !important;
    }

    /* Remove flavour count on very small screens to save space? Or keep it small */
    .flavour-count {
        font-size: 9px !important;
    }
}

/* =========================================
   Step Id: 719 - Sorting Dropdown Fixes
   ========================================= */

/* Reset Woo Default Floats if present */
.shop-header .woocommerce-ordering {
    float: none !important;
    margin: 0 !important;
}

/* Target the Select Element */
.shop-sorting select.orderby {
    appearance: none;
    /* Remove default arrow in some browsers */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fff;
    border: 1px solid #000;
    color: #000;
    padding: 8px 30px 8px 15px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    border-radius: 0;
    min-width: 180px;
}

.shop-sorting select.orderby:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Ensure container has width */
.shop-header {
    width: 100%;
}

/* Mobile: Stack sort dropdown below the title */
@media (max-width: 576px) {
    .shop-header {
        flex-wrap: wrap;
        gap: 10px;
    }

    .shop-count {
        width: 100%;
    }

    .shop-sorting {
        width: 100%;
    }

    .shop-sorting select.orderby {
        width: 100%;
        min-width: unset;
    }
}

/* =========================================
   Step Id: 735 - Checkout Page Styling
   ========================================= */

/* Layout: Flex Container for Checkout */
.woocommerce-checkout .woocommerce form.checkout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 30px;
}

/* Fix for 3-column issue: Make col-1 (Billing) and col-2 (Additional) stack */
.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 20px;
    flex: 0 0 100%;
}

/* Remove Blue Info Boxes */
.woocommerce-info {
    border-top: 3px solid #000 !important;
    /* Theme Black */
    background-color: #f8f8f8 !important;
    color: #333 !important;
}

.woocommerce-info::before {
    color: #000 !important;
}

.woocommerce-info a {
    color: #2e9e5d !important;
    /* Theme Red */
    font-weight: 700;
}

.woocommerce-message {
    border-top-color: #28a745 !important;
    /* Success Green */
}

.woocommerce-error {
    border-top-color: #2e9e5d !important;
    /* Error Red */
}

/* Left Column: Billing & Shipping */
.woocommerce-checkout #customer_details {
    flex: 1;
    min-width: 300px;
}

.woocommerce-checkout .col-1,
.woocommerce-checkout .col-2 {
    max-width: 100%;
    flex: 0 0 100%;
}

/* Right Column: Your Order & Payment */
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #order_review {
    width: 100%;
}

/* Wrap Order Review in a sticky box on desktop */
@media (min-width: 992px) {

    /* Reset widths/flex because Grid handles sizing */
    .woocommerce-checkout #customer_details {
        width: 100%;
        max-width: 100%;
        padding-right: 0;
    }

    .woocommerce-checkout #order_review,
    .woocommerce-checkout #order_review_heading {
        width: 100%;
        float: none;
        clear: none;
    }

    /* Grid Layout on Form */
    .woocommerce-checkout .woocommerce form.checkout {
        display: grid;
        grid-template-columns: 1.5fr 1fr;
        /* Roughly 60% / 40% */
        grid-template-areas:
            "billing review_heading"
            "billing review";
        gap: 40px;
        align-items: start;
    }

    .woocommerce-checkout #customer_details {
        grid-area: billing;
    }

    .woocommerce-checkout #order_review_heading {
        grid-area: review_heading;
        margin-top: 0;
    }

    .woocommerce-checkout #order_review {
        grid-area: review;
    }
}

/* Typography & Inputs */
.woocommerce-checkout h3 {
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    color: #000;
    margin-bottom: 25px;
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
    display: inline-block;
}

.woocommerce-checkout label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin-bottom: 5px;
    display: block;
}

.woocommerce-checkout input.input-text,
.woocommerce-checkout select {
    padding: 12px 15px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 14px;
    width: 100%;
    border-radius: 0;
    color: #000;
}

.woocommerce-checkout input.input-text:focus,
.woocommerce-checkout select:focus {
    border-color: #000;
    outline: none;
}

/* Order Review Box */
.woocommerce-checkout #order_review {
    background: #f9f9f9;
    padding: 30px;
    border: 1px solid #eee;
}

.woocommerce-checkout table.shop_table {
    border: none;
    margin-bottom: 20px;
    width: 100%;
}

.woocommerce-checkout table.shop_table th,
.woocommerce-checkout table.shop_table td {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.woocommerce-checkout table.shop_table thead th {
    text-transform: uppercase;
    font-weight: 700;
    color: #555;
}

.woocommerce-checkout table.shop_table .product-name {
    font-weight: 600;
    color: #000;
}

.woocommerce-checkout table.shop_table .product-total,
.woocommerce-checkout table.shop_table .cart-subtotal td,
.woocommerce-checkout table.shop_table .order-total td {
    text-align: right;
    font-weight: 700;
    color: #000;
}

.woocommerce-checkout table.shop_table .order-total strong {
    font-size: 20px;
    color: var(--primary-color);
}

/* Payment Methods */
.woocommerce-checkout #payment {
    background: transparent;
    border-radius: 0;
}

.woocommerce-checkout #payment ul.payment_methods {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.woocommerce-checkout #payment div.payment_box {
    background-color: #e5e5e5;
    color: #333;
    font-size: 13px;
    padding: 15px;
    margin: 10px 0;
    border-radius: 4px;
}

.woocommerce-checkout #payment div.payment_box p:last-child {
    margin-bottom: 0;
}

/* Place Order Button */
.woocommerce-checkout #place_order {
    width: 100%;
    background-color: #2e9e5d;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 18px;
    border-radius: 0;
    transition: background 0.3s;
    float: none;
}

.woocommerce-checkout #place_order:hover {
    background-color: #b71c1c;
}

/* Mobile Adjustments */
@media (max-width: 991px) {
    .woocommerce-checkout .woocommerce form.checkout {
        display: block;
    }

    .woocommerce-checkout #customer_details,
    .woocommerce-checkout #order_review_heading,
    .woocommerce-checkout #order_review {
        width: 100%;
        margin-bottom: 30px;
    }
}

/* =========================================
   Step Id: 763 - Mobile Padding Fixes
   ========================================= */
@media (max-width: 768px) {

    /* Add padding to page containers on WooCommerce pages */
    .woocommerce-page .page-container,
    .woocommerce-page .shop-container,
    .woocommerce .shop-container,
    .woocommerce-page .container,
    .woocommerce .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
        box-sizing: border-box;
    }

    /* Specifically ensure Checkout, Cart, Account, Shop, Single Product get it */
    .woocommerce-checkout .page-container,
    .woocommerce-cart .page-container,
    .woocommerce-account .page-container,
    .post-type-archive-product .shop-container,
    .single-product .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
        width: 100%;
    }
}

/* =========================================
   Step Id: 818 - Quantity Buttons Style
   ========================================= */
.qty-btn {
    width: 40px;
    height: 44px;
    /* Matches .quantity input height */
    border: none;
    background: #f8f8f8;
    color: #000;
    font-size: 20px;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.2s;
    padding: 0;
    line-height: 1;
}

.qty-btn:hover {
    background: #e0e0e0;
}

/* Ensure input has no border inside wrapper */
.quantity input[type="number"] {
    border: none !important;
    border-left: 1px solid #eee !important;
    border-right: 1px solid #eee !important;
}

/* Remove spinner again to be sure */
.quantity input[type="number"]::-webkit-inner-spin-button,
.quantity input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* =========================================
   Step Id: 834 - Variation Swatches & Stock
   ========================================= */
/* Swatch Styles */
.swatch-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
    margin-bottom: 20px;
}

.swatch-item {
    border: 1px solid #ccc;
    background: #fff;
    padding: 8px 15px;
    min-width: 40px;
    text-align: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    user-select: none;
}

.swatch-item:hover {
    border-color: #000;
}

.swatch-item.selected {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* Stock Badges */
.stock-badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    border-radius: 3px;
    text-transform: uppercase;
    vertical-align: middle;
    margin-left: 10px;
}

.stock-badge.in-stock {
    background-color: #2e7d32;
}

.stock-badge.out-of-stock {
    background-color: #2e9e5d;
}

.stock-badge.on-backorder {
    background-color: #f57f17;
}