/*
Theme Name: Vivora International V3
Theme URI: https://vivorainternational.com
Author: Vivora Team
Description: قالب متجر عطور فاخر لبراند Vivora International - يدعم WooCommerce والعربية RTL
Version: 1.0.8
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
WC requires at least: 8.0
WC tested up to: 9.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vivora
Tags: rtl-language, arabic, woocommerce, e-commerce, luxury, perfume, right-to-left
*/

/* ═══════════════════════════════════════════════════════════
   CSS Variables
   ═══════════════════════════════════════════════════════════ */
:root {
    --vivora-cream:      #F7EDE4;
    --vivora-sand:       #E8D5B7;
    --vivora-gold:       #C8A882;
    --vivora-dark-gold:  #9E7E5A;
    --vivora-black:      #1A1A1A;
    --vivora-white:      #FFFFFF;
    --vivora-text:       #2C2C2C;
    --vivora-text-light: #6B6B6B;
    --vivora-border:     #E0CFBA;
    --font-display:      'Tajawal', 'Cairo', serif;
    --font-body:         'Tajawal', 'Cairo', sans-serif;
    --transition:        0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm:         4px;
    --radius-md:         8px;
    --radius-lg:         16px;
    --shadow-soft:       0 4px 24px rgba(0,0,0,0.05);
    --shadow-hover:      0 12px 40px rgba(0,0,0,0.1);
    --container-max:     1280px;
}

/* ═══════════════════════════════════════════════════════════
   Reset & Base
   ═══════════════════════════════════════════════════════════ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--vivora-white);
    color: var(--vivora-text);
    direction: rtl;
    text-align: right;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ═══════════════════════════════════════════════════════════
   Container
   ═══════════════════════════════════════════════════════════ */
.vivora-container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ═══════════════════════════════════════════════════════════
   Announcement Bar
   ═══════════════════════════════════════════════════════════ */
.vivora-announcement {
    background: var(--vivora-black);
    color: var(--vivora-white);
    text-align: center;
    padding: 10px 24px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.03em;
}

/* ═══════════════════════════════════════════════════════════
   Header
   ═══════════════════════════════════════════════════════════ */
.vivora-header {
    background: var(--vivora-cream);
    border-bottom: 1px solid var(--vivora-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow var(--transition);
}

.vivora-header.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.vivora-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
    direction: rtl;
}

.vivora-nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 1;
    order: 1; 
}

.vivora-nav ul {
    display: flex;
    gap: 8px;
}

.vivora-nav a {
    padding: 8px 14px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--vivora-text);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    position: relative;
}

.vivora-nav a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 14px;
    left: 14px;
    height: 2px;
    background: var(--vivora-black);
    transform: scaleX(0);
    transition: transform var(--transition);
    transform-origin: right;
}

.vivora-nav a:hover::after,
.vivora-nav a.active::after {
    transform: scaleX(1);
}

.vivora-nav a:hover {
    color: var(--vivora-black);
}

.vivora-logo {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;
    order: 2;
}

.vivora-logo img {
    height: 68px;
    width: auto;
}

.vivora-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    flex: 1;
    order: 3;
}

.vivora-header-action {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background var(--transition);
}

.vivora-header-action:hover {
    background: var(--vivora-sand);
}

.vivora-header-action svg {
    width: 22px;
    height: 22px;
    stroke: var(--vivora-black);
}

.cart-count {
    position: absolute;
    top: 2px;
    left: 2px;
    background: var(--vivora-black);
    color: var(--vivora-white);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════
   Hero Slider
   ═══════════════════════════════════════════════════════════ */
.vivora-hero-slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: #1A1A1A;
    user-select: none;
}

.vivora-slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.vivora-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out; 
    pointer-events: none;
}

.vivora-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.vivora-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.vivora-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 50%);
    pointer-events: none;
}

.vivora-slide-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; 
    align-items: center;
    padding: 0 40px 60px; 
    z-index: 3;
    width: 100%;
}

.vivora-slide-text-wrapper {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 900px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    padding-bottom: 15px;
}

.vivora-slide-label {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: #FFFFFF;
    font-family: 'Tajawal', sans-serif;
    text-transform: uppercase;
    text-align: left;
}

.vivora-slide-title {
    font-family: 'Tajawal', serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.1;
    margin: 0;
    text-align: right;
}

.vivora-slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #FFFFFF;
    color: #1A1A1A;
    border: none;
    padding: 12px 35px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Tajawal', sans-serif;
    transition: all 0.3s ease;
    text-decoration: none;
}

.vivora-slide-btn:hover {
    background: var(--vivora-sand);
    transform: translateY(-2px);
}

.vivora-slide-btn svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    stroke: currentColor;
}

.vivora-slide-btn:hover svg {
    transform: translateX(-4px);
}

.vivora-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.12);
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: all 0.3s ease;
}

.vivora-slider-arrow:hover {
    background: rgba(255,255,255,0.28);
    border-color: #FFFFFF;
    transform: translateY(-50%) scale(1.08);
}

.vivora-slider-arrow svg {
    width: 20px;
    height: 20px;
    stroke: #FFFFFF;
    stroke-width: 2.5;
}

.vivora-slider-prev { right: 20px; }
.vivora-slider-next { left: 20px; }

.vivora-slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.vivora-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.4s ease;
}

.vivora-dot.active {
    background: #FFFFFF;
    width: 28px;
    border-radius: 4px;
}

/* ═══════════════════════════════════════════════════════════
   Category Cards
   ═══════════════════════════════════════════════════════════ */
.vivora-categories {
    padding: 0;
    background: var(--vivora-black);
}

.vivora-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
}

.vivora-category-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9; 
    cursor: pointer;
    display: block;
    background: #2A2A2A;
}

.vivora-category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
    display: block;
}

.vivora-category-card:hover img {
    transform: scale(1.06);
}

.vivora-category-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center; 
    justify-content: center;
    padding: 10px;
    transition: background 0.4s ease;
}

.vivora-category-card:hover .vivora-category-overlay {
    background: rgba(0, 0, 0, 0.45);
}

.vivora-category-info {
    width: 100%;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0;
    text-align: center;
    transition: transform 0.3s ease;
}

.vivora-category-card:hover .vivora-category-info {
    transform: translateY(-3px);
}

.vivora-category-name {
    color: #FFFFFF;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.vivora-category-link-text {
    color: rgba(255,255,255,0.9);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
    display: block;
}

/* ═══════════════════════════════════════════════════════════
   Features Bar
   ═══════════════════════════════════════════════════════════ */
.vivora-features {
    background: #FDFBF8;
    border-top: 1px solid var(--vivora-border);
    border-bottom: 1px solid var(--vivora-border);
    padding: 28px 0;
}

.vivora-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.vivora-feature-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.vivora-feature-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vivora-black);
}

.vivora-feature-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--vivora-black);
}

.vivora-feature-text-group {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.vivora-feature-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--vivora-black);
    margin-bottom: 1px;
}

.vivora-feature-desc {
    font-size: 0.8rem;
    color: var(--vivora-text-light);
}

/* ═══════════════════════════════════════════════════════════
   Products Grid & Cards
   ═══════════════════════════════════════════════════════════ */
.vivora-section {
    padding: 64px 0;
}

.vivora-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.vivora-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--vivora-black);
    position: relative;
}

.vivora-section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 48px;
    height: 3px;
    background: var(--vivora-gold);
    border-radius: 2px;
}

.vivora-see-all {
    font-size: 0.9rem;
    color: var(--vivora-dark-gold);
    font-weight: 500;
    padding: 8px 20px;
    border: 1px solid var(--vivora-gold);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.vivora-see-all:hover {
    background: var(--vivora-gold);
    color: var(--vivora-white);
}

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

.vivora-product-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--vivora-white);
    border: 1px solid var(--vivora-border);
    transition: all var(--transition);
    position: relative;
}

.vivora-product-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.vivora-product-image {
    position: relative;
    overflow: hidden;
    background: var(--vivora-cream);
    aspect-ratio: 4 / 5;
}

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

.vivora-product-card:hover .vivora-product-image img {
    transform: scale(1.06);
}

.vivora-product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--vivora-black);
    color: var(--vivora-white);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.vivora-product-badge.sale {
    background: #D4393B;
    color: #fff;
}

.vivora-product-actions {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(10px);
    transition: all var(--transition);
}

.vivora-product-card:hover .vivora-product-actions {
    opacity: 1;
    transform: translateX(0);
}

.vivora-product-action-btn {
    width: 36px;
    height: 36px;
    background: var(--vivora-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: all var(--transition);
}

.vivora-product-action-btn:hover {
    background: var(--vivora-black);
}

.vivora-product-action-btn:hover svg {
    stroke: var(--vivora-white);
}

.vivora-product-action-btn svg {
    width: 16px;
    height: 16px;
    stroke: var(--vivora-black);
}

.vivora-product-info {
    padding: 14px 16px 16px;
}

.vivora-product-category {
    font-size: 0.75rem;
    color: var(--vivora-dark-gold);
    font-weight: 500;
    margin-bottom: 6px;
}

.vivora-product-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--vivora-black);
    margin-bottom: 8px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vivora-product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.vivora-product-price .current {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--vivora-black);
}

.vivora-product-price .original {
    font-size: 0.85rem;
    color: var(--vivora-text-light);
    text-decoration: line-through;
}

.vivora-add-to-cart {
    width: 100%;
    background: var(--vivora-black);
    color: var(--vivora-white);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.03em;
    border: 2px solid var(--vivora-black);
}

.vivora-add-to-cart:hover:not(:disabled) {
    background: transparent;
    color: var(--vivora-black);
}

.vivora-add-to-cart svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   Promo Banner
   ═══════════════════════════════════════════════════════════ */
.vivora-promo-banner {
    background: linear-gradient(135deg, #2C2420 0%, #1A1512 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.vivora-promo-inner {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.vivora-promo-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}

.vivora-promo-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 40px;
    color: var(--vivora-white);
}

.vivora-promo-tag {
    display: inline-block;
    background: var(--vivora-gold);
    color: var(--vivora-black);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.vivora-promo-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
}

.vivora-promo-desc {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 28px;
}

/* ═══════════════════════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════════════════════ */
.vivora-footer {
    background: var(--vivora-black);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 0;
    margin-top: auto;
}

.vivora-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.vivora-footer-brand {
    max-width: 320px;
}

.vivora-footer-logo {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--vivora-white);
    margin-bottom: 4px;
}

.vivora-footer-logo-sub {
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    color: var(--vivora-gold);
    display: block;
    margin-bottom: 16px;
}

.vivora-footer-desc {
    font-size: 0.88rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
    margin-bottom: 24px;
}

.vivora-social-links {
    display: flex;
    gap: 12px;
}

.vivora-social-link {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.vivora-social-link:hover {
    background: var(--vivora-gold);
    border-color: var(--vivora-gold);
}

.vivora-social-link svg {
    width: 16px;
    height: 16px;
    stroke: var(--vivora-white);
}

.vivora-footer-col-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--vivora-white);
    margin-bottom: 20px;
}

.vivora-footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vivora-footer-links a {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.6);
    transition: color var(--transition);
}

.vivora-footer-links a:hover {
    color: var(--vivora-gold);
}

.vivora-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
}

/* ═══════════════════════════════════════════════════════════
   Mobile Bottom Navigation (البار السفلي للموبايل)
   ═══════════════════════════════════════════════════════════ */
.vivora-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    body {
        padding-bottom: 70px; /* مسافة للبار السفلي حتى لا يغطي المحتوى */
    }
    
    .vivora-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #FFFFFF;
        box-shadow: 0 -2px 15px rgba(0,0,0,0.08);
        z-index: 9999;
        height: 65px;
        justify-content: space-between;
        align-items: center;
        padding: 0 10px;
        direction: rtl;
    }
    
    .vivora-bottom-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #6B6B6B;
        font-size: 0.7rem;
        gap: 4px;
        text-decoration: none;
        transition: color 0.3s;
    }
    
    .vivora-bottom-nav-item.active,
    .vivora-bottom-nav-item:hover {
        color: #1A1A1A;
    }
    
    .vivora-bottom-nav-item svg {
        width: 22px;
        height: 22px;
        stroke: currentColor;
        fill: none;
    }
    
    /* زر اللوجو في المنتصف */
    .vivora-bottom-nav-center {
        position: relative;
        flex: 1;
        display: flex;
        justify-content: center;
    }
    
    .vivora-bottom-nav-logo {
        position: absolute;
        top: -30px; /* سحب الزر للأعلى ليصبح بارزاً */
        width: 58px;
        height: 58px;
        background: #1A1A1A;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 15px rgba(0,0,0,0.25);
        color: #FFFFFF;
        font-size: 1.6rem;
        font-weight: bold;
        border: 4px solid #FFFFFF; /* حدود بيضاء لتفصله عن الخلفية */
        text-decoration: none;
        font-family: serif;
    }
}

/* ═══════════════════════════════════════════════════════════
   Mobile Menu
   ═══════════════════════════════════════════════════════════ */
.vivora-mobile-menu {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--vivora-white);
    z-index: 9999;
    box-shadow: -4px 0 24px rgba(0,0,0,0.12);
    overflow-y: auto;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s, opacity 0.35s;
    padding: 80px 0 40px;
}

.vivora-mobile-menu.open {
    right: 0;
    visibility: visible;
    opacity: 1;
}

.vivora-mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vivora-mobile-nav li a {
    display: block;
    padding: 16px 28px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--vivora-text);
    border-bottom: 1px solid var(--vivora-border);
    transition: color var(--transition), background var(--transition);
    text-align: right;
}

.vivora-mobile-nav li a:hover {
    color: var(--vivora-black);
    background: var(--vivora-cream);
}

/* ═══════════════════════════════════════════════════════════
   SINGLE PRODUCT PAGE & WOOCOMMERCE
   ═══════════════════════════════════════════════════════════ */
.vivora-single-product { padding: 40px 0 80px; }
.woocommerce div.product { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.woocommerce div.product div.images { position: sticky; top: 110px; }
.woocommerce div.product div.images .woocommerce-product-gallery__image img { border-radius: var(--radius-md); width: 100%; height: auto; object-fit: cover; border: 1px solid var(--vivora-border); }
.woocommerce div.product div.images .flex-control-thumbs { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.woocommerce div.product div.images .flex-control-thumbs li { width: 72px !important; margin: 0 !important; }
.woocommerce div.product div.images .flex-control-thumbs li img { border-radius: var(--radius-sm); border: 2px solid transparent; cursor: pointer; transition: border-color var(--transition); }
.woocommerce div.product div.images .flex-control-thumbs li img.flex-active,
.woocommerce div.product div.images .flex-control-thumbs li img:hover { border-color: var(--vivora-gold); }
.woocommerce div.product div.summary { padding: 0; }
.woocommerce div.product .product_title { font-family: var(--font-display); font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 700; color: var(--vivora-black); margin-bottom: 12px; line-height: 1.3; }
.woocommerce div.product .woocommerce-product-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.woocommerce div.product .star-rating { color: var(--vivora-gold); font-size: 1rem; }
.woocommerce div.product p.price, .woocommerce div.product span.price { font-size: 1.8rem; font-weight: 700; color: var(--vivora-black); margin-bottom: 20px; display: block; }
.woocommerce div.product p.price del, .woocommerce div.product span.price del { font-size: 1.1rem; color: var(--vivora-text-light); font-weight: 400; margin-inline-start: 10px; }
.woocommerce div.product p.price ins, .woocommerce div.product span.price ins { text-decoration: none; color: #D4393B; }
.woocommerce div.product .woocommerce-product-details__short-description { font-size: 0.95rem; color: var(--vivora-text-light); line-height: 1.8; margin-bottom: 24px; border-top: 1px solid var(--vivora-border); border-bottom: 1px solid var(--vivora-border); padding: 16px 0; }
.woocommerce div.product .stock { font-size: 0.85rem; font-weight: 600; margin-bottom: 16px; }
.woocommerce div.product .in-stock { color: #27AE60; }
.woocommerce div.product .out-of-stock { color: #C0392B; }
.woocommerce div.product form.cart { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.woocommerce div.product form.cart .qty { width: 72px; height: 52px; border: 2px solid var(--vivora-border); border-radius: var(--radius-sm); text-align: center; font-size: 1rem; font-family: var(--font-body); color: var(--vivora-black); background: var(--vivora-white); transition: border-color var(--transition); -moz-appearance: textfield; }
.woocommerce div.product form.cart .qty:focus { outline: none; border-color: var(--vivora-gold); }
.woocommerce div.product form.cart .qty::-webkit-inner-spin-button, .woocommerce div.product form.cart .qty::-webkit-outer-spin-button { -webkit-appearance: none; }
.woocommerce div.product form.cart .single_add_to_cart_button, .woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button { background: var(--vivora-black) !important; color: var(--vivora-white) !important; border: 2px solid var(--vivora-black) !important; padding: 14px 36px !important; font-size: 1rem !important; font-weight: 600 !important; border-radius: var(--radius-sm) !important; font-family: var(--font-body) !important; transition: all var(--transition) !important; flex: 1; min-width: 180px; height: 52px; display: inline-flex !important; align-items: center !important; justify-content: center !important; letter-spacing: 0.03em; cursor: pointer; }
.woocommerce div.product form.cart .single_add_to_cart_button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover { background: transparent !important; color: var(--vivora-black) !important; }
.woocommerce div.product .product_meta { font-size: 0.82rem; color: var(--vivora-text-light); margin-top: 20px; display: flex; flex-direction: column; gap: 6px; }
.woocommerce div.product .product_meta a { color: var(--vivora-dark-gold); transition: color var(--transition); }
.woocommerce div.product .product_meta a:hover { color: var(--vivora-black); }
.woocommerce-tabs { margin-top: 60px; border-top: 2px solid var(--vivora-border); padding-top: 40px; }
.woocommerce-tabs ul.tabs { display: flex; gap: 0; margin-bottom: 32px; border-bottom: 2px solid var(--vivora-border); list-style: none; padding: 0; }
.woocommerce-tabs ul.tabs li { margin: 0; }
.woocommerce-tabs ul.tabs li a { display: block; padding: 12px 28px; font-size: 0.95rem; font-weight: 600; color: var(--vivora-text-light); border-bottom: 3px solid transparent; margin-bottom: -2px; transition: all var(--transition); }
.woocommerce-tabs ul.tabs li.active a { color: var(--vivora-black); border-bottom-color: var(--vivora-gold); }
.woocommerce-tabs ul.tabs li a:hover { color: var(--vivora-black); }
.woocommerce-tabs ul.tabs::before, .woocommerce-tabs ul.tabs li::before, .woocommerce-tabs ul.tabs li::after { display: none !important; }
.woocommerce-tabs .panel { font-size: 0.95rem; line-height: 1.9; color: var(--vivora-text); }
.vivora-breadcrumb { padding: 12px 0; border-bottom: 1px solid var(--vivora-border); background: #FDFBF8; }
.vivora-breadcrumb .woocommerce-breadcrumb { font-size: 0.82rem; color: var(--vivora-text-light); }
.vivora-breadcrumb .woocommerce-breadcrumb a { color: var(--vivora-dark-gold); transition: color var(--transition); }
.vivora-breadcrumb .woocommerce-breadcrumb a:hover { color: var(--vivora-black); }

/* ═══════════════════════════════════════════════════════════
   SHOP PAGE
   ═══════════════════════════════════════════════════════════ */
.vivora-shop-header { background: var(--vivora-cream); padding: 40px 0 32px; text-align: center; }
.vivora-shop-title { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; color: var(--vivora-black); margin-bottom: 8px; }
.vivora-shop-desc { color: var(--vivora-text-light); font-size: 0.95rem; }
.vivora-shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.vivora-sidebar .widget { margin-bottom: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--vivora-border); }
.vivora-sidebar .widget-title { font-size: 1rem; font-weight: 700; color: var(--vivora-black); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--vivora-gold); display: inline-block; }
.vivora-sidebar ul li { margin-bottom: 10px; }
.vivora-sidebar ul li a { font-size: 0.88rem; color: var(--vivora-text-light); transition: color var(--transition); display: flex; justify-content: space-between; align-items: center; }
.vivora-sidebar ul li a:hover, .vivora-sidebar ul li a.active { color: var(--vivora-black); font-weight: 600; }
.vivora-sidebar ul li a span { font-size: 0.8rem; color: var(--vivora-text-light); background: var(--vivora-sand); padding: 2px 8px; border-radius: 20px; }
.vivora-shop-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--vivora-border); }
.woocommerce-result-count { font-size: 0.85rem; color: var(--vivora-text-light); }
.woocommerce-ordering select { border: 1px solid var(--vivora-border); border-radius: var(--radius-sm); padding: 8px 14px; font-size: 0.85rem; font-family: var(--font-body); color: var(--vivora-text); background: var(--vivora-white); cursor: pointer; direction: rtl; }
.woocommerce .products.columns-4, .woocommerce-page .products.columns-4 { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 24px !important; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.woocommerce ul.products li.product { margin: 0 !important; float: none !important; width: auto !important; }
.woocommerce-pagination { margin-top: 40px; text-align: center; }
.woocommerce-pagination ul { display: inline-flex; gap: 6px; list-style: none; padding: 0; }
.woocommerce-pagination ul li a, .woocommerce-pagination ul li span { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--vivora-border); border-radius: var(--radius-sm); font-size: 0.9rem; color: var(--vivora-text); transition: all var(--transition); }
.woocommerce-pagination ul li a:hover { background: var(--vivora-black); color: var(--vivora-white); border-color: var(--vivora-black); }
.woocommerce-pagination ul li span.current { background: var(--vivora-black); color: var(--vivora-white); border-color: var(--vivora-black); }

/* ═══════════════════════════════════════════════════════════
   Responsive Design - التحكم الكامل في الموبايل
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .vivora-menu-toggle { display: flex; }
    .vivora-header-inner { height: 70px; }
    .vivora-nav { display: none; }
    .vivora-slider-arrow { width: 40px; height: 40px; }
    .vivora-categories-grid { grid-template-columns: repeat(2, 1fr); gap: 2px; }
    .vivora-category-card { aspect-ratio: 16 / 9; }
    .vivora-features-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .woocommerce div.product { grid-template-columns: 1fr; gap: 32px; }
    .woocommerce div.product div.images { position: static; }
    .vivora-shop-layout { grid-template-columns: 1fr; }
    .vivora-sidebar { display: none; }
    .woocommerce .products.columns-4, .woocommerce-page .products.columns-4 { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 768px) {
    .vivora-hero-slider { height: 260px !important; min-height: 260px !important; }
    .vivora-slide-content { padding: 0 20px 30px; }
    .vivora-slide-text-wrapper { margin-bottom: 15px; padding-bottom: 10px; }
    .vivora-slide-label { font-size: 0.85rem; }
    .vivora-slide-title { font-size: 1.8rem; }
    .vivora-slide-btn { padding: 8px 24px; font-size: 0.9rem; }
    .vivora-slider-arrow { display: none; }
    .vivora-slider-dots { bottom: 10px; }
    .vivora-category-card { aspect-ratio: 2.5 / 1 !important; }
    .vivora-category-name { font-size: 1.1rem; margin-bottom: 0px; }
    
    /* جعل الميزات (دفع آمن، الخ) 4 بجوار بعض على الموبايل */
    .vivora-features-grid { 
        grid-template-columns: repeat(4, 1fr) !important; 
        gap: 5px; 
        padding: 5px;
    }
    .vivora-feature-item {
        flex-direction: column; /* الأيقونة فوق والنص تحتها */
        text-align: center;
        gap: 6px;
    }
    .vivora-feature-icon {
        width: 30px; height: 30px;
    }
    .vivora-feature-icon svg {
        width: 26px; height: 26px;
    }
    .vivora-feature-text-group {
        text-align: center;
    }
    .vivora-feature-title {
        font-size: 0.75rem;
        line-height: 1.2;
    }
    .vivora-feature-desc {
        display: none; /* إخفاء الوصف على الموبايل لتوفير المساحة */
    }
    
    .vivora-products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .vivora-footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
    .vivora-dot { width: 6px; height: 6px; }
    .vivora-dot.active { width: 18px; }
    .vivora-category-name { font-size: 0.95rem; }
    .vivora-category-link-text { font-size: 0.7rem; }
}