/* ============================================
   SHOP PAGE - Professional Soft UI Design
   woocommerce.css
   ============================================ */

/* ==================== Hero ==================== */
.shop-hero {
    position: relative;
    padding: 40px 0;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #f0f0ff 50%, #faf5ff 100%);
}

.shop-hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.shop-hero__shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.shop-hero__shape--1 {
    width: 500px;
    height: 500px;
    background: rgba(99, 102, 241, 0.12);
    top: -200px;
    right: -100px;
}

.shop-hero__shape--2 {
    width: 400px;
    height: 400px;
    background: rgba(139, 92, 246, 0.1);
    bottom: -150px;
    left: -100px;
}

.shop-hero__shape--3 {
    width: 300px;
    height: 300px;
    background: rgba(236, 72, 153, 0.08);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.shop-hero__dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(99, 102, 241, 0.08) 1px, transparent 1px);
    background-size: 30px 30px;
}

.shop-hero__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

/* Hero Content */
.shop-hero__content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.shop-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    width: fit-content;
}

.shop-hero__badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.shop-hero__title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--text);
    line-height: 1.2;
    margin: 0;
    position: relative;
}

.shop-hero__title-highlight {
    display: block;
    width: 80px;
    height: 5px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    margin-top: 16px;
}

.shop-hero__desc {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin: 0;
}

.shop-hero__desc strong {
    color: var(--primary);
    font-weight: 700;
}

.shop-hero__features {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.shop-hero__feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-md);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-xs);
}

.shop-hero__feature:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-primary);
    transform: translateY(-2px);
}

.shop-hero__feature-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(139,92,246,0.1));
    border-radius: 10px;
    color: var(--primary);
}

/* Hero Visual - Featured Cards */
.shop-hero__visual {
    display: flex;
    justify-content: center;
}

.shop-hero__cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 420px;
}

.shop-hero__card {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.shop-hero__card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 0 4px 4px 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.shop-hero__card:hover {
    transform: translateX(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99,102,241,0.2);
}

.shop-hero__card:hover::before {
    opacity: 1;
}

.shop-hero__card--1 { transition-delay: 0.1s; }
.shop-hero__card--2 { transition-delay: 0.2s; }

.shop-hero__card-img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    background: var(--bg-light);
}

.shop-hero__card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.shop-hero__card:hover .shop-hero__card-img img {
    transform: scale(1.1);
}

.shop-hero__card-sale {
    position: absolute;
    top: 4px;
    right: 4px;
    padding: 2px 8px;
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 6px;
}

.shop-hero__card-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.shop-hero__card-info h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
}

.shop-hero__card-info h4 a {
    color: var(--text);
    transition: color 0.2s;
}

.shop-hero__card-info h4 a:hover {
    color: var(--primary);
}

.shop-hero__card-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}

.shop-hero__card-price del {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 400;
    margin-left: 8px;
}

.shop-hero__card-price ins {
    text-decoration: none;
}

/* ==================== Shop Content ==================== */
.shop-content {
    padding: 40px 0 80px;
}

.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    position: relative;
}

/* Mobile Actions */
.shop-mobile-actions {
    display: none;
    gap: 12px;
    margin-bottom: 24px;
    align-items: center;
}

.shop-filter-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.shop-filter-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.shop-filter-toggle svg {
    color: var(--primary);
}

/* ==================== Sidebar ==================== */
.shop-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.shop-sidebar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.shop-sidebar__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.shop-sidebar__title svg {
    color: var(--primary);
}

.shop-sidebar__close {
    display: none;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.shop-sidebar__close:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* Search */
.shop-sidebar__search {
    position: relative;
}

.shop-search-input {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.shop-search-input:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.08);
}

.shop-search-input svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.shop-search-input input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text);
}

.shop-search-input input::placeholder {
    color: var(--text-muted);
}

/* Widgets */
.shop-sidebar__widgets {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.shop-widget {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.shop-widget:hover {
    border-color: rgba(99, 102, 241, 0.2);
}

.shop-widget__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.shop-widget__header:hover {
    background: var(--bg-light);
}

.shop-widget__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}

.shop-widget__title svg {
    color: var(--primary);
}

.shop-widget__arrow {
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.shop-widget[data-widget="closed"] .shop-widget__arrow {
    transform: rotate(-90deg);
}

.shop-widget__body {
    padding: 0 20px 16px;
    max-height: 400px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.shop-widget[data-widget="closed"] .shop-widget__body {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
}

.shop-widget[data-widget="open"] .shop-widget__body {
    opacity: 1;
}

/* Widget Lists */
.shop-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.shop-widget ul li {
    margin-bottom: 4px;
}

.shop-widget ul li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    color: var(--text-md);
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.shop-widget ul li a:hover {
    background: rgba(99, 102, 241, 0.06);
    color: var(--primary);
    padding-right: 16px;
}

.shop-widget ul li.current-cat > a,
.shop-widget ul li.chosen a {
    background: rgba(99, 102, 241, 0.08);
    color: var(--primary);
    font-weight: 600;
}

.shop-widget ul li .count {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--bg-light);
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 500;
}

/* ==================== Smart Filters (Custom) ==================== */
.sf-filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sf-filter-sublist {
    list-style: none;
    margin: 6px 0 0;
    padding: 0 0 0 16px;
    border-right: 2px solid var(--bg-light);
}

.sf-filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-md);
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.sf-filter-item input {
    display: none;
}

.sf-filter-check {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 1.8px solid var(--border);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.sf-filter-check::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 4px;
    background: transparent;
    transition: background 0.2s ease, transform 0.2s ease;
    transform: scale(0.6);
}

.sf-filter-item input:checked + .sf-filter-check::after {
    background: var(--primary);
}

.sf-filter-item input:checked + .sf-filter-check {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.sf-filter-label {
    flex: 1;
}

.sf-filter-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--bg-light);
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 500;
}

.sf-filter-item.is-active {
    background: rgba(99, 102, 241, 0.06);
    color: var(--primary);
    transform: translateX(-2px);
}

.sf-filter-item.is-active .sf-filter-check {
    border-color: var(--primary);
}

/* Rating filters */
.sf-filter-check--radio {
    border-radius: 999px;
}

.sf-filter-stars {
    display: inline-flex;
    gap: 2px;
    margin-right: 4px;
    color: #facc15;
}

.sf-filter-stars .star-empty {
    color: #e5e7eb;
}

/* Active filters bar */
.shop-sidebar__active-filters,
.sf-active-filters__list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sf-active-filters__header {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.sf-active-filters__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 0.8rem;
}

.sf-active-filters__chip button {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: inherit;
}

/* ==================== Price Range Filter ==================== */
.sf-price-filter {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sf-price-slider {
    position: relative;
    padding: 8px 0 4px;
}

.sf-price-track {
    position: relative;
    height: 4px;
    background: #e5e7eb;
    border-radius: 999px;
}

.sf-price-range {
    position: absolute;
    top: 0;
    height: 4px;
    background: linear-gradient(90deg, #4f46e5, #6366f1);
    border-radius: 999px;
}

.sf-price-track input[type="range"] {
    position: absolute;
    left: 0;
    right: 0;
    top: -6px;
    width: 100%;
    margin: 0;
    pointer-events: none;
    -webkit-appearance: none;
    background: transparent;
}

.sf-price-track input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #ffffff;
    border: 2px solid #4f46e5;
    box-shadow: 0 4px 10px rgba(79,70,229,0.4);
    pointer-events: auto;
}

.sf-price-track input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #ffffff;
    border: 2px solid #4f46e5;
    box-shadow: 0 4px 10px rgba(79,70,229,0.4);
    pointer-events: auto;
}

.sf-price-track input[type="range"]::-webkit-slider-runnable-track,
.sf-price-track input[type="range"]::-moz-range-track {
    height: 4px;
    background: transparent;
}

.sf-price-inputs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.sf-price-input {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    background: #f9fafb;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
	overflow: hidden;
}

.sf-price-input label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.sf-price-input input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.85rem;
    text-align: left;
    direction: ltr;
    pointer-events: auto;
    position: relative;
    z-index: 1;
	color: var(--text);
	min-width: 0;
    width: 100%;
}

.sf-price-input span {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Sidebar Actions */
.shop-sidebar__actions {
    padding-top: 8px;
}

/* Buttons */
.shop-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}

.shop-btn--primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: var(--shadow-primary);
}

.shop-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
    color: white;
}

.shop-btn--outline {
    background: white;
    color: var(--text-md);
    border: 2px solid var(--border);
}

.shop-btn--outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(99, 102, 241, 0.04);
}

.shop-btn--full {
    width: 100%;
}

/* Sidebar Overlay */
.shop-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.shop-sidebar-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

/* ==================== Toolbar ==================== */
.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    gap: 20px;
    box-shadow: var(--shadow-xs);
}

.shop-toolbar__right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.shop-toolbar__count {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
    white-space: nowrap;
}

.shop-toolbar__count svg {
    color: var(--primary);
    flex-shrink: 0;
}

.shop-toolbar__left {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* View Toggle */
.shop-toolbar__view {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--bg-light);
    border-radius: 10px;
}

.shop-view-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.shop-view-btn.active {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.shop-view-btn:hover:not(.active) {
    color: var(--text);
}

/* Sort Select */
.shop-toolbar__sort .woocommerce-ordering {
    margin: 0;
}

.shop-toolbar__sort .woocommerce-ordering select {
    padding: 10px 40px 10px 16px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: inherit;
    color: var(--text);
    background-color: white;
    cursor: pointer;
    transition: all 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
}

.shop-toolbar__sort .woocommerce-ordering select:hover {
    border-color: var(--primary);
}

.shop-toolbar__sort .woocommerce-ordering select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.08);
}

/* ==================== Products Grid ==================== */
.shop-products-grid .products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* List View */
.shop-products-grid--list .products {
   grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px;
}

.sf-sort-select {
    min-width: 150px;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1.8px solid var(--border);
    background: #ffffff;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text-md);
    outline: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(15,23,42,0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.sf-sort-select:hover,
.sf-sort-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
    color: var(--primary);
}

    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 16px;
}

.shop-products-grid--list .products .product .product-image {
    width: 150px;
    height: 150px;
    flex-shrink: 0;
}

.shop-products-grid--list .products .product .sf-product-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
/* Product Animation */
.shop-products-grid .products .product {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.shop-products-grid .products .product.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== Pagination ==================== */
.shop-pagination {
    margin-top: 48px;
}

.shop-pagination .woocommerce-pagination {
    display: flex;
    justify-content: center;
}

.shop-pagination .woocommerce-pagination ul {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.shop-pagination .woocommerce-pagination ul li a,
.shop-pagination .woocommerce-pagination ul li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.shop-pagination .woocommerce-pagination ul li a:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.shop-pagination .woocommerce-pagination ul li span.current {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
    color: white;
    box-shadow: var(--shadow-primary);
}

/* ==================== Empty State ==================== */
.shop-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    text-align: center;
}

.shop-empty__icon {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(139,92,246,0.08));
    border-radius: 50%;
    margin-bottom: 24px;
    color: var(--primary);
}

.shop-empty__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 12px;
}

.shop-empty__desc {
    font-size: 1rem;
    color: var(--text-light);
    margin: 0 0 32px;
    max-width: 400px;
    line-height: 1.7;
}

/* ==================== Active Filters ==================== */
.shop-toolbar__filters .widget_layered_nav_filters ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.shop-toolbar__filters .widget_layered_nav_filters ul li a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.08);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s;
}

.shop-toolbar__filters .widget_layered_nav_filters ul li a:hover {
    background: var(--accent);
    color: white;
}

/* ==================== Price Filter ==================== */
.price_slider_wrapper {
    padding: 8px 0;
}

.price_slider_amount {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.price_slider_amount .price_label {
    font-size: 0.85rem;
    color: var(--text-light);
}

.price_slider_amount button {
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.price_slider_amount button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-primary);
}

/* ==================== Responsive ==================== */
@media (max-width: 1200px) {
    .shop-hero__inner {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .shop-hero__content {
        align-items: center;
    }
    
    .shop-hero__features {
        justify-content: center;
    }
    
    .shop-hero__title-highlight {
        margin-left: auto;
        margin-right: auto;
    }
    
    .shop-hero__visual {
        display: none;
    }
    
    .shop-layout {
        grid-template-columns: 1fr;
    }
    
    .shop-mobile-actions {
        display: flex;
    }
    
    /* Sidebar Mobile */
    .shop-sidebar {
        position: fixed;
        top: 0;
        right: -340px;
        width: 320px;
        height: 100vh;
        background: white;
        z-index: 999;
        padding: 24px;
        overflow-y: auto;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -8px 0 40px rgba(0, 0, 0, 0.1);
        gap: 16px;
    }
    
    .shop-sidebar.is-open {
        right: 0;
    }
    
    .shop-sidebar__close {
        display: flex;
    }
    
    .shop-products-grid .products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .shop-hero {
        padding: 60px 0 40px;
    }
    
    .shop-hero__title {
        font-size: 2rem;
    }
    
    .shop-hero__features {
        flex-direction: column;
        align-items: stretch;
    }
    
    .shop-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 16px;
    }
    
    .shop-toolbar__right {
        flex-direction: column;
        align-items: stretch;
    }
    
    .shop-toolbar__left {
        justify-content: space-between;
    }
    
    .shop-products-grid .products {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .shop-products-grid--list .products {
        grid-template-columns: 1fr;
    }
    
    .shop-products-grid--list .products .product {
       display: flex;
       flex-direction: column;
    }
}

@media (max-width: 480px) {
    .shop-hero {
        padding: 40px 0 30px;
    }
    
    .shop-hero__title {
        font-size: 1.6rem;
    }
    
    .shop-hero__desc {
        font-size: 0.95rem;
    }
    
    .shop-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .shop-products-grid .products {
        grid-template-columns: 1fr;
    }
    
    .shop-filter-toggle {
        flex: 1;
    }
    
    .shop-toolbar__view {
        display: none;
    }
    
    .shop-pagination .woocommerce-pagination ul li a,
    .shop-pagination .woocommerce-pagination ul li span {
        min-width: 38px;
        height: 38px;
        font-size: 0.85rem;
    }
}

/* ==================== Print ==================== */
@media print {
    .shop-hero,
    .shop-sidebar,
    .shop-toolbar,
    .shop-pagination,
    .shop-mobile-actions {
        display: none !important;
    }
    
    .shop-layout {
        grid-template-columns: 1fr;
    }
}

/* ==================== Animations ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.shop-hero__badge { animation: fadeInUp 0.6s ease forwards; }
.shop-hero__title { animation: fadeInUp 0.6s 0.1s ease forwards; }
.shop-hero__desc { animation: fadeInUp 0.6s 0.2s ease forwards; }
.shop-hero__features { animation: fadeInUp 0.6s 0.3s ease forwards; }
.shop-hero__cards { animation: fadeInUp 0.6s 0.4s ease forwards; }

/* Smooth scrollbar for sidebar */
.shop-sidebar::-webkit-scrollbar {
    width: 4px;
}

.shop-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.shop-sidebar::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.shop-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}


/* ============================================
   CART & CHECKOUT PAGES - Modern Design v2
   Inspired by About/Contact pages
   ============================================ */

/* ==================== CART PAGE ==================== */
.sf-cart-page {
    padding: 0;
    background: #fafbff;
    min-height: 70vh;
    font-family: 'Vazirmatn', sans-serif;
}

/* Cart Hero Section */
.sf-cart-page__hero {
    background: linear-gradient(160deg, #312e81 0%, #4338ca 30%, #6366f1 60%, #818cf8 100%);
    padding: 3.5rem 0 2.5rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.sf-cart-page__hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.sf-cart-page__hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

.sf-cart-page__header {
    text-align: center;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

.sf-cart-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.12);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
    border: 1px solid rgba(255,255,255,0.2);
}

.sf-cart-badge .badge-dot {
    width: 6px;
    height: 6px;
    background: #34d399;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

.sf-cart-page__title {
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    margin: 0 0 0.5rem;
    line-height: 1.2;
}

.sf-cart-page__title .title-highlight {
    background: linear-gradient(135deg, #c4b5fd, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sf-cart-page__subtitle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.08);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 400;
    border: 1px solid rgba(255,255,255,0.15);
}

.sf-cart-page__subtitle svg {
    color: #fbbf24;
}

/* Cart Content Section */
.sf-cart-content {
    padding: 2.5rem 0 3rem;
}

/* Cart Layout */
.sf-cart-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    align-items: start;
}

/* Cart Items */
.sf-cart-items {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 2px 16px rgba(99,102,241,0.04);
    border: 1px solid rgba(99,102,241,0.08);
}

.sf-cart-item {
    display: grid;
    grid-template-columns: 100px 1fr 120px 120px 120px 50px;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(99,102,241,0.06);
    transition: all 0.3s ease;
    border-radius: 12px;
}

.sf-cart-item:hover {
    background: #fafbff;
}

.sf-cart-item:last-child {
    border-bottom: none;
}

/* Product Image */
.sf-cart-item__image {
    width: 100px;
    height: 100px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(99,102,241,0.08);
    border: 1px solid rgba(99,102,241,0.06);
}

.sf-cart-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.sf-cart-item:hover .sf-cart-item__image img {
    transform: scale(1.08);
}

/* Product Info */
.sf-cart-item__info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sf-cart-item__name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e1b4b;
    margin: 0;
}

.sf-cart-item__name a {
    color: #1e1b4b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sf-cart-item__name a:hover {
    color: #6366f1;
}

.sf-cart-item__price-mobile {
    display: none;
    font-size: 1rem;
    font-weight: 700;
    color: #6366f1;
}

/* Quantity */
.sf-cart-item__quantity .quantity {
    display: flex;
    align-items: center;
    border: 2px solid rgba(99,102,241,0.12);
    border-radius: 50px;
    overflow: hidden;
    background: #fafbff;
}

.sf-cart-item__quantity input[type="number"] {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: #1e1b4b;
    background: transparent;
    -moz-appearance: textfield;
}

.sf-cart-item__quantity input[type="number"]::-webkit-outer-spin-button,
.sf-cart-item__quantity input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Price & Subtotal */
.sf-cart-item__price,
.sf-cart-item__subtotal {
    font-size: 1.05rem;
    font-weight: 700;
    color: #374151;
}

.sf-cart-item__subtotal {
    color: #6366f1;
    font-size: 1.15rem;
}

/* Remove Button */
.sf-cart-item__remove-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(239,68,68,0.08);
    color: #ef4444;
    transition: all 0.3s ease;
    text-decoration: none;
}

.sf-cart-item__remove-btn:hover {
    background: #ef4444;
    color: white;
    transform: scale(1.1) rotate(90deg);
}

/* Cart Actions */
.sf-cart-actions {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(99,102,241,0.08);
}

.sf-cart-update-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.4rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(99,102,241,0.25);
    font-family: 'Vazirmatn', sans-serif;
}

.sf-cart-update-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(99,102,241,0.35);
}

/* Cart Summary */
.sf-cart-summary {
    position: sticky;
    top: 100px;
}

.sf-cart-summary__inner {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 2px 16px rgba(99,102,241,0.04);
    border: 1px solid rgba(99,102,241,0.08);
}

.sf-cart-summary__title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e1b4b;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(99,102,241,0.08);
}

.sf-cart-summary__content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.sf-cart-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
}

.sf-cart-summary__label {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 500;
}

.sf-cart-summary__value {
    font-size: 1rem;
    font-weight: 700;
    color: #374151;
}

.sf-cart-summary__row--total {
    padding-top: 1.5rem;
    margin-top: 1rem;
    border-top: 2px solid rgba(99,102,241,0.08);
}

.sf-cart-summary__row--total .sf-cart-summary__label {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1e1b4b;
}

.sf-cart-summary__value--total {
    font-size: 1.6rem;
    font-weight: 900;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sf-cart-summary__row--discount .sf-cart-summary__label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #10b981;
}

.sf-cart-summary__value--discount {
    color: #10b981;
}

.sf-cart-summary__remove-coupon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ef4444;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sf-cart-summary__remove-coupon:hover {
    transform: scale(1.15) rotate(90deg);
}

/* Coupon */
.sf-cart-summary__coupon {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.sf-cart-summary__coupon-input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: 2px solid rgba(99,102,241,0.12);
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #fafbff;
    font-family: 'Vazirmatn', sans-serif;
    color: #1e1b4b;
}

.sf-cart-summary__coupon-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background: white;
}

.sf-cart-summary__coupon-btn {
    padding: 0.875rem 1.5rem;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: 'Vazirmatn', sans-serif;
    box-shadow: 0 4px 12px rgba(16,185,129,0.25);
}

.sf-cart-summary__coupon-btn:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16,185,129,0.35);
}

/* Checkout Button */
.sf-cart-summary__checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(99,102,241,0.25);
    margin-bottom: 1rem;
    font-family: 'Vazirmatn', sans-serif;
}

.sf-cart-summary__checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(99,102,241,0.35);
    color: white;
}

.sf-cart-summary__continue-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: #fafbff;
    color: #64748b;
    border: 2px solid rgba(99,102,241,0.12);
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Vazirmatn', sans-serif;
}

.sf-cart-summary__continue-btn:hover {
    background: white;
    color: #6366f1;
    border-color: #6366f1;
}

/* ==================== EMPTY CART ==================== */
.sf-cart-empty {
    padding: 0;
    background: #fafbff;
    min-height: 70vh;
}

.sf-cart-empty__hero {
    background: linear-gradient(160deg, #312e81 0%, #4338ca 30%, #6366f1 60%, #818cf8 100%);
    padding: 3.5rem 0 2.5rem;
    text-align: center;
    color: white;
}

.sf-cart-empty__content {
    text-align: center;
    max-width: 600px;
    margin: 3rem auto;
    background: white;
    padding: 4rem 3rem;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(99,102,241,0.08);
    border: 1px solid rgba(99,102,241,0.08);
}

.sf-cart-empty__icon {
    margin-bottom: 2rem;
}

.sf-cart-empty__icon svg {
    color: #cbd5e1;
    opacity: 0.4;
}

.sf-cart-empty__title {
    font-size: 2rem;
    font-weight: 900;
    color: #1e1b4b;
    margin-bottom: 1rem;
}

.sf-cart-empty__text {
    font-size: 1.05rem;
    color: #64748b;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.sf-cart-empty__actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sf-cart-empty__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.8rem 1.6rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Vazirmatn', sans-serif;
}

.sf-cart-empty__btn--primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    box-shadow: 0 4px 16px rgba(99,102,241,0.25);
}

.sf-cart-empty__btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(99,102,241,0.35);
    color: white;
}

.sf-cart-empty__btn--secondary {
    background: white;
    color: #64748b;
    border: 2px solid rgba(99,102,241,0.12);
}

.sf-cart-empty__btn--secondary:hover {
    background: #fafbff;
    color: #6366f1;
    border-color: #6366f1;
}

/* ==================== CART PAGE (About/Contact Style) ==================== */
.cart-page {
    background: #fafbff;
    font-family: 'Vazirmatn', sans-serif;
}

.cart-hero {
    background: linear-gradient(160deg, #312e81 0%, #4338ca 30%, #6366f1 60%, #818cf8 100%);
    padding: 3.5rem 0 2.5rem;
    text-align: center;
    color: white;
}

.cart-hero__content {
    position: relative;
    z-index: 2;
}

.cart-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.12);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
    border: 1px solid rgba(255,255,255,0.2);
}

.cart-badge .badge-dot {
    width: 6px;
    height: 6px;
    background: #34d399;
    border-radius: 50%;
}

.cart-hero h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0 0 0.5rem;
    line-height: 1.2;
}

.cart-hero .hero-highlight {
    background: linear-gradient(135deg, #c4b5fd, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cart-hero .hero-subtitle {
    font-size: 1rem;
    opacity: 0.8;
    margin: 0;
    font-weight: 300;
}

.cart-main {
    padding: 2.5rem 0 3rem;
}

.cart-page .section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.cart-page .section-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6366f1;
    letter-spacing: 1px;
}

.cart-page .section-label.center {
    justify-content: center;
}

.cart-page .label-line {
    display: block;
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #a78bfa);
    border-radius: 2px;
}

.cart-page .section-subtitle {
    font-size: 0.9rem;
    color: #94a3b8;
    max-width: 520px;
    margin: 0.25rem auto 0;
}

@media (max-width: 768px) {
    .cart-hero {
        padding: 2.5rem 0 2rem;
    }
    .cart-hero h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .cart-hero h1 {
        font-size: 1.75rem;
    }
}

/* ==================== CHECKOUT PAGE ==================== */
.sf-checkout-page {
    padding: 0;
    background: #fafbff;
    min-height: 70vh;
    font-family: 'Vazirmatn', sans-serif;
}

/* Checkout Hero */
.sf-checkout-page__hero {
    background: linear-gradient(160deg, #312e81 0%, #4338ca 30%, #6366f1 60%, #818cf8 100%);
    padding: 3.5rem 0 2.5rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.sf-checkout-page__hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.sf-checkout-page__hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

.sf-checkout-page__header {
    text-align: center;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

.sf-checkout-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.12);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
    border: 1px solid rgba(255,255,255,0.2);
}

.sf-checkout-badge .badge-dot {
    width: 6px;
    height: 6px;
    background: #34d399;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

.sf-checkout-page__title {
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    margin: 0 0 2rem;
    line-height: 1.2;
}

.sf-checkout-page__title .title-highlight {
    background: linear-gradient(135deg, #c4b5fd, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Checkout Content */
.sf-checkout-content {
    padding: 2.5rem 0 3rem;
}

/* Checkout Steps */
.sf-checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.sf-checkout-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.sf-checkout-step__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: 3px solid rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.7);
    font-size: 1.15rem;
    font-weight: 800;
    transition: all 0.3s ease;
}

.sf-checkout-step--completed .sf-checkout-step__icon {
    background: #10b981;
    border-color: #10b981;
    color: white;
    box-shadow: 0 4px 12px rgba(16,185,129,0.3);
}

.sf-checkout-step--active .sf-checkout-step__icon {
    background: linear-gradient(135deg, #c4b5fd, #fbbf24);
    border-color: #fbbf24;
    color: #312e81;
    box-shadow: 0 0 0 4px rgba(251,191,36,0.2);
    transform: scale(1.1);
}

.sf-checkout-step__label {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255,255,255,0.8);
}

.sf-checkout-step--active .sf-checkout-step__label {
    color: #fbbf24;
}

.sf-checkout-step__line {
    width: 80px;
    height: 3px;
    background: rgba(255,255,255,0.2);
    margin-top: -1.5rem;
    border-radius: 2px;
}

/* Checkout Layout */
.sf-checkout-layout {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 2rem;
    align-items: start;
}

/* Checkout Forms */
.sf-checkout-forms {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Checkout Section */
.sf-checkout-section {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 2px 16px rgba(99,102,241,0.04);
    border: 1px solid rgba(99,102,241,0.08);
}

.sf-checkout-section--sticky {
    position: sticky;
    top: 100px;
}

.sf-checkout-section__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(99,102,241,0.08);
}

.sf-checkout-section__header svg {
    color: #6366f1;
    flex-shrink: 0;
}

.sf-checkout-section__title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1e1b4b;
    margin: 0;
}

.sf-checkout-section__content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Form Fields - Scoped to prevent header conflicts */
.sf-checkout-page .woocommerce-checkout .form-row {
    margin-bottom: 1.25rem;
}

.sf-checkout-page .woocommerce-checkout label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.5rem;
}

.sf-checkout-page .woocommerce-checkout label .required {
    color: #ef4444;
    margin-right: 0.25rem;
}

.sf-checkout-page .woocommerce-checkout input[type="text"],
.sf-checkout-page .woocommerce-checkout input[type="email"],
.sf-checkout-page .woocommerce-checkout input[type="tel"],
.sf-checkout-page .woocommerce-checkout input[type="number"],
.sf-checkout-page .woocommerce-checkout textarea,
.sf-checkout-page .woocommerce-checkout select {
    width: 100% !important;
    padding: 0.875rem 1.25rem !important;
    border: 2px solid rgba(99,102,241,0.12) !important;
    border-radius: 12px !important;
    font-size: 0.95rem !important;
    transition: all 0.3s ease !important;
    background: #fafbff !important;
    font-family: 'Vazirmatn', sans-serif !important;
    color: #1e1b4b !important;
}

.sf-checkout-page .woocommerce-checkout input:focus,
.sf-checkout-page .woocommerce-checkout textarea:focus,
.sf-checkout-page .woocommerce-checkout select:focus {
    outline: none !important;
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1) !important;
    background: white !important;
}

.sf-checkout-page .woocommerce-checkout textarea {
    min-height: 120px;
    resize: vertical;
}

.sf-checkout-page .woocommerce-checkout .select2-container {
    width: 100% !important;
}

.sf-checkout-page .woocommerce-checkout .select2-container .select2-selection--single {
    height: 48px !important;
    border: 2px solid rgba(99,102,241,0.12) !important;
    border-radius: 12px !important;
    background: #fafbff !important;
}

.sf-checkout-page .woocommerce-checkout .select2-container .select2-selection__rendered {
    line-height: 44px !important;
    padding-right: 1.25rem !important;
    color: #1e1b4b !important;
}

/* Checkbox & Radio - Scoped */
.sf-checkout-page .woocommerce-checkout input[type="checkbox"],
.sf-checkout-page .woocommerce-checkout input[type="radio"],
.sf-cart-page input[type="checkbox"],
.sf-cart-page input[type="radio"] {
    width: 20px !important;
    height: 20px !important;
    margin-left: 0.5rem !important;
    accent-color: #6366f1 !important;
}

/* Order Review */
.sf-order-review {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sf-order-review__items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
    padding-left: 0.5rem;
}

.sf-order-review__items::-webkit-scrollbar {
    width: 6px;
}

.sf-order-review__items::-webkit-scrollbar-track {
    background: #fafbff;
    border-radius: 10px;
}

.sf-order-review__items::-webkit-scrollbar-thumb {
    background: #6366f1;
    border-radius: 10px;
}

.sf-order-review__item {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: #fafbff;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(99,102,241,0.06);
}

.sf-order-review__item:hover {
    background: #f0eeff;
    border-color: rgba(99,102,241,0.12);
}

.sf-order-review__item-image {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(99,102,241,0.08);
}

.sf-order-review__item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sf-order-review__item-qty {
    position: absolute;
    top: -8px;
    right: -8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(99,102,241,0.3);
    border: 2px solid white;
}

.sf-order-review__item-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sf-order-review__item-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e1b4b;
    margin: 0;
    line-height: 1.4;
}

.sf-order-review__item-total {
    font-size: 1rem;
    font-weight: 800;
    color: #6366f1;
}

/* Order Totals */
.sf-order-review__totals {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
    background: #fafbff;
    border-radius: 12px;
    border: 1px solid rgba(99,102,241,0.08);
}

.sf-order-review__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.sf-order-review__label {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.sf-order-review__value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #374151;
}

.sf-order-review__row--total {
    padding-top: 1rem;
    margin-top: 0.75rem;
    border-top: 2px solid rgba(99,102,241,0.12);
}

.sf-order-review__row--total .sf-order-review__label {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e1b4b;
}

.sf-order-review__value--total {
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Payment Methods */
.sf-payment-methods {
    margin-top: 1rem;
}

.wc_payment_methods {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.wc_payment_method {
    margin-bottom: 1rem;
}

.wc_payment_method label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #fafbff;
    border: 2px solid rgba(99,102,241,0.12);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    color: #374151;
}

.wc_payment_method label:hover {
    background: white;
    border-color: #6366f1;
    color: #6366f1;
}

.wc_payment_method input[type="radio"]:checked + label {
    background: white;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

.payment_box {
    padding: 1rem;
    background: white;
    border: 2px solid rgba(99,102,241,0.12);
    border-radius: 12px;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
}

/* Place Order Button */
.sf-place-order-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(99,102,241,0.25);
    font-family: 'Vazirmatn', sans-serif;
}

.sf-place-order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(99,102,241,0.35);
}

.sf-place-order-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Terms & Conditions */
.woocommerce-terms-and-conditions-wrapper {
    margin-bottom: 1.5rem;
}

.woocommerce-terms-and-conditions-checkbox-text {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
}

.woocommerce-terms-and-conditions-checkbox-text a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 700;
}

.woocommerce-terms-and-conditions-checkbox-text a:hover {
    text-decoration: underline;
}

/* ==================== Product Cards (Shop Grid) ==================== */
.products.columns-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Override columns-3 in list view */
.shop-products-grid--list .products.columns-3 {
    grid-template-columns: repeat(2, 1fr) !important;
}

.products.columns-3 > li.product {
    margin: 0;
}

.sf-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    height: 100%;
}

.sf-product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.3);
}

.sf-product-card__image {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: var(--bg-light);
    border: 1px solid rgba(15,23,42,0.06);
}

.sf-product-card__image-link {
    display: block;
}

.sf-product-card__image img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.sf-product-card:hover .sf-product-card__image img {
    transform: scale(1.05);
}

.sf-product-card__badges {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}

.sf-product-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffffff;
}

.sf-product-card__badge--sale {
    background: var(--accent);
}

.sf-product-card__badge--featured {
    background: var(--accent-light);
}

.sf-product-card__badge svg {
    display: inline-block;
}

.sf-product-card__actions {
    position: absolute;
    left: 10px;
    top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sf-product-card__action {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: none;
    background: rgba(255,255,255,0.9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    box-shadow: 0 4px 10px rgba(15,23,42,0.12);
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.sf-product-card__action:hover {
    background: #4f46e5;
    color: #ffffff;
    transform: translateY(-1px);
}

.sf-product-card__info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 2px 0;
}

.sf-product-card__category {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.sf-product-card__title {
    font-size: 0.98rem;
    font-weight: 700;
    margin: 0;
}

.sf-product-card__title a {
    color: var(--text);
    text-decoration: none;
}

.sf-product-card__title a:hover {
    color: var(--primary);
}

.sf-product-card__rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #facc15;
}

.sf-product-card__stars {
    display: inline-flex;
    gap: 2px;
}

.sf-product-card__stars .star-empty {
    color: #e5e7eb;
}

.sf-product-card__rating-count {
    color: var(--text-muted);
}

.sf-product-card__footer {
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.sf-product-card__price {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sf-product-card__price-current {
    font-weight: 800;
    color: var(--primary);
    font-size: 0.95rem;
}

.sf-product-card__price-old {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.sf-product-card__cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(79,70,229,0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sf-product-card__cart-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(79,70,229,0.35);
}

/* ==================== RESPONSIVE - CART & CHECKOUT ==================== */
@media (max-width: 1024px) {
    .sf-cart-layout,
    .sf-checkout-layout {
        grid-template-columns: 1fr;
    }
    
    .sf-cart-summary,
    .sf-checkout-section--sticky {
        position: static;
    }
    
    .story-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sf-cart-page,
    .sf-checkout-page {
        padding: 0;
    }
    
    .sf-cart-page__hero,
    .sf-checkout-page__hero {
        padding: 2.5rem 0 2rem;
    }
    
    .sf-cart-page__title,
    .sf-checkout-page__title {
        font-size: 2rem;
    }
    
    .sf-cart-items {
        padding: 1rem;
    }
    
    .sf-cart-item {
        grid-template-columns: 80px 1fr 40px;
        gap: 1rem;
        padding: 1rem;
    }
    
    .sf-cart-item__quantity,
    .sf-cart-item__price,
    .sf-cart-item__subtotal {
        display: none;
    }
    
    .sf-cart-item__price-mobile {
        display: block;
    }
    
    .sf-cart-item__image {
        width: 80px;
        height: 80px;
    }
    
    .sf-cart-summary__inner {
        padding: 1.5rem;
    }
    
    .sf-cart-empty__content {
        padding: 3rem 2rem;
    }
    
    .sf-cart-empty__title {
        font-size: 1.5rem;
    }
    
    .sf-checkout-steps {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .sf-checkout-step {
        flex-direction: row;
        width: 100%;
        justify-content: flex-start;
    }
    
    .sf-checkout-step__line {
        display: none;
    }
    
    .sf-checkout-section {
        padding: 1.5rem;
    }
    
    .sf-checkout-section__title {
        font-size: 1.25rem;
    }
    
    .sf-order-review__items {
        max-height: 300px;
    }
    
    .sf-order-review__item {
        grid-template-columns: 50px 1fr auto;
        gap: 0.75rem;
        padding: 0.75rem;
    }
    
    .sf-order-review__item-image {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .sf-cart-page__title,
    .sf-checkout-page__title {
        font-size: 1.75rem;
    }
    
    .sf-cart-item {
        grid-template-columns: 70px 1fr 36px;
        padding: 0.85rem;
    }
    
    .sf-cart-item__image {
        width: 70px;
        height: 70px;
    }
    
    .sf-cart-summary__inner,
    .sf-checkout-section {
        padding: 1.25rem;
    }
    
    .sf-checkout-step__icon {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
}

/* ============================================
   SINGLE PRODUCT PAGE - Premium Design
   ============================================ */

/* ==================== Breadcrumb ==================== */
.sf-breadcrumb {
    padding: 20px 0;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
}

.sf-breadcrumb__nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.sf-breadcrumb__nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    transition: color 0.2s;
}

.sf-breadcrumb__nav a:hover {
    color: var(--primary);
}

.sf-breadcrumb__sep {
    color: var(--text-muted);
}

.sf-breadcrumb__current {
    color: var(--text);
    font-weight: 600;
}

/* ==================== Product Main Section ==================== */
.sf-product {
    padding: 60px 0;
    background: white;
}

.sf-product__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

/* ==================== Gallery ==================== */
.sf-product__gallery {
    position: sticky;
    top: 100px;
}

.sf-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sf-gallery__main {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--bg-light);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border);
}

.sf-gallery__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.sf-gallery__main:hover .sf-gallery__image {
    transform: scale(1.05);
}

.sf-gallery__badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    z-index: 5;
    backdrop-filter: blur(10px);
}

.sf-gallery__badge--sale {
    background: linear-gradient(135deg, #ec4899, #f43f5e);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.sf-gallery__badge--featured {
    background: rgba(245, 158, 11, 0.95);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* دکمه‌های اکشن (ذره‌بین، علاقه‌مندی، اشتراک‌گذاری) */
.sf-gallery__actions {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

.sf-gallery__action {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    pointer-events: auto;
}

.sf-gallery__action:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.sf-gallery__action.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.sf-gallery__action.is-active svg {
    fill: white;
}

/* تامبنیل‌های گالری */
.sf-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
}

.sf-gallery__thumb {
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid var(--border);
    background: var(--bg-light);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.sf-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sf-gallery__thumb:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.sf-gallery__thumb.is-active {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}


/* ==================== Product Info ==================== */
.sf-product__info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sf-product__meta-top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
}

.sf-product__category {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.08);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.sf-product__category:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.sf-product__stock {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
}

.sf-product__stock--in {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.sf-product__stock--out {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.sf-product__stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

.sf-product__stock--in .sf-product__stock-dot {
    background: #16a34a;
}

.sf-product__stock--out .sf-product__stock-dot {
    background: #dc2626;
}

.sf-product__title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.3;
    margin: 0;
}

.sf-product__rating-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.sf-product__rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sf-product__stars {
    display: flex;
    gap: 2px;
}

.sf-product__stars .star-on {
    color: #facc15;
}

.sf-product__stars .star-off {
    color: #e5e7eb;
}

.sf-product__rating-num {
    font-weight: 700;
    color: var(--text);
}

.sf-product__review-link {
    color: var(--primary);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.sf-product__review-link:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.sf-product__sku {
    padding: 4px 12px;
    background: var(--bg-light);
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.sf-product__price-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
    border: 2px solid rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-lg);
}

.sf-product__price-old {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.sf-product__price-current {
    font-size: 1.7rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}

.sf-product__price-save {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    width: fit-content;
}

.sf-product__desc {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.sf-product__divider {
    height: 1px;
    background: var(--border);
}

/* ==================== Add to Cart ==================== */
.sf-product__cart {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sf-product__cart-row {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.sf-product__qty {
    display: flex;
    align-items: center;
    gap: 0;
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.sf-product__qty-btn {
    width: 44px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border: none;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
}

.sf-product__qty-btn:hover {
    background: var(--primary);
    color: white;
}

.sf-product__qty-input {
    width: 60px;
    height: 54px;
    border: none;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    font-family: inherit;
    background: white;
}

.sf-product__qty-input:focus {
    outline: none;
}

.sf-product__add-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 32px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.sf-product__add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.sf-product__wish-btn {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
}

.sf-product__wish-btn:hover {
    background: #fef2f2;
    border-color: #ef4444;
    color: #ef4444;
    transform: scale(1.05);
}

.sf-product__meta-bottom {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius);
}

.sf-product__meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.sf-product__meta-item svg {
    color: var(--primary);
    flex-shrink: 0;
}

.sf-product__meta-item span {
    font-weight: 600;
    color: var(--text);
}

.sf-product__meta-item a {
    color: var(--primary);
    transition: color 0.2s;
}

.sf-product__meta-item a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* ==================== Trust Badges ==================== */
.sf-product__trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 24px;
    background: linear-gradient(135deg, #f8fafc, #f0f0ff);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.sf-product__trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sf-product__trust-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    color: var(--primary);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
}

.sf-product__trust-item div:last-child {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sf-product__trust-item strong {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
}

.sf-product__trust-item span {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* ==================== Tabs ==================== */
.sf-tabs {
    padding: 60px 0;
    background: var(--bg-light);
}

.sf-tabs__nav {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    border-bottom: 2px solid var(--border);
}


.sf-tabs__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    margin-bottom: -2px;
}

.sf-tabs__btn:hover {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.sf-tabs__btn.is-active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.sf-tabs__content {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.sf-tabs__pane {
    display: none;
}

.sf-tabs__pane.is-active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.sf-tabs__empty {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-style: italic;
}

/* ==================== Related Products ==================== */
.sf-related {
    padding: 60px 0;
    background: white;
}

.sf-related__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    gap: 20px;
}

.sf-related__title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 8px;
}

.sf-related__subtitle {
    font-size: 1rem;
    color: var(--text-light);
    margin: 0;
}

.sf-related__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--bg-light);
    color: var(--primary);
    border-radius: var(--radius);
    font-weight: 600;
    transition: all 0.3s ease;
}

.sf-related__link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.sf-related__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

a.checkout-button.button.alt.wc-forward{
	width:100%!important;
	padding:0.75rem 1rem!important;
	margin-bottom:0.5rem!important;
	background:linear-gradient(135deg, #6366f1, #8b5cf6)!important;
	color:white!important;
	font-size:0.85rem!important;
	font-weight:700!important;
	margin-bottom:0.5rem!important;
	display:flex!important;
	align-items:center!important;
	justify-content:center!important;
	border-radius:10px!important;
}

button#place_order{
	background:linear-gradient(135deg, #6366f1, #8b5cf6)!important;
	color:white!important;
	font-size:0.85rem!important;
	font-weight:700!important;
	border-radius:10px!important;
	padding:0.75rem 1rem!important;
	font-size:0.85rem!important;
	font-weight:700!important;	
	font-family: 'Vazirmatn';
}


/* ==================== Responsive ==================== */
@media (max-width: 1024px) {
    .sf-product__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .sf-product__gallery {
        position: static;
    }
    
    .sf-product__trust {
        grid-template-columns: 1fr;
    }
    
    .sf-related__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sf-product {
        padding: 40px 0;
    }
    
    .sf-product__title {
        font-size: 1.5rem;
    }
    
    .sf-product__price-current {
        font-size: 2rem;
    }
    
    .sf-product__cart-row {
        flex-direction: column;
    }
    
    .sf-product__qty {
        justify-content: center;
    }
    
    .sf-tabs__content {
        padding: 24px;
    }
    
    .sf-tabs__nav {
        gap: 4px;
    }
    
    .sf-tabs__btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .sf-related__header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sf-related__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .sf-breadcrumb__nav {
        font-size: 0.8rem;
    }
    
    .sf-gallery__thumbs {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .sf-product__meta-top {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==================== Product Variations ==================== */
/* Product Variations */
.sf-product__variations {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.sf-product__variation {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sf-product__variation label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.sf-product__variation-select select {
    width: 100%;
    padding: 12px 16px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.95rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.sf-product__variation-select select:hover {
    border-color: var(--primary);
}

.sf-product__variation-select select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* ============================================
   PRODUCT VARIATIONS - Professional Design
   ============================================ */

.sf-variations-form {
    width: 100%;
}

.sf-variations {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

.sf-variation {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sf-variation__label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
}

/* Color Swatches */
.sf-variation__colors {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sf-variation__color {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.sf-variation__color:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.sf-variation__color.selected {
    border-color: #6366f1;
    border-width: 3px;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.sf-variation__color span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
}

/* Regular Select Dropdown */
.sf-variation__select-wrapper {
    position: relative;
}

.sf-variation__select {
    width: 100%;
    padding: 14px 40px 14px 16px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #1e293b;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.sf-variation__select:hover {
    border-color: #cbd5e1;
}

.sf-variation__select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.sf-variation__select-wrapper::after {
    content: '';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #64748b;
    pointer-events: none;
}

/* Single Variation (Price & Add to Cart) */
.single_variation_wrap {
    margin-top: 24px;
}

.woocommerce-variation {
    margin-bottom: 20px;
}

.woocommerce-variation-price {
    margin-bottom: 16px;
}

.woocommerce-variation-price .price {
    font-size: 1.75rem;
    font-weight: 700;
    color: #6366f1;
}

.woocommerce-variation-add-to-cart {
    display: flex;
    align-items: center;
    gap: 12px;
}

.woocommerce-variation-add-to-cart .quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
}

.woocommerce-variation-add-to-cart .quantity input {
    width: 60px;
    padding: 8px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    background: transparent;
}

.woocommerce-variation-add-to-cart .single_add_to_cart_button {
    flex: 1;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.woocommerce-variation-add-to-cart .single_add_to_cart_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.woocommerce-variation-add-to-cart .single_add_to_cart_button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Reset Message */
.reset_variations {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #6366f1;
    background: rgba(99, 102, 241, 0.08);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 12px;
}

.reset_variations:hover {
    background: rgba(99, 102, 241, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .sf-variation__color {
        width: 38px;
        height: 38px;
    }
    
    .woocommerce-variation-add-to-cart {
        flex-direction: column;
    }
    
    .woocommerce-variation-add-to-cart .quantity {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   PRODUCT VARIATIONS - Digikala Style Design
   ============================================ */

/* Variations Table */
.variations_form .variations {
    width: 100%;
    border: none;
    margin-bottom: 24px;
}

.variations_form .variations tbody {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.variations_form .variations tr {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: none;
}

.variations_form .variations td {
    padding: 0;
    border: none;
    background: transparent;
}

.variations_form .variations td.label {
    display: flex;
    align-items: center;
}

.variations_form .variations td.label label {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.variations_form .variations td.value {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Color Attribute - Circle Swatches */
.variations_form .variations tr:has(label:contains("رنگ")) td.value select,
.variations_form .variations tr:has(label[for*="color"]) td.value select,
.variations_form .variations tr:has(label[for*="رنگ"]) td.value select {
    display: none !important;
}

.variations_form .variations tr:has(label:contains("رنگ")) td.value::before,
.variations_form .variations tr:has(label[for*="color"]) td.value::before,
.variations_form .variations tr:has(label[for*="رنگ"]) td.value::before {
    content: attr(data-color-swatches);
}

/* Size/Other Attributes - Button Style */
.variations_form .variations select {
    display: none;
}

.variations_form .variations td.value {
    position: relative;
}

/* Custom Select Buttons */
.sf-variation-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sf-variation-btn {
    min-width: 60px;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.sf-variation-btn:hover {
    border-color: #00bfd6;
    color: #00bfd6;
}

.sf-variation-btn.selected {
    color: #00bfd6;
    background: #ffffff;
    border-color: #00bfd6;
    border-width: 2px;
    position: relative;
}

.sf-variation-btn.selected::after {
    content: '✓';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    font-weight: 700;
    color: #00bfd6;
}

/* Color Swatches - Circle Style */
.sf-color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.sf-color-swatch {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.sf-color-swatch:hover {
    transform: scale(1.1);
    border-color: #cbd5e1;
}

.sf-color-swatch.selected {
    border-color: #00bfd6;
    border-width: 3px;
}

.sf-color-swatch.selected::after {
    content: '✓';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
    background: rgba(0, 191, 214, 0.2);
}

/* Reset Link */
.reset_variations {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.reset_variations:hover {
    color: #00bfd6;
    border-color: #00bfd6;
    background: rgba(0, 191, 214, 0.05);
}

/* Single Variation (Price & Add to Cart) */
.single_variation_wrap {
    margin-top: 24px;
}

.woocommerce-variation {
    margin-bottom: 20px;
}

.woocommerce-variation-price {
    margin-bottom: 16px;
}

.woocommerce-variation-price .price {
    font-size: 1.75rem;
    font-weight: 700;
    color: #00bfd6;
}

.woocommerce-variation-price .price del {
    font-size: 1.25rem;
    color: #94a3b8;
    margin-left: 12px;
}

.woocommerce-variation-add-to-cart {
    display: flex;
    align-items: center;
    gap: 12px;
}

.woocommerce-variation-add-to-cart .quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
}

.woocommerce-variation-add-to-cart .quantity input {
    width: 60px;
    padding: 8px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    background: transparent;
}

.woocommerce-variation-add-to-cart .single_add_to_cart_button {
    flex: 1;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #00bfd6 0%, #00a8c5 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 191, 214, 0.3);
}

.woocommerce-variation-add-to-cart .single_add_to_cart_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 191, 214, 0.4);
}

.woocommerce-variation-add-to-cart .single_add_to_cart_button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Responsive */
@media (max-width: 768px) {
    .sf-variation-btn {
        min-width: 50px;
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .sf-color-swatch {
        width: 42px;
        height: 42px;
    }
    
    .woocommerce-variation-add-to-cart {
        flex-direction: column;
    }
    
    .woocommerce-variation-add-to-cart .quantity {
        width: 100%;
        justify-content: center;
    }
}
/* ============================================
   Selected Color Name Display
   ============================================ */

.variations_form .variations td.label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sf-selected-color-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #00bfd6;
    padding: 4px 12px;
    background: rgba(0, 191, 214, 0.1);
    border-radius: 6px;
}

/* ============================================
   Hide Wishlist Button Next to Add to Cart
   ============================================ */

.woocommerce-variation-add-to-cart .sf-product__wish-btn,
.single_variation_wrap .sf-product__wish-btn {
    display: none !important;
}

/* ============================================
   Add to Cart Button - Match Site Style
   ============================================ */

.woocommerce-variation-add-to-cart .single_add_to_cart_button {
    flex: 1;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
    font-family: 'Vazirmatn', sans-serif;
}

.woocommerce-variation-add-to-cart .single_add_to_cart_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}

.woocommerce-variation-add-to-cart .single_add_to_cart_button:active {
    transform: translateY(0);
}

.woocommerce-variation-add-to-cart .single_add_to_cart_button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   Price Display - Enhanced
   ============================================ */

.woocommerce-variation-price {
    margin-bottom: 20px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f0f0ff 100%);
    border-radius: 12px;
    border: 2px solid #e2e8f0;
}

.woocommerce-variation-price .price {
    font-size: 1.85rem;
    font-weight: 700;
    color: #6366f1;
    font-family: 'Vazirmatn', sans-serif;
}

.woocommerce-variation-price .price del {
    font-size: 1.25rem;
    color: #94a3b8;
    margin-left: 12px;
    text-decoration: line-through;
}

.woocommerce-variation-price .price ins {
    text-decoration: none;
}

/* ============================================
   Quantity Input - Enhanced
   ============================================ */

.woocommerce-variation-add-to-cart .quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
}

.woocommerce-variation-add-to-cart .quantity input {
    width: 60px;
    padding: 8px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    background: transparent;
    font-family: 'Vazirmatn', sans-serif;
}

/* ============================================
   Responsive Adjustments
   ============================================ */

@media (max-width: 768px) {
    .woocommerce-variation-price .price {
        font-size: 1.5rem;
    }
    
    .woocommerce-variation-add-to-cart .single_add_to_cart_button {
        padding: 14px 24px;
        font-size: 0.95rem;
    }
}

/* ==================== My Account Page ==================== */
.sf-account {
    padding: 60px 0;
    background: #f9fafb;
    min-height: 100vh;
}

.sf-account__grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    align-items: start;
}

/* Sidebar */
.sf-account__sidebar {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 100px;
}

.sf-account__user {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 25px;
    margin-bottom: 25px;
    border-bottom: 1px solid #e5e7eb;
}

.sf-account__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 15px;
    border: 3px solid #f3f4f6;
}

.sf-account__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sf-account__user-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 5px 0;
}

.sf-account__user-email {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Navigation */
.sf-account__nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sf-account__nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.sf-account__nav-item svg {
    flex-shrink: 0;
}

.sf-account__nav-item:hover {
    background: #f3f4f6;
    color: var(--text-primary);
}

.sf-account__nav-item.is-active {
    background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
    color: #fff;
}

/* Content Area */
.sf-account__content {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    min-height: 500px;
}

/* Dashboard */
.sf-dashboard__header {
    margin-bottom: 30px;
}

.sf-dashboard__title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.sf-dashboard__subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

.sf-dashboard__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.sf-dashboard__stat {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.sf-dashboard__stat-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.sf-dashboard__stat-icon--orders {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.sf-dashboard__stat-icon--wishlist {
    background: rgba(236, 72, 153, 0.1);
    color: #ec4899;
}

.sf-dashboard__stat-icon--address {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.sf-dashboard__stat-info {
    display: flex;
    flex-direction: column;
}

.sf-dashboard__stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.sf-dashboard__stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.sf-dashboard__content {
    padding: 25px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    line-height: 1.8;
}

.sf-dashboard__content a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.sf-dashboard__content a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 992px) {
    .sf-account__grid {
        grid-template-columns: 1fr;
    }
    
    .sf-account__sidebar {
        position: static;
    }
    
    .sf-dashboard__stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sf-account {
        padding: 30px 0;
    }
    
    .sf-account__content {
        padding: 25px;
    }
    
    .sf-dashboard__title {
        font-size: 1.5rem;
    }
}

/* ============================================
   LOGIN & REGISTER PAGE - Modern Design
   ============================================ */

.sf-auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    position: relative;
    overflow: hidden;
}

.sf-auth-page::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.sf-auth-page::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

.sf-auth-container {
    width: 100%;
    max-width: 480px;
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
    animation: slideUp 0.6s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Auth Header */
.sf-auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.sf-auth-logo {
    margin-bottom: 16px;
}

.sf-auth-logo img {
    max-height: 60px;
    width: auto;
}

.sf-auth-logo h2 {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.sf-auth-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    margin: 0;
}

/* Auth Tabs */
.sf-auth-tabs {
    display: flex;
    gap: 8px;
    background: var(--bg-light);
    padding: 6px;
    border-radius: 12px;
    margin-bottom: 32px;
}

.sf-auth-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-md);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.sf-auth-tab svg {
    transition: transform 0.3s ease;
}

.sf-auth-tab:hover {
    color: var(--primary);
}

.sf-auth-tab.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.sf-auth-tab.active svg {
    transform: scale(1.1);
}

/* Auth Content */
.sf-auth-content {
    position: relative;
}

.sf-auth-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}

.sf-auth-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Auth Form */
.sf-auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sf-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sf-form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

.sf-form-label svg {
    color: var(--primary);
}

.sf-form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text);
    transition: all 0.3s ease;
    background: white;
}

.sf-form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.sf-form-input::placeholder {
    color: var(--text-muted);
}

/* Password Wrapper */
.sf-password-wrapper {
    position: relative;
}

.sf-password-toggle {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.sf-password-toggle:hover {
    color: var(--primary);
}

.sf-form-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Form Row */
.sf-form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.sf-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-md);
    cursor: pointer;
    user-select: none;
}

.sf-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    accent-color: var(--primary);
}

.sf-forgot-link {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sf-forgot-link:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* Auth Button */
.sf-auth-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    margin-top: 8px;
}

.sf-auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(102, 126, 234, 0.5);
}

.sf-auth-btn:active {
    transform: translateY(0);
}

/* Info Box */
.sf-info-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    font-size: 0.9rem;
    color: var(--text-md);
    margin: 0;
}

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

/* Auth Features */
.sf-auth-features {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.sf-auth-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.sf-auth-feature svg {
    color: var(--primary);
}

.sf-auth-feature span {
    font-size: 0.85rem;
    color: var(--text-md);
    font-weight: 500;
}

/* WooCommerce Messages */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.woocommerce-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #dc2626;
}

.woocommerce-message {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #16a34a;
}

.woocommerce-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.
3);
    color: #2563eb;
}

/* Responsive */
@media (max-width: 768px) {
    .sf-auth-page {
        padding: 20px 16px;
    }
    
    .sf-auth-container {
        padding: 32px 24px;
        border-radius: 20px;
    }
    
    .sf-auth-tabs {
        flex-direction: column;
    }
    
    .sf-auth-features {
        flex-direction: column;
        gap: 16px;
    }
    
    .sf-form-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .sf-auth-container {
        padding: 24px 20px;
    }
    
    .sf-auth-logo h2 {
        font-size: 1.5rem;
    }
    
    .sf-auth-subtitle {
        font-size: 0.9rem;
    }
    
    .sf-auth-tab {
        font-size: 0.95rem;
        padding: 10px 16px;
    }
    
    .sf-form-input {
        padding: 12px 14px;
        font-size: 0.95rem;
    }
    
    .sf-auth-btn {
        padding: 14px 28px;
        font-size: 1rem;
    }
}
/* Lightbox برای zoom */
.sf-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sf-lightbox.is-show {
    opacity: 1;
}

.sf-lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.sf-lightbox__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100000;
}

.sf-lightbox__close:hover {
    background: #fff;
    transform: scale(1.1);
}

.sf-lightbox__close svg {
    color: #333;
}

/* Toast notification */
.sf-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #333;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 100000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.sf-toast.is-show {
    opacity: 1;
    transform: translateY(0);
}

/* Pulse animation */
@keyframes sf-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.sf-pulse {
    animation: sf-pulse 0.5s ease;
}

/* ==================== Price Display ==================== */
.sf-product__price-wrap {
    margin: 24px 0;
}

.sf-product__price-wrap .price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.sf-product__price-wrap .price del {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-light);
    text-decoration: line-through;
    opacity: 0.6;
}

.sf-product__price-wrap .price ins {
    text-decoration: none;
    color: var(--primary);
}

.sf-product__price-wrap .price .woocommerce-Price-amount {
    font-size: inherit;
    color: inherit;
}

/* Price range for variable products */
.sf-product__price-range {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

/* ==================== Variable Product Variations ==================== */
.sf-product__variations {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

.sf-product__variation-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sf-product__variation-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    display: block;
}

.sf-product__variation-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    color: var(--text);
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    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='%23666' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 16px center;
    padding-left: 40px;
}

.sf-product__variation-select:hover {
    border-color: var(--primary);
}

.sf-product__variation-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* Single variation display (selected variation price) */
.single_variation_wrap {
    margin: 20px 0;
}

.single_variation {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.single_variation .price {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    color: var(--primary) !important;
    margin: 0 !important;
}

.single_variation .price del {
    font-size: 1.8rem;
    color: var(--text-light);
    opacity: 0.6;
    margin-left: 12px;
}

.single_variation .price ins {
    text-decoration: none;
}

.woocommerce-variation-availability {
    font-size: 0.9rem;
}

.woocommerce-variation-availability .stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 100px;
    font-weight: 600;
}

.woocommerce-variation-availability .stock.in-stock {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.woocommerce-variation-availability .stock.out-of-stock {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

/* ==================== Add to Cart Button (Variable Products) ==================== */
.variations_form .sf-product__cart-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

/* Add to Cart Button */
.variations_form .single_add_to_cart_button,
.variations_form .sf-product__add-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.variations_form .single_add_to_cart_button:hover,
.variations_form .sf-product__add-btn:hover {
    background: var(--primary-dark, #4338ca);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.variations_form .single_add_to_cart_button:disabled,
.variations_form .sf-product__add-btn:disabled {
    background: var(--bg-light);
    color: var(--text-light);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.variations_form .single_add_to_cart_button.is-loading::after,
.variations_form .sf-product__add-btn.is-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Wishlist Button */
.variations_form .sf-product__wish-btn {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
}

.variations_form .sf-product__wish-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.05);
}

.variations_form .sf-product__wish-btn.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.variations_form .sf-product__wish-btn.is-active svg {
    fill: white;
}

/* Reset button (clear selections) */
.reset_variations {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-light);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 12px;
}

.reset_variations:hover {
    border-color: var(--primary);
    color: var(--primary);
}


/* ==================== Variable Product Styles - Digikala Style ==================== */

/* Variation Selection */
.sf-product__variations {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.sf-product__variation-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sf-product__variation-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Color Swatches - Circular Buttons */
.sf-product__color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sf-product__color-swatch {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    overflow: hidden;
}

.sf-product__color-swatch:hover {
    transform: scale(1.1);
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sf-product__color-swatch.selected {
    border-color: var(--primary);
    border-width: 3px;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.sf-product__color-check {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease;
    pointer-events: none;
}

.sf-product__color-swatch.selected .sf-product__color-check {
    transform: translate(-50%, -50%) scale(1);
}

/* White color special case */
.sf-product__color-swatch[style*="background-color: #ffffff"] .sf-product__color-check,
.sf-product__color-swatch[style*="background-color: #fff"] .sf-product__color-check,
.sf-product__color-swatch[style*="background-color: rgb(255, 255, 255)"] .sf-product__color-check {
    color: #000;
    text-shadow: none;
}

/* Size/Attribute Buttons - Rectangular */
.sf-product__size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sf-product__size-btn {
    padding: 10px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: white;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 60px;
    text-align: center;
}

.sf-product__size-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.sf-product__size-btn.selected {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Hidden selects for WooCommerce compatibility */
.sf-product__variation-hidden {
    display: none !important;
}

/* Fallback dropdown styles */
.sf-product__variation-select select,
.sf-product__variation-dropdown {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.95rem;
    color: var(--text-primary);
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sf-product__variation-select select:hover,
.sf-product__variation-dropdown:hover {
    border-color: var(--primary);
}

.sf-product__variation-select select:focus,
.sf-product__variation-dropdown:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Reset Button */
.sf-product__reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 0.85rem;
    color: var(--primary);
    text-decoration: none;
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
    width: fit-content;
    background: white;
}

.sf-product__reset-btn:hover {
    background: rgba(99, 102, 241, 0.05);
    border-color: var(--primary);
}

/* Price Box - After Variations */
.sf-product__price-box--variable {
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
    border: 2px solid rgba(99, 102, 241, 0.15);
    border-radius: 12px;
    margin-bottom: 20px;
}

.sf-product__price-initial {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sf-product__price-box--variable .sf-product__price-amount {
    flex: 0 1 auto;
}

.sf-product__price-box--variable .sf-product__price-amount .price {
    margin: 0;
}

.sf-product__price-label {
    font-size: 0.95rem;
    color: var(--text-md);
    font-weight: 500;
}

.sf-product__price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

/* Variation price display */
.single_variation {
    display: none;
}

.single_variation.visible {
    display: block !important;
}

.single_variation .woocommerce-variation-price {
    margin: 0;
}

.single_variation .woocommerce-variation-price .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

/* Price Range Display */
.sf-product__price-box--variable {
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f0f0ff 100%);
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.sf-product__price-range {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.sf-product__price-label {
    font-weight: 500;
    color: var(--text-secondary);
}

.sf-product__price-from,
.sf-product__price-to {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.3rem;
}

.sf-product__price-separator {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Add to Cart Button for Variable Products */
.sf-product__add-btn.disabled,
.sf-product__add-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    .sf-product__price-range {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .sf-product__price-from,
    .sf-product__price-to {
        font-size: 1.1rem;
    }
}

/* Variable product: hide duplicate WC price box (price shown in .sf-product__price-box) */
.variations_form .single_variation_wrap {
    display: none !important;
}

/* Variable product: quantity same as simple product (no nested WC .quantity box) */
.variations_form .sf-product__qty .quantity {
    display: contents;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    gap: 0;
}

.variations_form.woocommerce-variation-add-to-cart .quantity,
.variations_form .woocommerce-variation-add-to-cart .quantity {
    display: contents;
    padding: 0;
    background: transparent;
    border: none;
}
/* دکمه افزودن به سبد — محصول متغیر = مثل محصول ساده */
.variations_form .single_add_to_cart_button,
.variations_form .sf-product__add-btn,
.variations_form .woocommerce-variation-add-to-cart .single_add_to_cart_button,
.variations_form .woocommerce-variation-add-to-cart .sf-product__add-btn {
    flex: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    min-height: 54px !important;
    padding: 0 32px !important;
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--radius) !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    font-family: inherit !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3) !important;
    cursor: pointer !important;
}

.variations_form .single_add_to_cart_button:hover,
.variations_form .sf-product__add-btn:hover,
.variations_form .woocommerce-variation-add-to-cart .single_add_to_cart_button:hover,
.variations_form .woocommerce-variation-add-to-cart .sf-product__add-btn:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4) !important;
}

.variations_form .single_add_to_cart_button:disabled,
.variations_form .sf-product__add-btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    transform: none !important;
}