/**
 * WooCommerce Styles for 24H Pneus Theme
 */

/* ============================================
   Shop Page Layout
============================================ */
.tf-page-shop {
    padding: 60px 0;
}

.wrapper-shop {
    position: relative;
}

/* ============================================
   Shop Controls
============================================ */
.tf-shop-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    padding: 15px 20px;
    background: var(--bg-2);
    border-radius: 8px;
}

.tf-control-filter .tf-btn-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tf-control-filter .tf-btn-filter:hover {
    border-color: var(--primary);
}

.tf-control-result {
    color: var(--text-2);
    font-size: 14px;
}

.tf-control-sorting select {
    padding: 10px 40px 10px 15px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--white);
    font-size: 14px;
    cursor: pointer;
}

.tf-control-layout {
    display: flex;
    gap: 10px;
}

.tf-view-layout-switch {
    display: flex;
    gap: 8px;
}

.tf-view-layout-switch .item-layout {
    display: flex;
    gap: 3px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tf-view-layout-switch .item-layout.active {
    border-color: var(--primary);
    background: var(--primary);
}

.tf-view-layout-switch .item-layout .item {
    width: 4px;
    height: 16px;
    background: var(--line);
    border-radius: 2px;
}

.tf-view-layout-switch .item-layout.active .item {
    background: var(--white);
}

/* ============================================
   Products Grid
============================================ */
.grid-layout {
    display: grid;
    gap: 30px;
}

.grid-layout[data-grid="grid-3"] {
    grid-template-columns: repeat(3, 1fr);
}

.grid-layout[data-grid="grid-4"] {
    grid-template-columns: repeat(4, 1fr);
}

.grid-layout[data-grid="list"] {
    grid-template-columns: 1fr;
}

/* ============================================
   Product Card
============================================ */
.card-product {
    position: relative;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card-product:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.card-product-wrapper {
    position: relative;
    overflow: hidden;
}

.card-product-wrapper .product-img {
    display: block;
    position: relative;
    padding-top: 100%;
    background: var(--bg-2);
}

.card-product-wrapper .product-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.card-product-wrapper .product-img .img-hover {
    opacity: 0;
}

.card-product:hover .product-img .img-product {
    opacity: 0;
}

.card-product:hover .product-img .img-hover {
    opacity: 1;
}

/* Sale Badge */
.on-sale-wrap {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
}

.on-sale {
    display: inline-block;
    padding: 5px 12px;
    background: var(--primary);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Product Actions */
.list-product-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
    z-index: 2;
}

.card-product:hover .list-product-btn {
    opacity: 1;
    transform: translateX(0);
}

.list-product-btn .box-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.list-product-btn .box-icon:hover {
    background: var(--primary);
    color: var(--white);
}

.list-product-btn .box-icon .tooltip {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    padding: 5px 10px;
    background: var(--main);
    color: var(--white);
    font-size: 12px;
    white-space: nowrap;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.list-product-btn .box-icon:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

/* Product Info */
.card-product-info {
    padding: 15px;
}

.card-product-info .product-brand {
    display: block;
    margin-bottom: 6px;
}

.card-product-info .product-brand--logo {
    display: block;
    height: 20px;
    margin-bottom: 8px;
}

.card-product-info .product-brand--logo .brand-logo-img {
    height: 100%;
    width: auto;
    max-width: 80px;
    object-fit: contain;
    object-position: left center;
    opacity: 0.85;
    transition: all 0.3s ease;
}

.card-product:hover .product-brand--logo .brand-logo-img {
    opacity: 1;
}

.card-product-info .title {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: var(--main);
    margin-bottom: 8px;
    text-decoration: none;
    transition: color 0.3s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-product-info .title:hover {
    color: var(--primary);
}

.card-product-info .price {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
}

.card-product-info .price .old-price {
    text-decoration: line-through;
    color: var(--text-2);
    font-weight: 400;
    margin-right: 10px;
}

.card-product-info .price del {
    text-decoration: line-through;
    color: var(--text-2);
    font-weight: 400;
    margin-right: 10px;
}

.card-product-info .price ins {
    text-decoration: none;
}

/* ============================================
   Shop Sidebar
============================================ */
.tf-shop-sidebar {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--line);
}

.widget-facet {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--line);
}

.widget-facet:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.widget-facet .widget-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.facet-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.facet-item {
    margin-bottom: 10px;
}

.facet-item:last-child {
    margin-bottom: 0;
}

.tf-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.tf-checkbox input {
    display: none;
}

.tf-checkbox .checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--line);
    border-radius: 3px;
    position: relative;
    transition: all 0.3s ease;
}

.tf-checkbox input:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.tf-checkbox input:checked + .checkmark::after {
    content: '\2713';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-size: 12px;
}

.tf-checkbox .label {
    font-size: 14px;
    color: var(--text);
}

/* Price Range Slider */
.widget-price-filter {
    padding: 20px 10px;
}

#price-range-slider {
    margin-bottom: 15px;
}

.price-range-values {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text);
}

/* ============================================
   Single Product
============================================ */
.tf-product-media-wrap {
    position: sticky;
    top: 100px;
}

.product-images .main-image {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.product-images .main-image img {
    width: 100%;
    height: auto;
}

.tf-product-media-thumbs .swiper-slide .item {
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tf-product-media-thumbs .swiper-slide-thumb-active .item,
.tf-product-media-thumbs .swiper-slide:hover .item {
    border-color: var(--primary);
}

.tf-product-info-wrap {
    padding: 20px 0;
}

.tf-product-info-title h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
}

.tf-product-info-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.tf-product-info-badges .badges {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
}

.tf-product-info-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tf-product-info-rating .rating {
    display: flex;
    gap: 2px;
}

.tf-product-info-rating .rating i {
    color: #ffc107;
}

.tf-product-info-rating .rating-count {
    color: var(--text-2);
    font-size: 14px;
}

.tf-product-info-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.tf-product-info-price del {
    font-size: 20px;
    color: var(--text-2);
    font-weight: 400;
    margin-right: 10px;
}

.tf-product-description {
    color: var(--text);
    line-height: 1.7;
}

/* Quantity */
.tf-product-info-quantity .quantity-title {
    margin-bottom: 10px;
}

.wg-quantity {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 5px;
}

.wg-quantity .btn-quantity {
    width: 45px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.wg-quantity .btn-quantity:hover {
    background: var(--primary);
    color: var(--white);
}

.wg-quantity input {
    width: 60px;
    height: 50px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    font-size: 16px;
    font-weight: 500;
}

/* Action Buttons */
.tf-product-info-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.tf-product-info-actions .btn-icon-action {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border: 1px solid var(--line);
    border-radius: 5px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.tf-product-info-actions .btn-icon-action:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Product Tabs */
.tf-product-tabs {
    margin-top: 60px;
}

.tf-product-tabs .nav-tabs {
    border-bottom: 2px solid var(--line);
    gap: 30px;
}

.tf-product-tabs .nav-tabs .nav-link {
    border: none;
    padding: 15px 0;
    font-weight: 600;
    color: var(--text);
    position: relative;
}

.tf-product-tabs .nav-tabs .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.tf-product-tabs .nav-tabs .nav-link.active,
.tf-product-tabs .nav-tabs .nav-link:hover {
    color: var(--primary);
}

.tf-product-tabs .nav-tabs .nav-link.active::after {
    width: 100%;
}

.tf-product-tabs .tab-content {
    padding: 30px 0;
}

.product-description p {
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 15px;
}

/* ============================================
   Mini Cart
============================================ */
.modal-shopping-cart .modal-dialog {
    max-width: 420px;
    margin: 0 0 0 auto;
    height: 100%;
}

.modal-shopping-cart .modal-content {
    height: 100%;
    border: none;
    border-radius: 0;
}

.modal-shopping-cart .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--line);
}

.modal-shopping-cart .wrap {
    flex: 1;
    overflow-y: auto;
}

.tf-mini-cart-wrap {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tf-mini-cart-main {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.tf-mini-cart-bottom {
    border-top: 1px solid var(--line);
    padding: 20px;
}

.tf-cart-totals-discounts {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.tf-mini-cart-view-checkout {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ============================================
   WooCommerce Messages
============================================ */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.woocommerce-message {
    background: rgba(49, 165, 109, 0.1);
    border-left: 4px solid var(--success);
}

.woocommerce-info {
    background: rgba(0, 123, 255, 0.1);
    border-left: 4px solid #007bff;
}

.woocommerce-error {
    background: rgba(220, 53, 69, 0.1);
    border-left: 4px solid #dc3545;
}

/* ============================================
   Pagination
============================================ */
.tf-pagination-wrap {
    margin-top: 40px;
}

.tf-pagination-list,
.page-numbers {
    display: flex;
    gap: 10px;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-link,
.page-numbers li a,
.page-numbers li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    border: 1px solid var(--line);
    border-radius: 5px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination-link:hover,
.pagination-link.active,
.page-numbers li a:hover,
.page-numbers li span.current {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* ============================================
   Shop Layout - Sidebar
============================================ */
.tf-row-flex {
    display: flex;
    gap: 30px;
}

.tf-row-flex.sidebar-left {
    flex-direction: row;
}

.tf-row-flex.sidebar-right {
    flex-direction: row;
}

.tf-row-flex.filter-sidebar {
    flex-direction: row;
}

/* Sidebar */
.tf-shop-sidebar {
    width: 280px;
    min-width: 280px;
    flex-shrink: 0;
}

.tf-shop-sidebar.wrap-sidebar-mobile {
    background: var(--white);
    padding: 0;
}

/* Shop Content */
.tf-shop-content {
    flex: 1;
    min-width: 0;
}

/* Filter Sidebar (Visible on desktop) */
.tf-row-flex.filter-sidebar .tf-shop-sidebar.sidebar-filter {
    position: relative;
    width: 280px;
}

.tf-row-flex.filter-sidebar .tf-shop-sidebar.sidebar-filter .canvas-wrapper {
    position: sticky;
    top: 100px;
}

.tf-row-flex.filter-sidebar .tf-shop-sidebar .canvas-header {
    display: none;
}

/* List Layout */
.tf-list-layout {
    display: none;
}

.tf-list-layout.active {
    display: block;
}

.tf-grid-layout {
    display: grid;
    gap: 30px;
}

.tf-grid-layout.active {
    display: grid;
}

/* List Layout Card */
.card-product.list-layout {
    display: flex;
    gap: 30px;
    padding: 20px;
    background: var(--white);
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid var(--line);
}

.card-product.list-layout .card-product-wrapper {
    width: 200px;
    min-width: 200px;
}

.card-product.list-layout .card-product-wrapper .product-img {
    display: block;
    padding-top: 100%;
    position: relative;
    background: var(--bg-2);
    border-radius: 8px;
    overflow: hidden;
}

.card-product.list-layout .card-product-wrapper .product-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-product.list-layout .card-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-product.list-layout .card-product-info .product-brand {
    font-size: 12px;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 5px;
}

.card-product.list-layout .card-product-info .title {
    font-size: 18px;
    font-weight: 600;
    color: var(--main);
    margin-bottom: 10px;
    text-decoration: none;
}

.card-product.list-layout .card-product-info .title:hover {
    color: var(--primary);
}

.card-product.list-layout .card-product-info .price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

.card-product.list-layout .card-product-info .description {
    font-size: 14px;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 15px;
}

.card-product.list-layout .tyre-specs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.card-product.list-layout .tyre-specs-list .spec-item {
    font-size: 13px;
    padding: 5px 10px;
    background: var(--bg-2);
    border-radius: 4px;
}

.card-product.list-layout .tyre-specs-list .spec-item.runflat-badge {
    background: var(--primary);
    color: var(--white);
}

.card-product.list-layout .list-product-btn {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.card-product.list-layout .list-product-btn .box-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.card-product.list-layout .list-product-btn .box-icon:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* ============================================
   Filter Sidebar Offcanvas
============================================ */
.canvas-filter {
    max-width: 350px;
}

.canvas-filter .canvas-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.canvas-filter .canvas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--line);
}

.canvas-filter .canvas-header .title {
    font-size: 18px;
    font-weight: 600;
}

.canvas-filter .canvas-header .icon-close {
    cursor: pointer;
    font-size: 20px;
}

.canvas-filter .canvas-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Filter Widget Styles */
.widget-filter .filter-group {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--line);
}

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

.widget-filter .filter-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.widget-filter .filter-item {
    margin-bottom: 12px;
}

.widget-filter .filter-item label {
    display: block;
    font-size: 14px;
    color: var(--text);
    margin-bottom: 5px;
}

.widget-filter .filter-select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--line);
    border-radius: 5px;
    font-size: 14px;
    background: var(--white);
    cursor: pointer;
}

.widget-filter .filter-select:focus {
    border-color: var(--primary);
    outline: none;
}

.widget-filter .filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.widget-filter .filter-checkbox input {
    display: none;
}

.widget-filter .filter-checkbox .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--line);
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.widget-filter .filter-checkbox input:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.widget-filter .filter-checkbox input:checked + .checkmark::after {
    content: '\2713';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-size: 12px;
}

.widget-filter .filter-checkbox .label-text {
    font-size: 14px;
    color: var(--text);
}

.widget-filter .filter-actions {
    margin-top: 20px;
}

/* Active Filters */
.tf-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.tf-active-filters .active-filters-label {
    font-weight: 600;
    font-size: 14px;
}

.tf-active-filters .active-filters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tf-active-filters .active-filter-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: var(--bg-2);
    border-radius: 4px;
    font-size: 13px;
}

.tf-active-filters .active-filter-item .filter-label {
    color: var(--text-2);
}

.tf-active-filters .active-filter-item .filter-value {
    font-weight: 500;
}

.tf-active-filters .active-filter-item .filter-remove {
    color: var(--text-2);
    cursor: pointer;
    transition: color 0.3s ease;
}

.tf-active-filters .active-filter-item .filter-remove:hover {
    color: var(--primary);
}

.tf-active-filters .clear-all-filters {
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
}

.tf-active-filters .clear-all-filters:hover {
    text-decoration: underline;
}

/* No Products Found */
.tf-no-products {
    padding: 60px 20px;
}

.tf-no-products h3 {
    margin-bottom: 10px;
}

/* Widget Facet Styles */
.widget-facet {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--line);
}

.widget-facet:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.widget-facet .facet-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.widget-facet .facet-title .icon {
    transition: transform 0.3s ease;
}

.widget-facet .facet-title[aria-expanded="false"] .icon {
    transform: rotate(180deg);
}

/* Categories List */
.list-categoris {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 250px;
    overflow-y: auto;
}

.list-categoris .cate-item {
    margin-bottom: 10px;
}

.list-categoris .cate-item:last-child {
    margin-bottom: 0;
}

.list-categoris .cate-item a {
    display: flex;
    justify-content: space-between;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.list-categoris .cate-item a:hover,
.list-categoris .cate-item.current a {
    color: var(--primary);
}

/* Filter Groups */
.tf-filter-group {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 250px;
    overflow-y: auto;
}

.tf-filter-group .list-item {
    margin-bottom: 12px;
}

.tf-filter-group .list-item:last-child {
    margin-bottom: 0;
}

.tf-filter-group .label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: var(--text);
    cursor: pointer;
}

/* Custom Checkbox/Radio */
.tf-check {
    width: 18px;
    height: 18px;
    border: 2px solid var(--line);
    border-radius: 3px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    transition: all 0.3s ease;
}

.tf-check:checked {
    background: var(--primary);
    border-color: var(--primary);
}

.tf-check:checked::after {
    content: '\2713';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-size: 12px;
}

input[type="radio"].tf-check {
    border-radius: 50%;
}

input[type="radio"].tf-check:checked::after {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--white);
    border-radius: 50%;
}

/* Filter Dimensions */
.filter-dimensions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.filter-dimension-item .filter-label {
    display: block;
    font-size: 13px;
    color: var(--text-2);
    margin-bottom: 5px;
}

.tf-select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--line);
    border-radius: 5px;
    font-size: 14px;
    background: var(--white);
    cursor: pointer;
}

.tf-select:focus {
    border-color: var(--primary);
    outline: none;
}

/* Season Icon */
.season-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 5px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.season-icon.season-summer,
.season-icon.summer {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f59e0b'%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Cpath d='M12 1v2M12 21v2M4.22 4.22l1.42 1.42M18.36 18.36l1.42 1.42M1 12h2M21 12h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42'/%3E%3C/svg%3E");
}

.season-icon.season-winter,
.season-icon.winter {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233b82f6'%3E%3Cpath d='M12 2v20M2 12h20M4.93 4.93l14.14 14.14M19.07 4.93L4.93 19.07'/%3E%3C/svg%3E");
}

.season-icon.season-allseason,
.season-icon.allseason {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2310b981'%3E%3Ccircle cx='12' cy='12' r='10' stroke='%2310b981' stroke-width='2' fill='none'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E");
}

/* Iconbox Widget */
.widget-iconbox-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-iconbox-list .iconbox-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.widget-iconbox-list .iconbox-item:last-child {
    margin-bottom: 0;
}

.widget-iconbox-list .box-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-2);
    border-radius: 50%;
    flex-shrink: 0;
}

.widget-iconbox-list .iconbox-content {
    flex: 1;
}

.widget-iconbox-list .iconbox-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 3px;
}

.widget-iconbox-list .iconbox-desc {
    font-size: 13px;
    color: var(--text-2);
    margin: 0;
}

/* Filter Actions */
.filter-actions .tf-btn {
    display: flex;
    justify-content: center;
}

/* Scrollbar Styling */
.current-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.current-scrollbar::-webkit-scrollbar-track {
    background: var(--bg-2);
    border-radius: 2px;
}

.current-scrollbar::-webkit-scrollbar-thumb {
    background: var(--line);
    border-radius: 2px;
}

.current-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ============================================
   Responsive
============================================ */
@media (max-width: 1199px) {
    .tf-row-flex.filter-sidebar .tf-shop-sidebar.sidebar-filter {
        position: fixed;
        top: 0;
        left: -100%;
        width: 320px;
        height: 100%;
        z-index: 1050;
        background: var(--white);
        transition: left 0.3s ease;
        overflow-y: auto;
    }

    .tf-row-flex.filter-sidebar .tf-shop-sidebar.sidebar-filter.show {
        left: 0;
    }

    .tf-row-flex.filter-sidebar .tf-shop-sidebar .canvas-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        border-bottom: 1px solid var(--line);
    }

    .tf-row-flex.filter-sidebar .tf-shop-sidebar .canvas-body {
        padding: 20px;
    }
}

@media (max-width: 991px) {
    .tf-row-flex {
        flex-direction: column;
    }

    .tf-shop-sidebar {
        width: 100%;
        min-width: 100%;
        position: fixed;
        top: 0;
        left: -100%;
        width: 320px;
        height: 100%;
        z-index: 1050;
        background: var(--white);
        transition: left 0.3s ease;
        overflow-y: auto;
    }

    .tf-shop-sidebar.show,
    .tf-shop-sidebar.active {
        left: 0;
    }

    .tf-grid-layout.tf-col-3,
    .tf-grid-layout.tf-col-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-product.list-layout {
        flex-direction: column;
    }

    .card-product.list-layout .card-product-wrapper {
        width: 100%;
        min-width: 100%;
    }
}

@media (max-width: 575px) {
    .grid-layout[data-grid="grid-3"],
    .grid-layout[data-grid="grid-4"] {
        grid-template-columns: 1fr;
    }

    .tf-shop-control {
        flex-direction: column;
        align-items: stretch;
    }

    .tf-product-info-title h1 {
        font-size: 22px;
    }

    .tf-product-info-price {
        font-size: 22px;
    }
}

/* ============================================
   Cart Page
============================================ */
.tf-page-cart {
    padding: 60px 0;
}

.tf-cart-page {
    margin-bottom: 40px;
}

.tf-table-cart {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tf-table-cart thead {
    background: var(--bg-2);
}

.tf-table-cart thead th {
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
    border-bottom: 1px solid var(--line);
}

.tf-table-cart tbody td {
    padding: 20px;
    vertical-align: middle;
    border-bottom: 1px solid var(--line);
}

.tf-table-cart tbody tr:last-child td {
    border-bottom: none;
}

.tf-table-cart .product-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.tf-table-cart .product-name a {
    color: var(--text);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.tf-table-cart .product-name a:hover {
    color: var(--primary);
}

.tf-table-cart .product-price {
    font-weight: 600;
    color: var(--primary);
}

.tf-table-cart .product-subtotal {
    font-weight: 600;
    font-size: 16px;
}

.tf-table-cart .product-subtotal .montage-cost {
    display: block;
    color: var(--success);
    font-size: 12px;
    font-weight: 500;
}

.tf-table-cart .product-remove .remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-2);
    color: var(--text-2);
    transition: all 0.3s ease;
}

.tf-table-cart .product-remove .remove:hover {
    background: var(--danger);
    color: var(--white);
}

/* Montage Option in Cart */
.tf-montage-option {
    min-width: 150px;
}

.tf-montage-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.tf-montage-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    cursor: pointer;
}

.tf-montage-checkbox .montage-price {
    font-size: 13px;
    color: var(--success);
    font-weight: 500;
}

/* Cart Actions */
.tf-cart-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.tf-cart-actions .coupon {
    display: flex;
    gap: 10px;
}

.tf-cart-actions .coupon input {
    padding: 12px 15px;
    border: 1px solid var(--line);
    border-radius: 5px;
    font-size: 14px;
    min-width: 200px;
}

.tf-cart-actions .coupon .button {
    padding: 12px 20px;
    background: var(--text);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.tf-cart-actions .coupon .button:hover {
    background: var(--primary);
}

.tf-cart-actions > .button {
    padding: 12px 25px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.tf-cart-actions > .button:hover {
    background: var(--primary-dark);
}

/* Montage Info Box */
.tf-montage-info-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid var(--line);
    height: 100%;
}

.montage-info-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary);
}

.montage-info-title svg {
    stroke: var(--primary);
}

.montage-info-content p {
    margin-bottom: 15px;
    color: var(--text-2);
    line-height: 1.6;
}

.montage-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.montage-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--text);
    font-size: 14px;
}

.montage-features li svg {
    stroke: var(--success);
    flex-shrink: 0;
}

/* Cart Totals */
.cart_totals {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--line);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.cart_totals h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--line);
}

.cart_totals table {
    width: 100%;
}

.cart_totals table tr th,
.cart_totals table tr td {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.cart_totals table tr th {
    text-align: left;
    font-weight: 500;
    color: var(--text-2);
}

.cart_totals table tr td {
    text-align: right;
    font-weight: 600;
}

.cart_totals table tr.order-total th,
.cart_totals table tr.order-total td {
    font-size: 18px;
    color: var(--text);
    border-bottom: none;
    padding-top: 15px;
}

.cart_totals table tr.order-total td {
    color: var(--primary);
}

.cart_totals .wc-proceed-to-checkout {
    margin-top: 20px;
}

.cart_totals .wc-proceed-to-checkout .checkout-button {
    display: block;
    width: 100%;
    padding: 15px 25px;
    background: var(--primary);
    color: var(--white);
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.cart_totals .wc-proceed-to-checkout .checkout-button:hover {
    background: var(--primary-dark);
}

/* Cart Responsive */
@media (max-width: 991px) {
    .tf-table-cart thead {
        display: none;
    }

    .tf-table-cart tbody tr {
        display: block;
        padding: 20px;
        margin-bottom: 15px;
        border: 1px solid var(--line);
        border-radius: 10px;
    }

    .tf-table-cart tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
        border-bottom: 1px solid var(--line);
    }

    .tf-table-cart tbody td:before {
        content: attr(data-title);
        font-weight: 600;
        color: var(--text);
    }

    .tf-table-cart tbody td.product-thumbnail {
        justify-content: center;
    }

    .tf-table-cart tbody td.product-thumbnail:before {
        display: none;
    }

    .tf-table-cart tbody td:last-child {
        border-bottom: none;
    }

    .tf-table-cart tbody td.actions {
        display: block;
    }

    .tf-cart-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .tf-cart-actions .coupon {
        flex-direction: column;
    }

    .tf-cart-actions .coupon input {
        min-width: 100%;
    }
}

@media (max-width: 767px) {
    .tf-page-cart {
        padding: 40px 0;
    }

    .tf-montage-info-box {
        margin-bottom: 20px;
    }
}

/* ============================================
   COMPACT PAGE TITLE (Checkout/Cart)
============================================ */
.tf-page-title.tf-page-title-sm {
    padding: 15px 0 !important;
    background-image: none !important;
    background-color: var(--bg-2);
}

.tf-page-title.tf-page-title-sm .heading {
    margin-bottom: 0;
}

.tf-page-title.tf-page-title-sm .heading h1 {
    font-size: 20px !important;
    font-weight: 600;
    margin: 0;
}

.tf-page-title.tf-page-title-sm .tf-breadcrumb {
    padding: 5px 0 0 0;
}

.tf-page-title.tf-page-title-sm .tf-breadcrumb-wrap {
    padding: 0;
}

.tf-page-title.tf-page-title-sm .tf-breadcrumb-list {
    font-size: 12px;
    justify-content: center;
}

@media (max-width: 767px) {
    .tf-page-title.tf-page-title-sm {
        padding: 12px 0 !important;
    }

    .tf-page-title.tf-page-title-sm .heading h1 {
        font-size: 18px !important;
    }
}

/* ============================================
   ONE-PAGE CHECKOUT
============================================ */
.tf-one-page-checkout {
    padding: 5px 0;
    background: var(--bg-1);
}

.tf-one-page-checkout .checkout-section {
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.tf-one-page-checkout .section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
    background: var(--bg-2);
}

.tf-one-page-checkout .section-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    font-weight: 600;
    font-size: 14px;
}

.tf-one-page-checkout .section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    flex: 1;
}

.tf-one-page-checkout .section-count {
    font-size: 14px;
    color: var(--text-2);
    background: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
}

.tf-one-page-checkout .section-optional {
    font-size: 13px;
    color: var(--text-2);
    font-weight: 400;
}

.tf-one-page-checkout .section-content {
    padding: 24px;
}

/* Checkout Sidebar */
.checkout-sidebar {
    position: sticky;
    top: 100px;
}

.checkout-sidebar .checkout-section {
    margin-bottom: 20px;
}

.checkout-sidebar .section-header-small {
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--bg-2);
}

.checkout-sidebar .section-header-small h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: var(--text);
}

.checkout-sidebar .section-content {
    padding: 20px;
}

/* Checkout Cart Items */
.checkout-cart-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.checkout-cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
    background: var(--bg-2);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.checkout-cart-item:hover {
    background: var(--bg-1);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--white);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-item-name a {
    font-weight: 600;
    color: var(--text);
    font-size: 15px;
    transition: color 0.3s ease;
}

.cart-item-name a:hover {
    color: var(--primary);
}

.cart-item-meta {
    font-size: 13px;
    color: var(--text-2);
}

.cart-item-meta dl {
    display: flex;
    gap: 8px;
    margin: 0;
}

.cart-item-price {
    font-size: 14px;
    color: var(--text-2);
}

.cart-item-quantity .quantity {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
}

.cart-item-quantity .quantity .qty {
    width: 50px;
    text-align: center;
    border: none;
    padding: 8px;
    font-size: 14px;
    font-weight: 600;
}

.cart-item-quantity .quantity button {
    width: 32px;
    height: 36px;
    background: var(--bg-2);
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: var(--text);
    transition: all 0.3s ease;
}

.cart-item-quantity .quantity button:hover {
    background: var(--primary);
    color: var(--white);
}

.cart-item-subtotal {
    font-weight: 600;
    font-size: 16px;
    color: var(--text);
    min-width: 100px;
    text-align: right;
}

.cart-item-remove .remove-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--white);
    color: var(--text-2);
    transition: all 0.3s ease;
}

.cart-item-remove .remove-item:hover {
    background: #fee2e2;
    color: #dc2626;
}

.checkout-empty-cart {
    text-align: center;
    padding: 40px 20px;
}

.checkout-empty-cart p {
    font-size: 16px;
    color: var(--text-2);
    margin-bottom: 20px;
}

/* Montage Options */
.checkout-montage-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.montage-toggle {
    padding: 20px;
    background: var(--bg-2);
    border-radius: 8px;
}

.montage-switch {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
}

.montage-switch input {
    display: none;
}

.montage-switch .slider {
    position: relative;
    width: 52px;
    height: 28px;
    background: var(--line);
    border-radius: 28px;
    transition: all 0.3s ease;
}

.montage-switch .slider::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: var(--white);
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.montage-switch input:checked + .slider {
    background: var(--primary);
}

.montage-switch input:checked + .slider::before {
    transform: translateX(24px);
}

.montage-switch .switch-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.montage-details {
    display: none;
    gap: 20px;
    flex-direction: column;
}

.montage-details.active {
    display: flex;
}

.montage-info-box {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg-2) 100%);
    border-radius: 12px;
    border: 1px solid var(--primary);
}

.montage-icon {
    flex-shrink: 0;
    color: var(--primary);
}

.montage-text h5 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 8px 0;
}

.montage-text p {
    font-size: 14px;
    color: var(--text-2);
    margin: 0;
    line-height: 1.5;
}

.montage-pricing {
    background: var(--white);
    border-radius: 8px;
    border: 1px solid var(--line);
    overflow: hidden;
}

.pricing-header {
    padding: 12px 16px;
    background: var(--bg-2);
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
}

.pricing-single {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    text-align: center;
}

.pricing-single .price-value-large {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.pricing-single .price-per {
    font-size: 14px;
    color: var(--text-2);
    margin-top: 4px;
}

.pricing-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pricing-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
}

.pricing-list li:last-child {
    border-bottom: none;
}

.price-label {
    font-size: 14px;
    color: var(--text-2);
}

.price-value {
    font-weight: 600;
    color: var(--text);
}

.montage-includes {
    padding: 16px;
    background: var(--bg-2);
    border-radius: 8px;
}

.montage-includes h6 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 12px 0;
}

.montage-includes ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.montage-includes li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-2);
}

.montage-includes li svg {
    color: var(--success);
    flex-shrink: 0;
}

.montage-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--primary);
    border-radius: 8px;
    color: var(--white);
}

.total-label {
    font-size: 15px;
}

.total-value {
    font-size: 20px;
    font-weight: 700;
}

/* Delivery Options */
.checkout-delivery-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.delivery-modes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.delivery-mode-option {
    cursor: pointer;
}

.delivery-mode-option input {
    display: none;
}

.mode-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-2);
    border: 2px solid var(--line);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.delivery-mode-option.active .mode-card,
.delivery-mode-option input:checked + .mode-card {
    border-color: var(--primary);
    background: var(--primary-light);
}

.mode-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--white);
    border-radius: 12px;
    color: var(--primary);
    flex-shrink: 0;
}

.mode-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mode-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.mode-subtitle {
    font-size: 13px;
    color: var(--text-2);
}

.delivery-address-section,
.store-selector-section {
    display: none;
}

.delivery-address-section.active,
.store-selector-section.active {
    display: block;
}

.delivery-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    background: var(--bg-2);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-2);
    margin: 0;
}

.delivery-info svg {
    color: var(--primary);
    flex-shrink: 0;
}

/* Store Selector */
.store-search {
    margin-bottom: 20px;
}

.search-input-group {
    display: flex;
    gap: 8px;
}

.search-input-group input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 14px;
}

.search-input-group input:focus {
    border-color: var(--primary);
    outline: none;
}

.search-input-group button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-input-group button:hover {
    background: var(--primary-dark);
}

.search-input-group .locate-btn {
    background: var(--bg-2);
    color: var(--text);
    border: 1px solid var(--line);
}

.search-input-group .locate-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.store-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px;
    color: var(--text-2);
}

.store-loading .spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--line);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.store-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
}

.store-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--bg-2);
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.store-item:hover {
    background: var(--white);
    border-color: var(--line);
}

.store-item.selected {
    border-color: var(--primary);
    background: var(--primary-light);
}

.store-item .store-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 8px;
    color: var(--primary);
    flex-shrink: 0;
}

.store-item .store-info {
    flex: 1;
}

.store-item .store-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text);
    margin-bottom: 4px;
}

.store-item .store-address {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.4;
}

.store-item .store-distance {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    margin-top: 4px;
}

/* Customer Fields */
.checkout-customer-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.checkout-login-prompt {
    padding: 12px 16px;
    background: var(--bg-2);
    border-radius: 8px;
    margin-bottom: 10px;
}

.checkout-login-prompt p {
    margin: 0;
    font-size: 14px;
    color: var(--text-2);
}

.checkout-login-prompt a {
    color: var(--primary);
    font-weight: 600;
}

.billing-fields .fields-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.billing-fields .field-col {
    display: flex;
    flex-direction: column;
}

.billing-fields .form-row {
    margin-bottom: 0;
}

.billing-fields .woocommerce-input-wrapper {
    width: 100%;
}

.billing-fields label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px;
}

.billing-fields label .required {
    color: #dc2626;
}

.billing-fields input,
.billing-fields select,
.billing-fields textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.billing-fields input:focus,
.billing-fields select:focus,
.billing-fields textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.create-account-section {
    padding: 16px;
    background: var(--bg-2);
    border-radius: 8px;
}

.create-account-section .woocommerce-form__label-for-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.create-account-section input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.create-account-fields {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

/* Additional Fields */
.checkout-additional-fields textarea {
    min-height: 100px;
    resize: vertical;
}

.vehicle-info-fields {
    margin-top: 20px;
    padding: 20px;
    background: var(--bg-2);
    border-radius: 8px;
}

.vehicle-info-fields h5 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 16px 0;
}

.vehicle-info-fields h5 .optional {
    font-weight: 400;
    font-size: 13px;
    color: var(--text-2);
}

/* Coupon Form */
.checkout-coupon-form .coupon-input-group {
    display: flex;
    gap: 8px;
}

.checkout-coupon-form .coupon-input-group input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 14px;
}

.checkout-coupon-form .coupon-input-group input:focus {
    border-color: var(--primary);
    outline: none;
}

.checkout-coupon-form .apply-coupon-btn {
    padding: 12px 20px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.checkout-coupon-form .apply-coupon-btn:hover {
    background: var(--primary-dark);
}

.checkout-coupon-form .coupon-message {
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    display: none;
}

.checkout-coupon-form .coupon-message.success {
    display: block;
    background: #dcfce7;
    color: #166534;
}

.checkout-coupon-form .coupon-message.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
}

.applied-coupons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.applied-coupon {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--primary-light);
    border-radius: 20px;
}

.applied-coupon .coupon-code {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
}

.applied-coupon .remove-coupon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--white);
    border-radius: 50%;
    color: var(--text-2);
    transition: all 0.3s ease;
}

.applied-coupon .remove-coupon:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* Order Review Table */
.checkout-order-review-table table {
    width: 100%;
    border-collapse: collapse;
}

.checkout-order-review-table tbody tr {
    border-bottom: 1px solid var(--line);
}

.checkout-order-review-table tbody td {
    padding: 12px 0;
    font-size: 14px;
}

.checkout-order-review-table .product-name {
    color: var(--text);
}

.checkout-order-review-table .product-quantity {
    color: var(--text-2);
    font-weight: 400;
    margin-left: 8px;
}

.checkout-order-review-table .product-total {
    text-align: right;
    font-weight: 600;
    color: var(--text);
}

.checkout-order-review-table tfoot tr {
    border-top: 1px solid var(--line);
}

.checkout-order-review-table tfoot th,
.checkout-order-review-table tfoot td {
    padding: 12px 0;
    font-size: 14px;
}

.checkout-order-review-table tfoot th {
    text-align: left;
    font-weight: 500;
    color: var(--text-2);
}

.checkout-order-review-table tfoot td {
    text-align: right;
    font-weight: 600;
    color: var(--text);
}

.checkout-order-review-table .order-total th,
.checkout-order-review-table .order-total td {
    font-size: 18px;
    padding-top: 16px;
    border-top: 2px solid var(--text);
}

.checkout-order-review-table .order-total th {
    color: var(--text);
    font-weight: 700;
}

.checkout-order-review-table .order-total td {
    color: var(--primary);
}

/* Payment Section */
.checkout-payment-section .woocommerce-checkout-payment {
    padding: 0;
}

.wc_payment_methods {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.wc_payment_methods li {
    margin-bottom: 12px;
}

.wc_payment_methods li label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-2);
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wc_payment_methods li.active label,
.wc_payment_methods li input:checked + label {
    border-color: var(--primary);
    background: var(--primary-light);
}

.wc_payment_methods li input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

.wc_payment_methods .payment_method_title {
    font-weight: 600;
    color: var(--text);
}

.wc_payment_methods .payment_box {
    padding: 16px;
    margin-top: 12px;
    background: var(--bg-2);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-2);
}

.place-order {
    margin-top: 20px;
}

.place-order .woocommerce-terms-and-conditions-wrapper {
    margin-bottom: 20px;
}

.place-order .woocommerce-terms-and-conditions-checkbox-text {
    font-size: 13px;
    color: var(--text-2);
}

.place-order .woocommerce-terms-and-conditions-checkbox-text a {
    color: var(--primary);
    text-decoration: underline;
}

.place-order #place_order {
    width: 100%;
    padding: 16px 24px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.place-order #place_order:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

.place-order #place_order:disabled {
    background: var(--line);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Trust Badges */
.checkout-trust-badges {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    padding: 20px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

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

.trust-item svg {
    width: 24px;
    height: 24px;
    color: var(--success);
    flex-shrink: 0;
}

.trust-item span {
    font-size: 13px;
    color: var(--text-2);
}

/* Checkout Loading Overlay */
.checkout-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.checkout-loading.active {
    opacity: 1;
    visibility: visible;
}

.checkout-loading .loader {
    text-align: center;
}

.checkout-loading .spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--line);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

.checkout-loading p {
    font-size: 16px;
    color: var(--text-2);
}

/* Responsive Checkout */
@media (max-width: 991px) {
    .tf-one-page-checkout {
        padding: 40px 0;
    }

    .checkout-sidebar {
        position: static;
        margin-top: 24px;
    }

    .checkout-cart-item {
        grid-template-columns: 60px 1fr auto auto;
        gap: 12px;
    }

    .cart-item-image {
        width: 60px;
        height: 60px;
    }

    .cart-item-subtotal {
        display: none;
    }

    .delivery-modes {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .tf-one-page-checkout .section-header {
        padding: 16px;
    }

    .tf-one-page-checkout .section-content {
        padding: 16px;
    }

    .checkout-cart-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cart-item-image {
        width: 100px;
        height: 100px;
        margin: 0 auto;
    }

    .cart-item-details {
        align-items: center;
    }

    .cart-item-quantity {
        display: flex;
        justify-content: center;
    }

    .cart-item-remove {
        margin-top: 10px;
    }

    .billing-fields .fields-row {
        grid-template-columns: 1fr;
    }

    .montage-includes ul {
        grid-template-columns: 1fr;
    }

    .mode-card {
        flex-direction: column;
        text-align: center;
    }

    .checkout-coupon-form .coupon-input-group {
        flex-direction: column;
    }

    .checkout-coupon-form .apply-coupon-btn {
        width: 100%;
    }
}
