/**
 * استایل‌های اختصاصی ووکامرس برای قالب تایتان
 *
 * @package Titan
 */

/* ===== Shop Archive ===== */
.woocommerce .titan-products-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.woocommerce .woocommerce-result-count {
    margin: 0;
    font-size: 14px;
    color: var(--titan-color-text-light);
}

.woocommerce .woocommerce-ordering {
    margin: 0;
}

.woocommerce .woocommerce-ordering select {
    padding: 8px 12px;
    border: 2px solid var(--titan-color-border);
    border-radius: var(--titan-radius-sm);
    font-family: var(--titan-font-primary);
    font-size: 14px;
    background: var(--titan-color-white);
    color: var(--titan-color-text);
    cursor: pointer;
}

/* ===== Single Product ===== */
body.woocommerce div.product {
    display: block;
}

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

body.woocommerce div.product div.summary {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

body.woocommerce div.product .product_title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

body.woocommerce div.product .woocommerce-product-rating {
    margin-bottom: 16px;
}

body.woocommerce div.product .price {
    font-size: 24px;
    font-weight: 700;
    color: var(--titan-color-primary) !important;
    margin-bottom: 16px;
}

body.woocommerce div.product .price del {
    font-size: 16px;
    color: var(--titan-color-text-muted);
}

body.woocommerce div.product .price ins {
    text-decoration: none;
}

body.woocommerce div.product .woocommerce-product-details__short-description {
    margin-bottom: 24px;
    color: var(--titan-color-text-light);
    line-height: 1.8;
}

body.woocommerce div.product form.cart {
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

body.woocommerce div.product form.cart .quantity {
    margin: 0;
}

body.woocommerce div.product form.cart .quantity input {
    width: 80px;
    padding: 10px;
    border: 2px solid var(--titan-color-border);
    border-radius: var(--titan-radius-sm);
    font-family: var(--titan-font-primary);
    font-size: 16px;
    text-align: center;
}

body.woocommerce div.product form.cart .button {
    flex: 1;
    padding: 14px 32px;
    background: var(--titan-color-primary);
    color: #fff;
    border: none;
    border-radius: var(--titan-radius-sm);
    font-family: var(--titan-font-primary);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

body.woocommerce div.product form.cart .button:hover {
    background: var(--titan-color-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(108,92,231,0.3);
}

/* ===== Product Tabs ===== */
.woocommerce div.product .woocommerce-tabs {
    grid-column: 1 / -1;
    margin-top: 48px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0;
    border-bottom: 2px solid var(--titan-color-border);
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before {
    display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    border: none;
    background: transparent;
    margin: 0;
    padding: 0;
    border-radius: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
    display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--titan-color-text-light);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: var(--titan-color-primary);
    border-bottom-color: var(--titan-color-primary);
}

.woocommerce div.product .woocommerce-tabs .panel {
    padding: 24px 0;
    border: none;
    box-shadow: none;
}

/* ===== Related Products ===== */
.woocommerce .related.products,
.woocommerce .upsells.products {
    grid-column: 1 / -1;
    margin-top: 48px;
}

.woocommerce .related.products h2,
.woocommerce .upsells.products h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
}

/* ===== Progress Stepper ===== */
.titan-stepper {
    max-width: 480px;
    margin: 0 auto 24px;
    position: relative;
}

.titan-stepper-track {
    position: absolute;
    top: 16px;
    left: 32px;
    right: 32px;
    height: 2px;
    background: var(--titan-color-border);
    border-radius: 2px;
    z-index: 0;
}

.titan-stepper-line {
    height: 100%;
    background: var(--titan-color-primary);
    border-radius: 2px;
    transition: width 0.5s ease;
}

.titan-stepper-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.titan-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.titan-step-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--titan-color-bg-alt);
    border: 2px solid var(--titan-color-border);
    color: var(--titan-color-text-light);
    font-weight: 700;
    font-size: 12px;
    transition: var(--titan-transition);
}

.titan-step-circle--active {
    background: var(--titan-color-primary);
    border-color: var(--titan-color-primary);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.15);
}

.titan-step-circle--done {
    background: var(--titan-color-success);
    border-color: var(--titan-color-success);
    color: #fff;
}

.titan-step-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--titan-color-text-light);
}

.titan-step-label--active {
    color: var(--titan-color-primary);
    font-weight: 700;
}

.titan-step-label--done {
    color: var(--titan-color-success);
    font-weight: 600;
}

/* ===== Cart & Checkout Grid ===== */
body.woocommerce .titan-cart-grid,
body.woocommerce-checkout .titan-cart-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
    width: 100%;
}

/* ===== Cart Page ===== */
.titan-cart-page-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--titan-font-size-xl);
    font-weight: 700;
    color: var(--titan-color-text);
    margin: 0 0 16px;
}

.titan-cart-page-title svg {
    color: var(--titan-color-primary);
    width: 22px;
    height: 22px;
}

/* Cart List */
.titan-cart-list {
    background: var(--titan-color-white);
    border: 1px solid var(--titan-color-border);
    border-radius: 10px;
    overflow: hidden;
}

/* Cart Row */
.titan-cart-row {
    display: flex;
    gap: 16px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--titan-color-border);
    transition: background 0.2s;
}

.titan-cart-row:last-child {
    border-bottom: none;
}

.titan-cart-row:hover {
    background: rgba(108, 92, 231, 0.02);
}

.titan-cart-row-image {
    width: 90px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--titan-color-bg);
    flex-shrink: 0;
}

.titan-cart-row-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: none;
    border-radius: 0;
}

.titan-cart-row-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.titan-cart-row-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.titan-cart-row-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.titan-cart-row-name h3 {
    font-size: var(--titan-font-size-base);
    font-weight: 700;
    color: var(--titan-color-text);
    margin: 0 0 4px;
    line-height: 1.4;
}

.titan-cart-row-name h3 a {
    color: inherit;
    text-decoration: none;
}

.titan-cart-row-name h3 a:hover {
    color: var(--titan-color-primary);
}

.titan-cart-row-meta {
    font-size: var(--titan-font-size-xs);
    color: var(--titan-color-text-light);
    margin-bottom: 2px;
}

.titan-cart-row-meta .variation {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
}

.titan-cart-row-meta .variation dt,
.titan-cart-row-meta .variation dd {
    margin: 0;
    font-size: var(--titan-font-size-xs);
}

.titan-cart-row-meta .variation dt {
    color: var(--titan-color-text-muted);
}

.titan-cart-row-meta .variation dd {
    color: var(--titan-color-text-light);
}

.titan-cart-row-backorder {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: var(--titan-font-size-xs);
    color: var(--titan-color-warning);
}

.titan-cart-row-remove {
    background: none;
    border: none;
    padding: 6px;
    color: var(--titan-color-text-muted);
    cursor: pointer;
    border-radius: 8px;
    transition: var(--titan-transition);
    flex-shrink: 0;
}

.titan-cart-row-remove a {
    display: flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.titan-cart-row-remove:hover {
    background: rgba(225, 112, 85, 0.1);
    color: var(--titan-color-error);
}

.titan-cart-row-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

/* Quantity Controls */
.titan-cart-row-qty {
    flex-shrink: 0;
}

.titan-qty-control {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--titan-color-border);
    border-radius: 8px;
    background: var(--titan-color-bg);
}

.titan-qty-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--titan-color-primary);
    cursor: pointer;
    transition: var(--titan-transition);
    padding: 0;
}

.titan-qty-btn svg {
    width: 16px;
    height: 16px;
}

.titan-qty-btn:hover {
    background: rgba(108, 92, 231, 0.1);
    border-radius: 6px;
}

.titan-qty-input {
    width: 36px;
    text-align: center;
    border: none;
    background: transparent;
    font-family: var(--titan-font-primary);
    font-size: 13px;
    font-weight: 700;
    color: var(--titan-color-text);
    -moz-appearance: textfield;
    padding: 0;
    height: 30px;
}

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

.titan-qty-static {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 30px;
    font-weight: 700;
    font-size: 13px;
    color: var(--titan-color-text);
}

.titan-cart-row-price {
    text-align: left;
}

.titan-cart-row-price .woocommerce-Price-amount {
    font-size: var(--titan-font-size-lg);
    font-weight: 700;
    color: var(--titan-color-primary);
    white-space: nowrap;
}

.titan-cart-row-price .woocommerce-Price-currencySymbol {
    font-size: var(--titan-font-size-sm);
}

/* Cart Actions */
.titan-cart-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

body.woocommerce .titan-update-cart {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--titan-color-bg);
    border: 1px solid var(--titan-color-border);
    border-radius: 8px;
    color: var(--titan-color-text);
    font-family: var(--titan-font-primary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--titan-transition);
}

body.woocommerce .titan-update-cart:hover {
    background: var(--titan-color-primary);
    border-color: var(--titan-color-primary);
    color: #fff;
}

body.woocommerce .titan-update-cart svg {
    width: 14px;
    height: 14px;
}

/* ===== Sidebar (Order Summary) ===== */
.titan-cart-sidebar {
    position: sticky;
    top: calc(var(--titan-header-height, 80px) + 20px);
}

.titan-cart-sidebar-inner {
    background: var(--titan-color-white);
    border: 1px solid var(--titan-color-border);
    border-radius: 10px;
    padding: 16px;
    box-shadow: var(--titan-shadow-sm);
}

.titan-sidebar-title {
    font-size: var(--titan-font-size-base);
    font-weight: 700;
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--titan-color-border);
    color: var(--titan-color-text);
}

.titan-sidebar-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.titan-sidebar-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--titan-color-text-light);
}

.titan-sidebar-row--discount {
    color: var(--titan-color-error);
}

.titan-sidebar-row--discount span:last-child {
    font-weight: 600;
}

/* Sidebar Products */
.titan-sidebar-products {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--titan-color-border);
}

.titan-sidebar-product {
    display: flex;
    align-items: center;
    gap: 10px;
}

.titan-sidebar-product-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--titan-color-bg);
    flex-shrink: 0;
}

.titan-sidebar-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: none;
    border-radius: 0;
}

.titan-sidebar-product-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.titan-sidebar-product-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--titan-color-text);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.titan-sidebar-product-qty {
    font-size: 11px;
    color: var(--titan-color-text-muted);
}

.titan-sidebar-product-price {
    font-size: 12px;
    font-weight: 700;
    color: var(--titan-color-primary);
    white-space: nowrap;
}

.titan-sidebar-product-price .woocommerce-Price-amount {
    font-size: 12px;
    font-weight: 700;
    color: var(--titan-color-primary);
}

/* Coupon */
.titan-sidebar-coupon {
    margin-bottom: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--titan-color-border);
}

.titan-sidebar-coupon-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--titan-color-text-light);
    margin-bottom: 6px;
}

.titan-sidebar-coupon-form {
    display: flex;
    gap: 6px;
}

.titan-sidebar-coupon-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--titan-color-border);
    border-radius: 6px;
    font-family: var(--titan-font-primary);
    font-size: 12px;
    background: var(--titan-color-bg);
    color: var(--titan-color-text);
    transition: var(--titan-transition);
}

.titan-sidebar-coupon-input:focus {
    outline: none;
    border-color: var(--titan-color-primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.titan-sidebar-coupon-btn {
    padding: 8px 16px;
    background: var(--titan-color-success);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-family: var(--titan-font-primary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--titan-transition);
    white-space: nowrap;
}

.titan-sidebar-coupon-btn:hover {
    background: #00a381;
}

/* Total */
.titan-sidebar-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 2px dashed var(--titan-color-border);
    margin-bottom: 16px;
}

.titan-sidebar-total-label {
    font-size: var(--titan-font-size-base);
    font-weight: 700;
    color: var(--titan-color-text);
}

.titan-sidebar-total-value {
    font-size: var(--titan-font-size-base);
    font-weight: 800;
    color: var(--titan-color-primary);
}

.titan-sidebar-total-value .woocommerce-Price-amount {
    font-size: var(--titan-font-size-lg);
    font-weight: 800;
    color: var(--titan-color-primary);
}

/* Checkout Button */
.titan-sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.titan-checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 24px;
    background: var(--titan-color-primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: var(--titan-font-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--titan-transition);
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 40, 142, 0.15);
}

.titan-checkout-btn svg {
    width: 18px;
    height: 18px;
}

.titan-checkout-btn:hover {
    background: var(--titan-color-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 40, 142, 0.25);
    color: #fff;
}

.titan-checkout-btn:active {
    transform: scale(0.98);
}

.titan-sidebar-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 11px;
    color: var(--titan-color-text-muted);
    text-align: center;
}

.titan-sidebar-trust svg {
    color: var(--titan-color-success);
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

/* Shipping Notice */
.titan-shipping-notice {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    padding: 12px;
    background: var(--titan-color-bg);
    border: 1px solid var(--titan-color-border);
    border-radius: 8px;
}

.titan-shipping-notice > svg {
    color: var(--titan-color-primary);
    flex-shrink: 0;
    margin-top: 2px;
    width: 18px;
    height: 18px;
}

.titan-shipping-notice strong {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--titan-color-text);
    margin-bottom: 2px;
}

.titan-shipping-notice p {
    font-size: 11px;
    color: var(--titan-color-text-light);
    margin: 0;
    line-height: 1.5;
}

.titan-shipping-notice p strong {
    display: inline;
    font-weight: 700;
    color: var(--titan-color-primary);
}

/* ===== Checkout Page ===== */
.titan-checkout-form {
    width: 100%;
}

.titan-checkout-main {
    min-width: 0;
}

body.woocommerce-checkout #customer_details {
    background: var(--titan-color-white);
    border: 1px solid var(--titan-color-border);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

body.woocommerce-checkout .col2-set {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

/* Checkout Sections */
body.woocommerce-checkout .woocommerce-billing-fields h3,
body.woocommerce-checkout .woocommerce-shipping-fields h3 {
    font-size: var(--titan-font-size-base);
    font-weight: 700;
    color: var(--titan-color-text);
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--titan-color-border);
    display: flex;
    align-items: center;
    gap: 6px;
}

body.woocommerce-checkout .woocommerce-billing-fields h3 svg,
body.woocommerce-checkout .woocommerce-shipping-fields h3 svg {
    color: var(--titan-color-primary);
    width: 18px;
    height: 18px;
}

/* Form Fields — Billing & Checkout */
body.woocommerce .woocommerce-billing-fields__field-wrapper .form-row input,
body.woocommerce .woocommerce-shipping-fields__field-wrapper .form-row input,
body.woocommerce .woocommerce-billing-fields__field-wrapper .form-row select,
body.woocommerce .woocommerce-shipping-fields__field-wrapper .form-row select,
body.woocommerce .woocommerce-billing-fields__field-wrapper .form-row textarea,
body.woocommerce .woocommerce-shipping-fields__field-wrapper .form-row textarea,
body.woocommerce-checkout #customer_details .input-text,
body.woocommerce-checkout #customer_details select,
body.woocommerce-checkout #customer_details textarea,
body.woocommerce-checkout #customer_details .select2-selection {
    border-radius: 5px !important;
    padding-right: 5px !important;
    border: 1.5px solid #d1d5db !important;
    background: #f3f4f6 !important;
    font-family: var(--titan-font-primary) !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
}

body.woocommerce-checkout #customer_details .input-text:focus,
body.woocommerce-checkout #customer_details select:focus,
body.woocommerce-checkout #customer_details textarea:focus,
body.woocommerce-checkout #customer_details .select2-selection:focus,
body.woocommerce-checkout #customer_details .select2-container--focus .select2-selection {
    border-color: var(--titan-color-primary) !important;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15) !important;
    background: #ffffff !important;
    outline: none !important;
}

body.woocommerce-checkout #customer_details label {
    margin-bottom: 8px !important;
    font-weight: 600 !important;
    color: var(--titan-color-text) !important;
}

body.woocommerce-checkout #customer_details .form-row {
    margin-bottom: 16px !important;
}

body.woocommerce-checkout #customer_details textarea {
    min-height: 120px !important;
}

body.woocommerce-checkout #customer_details .order-comments textarea,
body.woocommerce-checkout #order_comments,
.woocommerce-additional-fields__field-wrapper textarea,
.woocommerce-additional-fields textarea {
    min-height: 140px !important;
    height: 140px !important;
    min-width: 100% !important;
    width: 100% !important;
}

body.woocommerce form .form-row .select2-selection {
    border: 1.5px solid #d1d5db;
    border-radius: 5px;
    padding: 10px 14px;
    background: #f3f4f6;
    min-height: 46px;
    transition: all 0.2s ease;
}

body.woocommerce form .form-row .select2-selection:hover {
    border-color: #9ca3af;
    background: #f9fafb;
}

body.woocommerce form .form-row .select2-selection:focus,
body.woocommerce form .form-row.select2-container--focus .select2-selection {
    border-color: var(--titan-color-primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
    background: #ffffff;
}

/* Order Review — Payment Only */
.titan-checkout-order-review {
    background: var(--titan-color-white);
    border: 1px solid var(--titan-color-border);
    border-radius: 10px;
    padding: 20px;
}

body.woocommerce-checkout #order_review_heading {
    display: none;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table {
    display: none;
}

/* Payment Methods */
body.woocommerce-checkout #payment {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
}

body.woocommerce-checkout #payment ul.payment_methods {
    border: none;
    padding: 0;
    margin: 0 0 16px;
}

body.woocommerce-checkout #payment ul.payment_methods li {
    border: 1px solid var(--titan-color-border);
    border-radius: 8px;
    margin-bottom: 6px;
    transition: var(--titan-transition);
}

body.woocommerce-checkout #payment ul.payment_methods li:has(input:checked) {
    border-color: var(--titan-color-primary);
    background: rgba(108, 92, 231, 0.04);
}

body.woocommerce-checkout #payment ul.payment_methods li label {
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--titan-color-text);
}

body.woocommerce-checkout #payment ul.payment_methods li input {
    width: 16px;
    height: 16px;
    accent-color: var(--titan-color-primary);
}

body.woocommerce-checkout #payment #place_order,
.titan-sidebar-actions .button.alt {
    width: 100%;
    padding: 12px 24px;
    background: var(--titan-color-primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: var(--titan-font-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--titan-transition);
    box-shadow: 0 2px 8px rgba(0, 40, 142, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

body.woocommerce-checkout #payment #place_order:hover,
.titan-sidebar-actions .button.alt:hover {
    background: var(--titan-color-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 40, 142, 0.25);
}

body.woocommerce-checkout #payment #place_order.titan-pay-loading,
.titan-sidebar-actions .button.alt.titan-pay-loading {
    opacity: 0.8;
    cursor: not-allowed;
    pointer-events: none;
}

/* ===== Empty Cart State ===== */
body.woocommerce .cart-empty {
    text-align: center;
    padding: 40px 20px;
    background: var(--titan-color-white);
    border: 1px solid var(--titan-color-border);
    border-radius: 10px;
}

body.woocommerce .cart-empty .woocommerce-info {
    background: transparent;
    border: none;
    padding: 0;
    font-size: var(--titan-font-size-lg);
    color: var(--titan-color-text);
    margin-bottom: 8px;
}

body.woocommerce .cart-empty .button {
    margin-top: 12px;
}

/* ===== Return to Shop Link ===== */
body.woocommerce .return-to-shop {
    margin-top: 12px;
}

body.woocommerce .return-to-shop .button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--titan-color-bg);
    border: 1px solid var(--titan-color-border);
    border-radius: 8px;
    color: var(--titan-color-text);
    font-family: var(--titan-font-primary);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--titan-transition);
}

body.woocommerce .return-to-shop .button:hover {
    background: var(--titan-color-primary);
    border-color: var(--titan-color-primary);
    color: #fff;
}

/* ===== Spin Animation ===== */
@keyframes titan-spin {
    to { transform: rotate(360deg); }
}

.titan-spin {
    animation: titan-spin 0.8s linear infinite;
}

.titan-pay-btn.titan-pay-loading {
    opacity: 0.8;
    cursor: not-allowed;
    pointer-events: none;
}

/* ===== My Account ===== */
body.woocommerce .woocommerce-MyAccount-navigation {
    background: var(--titan-color-white);
    border-radius: var(--titan-radius-md);
    overflow: hidden;
    border: 1px solid var(--titan-color-border);
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce-MyAccount-navigation ul li {
    margin: 0;
}

.woocommerce-MyAccount-navigation ul li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    font-size: 14px;
    color: var(--titan-color-text);
    border-bottom: 1px solid var(--titan-color-border);
    transition: all 0.3s;
}

.woocommerce-MyAccount-navigation ul li:last-child a {
    border-bottom: none;
}

.woocommerce-MyAccount-navigation ul li.is-active a {
    background: var(--titan-color-primary);
    color: #fff;
}

.woocommerce-MyAccount-navigation ul li a:hover {
    background: var(--titan-color-bg-alt);
}

/* ===== Notices ===== */
body.woocommerce .woocommerce-message,
body.woocommerce .woocommerce-info,
body.woocommerce .woocommerce-error {
    padding: 16px 20px;
    border-radius: var(--titan-radius-sm);
    margin-bottom: 24px;
    border: none;
    border-inline-end: 4px solid;
    font-size: 14px;
    line-height: 1.6;
}

.woocommerce-message {
    background: #e8f8f5;
    border-color: var(--titan-color-success);
    color: var(--titan-color-success);
}

.woocommerce-info {
    background: #eef2ff;
    border-color: var(--titan-color-primary);
    color: var(--titan-color-primary);
}

.woocommerce-error {
    background: #fef2f2;
    border-color: var(--titan-color-error);
    color: var(--titan-color-error);
}

/* ===== Dark Mode Overrides ===== */
html.dark-mode .woocommerce-message {
    background: rgba(0, 184, 148, 0.15);
    color: var(--titan-color-success);
}

html.dark-mode .woocommerce-info {
    background: rgba(108, 92, 231, 0.15);
    color: var(--titan-color-primary-light);
}

html.dark-mode .woocommerce-error {
    background: rgba(225, 112, 85, 0.15);
    color: var(--titan-color-error);
}

html.dark-mode body.woocommerce form .form-row input,
html.dark-mode body.woocommerce form .form-row textarea,
html.dark-mode body.woocommerce form .form-row select,
html.dark-mode body.woocommerce-checkout #customer_details .input-text,
html.dark-mode body.woocommerce-checkout #customer_details select,
html.dark-mode body.woocommerce-checkout #customer_details textarea {
    background: var(--titan-color-bg-alt) !important;
    border-color: var(--titan-color-border) !important;
}

html.dark-mode body.woocommerce form .form-row .select2-selection,
html.dark-mode body.woocommerce-checkout #customer_details .select2-selection {
    background: var(--titan-color-bg-alt) !important;
    border-color: var(--titan-color-border) !important;
}

html.dark-mode body.woocommerce form .form-row input:focus,
html.dark-mode body.woocommerce form .form-row textarea:focus,
html.dark-mode body.woocommerce-checkout #customer_details .input-text:focus,
html.dark-mode body.woocommerce-checkout #customer_details textarea:focus {
    background: var(--titan-color-bg) !important;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.25) !important;
}

/* Cart & Checkout Dark Mode */
html.dark-mode .titan-cart-list,
html.dark-mode .titan-cart-sidebar-inner,
html.dark-mode body.woocommerce-checkout #customer_details,
html.dark-mode .titan-checkout-order-review {
    background: var(--titan-color-bg-alt);
    border-color: var(--titan-glass-border);
}

html.dark-mode .titan-cart-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

html.dark-mode .titan-cart-row-image {
    background: var(--titan-color-bg);
}

html.dark-mode .titan-sidebar-product-img {
    background: var(--titan-color-bg);
}

html.dark-mode .titan-sidebar-product-name {
    color: var(--titan-color-text);
}

html.dark-mode .titan-qty-control {
    background: var(--titan-color-bg);
    border-color: var(--titan-glass-border);
    border-color: var(--titan-color-border);
}

html.dark-mode .titan-cart-summary-inner {
    background: var(--titan-glass-bg);
    border-color: var(--titan-glass-border);
}

html.dark-mode .titan-shipping-progress {
    background: var(--titan-color-bg-alt);
}

html.dark-mode .titan-shipping-bar-track {
    background: var(--titan-color-border);
}

html.dark-mode body.woocommerce .titan-update-cart {
    background: var(--titan-color-bg-alt);
    border-color: var(--titan-color-border);
}

html.dark-mode .titan-coupon-form input {
    background: var(--titan-color-bg-alt);
    border-color: var(--titan-color-border);
    color: var(--titan-color-text);
}

html.dark-mode .titan-coupon-form button {
    background: var(--titan-color-bg);
    border-color: var(--titan-color-border);
    color: var(--titan-color-text);
}

html.dark-mode body.woocommerce .cart-empty {
    background: var(--titan-glass-bg);
    border-color: var(--titan-glass-border);
}

/* ===== Buttons ===== */
body.woocommerce .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--titan-color-primary);
    color: #fff;
    border: none;
    border-radius: var(--titan-radius-sm);
    font-family: var(--titan-font-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

body.woocommerce .button:hover {
    background: var(--titan-color-primary-hover);
    color: #fff;
}

/* ===== Pagination ===== */
body.woocommerce nav.woocommerce-pagination {
    margin-top: 32px;
}

.woocommerce nav.woocommerce-pagination ul {
    border: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    list-style: none;
}

.woocommerce nav.woocommerce-pagination ul li {
    border: none;
    margin: 0;
    display: inline-flex;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    border-radius: var(--titan-radius-sm);
    font-size: 14px;
    background: var(--titan-color-white);
    border: 1px solid var(--titan-color-border);
    color: var(--titan-color-text);
}

.woocommerce nav.woocommerce-pagination ul li span.current {
    background: var(--titan-color-primary);
    color: #fff;
    border-color: var(--titan-color-primary);
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
    background: var(--titan-color-primary);
    color: #fff;
    border-color: var(--titan-color-primary);
}

@media (max-width: 480px) {
    .woocommerce nav.woocommerce-pagination ul li a,
    .woocommerce nav.woocommerce-pagination ul li span {
        min-width: 34px;
        height: 34px;
        font-size: 12px;
    }
}

/* ===== Responsive — Tablet ===== */
@media (max-width: 1024px) {
    body.woocommerce .titan-cart-grid,
    body.woocommerce-checkout .titan-cart-grid {
        grid-template-columns: 1fr 320px;
        gap: 24px;
    }
}

/* ===== Responsive — Mobile ===== */
@media (max-width: 768px) {
    body.woocommerce .titan-cart-grid,
    body.woocommerce-checkout .titan-cart-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .titan-cart-page-title {
        font-size: var(--titan-font-size-xl);
    }

    .titan-cart-row {
        flex-wrap: wrap;
        gap: 12px;
        padding: 16px;
    }

    .titan-cart-row-image {
        width: 80px;
        height: 80px;
    }

    .titan-cart-row-info {
        min-width: calc(100% - 92px);
    }

    .titan-cart-row-bottom {
        flex-wrap: wrap;
        gap: 10px;
    }

    .titan-cart-row-price .woocommerce-Price-amount {
        font-size: var(--titan-font-size-base);
    }

    /* Sidebar — Fixed bottom bar */
    .titan-cart-sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: var(--titan-z-sticky, 1020);
        top: auto;
    }

    .titan-cart-sidebar-inner {
        padding: 10px 14px;
        background: var(--titan-color-white);
        border-radius: 0;
        border: none;
        border-top: 1px solid var(--titan-color-border);
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
    }

    .titan-sidebar-title,
    .titan-sidebar-rows,
    .titan-sidebar-coupon,
    .titan-sidebar-trust,
    .titan-shipping-notice {
        display: none;
    }

    .titan-sidebar-total {
        margin: 0;
        padding: 0;
        border: none;
    }

    .titan-sidebar-total-label {
        font-size: var(--titan-font-size-sm);
    }

    .titan-sidebar-total-value {
        font-size: var(--titan-font-size-base);
    }

    .titan-sidebar-total-value .woocommerce-Price-amount {
        font-size: var(--titan-font-size-base);
    }

    .titan-checkout-btn {
        padding: 10px 20px;
        width: auto;
        font-size: 13px;
    }

    .titan-cart-actions {
        margin-bottom: 60px;
    }

    body.woocommerce .titan-update-cart {
        padding: 8px 14px;
        font-size: var(--titan-font-size-xs);
    }

    /* Checkout responsive */
    body.woocommerce-checkout .col2-set {
        grid-template-columns: 1fr;
    }

    body.woocommerce-checkout #customer_details {
        padding: 16px;
    }

    .titan-checkout-order-review {
        padding: 16px;
    }

    /* Stepper */
    .titan-stepper {
        margin-bottom: 24px;
    }

    .titan-step-label {
        font-size: var(--titan-font-size-xs);
    }

    .titan-step-circle {
        width: 36px;
        height: 36px;
    }
}

/* ===== Responsive — Small Mobile ===== */
@media (max-width: 480px) {
    .titan-cart-row {
        gap: 10px;
        padding: 14px;
    }

    .titan-cart-row-image {
        width: 70px;
        height: 70px;
    }

    .titan-cart-row-name h3 {
        font-size: var(--titan-font-size-sm);
    }

    .titan-cart-row-price .woocommerce-Price-amount {
        font-size: var(--titan-font-size-sm);
    }

    .titan-qty-control {
        transform: scale(0.9);
        transform-origin: right center;
    }
}
