/* ================== Layout ================== */
.product-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

/* ================== Breadcrumbs ================== */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: .9rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.breadcrumb-item.active,
.breadcrumb-item:hover {
    color: #FFC400;
    font-weight: 600;
}

/* ================== Gallery ================== */
.gallery-container {
    position: sticky;
    top: 100px;
    max-width: 100%;
    overflow: hidden;
}

.main-image-frame {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 24px;
    padding: 2rem;
    height: 500px;
    /* Fixed height */
    min-height: 500px;
    max-height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: border-color 0.3s ease;
    max-width: 100%;
    /* Ensure vertical scrolling works even if gesture starts here */
    touch-action: pan-y;
}

.main-image-frame:hover {
    border-color: #FFC400;
}

.product-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: opacity 0.3s ease, transform 0.3s ease;
    background: transparent;
}

@media (hover: hover) {
    .product-img:hover {
        transform: scale(1.02);
    }
}

/* Dark theme support for main image */
body.theme-dark .product-img {
    background: transparent;
}

.product-placeholder {
    font-size: 5rem;
    color: var(--text-secondary);
}

.thumbs-scroll {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.5rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.thumbs-scroll::-webkit-scrollbar {
    height: 6px;
}

.thumbs-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.thumbs-scroll::-webkit-scrollbar-thumb {
    background: #FFC400;
    border-radius: 10px;
}

.thumbs-scroll::-webkit-scrollbar-thumb:hover {
    background: #e6b000;
}

.thumb-btn {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    min-width: 80px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--card-bg);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 0;
}

.thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent;
}

/* Dark theme support for thumbnails */
body.theme-dark .thumb-btn img {
    background: transparent;
}

.thumb-btn.active,
.thumb-btn:hover {
    border-color: #FFC400;
    transform: scale(1.05);
}

/* ================== Product Info ================== */
.product-info-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-primary);
}

.stock-badge {
    background: rgba(34, 197, 94, .15);
    color: #22c55e;
    padding: .5rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stock-badge i {
    font-size: 0.9rem;
}

/* ================== Specs ================== */
.specs-panel {
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem;
    background: var(--card-bg);
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-row span {
    color: var(--text-secondary);
}

.spec-row strong {
    color: #FFC400;
    font-size: 1.1rem;
}

/* ================== Description ================== */
.product-description {
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem;
    background: var(--card-bg);
}

.product-description .section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-description .section-title i {
    color: #FFC400;
}

.product-description p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ================== Variants ================== */
.variant-section {
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem;
    background: var(--card-bg);
}

.variant-section h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.variant-options {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

.variant-btn {
    padding: .75rem 1.5rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    background: var(--card-bg);
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.variant-btn:hover {
    background: #FFC400;
    color: #1a1a1a;
    border-color: #FFC400;
    transform: translateY(-2px);
}

.variant-btn.active {
    background: #FFC400;
    color: #1a1a1a;
    border-color: #FFC400;
}

.variant-btn.disabled,
.variant-btn:disabled {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-color: var(--border-color);
    cursor: not-allowed;
    opacity: 0.5;
}

/* ================== Actions ================== */
.action-row {
    display: flex;
    gap: 1rem;
    align-items: stretch;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: .5rem;
    border: 2px solid var(--border-color);
    border-radius: 14px;
    padding: .5rem;
    background: var(--card-bg);
}

.qty-btn {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.qty-btn:hover {
    background: #FFC400;
    color: #1a1a1a;
}

#quantity-value {
    min-width: 50px;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.btn-add-to-cart {
    flex: 1;
    background: linear-gradient(135deg, #FFC400, #e6b000);
    border-radius: 14px;
    font-weight: 800;
    font-size: 1.1rem;
    border: none;
    color: #1a1a1a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 196, 0, 0.3);
}

.btn-add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 196, 0, 0.4);
}

.btn-add-to-cart:active {
    transform: translateY(0);
}

.btn-add-to-cart i {
    font-size: 1.2rem;
}

/* ================== Related Products ================== */
.related-section {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid var(--border-color);
}

.related-section .section-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
}

.related-section .section-title i {
    color: #FFC400;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.related-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
}

.related-card:hover {
    border-color: #FFC400;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.related-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: transparent;
}

/* Dark theme support for related cards */
body.theme-dark .related-card img {
    background: transparent;
}

.related-card-content {
    padding: 1.25rem;
}

.related-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
}

.stock-badge.unavailable {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.stock-badge i {
    font-size: 1.1rem;
}

/* ================== Toast ================== */
.toast-notification {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    padding: 1rem 2rem;
    border-radius: 14px;
    font-weight: 700;
    box-shadow: 0 10px 40px rgba(34, 197, 94, 0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toast-notification i {
    font-size: 1.25rem;
}

.toast-notification.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-notification.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 10px 40px rgba(239, 68, 68, 0.4);
}

/* ================== Responsive ================== */
@media (max-width: 992px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .gallery-container {
        position: static;
    }

    .page-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .product-section {
        padding: 1rem;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .action-row {
        flex-direction: column;
    }

    .quantity-selector {
        justify-content: center;
    }

    .btn-add-to-cart {
        width: 100%;
    }

    .main-image-frame {
        height: 350px;
        /* Smaller fixed height for mobile */
        min-height: 350px;
        max-height: 350px;
        padding: 1rem;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .related-card img {
        height: 140px;
    }

    .breadcrumbs {
        font-size: 0.8rem;
    }
}



/* CRITICAL FIX: Horizontal Scrolling Thumbnails */
/* Parent container constraint */
.gallery-container,
.product-gallery,
.main-image-frame {
    max-width: 100% !important;
    /* Removed overflow: hidden !important to fix scrolling hang on mobile */
    overflow: visible !important;
}

/* Thumbnails scroll container */
.thumbs-scroll {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 10px 0 !important;
    /* Ensure vertical scrolling works while touching this area */
    touch-action: pan-x;
}

/* Individual thumbnail buttons */
.thumb-btn {
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    width: 80px !important;
    height: 80px !important;
    min-width: 80px !important;
    max-width: 80px !important;
    box-sizing: border-box !important;
}

@media (max-width: 768px) {
    .thumb-btn {
        width: 70px !important;
        height: 70px !important;
        min-width: 70px !important;
        max-width: 70px !important;
    }
}

@media (max-width: 576px) {
    .thumb-btn {
        width: 60px !important;
        height: 60px !important;
        min-width: 60px !important;
        max-width: 60px !important;
    }
}

/* Premium Variant Selection Styling - Dark Theme Compatible */
.variant-section {
    margin: 25px 0;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.variant-section h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.variant-section h4 i {
    color: #FFC400;
    font-size: 18px;
}

/* Variant Options Grid */
.variant-section .variant-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.variant-section .variant-btn {
    background: var(--card-bg);
    padding: 15px;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    font-weight: 600;
    color: var(--text-primary);
}

.variant-section .variant-btn:hover {
    border-color: #FFC400;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 196, 0, 0.2);
}

.variant-section .variant-btn.active {
    border-color: #FFC400;
    background: var(--yellow-gradient);
    box-shadow: 0 4px 15px rgba(255, 196, 0, 0.3);
}

/* Dark theme specific active state */
.theme-dark .variant-section .variant-btn.active {
    background: linear-gradient(135deg, rgba(255, 196, 0, 0.15) 0%, rgba(255, 196, 0, 0.05) 100%);
}

.variant-section .variant-btn.active::before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 8px;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    background: #FFC400;
    color: #292222;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.variant-section .variant-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    .variant-section .variant-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Color Circle Display */
.color-circle {
    display: inline-block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    margin-left: 8px;
    vertical-align: middle;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.theme-dark .color-circle {
    box-shadow: 0 2px 6px rgba(255, 255, 255, 0.1);
}

/* Size Badges */
.sizes-container {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.size-badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.theme-dark .size-badge {
    background: rgba(255, 196, 0, 0.1);
    border-color: rgba(255, 196, 0, 0.3);
}

/* Update variant btn to support color and sizes */
.variant-section .variant-btn {
    background: var(--card-bg);
    padding: 15px;
    padding-left: 40px;
    /* Extra padding on left to avoid overlap with checkmark */
    padding-right: 20px;
    /* Extra padding on right for text spacing */
    border-radius: 10px;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: right;
    /* Align text to the right (Arabic direction) */
    position: relative;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    flex-direction: row-reverse;
    /* Icon on left, text on right in RTL */
    align-items: center;
    justify-content: flex-end;
    /* Align content to the right (end) in RTL */
    gap: 8px;
    min-height: 60px;
}

.variant-btn-content {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .variant-section .variant-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .color-circle {
        width: 18px;
        height: 18px;
    }

    .size-badge {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
}

@media (max-width: 576px) {
    .variant-section .variant-options {
        grid-template-columns: 1fr;
    }

    .variant-section .variant-btn {
        padding: 12px;
    }

    .color-circle {
        width: 16px;
        height: 16px;
        margin-left: 6px;
    }

    .size-badge {
        font-size: 0.65rem;
        padding: 2px 6px;
    }

    .sizes-container {
        gap: 4px;
        margin-top: 8px;
        padding-top: 8px;
    }
}

/* New Interactive Color and Size Selection Styles */
.variant-selection-section {
    margin-top: 1.5rem;
}

.variant-selection-section h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.1rem;
}

/* Mobile: Show variant selection after gallery */
@media (max-width: 768px) {
    .product-info-col {
        display: flex;
        flex-direction: column;
    }

    /* Reorder elements on mobile */
    .stock-badge {
        order: 1;
    }

    .page-title {
        order: 2;
    }

    .variant-selection-section {
        order: 3;
        /* Show variant selection right after title */
        margin-top: 1rem;
    }

    .specs-panel {
        order: 4;
    }

    .product-description {
        order: 5;
    }

    .variant-section {
        order: 6;
    }

    .action-row {
        order: 7;
    }
}

.color-selection {
    display: flex;
    gap: 15px;
    row-gap: 50px;
    /* Larger vertical spacing between rows */
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding-top: 20px;
    /* Space above color squares */
    padding-bottom: 20px;
    /* Space for color name labels below squares */
}

.color-option {
    /* Square shape with rounded corners */
    width: 70px;
    height: 70px;
    border-radius: 12px;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;

    /* 3D Effect - Elevated look */
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.15),
        0 8px 16px rgba(0, 0, 0, 0.1),
        inset 0 -2px 4px rgba(0, 0, 0, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);

    /* Subtle outline for visibility */
    outline: 1px solid rgba(128, 128, 128, 0.2);
    outline-offset: 0px;
}

.theme-dark .color-option {
    outline: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.4),
        0 8px 20px rgba(0, 0, 0, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.1);
}

.color-option:hover:not(.disabled) {
    transform: translateY(-8px) scale(1.05);
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.15),
        0 8px 16px rgba(0, 0, 0, 0.1),
        inset 0 -2px 4px rgba(0, 0, 0, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.4);
    outline-color: #FFC400;
    outline-width: 2px;
}

.color-option.selected {
    outline-color: #FFC400;
    outline-width: 3px;
    outline-offset: 1px;
    transform: translateY(-3px) scale(1.08);
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.15),
        0 8px 16px rgba(0, 0, 0, 0.1),
        inset 0 -3px 6px rgba(0, 0, 0, 0.25),
        inset 0 3px 6px rgba(255, 255, 255, 0.5);
}

.color-option.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

/* Color name label below the square */
.color-option::before {
    content: attr(data-color-name);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--text-primary);
    white-space: nowrap;
    padding: 4px 8px;
    opacity: 0.9;
}

.color-option.selected::before {
    color: #FFC400;
    font-weight: 800;
    opacity: 1;
}

/* Tooltip for deselection hint */
.color-option.selected::after {
    content: "انقر مرة أخرى لإلغاء التحديد";
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.theme-dark .color-option.selected::after {
    background: rgba(255, 255, 255, 0.9);
    color: #1a1a1a;
}

.color-option.selected:hover::after {
    opacity: 1;
}

.size-selection-wrapper {
    margin-top: 1.5rem;
}

.size-selection {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.size-option {
    padding: 12px 24px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: var(--text-primary);
}

.size-option:hover:not(.disabled) {
    border-color: #FFC400;
    background: rgba(255, 196, 0, 0.1);
    transform: translateY(-2px);
}

.size-option.selected {
    background: #FFC400;
    border-color: #FFC400;
    color: #1a1a1a;
    box-shadow: 0 4px 8px rgba(255, 196, 0, 0.3);
}

.size-option.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: var(--bg-secondary);
}

@media (max-width: 768px) {
    .color-option {
        width: 60px;
        height: 60px;
    }

    .color-option::before {
        font-size: 0.7rem;
        bottom: -32px;
    }

    /* CRITICAL FIX: Force outline reset when not selected on mobile */
    .color-option:not(.selected) {
        outline-color: rgba(128, 128, 128, 0.2) !important;
        outline-width: 1px !important;
        outline-offset: 0px !important;
    }

    /* Ensure selected state is properly applied */
    .color-option.selected {
        outline-color: #FFC400 !important;
        outline-width: 3px !important;
        outline-offset: 1px !important;
    }

    .size-option {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .color-option {
        width: 55px;
        height: 55px;
    }

    .color-option::before {
        font-size: 0.65rem;
        bottom: -30px;
        padding: 3px 6px;
    }

    /* CRITICAL FIX: Force outline reset when not selected on small mobile */
    .color-option:not(.selected) {
        outline-color: rgba(128, 128, 128, 0.2) !important;
        outline-width: 1px !important;
        outline-offset: 0px !important;
    }

    /* Ensure selected state is properly applied */
    .color-option.selected {
        outline-color: #FFC400 !important;
        outline-width: 3px !important;
        outline-offset: 1px !important;
    }

    .size-option {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
}
.variant-text-option{
    padding:10px 16px;
    border:2px solid #ddd;
    border-radius:10px;
    cursor:pointer;
    background:#fff;
    font-weight:600;
    transition:0.2s;
}

.variant-text-option:hover{
    border-color:#111;
}

.variant-text-option.selected{
    border-color:#111;
    background:#111;
    color:#fff;
}

/* تكبير مربعات الألوان */
.color-option {
    width: 55px !important;
    height: 55px !important;
    border-radius: 8px !important;
    transition: all 0.2s ease;
}
.color-option-wrapper span {
    font-size: 0.85em !important;
    margin-top: 8px;
}

/* تصميم الخيارات النصية */
.text-option {
    padding: 10px 16px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    background: #f8f8f8 !important;
    color: #333 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease;
    min-width: 80px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.text-option:hover {
    border-color: #aaa !important;
    background: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* تأثير التحديد الأصفر */
.text-option.selected {
    border-color: #fbbf24 !important;  /* أصفر */
    background: #fff9e6 !important;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
}

/* تحسين مظهر الخيارات اللونية عند التحديد */
.color-option.selected {
    outline: 3px solid #fbbf24 !important;
    outline-offset: 3px !important;
    transform: scale(1.05);
}


/* تحسين تمرير اللمس */
.thumbs-scroll {
    touch-action: pan-y;  /* يسمح بالتمرير العمودي مع الحفاظ على التفاعل الأفقي */
    -webkit-overflow-scrolling: touch; /* تمرير سلس في iOS */
}
.thumb-btn {
    touch-action: manipulation; /* يسمح بالتمرير مع منع التكبير/التصغير */
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.thumb-btn img {
    pointer-events: none; /* يمنع الصورة من اعتراض أحداث اللمس */
}