/* ─────────────────────────────────────────────────────────────
   Hanout — Single Product Styles (RTL Optimized)
   ───────────────────────────────────────────────────────────── */

.hanout-product-layout {
    display: flex;
    gap: var(--space-8);
    padding: var(--space-8) 0;
}

/* --- Gallery (Right in RTL) --- */
.hanout-product-gallery {
    width: 55%;
    flex-shrink: 0;
}

.hanout-main-image-wrap {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: var(--color-gray-50);
    margin-bottom: var(--space-4);
}

.hanout-main-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.hanout-main-image-wrap:hover img {
    transform: scale(1.1);
}

.hanout-thumbnails {
    display: flex;
    gap: var(--space-3);
    overflow-x: auto;
    scrollbar-width: none;
}

.hanout-thumb {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.hanout-thumb.is-active {
    border-color: var(--color-accent);
}

.hanout-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Info (Left in RTL) --- */
.hanout-product-summary {
    width: 45%;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

/* Breadcrumb */
.hanout-breadcrumb {
    font-size: 0.8rem;
    color: var(--color-gray-500);
}

/* Bestseller Badge */
.hanout-bestseller-badge {
    background: var(--color-accent);
    color: var(--color-white);
    padding: var(--space-1) var(--space-4);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
}

.hanout-product-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin: 0;
    color: var(--color-gray-900);
}

.hanout-product-rating {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

/* Price Block */
.hanout-price-box {
    display: flex;
    align-items: baseline;
    gap: var(--space-3);
    padding: var(--space-4) 0;
}

.hanout-price-box ins {
    font-size: var(--font-size-2xl);
    color: var(--color-accent);
    font-weight: 700;
    text-decoration: none;
}

.hanout-price-box del {
    font-size: var(--font-size-lg);
    color: var(--color-gray-400);
}

.hanout-discount-tag {
    background: var(--color-accent);
    color: var(--color-white);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Stock Status */
.hanout-stock-status {
    font-weight: 600;
    font-size: var(--font-size-sm);
}

.hanout-stock--in { color: #27ae60; }
.hanout-stock--low { color: #f39c12; }
.hanout-stock--out { color: #e74c3c; }

/* Urgency Timer */
.hanout-urgency-timer {
    background: var(--color-gray-900);
    color: var(--color-white);
    padding: var(--space-4);
    border-radius: var(--border-radius-md);
    text-align: center;
}

.hanout-timer-label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: var(--space-3);
}

.hanout-timer-grid {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
}

.hanout-timer-box {
    display: flex;
    flex-direction: column;
}

.hanout-timer-box span:first-child {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}

.hanout-timer-box span:last-child {
    font-size: 0.65rem;
    text-transform: uppercase;
}

/* Stock Bar */
.hanout-stock-urgency {
    margin: var(--space-2) 0;
}

.hanout-stock-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 5px;
    display: block;
}

.hanout-stock-bar {
    height: 8px;
    background: var(--color-gray-100);
    border-radius: 4px;
    overflow: hidden;
}

.hanout-stock-fill {
    height: 100%;
    background: #e74c3c;
    transition: width 0.5s ease;
}

/* Trust Badges */
.hanout-trust-badges {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-4) 0;
    border-top: 1px solid var(--color-gray-100);
    border-bottom: 1px solid var(--color-gray-100);
}

.hanout-badge-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.85rem;
    color: var(--color-gray-700);
}

/* Tabs Accordion */
.hanout-tabs-wrap {
    margin-top: var(--space-6);
}

.hanout-tab-item {
    border-bottom: 1px solid var(--color-gray-100);
}

.hanout-tab-title {
    padding: var(--space-4) 0;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hanout-tab-title::after {
    content: '+';
    font-size: 1.2rem;
}

.hanout-tab-item.is-active .hanout-tab-title::after {
    content: '-';
}

.hanout-tab-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-bottom: 0;
}

.hanout-tab-item.is-active .hanout-tab-content {
    max-height: 2000px; /* Large enough to fit content */
    padding-bottom: var(--space-4);
}

/* Add to Cart Area */
.hanout-cart-actions {
    display: flex;
    gap: var(--space-4);
}

.hanout-qty-selector {
    display: flex;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.hanout-qty-btn {
    width: 40px;
    height: 50px;
    background: var(--color-gray-50);
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
}

.hanout-qty-input {
    width: 50px;
    text-align: center;
    border: none;
    border-inline: 1px solid var(--color-gray-200);
    font-weight: 700;
}

.hanout-atc-btn {
    flex: 1;
    background: var(--color-accent);
    color: var(--color-white);
    border: none;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

/* Related Products */
.hanout-related-products {
    padding-top: var(--space-12);
}

.hanout-related-scroll {
    display: flex;
    gap: var(--space-4);
    overflow-x: auto;
    padding-bottom: var(--space-4);
    scrollbar-width: none;
}

.hanout-related-scroll::-webkit-scrollbar { display: none; }

.hanout-related-scroll > * {
    flex: 0 0 240px;
}

/* --- Mobile --- */
@media (max-width: 991px) {
    .hanout-product-layout { flex-direction: column; }
    .hanout-product-gallery, .hanout-product-summary { width: 100%; }
}
