/* ==========================================================================
SINGLE PRODUCT
========================================================================== */

.setak-product-wrapper {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    animation: setak-fadeIn 0.5s ease-in;
}

@keyframes setak-fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}


.setak-product-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    grid-template-areas: "main sidebar";
    gap: 30px;
    align-items: start;
}

.setak-main-column {
    grid-area: main;
    display: flex;
    flex-direction: column;
    gap: 30px;
    min-width: 0; 
}

.setak-sidebar {
    grid-area: sidebar;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 0;
}

@media (min-width: 1025px) {
    .setak-sidebar {
        position: sticky;
        top: 20px;
        align-self: start;
        max-height: calc(100vh - 40px);
        overflow-y: auto;
    }

    .setak-sidebar::-webkit-scrollbar {
        width: 4px;
    }
    .setak-sidebar::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.15);
        border-radius: 4px;
    }
}

@media (max-width: 1024px) {
    .setak-product-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "main-top"
            "sidebar"
            "main-rest";
    }

    .setak-main-column {
        display: contents;
    }

    .setak-product-grid {
        grid-area: main-top;
        grid-template-columns: 1fr 1fr;
    }

    .setak-sidebar {
        grid-area: sidebar;
        position: static; 
        max-height: none;
        overflow: visible;
    }

    .setak-description-section,
    .setak-specifications-section,
    .setak-reviews-section {
        grid-area: main-rest;
    }
}

@media (max-width: 768px) {
    .setak-product-grid {
        grid-template-columns: 1fr;
    }
}



.setak-product-grid {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 30px;
    align-items: start;
}



.setak-gallery-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 480px;
    max-width: 100%;
    box-sizing: border-box;
}

.setak-main-image-wrapper {
    border-radius: 8px;
    background: #f9f9f9;
    border: 1px solid #eee;
    overflow: hidden;
}

.setak-main-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.setak-main-image-wrapper:hover .setak-main-image {
    transform: scale(1.05);
}

.setak-thumbnails-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.setak-thumbnails {
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.setak-thumbnail {
    width: 80px !important;
    min-width: 80px;
    height: 80px;
    border-radius: 6px;
    border: 2px solid #ddd;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.setak-thumbnail:hover,
.setak-thumbnail.active {
    border-color: #ef4056;
}

.setak-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.setak-thumb-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.setak-thumb-arrow:hover {
    background: #ef4056;
    border-color: #ef4056;
    color: white;
}

.setak-thumb-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.setak-thumb-arrow:disabled:hover {
    background: white;
    border-color: #ddd;
    color: inherit;
}

@media (max-width: 768px) {
    .setak-gallery-section {
        width: 100%;
    }

    .setak-thumbnail {
        width: 70px !important;
        min-width: 70px;
        height: 70px;
    }
}


.setak-term-list {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
}

.setak-term-item a {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.setak-term-category a {
    background: #fdeaec;
    color: #ef4056;
}

.setak-term-category a:hover {
    background: #ef4056;
    color: white;
}

.setak-term-tag a {
    background: #eef3f7;
    color: #4a5a6a;
}

.setak-term-tag a:hover {
    background: #4a5a6a;
    color: white;
}

.setak-product-info h1 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #2c3e50;
    line-height: 1.6;
}

.setak-social-icons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.setak-social-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
}

.setak-social-icons .setak-telegram {
    background: #0088cc;
}

.setak-social-icons .setak-eitaa {
    background: #00a86b;
}

.setak-social-icons .setak-chat {
    background: #ef4056;
}

.setak-social-icon:hover {
    transform: scale(1.1);
}

.setak-product-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.setak-meta-item {
    font-size: 14px;
    color: #666;
}

.setak-meta-label {
    font-weight: normal;
}

.setak-meta-value {
    color: #333;
    font-weight: bold;
}

.setak-features-list {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.setak-features-list h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.setak-feature-item {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: #555;
    animation: setak-fadeInUp 0.5s ease-out both;
}

.setak-feature-item:nth-child(2) { animation-delay: 0.1s; }
.setak-feature-item:nth-child(3) { animation-delay: 0.2s; }
.setak-feature-item:nth-child(4) { animation-delay: 0.3s; }

@keyframes setak-fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.setak-feature-icon {
    color: #ef4056;
    font-size: 12px;
    margin-top: 4px;
}

.setak-variations-wrapper {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
    border: 1px solid #eee;
}

.setak-variation-item {
    margin-bottom: 15px;
}

.setak-variation-item:last-child {
    margin-bottom: 0;
}

.setak-variation-item label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.setak-variation-select {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    font-family: inherit;
    color: #333;
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    padding-left: 40px;
}

.setak-variation-select:hover {
    border-color: #ef4056;
}

.setak-variation-select:focus {
    outline: none;
    border-color: #ef4056;
    box-shadow: 0 0 0 3px rgba(239, 64, 86, 0.1);
}

.setak-variation-select option {
    padding: 10px;
    font-size: 14px;
}

.setak-variation-select option:disabled {
    color: #999;
    background: #f5f5f5;
}

.setak-variation-select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .setak-variations-wrapper {
        padding: 15px;
        margin: 15px 0;
    }

    .setak-variation-item label {
        font-size: 13px;
    }

    .setak-variation-select {
        padding: 10px 14px;
        padding-left: 36px;
        font-size: 13px;
    }
}


.setak-price-box {
    background: #f5f5f5;
    border: 1px solid #f3f3f3;
    border-radius: 16px;
    padding: 30px 25px;
}

.setak-price-header {
    text-align: center;
    margin-bottom: 25px;
}

.setak-price-amount {
    font-size: 36px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.setak-price-currency {
    font-size: 16px;
    color: #666;
}


.price-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.75em;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sale-price {
    color: #e74c3c;
    font-weight: bold;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 4px;
}

.setak-quantity-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.setak-quantity-btn {
    width: 45px;
    height: 45px;
    background: #ef4056;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.setak-quantity-btn:hover {
    background: #ef4056;
    color: white;
    transform: scale(1.05);
}

.setak-quantity-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.setak-quantity-display {
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.setak-quantity-value {
    width: 70px;
    height: 40px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.setak-quantity-info {
    text-align: center;
    margin: 8px 0;
    color: #666;
}

.setak-quantity-info small {
    font-size: 12px;
}

.setak-cart-actions-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.setak-cart-actions-row .setak-add-to-cart-btn {
    flex: 1;
}

.setak-add-to-cart-btn {
    background: #ef4056;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 64, 129, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 20px auto;
    padding: 16px 30px;
}

.setak-add-to-cart-btn:hover {
    background: #ff1744;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 64, 129, 0.4);
}

.setak-add-to-cart-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

.setak-add-to-cart-btn .fa-spinner,
.setak-mobile-buybar-btn .fa-spinner {
    animation: setak-spin 1s linear infinite;
}

@keyframes setak-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.setak-add-to-cart-btn:disabled,
.setak-quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


.setak-out-of-stock-notice {
    background: #fff3cd;
    border: 2px dashed #ffc107;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
}

.setak-out-of-stock-icon {
    font-size: 48px;
    color: #ff9800;
    margin-bottom: 15px;
}

.setak-out-of-stock-text strong {
    display: block;
    font-size: 18px;
    color: #d84315;
    margin-bottom: 8px;
}

.setak-out-of-stock-text p {
    font-size: 14px;
    color: #666;
    margin: 0 0 15px 0;
    line-height: 1.6;
}

.setak-trust-rating {
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.setak-trust-text {
    font-size: 12px;
    color: #666;
    margin-bottom: 12px;
    text-align: center;
}

.setak-price-rating-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px dashed #eee;
}

.setak-price-rating-row .setak-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 15px;
}

.setak-price-rating-row .setak-star-full,
.setak-price-rating-row .setak-star-half {
    color: #ffc107;
}

.setak-price-rating-row .setak-star-empty {
    color: #ddd;
}

.setak-price-rating-row .setak-rating-count {
    font-size: 13px;
    color: #777;
    text-decoration: none;
    border-bottom: 1px dashed #ccc;
    transition: color 0.2s ease;
}

.setak-price-rating-row .setak-rating-count:hover {
    color: #ef4056;
}

.setak-price-rating-row .setak-no-rating {
    font-size: 13px;
    color: #999;
}

/* --- موجودی انبار --- */
.setak-stock-info {
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #eee;
}

.setak-stock-label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 10px;
    color: #666;
}

.setak-stock-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.setak-stock-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50 0%, #8bc34a 100%);
    border-radius: 10px;
    animation: setak-fillBar 1s ease-out;
}

@keyframes setak-fillBar {
    from { width: 0; }
}

form.cart .added_to_cart {
    display: none !important;
}

.setak-cart-message {
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 14px;
    display: block;
    text-align: center;
    animation: slideInDown 0.4s ease;
    box-shadow: 0 2px 12px rgba(34, 169, 22, 0.05);
    max-width: 250px;
    margin: 12px auto;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.setak-message-success {
    background: linear-gradient(135deg, #d4f4dd 0%, #e8f8ed 100%);
    color: #1d8348;
    border: solid 1px #27ae6026;
}

.setak-message-success i {
    color: #27ae60;
    font-size: 16px;
}

.setak-message-error {
    background: linear-gradient(135deg, #ffeaea 0%, #fff5f5 100%);
    color: #c0392b;
    border-right-color: #e74c3c;
}

.setak-message-error i {
    color: #e74c3c;
    font-size: 22px;
}

.setak-cart-message span {
    flex: 1;
    line-height: 1.6;
    font-weight: 500;
}

.setak-cart-link {
    display: block;
    padding: 8px 15px;
    background: white;
    color: #27ae60;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    margin: 8px auto;
    width: 160px;
}

.setak-cart-link:hover {
    background: #27ae60;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.setak-cart-link i {
    font-size: 14px;
}

@media (max-width: 768px) {
    .setak-cart-message {
        font-size: 13px;
        padding: 14px 16px;
        flex-direction: column;
        text-align: center;
    }

    .setak-cart-link {
        width: 100%;
        justify-content: center;
    }
}

.setak-description-section,
.setak-specifications-section,
.setak-reviews-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.setak-section-title {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.setak-section-content {
    color: #555;
    line-height: 1.9;
}

.setak-specs-table {
    width: 100%;
    border-collapse: collapse;
}

.setak-specs-table tr {
    border-bottom: 1px solid #eee;
}

.setak-specs-table td {
    padding: 15px;
    font-size: 14px;
}

.setak-specs-table td:first-child {
    color: #666;
    width: 30%;
}

.setak-specs-table td:last-child {
    color: #333;
    font-weight: 500;
}


.setak-reviews-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.setak-reviews-summary {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
    flex-wrap: wrap;
}

.setak-reviews-average {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
}

.setak-reviews-average-number {
    font-size: 36px;
    font-weight: bold;
    color: #333;
    line-height: 1;
}

.setak-reviews-average .setak-stars {
    margin: 8px 0 4px;
    font-size: 18px;
    color: #ffc107;
}

.setak-reviews-average-count {
    font-size: 13px;
    color: #777;
}

.setak-reviews-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.setak-review-item {
    display: flex;
    gap: 15px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f0f0f0;
}

.setak-review-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.setak-review-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: block;
}

.setak-review-body {
    flex: 1;
    min-width: 0;
}

.setak-review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.setak-review-author {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.setak-review-date {
    font-size: 12px;
    color: #999;
}

.setak-review-body .setak-stars {
    font-size: 13px;
    margin-bottom: 8px;
    color: #ffc107;
}

.setak-review-text {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
}

.setak-review-replies {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.setak-review-reply {
    display: flex;
    gap: 12px;
    margin-inline-start: 20px;
    padding: 12px 14px;
    background: #f9f9f9;
    border-radius: 10px;
    border-inline-start: 3px solid #ef4056;
}

.setak-review-reply-avatar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: block;
}

.setak-review-reply-body {
    flex: 1;
    min-width: 0;
}

.setak-review-reply-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
}

.setak-review-reply-author {
    font-weight: 600;
    color: #ef4056;
    font-size: 13px;
}

.setak-review-reply .setak-review-text {
    font-size: 13px;
}

.setak-review-verified {
    display: inline-block;
    font-size: 11px;
    color: #27ae60;
    background: #e8f8ed;
    padding: 2px 8px;
    border-radius: 10px;
    margin-inline-start: 6px;
}

.setak-no-reviews {
    font-size: 14px;
    color: #777;
    background: #f9f9f9;
    padding: 16px 20px;
    border-radius: 10px;
    text-align: center;
}

.setak-review-form-wrapper {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 25px;
}

.setak-review-form-wrapper h3 {
    margin: 0 0 6px;
    font-size: 18px;
    color: #333;
}

.setak-review-form-note {
    font-size: 13px;
    color: #777;
    margin: 0 0 18px;
}

.setak-review-form-row {
    margin-bottom: 16px;
}

.setak-review-form-row label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.setak-review-form-row input[type="text"],
.setak-review-form-row input[type="email"],
.setak-review-form-row textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    font-size: 14px;
    font-family: inherit;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.setak-review-form-row input:focus,
.setak-review-form-row textarea:focus {
    outline: none;
    border-color: #ef4056;
    box-shadow: 0 0 0 3px rgba(239, 64, 86, 0.1);
}

.setak-review-form-row textarea {
    min-height: 120px;
    resize: vertical;
}

.setak-review-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.setak-star-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}

.setak-star-input input {
    display: none;
}

.setak-star-input label {
    font-size: 26px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s ease;
    margin: 0 !important;
}

.setak-star-input input:checked ~ label,
.setak-star-input label:hover,
.setak-star-input label:hover ~ label {
    color: #ffc107;
}

.setak-review-submit-btn {
    background: #ef4056;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.setak-review-submit-btn:hover {
    background: #d5334a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 64, 86, 0.3);
}

.setak-review-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.setak-review-form-message {
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    display: none;
}

.setak-review-login-notice {
    font-size: 14px;
    color: #555;
    background: #fff3cd;
    border: 1px dashed #ffc107;
    padding: 16px 20px;
    border-radius: 10px;
    text-align: center;
}

.setak-review-login-notice a {
    color: #ef4056;
    font-weight: 600;
}

.setak-reviews-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.setak-reviews-pagination a,
.setak-reviews-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: 8px;
    border: 1px solid #ddd;
    color: #555;
    text-decoration: none;
    font-size: 13px;
}

.setak-reviews-pagination .current {
    background: #ef4056;
    border-color: #ef4056;
    color: white;
}

@media (max-width: 768px) {
    .setak-review-form-grid {
        grid-template-columns: 1fr;
    }

    .setak-reviews-summary {
        flex-direction: column;
        text-align: center;
    }
}

.setak-related-products-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.setak-related-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.setak-related-header .setak-section-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.setak-related-products-section .keen-slider__slide {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.06), 0 8px 218px rgba(0, 0, 0, 0.04);
    margin: 10px 0;
    padding: 15px 15px 60px;
    text-align: center;
}

.setak-related-products-section .add-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #ff2d55;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    text-align: center;
    padding: 2px 0 0 0;
    line-height: 35px;
}

.setak-product-slide {
    height: auto;
}

.setak-product-item {
    height: 100%;
}

.setak-product-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.setak-product-image {
    position: relative;
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 8px;
    background: #f9f9f9;
}

.setak-product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.setak-product-item:hover .setak-product-image img {
    transform: scale(1.05);
}

.setak-product-sale-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e74c3c;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

.setak-product-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.setak-product-title {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
    min-height: 42px;
    line-height: 1.5;
    font-weight: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.setak-product-item:hover .setak-product-title {
    color: #e74c3c;
}

.setak-product-rating {
    margin-bottom: 10px;
}

.star-rating {
    overflow: hidden;
    position: relative;
    height: 1.618em;
    line-height: 1.618;
    font-size: 1em;
    width: 5.4em;
    font-family: star;
    font-weight: 400;
}

.star-rating span {
    overflow: hidden;
    float: right;
    top: 0;
    left: 0;
    position: absolute;
    padding-top: 1.5em;
}

.star-rating span::before {
    color: #ffc107 !important;
}

.setak-product-rating .star-rating {
    font-size: 14px;
    color: #ffc107;
}

.setak-product-rating .star-rating span {
    color: #ffc107;
}

.setak-price-body {
    text-align: center;
}

@media (max-width: 1400px) {
    .setak-product-image {
        height: 180px;
    }
}

@media (max-width: 992px) {
    .setak-related-products-section {
        padding: 25px 20px;
    }

    .setak-product-image {
        height: 160px;
    }
}

@media (max-width: 768px) {
    .setak-related-products-section {
        padding: 20px 15px;
    }

    .setak-related-header .setak-section-title {
        font-size: 20px;
    }

    .setak-product-image {
        height: 140px;
    }

    .setak-product-title {
        font-size: 13px;
        min-height: 38px;
    }
}

@media (max-width: 480px) {
    .setak-product-image {
        height: 120px;
    }

    .setak-product-title {
        font-size: 12px;
        min-height: 36px;
    }
}

.setak-mobile-buybar {
    display: none; 
}

@media (max-width: 1024px) {
    .setak-mobile-buybar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9990; 
        padding: 10px 14px;
        background: #ffffff;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
        border-top: 1px solid #eee;
    }
}

@media (max-width: 767px) {
    .setak-mobile-buybar {
        bottom: 70px;
    }
}

.setak-mobile-buybar-price {
    font-size: 15px;
    font-weight: bold;
    color: #2c3e50;
    white-space: nowrap;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.setak-mobile-buybar-price .price-container {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 8px;
}

.setak-mobile-buybar-price .original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.7em;
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 3px;
}

.setak-mobile-buybar-price .sale-price {
    color: #e74c3c;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 3px;
}

.setak-mobile-buybar-btn {
    flex: 1;
    max-width: 220px;
    background: #ef4056;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: bold;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(239, 64, 86, 0.25);
}

.setak-mobile-buybar-btn:hover {
    background: #d5334a;
}

.setak-mobile-buybar-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* حالت «انتخاب گزینه‌ها» برای محصولات متغیر بدون واریانت انتخاب‌شده */
.setak-mobile-buybar-btn--select {
    background: #4a5a6a;
    box-shadow: 0 4px 12px rgba(74, 90, 106, 0.25);
}

.setak-mobile-buybar-btn--select:hover {
    background: #37424d;
}

@media (max-width: 1024px) {
    body:has(.setak-mobile-buybar) {
        padding-bottom: 0;
    }
}




/* --- Wishlist button (YITH) --- */


.wishlist_table .product-add-to-cart a {
    background: #ef4056;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 64, 129, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 20px auto;
    padding: 16px 30px;
}


.setak-wishlist-wrapper .yith-wcwl-wishlistaddedbrowse > a {
	position: relative;
	top: 40px;
	white-space: nowrap;
}


.setak-wishlist-wrapper {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    position: relative;
}

.setak-wishlist-wrapper .yith-wcwl-add-to-wishlist {
    width: 100%;
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

.setak-wishlist-wrapper .yith-wcwl-add-button {
    width: 100%;
    height: 100%;
    margin-top: 17px;
}

.setak-wishlist-wrapper .add_to_wishlist {
    width: 52px;
    height: 52px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid #eee;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.setak-wishlist-wrapper .add_to_wishlist:hover {
    background: #ef4056;
    border-color: #ef4056;
    transform: translateY(-2px);
}

.setak-wishlist-wrapper .add_to_wishlist svg {
    width: 24px;
    height: 24px;
    color: #ef4056;
    transition: color 0.3s ease;
    margin-left: 6px;
}

.setak-wishlist-wrapper .yith-wcwl-wishlistaddedbrowse .feedback svg {
	width: 24px;
	height: 24px;
	color: white;
	margin-top: 10px;
	position: relative;
	top: 5px;
	left: -2px;
}

.setak-wishlist-wrapper .add_to_wishlist:hover svg {
    color: white;
}

.setak-wishlist-wrapper .add_to_wishlist span {
    display: none !important;
}

.setak-wishlist-wrapper .yith-wcwl-wishlistaddedbrowse {
    width: 48px;
    height: 48px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: #ef4056;
    border: 2px solid #ef4056;
    border-radius: 10px;
    margin-top: 20px;
}

.setak-wishlist-wrapper .yith-wcwl-wishlistaddedbrowse .feedback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0 !important;
}

.setak-wishlist-wrapper .yith-wcwl-wishlistaddedbrowse .feedback svg {
    width: 18px;
    height: 18px;
    color: white;
}


.setak-wishlist-wrapper .ajax-loading {
    position: absolute !important;
}

.setak-product-info > .yith-wcwl-add-to-wishlist,
.summary > .yith-wcwl-add-to-wishlist,
.woocommerce-product-details__short-description ~ .yith-wcwl-add-to-wishlist {
    display: none !important;
}

@media (max-width: 768px) {
    .setak-wishlist-wrapper,
    .setak-wishlist-wrapper .add_to_wishlist,
    .setak-wishlist-wrapper .yith-wcwl-wishlistaddedbrowse {
        width: 46px;
        height: 46px;
    }
}


