/* ================================================ */
/* WooCommerce Styles — ShapeFactor Theme            */
/* ================================================ */
/* Brand vars from @theme in main.css:               */
/*   --color-primary:    #2A647A                     */
/*   --color-secondary:  #163A47                     */
/*   --color-accent:     #D39A3B                     */
/*   --color-background: #F4F7F8                     */
/*   --color-text:       #0F1720                     */
/*   --color-light:      #8FB6C2                     */
/* ================================================ */


/* ============================================== */
/* ---- GLOBAL RESETS ----                       */
/* ============================================== */
.woocommerce,
.woocommerce-page {
    font-family: inherit;
}

.woocommerce *,
.woocommerce-page * {
    box-sizing: border-box;
}

.woocommerce .col2-set .col-1,
.woocommerce .col2-set .col-2,
.woocommerce-page .col2-set .col-1,
.woocommerce-page .col2-set .col-2 {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
}

.woocommerce table.shop_table,
.woocommerce table.shop_table th {
    border: 0 !important;
    border-top: none !important;
    border-bottom: none !important;
    border-radius: 0 !important;
}


/* ============================================== */
/* ---- LAYOUT ----                              */
/* ============================================== */
.woocommerce-content {
    width: 100%;
}

.woocommerce-account .woocommerce {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.woocommerce-MyAccount-navigation {
    width: 100%;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .woocommerce-account .woocommerce {
        flex-wrap: nowrap;
    }
    .woocommerce-MyAccount-navigation {
        width: 260px;
        min-width: 260px;
    }
    .woocommerce-MyAccount-content {
        flex-grow: 1;
        width: auto;
        min-width: 0;
    }
}


/* ============================================== */
/* ---- SHOP / ARCHIVE ----                      */
/* ============================================== */

/* Main Container & Grid */
.woocommerce .products ul, 
.woocommerce ul.products,
.woocommerce ul.sf-products-grid {
    display: grid !important;
    grid-template-columns: repeat(1, 1fr) !important;
    gap: 2rem !important;
    margin: 0 !important;
    padding: 0 !important;
}

@media (min-width: 640px) {
    .woocommerce .products ul, 
    .woocommerce ul.products,
    .woocommerce ul.sf-products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 1024px) {
    .woocommerce .products ul, 
    .woocommerce ul.products,
    .woocommerce ul.sf-products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

.woocommerce ul.products li.product, 
.woocommerce-page ul.products li.product,
.woocommerce ul.sf-products-grid li.product {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.woocommerce ul.products li.product:hover,
.woocommerce ul.sf-products-grid li.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.1);
    border-color: var(--color-primary);
}

/* Product Image */
.woocommerce ul.products li.product a img,
.woocommerce ul.sf-products-grid li.product a img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    margin-bottom: 0 !important;
    border-radius: 0.5rem;
    background-color: transparent;
}

/* Product Title */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.sf-products-grid li.product .woocommerce-loop-product__title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--color-secondary) !important;
    margin-bottom: 0.75rem !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}

/* Price */
.woocommerce ul.products li.product .price,
.woocommerce ul.sf-products-grid li.product .price {
    color: var(--color-primary) !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    margin-bottom: 1.5rem !important;
    display: block !important;
}

.woocommerce ul.products li.product .price del,
.woocommerce ul.sf-products-grid li.product .price del {
    color: var(--color-light) !important;
    font-size: 0.875rem !important;
    opacity: 0.7;
    font-weight: 400;
    display: inline-block;
    margin-right: 0.5rem;
}

.woocommerce ul.products li.product .price ins,
.woocommerce ul.sf-products-grid li.product .price ins {
    text-decoration: none;
    font-weight: 700;
}

/* Button */
.woocommerce ul.products li.product .button,
.woocommerce ul.sf-products-grid li.product .button {
    margin-top: auto !important;
    background-color: var(--color-primary) !important;
    color: #fff !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 9999px !important;
    font-weight: 600 !important;
    font-size: 0.9375rem !important;
    transition: all 0.2s ease !important;
    border: none !important;
    width: 100%;
    max-width: 200px;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce ul.sf-products-grid li.product .button:hover {
    background-color: var(--color-secondary) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.woocommerce ul.products li.product .added_to_cart,
.woocommerce ul.sf-products-grid li.product .added_to_cart {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-primary);
    font-weight: 500;
}

/* Sale Badge */
.woocommerce ul.products li.product .onsale,
.woocommerce ul.sf-products-grid li.product .onsale {
    top: 1rem !important;
    left: 1rem !important;
    right: auto !important;
    margin: 0 !important;
    background-color: #dc2626 !important;
    color: #fff !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    padding: 0.25rem 0.75rem !important;
    border-radius: 9999px !important;
    line-height: 1.5 !important;
    min-height: auto !important;
    min-width: auto !important;
}

/* Pagination */
.woocommerce nav.woocommerce-pagination {
    margin-top: 3rem !important;
    text-align: center;
}

.woocommerce nav.woocommerce-pagination ul {
    border: none !important;
    display: inline-flex !important;
    gap: 0.5rem;
}

.woocommerce nav.woocommerce-pagination ul li {
    border: none !important;
    overflow: visible !important;
    margin: 0 !important;
}

.woocommerce nav.woocommerce-pagination ul li a, 
.woocommerce nav.woocommerce-pagination ul li span {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    background-color: #fff !important;
    border: 1px solid #e2e8f0 !important;
    color: var(--color-text) !important;
    padding: 0 !important;
}

.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li span.current {
    background-color: var(--color-primary) !important;
    color: #fff !important;
    border-color: var(--color-primary) !important;
}


/* ============================================== */
/* ---- MY ACCOUNT NAV ----                      */
/* ============================================== */
.woocommerce-account .woocommerce-MyAccount-navigation,
nav.woocommerce-MyAccount-navigation {
    background-color: #fff !important;
    border-radius: 1rem !important;
    border: 1px solid #e2e8f0 !important;
    padding: 1rem !important;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,.05) !important;
}

@media (min-width: 768px) {
    .woocommerce-account .woocommerce-MyAccount-navigation {
        position: sticky;
        top: 2rem;
        align-self: flex-start;
    }
}

.woocommerce-MyAccount-navigation ul,
nav.woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.woocommerce-MyAccount-navigation li,
nav.woocommerce-MyAccount-navigation ul li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
}

.woocommerce-MyAccount-navigation li::before,
.woocommerce-MyAccount-navigation li::marker {
    content: none !important;
    display: none !important;
}

.woocommerce-MyAccount-navigation a,
nav.woocommerce-MyAccount-navigation ul li a {
    display: flex !important;
    align-items: center !important;
    padding: 0.75rem 1rem !important;
    border-radius: 0.75rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: var(--color-text) !important;
    text-decoration: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    transition: all .2s ease !important;
    width: 100% !important;
}

.woocommerce-MyAccount-navigation a:hover,
nav.woocommerce-MyAccount-navigation ul li a:hover {
    background-color: var(--color-background) !important;
    color: var(--color-primary) !important;
    transform: translateX(4px);
}

.woocommerce-MyAccount-navigation li.is-active a,
nav.woocommerce-MyAccount-navigation ul li.is-active a {
    background-color: var(--color-primary) !important;
    color: #fff !important;
    box-shadow: 0 4px 6px -1px color-mix(in srgb, var(--color-primary), transparent 75%) !important;
    transform: translateX(4px);
}

.woocommerce-MyAccount-navigation li.is-active a:hover {
    background-color: var(--color-secondary) !important;
    color: #fff !important;
}

.woocommerce-MyAccount-navigation .nav-icon {
    margin-right: 0.875rem;
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.woocommerce-MyAccount-navigation li:not(.is-active) .nav-icon { color: var(--color-light); }
.woocommerce-MyAccount-navigation li:not(.is-active) a:hover .nav-icon { color: var(--color-primary); }
.woocommerce-MyAccount-navigation li.is-active .nav-icon,
.woocommerce-MyAccount-navigation li.is-active a span { color: #fff !important; }
.woocommerce-MyAccount-navigation .nav-chevron { margin-left: auto; opacity: 0.75; }


/* ============================================== */
/* ---- ACCOUNT CONTENT ----                     */
/* ============================================== */
.woocommerce-MyAccount-content p       { color: var(--color-text); margin-bottom: 1rem; line-height: 1.625; }
.woocommerce-MyAccount-content strong   { color: var(--color-secondary); font-weight: 600; }
.woocommerce-MyAccount-content a        { color: var(--color-primary); transition: color .15s; }
.woocommerce-MyAccount-content a:hover  { color: var(--color-secondary); text-decoration: underline; }


/* ============================================== */
/* ---- FORM INPUTS (GLOBAL) ----                */
/* ============================================== */

.woocommerce-EditAccountForm .woocommerce-form-row.form-row-first,
.woocommerce-EditAccountForm .woocommerce-form-row.form-row-last {
    width: 100% !important;
    float: none !important;
    margin-right: 0 !important;
}

/* Text inputs */
.woocommerce .sf-input,
.woocommerce .input-text,
.woocommerce input[type="text"],
.woocommerce input[type="email"],
.woocommerce input[type="tel"],
.woocommerce input[type="password"],
.woocommerce input[type="number"],
.woocommerce input[type="url"],
.woocommerce .woocommerce-Input,
.woocommerce-checkout .input-text,
.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="email"],
.woocommerce-checkout input[type="tel"],
.woocommerce-cart .input-text {
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background-color: var(--color-background);
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--color-text);
    outline: none;
    transition: all .2s ease;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,.04);
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    font-family: inherit;
}

/* Focus */
.woocommerce .sf-input:focus,
.woocommerce .input-text:focus,
.woocommerce input[type="text"]:focus,
.woocommerce input[type="email"]:focus,
.woocommerce input[type="tel"]:focus,
.woocommerce input[type="password"]:focus,
.woocommerce input[type="number"]:focus,
.woocommerce input[type="url"]:focus,
.woocommerce-checkout .input-text:focus,
.woocommerce-cart .input-text:focus {
    border-color: var(--color-primary);
    background-color: #fff;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary), transparent 88%);
}

.woocommerce .sf-input--white { background-color: #fff !important; }

/* Placeholder */
.woocommerce input::placeholder,
.woocommerce-checkout input::placeholder {
    color: var(--color-light) !important;
    font-weight: 400 !important;
}

/* Selects */
.woocommerce select,
.woocommerce-checkout select {
    width: 100%;
    padding: 0.875rem 2.5rem 0.875rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background-color: var(--color-background);
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--color-text);
    outline: none;
    transition: all .2s ease;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,.04);
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") !important;
    background-position: right 0.75rem center !important;
    background-repeat: no-repeat !important;
    background-size: 1.25rem !important;
    cursor: pointer;
    font-family: inherit;
}

.woocommerce select:focus,
.woocommerce-checkout select:focus {
    border-color: var(--color-primary);
    background-color: #fff;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary), transparent 88%);
}

/* Textarea */
.woocommerce textarea,
.woocommerce-checkout textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background-color: var(--color-background);
    font-size: 0.9375rem;
    line-height: 1.625;
    color: var(--color-text);
    outline: none;
    transition: all .2s ease;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,.04);
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

.woocommerce textarea:focus,
.woocommerce-checkout textarea:focus {
    border-color: var(--color-primary);
    background-color: #fff;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary), transparent 88%);
}

/* Checkout email marketing note */
.sf-email-marketing-note {
    font-size: 0.8125rem;
    color: #64748b;
    margin: 1.0rem 0 1rem;
    padding: 0 1rem;
    line-height: 1.6;
}

/* Coupon Form Styles */
.woocommerce .coupon .input-text,
.woocommerce-checkout .checkout_coupon .input-text {
    border-radius: 9999px !important;
    padding-left: 3rem !important; /* Space for icon */
    padding-right: 1.5rem !important;
}

.woocommerce .coupon .button,
.woocommerce-checkout .checkout_coupon .button {
    border-radius: 9999px !important;
}

.woocommerce-checkout .checkout_coupon {
    border: 1px dashed #e2e8f0;
    padding: 1.5rem;
    border-radius: 1rem;
    background-color: #f8fafc;
    margin-top: 2rem;
}

.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
    border-top: none !important;
    background-color: transparent !important;
    padding: 0 !important;
    margin-bottom: 0.5rem !important;
    color: var(--color-text) !important; /* Visible text color */
    font-size: 0.9375rem !important;
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
}

.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info a {
    color: var(--color-primary) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    display: inline-block;
    border-bottom: 1px dashed var(--color-primary);
}

.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info a:hover {
    color: var(--color-secondary) !important;
    border-bottom-color: var(--color-secondary);
}

/* Coupon Button Colors Fix */
.woocommerce-checkout .checkout_coupon .button,
.woocommerce-checkout .checkout_coupon button[name="apply_coupon"] {
    background-color: #fff !important;
    color: var(--color-secondary) !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05) !important;
    transition: all 0.2s ease !important;
    padding: 0.75rem 1.5rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
}

.woocommerce-checkout .checkout_coupon .button:hover,
.woocommerce-checkout .checkout_coupon button[name="apply_coupon"]:hover {
    background-color: var(--color-background) !important;
    color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    transform: translateY(-1px);
}

/* Ensure coupon toggle is visible */
.woocommerce-form-coupon-toggle {
    display: block !important;
}

.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info::before {
    display: none !important;
}

.woocommerce .coupon .relative svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    color: #94a3b8; /* Slate 400 */
    pointer-events: none;
}

/* Labels */
.woocommerce .form-row label,
.woocommerce-checkout .form-row label {
    display: block !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: var(--color-secondary) !important;
    margin-bottom: 0.5rem !important;
}

.woocommerce .form-row label.checkbox {
    /* REMOVED flex alignment causing layout issues */
    display: block !important;
    padding-left: 2rem !important;
    position: relative !important;
    line-height: 1.5 !important;
}

.woocommerce .form-row label.checkbox input[type="checkbox"] {
    position: absolute !important;
    left: 0 !important;
    top: 0.25rem !important;
    margin: 0 !important;
}

/* Form rows */
.woocommerce .form-row,
.woocommerce-checkout .form-row { margin-bottom: 1.25rem; }

.woocommerce-checkout .form-row-first,
.woocommerce-checkout .form-row-last {
    width: 48% !important;
    display: inline-block !important;
    vertical-align: top !important;
}
.woocommerce-checkout .form-row-first { float: left !important; margin-right: 4% !important; }
.woocommerce-checkout .form-row-last  { float: right !important; margin-right: 0 !important; }
.woocommerce-checkout .form-row-wide  { width: 100% !important; float: none !important; clear: both !important; }

@media (max-width: 767px) {
    .woocommerce-checkout .form-row-first,
    .woocommerce-checkout .form-row-last {
        width: 100% !important;
        float: none !important;
        margin-right: 0 !important;
    }
}

.woocommerce-address-fields__field-wrapper .form-row { width: 100% !important; float: none !important; padding: 0 !important; }
.woocommerce-address-fields__field-wrapper .form-row-wide { grid-column: 1 / -1 !important; }


/* ============================================== */
/* ---- BUTTONS ----                             */
/* ============================================== */

/* Primary */
.sf-btn-primary,
.woocommerce .sf-btn-primary,
.woocommerce .button.alt,
.woocommerce .checkout-button,
.woocommerce button.button.alt,
.woocommerce a.button.alt,
.woocommerce-account .woocommerce-Button,
.woocommerce-account button[type="submit"]:not(.adminbar-button),
.woocommerce-MyAccount-content .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    background-color: var(--color-primary) !important;
    color: #fff !important;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 1rem;
    border: none !important;
    cursor: pointer;
    transition: all .2s ease;
    box-shadow: 0 4px 6px -1px color-mix(in srgb, var(--color-primary), transparent 75%);
    text-decoration: none !important;
    line-height: 1.5;
    font-family: inherit;
    gap: 0.5rem;
}

.sf-btn-primary:hover,
.woocommerce .sf-btn-primary:hover,
.woocommerce .button.alt:hover,
.woocommerce .checkout-button:hover,
.woocommerce button.button.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce-account .woocommerce-Button:hover,
.woocommerce-account button[type="submit"]:not(.adminbar-button):hover,
.woocommerce-MyAccount-content .button:hover {
    background-color: var(--color-secondary) !important;
    box-shadow: 0 10px 15px -3px color-mix(in srgb, var(--color-primary), transparent 70%);
    transform: translateY(-1px);
    color: #fff !important;
}

/* Secondary */
.sf-btn-secondary,
.woocommerce .sf-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background-color: #fff !important;
    color: var(--color-secondary) !important;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0 !important;
    cursor: pointer;
    transition: all .2s ease;
    text-decoration: none !important;
    line-height: 1.5;
    font-family: inherit;
}

.sf-btn-secondary:hover,
.woocommerce .sf-btn-secondary:hover {
    background-color: var(--color-background) !important;
    color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    transform: translateY(-1px);
}


/* ============================================== */
/* ---- SINGLE PRODUCT ----                      */
/* ============================================== */

/* Gallery */
.product-gallery-wrapper { position: relative; }

.woocommerce div.product div.images .woocommerce-product-gallery {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

.woocommerce div.product div.images .woocommerce-product-gallery__wrapper { display: flex; flex-direction: column; }
.woocommerce div.product div.images .woocommerce-product-gallery__image { width: 100% !important; }

.woocommerce div.product div.images img,
.product-gallery-wrapper img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: cover;
    border-radius: 0 !important;
}

.product-gallery-wrapper .woocommerce-product-gallery,
.product-gallery-wrapper .woocommerce-product-gallery__wrapper,
.product-gallery-wrapper .woocommerce-product-gallery__image {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Thumbnails */
.woocommerce div.product div.images .flex-control-thumbs {
    display: flex !important;
    gap: 0.75rem;
    margin-top: 0.75rem !important;
    padding: 0.75rem !important;
    list-style: none !important;
    overflow-x: auto;
}

.woocommerce div.product div.images .flex-control-thumbs li {
    flex: 0 0 72px;
    width: 72px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.woocommerce div.product div.images .flex-control-thumbs li img {
    width: 100% !important;
    height: 72px !important;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 2px solid transparent;
    transition: all .2s ease;
    cursor: pointer;
    opacity: 0.6;
}

.woocommerce div.product div.images .flex-control-thumbs li img:hover,
.woocommerce div.product div.images .flex-control-thumbs li img.flex-active {
    border-color: var(--color-primary);
    opacity: 1;
}

/* Zoom trigger */
.woocommerce div.product div.images .woocommerce-product-gallery__trigger {
    position: absolute !important;
    top: 1rem !important;
    right: 1rem !important;
    z-index: 10 !important;
    width: 2.5rem !important;
    height: 2.5rem !important;
    background: rgba(255,255,255,.9) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.1) !important;
    border: none !important;
    font-size: 0 !important;
    text-decoration: none !important;
}

/* Sale badge */
.woocommerce div.product .onsale,
.woocommerce span.onsale {
    position: absolute !important;
    top: 1rem !important;
    left: 1rem !important;
    right: auto !important;
    background-color: #dc2626 !important;
    color: #fff !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    padding: 0.5rem 1rem !important;
    border-radius: 9999px !important;
    line-height: 1 !important;
    min-width: auto !important;
    min-height: auto !important;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Title */
.product_title,
.woocommerce div.product .product_title {
    font-size: 2.5rem !important;
    line-height: 1.15 !important;
    font-weight: 800 !important;
    color: var(--color-secondary) !important;
    margin-bottom: 1.5rem !important;
    letter-spacing: -0.02em;
}

@media (max-width: 767px) {
    .product_title { font-size: 1.75rem !important; }
}

/* Price */
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    font-size: 1.75rem !important;
    color: var(--color-primary) !important;
    font-weight: 700 !important;
    margin-bottom: 1.5rem !important;
    display: block !important;
}

.woocommerce div.product p.price del { color: var(--color-light) !important; font-size: 1.125rem !important; margin-right: 0.75rem !important; font-weight: 500 !important; }
.woocommerce div.product p.price ins  { text-decoration: none !important; background: transparent !important; }

.sf-vat-note {
    font-size: 0.75rem;
    color: var(--color-light);
    line-height: 1.2;
}

.sf-vat-note span {
    display: block;
}

.sf-price-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.sf-price-hero {
    font-size: 3rem;
    line-height: 1.1;
    font-weight: 700;
    color: var(--color-primary);
}

.sf-price-row .sf-vat-note {
    display: flex;
    flex-direction: column;
}

.cart-collaterals .sf-vat-note {
    text-align: right;
}

.woocommerce-checkout-review-order .sf-vat-note {
    text-align: right;
}

.woocommerce-product-gallery__image img {
    display: block;
}

/* Add to Cart */
.woocommerce div.product form.cart {
    display: flex !important;
    gap: 1rem !important;
    margin-bottom: 0 !important;
    align-items: stretch !important;
    flex-wrap: wrap !important;
}

.woocommerce div.product form.cart .quantity { display: flex; align-items: center; }

.woocommerce div.product form.cart .quantity .qty {
    width: 3.5rem !important;
    padding: 0.5rem !important;
    text-align: center !important;
    border-radius: 0.5rem !important;
    border: none !important;
    background-color: transparent !important;
    font-weight: 700 !important;
    color: var(--color-secondary) !important;
    font-size: 1.125rem !important;
    -moz-appearance: textfield;
    box-shadow: none !important;
    margin: 0 !important;
}

.woocommerce div.product form.cart .quantity {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.25rem;
    width: fit-content;
}

.woocommerce div.product form.cart .quantity .qty::-webkit-outer-spin-button,
.woocommerce div.product form.cart .quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.woocommerce .quantity .qty-btn {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: var(--color-secondary);
    border-radius: 0.5rem;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.25rem;
    line-height: 1;
    padding-bottom: 2px; /* optical alignment */
}

.woocommerce .quantity .qty-btn:hover {
    background: var(--color-primary);
    color: #fff;
}

.woocommerce div.product form.cart button.single_add_to_cart_button {
    flex-grow: 1 !important;
    background-color: var(--color-primary) !important;
    color: #fff !important;
    padding: 1rem 2rem !important;
    border-radius: 1rem !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    transition: all .2s ease !important;
    box-shadow: 0 4px 6px -1px color-mix(in srgb, var(--color-primary), transparent 75%) !important;
    border: none !important;
    cursor: pointer !important;
    text-transform: none !important;
}

.woocommerce div.product form.cart button.single_add_to_cart_button:hover {
    background-color: var(--color-secondary) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 15px -3px color-mix(in srgb, var(--color-primary), transparent 70%) !important;
}

/* Express Checkout (Stripe GPay, Link) */
.woocommerce div.product .wc-stripe-payment-request-wrapper,
.woocommerce div.product #wc-stripe-payment-request-wrapper {
    margin-top: 0 !important;
    width: 100% !important;
    flex-basis: 100% !important;
}

/* ============================================== */
/* ---- STRIPE / CHECKOUT SPACING FIX ----       */
/* ============================================== */
.sf-stripe-fix #wc-stripe-payment-request-button-separator,
.sf-stripe-fix .wc-stripe-payment-request-button-separator,
.sf-stripe-fix #wc-stripe-express-checkout-button-separator {
    margin: 0.25rem 0 !important;
    padding: 0 !important;
    height: auto !important;
    min-height: 0 !important;
}

.sf-stripe-fix #wc-stripe-payment-request-button { 
    margin-bottom: 0 !important;
    padding: 0 !important;
}

.sf-stripe-fix .wc-stripe-payment-request-wrapper,
.sf-stripe-fix #wc-stripe-payment-request-wrapper {
    margin: 0 !important;
    padding: 0 !important;
}

.sf-stripe-fix #payment {
    margin-top: 0.5rem !important;
}

/* Fallback if body class not applied */
#wc-stripe-express-checkout-element {
    margin-top: 0.25rem !important;
}

#wc-stripe-payment-request-button-separator,
.wc-stripe-payment-request-button-separator,
#wc-stripe-express-checkout-button-separator {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--color-light) !important;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    margin: 0.25rem 0 !important; /* Aggressively reduced margin */
    width: 100% !important;
    flex-basis: 100% !important;
    padding: 0 !important;
    height: auto !important;
    min-height: 0 !important;
}

#wc-stripe-payment-request-button-separator::before,
#wc-stripe-payment-request-button-separator::after,
#wc-stripe-express-checkout-button-separator::before,
#wc-stripe-express-checkout-button-separator::after { content: ''; flex: 1; border-bottom: 1px solid #e2e8f0; }

#wc-stripe-payment-request-button-separator::before,
#wc-stripe-express-checkout-button-separator::before { margin-right: 0.75rem; }

#wc-stripe-payment-request-button-separator::after,
#wc-stripe-express-checkout-button-separator::after  { margin-left: 0.75rem; }

#wc-stripe-payment-request-button { 
    border-radius: 0.75rem !important; 
    overflow: hidden !important; 
    min-height: 40px !important; /* Reduced min-height */
    margin-bottom: 0 !important;
    padding: 0 !important;
}

/* Hide Save Payment Method Checkbox */
.woocommerce-SavedPaymentMethods-saveNew,
.woocommerce-terms-and-conditions-wrapper,
.woocommerce-NoticeGroup-checkout {
    display: none !important;
}

/* Error Highlight for Checkboxes */
.woocommerce-invalid-required-checkbox label.checkbox {
    color: #b91c1c !important;
    font-weight: 700 !important;
}
.woocommerce-invalid-required-checkbox input[type="checkbox"] {
    outline: 2px solid #dc2626 !important;
    box-shadow: 0 0 0 3px #fecaca !important;
}

/* Stripe Express Checkout on Checkout Page */
.woocommerce-checkout .wc-stripe-payment-request-wrapper,
.woocommerce-checkout #wc-stripe-payment-request-wrapper {
    margin: 0 !important; /* Zero margin */
    width: 100% !important;
    padding: 0 !important; /* Zero padding */
}

/* Tabs */
.woocommerce-tabs ul.tabs { border-bottom: 1px solid #e2e8f0 !important; padding: 0 !important; margin: 0 0 2rem !important; display: flex !important; gap: 2rem !important; list-style: none !important; overflow-x: auto !important; }
.woocommerce-tabs ul.tabs li { border: none !important; background: transparent !important; margin: 0 !important; padding: 0 !important; }
.woocommerce-tabs ul.tabs li::before,
.woocommerce-tabs ul.tabs li::after { display: none !important; }
.woocommerce-tabs ul.tabs li a { display: block !important; padding: 1rem 0 !important; font-weight: 600 !important; color: var(--color-light) !important; border-bottom: 2px solid transparent !important; transition: all .2s ease !important; text-decoration: none !important; white-space: nowrap; }
.woocommerce-tabs ul.tabs li a:hover { color: var(--color-primary) !important; }
.woocommerce-tabs ul.tabs li.active a { color: var(--color-primary) !important; border-bottom-color: var(--color-primary) !important; }
.woocommerce-tabs .panel { margin-bottom: 2rem !important; }
.woocommerce-tabs .panel h2 { display: none !important; }

/* Meta */
.product_meta { font-size: 0.875rem !important; color: var(--color-light) !important; border-top: 1px solid #f1f5f9 !important; padding-top: 1.5rem !important; margin-top: auto !important; }
.product_meta > span { display: block !important; margin-bottom: 0.25rem !important; }
.product_meta a { color: var(--color-primary) !important; font-weight: 500 !important; }

/* Short Description */
.woocommerce div.product .woocommerce-product-details__short-description { color: var(--color-text); font-size: 1rem; line-height: 1.75; }


/* ============================================== */
/* ---- CHECKOUT ----                            */
/* ============================================== */
.woocommerce-checkout h3 { font-size: 1.25rem !important; font-weight: 700 !important; color: var(--color-secondary) !important; margin-bottom: 1.5rem !important; }
.woocommerce-checkout #customer_details .form-row { overflow: hidden; }

/* Review Order */
.woocommerce-checkout-review-order-table { width: 100% !important; border-collapse: collapse !important; margin-bottom: 1rem !important; border: none !important; }
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td { padding: 0.5rem 0 !important; border-bottom: 1px solid #e2e8f0 !important; color: var(--color-text) !important; background: transparent !important; }
.woocommerce-checkout-review-order-table thead th { font-size: 0.75rem !important; text-transform: uppercase !important; letter-spacing: 0.05em !important; color: var(--color-light) !important; font-weight: 600 !important; padding-bottom: 0.5rem !important; }
.woocommerce-checkout-review-order-table .product-name { font-weight: 500 !important; color: var(--color-secondary) !important; }
.woocommerce-checkout-review-order-table .product-total,
.woocommerce-checkout-review-order-table .cart-subtotal td,
.woocommerce-checkout-review-order-table .order-total td { text-align: right !important; font-feature-settings: "tnum"; }
.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout-review-order-table .order-total td { border-top: 2px solid #e2e8f0 !important; border-bottom: none !important; padding-top: 0.75rem !important; font-weight: 700 !important; color: var(--color-secondary) !important; font-size: 1.125rem !important; }

/* Payment */
#payment { background: #fff !important; border-radius: 0.75rem !important; border: 1px solid #e2e8f0 !important; padding: 0 !important; margin-top: 0.5rem !important; }
#payment ul.payment_methods { list-style: none !important; margin: 0 !important; padding: 0 !important; border-bottom: 1px solid #e2e8f0 !important; }
#payment ul.payment_methods li { padding: 0.5rem 1rem !important; border-bottom: 1px solid #f1f5f9 !important; margin: 0 !important; background: transparent !important; }
#payment ul.payment_methods li:last-child { border-bottom: none !important; }
#payment ul.payment_methods li input[type="radio"] { margin-right: 0.5rem !important; accent-color: var(--color-primary); }
#payment ul.payment_methods li label { display: inline-flex !important; align-items: center !important; font-weight: 600 !important; color: var(--color-secondary) !important; cursor: pointer !important; margin-bottom: 0 !important; font-size: 0.9375rem !important; }
#payment ul.payment_methods li label img { max-height: 24px !important; margin-left: 0.5rem !important; }

#payment div.payment_box { background-color: var(--color-background) !important; border: 1px solid #e2e8f0 !important; border-radius: 0.5rem !important; padding: 0.75rem !important; margin: 0.75rem 0 0 !important; font-size: 0.875rem !important; color: var(--color-text) !important; position: relative !important; }
#payment div.payment_box::before { content: "" !important; display: block !important; border: 8px solid transparent !important; border-bottom-color: #e2e8f0 !important; position: absolute !important; top: -16px !important; left: 0 !important; margin: 0 0 0 1em !important; }
#payment div.place-order { padding: 0.5rem 0.75rem !important; display: flex !important; flex-direction: column !important; gap: 0.25rem !important; }

#payment #place_order {
    width: 100% !important;
    justify-content: center !important;
    padding: 1rem 1.5rem !important;
    font-size: 1rem !important;
    background-color: var(--color-primary) !important;
    color: white !important;
    border-radius: 0.75rem !important;
    font-weight: 700 !important;
    transition: all .2s ease !important;
    border: none !important;
    cursor: pointer !important;

}

#payment #place_order:hover {
    background-color: var(--color-secondary) !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px color-mix(in srgb, var(--color-primary), transparent 70%);
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper { margin-bottom: 1rem; }
.woocommerce-checkout .woocommerce-privacy-policy-text p { font-size: 0.8125rem !important; color: var(--color-light) !important; line-height: 1.5 !important; }
.woocommerce-checkout .checkout_coupon {
    display: none;
}
.woocommerce-checkout .woocommerce-NoticeGroup-checkout,
.woocommerce-checkout .woocommerce-error,
.woocommerce-checkout .woocommerce-message {
    display: none !important;
}

/* Hide Save Payment Method Checkbox */
.woocommerce-SavedPaymentMethods-saveNew {
    display: none !important;
}

.sf-checkout-consent {
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
    padding: 1rem 1.25rem;
}

@media (min-width: 768px) {
    .sf-checkout-consent {
        padding: 1.25rem 1.5rem;
    }
}

.sf-checkout-consent .form-row {
    margin: 0 0 0.75rem 0 !important;
}

.sf-checkout-consent .form-row:last-child {
    margin-bottom: 0 !important;
}

.sf-checkout-consent .woocommerce-form__label-for-checkbox {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
    font-size: 0.875rem !important;
    line-height: 1.6 !important;
    color: var(--color-text) !important;
}

.sf-checkout-consent .woocommerce-form__input-checkbox {
    margin-top: 0.25rem !important;
}

/* Custom Invalid Checkbox Styling */
.form-row.woocommerce-invalid-required-checkbox .woocommerce-form__input-checkbox {
    outline: 2px solid #dc2626 !important;
    outline-offset: 2px !important;
}

.form-row.woocommerce-invalid-required-checkbox label {
    color: #dc2626 !important;
}

/* Hide standard privacy policy text since we use custom checkboxes */
.woocommerce-privacy-policy-text {
    display: none !important;
}
/* ---- CART ----                                */
/* ============================================== */
.woocommerce-cart-form .coupon { display: flex !important; flex-wrap: wrap !important; gap: 0.5rem !important; }
.woocommerce-cart-form .coupon .input-text { width: auto !important; min-width: 200px !important; }

.woocommerce-cart-form__contents img { width: 80px !important; height: 80px !important; object-fit: cover !important; border-radius: 0.75rem !important; }

.woocommerce-cart-form__contents .remove {
    font-size: 1.5rem !important; line-height: 1 !important; text-decoration: none !important;
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    width: 2rem !important; height: 2rem !important; border-radius: 50% !important; transition: all .2s ease !important;
}
.woocommerce-cart-form__contents .remove:hover { background-color: #fef2f2 !important; color: #dc2626 !important; }

.woocommerce-cart-form .quantity .qty {
    width: 4rem !important; padding: 0.5rem !important; text-align: center !important;
    border-radius: 0.5rem !important; border: 1px solid #e2e8f0 !important;
    background-color: var(--color-background) !important; font-weight: 600 !important; font-size: 0.9375rem !important;
}

/* Cart Totals */
.cart_totals .wc-proceed-to-checkout,
.cart_totals > h2 { display: none !important; }
.cart_totals, .woocommerce .cart_totals { width: 100% !important; float: none !important; }
.cart_totals table { width: 100% !important; border-collapse: collapse !important; }
.cart_totals th, .cart_totals td { padding: 1rem 0 !important; border-bottom: 1px solid #e2e8f0 !important; }
.cart_totals th { font-weight: 600 !important; color: var(--color-secondary) !important; text-align: left !important; }
.cart_totals td { text-align: right !important; color: var(--color-text) !important; font-feature-settings: "tnum"; }
.cart_totals .order-total th,
.cart_totals .order-total td { font-size: 1.5rem !important; font-weight: 700 !important; color: var(--color-secondary) !important; border-top: 2px solid #e2e8f0 !important; border-bottom: none !important; padding-top: 1.25rem !important; }

/* Cart Responsive */
@media (max-width: 768px) {
    .woocommerce-cart-form__contents thead { display: none !important; }
    .woocommerce-cart-form__contents tr { display: block !important; border-bottom: 1px solid #e2e8f0 !important; padding: 1rem 0 !important; position: relative !important; }
    .woocommerce-cart-form__contents td { display: block !important; text-align: right !important; padding: 0.25rem 0 !important; border: none !important; }
    .woocommerce-cart-form__contents td::before { content: attr(data-title) ": "; float: left; font-weight: 700; color: var(--color-secondary); }
    .woocommerce-cart-form__contents td.product-remove { position: absolute !important; top: 1rem !important; right: 0 !important; width: auto !important; }
    .woocommerce-cart-form__contents td.product-remove::before { display: none !important; }
    .woocommerce-cart-form__contents td.product-thumbnail { display: none !important; }
    .woocommerce-cart-form__contents td.actions { text-align: left !important; padding-top: 1.5rem !important; }
    .woocommerce-cart-form__contents td.actions::before { display: none !important; }
}


/* ============================================== */
/* ---- ORDERS TABLE ----                        */
/* ============================================== */
.woocommerce-orders-table { width: 100%; border-collapse: collapse; margin-bottom: 2rem; }
.woocommerce-orders-table th { text-align: left; padding: 0.75rem 1rem; background-color: var(--color-background); font-size: 0.75rem; font-weight: 600; color: var(--color-light); text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid #f1f5f9; }
.woocommerce-orders-table td { padding: 0.75rem 1rem; border-bottom: 1px solid #f1f5f9; font-size: 0.875rem; color: var(--color-text); }
.woocommerce-orders-table__cell-order-number a { font-weight: 500; color: var(--color-primary); }


/* ============================================== */
/* ---- NOTICES ----                             */
/* ============================================== */
.woocommerce-message,
.woocommerce-info {
    padding: 1rem 1.25rem !important; border-radius: 0.75rem !important; margin-bottom: 1.5rem !important;
    font-size: 0.875rem !important; display: flex !important; align-items: center !important; gap: 0.75rem !important;
    border-left: 4px solid !important; box-shadow: 0 1px 2px 0 rgba(0,0,0,.05) !important; list-style: none !important;
}

.woocommerce-error {
    padding: 1rem 1.25rem !important; border-radius: 0.75rem !important; margin-bottom: 1.5rem !important;
    font-size: 0.875rem !important; display: flex !important; flex-direction: column !important; align-items: flex-start !important; gap: 0.5rem !important;
    border-left: 4px solid !important; box-shadow: 0 1px 2px 0 rgba(0,0,0,.05) !important; list-style: none !important;
    width: 100% !important; box-sizing: border-box !important;
}

.woocommerce-NoticeGroup {
    width: 100% !important;
    clear: both !important;
    display: block !important;
}

.woocommerce-message { background-color: #f0fdf4 !important; border-color: #16a34a !important; color: #15803d !important; }
.woocommerce-info    { background-color: #eff6ff !important; border-color: var(--color-primary) !important; color: var(--color-secondary) !important; }
.woocommerce-error   { background-color: #fef2f2 !important; border-color: #dc2626 !important; color: #b91c1c !important; }
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { display: none !important; }
.woocommerce-error li { list-style: none !important; }


/* ============================================== */
/* ---- PASSWORD TOGGLE ----                     */
/* ============================================== */
.woocommerce .show-password-input { position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%); color: var(--color-light); cursor: pointer; background: none !important; border: none !important; padding: 0.25rem !important; }
.woocommerce .woocommerce-form-row.password-input { position: relative; }


/* ============================================== */
/* ---- SELECT2 ----                             */
/* ============================================== */
.woocommerce .select2-container--default .select2-selection--single,
.woocommerce-checkout .select2-container--default .select2-selection--single {
    height: auto !important; padding: 0.875rem 1rem !important; border-radius: 0.75rem !important;
    margin-bottom: 1px !important;
    border: 1px solid #e2e8f0 !important; background-color: var(--color-background) !important;
    font-size: 0.9375rem !important; line-height: 1.5 !important;
}
.woocommerce .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 1.5 !important; padding: 0 !important; color: var(--color-text) !important; }
.woocommerce .select2-container--default .select2-selection--single .select2-selection__arrow { height: 100% !important; right: 0.75rem !important; }
.woocommerce .select2-container--default.select2-container--focus .select2-selection--single,
.woocommerce .select2-container--default.select2-container--open .select2-selection--single { border-color: var(--color-primary) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary), transparent 88%) !important; }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background-color: var(--color-primary) !important; }
.select2-dropdown { border-radius: 0.75rem !important; border-color: #e2e8f0 !important; box-shadow: 0 10px 15px -3px rgba(0,0,0,.1) !important; z-index: 99999 !important; }
.select2-search--dropdown .select2-search__field { border-radius: 0.5rem !important; border-color: #e2e8f0 !important; padding: 0.5rem 0.75rem !important; }


/* ============================================== */
/* ---- GENERAL FORM INPUTS ----                 */
/* ============================================== */
.woocommerce-input-wrapper .input-text,
.woocommerce form .form-row .input-text,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
    padding: 0.875rem 1rem !important;
    border-radius: 0.75rem !important;
    border: 1px solid #e2e8f0 !important;
    background-color: var(--color-background) !important;
    font-size: 0.9375rem !important;
    color: var(--color-text) !important;
    outline: none !important;
    transition: all .2s ease !important;
    font-family: inherit !important;
    box-shadow: none !important;
    width: 100% !important;
    line-height: 1.5 !important;
}

.woocommerce-input-wrapper .input-text:focus,
.woocommerce form .form-row .input-text:focus,
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
    border-color: var(--color-primary) !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary), transparent 88%) !important;
}


/* ============================================== */
/* ---- ORDER DETAILS ----                       */
/* ============================================== */
/* Removed conflicting rules - handled by utility classes and fixes below */

/* Hide Update Cart Button */
button[name='update_cart'] {
    display: none !important;
}

/* ============================================== */
/* ---- ORDER DETAILS FIXES ----                 */
/* ============================================== */

/* Fix Billing/Shipping Address Container */
.woocommerce-customer-details .woocommerce-column > div,
.woocommerce-customer-details .woocommerce-column--billing-address > div,
.woocommerce-customer-details .woocommerce-column--shipping-address > div {
    background-color: #fff !important;
    border-radius: 1rem !important; /* rounded-2xl */
    padding: 2rem !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,.05) !important;
    margin-bottom: 0 !important;
    height: 100% !important;
}

.woocommerce-customer-details .woocommerce-column__title {
    font-size: 1.25rem !important; /* matches text-xl */
    font-weight: 700 !important;
    color: var(--color-secondary) !important;
    margin-bottom: 1.5rem !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    display: block !important; /* Removed flex since icons are gone */
}

.woocommerce-customer-details address {
    font-style: normal !important;
    color: var(--color-text) !important;
    line-height: 1.625 !important;
    border: none !important;
    padding: 0 !important;
}

/* Hide Print Invoice Button */
.btn-print-invoice,
button.btn-print-invoice {
    display: none !important;
}

/* Order Again Button Styling */
.woocommerce-order-details .order-again {
    margin-top: 3rem !important;
    text-align: center !important;
    margin-bottom: 2rem !important;
}

.woocommerce-order-details .order-again .button {
    background-color: var(--color-primary) !important;
    color: #fff !important;
    padding: 1rem 2.5rem !important;
    border-radius: 0.75rem !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    text-decoration: none !important;
    box-shadow: 0 4px 6px -1px rgba(42, 100, 122, 0.2), 0 2px 4px -1px rgba(42, 100, 122, 0.1) !important;
}

.woocommerce-order-details .order-again .button:hover {
    background-color: var(--color-secondary) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 15px -3px rgba(42, 100, 122, 0.3), 0 4px 6px -2px rgba(42, 100, 122, 0.15) !important;
    color: #fff !important;
}

/* Order Details Section Title */
.woocommerce-order-details__title {
    margin: 0 !important;
    font-size: 1.25rem !important;
    color: var(--color-secondary) !important;
    padding: 0 !important;
    width: 100% !important;
    border: none !important;
}

/* Order Details Table Styling */
.woocommerce-table--order-details {
    border: none !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    background: #fff !important;
    box-shadow: none !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin-bottom: 0 !important;
    width: 100% !important;
}

.woocommerce-table--order-details th,
.woocommerce-table--order-details td {
    padding: 1.5rem !important;
    border-bottom: 1px solid #f1f5f9 !important;
    border-top: none !important;
    font-family: inherit !important;
}

.woocommerce-table--order-details thead th {
    background-color: #f8fafc !important;
    color: var(--color-secondary) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.75rem !important; /* 12px */
    letter-spacing: 0.05em !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.woocommerce-table--order-details tbody td {
    color: var(--color-text) !important;
    font-size: 0.9375rem !important; /* 15px */
    vertical-align: middle !important;
}

.woocommerce-table--order-details tbody tr:last-child td {
    border-bottom: none !important;
}

.woocommerce-table--order-details tfoot th {
    background-color: #fff !important;
    color: var(--color-secondary) !important;
    font-weight: 600 !important;
    border-top: 1px solid #f1f5f9 !important;
    font-size: 0.9375rem !important;
}

.woocommerce-table--order-details tfoot td {
    background-color: #fff !important;
    color: var(--color-text) !important;
    font-weight: 600 !important;
    text-align: right !important;
    border-top: 1px solid #f1f5f9 !important;
    font-size: 0.9375rem !important;
}

.woocommerce-table--order-details tfoot tr:last-child th,
.woocommerce-table--order-details tfoot tr:last-child td {
    border-top: 2px solid #e2e8f0 !important;
    background-color: #f8fafc !important;
    color: var(--color-secondary) !important;
    font-size: 1.125rem !important; /* 18px */
    font-weight: 800 !important;
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}
