/**
 * WooCommerce Styles
 * Based on figma/pages/product/, category/, cart/ designs
 *
 * @package Vanilly
 */

/* Shop Archive */
.shop-main {
    padding: var(--spacing-xl) 0;
    width: 100%;
}

.shop-main .container {
    width: 100%;
    max-width: 100%;
    padding-left: var(--container-padding-x);
    padding-right: var(--container-padding-x);
}

.woocommerce-products-header {
    margin-bottom: var(--spacing-xl);
    text-align: right; /* RTL */
}

.woocommerce-products-header__title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
}

.shop-content-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    align-items: start;
    gap: 24px;
}

.shop-sidebar {
    background: #FFFFFF;
    border: 1px solid #DEE1E8;
    width: 280px;
    flex-shrink: 0;
    gap: 10px;
    padding-top: 24px;
    padding-right: 20px;
    padding-bottom: 44px;
    padding-left: 20px;
    border-radius: 20px;

}

.shop-sidebar-placeholder {
    padding: 20px 0;
    text-align: center;
}

.sidebar-empty-message {
    font-size: 14px;
    color: #9CA3AF;
    margin: 0;
}

/* Shop Filter Widgets */
.shop-sidebar .widget {
    margin-bottom: 0;
    padding: 0;
    background: transparent;
    border: none;
}

.filter-widget {
    border-bottom: 1px solid #DEE1E8;
    padding: 20px 0;
}

.filter-widget:last-child {
    border-bottom: none;
}

/* Filter Widget Header (Accordion) */
.filter-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin-bottom: 16px;
}

.filter-widget-title {
    font-size: 16px;
    font-weight: 600;
    color: #2E303B;
    margin: 0;
}

.filter-accordion-icon {
    width: 24px;
    height: 24px;
    color: #2E303B;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.filter-accordion-icon.icon-down {
    transform: rotate(0deg);
}

.filter-accordion-icon.icon-up {
    transform: rotate(180deg);
}

/* Filter Widget Content */
.filter-widget-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.filter-widget-content[style*="display: none"] {
    display: none !important;
}

/* Max height with scroll for category, brand, and attribute filters */
.filter-category-widget .filter-widget-content,
.filter-brand-widget .filter-widget-content,
.filter-attribute-widget .filter-widget-content {
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
}

/* Custom scrollbar styling for filter widgets */
.filter-category-widget .filter-widget-content::-webkit-scrollbar,
.filter-brand-widget .filter-widget-content::-webkit-scrollbar,
.filter-attribute-widget .filter-widget-content::-webkit-scrollbar {
    width: 6px;
}

.filter-category-widget .filter-widget-content::-webkit-scrollbar-track,
.filter-brand-widget .filter-widget-content::-webkit-scrollbar-track,
.filter-attribute-widget .filter-widget-content::-webkit-scrollbar-track {
    background: #F3F4F6;
    border-radius: 3px;
}

.filter-category-widget .filter-widget-content::-webkit-scrollbar-thumb,
.filter-brand-widget .filter-widget-content::-webkit-scrollbar-thumb,
.filter-attribute-widget .filter-widget-content::-webkit-scrollbar-thumb {
    background: #DEE1E8;
    border-radius: 3px;
}

.filter-category-widget .filter-widget-content::-webkit-scrollbar-thumb:hover,
.filter-brand-widget .filter-widget-content::-webkit-scrollbar-thumb:hover,
.filter-attribute-widget .filter-widget-content::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}

/* Checkbox Filter */
.filter-checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    position: relative;
}

.filter-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.filter-checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #DEE1E8;
    border-radius: 4px;
    background: #FFFFFF;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.filter-checkbox:checked + .filter-checkbox-custom {
    background: #6555D3;
    border-color: #6555D3;
}

.filter-checkbox:checked + .filter-checkbox-custom::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 3L4.5 8.5L2 6' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.filter-label-text {
    font-size: 14px;
    color: #2E303B;
    font-weight: 400;
}

/* Radio Button Filter */
.filter-radio-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    position: relative;
}

.filter-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.filter-radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #DEE1E8;
    border-radius: 50%;
    background: #FFFFFF;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.filter-radio:checked + .filter-radio-custom,
.filter-radio-label.selected .filter-radio-custom {
    border-color: #6555D3;
}

.filter-radio:checked + .filter-radio-custom::after,
.filter-radio-label.selected .filter-radio-custom::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #6555D3;
    border-radius: 50%;
}

/* Toggle Switch Filter */
.filter-toggle-widget {
    padding: 20px 0;
}

.filter-toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.filter-toggle-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.filter-toggle-switch {
    width: 44px;
    height: 24px;
    background: #DEE1E8;
    border-radius: 12px;
    position: relative;
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.filter-toggle-switch::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #FFFFFF;
    top: 3px;
    right: 3px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.filter-toggle-input:checked + .filter-toggle-switch {
    background: #6555D3;
}

.filter-toggle-input:checked + .filter-toggle-switch::after {
    transform: translateX(-20px);
}

.filter-toggle-text {
    font-size: 14px;
    color: #2E303B;
    font-weight: 400;
}

/* Filter Remove Link */
.filter-remove-link {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #DEE1E8;
}

.filter-clear-link {
    font-size: 12px;
    color: #6B7280;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.filter-clear-link:hover {
    color: #6555D3;
}

.shop-products-area {
    flex: 1;
    width: 100%;
    min-width: 0; /* Allow flex item to shrink */
    overflow: hidden; /* Prevent content from overflowing */
}

/* Ensure products grid takes full width */
.woocommerce ul.products {
    width: 100%;
    max-width: 100%;
}

/* Shop Breadcrumb */
.shop-breadcrumb {
    margin-bottom: 24px;
    padding: 12px 0;
}

.breadcrumb-items {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6B7280;
    flex-wrap: wrap;
}

.breadcrumb-items a {
    color: #6B7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-items a:hover {
    color: #6555D3;
}

.breadcrumb-separator {
    color: #9CA3AF;
    margin: 0 4px;
}

.breadcrumb-current {
    color: #2E303B;
    font-weight: 500;
}

/* Shop Products Header */
.woocommerce-products-header {
    margin-bottom: 24px;
}

.woocommerce-products-header__title {
    font-size: 24px;
    font-weight: 700;
    color: #2E303B;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.woocommerce-products-header__title .product-count {
    font-size: 18px;
    font-weight: 500;
    color: #6B7280;
}

.woocommerce #content div.product div.images, .woocommerce div.product div.images, .woocommerce-page #content div.product div.images, .woocommerce-page div.product div.images {
    width: 100% !important;
    max-width: 400px;
    float: unset;
    margin: 0 auto;
}

/* Shop Sorting Bar */
.shop-sorting-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    width: 100%;
    gap: 12px;
}

/* Hide mobile sorting options on desktop */
.mobile-sorting-options-wrapper {
    display: none;
}

.shop-sorting-bar .shop-sorting-bar-left {
    display: flex;
}

.sorting-options {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    border-bottom: 1px solid #DEE1E8;
}

.sorting-options a {
    padding: 0 20px 8px 20px;
}

.sorting-label {
    font-size: 14px;
    font-weight: 600;
    color: #2E303B;
}

.sort-option {
    font-size: 16px;
    color: #888FA2;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 4px 0;
    position: relative;
}

.sort-option:hover {
    color: #000000;
}

.sort-option.active {
    color: #000000;
    font-weight: 500;
    font-size: 16px;
    border-bottom: 2px solid #000;
}

.filter-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    color: #2E303B;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 8px 12px;
    margin-left: 50px;
    border-radius: 8px;
    text-decoration: none;
    gap: 8px;
}

.filter-toggle-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.filter-toggle-btn .sort-icon.asc {
    transform: rotate(180deg);
}

.filter-toggle-btn .sort-order-text {
    font-size: 14px;
    font-weight: 500;
}

.filter-toggle-btn:hover {
    border-color: #000000;
    color: #000000;
    background: #F9FAFB;
}

/* Hide mobile filter modal on desktop */
.shop-sidebar-mobile {
    display: none !important;
}

/* Hide mobile filter button on desktop */
.filter-toggle-btn.mobile-filter-btn {
    display: none;
}

/* Desktop sort order toggle button */
.filter-toggle-btn.sort-order-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    color: #2E303B;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 8px 12px;
    margin-left: 50px;
    margin-bottom: 5px;
    border-radius: 8px;
    text-decoration: none;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
}

.filter-toggle-btn.sort-order-toggle:hover {
    border-color: #000000;
    color: #000000;
}

.filter-toggle-btn.sort-order-toggle svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.filter-toggle-btn.sort-order-toggle .sort-icon.asc {
    transform: rotate(180deg);
}

.filter-toggle-btn.sort-order-toggle .sort-order-text {
    font-size: 16px;
    font-weight: 500;
}

/* Products Grid */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    list-style: none;
    margin: 0 0 40px 0;
    padding: 0;
}

/* Support for WooCommerce columns class */
.woocommerce ul.products.columns-4 {
    grid-template-columns: repeat(4, 1fr);
    padding: 10px 0;
}

/* Remove any :before and :after pseudo-elements from products list */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce ul.products.columns-4::before,
.woocommerce ul.products.columns-4::after {
    display: none !important;
    content: none !important;
}

/* Use front-page product card styles for shop page */
/* Override fixed dimensions from pixel-perfect.css for grid layout */
.woocommerce ul.products .product-card {
    /*width: 100% !important;*/
    /*min-width: auto !important;*/
    /*max-width: none !important;*/
    /*height: auto !important;*/
    /*min-height: auto !important;*/
    /*max-height: none !important;*/
    /*flex-shrink: 1 !important;*/
}

.woocommerce ul.products li.product a img {
    margin: 0 !important;
}

/* Ensure product cards in grid are flexible */
.woocommerce ul.products li.product {
    display: flex;
    width: 100%;
    justify-content: center;
}

.woocommerce ul.products .product-card {
    flex: 1;
}

/* Shop Pagination */
.woocommerce nav.woocommerce-pagination ul {
    border: unset !important;
}

.page-numbers .prev, .page-numbers .next {
    transform: rotate(180deg);
}

.woocommerce nav.woocommerce-pagination ul li {
    border-left: unset !important;
    margin: 0 5px !important;
}

.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span {
    line-height: unset !important;
}

.woocommerce-pagination {
    margin-top: 40px;
    margin-bottom: 40px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    flex-direction: row-reverse;
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.page-numbers li {
    margin: 0;
}

.page-numbers a,
.page-numbers span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: #2E303B;
    background: #FFFFFF;
    border: 1px solid #DEE1E8;
    border-width: 1px;
    opacity: 1;
    transition: all 0.2s ease;
}

.page-numbers a:hover {
    border-color: #DEE1E8;
    background: #F9FAFB;
}

.page-numbers .current {
    background: #DEE1E8;
    border: 1px solid #DEE1E8;
    border-width: 1px;
    color: #2E303B;
    font-weight: 500;
    opacity: 1;
}

.page-numbers .prev,
.page-numbers .next {
    padding: 0 12px;
}

.page-numbers .prev svg,
.page-numbers .next svg {
    width: 20px;
    height: 20px;
}

.page-numbers .prev.disabled,
.page-numbers .next.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.page-numbers .dots {
    color: #9CA3AF;
    cursor: default;
    border: none;
    background: transparent;
}

.page-indicator {
    font-size: 14px;
    color: #6B7280;
    margin-right: 16px;
    font-weight: 400;
}

.woocommerce ul.products li.product {
    margin: 0;
    width: 100%;
}

/* Product Item */
.product-item {
    list-style: none;
    margin: 0;
}

.product-inner {
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-inner:hover {
    box-shadow: 0 8px 16px rgba(101, 85, 211, 0.15);
    transform: translateY(-4px);
    border-color: var(--color-primary);
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    height: 150px !important;
    max-height: 150px !important;
    min-height: 150px !important;
}

.product-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-inner:hover .product-image-wrapper img {
    transform: scale(1.05);
}

.product-actions {
    position: absolute;
    bottom: var(--spacing-md);
    right: var(--spacing-md); /* RTL: right side */
    left: var(--spacing-md);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    gap: var(--spacing-sm);
    justify-content: flex-end; /* RTL: align to right */
}

.product-inner:hover .product-actions {
    opacity: 1;
}

.product-actions .button {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-sm);
    border-radius: 4px;
}

/* Product Stock Status */
.product-stock-status {
    display: block;
    font-size: 12px;
    color: #DC2626;
    font-weight: 500;
    margin-bottom: 8px;
}

/* Product Price Wrapper */
.product-price-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
    flex-wrap: wrap;
}

.product-regular-price {
    font-size: 14px;
    color: #9CA3AF;
    text-decoration: line-through;
}

.product-current-price {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 16px;
    font-weight: 700;
    color: #2E303B;
}

.woocommerce div.product div.images .flex-control-thumbs li {
    padding: 5px;
}

.woocommerce div.product div.images .flex-control-thumbs li img {
    border: 1px solid #DEE1E8;
    border-radius: 14px;
}

.product-current-price .currency-symbol {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: none !important;
}

/* Product Out of Stock */
.product-out-of-stock {
    display: block;
    font-size: 14px;
    color: #9CA3AF;
    font-weight: 500;
    margin-top: auto;
    padding-top: 12px;
}

.woocommerce div.product p.stock {
    display: none;
}

/* Product Action Badge */
.product-action-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: #DC2626;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 5;
}

/* Product info, title styles are now in pixel-perfect.css for product-card */

/* Sale badge on product image (حراج!) */
.woocommerce ul.products .product-image-wrapper {
    position: relative;
}

.woocommerce ul.products .onsale.sale-badge-image {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #6B9E00; /* Green color as shown in design */
    color: #FFFFFF;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    z-index: 10;
    display: inline-block !important;
    white-space: nowrap;
}

/* Ensure product prices are always visible */
.woocommerce ul.products .product-price {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.woocommerce ul.products .price-wrapper {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.woocommerce ul.products .sale-price {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.woocommerce ul.products .regular-price {
    display: inline !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Product image styling to match front-page */
.woocommerce ul.products .product-image-wrapper {
    position: relative;
}

.woocommerce ul.products .product-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.woocommerce .product .price {
    display: none; /* Hide default price, we use custom price-wrapper */
}

.woocommerce .product .price del {
    color: var(--color-text-light);
    font-weight: var(--font-weight-normal);
    font-size: var(--font-size-sm);
    margin-left: var(--spacing-sm); /* RTL: margin on left */
}

.woocommerce .product .price ins {
    text-decoration: none;
    color: var(--color-accent);
}

/* Single Product */
.product-main {
    padding: var(--spacing-xl) 0;
}

/* ========================================
   Single Product Page Styles
   ======================================== */

.single-product-content {
    width: 100%;
}

/* Breadcrumb */
.product-breadcrumb {
    margin-bottom: 24px;
    padding: 0;
}

.product-breadcrumb .breadcrumb-items {
    font-size: 14px;
    color: #9CA3AF;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.product-breadcrumb .breadcrumb-items a {
    color: #9CA3AF;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-breadcrumb .breadcrumb-items a:hover {
    color: #6555D3;
}

.product-breadcrumb .breadcrumb-separator {
    color: #9CA3AF;
    margin: 0 4px;
}

.product-breadcrumb .breadcrumb-current {
    color: #2E303B;
    font-weight: 500;
}

/* Single Product Wrapper - Three Column Layout */
.single-product-wrapper {
    display: grid;
    grid-template-columns: 25% 55% 20%;
    gap: 15px;
    align-items: start;
    margin-bottom: 15px;
}

.single-collection-wrapper {
    grid-template-columns: 20% 60% 20% !important;
}

/* Reverse order: Gallery first, Details in center, Purchase card last */
.product-gallery-column {
    display: flex;
    flex-direction: column;
    order: 1;
}

.product-display-column {
    order: 2;
    opacity: 1;
    gap: 24px;
}

.product-purchase-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
    order: 3;
    padding-top: 24px;
    padding-right: 20px;
    padding-bottom: 35px;
    padding-left: 20px;
    border-radius: 20px;
    border: 1px solid #DEE1E8;
    max-width: 325px;
}

.product-purchase-column-tabs {
    order: unset;
}

/* Trust/Shipping Information Cards */
.product-trust-cards {
    display: flex;
    flex-direction: column;
    margin-bottom: 8px;
    border-bottom: 1px solid #DEE1E8;
    padding-bottom: 12px;
}

.trust-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
}

.trust-card svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.trust-card span {
    font-size: 14px;
    color: #2E303B;
    font-weight: 500;
    line-height: 1.5;
    white-space: nowrap;
}

/* Price Section */
.product-price-section {
    padding: 8px 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.product-discount-badge {
    position: absolute;
    top: 25%;
    right: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #D42E53;
    color: #FFFFFF;
}

.price-display-wrapper {
    display: flex;
    font-size: 18px;
    font-weight: 700;
    z-index: 2;
    justify-content: flex-end;
    position: relative;
}

.price-display {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.regular-price {
    font-size: 16px;
    color: #9CA3AF;
    text-decoration: line-through;
    line-height: 1.4;
}

.current-price {
    font-size: 24px;
    font-weight: 700;
    color: #2E303B;
    line-height: 1.4;
    display: flex;
    align-items: center;
}

.product-discount-badge {
    width: 42px;
    height: 26px;
    min-width: 50px;
    padding: 8px 16px;
    border-radius: 44px;
    background: #D42E53;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    flex-shrink: 0;
}

.product-availability {
    text-align: center;
    margin-top: 0;
}

.product-availability .availability-text {
    font-size: 14px;
    color: #D42E53;
    font-weight: 500;
}

/* Availability */
.product-availability {
    margin-top: -8px;
}

.availability-text {
    font-size: 14px;
    color: #D42E53;
    font-weight: 500;
}

.woocommerce div.product form.cart .button {
    background: linear-gradient(180deg, #8476E4 0%, #6555D3 100%);
    box-shadow: 0px 8px 24px 0px #6555D366;
    height: 60px;
    opacity: 1;
    gap: 15px;
    padding-top: 20px;
    padding-right: 34px;
    padding-bottom: 20px;
    padding-left: 34px;
    border-radius: 10px;
}

.woocommerce div.product form.cart {
    margin-bottom: 0 !important;
}

/* Add to Cart Section */
.product-add-to-cart {
    width: 100%;
}

.product-add-to-cart-quantity {
    border: 1px solid #DEE1E8;
    opacity: 1;
    gap: 15px;
    border-radius: 10px;
    padding: 20px;
}

.product-add-to-cart .single_add_to_cart_button {
    width: 100%;
    padding: 16px 24px;
    background: #6555D3;
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.product-add-to-cart .single_add_to_cart_button:hover {
    background: #5545C3;
}

/* Disabled state for variable products when no variation is selected */
.product-add-to-cart .single_add_to_cart_button.wc-variation-selection-needed,
.product-add-to-cart .single_add_to_cart_button:disabled {
    background: #DEE1E8;
    color: #9CA3AF;
    cursor: not-allowed;
    opacity: 0.6;
}

.product-add-to-cart .single_add_to_cart_button.wc-variation-selection-needed:hover,
.product-add-to-cart .single_add_to_cart_button:disabled:hover {
    background: #DEE1E8;
    color: #9CA3AF;
    transform: none;
}

/* Right Column - Product Display */
.product-display-column {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.product-display-column .product-display-column-first {
    padding-top: 24px;
    padding-right: 20px;
    padding-bottom: 20px;
    padding-left: 20px;
    border-radius: 20px;
    border: 1px solid #DEE1E8;
}

/* Product Title Section */
.product-title-section {
    margin-bottom: 8px;
    border-bottom: 1px solid #DEE1E8;
    padding-bottom: 8px;
}

.product-title-persian {
    font-size: 28px;
    font-weight: 700;
    color: #2E303B;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.product-title-english {
    font-size: 18px;
    font-weight: 400;
    color: #888FA2;
    margin: 0;
    line-height: 1.4;
}

/* Product Metadata Row (Key Feature on left, Comments and Rating on right) */
.product-metadata-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding-bottom: 18px;
    padding-top: 12px;
    border-bottom: 1px solid #DEE1E8;
    flex-direction: row-reverse;
}

.product-metadata-item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.product-metadata-item-left {
    order: 1;
    margin-right: auto;
}

.product-metadata-items-right {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
    order: 2;
    flex-direction: row-reverse;
}

.product-metadata-item .metadata-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    object-fit: contain;
}

.product-metadata-item .metadata-text {
    font-size: 16px;
    font-weight: 500;
    color: #2E303B;
    line-height: 1.4;
}

/* Legacy styles for backward compatibility */
.product-rating-section {
    margin-bottom: 16px;
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.review-count {
    font-size: 14px;
    color: #888FA2;
}

.rating-value {
    font-size: 14px;
    color: #2E303B;
    display: flex;
    align-items: center;
    gap: 4px;
}

.rating-value svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.product-key-feature {
    margin-bottom: 16px;
}

.feature-tag {
    display: inline-block;
    padding: 8px 16px;
    background: #F3F1FF;
    color: #6555D3;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

/* Product Gallery Section */
.product-gallery-section {
    margin-bottom: 0;
    width: 100%;
    border: 1px solid #DEE1E8;
    opacity: 1;
    gap: 10px;
    padding-top: 24px;
    padding-right: 20px;
    padding-bottom: 18px;
    padding-left: 20px;
    border-radius: 20px;
}

.woocommerce-product-gallery {
    position: relative;
    width: 100%;
}

.woocommerce-product-gallery__wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.woocommerce-product-gallery__image {
    width: 100%;
    position: relative;
}

.woocommerce-product-gallery__image:first-child {
    width: 100%;
}

.woocommerce-product-gallery__image:first-child img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

.woocommerce-product-gallery__image--placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: #F9FAFB;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Product Gallery - WooCommerce Default Structure */
.woocommerce-product-gallery__wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-wrap: wrap;
}

.woocommerce-product-gallery__wrapper::after {
    content: '';
    display: block;
    clear: both;
}

.woocommerce-product-gallery__image {
    width: 100%;
    position: relative;
}

.woocommerce-product-gallery__image:first-child {
    width: 100%;
    margin-bottom: 16px;
}

.woocommerce-product-gallery__image:first-child img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    display: block;
}

.woocommerce-product-gallery__image--placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: #F9FAFB;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Product Gallery Thumbnails - Custom styling for WooCommerce default structure */
.woocommerce-product-gallery__image:not(:first-child) {
    width: 100px;
    height: 100px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s ease;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid #DEE1E8;
    border-radius: 14px;
}

.woocommerce-product-gallery__image:not(:first-child):hover {
    opacity: 1;
}

.woocommerce-product-gallery__image:not(:first-child).flex-active-slide,
.woocommerce-product-gallery__image:not(:first-child).active {
    opacity: 1;
    border: 1px solid #2E303B;
}

.woocommerce-product-gallery__image:not(:first-child) img {
    border-radius: 8px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Thumbnails container */
.woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:not(:first-child) {
    display: inline-block;
}

/* Create thumbnails wrapper if needed */
.woocommerce-product-gallery__wrapper::after {
    content: '';
    display: block;
    clear: both;
}

/* Color Swatches */
.product-color-swatches {
    margin-bottom: 24px;
}

.color-swatches-title {
    font-size: 16px;
    font-weight: 700;
    color: #2E303B;
    margin: 0 0 12px 0;
}

.color-swatches-list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.color-swatch {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    border: 1px solid #DEE1E8;
    background: #FFFFFF;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.color-swatch:hover {
    border-color: #6555D3;
    transform: scale(1.05);
}

.color-swatch.active {
    border-color: #6555D3;
    border-width: 3px;
}

.color-swatch span {
    font-size: 12px;
    color: #2E303B;
    font-weight: 500;
}

/* Short Introduction */
.product-short-intro {
    margin-bottom: 24px;
}

.intro-title {
    font-size: 16px;
    font-weight: 700;
    color: #2E303B;
    margin: 0 0 12px 0;
}

.intro-content {
    font-size: 14px;
    font-weight: 500;
    color: #58595B;
    line-height: 1.6;
}

.intro-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.intro-content li {
    padding: 2px 0;
    position: relative;
    padding-right: 20px;
    color: #888FA2;
}

.intro-content li::before {
    content: '•';
    position: absolute;
    right: 0;
    color: #888FA2;
    font-weight: bold;
}

/* Return Policy Notice */
.product-return-notice {
    display: flex;
    background: #FFFFFF;
    margin-bottom: 24px;
    border: 1px solid #DEE1E8;
    opacity: 1;
    gap: 24px;
    padding-top: 16px;
    padding-right: 20px;
    padding-bottom: 16px;
    padding-left: 20px;
    border-radius: 20px;
}

.product-return-notice svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

.product-return-notice p {
    font-size: 14px;
    font-weight: 500;
    color: #888FA2;
    line-height: 1.5;
    margin: 0;
}

/* Related Products Section */
.related-products-section {
    margin: 0px 0 60px 0;
}

.related-products-section .container {
    width: 100%;
    max-width: 100%;
}

.related-products-section .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.related-products-section .section-title {
    font-size: var(--font-size-section-title);
    font-weight: var(--font-weight-section-title);
    color: var(--color-text);
    margin: 0;
    text-align: right;
}

.related-products-section .section-nav-carousel {
    display: flex;
    gap: 12px;
}

.related-products-section .products-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 4px 4px 24px 4px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.related-products-section .products-carousel::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.related-products-section .products-carousel .product-card {
    flex-shrink: 0;
    min-width: 280px;
    max-width: 280px;
}

/* Product Tabs Section */
.product-tabs-section {
    margin: 60px 0;
}

.product-tabs-wrapper {
    display: grid;
    grid-template-columns: 80% 20%;
    gap: 15px;
    align-items: start;
}

.product-tabs-content-column {
    width: 100%;
    opacity: 1;
}

.product-tabs-content-column .product-tabs-content-column-first {
    border: 1px solid #DEE1E8;
    gap: 24px;
    padding-top: 24px;
    padding-right: 20px;
    padding-bottom: 44px;
    padding-left: 20px;
    border-radius: 20px;
}

.product-tabs-nav {
    display: flex;
    gap: 20px;
    border-bottom: 2px solid #E5E7EB;
    margin-bottom: 32px;
}

.tab-button {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 16px;
    font-weight: 700;
    color: #888FA2;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: -2px;
}

.tab-button:hover {
    color: #2E303B;
}

.tab-button.active {
    color: #2E303B;
    border-bottom-color: #2E303B;
    border-radius: 0;
}

.product-tabs-content {
    min-height: auto;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.tab-panel p {
    font-size: 14px;
    color: #58595B;
    line-height: 1.8;
    margin-bottom: 16px;
}

.product-short-description {
    font-size: 16px;
    color: #58595B;
    line-height: 1.8;
    margin-bottom: 24px;
}

.product-full-description {
    font-size: 14px;
    color: #58595B;
    line-height: 1.8;
}

.product-full-description p {
    margin-bottom: 16px;
}

/* Product Attributes Table */
.product-attributes-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.product-attributes-table th,
.product-attributes-table td {
    padding: 12px 16px;
    text-align: right;
    border-bottom: 1px solid #E5E7EB;
}

.product-attributes-table th {
    font-size: 14px;
    font-weight: 600;
    color: #2E303B;
    width: 30%;
    background: #F9FAFB;
}

.product-attributes-table td {
    font-size: 14px;
    color: #58595B;
}

.product-attributes-table tr:last-child th,
.product-attributes-table tr:last-child td {
    border-bottom: none;
}

/* Custom Reviews Section */
.custom-reviews-section {
    width: 100%;
}

.custom-reviews-section .review-message {
    font-size: 14px;
    color: #2E303B;
    margin: 0 0 0px 0;
    text-align: right;
    line-height: 1.6;
}

.custom-review-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.custom-review-form .comment-form-rating {
    margin-bottom: 0;
}

.custom-review-form .comment-form-rating label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2E303B;
    margin-bottom: 12px;
    text-align: right;
}

.custom-review-form .comment-form-rating .required {
    color: #EF4444;
}

.custom-review-form .comment-form-rating .stars {
    display: flex;
    flex-direction: row-reverse;
    gap: 8px;
    justify-content: flex-end;
}

.custom-review-form .comment-form-rating .stars a {
    font-size: 24px;
    color: #DEE1E8;
    text-decoration: none;
    transition: color 0.2s ease;
    cursor: pointer;
    line-height: 1;
}

.custom-review-form .comment-form-rating .stars a:hover,
.custom-review-form .comment-form-rating .stars a.active {
    color: #FFC107;
}

/* Hide WooCommerce default star rating */
.custom-review-form .comment-form-rating p.stars {
    display: none !important;
}

/* Hide any duplicate rating inputs */
.custom-review-form .comment-form-rating input[type="hidden"][name="rating"][style*="display: none"] {
    display: none !important;
}

.custom-review-form .comment-form-comment {
    margin-bottom: 0;
}

.custom-review-form .comment-form-comment label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2E303B;
    margin-bottom: 12px;
    text-align: right;
}

.custom-review-form .comment-form-comment .required {
    color: #EF4444;
}

.custom-review-form .comment-form-comment textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px 16px;
    border: 1px solid #DEE1E8;
    border-radius: 12px;
    font-size: 14px;
    color: #2E303B;
    font-family: inherit;
    resize: vertical;
    background: #FFFFFF;
    box-sizing: border-box;
}

.custom-review-form .comment-form-comment textarea:focus {
    outline: none;
    border-color: #6555D3;
}

.custom-review-form .comment-form-author,
.custom-review-form .comment-form-email {
    display: none;
}

.custom-review-form .form-submit {
    margin-top: 0;
    text-align: left;
}

.custom-review-form .form-submit .submit {
    background: #E5E7EB;
    color: #2E303B;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.custom-review-form .form-submit .submit:hover {
    background: #D4D4D4;
}

/* Comments Section (product-tabs-content-column-comments) */
.product-tabs-content-column-comments {
    width: 100%;
    background: #FFFFFF;
    margin-top: 45px;
}

.comments-section-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 24px;
    gap: 20px;
}

.comments-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #2E303B;
    margin: 0;
    text-align: right;
}

.submit-comment-btn {
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border: 1px solid #2E303B;
    background: #2E303B;
    height: 42px;
    opacity: 1;
    gap: 15px;
    padding-top: 10px;
    padding-right: 20px;
    padding-bottom: 10px;
    padding-left: 20px;
    border-radius: 10px;
}

.submit-comment-btn:hover {
    background: #1a1c24;
}

.comments-sorting {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 24px;
    margin-left: 20px;
    margin-right: 20px;
    gap: 12px;
}

.comments-sorting .sort-options {
    display: flex;
    gap: 24px;
    flex-direction: row-reverse;
}

.comments-sorting .sort-option {
    background: transparent;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #888FA2;
    cursor: pointer;
    padding: 12px 24px;
    border-radius: 0;
    transition: color 0.2s ease;
    position: relative;
}

.comments-sorting .sort-option:hover {
    color: #2E303B;
}

.comments-sorting .sort-option.active {
    color: #2E303B;
    font-weight: 600;
    border-bottom: 2px solid #2E303B;
}

.comments-sorting .filter-toggle-btn.sort-order-toggle {
    margin-left: 0;
    margin-bottom: 0;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    border: 1px solid #DEE1E8;
    border-radius: 16px;
}

.review-card {
    background: #FFFFFF;
    border: 1px solid #DEE1E8;
    border-radius: 20px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-direction: row;
}

.reviewer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #F3F4F6;
}

.reviewer-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: right;
}

.reviewer-name {
    font-size: 16px;
    font-weight: 600;
    color: #2E303B;
    margin: 0;
}

.review-date {
    font-size: 14px;
    color: #888FA2;
    margin: 0;
}

.review-rating-display {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-direction: row-reverse;
}

.review-rating-display .star-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.rating-text {
    font-size: 14px;
    font-weight: 500;
    color: #2E303B;
}

.review-content {
    margin-top: 0;
}

.review-content p {
    font-size: 14px;
    color: #58595B;
    line-height: 1.8;
    margin: 0;
}

.no-reviews-message {
    text-align: center;
    padding: 40px 20px;
}

.no-reviews-message p {
    font-size: 14px;
    color: #888FA2;
    margin: 0;
}

/* Quantity Selector - Hidden initially */
.product-add-to-cart .quantity {
    display: none !important; /* Hidden initially */
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 16px 0;
    padding: 16px;
    background: #F9FAFB;
    border-radius: 12px;
}

/* Show quantity after adding to cart */
.product-add-to-cart.product-added .quantity {
    display: flex !important;
}

/* Hide default WooCommerce quantity input */
.product-add-to-cart .quantity .qty {
    display: none !important;
}

.product-add-to-cart .quantity label {
    display: none !important;
}

/* Custom quantity display for single product page - use same structure as cart */
.product-add-to-cart .quantity-display-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-direction: row-reverse;
    justify-content: center;
    margin-top: 16px;
}

.product-add-to-cart .quantity-display-wrapper .quantity-display {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    height: 40px;
    padding: 0 16px;
    font-size: 24px;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

.product-add-to-cart .quantity-display-wrapper .quantity-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    background: transparent;
    padding: 0;
}

.product-add-to-cart .quantity-display-wrapper .quantity-btn .quantity-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-add-to-cart .quantity-display-wrapper .quantity-btn:hover {
    opacity: 0.8;
}

.product-add-to-cart .quantity-display-wrapper .quantity-input {
    display: none;
}

.product-quantity-btn.quantity-minus {
    background: #2E303B;
    color: #FFFFFF;
}

.product-quantity-btn.quantity-minus:hover {
    background: #1a1a1a;
}

.product-quantity-btn.quantity-plus {
    background: #10B981;
    color: #FFFFFF;
}

.product-quantity-btn.quantity-plus:hover {
    background: #059669;
}

/* Add to cart success message */
.product-add-to-cart-message {
    display: none;
    text-align: center;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 500;
    color: #2E303B;
    background: #F9FAFB;
    border-radius: 12px;
}

.product-add-to-cart.product-added .product-add-to-cart-message {
    display: block;
}

/* Out of Stock Message */
.product-out-of-stock-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #D42E53;
    background: #FFF5F7;
    border: 1px solid #FECDD3;
    border-radius: 12px;
    text-align: center;
}

.product-out-of-stock-icon {
    font-size: 18px;
    line-height: 1;
}

.product-out-of-stock-text {
    font-weight: 600;
}

/* View cart button */
.product-view-cart-btn {
    display: none;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(180deg, #8476E4 0%, #6555D3 100%);
    box-shadow: 0px 8px 24px 0px #6555D366;
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 16px;
    text-align: center;
    text-decoration: none;
}

.product-add-to-cart.product-added .product-view-cart-btn {
    display: block;
}

.product-view-cart-btn:hover {
    background: linear-gradient(180deg, #6555D3 0%, #5545C3 100%);
    transform: translateY(-2px);
    box-shadow: 0px 12px 32px 0px #6555D366;
    color: #ffffff;
}

/* Hide add to cart button and form after adding */
.product-add-to-cart.product-added form.cart {
    display: none;
}

/* Variation Selector */
.product-add-to-cart .variations {
    margin-bottom: 16px;
}

.product-add-to-cart .variations td {
    padding: 8px 0;
}

.product-add-to-cart .variations label {
    font-size: 14px;
    font-weight: 500;
    color: #2E303B;
    margin-bottom: 8px;
    display: block;
}

.product-add-to-cart .variations select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #DEE1E8;
    border-radius: 8px;
    font-size: 14px;
    color: #2E303B;
    background: #FFFFFF;
}

/* Reset Button */
.product-add-to-cart .reset_variations {
    display: none;
}

.product-images {
    flex: 1;
}

.product-summary {
    flex: 1;
    text-align: right; /* RTL */
}

.product_title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    margin-bottom: var(--spacing-lg);
}

.woocommerce-product-details__short-description {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
    line-height: var(--line-height-relaxed);
}

.woocommerce-variation-price {
    margin-bottom: var(--spacing-md);
}

.woocommerce .quantity {
    margin-bottom: var(--spacing-lg);
}

.woocommerce .quantity .qty {
    width: 80px;
    padding: var(--spacing-sm);
    text-align: center;
    direction: ltr; /* Numbers stay LTR */
}

.single_add_to_cart_button {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-lg);
}

/* ========================================
   Cart Page
   ======================================== */

/* Checkout Progress Indicator */
.checkout-progress {
    padding: 0 0 24px 0;
    background: transparent;
    margin-right: var(--container-padding-x);
    margin-left: var(--container-padding-x);
}

.checkout-progress-card {
    background: #FFFFFF;
    border: 1px solid #DEE1E8;
    border-radius: 20px;
    padding: 24px 20px;
    height: 115px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: max-content;
}

.checkout-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    width: 100%;
}

.checkout-step-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
    max-width: 200px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.checkout-step-link:hover {
    opacity: 0.8;
}

.checkout-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
    max-width: 200px;
    cursor: default;
}

.checkout-step .step-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkout-step .step-icon img {
    width: 44px;
    height: 44px;
    display: block;
}

.checkout-step.active .step-icon {
    color: #6555D3;
}

.checkout-step.active .step-icon svg {
    color: #6555D3;
}

.checkout-step.active .step-icon svg path {
    stroke: #6555D3 !important;
    fill: #6555D3 !important;
}

.checkout-step.active .step-icon svg path[fill="white"],
.checkout-step.active .step-icon svg path[fill="#DEE1E8"] {
    /*fill: inherit !important;*/
}

.checkout-step:not(.active) .step-icon {
    /*color: #DEE1E8;*/
}

.checkout-step:not(.active) .step-icon svg {
    /*color: #DEE1E8;*/
}

.checkout-step:not(.active) .step-icon svg path {
    /*stroke: #DEE1E8 !important;*/
    /*fill: #DEE1E8 !important;*/
}

.checkout-step:not(.active) .step-icon svg path[fill="white"],
.checkout-step:not(.active) .step-icon svg path[fill="#DEE1E8"] {
    /*fill: inherit !important;*/
}

.checkout-step .step-icon svg {
    width: 44px;
    height: 44px;
}


.checkout-step .step-text {
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    line-height: 1.4;
}

.checkout-step.active .step-text {
    color: #2E303B;
}

.checkout-step:not(.active) .step-text {
    /*color: #DEE1E8;*/
}

/* Cart Page Wrapper */
.cart-page-wrapper {
    padding: 32px 0;
    display: flex;
    flex-direction: column;
    margin-right: var(--container-padding-x);
    margin-left: var(--container-padding-x);
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 24px;
    align-items: start;
}

/* Cart Contents Column (Right) */
.cart-contents-column {
    flex: 1;
}

.cart-contents-title {
    font-size: 18px;
    font-weight: 600;
    color: #2E303B;
    margin-bottom: 20px;
    text-align: right;
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Cart Item Card */
.cart-item-card {
    background: #FFFFFF;
    border: 1px solid #DEE1E8;
    border-radius: 20px;
    padding: 24px 20px;
    display: flex;
    align-items: stretch;
    gap: 24px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cart-item-thumbnail {
    flex-shrink: 0;
    width: 100px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    order: 1;
}

.cart-item-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
}

/* Collection cart thumbnail grid (4 images) */
.collection-cart-thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1px;
    width: 100px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    background: #DEE1E8;
}

.collection-cart-thumbnail-grid img,
.collection-cart-thumbnail-grid div {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #F9FAFB;
}

.collection-cart-thumbnail-grid img:nth-child(2),
.collection-cart-thumbnail-grid img:nth-child(4),
.collection-cart-thumbnail-grid div:nth-child(2),
.collection-cart-thumbnail-grid div:nth-child(4) {
    border-right: 1px solid #DEE1E8;
}

.collection-cart-thumbnail-grid img:nth-child(3),
.collection-cart-thumbnail-grid img:nth-child(4),
.collection-cart-thumbnail-grid div:nth-child(3),
.collection-cart-thumbnail-grid div:nth-child(4) {
    border-top: 1px solid #DEE1E8;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    order: 2;
    justify-content: space-between;
    min-height: 100%;
}

.cart-item-remove {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    order: 3;
}

.cart-item-remove .delete-icon {
    width: 22px;
    height: 22px;
    display: block;
    object-fit: contain;
}

.cart-item-remove:hover {
    scale: 1.2;
}

.cart-item-remove:hover .delete-icon {

}

.woocommerce-Price-amount.amount {
    font-size: 20px;
    font-weight: 700;
}

.cart-item-name {
    font-size: 16px;
    font-weight: 500;
    color: #2E303B;
    margin: 0;
    line-height: 1.5;
}

.cart-item-name-link {
    text-decoration: none;
    color: inherit;
}

.cart-item-name-link:hover .cart-item-name {
    color: #6555D3;
}

.cart-item-info-row {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-direction: row;
    margin-top: auto;
}

.cart-item-price-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.cart-item-price-item .price-label {
    font-size: 14px;
    color: #6B7280;
    text-align: right;
}

.cart-item-price-item .price-value {
    font-size: 14px;
    font-weight: 600;
    color: #2E303B;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-direction: row-reverse;
}

.cart-item-price-item .price-value .woocommerce-Price-currencySymbol {
    display: none;
}

.cart-item-price-item .price-value .currency-symbol {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    object-fit: contain;
    display: none !important;
}

.cart-item-quantity-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
}

.cart-item-quantity-wrapper .quantity-label {
    font-size: 14px;
    color: #6B7280;
    text-align: right;
    width: 100%;
}

.quantity-display-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-direction: row-reverse;
    justify-content: center;
    margin-right: 10px;
}

.quantity-display {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    height: 40px;
    padding: 0 16px;
    font-size: 24px;
    font-weight: 700;
    font-style: normal;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: right;
    white-space: nowrap;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}


.quantity-btn .quantity-icon {
    width: 24px;
    height: 24px;
    display: block;
    object-fit: contain;
}

.quantity-btn:hover {
    scale: 1.2;
}

.quantity-btn:hover .quantity-icon {
}

.quantity-input {
    display: none;
}

/* Cart Summary Column (Left) */
.cart-summary-column {
    position: sticky;
    top: 20px;
}

.cart-collaterals {
    margin: 0;
}

.cart_totals {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 24px 20px 44px 20px;
    border: 1px solid #DEE1E8;
    width: 100% !important;
    max-width: 360px !important;
    float: unset !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.cart_totals h2 {
    font-size: 18px;
    font-weight: 700;
    color: #2E303B;
    margin-bottom: 20px;
    text-align: right;
    padding: 0;
}

.cart-totals-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cart-totals-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 14px;
}

.cart-totals-row .totals-label {
    font-weight: 500;
    font-size: 16px;
    color: #2E303B;
    text-align: right;
}

.cart-totals-row .totals-value {
    font-weight: 600;
    color: #2E303B;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 4px;
}

.cart-totals-row .totals-value .currency-symbol {
    width: 24px;
    height: 20px;
    flex-shrink: 0;
    display: none !important;
}

.cart-totals-divider {
    height: 1px;
    background: #DEE1E8;
    margin: 0;
    width: 100%;
}

/* Shipping row */
.cart-totals-row.shipping-row {
    border-bottom: none;
}

/* Tax row */
.cart-totals-row.tax-row {
    border-bottom: none;
}

/* Discount row - add divider after */
.cart-totals-row.discount-row {
    border-bottom: none;
}

/* Cart subtotal row - add divider after */
.cart-totals-row.cart-subtotal-row {
    border-bottom: none;
}

/* Order total row */
.cart-totals-row.order-total-row {
    font-size: 16px;
    font-weight: 600;
    padding-top: 16px;
    padding-bottom: 0;
}

.cart-totals-row .totals-label {
    font-size: 16px;
    font-weight: 500;
}

.cart-totals-row .totals-value {
    font-size: 24px;
    font-weight: 700;
}

.woocommerce-Price-currencySymbol {
    display: unset !important;
    font-size: 10px !important;
    margin-right: 2px !important;
}


/* Hide default WooCommerce table if it exists */
.woocommerce .cart_totals table {
    display: none;
}

.cart_totals .wc-proceed-to-checkout {
    margin: 0;
    margin-top: 20px;
    padding: 0;
    border-top: 1px solid #DEE1E8;
    width: 100%;
    display: block;
}

.cart_totals .wc-proceed-to-checkout .checkout-button,
.cart_totals .wc-proceed-to-checkout .button,
.cart_totals .wc-proceed-to-checkout a.button {
    width: 100%;
    height: 60px;
    padding: 20px 34px;
    margin: 0;
    background: linear-gradient(180deg, #8476E4 0%, #6555D3 100%);
    color: #FFFFFF !important;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 8px 24px 0px #6555D366;
    transition: transform 0.2s ease;
    cursor: pointer;
    box-sizing: border-box;
}

.cart_totals .wc-proceed-to-checkout .checkout-button:hover,
.cart_totals .wc-proceed-to-checkout .button:hover,
.cart_totals .wc-proceed-to-checkout a.button:hover {
    transform: translateY(-2px);
    color: #FFFFFF !important;
    text-decoration: none;
    background: linear-gradient(180deg, #8476E4 0%, #6555D3 100%);
}

/* Suggested Products Section - Use front page styles */
.cart-suggested-products {
    margin-top: 35px;
}

/* Section title - show full version on desktop */
.section-title-full {
    display: inline;
}

.section-title-mobile {
    display: none;
}

.cart-suggested-products .products-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: var(--spacing-md);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.cart-suggested-products .products-carousel::-webkit-scrollbar {
    display: none;
}

.cart-suggested-products .products-carousel .product-card {
    min-width: 280px;
    flex-shrink: 0;
    scroll-snap-align: start;
}

/* ========================================
   Checkout Page Styles
   ======================================== */

/* Checkout Wrapper */
.checkout-page-wrapper {
    margin-right: var(--container-padding-x);
    margin-left: var(--container-padding-x);
    padding: 0;
}

/* Checkout Section Title */
.checkout-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #2E303B;
    margin-bottom: 20px;
    text-align: right;
}

/* Address Selection Section */
.checkout-address-selection {
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
}

.checkout-address-cards {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-direction: row;
    flex-wrap: wrap;
}

.checkout-address-card {
    background: #FFFFFF;
    border: 1px solid #DEE1E8;
    border-radius: 20px;
    padding: 20px;
    min-width: 400px;
    max-width: 400px;
    flex: 0 0 400px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.checkout-address-card:hover {
    border-color: #6555D3;
}

.checkout-address-card.selected {
    background: #6555D3;
    border-color: #6555D3;
    color: #FFFFFF;
}

.checkout-address-card.selected .address-card-label,
.checkout-address-card.selected .address-card-name,
.checkout-address-card.selected .address-card-text {
    color: #FFFFFF;
}

.address-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.address-card-label {
    font-size: 14px;
    font-weight: 500;
    color: #2E303B;
}

.checkout-address-card.selected .address-card-label {
    color: #FFFFFF;
}

.address-edit-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: none;
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
}

.checkout-address-card:not(.selected) .address-edit-btn {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.checkout-address-card .address-edit-btn {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.no-addresses-message,
.no-shipping-methods-message,
.no-payment-methods-message {
    text-align: center;
    color: #6B7280;
    font-size: 14px;
    padding: 20px;
    background: #F8F9FA;
    border-radius: 12px;
    margin: 20px 0;
}

.address-edit-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.address-edit-btn:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.address-card-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.address-card-name {
    font-size: 16px;
    font-weight: 600;
    color: #2E303B;
    margin: 0;
}

.checkout-address-card.selected .address-card-name {
    color: #FFFFFF;
}

.address-card-text {
    font-size: 14px;
    color: #6B7280;
    line-height: 1.6;
    margin: 0;
}

.checkout-address-card.selected .address-card-text {
    color: #FFFFFF;
    opacity: 0.9;
}

.add-new-address-btn {
    padding: 12px 24px;
    background: #FFFFFF;
    border: 1px solid #DEE1E8;
    border-radius: 12px;
    color: #6555D3;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: auto;
    align-self: flex-start;
}

/* Shipping Method Selection Section */
/* Initial Loader for Checkout (shown on first page load) */
.checkout-initial-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    margin: 20px 0;
    background: #F3F1FF;
    border-radius: 12px;
    border: 1px solid #6555D3;
    min-height: 100px;
}

/* Shipping Method Loader and Success Message */
.shipping-method-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    margin-bottom: 16px;
    background: #F3F1FF;
    border-radius: 12px;
    border: 1px solid #6555D3;
}

.loader-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #E0E0E0;
    border-top-color: #6555D3;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loader-text {
    font-size: 14px;
    font-weight: 500;
    color: #6555D3;
}

.shipping-method-success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    background: #E8F5E9;
    border-radius: 12px;
    border: 1px solid #4CAF50;
}

.success-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #4CAF50;
    color: #FFFFFF;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
}

.success-text {
    font-size: 14px;
    font-weight: 500;
    color: #2E7D32;
}

.checkout-next-step-btn.disabled,
.checkout-next-step-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.checkout-next-step-btn.disabled:hover,
.checkout-next-step-btn:disabled:hover {
    transform: none;
    background: linear-gradient(180deg, #8476E4 0%, #6555D3 100%);
}

.checkout-shipping-selection {
    margin-bottom: 32px;
}

.checkout-shipping-selection .checkout-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #2E303B;
    margin: 0 0 16px 0;
    text-align: right;
}

.checkout-shipping-container {
    display: flex;
    flex-direction: column;
    padding: 0;
    background: #FFFFFF;
    border: 1px solid #DEE1E8;
    border-radius: 20px;
    overflow: hidden;
    padding-top: 24px;
    padding-right: 20px;
    padding-bottom: 24px;
    padding-left: 20px;
    gap: 12px;
    opacity: 1;
}

.checkout-shipping-card {
    background: #FFFFFF;
    border: none;
    border-radius: 12px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: block;
    margin: 0;
}

.checkout-shipping-card:hover {
    background: rgba(101, 85, 211, 0.05);
}

.checkout-shipping-card.selected {
    background: #F3F1FF;
}

.checkout-shipping-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.shipping-method-separator {
    height: 1px;
    background: #DEE1E8;
    margin: 0;
    width: 100%;
}

.shipping-card-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    flex-direction: row;
}

.shipping-card-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.shipping-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #2E303B;
    margin: 0;
    line-height: 1.5;
}

.checkout-shipping-card.selected .shipping-card-title {
    color: #6555D3;
}

.shipping-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-direction: row-reverse;
}

.shipping-card-description {
    font-size: 14px;
    color: #6B7280;
    margin: 0;
    line-height: 1.5;
}

.shipping-card-price-badge {
    display: inline-block;
    background: #6555D3;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.shipping-card-radio {
    width: 24px;
    height: 24px;
    border: 2px solid #DEE1E8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    background: transparent;
}

.checkout-shipping-card.selected .shipping-card-radio {
    border-color: #6555D3;
    background: #6555D3;
}

.radio-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: transparent;
    transition: all 0.2s ease;
}

.checkout-shipping-card.selected .radio-indicator {
    background: #FFFFFF;
}

/* Payment Gateway Selection Section */
.checkout-payment-wrapper {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 24px;
    align-items: start;
    margin-right: var(--container-padding-x);
    margin-left: var(--container-padding-x);
}

.checkout-payment-main {
    display: flex;
    flex-direction: column;
}

.checkout-payment-selection {
    margin-bottom: 32px;
}

.checkout-payment-sidebar {
    position: sticky;
    top: 24px;
    height: fit-content;
}

.checkout-payment-selection .checkout-section-title {
    font-size: 24px;
    font-weight: 700;
    color: #2E303B;
    margin: 0 0 16px 0;
    text-align: right;
}

.checkout-payment-cards {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    flex-direction: row;
}

.checkout-payment-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 20px;
    min-width: 300px;
    width: 300px;
    max-width: 300px;
    flex: 1 1 auto;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    border: 1px solid #DEE1E8;
}

.checkout-payment-card:hover {
    background: rgba(255, 193, 7, 0.1);
}

.checkout-payment-card.selected {
    background: #FFC20A;
    border: none;
}

.payment-card-icon {
    width: 95px;
    height: 95px;
    display: flex;
    align-items: center;
    justify-content: center;
    /*background: #E5E7EB;*/
    border-radius: 8px;
}

.checkout-payment-card.selected .payment-card-icon {
    /*background: rgba(255, 255, 255, 0.3);*/
}

.payment-icon {
    width: 100%;
    height: 100% !important;
    object-fit: none;
    opacity: 0.6;
}

.checkout-payment-card.selected .payment-icon {
    filter: none;
    opacity: 1;
}

.payment-card-label {
    font-size: 20px;
    font-weight: 700;
    color: #2E303B;
    line-height: 1.4;
}

.checkout-payment-card.selected .payment-card-label {
    color: #8C6D11;
}

.checkout-payment-total-parent {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-content: center;
    justify-content: center;
    gap: 12px;
}

.checkout-payment-shipping-method {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 8px;
    width: 100%;
    max-width: 100%;
}

.payment-shipping-label {
    font-size: 14px;
    font-weight: 500;
    color: #6B7280;
}

.payment-shipping-method {
    font-size: 14px;
    font-weight: 600;
    color: #2E303B;
}

.payment-shipping-cost {
    font-size: 14px;
    font-weight: 600;
    color: #6555D3;
    margin-right: auto;
}

.checkout-payment-total {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 0 4px;
}

.payment-total-label {
    font-size: 16px;
    font-weight: 600;
    color: #2E303B;
}

.payment-total-separator {
    font-size: 16px;
    color: #2E303B;
}

.payment-total-amount {
    font-size: 20px;
    font-weight: 700;
    color: #2E303B;
}

.checkout-payment-btn {
    padding: 16px 32px;
    background: linear-gradient(180deg, #8476E4 0%, #6555D3 100%);
    border: none;
    border-radius: 12px;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0px 8px 24px 0px #6555D366;
    display: block;
    width: 100%;
    margin: 0;
}

.checkout-payment-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(101, 85, 211, 0.3);
}

.checkout-payment-btn:active {
    transform: translateY(0);
}

/* Disabled state for payment buttons */
.checkout-payment-btn:disabled,
.checkout-payment-btn.disabled,
.checkout-wallet-payment-btn:disabled,
.checkout-wallet-payment-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
}

.checkout-payment-btn:disabled:hover,
.checkout-payment-btn.disabled:hover,
.checkout-wallet-payment-btn:disabled:hover,
.checkout-wallet-payment-btn.disabled:hover {
    opacity: 0.5;
    transform: none;
    box-shadow: 0px 8px 24px 0px #6555D366;
}

/* Wallet Payment Button */
.checkout-wallet-payment-btn {
    margin-top: 12px;
    background: linear-gradient(180deg, #4CAF50 0%, #45A049 100%);
    box-shadow: 0px 8px 24px 0px #4CAF5066;
}

.checkout-wallet-payment-btn:hover {
    background: linear-gradient(180deg, #45A049 0%, #3D8B40 100%);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.checkout-wallet-payment-btn:disabled:hover {
    background: linear-gradient(180deg, #4CAF50 0%, #45A049 100%);
    box-shadow: 0px 8px 24px 0px #4CAF5066;
}

.checkout-wallet-payment-btn .wallet-balance {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
    margin-right: 8px;
}

/* Checkout Progress - Completed Step */
.checkout-step.completed .step-icon {
    color: #6555D3;
}

.checkout-step.completed .step-icon svg {
    color: #6555D3;
}

.checkout-step.completed .step-icon svg path {
    stroke: #6555D3 !important;
}

.checkout-step.completed .step-text {
    color: #2E303B;
}

/* Next Step Button */
.checkout-actions {
    margin-top: 32px;
    display: flex;
    justify-content: flex-end;
}

.checkout-next-step-btn,
#place_order {
    padding: 16px 32px;
    background: #6555D3;
    border: none;
    border-radius: 12px;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background: linear-gradient(180deg, #8476E4 0%, #6555D3 100%);
}

.checkout-next-step-btn:hover,
#place_order:hover {
    background: #5545C3;
    transform: translateY(-2px);
    color: #ffffff;
}

.checkout-next-step-btn:active,
#place_order:active {
    transform: translateY(0);
}

/* Hide WooCommerce checkout form fields (keep functionality) - only target checkout form, not modal */
form.checkout.woocommerce-checkout #customer_details .form-row,
form.checkout.woocommerce-checkout #customer_details .woocommerce-form-row,
form.checkout.woocommerce-checkout #customer_details .woocommerce-billing-fields,
form.checkout.woocommerce-checkout #customer_details .woocommerce-shipping-fields,
form.checkout.woocommerce-checkout #customer_details .woocommerce-additional-fields,
form.checkout.woocommerce-checkout #customer_details .woocommerce-billing-fields__field-wrapper,
form.checkout.woocommerce-checkout #customer_details .woocommerce-shipping-fields__field-wrapper {
    display: none !important;
}

#customer_details .form-row {
    display: none !important;
}

/* Keep form fields functional but visually hidden - only target checkout form, not modal */
form.checkout.woocommerce-checkout #customer_details .col2-set input[type="text"],
form.checkout.woocommerce-checkout #customer_details .col2-set input[type="email"],
form.checkout.woocommerce-checkout #customer_details .col2-set input[type="tel"],
form.checkout.woocommerce-checkout #customer_details .col2-set input[type="number"],
form.checkout.woocommerce-checkout #customer_details .col2-set input[type="password"],
form.checkout.woocommerce-checkout #customer_details .col2-set input[type="checkbox"],
form.checkout.woocommerce-checkout #customer_details .col2-set input[type="radio"],
form.checkout.woocommerce-checkout #customer_details .col2-set select,
form.checkout.woocommerce-checkout #customer_details .col2-set textarea,
form.checkout.woocommerce-checkout #customer_details .col2-set label:not(.checkout-shipping-card) {
    display: none !important;
}

/* Ensure modal form fields are visible - override any hidden styles with higher specificity */
#checkout-address-modal .form-row,
#checkout-address-modal .woocommerce-form-row,
#checkout-address-modal .woocommerce-billing-fields,
#checkout-address-modal .woocommerce-shipping-fields,
#checkout-address-modal .woocommerce-billing-fields__field-wrapper,
#checkout-address-modal .woocommerce-shipping-fields__field-wrapper,
.checkout-address-modal .form-row,
.checkout-address-modal .woocommerce-form-row,
.checkout-address-modal .woocommerce-billing-fields,
.checkout-address-modal .woocommerce-shipping-fields,
.checkout-address-modal .woocommerce-billing-fields__field-wrapper,
.checkout-address-modal .woocommerce-shipping-fields__field-wrapper,
.checkout-address-form .form-row,
.checkout-address-form .woocommerce-form-row,
.checkout-address-form .woocommerce-billing-fields,
.checkout-address-form .woocommerce-shipping-fields,
.checkout-address-form .woocommerce-billing-fields__field-wrapper,
.checkout-address-form .woocommerce-shipping-fields__field-wrapper {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure modal form inputs and labels are visible - use ID selector for higher specificity */
#checkout-address-modal input[type="text"],
#checkout-address-modal input[type="email"],
#checkout-address-modal input[type="tel"],
#checkout-address-modal input[type="number"],
#checkout-address-modal input[type="password"],
#checkout-address-modal input[type="checkbox"],
#checkout-address-modal input[type="radio"],
#checkout-address-modal select,
#checkout-address-modal textarea,
#checkout-address-modal label,
.checkout-address-modal input[type="text"],
.checkout-address-modal input[type="email"],
.checkout-address-modal input[type="tel"],
.checkout-address-modal input[type="number"],
.checkout-address-modal input[type="password"],
.checkout-address-modal input[type="checkbox"],
.checkout-address-modal input[type="radio"],
.checkout-address-modal select,
.checkout-address-modal textarea,
.checkout-address-modal label,
.address-form-fields input[type="text"],
.address-form-fields input[type="email"],
.address-form-fields input[type="tel"],
.address-form-fields input[type="number"],
.address-form-fields input[type="password"],
.address-form-fields input[type="checkbox"],
.address-form-fields input[type="radio"],
.address-form-fields select,
.address-form-fields textarea,
.address-form-fields label {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
    pointer-events: auto !important;
}

/* Override any hiding inside modal - target all inputs/labels/selects/textarea in modal with higher specificity */
#checkout-address-modal input[type="text"],
#checkout-address-modal input[type="email"],
#checkout-address-modal input[type="tel"],
#checkout-address-modal input[type="number"],
#checkout-address-modal input[type="password"],
#checkout-address-modal input[type="checkbox"],
#checkout-address-modal input[type="radio"],
#checkout-address-modal select,
#checkout-address-modal textarea,
#checkout-address-modal label,
#checkout-address-modal .col2-set input[type="text"],
#checkout-address-modal .col2-set input[type="email"],
#checkout-address-modal .col2-set input[type="tel"],
#checkout-address-modal .col2-set input[type="number"],
#checkout-address-modal .col2-set input[type="password"],
#checkout-address-modal .col2-set input[type="checkbox"],
#checkout-address-modal .col2-set input[type="radio"],
#checkout-address-modal .col2-set select,
#checkout-address-modal .col2-set textarea,
#checkout-address-modal .col2-set label,
.checkout-address-modal input[type="text"],
.checkout-address-modal input[type="email"],
.checkout-address-modal input[type="tel"],
.checkout-address-modal input[type="number"],
.checkout-address-modal input[type="password"],
.checkout-address-modal input[type="checkbox"],
.checkout-address-modal input[type="radio"],
.checkout-address-modal select,
.checkout-address-modal textarea,
.checkout-address-modal label,
.checkout-address-modal .col2-set input[type="text"],
.checkout-address-modal .col2-set input[type="email"],
.checkout-address-modal .col2-set input[type="tel"],
.checkout-address-modal .col2-set input[type="number"],
.checkout-address-modal .col2-set input[type="password"],
.checkout-address-modal .col2-set input[type="checkbox"],
.checkout-address-modal .col2-set input[type="radio"],
.checkout-address-modal .col2-set select,
.checkout-address-modal .col2-set textarea,
.checkout-address-modal .col2-set label,
.address-form-fields input[type="text"],
.address-form-fields input[type="email"],
.address-form-fields input[type="tel"],
.address-form-fields input[type="number"],
.address-form-fields input[type="password"],
.address-form-fields input[type="checkbox"],
.address-form-fields input[type="radio"],
.address-form-fields select,
.address-form-fields textarea,
.address-form-fields label,
.address-form-fields .col2-set input[type="text"],
.address-form-fields .col2-set input[type="email"],
.address-form-fields .col2-set input[type="tel"],
.address-form-fields .col2-set input[type="number"],
.address-form-fields .col2-set input[type="password"],
.address-form-fields .col2-set input[type="checkbox"],
.address-form-fields .col2-set input[type="radio"],
.address-form-fields .col2-set select,
.address-form-fields .col2-set textarea,
.address-form-fields .col2-set label {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
    pointer-events: auto !important;
}

/* Checkout layout - stack billing and shipping vertically */
#customer_details.col2-set {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.checkout-billing-section,
.checkout-shipping-section {
    width: 100%;
}

.woocommerce .col2-set, .woocommerce-page .col2-set {
    width: unset !important;
}

#order_review {
    display: none !important;
}

#customer_details {
    margin-right: var(--container-padding-x);
    margin-left: var(--container-padding-x);
}

#order_review {
    margin-right: var(--container-padding-x);
    margin-left: var(--container-padding-x);
}

.woocommerce-form-coupon-toggle {
    margin-right: var(--container-padding-x);
    margin-left: var(--container-padding-x);
}

.woocommerce-error {
    margin-right: var(--container-padding-x) !important;
    margin-left: var(--container-padding-x) !important;
}

.checkout-actions {
    margin-right: var(--container-padding-x);
    margin-left: var(--container-padding-x);
}

#woocommerce-checkout-form-coupon {
    margin-right: var(--container-padding-x);
    margin-left: var(--container-padding-x);
}

[name='apply_coupon'] {
    padding: 16px 32px;
    background: #6555D3;
    border: none;
    border-radius: 12px;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background: linear-gradient(180deg, #8476E4 0%, #6555D3 100%);
    box-shadow: 0px 8px 24px 0px #6555D366;
}

/* Address Modal Styles */
.checkout-address-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.checkout-address-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: #FFFFFF;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #DEE1E8;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #2E303B;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6B7280;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #2E303B;
}

.modal-body {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
}

.address-form-fields .woocommerce-address-fields__field-wrapper {
    display: flex !important;
    flex-direction: column;
    gap: 20px;
}

.address-form-fields .form-row {
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100%;
}

.address-form-fields .form-row:last-child {
    margin-bottom: 0;
}

/* Ensure all form-row variations are columnar */
.address-form-fields .form-row-wide,
.address-form-fields .form-row-first,
.address-form-fields .form-row-last,
.address-form-fields .form-row-one-half,
.address-form-fields .form-row-one-third,
.address-form-fields .form-row-two-thirds {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    margin: 0 0 20px 0 !important;
}

/* Ensure all form fields inside modal are visible - highest specificity */
#checkout-address-modal #address-form-fields input[type="text"],
#checkout-address-modal #address-form-fields input[type="email"],
#checkout-address-modal #address-form-fields input[type="tel"],
#checkout-address-modal #address-form-fields input[type="number"],
#checkout-address-modal #address-form-fields input[type="password"],
#checkout-address-modal #address-form-fields input[type="checkbox"],
#checkout-address-modal #address-form-fields input[type="radio"],
#checkout-address-modal #address-form-fields select,
#checkout-address-modal #address-form-fields textarea,
#checkout-address-modal #address-form-fields label,
#checkout-address-modal #address-form-fields .form-row,
#checkout-address-modal #address-form-fields .woocommerce-form-row,
#checkout-address-modal #address-form-fields .woocommerce-address-fields__field-wrapper {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    pointer-events: auto !important;
}

#checkout-address-modal #address-form-fields input[type="text"],
#checkout-address-modal #address-form-fields input[type="email"],
#checkout-address-modal #address-form-fields input[type="tel"],
#checkout-address-modal #address-form-fields input[type="number"],
#checkout-address-modal #address-form-fields input[type="password"],
#checkout-address-modal #address-form-fields select,
#checkout-address-modal #address-form-fields textarea {
    display: block !important;
}

.address-form-fields .form-row label {
    font-size: 14px;
    font-weight: 600;
    color: #2E303B;
    margin: 0 0 8px 0;
    display: block;
    position: static !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    text-align: right;
}

.address-form-fields .form-row label.required_field {
    font-size: 14px;
    font-weight: 600;
    color: #2E303B;
    margin: 0 0 8px 0;
    display: block;
    text-align: right;
}

.address-form-fields .form-row label .required {
    color: #EF4444;
    margin-right: 2px;
}

.address-form-fields .form-row .woocommerce-input-wrapper {
    display: block;
    width: 100%;
    position: relative;
}

.address-form-fields .form-row input[type="text"],
.address-form-fields .form-row input[type="email"],
.address-form-fields .form-row input[type="tel"],
.address-form-fields .form-row input[type="number"],
.address-form-fields .form-row input[type="password"],
.address-form-fields .form-row input[type="text"].input-text,
.address-form-fields .form-row .woocommerce-input-wrapper input[type="text"],
.address-form-fields .form-row .woocommerce-input-wrapper input[type="email"],
.address-form-fields .form-row .woocommerce-input-wrapper input[type="tel"],
.address-form-fields .form-row .woocommerce-input-wrapper input[type="number"],
.address-form-fields .form-row .woocommerce-input-wrapper input[type="password"],
.address-form-fields .form-row textarea {
    width: 100% !important;
    height: 60px;
    padding: 18px 20px;
    border: 1px solid #DEE1E8;
    border-radius: 10px;
    font-size: 14px;
    color: #2E303B;
    background: #FFFFFF;
    text-align: right;
    transition: border-color 0.2s ease;
    position: static !important;
    left: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    display: block !important;
    box-sizing: border-box;
}

.woocommerce-input-wrapper input {
    width: 100% !important;
}

.address-form-fields .form-row select {
    width: 100% !important;
    height: 60px;
    padding: 18px 40px 18px 20px;
    border: 1px solid #DEE1E8;
    border-radius: 10px;
    font-size: 14px;
    color: #2E303B;
    background: #FFFFFF;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%232E303B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    text-align: right;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    position: static !important;
    left: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    display: block !important;
    box-sizing: border-box;
}

.address-form-fields .form-row input[type="text"]:focus,
.address-form-fields .form-row input[type="email"]:focus,
.address-form-fields .form-row input[type="tel"]:focus,
.address-form-fields .form-row input[type="number"]:focus,
.address-form-fields .form-row input[type="password"]:focus,
.address-form-fields .form-row input[type="text"].input-text:focus,
.address-form-fields .form-row .woocommerce-input-wrapper input[type="text"]:focus,
.address-form-fields .form-row .woocommerce-input-wrapper input[type="email"]:focus,
.address-form-fields .form-row .woocommerce-input-wrapper input[type="tel"]:focus,
.address-form-fields .form-row .woocommerce-input-wrapper input[type="number"]:focus,
.address-form-fields .form-row .woocommerce-input-wrapper input[type="password"]:focus,
.address-form-fields .form-row select:focus,
.address-form-fields .form-row textarea:focus {
    outline: none;
    border-color: #6555D3;
}

.address-form-fields .form-row select:hover {
    border-color: #6555D3;
}

.address-form-fields .form-row select option {
    padding: 12px 16px;
    color: #2E303B;
    background: #FFFFFF;
}

.address-form-fields .form-row select:disabled {
    background-color: #F8F9FA;
    color: #9CA3AF;
    cursor: not-allowed;
    opacity: 0.6;
}

.address-form-fields .form-row textarea {
    min-height: 100px;
    height: auto;
    padding: 18px 20px;
    border-radius: 10px;
    resize: vertical;
    font-family: inherit;
}

/* Hide country field in address modal */
.address-form-fields #billing_country_field,
.address-form-fields #shipping_country_field,
.address-form-fields .form-row[id$="_country_field"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Ensure form fields only appear inside the modal */
#checkout-address-modal .address-form-fields {
    display: block !important;
    visibility: visible !important;
}

/* Hide any form fields that might appear outside the modal */
body:not(.modal-open) .address-form-fields .form-row,
body:not(.modal-open) .address-form-fields .woocommerce-address-fields__field-wrapper {
    display: none !important;
}

/* Ensure modal form fields are visible when modal is active */
.checkout-address-modal.active .address-form-fields {
    display: block !important;
    visibility: visible !important;
}

.checkout-address-modal.active .address-form-fields .form-row {
    display: flex !important;
    visibility: visible !important;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding: 10px 20px;
    border-top: 1px solid #DEE1E8;
}

.modal-cancel-btn {
    padding: 12px 24px;
    background: #FFFFFF;
    border: 1px solid #DEE1E8;
    border-radius: 12px;
    color: #6B7280;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-cancel-btn:hover {
    border-color: #6555D3;
    color: #6555D3;
}

.modal-save-btn {
    padding: 12px 24px;
    background: linear-gradient(180deg, #8476E4 0%, #6555D3 100%);
    border: none;
    border-radius: 12px;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0px 8px 24px 0px #6555D366;
}

.modal-save-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.modal-save-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Collection Variation Modal Styles */
#collection-variation-modal {
    z-index: 10000 !important; /* Ensure it's above mobile bottom nav (z-index: 999) */
}

.collection-variation-product {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #DEE1E8;
}

.collection-variation-product:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.variation-product-title {
    font-size: 18px;
    font-weight: 700;
    color: #2E303B;
    margin: 0 0 20px 0;
}

.variation-attribute-group {
    margin-bottom: 24px;
}

.variation-attribute-group:last-child {
    margin-bottom: 0;
}

.variation-attribute-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2E303B;
    margin-bottom: 12px;
}

.variation-attribute-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Collection Variation Modal - WooCommerce Variation Swatches Compatibility */
#collection-variation-modal .variable-items-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

#collection-variation-modal .variable-item {
    cursor: pointer;
    position: relative;
}

#collection-variation-modal .variable-item input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Ensure WooCommerce Variation Swatches plugin styles work in modal */
#collection-variation-modal .woo-variation-swatches .variable-items-wrapper .variable-item {
    margin: 4px;
}

/* Override modal-specific styles if needed */
#collection-variation-modal .variable-item-contents {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

#collection-variation-modal .variable-item-span-color {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 100% !important;
}

/* Collection Variation Modal - WooCommerce Variation Swatches Compatibility */
#collection-variation-modal .variable-items-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

#collection-variation-modal .variable-item {
    cursor: pointer;
    position: relative;
}

#collection-variation-modal .variable-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
}

/* Ensure WooCommerce Variation Swatches plugin styles work in modal */
#collection-variation-modal .woo-variation-swatches .variable-items-wrapper .variable-item {
    margin: 4px;
}

/* Override modal-specific styles if needed */
#collection-variation-modal .variable-item-contents {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

#collection-variation-modal .variable-item-span-color {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
}

/* Legacy radio button style (fallback) */
.variation-option-label {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border: 1px solid #DEE1E8;
    border-radius: 12px;
    background: #FFFFFF;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    color: #2E303B;
}

.variation-option-label:hover {
    border-color: #6555D3;
    background: #F3F1FF;
}

.variation-option-label input[type="radio"] {
    margin-left: 8px;
    cursor: pointer;
    accent-color: #6555D3;
}

.variation-option-label input[type="radio"]:checked + span {
    color: #6555D3;
    font-weight: 600;
}

.variation-option-label:has(input[type="radio"]:checked) {
    border-color: #6555D3;
    background: #F3F1FF;
}

.variation-option-label:has(input[type="radio"]:checked) span {
    color: #6555D3;
    font-weight: 600;
}

/* Fallback for browsers that don't support :has() */
.variation-option-label input[type="radio"]:checked {
    accent-color: #6555D3;
}

.variation-option-label.selected {
    border-color: #6555D3;
    background: #F3F1FF;
}

.variation-option-label.selected span {
    color: #6555D3;
    font-weight: 600;
}

.loading-spinner {
    text-align: center;
    padding: 40px;
    color: #6B7280;
    font-size: 14px;
}

.error-message {
    text-align: center;
    padding: 20px;
    color: #EF4444;
    font-size: 14px;
    background: #FEF2F2;
    border-radius: 8px;
}

/* Select2 Styling for Modal (WooCommerce Enhanced Select) */
.address-form-fields .select2-container {
    width: 100% !important;
}

.address-form-fields .select2-container--default .select2-selection--single {
    height: 60px;
    min-height: 60px;
    padding: 18px 12px 18px 20px;
    border: 1px solid #DEE1E8;
    border-radius: 10px;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    transition: border-color 0.2s ease;
}

.address-form-fields .select2-container--default.select2-container--focus .select2-selection--single,
.address-form-fields .select2-container--default.select2-container--open .select2-selection--single {
    border-color: #6555D3;
    outline: none;
}

.address-form-fields .select2-container--default .select2-selection--single:hover {
    border-color: #6555D3;
}

.address-form-fields .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 0;
    color: #2E303B;
    font-size: 14px;
    line-height: 1.5;
    text-align: right;
    padding-right: 0;
}

.address-form-fields .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #9CA3AF;
}

.address-form-fields .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    left: 16px;
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.address-form-fields .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border: none;
    width: 12px;
    height: 8px;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%232E303B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    margin: 0;
    top: 50%;
    transform: translateY(-50%);
}

.address-form-fields .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    transform: translateY(-50%) rotate(180deg);
}

.address-form-fields .select2-dropdown {
    border: 1px solid #DEE1E8;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 4px;
    text-align: right;
    direction: rtl;
}

.address-form-fields .select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #DEE1E8;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
}

.address-form-fields .select2-container--default .select2-search--dropdown .select2-search__field:focus {
    outline: none;
    border-color: #6555D3;
}

.address-form-fields .select2-results__option {
    padding: 12px 16px;
    font-size: 14px;
    color: #2E303B;
    text-align: right;
}

.address-form-fields .select2-results__option--highlighted[aria-selected] {
    background-color: #F3F1FF;
    color: #6555D3;
}

.address-form-fields .select2-results__option[aria-selected="true"] {
    background-color: #F8F9FA;
    color: #6555D3;
}

.address-form-fields .select2-results__option:hover {
    background-color: #F3F1FF;
}

.address-add-link {
    display: flex;
    align-items: center;
    margin-top: 10px;
    gap: 5px;
}

body.modal-open {
    overflow: hidden;
}

/* Modal Responsive */
@media (max-width: 767px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
        border-radius: 16px;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-title {
        font-size: 18px;
    }
}

/* Responsive */
@media (max-width: 991px) {
    .checkout-address-cards {
        flex-direction: column;
    }

    .checkout-address-card {
        min-width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

    .checkout-payment-cards {
        flex-direction: column;
        align-items: stretch;
    }

    .checkout-payment-card {
        min-width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

    .checkout-payment-btn {
        width: 100%;
        min-width: auto;
    }
}

/* ========================================
   WooCommerce Notices
   ======================================== */

.woocommerce-notices-wrapper:not(:empty) {
    margin-bottom: 24px;
    border: none;
    padding: 0;
}

.woocommerce-notices-wrapper:not(:empty):focus-visible {
    border: none;
    outline: none;
}

.woocommerce-notices-wrapper:not(:empty) .woocommerce-error {
    margin: 18px 50px !important;
}

.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
    background: #FFFFFF;
    border: 1px solid #DEE1E8;
    border-radius: 10px;
    padding: 18px 50px !important;
    margin: 0 0 16px 0;
    list-style: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    /*margin-right: var(--container-padding-x);*/
    /*margin-left: var(--container-padding-x);*/
}

.woocommerce-error:focus-visible,
.woocommerce-info:focus-visible,
.woocommerce-message:focus-visible {
    border: 1px solid #DEE1E8;
    outline: none;
}

.woocommerce-error {
    border-right: 4px solid #DC2626;
    background: #FEF2F2;
    padding: 18px 50px !important;
}

.woocommerce-error li {
    color: #991B1B;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    text-align: right;
}

.woocommerce-error .button.wc-forward {
    display: inline-block;
    margin-right: 12px;
    padding: 8px 16px;
    background: linear-gradient(180deg, #8476E4 0%, #6555D3 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0px 4px 12px 0px #6555D366;
    transition: transform 0.2s ease;
}

.woocommerce-error .button.wc-forward:hover {
    transform: translateY(-2px);
    color: #FFFFFF;
    text-decoration: none;
}

.woocommerce-info {
    border-right: 4px solid #3B82F6;
    background: #EFF6FF;
}

.woocommerce-info li {
    color: #1E40AF;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    text-align: right;
}

.woocommerce-message {
    border: none;
    border-right: 4px solid #10B981;
    background: #ECFDF5;
    margin-right: var(--container-padding-x);
    margin-left: var(--container-padding-x);
}

.woocommerce-message li {
    color: #065F46;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    text-align: right;
}

.woocommerce-message .button {
    display: inline-block;
    margin-right: 12px;
    padding: 8px 16px;
    background: linear-gradient(180deg, #8476E4 0%, #6555D3 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0px 4px 12px 0px #6555D366;
    transition: transform 0.2s ease;
}

.woocommerce-message .button:hover {
    transform: translateY(-2px);
    color: #FFFFFF;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 1023px) {
    .site-main {
        padding: 25px 0 !important;
    }

    .shop-content-wrapper {
        grid-template-columns: 1fr !important;
        gap: 16px;
        width: 100%;
    }

    .shop-sidebar {
        order: 2;
        width: 100% !important;
    }

    .shop-products-area {
        order: 1;
        width: 100%;
    }

    .single-product-wrapper {
        grid-template-columns: 1fr !important;
        justify-items: center;
    }

    .product-metadata-row {
        justify-content: flex-end;
    }

    .product-metadata-item-left {
        margin-right: unset;
        margin-left: auto;
    }

    .product-return-notice {
        justify-content: flex-start;
        gap: 8px;
        margin-bottom: 0 !important;
    }

    .related-products-section .section-header {
        align-content: flex-start;
        margin-bottom: 0 !important;
    }

    .related-products-section {
        padding: 0 !important;
    }

    .product-purchase-column {
        max-width: 100%;
        width: 100%;
    }

    .product-tabs-wrapper {
        display: flex;
        flex-direction: column;
    }

    .product-tabs-section {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    .product-tabs-nav {
        justify-content: space-between;
    }

    .tab-button {
        padding: 8px;
        white-space: nowrap;
    }

    .comments-sorting {
        margin: 0;
    }

    .product-tabs-content-column-comments {
        margin-top: 16px;
    }

    .comments-list {
        margin-bottom: 0 !important;
    }

    .product-add-to-cart .quantity-display-wrapper {
        flex-direction: row;
    }

    .cart-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .cart-summary-column {
        position: static;
        order: -1;
    }

    .checkout-steps {
        gap: 20px;
    }

    .checkout-step {
        max-width: 120px;
    }

    .checkout-step .step-icon {
        width: 40px;
        height: 40px;
    }

    .checkout-step .step-icon img {
        width: 40px;
        height: 40px;
    }

    .checkout-step.active .step-icon {
        width: 40px;
        height: 40px;
    }

    .checkout-step:not(.active) .step-icon {
        width: 40px;
        height: 40px;
    }

    .checkout-step .step-text {
        font-size: 12px;
    }

    .checkout-payment-wrapper {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .checkout-progress, #customer_details, .woocommerce-form-coupon-toggle {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .checkout-actions {
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 0 !important;
    }

    .checkout-payment-total-parent {
        flex-direction: column;
    }

    .checkout-payment-sidebar {
        position: static;
        order: -1;
    }
}

@media (max-width: 767px) {
    /* Shop Main Container */
    .shop-main {
        padding: 12px 0;
    }

    .shop-main .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    /* Breadcrumb Mobile */
    .shop-breadcrumb {
        margin-bottom: 12px;
        padding: 0;
    }

    .breadcrumb-items {
        font-size: 12px;
    }

    /* Header Mobile */
    .woocommerce-products-header {
        margin-bottom: 12px;
    }

    .woocommerce-products-header__title {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .woocommerce-products-header__title .product-count {
        font-size: 14px;
    }

    /* Sorting Bar Mobile */
    .shop-sorting-bar {
        padding: 12px 0px;
        flex-direction: column;
        justify-content: space-between;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 16px;
        border-bottom: 1px solid #DEE1E8;
        background: transparent;
    }

    .shop-sorting-bar .shop-sorting-bar-left {
        width: 100%;
        gap: 5px;
    }

    .shop-sorting-bar .shop-sorting-bar-right {
        width: 100%;
    }

    .woocommerce ul.products[class*=columns-] li.product, .woocommerce-page ul.products[class*=columns-] li.product {
        width: 100% !important;
    }

    .cart-suggested-products .products-carousel .product-card {
        min-width: 280px !important;
        max-width: 280px !important;
    }

    #wallet_payment_btn{
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .woocommerce-MyAccount-content .woocommerce-order-details {
        padding: 24px !important;
        margin: 0 0 24px 0 !important;
    }

    .wc-item-meta {
        padding-right: 0 !important;
    }

    .product-image-wrapper {
        height: 130px !important;
        min-height: 130px !important;
        max-height: 130px !important;
    }

    /* Hide desktop sorting options on mobile */
    .shop-sorting-bar .sorting-options {
        display: none;
    }

    /* Mobile sorting options wrapper - below filter button */
    .mobile-sorting-options-wrapper {
        display: block;
        width: 100%;
        order: 3;
    }

    .mobile-sorting-options {
        display: flex !important;
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 8px;
        padding: 0;
        align-items: center;
    }

    .mobile-sorting-options::-webkit-scrollbar {
        display: none;
    }

    .mobile-sorting-options .sort-option {
        padding: 10px 8px;
        font-size: 14px;
        font-weight: 500;
        white-space: nowrap;
        flex-shrink: 0;
        border: 1px solid #DEE1E8;
        border-radius: 12px;
        background: #FFFFFF;
        color: #2E303B;
        text-decoration: none;
        transition: all 0.2s ease;
    }

    .mobile-sorting-options .sort-option:hover {
        border-color: #6555D3;
        color: #6555D3;
        background: #F9FAFB;
    }

    .mobile-sorting-options .sort-option.active {
        border-color: #6555D3;
        background: #6555D3;
        color: #FFFFFF;
    }

    .sorting-options {
        flex: 1;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        display: flex;
        align-items: center;
        gap: 5px;
        border-bottom: unset;
        justify-content: center;
        margin-top: 10px;
    }

    .sorting-options::-webkit-scrollbar {
        display: none;
    }

    .sort-options {
        display: none !important;
    }

    .sorting-options a {
        padding: 0 12px 8px 12px;
        font-size: 14px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Show sort order toggle on mobile (left side - square button) */
    .filter-toggle-btn.sort-order-toggle {
        display: flex !important;
        margin-left: 0;
        margin-bottom: 0;
        padding: 0;
        width: 60px;
        height: 60px;
        min-width: 60px;
        max-width: 60px;
        justify-content: center;
        align-items: center;
        border: 1px solid #DEE1E8;
        border-radius: 14px;
        background: #FFFFFF;
        order: 2;
    }

    .filter-toggle-btn.sort-order-toggle:hover {
        border-color: #000000;
    }

    .filter-toggle-btn.sort-order-toggle .sort-order-text {
        display: none;
    }

    .filter-toggle-btn.sort-order-toggle svg {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }

    /* Show mobile filter button on mobile (right side - with text and arrow) */
    .filter-toggle-btn.mobile-filter-btn {
        display: flex !important;
        padding: 8px 12px;
        font-size: 16px;
        font-weight: 500;
        border: 1px solid #DEE1E8;
        border-radius: 16px;
        background: #FFFFFF;
        align-items: center;
        gap: 8px;
        cursor: pointer;
        text-decoration: none;
        color: #2E303B;
        order: 1;
        flex-direction: row-reverse;
        width: 100%;
        margin-left: 0;
        height: 60px;
        text-align: right;
        justify-content: space-between;
    }

    .filter-toggle-btn.mobile-filter-btn:hover {
        border-color: #000000;
        color: #000000;
        background: #F9FAFB;
    }

    .filter-toggle-btn.mobile-filter-btn svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

    /* Shop Content Wrapper Mobile */
    .shop-content-wrapper {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Hide sidebar by default on mobile - show in modal */
    .shop-sidebar {
        display: none;
    }

    /* Shop sidebar modal/overlay */
    .shop-sidebar-mobile {
        display: block !important;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: #FFFFFF;
        z-index: 10000;
        overflow-y: auto;
        padding: 20px 14px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

    #woocommerce-checkout-form-coupon {
        display: flex;
        flex-direction: column;
    }

    #woocommerce-checkout-form-coupon > p {
        width: 100%;
    }

    #woocommerce-checkout-form-coupon .button {
        width: 100%;
    }

    .shop-sidebar-mobile.active {
        transform: translateX(0);
        top: 0 !important;
        z-index: 10000 !important;
        padding-bottom: 0 !important;
    }

    .shop-sidebar-mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 24px;
        padding-bottom: 16px;
        border-bottom: 1px solid #DEE1E8;
    }

    .shop-sidebar-mobile-title {
        font-size: 18px;
        font-weight: 600;
        color: #2E303B;
        margin: 0;
    }

    .shop-sidebar-mobile-close {
        width: 32px;
        height: 32px;
        border: none;
        background: transparent;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
    }

    .shop-sidebar-mobile-close svg {
        width: 24px;
        height: 24px;
    }

    .shop-sidebar-mobile .shop-sidebar {
        display: block;
        width: 100%;
        border: none;
        border-radius: 0;
        padding: 0;
        background: transparent;
    }

    .woo-variation-swatches.rtl .variable-items-wrapper .variable-item:not(.radio-variable-item) {
        font-size: 10px;
    }

    .shop-sidebar-mobile .filter-widget {
        border-bottom: 1px solid #DEE1E8;
        padding: 16px 0;
    }

    /* Filter Apply Button Mobile */
    .shop-sidebar-mobile-footer {
        position: sticky;
        bottom: 0;
        background: #FFFFFF;
        padding: 16px 0;
        border-top: 1px solid #DEE1E8;
        margin-top: 24px;
    }

    .shop-filter-apply-btn {
        width: 100%;
        padding: 16px;
        background: #6555D3;
        color: #FFFFFF;
        border: none;
        border-radius: 12px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: background 0.2s ease;
    }

    .shop-filter-apply-btn:hover {
        background: #5545C3;
    }

    /* Products Grid Mobile */
    .shop-products-area {
        order: 1;
        width: 100%;
        padding-left: 14px;
        padding-right: 14px;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    /* Force 2 columns on mobile for all product grids */
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
        margin-bottom: 24px;
        align-items: stretch;
        width: 100%;
        box-sizing: border-box;
    }

    .woocommerce ul.products.columns-4,
    .woocommerce ul.products[class*="columns-4"],
    .woocommerce-page ul.products.columns-4,
    .woocommerce-page ul.products[class*="columns-4"] {
        grid-template-columns: repeat(2, auto) !important;
        align-items: flex-start;
        width: 100%;
        box-sizing: border-box;
        margin-left: 0;
        margin-right: 0;
    }

    .product-info {
        padding: 0 !important;
    }

    /* Make grid items fill height to match product card */
    .woocommerce ul.products li.product {
        display: flex;
        flex-direction: column;
        height: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .woocommerce ul.products.columns-4 li.product,
    .woocommerce ul.products[class*="columns-4"] li.product,
    .woocommerce-page ul.products.columns-4 li.product,
    .woocommerce-page ul.products[class*="columns-4"] li.product {
        height: 280px;
        display: flex;
        flex-direction: column;
        width: 100%;
        box-sizing: border-box;
        margin-bottom: 0;
    }

    .woocommerce nav.woocommerce-pagination ul li {
        margin: 0 2px !important;
    }

    /* Product Cards Mobile - Use frontend page styles from pixel-perfect.css */
    .woocommerce ul.products .product-card {
        width: 100% !important;
        min-width: auto !important;
        max-width: 100% !important;
        height: 100% !important;
        min-height: auto !important;
        max-height: none !important;
        padding: 12px !important;
        border-radius: 12px;
        border: 1px solid #EBEBEB;
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
    }

    /* Ensure product cards fit within columns-4 padding on mobile */
    .woocommerce ul.products.columns-4 .product-card,
    .woocommerce ul.products[class*="columns-4"] .product-card,
    .woocommerce-page ul.products.columns-4 .product-card,
    .woocommerce-page ul.products[class*="columns-4"] .product-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    .woocommerce ul.products .product-image-wrapper {
        margin-bottom: 12px;
        aspect-ratio: 1;
    }

    .woocommerce ul.products .product-image-wrapper img {
        object-fit: cover;
    }

    .woocommerce ul.products .product-title {
        font-size: 14px !important;
        line-height: 1.4 !important;
        margin-bottom: 4px;
        font-weight: 700;
        color: #2E303B;
        display: -webkit-box;
        -webkit-line-clamp: unset !important;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .woocommerce ul.products .product-stock {
        font-size: 12px !important;
        margin-bottom: 12px;
        color: #D42E53;
        font-weight: 500;
    }

    .woocommerce ul.products .product-price {
        font-size: 16px !important;
        margin-top: auto;
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: nowrap !important;
    }

    .woocommerce ul.products .sale-price {
        font-size: 16px !important;
        font-weight: 600;
        color: #2E303B;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .woocommerce ul.products .regular-price {
        font-size: 12px !important;
        text-decoration: line-through;
        color: #9CA3AF;
    }

    .woocommerce ul.products .sale-badge-footer {
        font-size: 12px !important;
        padding: 4px 8px;
        background: #FFE5EC;
        color: #D42E53;
        border-radius: 4px;
        font-weight: 600;
    }

    .woocommerce ul.products .onsale.sale-badge-image {
        position: absolute;
        top: 8px;
        right: 8px;
        background: #10B981;
        color: #FFFFFF;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 12px;
        font-weight: 600;
        z-index: 2;
    }

    /* Pagination Mobile */
    .woocommerce-pagination {
        margin-top: 24px;
        margin-bottom: 24px;
        flex-direction: column;
        gap: 12px;
    }

    .page-indicator {
        order: -1;
        margin-right: 0;
        margin-bottom: 0;
        font-size: 14px;
        text-align: center;
        width: 100%;
    }

    .page-numbers {
        justify-content: center;
        gap: 10px;
    }

    .page-numbers a,
    .page-numbers span {
        width: 40px;
        height: 40px;
        min-width: 40px;
        padding: 0;
        font-size: 14px;
    }

    .page-numbers .prev,
    .page-numbers .next {
        padding: 0;
        width: 40px;
        height: 40px;
    }

    .page-numbers .prev svg,
    .page-numbers .next svg {
        width: 20px;
        height: 20px;
    }

    /* Progress indicator 2x2 grid on mobile */
    .checkout-progress-card {
        width: 100%;
        max-width: 100%;
        height: auto;
        padding: 20px 16px;
        margin: 0;
    }

    .checkout-steps {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        width: 100%;
    }

    .checkout-step {
        max-width: 100%;
    }

    /* Cart layout - single column on mobile */
    .cart-page-wrapper > .container {
        display: flex;
        flex-direction: column;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    .cart-page-wrapper {
        padding-top: 0 !important;
    }

    .cart-contents-title {
        font-size: var(--font-size-3xl);
    }

    .cart-layout {
        grid-template-columns: 1fr;
        gap: 16px;
        display: flex;
        flex-direction: column;
    }

    /* Order: 1. Cart Contents, 2. Suggested Products, 3. Cart Summary */
    .cart-contents-column {
        order: 1;
        width: 100%;
    }

    .cart-suggested-products {
        order: 2;
        margin-top: 16px;
        margin-bottom: 0;
    }

    .cart-summary-column {
        order: 3;
        position: static;
        margin-top: 16px;
        width: 100%;
    }

    /* Cart item card - mobile layout */
    .cart-item-card {
        flex-direction: column;
        padding: 16px;
        gap: 12px;
        position: relative;
        align-items: stretch;
    }

    .cart-item-remove {
        position: absolute;
        top: 12px;
        left: 12px;
        width: 22px;
        height: 22px;
        background: transparent;
        border-radius: 8px;
        order: 1;
        z-index: 10;
        padding: 0;
    }

    .cart-item-remove .delete-icon {
        width: 22px;
        height: 22px;
        filter: none;
    }

    .cart-item-thumbnail {
        /*width: 80px;*/
        /*height: 80px;*/
        align-self: flex-start;
        order: 2;
        margin-top: 0;
        margin-bottom: 12px;
        border-radius: 8px;
        background: #FFFFFF;
        border: 1px solid #F3F4F6;
        /*padding: 4px;*/
        flex-shrink: 0;
    }

    .cart-item-thumbnail img {
        border-radius: 4px;
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .cart-item-details {
        order: 3;
        gap: 8px;
        padding-top: 0;
        width: 100%;
    }

    .cart-item-name {
        font-size: 14px;
        line-height: 1.4;
        margin-bottom: 4px;
    }

    .cart-item-info-row {
        flex-direction: column;
        gap: 12px;
        margin-top: 12px;
    }

    .cart-item-price-item {
        justify-content: space-between;
        width: 100%;
        flex-direction: row-reverse;
    }

    .cart-item-price-item .price-label {
        font-size: 13px;
        order: 2;
    }

    .cart-item-price-item .price-value {
        font-size: 13px;
        font-weight: 600;
        order: 1;
        flex-direction: row;
    }

    .cart-item-quantity-wrapper {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid #F3F4F6;
    }

    .cart-item-quantity-wrapper .quantity-label {
        font-size: 13px;
        width: auto;
        order: 1;
    }

    .cart-item-quantity-wrapper .quantity-display-wrapper {
        order: 2;
        display: flex;
        align-items: center;
        gap: 12px;
        flex-direction: row;
    }

    .quantity-btn {
        width: 32px;
        height: 32px;
        border: none;
    }

    .quantity-btn.quantity-plus {
        order: 1;
    }

    .quantity-display {
        order: 2;
        font-size: 13px;
        min-width: 50px;
        text-align: center;
        padding: 0;
        height: auto;
        font-weight: 500;
    }

    .quantity-btn.quantity-minus {
        order: 3;
    }

    .quantity-btn .quantity-icon {

    }

    .quantity-btn:hover {
        opacity: 0.8;
        transform: scale(1.05);
    }

    .quantity-btn:hover .quantity-icon {

    }

    /* Cart summary - full width on mobile */
    .cart_totals {
        max-width: 100% !important;
    }

    /* Payment button wrapper on mobile */
    .cart-payment-button-wrapper {
        width: 100%;
        margin-top: 24px;
        display: block;
    }

    .cart-payment-button-wrapper .checkout-payment-btn {
        width: 100%;
        display: block;
        text-align: center;
    }

    /* Section title - show mobile version on mobile */
    .section-title-full {
        display: none;
    }

    .section-title-mobile {
        display: block;
        margin-top: 10px;
    }
}

/* Payment Success Page Styles */
.payment-success-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 40px 20px;
}

.payment-success-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.payment-success-icon {
    margin-bottom: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.payment-success-icon img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.payment-success-message {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 40px;
    line-height: 1.5;
}

.payment-success-actions {
    width: 100%;
    max-width: 400px;
}

.payment-success-actions .checkout-payment-btn {
    display: block;
    width: 100%;
    padding: 18px 32px;
    background: linear-gradient(135deg, #6555D3 0%, #E91E63 100%);
    color: #FFFFFF;
    text-align: center;
    text-decoration: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(101, 85, 211, 0.3);
}

.payment-success-actions .checkout-payment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(101, 85, 211, 0.4);
}

.payment-success-actions .checkout-payment-btn:active {
    transform: translateY(0);
}

/* Progress indicator - completed state for success page */
.checkout-step.active.completed .step-icon {

}

.checkout-step.active.completed .step-icon img {

}

@media (max-width: 767px) {
    .payment-success-container {
        min-height: 50vh;
        padding: 30px 15px;
    }

    .payment-success-icon img {
        width: 100px;
        height: 100px;
    }

    .payment-success-message {
        font-size: 20px;
        margin-bottom: 30px;
    }

    .payment-success-actions {
        max-width: 100%;
    }

    .payment-success-actions .checkout-payment-btn {
        padding: 16px 24px;
        font-size: 14px;
    }
}
