/**
 * Dar Al Waqar Storefront - Premium Redesign
 * Apple / Shopify Style Aesthetics
 * RTL Optimized
 */

:root {
    --primary: #c8a96a; /* Premium Gold */
    --primary-brown: #8B4513;
    --primary-soft: rgba(200, 169, 106, 0.1);
    --bg-light: #ffffff;
    --section-gray: #f9f9f9;
    --text-main: #1d1d1f;
    --text-muted: #86868b;
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(0, 0, 0, 0.1);
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.12);
    --radius-premium: 16px;
    --radius-round: 50px;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Adjustments */
body {
    color: var(--text-main);
    background-color: var(--bg-light);
    overflow-x: hidden;
    font-family: 'Cairo', sans-serif;
}

.sf-product-container {
    padding-top: 40px;
    padding-bottom: 80px;
}

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

.sf-main-image-wrapper {
    background: #fbfbfd;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    cursor: zoom-in;
    aspect-ratio: 4 / 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sf-main-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sf-main-image-wrapper:hover img {
    transform: scale(1.1);
}

.sf-thumbs-wrapper {
    margin-top: 16px;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.sf-thumb-item {
    width: 80px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
    background: #fbfbfd;
}

.sf-thumb-item.active {
    border-color: var(--primary);
}

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

/* Product Info Sidebar */
.sf-product-info {
    padding-inline-start: 20px;
}

@media (max-width: 992px) {
    .sf-product-info {
        padding-inline-start: 0;
        margin-top: 40px;
    }
}

.sf-product-title {
    font-size: 2.2rem;
    font-weight: 850;
    margin-bottom: 8px;
    color: var(--text-main);
}

.sf-product-meta {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.sf-price-row {
    margin-bottom: 32px;
    display: flex;
    align-items: baseline;
    gap: 15px;
}

.sf-price-main {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--text-main);
}

/* Variations */
.sf-variation-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    display: block;
}

.sf-color-group {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.sf-color-pill {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 1px #eee;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.sf-color-pill.active {
    box-shadow: 0 0 0 2px var(--primary);
    transform: scale(1.1);
}

.sf-size-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.sf-size-btn {
    min-width: 50px;
    height: 44px;
    border: 1px solid #eee;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    background: white;
}

.sf-size-btn:hover {
    border-color: var(--text-main);
}

.sf-size-btn.active {
    background: var(--text-main);
    color: white;
    border-color: var(--text-main);
}

/* Action Buttons */
.sf-action-row {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.sf-btn-primary {
    flex: 1;
    height: 56px;
    background: var(--text-main);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.sf-btn-primary:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.sf-btn-secondary {
    flex: 1;
    height: 56px;
    background: white;
    color: var(--text-main);
    border: 1.5px solid var(--text-main);
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.sf-btn-secondary:hover {
    background: #f8f8f8;
}

.sf-btn-wish {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid #eee;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition-smooth);
}

.sf-btn-wish:hover {
    border-color: #ff4d4f;
    color: #ff4d4f;
}

/* Trust Badges */
.sf-trust-badges {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.sf-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    flex: 1;
}

.sf-trust-item i {
    font-size: 1.5rem;
    color: var(--primary);
}

.sf-trust-item span {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
}

/* Tabs */
.sf-tabs-nav {
    border-bottom: 1px solid #eee;
    display: flex;
    gap: 40px;
    margin-top: 60px;
    margin-bottom: 32px;
}

.sf-tab-link {
    padding-bottom: 12px;
    font-size: 1.1rem;
    font-weight: 750;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    border: none;
    background: none;
}

.sf-tab-link.active {
    color: var(--text-main);
}

.sf-tab-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--text-main);
}

.sf-tab-pane {
    display: none;
    line-height: 1.8;
}

.sf-tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* Mobile Bottom Bar for Add to Cart */
.sf-mobile-cart-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 12px 20px;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.08);
    z-index: 2000;
}

@media (max-width: 768px) {
    .sf-mobile-cart-bar {
        display: flex;
        gap: 12px;
    }
}