/*
Theme Name: retraide
Theme URI: https://retraide.fr/
Description: Thème 100% autonome pour retraide
Author: Franck Fernandez
Author URI: https://retraide.fr/
Version: 3.2
Text Domain: retraide
*/

/* --- Normalize --- */
.wp-caption,
.wp-caption-text,
.sticky,
.screen-reader-text,
.gallery-caption,
.bypostauthor,
.alignright,
.alignleft,
.aligncenter {
    display: block;
}

/* --- SITE STRUCTURE & CONTAINERS --- */
body {
    font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
    color: #1e293b;
    background-color: #f8fafc;
    line-height: 1.5;
    margin: 0;
}
.site-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.site-content {
    flex: 1 0 auto;
    padding: 2rem 0;
    position: relative;
    z-index: 1;
}
.row {
    margin-right: -1rem;
    margin-left: -1rem;
}

/* --- TYPOGRAPHY & LINKS --- */
h1, h2, h3, h4, h5, h6 {
    color: #0f172a;
    line-height: 1.25;
    margin-top: 2rem;
}
h1:first-child, h2:first-child, h3:first-child, h4:first-child, h5:first-child, h6:first-child {
    margin-top: 0;
}
h1:not(:last-child), h2:not(:last-child), h3:not(:last-child), h4:not(:last-child), h5:not(:last-child), h6:not(:last-child) {
    margin-bottom: 1rem;
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5625rem; }
h4 { font-size: 1.3125rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    line-height: 1.875;
}
p:not(:last-child) {
    margin-bottom: 1rem;
}
a {
    text-decoration: none;
    color: #009bfe;
    transition: color 0.25s;
}
a:hover {
    color: #0083da;
}

/* --- BUTTONS --- */
.button {
    display: inline-block;
    text-align: center;
    cursor: pointer;
    border: none;
    border-radius: 3px;
    font-size: 1rem;
    line-height: 1.5;
    padding: 0.5rem 1rem;
    background-color: rgba(7, 36, 86, 0.085);
    color: #1e293b;
    transition: all 0.25s ease;
    text-decoration: none;
}
.button:hover {
    background-color: rgba(7, 36, 86, 0.12);
    color: #1e293b;
}
.button--primary,
.button--secondary {
    color: #ffffff !important;
}
.button--primary {
    background-color: #009bfe;
}
.button--primary:hover {
    background-color: #0083da;
}
.button--secondary {
    background-color: #61ce70;
}
.button--secondary:hover {
    background-color: #39c94d;
}
button[type=submit],
input[type=submit] {
    border-radius: 3px;
    background-color: #009bfe;
    color: #ffffff;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.25s;
}
button[type=submit]:hover,
input[type=submit]:hover {
    background-color: #0083da;
}

/* --- FORMS RESETS --- */
input[type='color'],
input[type='date'],
input[type='datetime'],
input[type='datetime-local'],
input[type='email'],
input[type='month'],
input[type='number'],
input[type='password'],
input[type='range'],
input[type='search'],
input[type='tel'],
input[type='text'],
input[type='time'],
input[type='url'],
select,
textarea {
    font-family: inherit;
    box-shadow: none;
    color: inherit;
    font-size: 1rem;
    background-color: transparent;
    line-height: 1.5;
    padding: 0.4375rem 1rem;
    border: 1px solid rgba(7, 36, 86, 0.075);
    border-radius: 3px;
    box-sizing: border-box;
}

/* --- SITE HEADER & NAVBAR --- */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid rgba(7, 36, 86, 0.075);
}
.header-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 30px;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}
.header-navbar__start,
.header-navbar__middle,
.header-navbar__end {
    display: flex;
    align-items: center;
}
.header-navbar__start {
    margin-right: 2rem;
}
.header-navbar__end {
    justify-content: flex-end;
    gap: 1.5rem;
}

/* --- HEADER LOGO --- */
.header-logo a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.header-logo img {
    max-height: 90px;
    display: block;
    width: 90%;
}
.header-logo__name {
    font-size: 1.5625rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
    transition: color 0.25s;
}
.header-logo__name:not(:last-child) {
    margin-bottom: 0.25rem;
}
.header-logo:hover .header-logo__name {
    color: #009bfe;
}
.header-logo__description {
    font-size: 0.875rem;
    color: #64748b;
}

/* --- DESKTOP MENU --- */
.header-navbar__menu {
    display: flex;
    align-self: stretch;
}
@media only screen and (max-width: 74.99em) {
    .header-navbar__menu {
        display: none;
    }
}
.header-navbar__menu:not(:last-child) {
    margin-right: 1rem;
}
.header-navbar__menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
}
.header-navbar .header-navbar__menu ul li {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
}
.header-navbar .header-navbar__menu ul li a {
    text-decoration: none;
    color: rgba(15, 23, 39, 0.65);
    font-weight: 500;
    font-size: 16px;
    transition: color 0.25s;
    line-height: 1.5;
}
.header-navbar__menu ul li.active > a,
.header-navbar__menu ul li.current-menu-item > a,
.header-navbar__menu ul li a:hover {
    color: #009bfe;
}

/* Desktop Dropdown Submenus */
.header-navbar__menu ul li ul {
    display: none;
    position: absolute;
    z-index: 1000;
    top: 100%;
    left: 0;
    min-width: 14rem;
    background-color: #ffffff;
    border: 1px solid rgba(7, 36, 86, 0.075);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 0.5rem 0;
    flex-direction: column;
    gap: 0;
}
.header-navbar__menu ul li ul li {
    padding: 0.25rem 1.5rem;
    display: block;
}
.header-navbar__menu ul li ul li a {
    font-size: 0.875rem;
    font-weight: 500;
    display: block;
}
.header-navbar__menu ul li ul li ul {
    left: 100%;
    top: -0.5rem;
}
.header-navbar__menu ul li:hover > ul {
    display: flex;
}
.header-navbar__menu > ul > li.menu-item-has-children::after {
    font-family: "Font Awesome 5 Free", "Font Awesome 6 Free", sans-serif;
    font-weight: 900;
    content: "\f107";
    margin-left: 0.5rem;
    color: rgba(7, 36, 86, 0.25);
}

/* --- MOBILE MENU BURGER & OVERLAY --- */
.header-navbar__burger {
    margin-right: 2rem;
}
@media only screen and (max-width: 47.99em) {
    .header-navbar__burger {
        margin-right: 1.5rem;
    }
}
.header-navbar__burger > a {
    color: #475569;
    display: none;
    font-size: 1.5rem;
    text-decoration: none;
}
.header-navbar__burger > a:hover {
    color: #009bfe;
}
@media only screen and (max-width: 74.99em) {
    .header-navbar__burger > a {
        display: block;
    }
}
.header-navbar__burger > a i {
    display: block;
}

/* Burger fullscreen overlay on mobile */
.header-navbar__burger ul {
    display: none; /* Controlled by navigation.js */
    position: fixed;
    z-index: 10000;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: #ffffff;
    padding: 4rem 2rem 2rem;
    list-style: none;
    margin: 0;
}
/* Close icon indicator */
.header-navbar__burger ul::before {
    font-family: "Font Awesome 5 Free", "Font Awesome 6 Free", sans-serif;
    font-weight: 900;
    content: "\f00d"; /* Close icon (X) */
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    transition: color 0.2s;
}
.header-navbar__burger ul::before:hover {
    color: #009bfe;
}
.header-navbar__burger ul li {
    position: relative;
}
.header-navbar__burger ul li a {
    text-decoration: none;
    color: #0f172a;
    font-size: 1.25rem;
    font-weight: 700;
    display: block;
    line-height: 1.5;
}
.header-navbar__burger ul li a:hover {
    color: #009bfe;
}
/* Submenus on mobile burger */
.header-navbar__burger ul li ul {
    display: block;
    position: static;
    padding: 0.5rem 0 0 1.5rem;
    background: transparent;
    box-shadow: none;
    border: none;
}
.header-navbar__burger ul li ul::before {
    display: none; /* Remove close icon from submenus */
}
.header-navbar__burger ul li ul li {
    margin-bottom: 0.75rem;
}
.header-navbar__burger ul li ul li a {
    font-size: 1rem;
    font-weight: 600;
    color: #475569;
}
.header-navbar__burger > ul > li.current-menu-item::before {
    position: absolute;
    top: 0;
    left: -1.5rem;
    bottom: 0;
    display: block;
    width: 3px;
    content: '';
    background-color: #009bfe;
}

/* --- WIDGETS & SIDEBAR --- */
.widget {
    margin-bottom: 2rem;
}
.widget__title {
    font-family: 'Poppins', 'Roboto', 'Inter', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
    padding-top: 0.5rem;
    position: relative;
}
.widget--footer .widget__title::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 3px;
    display: block;
    content: '';
    background-color: #009bfe;
}

/* --- FOOTER LAYOUT --- */
.site-footer {
    background-color: #ffffff;
    border-top: 1px solid rgba(7, 36, 86, 0.075);
    padding: 3rem 0;
    color: #64748b;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.footer-widgets {
    padding: 1rem 0;
}
.footer-widgets:not(:last-child) {
    border-bottom: 1px solid rgba(7, 36, 86, 0.075);
    padding-bottom: 3rem;
    margin-bottom: 2rem;
}
@media only screen and (max-width: 47.99em) {
    .footer-widgets > div > div:not(:last-child) {
        margin-bottom: 2rem;
    }
}
.footer-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
@media only screen and (max-width: 47.99em) {
    .footer-navbar {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
}
.footer-navbar__end,
.footer-navbar__start {
    display: flex;
    align-items: center;
}
.footer-navbar__copyright {
    color: #94a3b8;
    font-size: 0.85rem;
}
.footer-navbar__menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 1.5rem;
}
.footer-navbar__menu ul li {
    margin: 0;
}
.footer-navbar__menu ul li a {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    transition: color 0.25s;
}
.footer-navbar__menu ul li a:hover {
    color: #009bfe;
}
.footer-navbar__menu ul ul {
    display: none;
}

/* --- POST PREV/NEXT NAVIGATION --- */
.post-navbar {
    border-top: 1px solid #e2e8f0;
    padding-top: 1.5rem;
    margin-top: 3rem;
}

.post-navbar__link h5 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

.post-navbar__link a {
    text-decoration: none;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2;
}

.post-navbar__link a:hover {
    color: #009bfe;
}

.post-navbar__end {
    text-align: right;
}

.post-navbar__end .post-navbar__link a {
    flex-direction: row-reverse;
}

/* ==========================================================================
   WOOCOMMERCE STYLING SECTION
   ========================================================================== */

/* --- WooCommerce Notices & Alert Messages --- */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    background-color: #ffffff;
    border: 1px solid rgba(7, 36, 86, 0.05);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
    padding: 1.25rem 1.5rem 1.25rem 3.5rem;
    position: relative;
    margin-bottom: 2.5rem;
    list-style: none;
    font-size: 0.95rem;
    color: #475569;
}
.woocommerce-message {
    border-left: 4px solid #61ce70;
}
.woocommerce-info {
    border-left: 4px solid #009bfe;
}
.woocommerce-error {
    border-left: 4px solid #ef4444;
}
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", sans-serif;
    font-weight: 900;
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
}
.woocommerce-message::before {
    content: "\f058"; /* check-circle */
    color: #61ce70;
}
.woocommerce-info::before {
    content: "\f05a"; /* info-circle */
    color: #009bfe;
}
.woocommerce-error::before {
    content: "\f06a"; /* exclamation-circle */
    color: #ef4444;
}
.woocommerce-error li {
    padding: 0;
    margin: 0;
}
.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
    float: right;
    padding: 0.35rem 1rem;
    font-size: 0.85rem;
    margin-top: -0.25rem;
}

/* --- WooCommerce Global Buttons --- */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.5;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    background-color: rgba(7, 36, 86, 0.08);
    color: #1e293b !important;
    transition: all 0.25s ease;
    text-decoration: none;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
    background-color: rgba(7, 36, 86, 0.12);
    color: #1e293b !important;
}

/* Primary/Alternative Action Buttons (Green) */
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
    background-color: #61ce70;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(97, 206, 112, 0.15);
}
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
    background-color: #39c94d;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(97, 206, 112, 0.25);
}
.woocommerce a.button.alt:active,
.woocommerce button.button.alt:active {
    transform: translateY(0);
}
.woocommerce a.button.alt:disabled,
.woocommerce button.button.alt:disabled,
.woocommerce input.button.alt:disabled,
.woocommerce a.button.alt[disabled],
.woocommerce button.button.alt[disabled],
.woocommerce input.button.alt[disabled] {
    background-color: rgba(97, 206, 112, 0.5) !important;
    color: rgba(255, 255, 255, 0.8) !important;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* --- WooCommerce Single Product Layout --- */
.woocommerce-container {
    padding: 4rem 0;
}
.woocommerce div.product {
    margin-bottom: 4rem;
    position: relative;
}
/* Gallery Column */
.woocommerce div.product div.images {
    width: 48%;
    float: left;
    margin-bottom: 2.5rem;
}
.woocommerce div.product div.images img {
    border-radius: 12px;
    border: 1px solid rgba(7, 36, 86, 0.05);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}
.woocommerce div.product div.images .woocommerce-product-gallery__trigger {
    border-radius: 50%;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    top: 1rem;
    right: 1rem;
    z-index: 10;
}
.woocommerce div.product div.images .flex-control-thumbs {
    margin-top: 1.25rem;
    padding: 0;
    display: flex;
    gap: 12px;
}
.woocommerce div.product div.images .flex-control-thumbs li {
    width: 20%;
    list-style: none;
}
.woocommerce div.product div.images .flex-control-thumbs li img {
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.65;
    border: 2px solid transparent;
    transition: opacity 0.25s, border-color 0.25s;
}
.woocommerce div.product div.images .flex-control-thumbs li img.flex-active,
.woocommerce div.product div.images .flex-control-thumbs li img:hover {
    opacity: 1;
    border-color: #009bfe;
}

/* Summary Column */
.woocommerce div.product div.summary {
    width: 48%;
    float: right;
    margin-bottom: 2.5rem;
}
.woocommerce div.product .product_title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 0.75rem;
}
.woocommerce div.product .woocommerce-product-rating {
    margin-bottom: 1.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #64748b;
}
.woocommerce .star-rating {
    font-size: 0.95rem;
    color: #ffa329;
}
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    font-size: 1.85rem;
    font-weight: 800;
    color: #009bfe;
    margin-bottom: 1.75rem;
}
.woocommerce div.product p.price ins,
.woocommerce div.product span.price ins {
    text-decoration: none;
}
.woocommerce div.product p.price del,
.woocommerce div.product span.price del {
    color: #94a3b8;
    font-size: 1.25rem;
    font-weight: 600;
    margin-right: 0.5rem;
}
.woocommerce div.product .woocommerce-product-details__short-description {
    color: #475569;
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 2.25rem;
}

/* Quantity & Add to Cart form */
.woocommerce div.product form.cart {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid rgba(7, 36, 86, 0.05);
    padding-bottom: 2.25rem;
}
.woocommerce div.product form.cart .quantity {
    display: inline-flex;
    align-items: center;
}
.woocommerce div.product form.cart .quantity input.qty {
    width: 4rem;
    height: 3.125rem;
    text-align: center;
    border: 1px solid #d5dbe5;
    background-color: #f8fafc;
    border-radius: 6px;
    font-weight: 700;
    color: #0f172a;
    font-size: 1rem;
}
.woocommerce div.product form.cart .button {
    height: 3.125rem;
    padding: 0 2.5rem;
    font-size: 1.05rem;
}

/* Product Meta */
.woocommerce div.product .product_meta {
    font-size: 0.875rem;
    color: #64748b;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.woocommerce div.product .product_meta span strong,
.woocommerce div.product .product_meta span a {
    color: #334155;
    font-weight: 600;
}

/* Tabbed Panels */
.woocommerce div.product .woocommerce-tabs {
    margin-top: 4rem;
    border-top: 1px solid rgba(7, 36, 86, 0.05);
    padding-top: 3rem;
    clear: both;
}
.woocommerce div.product .woocommerce-tabs ul.tabs {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0 0 2rem 0;
    display: flex;
    gap: 2.5rem;
    border-bottom: 1px solid #e2e8f0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li {
    border: none !important;
    background: transparent !important;
    padding: 0 0 1.25rem 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li::after,
.woocommerce div.product .woocommerce-tabs ul.tabs li::before {
    display: none !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    color: #64748b !important;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 0;
    transition: color 0.25s;
    position: relative;
    text-decoration: none;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: #009bfe !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a::after {
    content: '';
    position: absolute;
    bottom: -1.35rem;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #009bfe;
    border-radius: 99px;
}
.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel {
    padding: 0;
    color: #475569;
    line-height: 1.8;
}
.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel h2 {
    display: none;
}

/* Customer Reviews */
.woocommerce #reviews #comments ol.commentlist {
    padding: 0;
    list-style: none;
}
.woocommerce #reviews #comments ol.commentlist li {
    border: 1px solid rgba(7, 36, 86, 0.05);
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.015);
    padding: 1.75rem;
    margin-bottom: 1.75rem;
}
.woocommerce #reviews #comments ol.commentlist li img.avatar {
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    background: #f8fafc;
}
.woocommerce #reviews #comments ol.commentlist li .comment-text {
    border: none !important;
    margin: 0 0 0 4.5rem !important;
    padding: 0 !important;
}
.woocommerce #reviews #comments ol.commentlist li .comment-text p.meta {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}
.woocommerce #reviews #comments ol.commentlist li .comment-text p.meta strong {
    color: #0f172a;
    font-weight: 700;
}
.woocommerce #reviews #comments ol.commentlist li .comment-text .description {
    color: #475569;
    font-size: 0.975rem;
    line-height: 1.65;
}
.woocommerce p.stars a {
    color: #ffa329 !important;
}

/* --- WooCommerce Cart Layout --- */
.woocommerce-cart-form {
    margin-bottom: 3.5rem;
}
.woocommerce table.shop_table {
    border: 1px solid rgba(7, 36, 86, 0.05);
    border-radius: 12px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.015);
}
.woocommerce table.shop_table th {
    background-color: #f8fafc;
    border-bottom: 1px solid rgba(7, 36, 86, 0.05);
    color: #475569;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.75px;
    padding: 1.1rem 1.25rem;
}
.woocommerce table.shop_table td {
    border-top: 1px solid rgba(7, 36, 86, 0.05);
    padding: 1.25rem 1.25rem;
    color: #334155;
    vertical-align: middle;
}
.woocommerce table.shop_table tr:first-child td {
    border-top: none;
}

/* Cart Product Row Modifications */
.woocommerce table.shop_table td.product-remove a {
    color: #ef4444 !important;
    font-size: 1.35rem;
    text-decoration: none;
    transition: color 0.2s;
}
.woocommerce table.shop_table td.product-remove a:hover {
    color: #b91c1c !important;
}
.woocommerce table.shop_table td.product-thumbnail img {
    border-radius: 8px;
    border: 1px solid rgba(7, 36, 86, 0.04);
    width: 64px;
    height: auto;
    display: block;
}
.woocommerce table.shop_table td.product-name a {
    color: #0f172a;
    font-weight: 700;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s;
}
.woocommerce table.shop_table td.product-name a:hover {
    color: #009bfe;
}
.woocommerce table.shop_table td.product-quantity .quantity input.qty {
    width: 3.75rem;
    height: 2.6rem;
    border: 1px solid #d5dbe5;
    background-color: #f8fafc;
    border-radius: 6px;
    text-align: center;
    font-weight: 700;
    color: #0f172a;
}

/* Actions Column (Coupon & Update Cart) */
.woocommerce table.shop_table td.actions {
    padding: 1.5rem 1.25rem;
    background-color: #f8fafc;
}
.woocommerce table.shop_table td.actions .coupon {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}
.woocommerce table.shop_table td.actions .coupon input[type="text"] {
    height: 2.85rem;
    padding: 0 1.15rem;
    border-radius: 6px;
    border: 1px solid #d5dbe5;
    background-color: #ffffff;
    font-size: 0.95rem;
    width: 12.5rem;
    box-sizing: border-box;
}
.woocommerce table.shop_table td.actions .coupon .button {
    height: 2.85rem;
    padding: 0 1.5rem;
    font-size: 0.9rem;
    font-weight: 700;
}
.woocommerce table.shop_table td.actions > .button {
    height: 2.85rem;
    padding: 0 1.75rem;
    font-size: 0.95rem;
    float: right;
}

/* Cart Totals Card */
.cart-collaterals {
    display: flex;
    justify-content: flex-end;
    margin-top: 3.5rem;
}
.cart-collaterals .cart_totals {
    width: 42%;
    background-color: #ffffff;
    border: 1px solid rgba(7, 36, 86, 0.05);
    border-radius: 16px;
    box-shadow: rgba(7, 36, 86, 0.03) 0px 10px 30px -5px;
    padding: 2.25rem;
    box-sizing: border-box;
}
.cart-collaterals .cart_totals h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    border-bottom: 1px solid rgba(7, 36, 86, 0.05);
    padding-bottom: 1.15rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
}
.cart-collaterals .cart_totals table {
    width: 100%;
    margin-bottom: 1.75rem;
    border-collapse: collapse;
}
.cart-collaterals .cart_totals table tr th,
.cart-collaterals .cart_totals table tr td {
    padding: 1.1rem 0;
    border-top: 1px solid rgba(7, 36, 86, 0.05);
    text-align: left;
}
.cart-collaterals .cart_totals table tr.cart-subtotal th,
.cart-collaterals .cart_totals table tr.cart-subtotal td {
    border-top: none;
}
.cart-collaterals .cart_totals table tr th {
    font-weight: 700;
    color: #64748b;
    font-size: 0.95rem;
}
.cart-collaterals .cart_totals table tr td {
    text-align: right;
    font-weight: 700;
    color: #0f172a;
}
.cart-collaterals .cart_totals table tr.order-total td .woocommerce-Price-amount {
    color: #009bfe;
    font-size: 1.45rem;
}
.cart-collaterals .cart_totals .wc-proceed-to-checkout {
    padding: 0;
}
.cart-collaterals .cart_totals .wc-proceed-to-checkout .checkout-button {
    display: flex;
    width: 100%;
    height: 3.5rem;
    font-size: 1.1rem;
    border-radius: 8px;
    background-color: #61ce70;
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(97, 206, 112, 0.15);
    transition: all 0.25s ease;
}
.cart-collaterals .cart_totals .wc-proceed-to-checkout .checkout-button:hover {
    background-color: #39c94d;
    box-shadow: 0 6px 16px rgba(97, 206, 112, 0.25);
    transform: translateY(-1px);
}

/* --- WooCommerce Responsive Layouts --- */
@media only screen and (max-width: 47.99em) {
    /* Product details responsive spacing */
    .woocommerce div.product div.images {
        width: 100%;
        float: none;
        margin-bottom: 2rem;
    }
    .woocommerce div.product div.summary {
        width: 100%;
        float: none;
        margin-bottom: 2rem;
    }
    .woocommerce div.product .product_title {
        font-size: 1.85rem;
    }
    .woocommerce div.product .woocommerce-tabs ul.tabs {
        flex-direction: column;
        gap: 0.75rem;
        border-bottom: none;
    }
    .woocommerce div.product .woocommerce-tabs ul.tabs li {
        padding-bottom: 0.5rem !important;
        border-bottom: 1px solid #e2e8f0 !important;
    }
    .woocommerce div.product .woocommerce-tabs ul.tabs li.active a::after {
        display: none;
    }
    
    /* Cart table responsive collapsing */
    .woocommerce table.shop_table_responsive tr td,
    .woocommerce-page table.shop_table_responsive tr td {
        display: block;
        text-align: right !important;
        padding: 0.85rem 1rem !important;
    }
    .woocommerce table.shop_table_responsive tr td::before,
    .woocommerce-page table.shop_table_responsive tr td::before {
        font-weight: 700;
        color: #475569;
        float: left;
    }
    .woocommerce table.shop_table td.actions .coupon {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    .woocommerce table.shop_table td.actions .coupon input[type="text"] {
        width: 100%;
        margin-bottom: 0.75rem;
    }
    .woocommerce table.shop_table td.actions .coupon .button {
        width: 100%;
    }
    .woocommerce table.shop_table td.actions > .button {
        width: 100%;
        margin-top: 0.75rem;
        float: none;
    }
    .cart-collaterals {
        justify-content: stretch;
        margin-top: 2.5rem;
    }
    .cart-collaterals .cart_totals {
        width: 100%;
        padding: 1.5rem;
    }
}