/* إعدادات أساسية */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --olive: #556B2F;
    --sandy: #DCC9A6;
    --gold: #B8860B;
    --cream: #FAF7F0;
    --olive-light: #6B7F3F;
    --olive-dark: #3E4F21;
    --gold-light: #DAA520;
    --gold-dark: #996F0A;
    --white: #ffffff;
    --black: #2c2c2c;
    --gray: #666666;
    --light-gray: #f5f5f5;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Cairo', 'Tajawal', 'Noto Kufi Arabic', Arial, sans-serif;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--cream);
    direction: rtl;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* شريط الإعلان العلوي */
.top-banner {
    background: linear-gradient(135deg, var(--olive), var(--olive-light));
    color: white;
    text-align: center;
    padding: 8px 0;
    font-size: 14px;
}

/* الهيدر */
.header {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.navbar-brand h1 {
    font-size: 2rem;
    color: var(--olive);
    font-weight: 700;
    margin-bottom: -5px;
}

.brand-subtitle {
    font-size: 12px;
    color: var(--gold);
    font-weight: 500;
}

.navbar-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--black);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--olive);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 100%;
    height: 2px;
    background: var(--gold);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-btn,
.cart-btn {
    background: none;
    border: none;
    color: var(--black);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
}

.search-btn:hover,
.cart-btn:hover {
    background: var(--light-gray);
    color: var(--olive);
}

.cart-count {
    position: absolute;
    top: -5px;
    left: -5px;
    background: var(--gold);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 3px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--olive);
    transition: var(--transition);
}

/* البحث المنبثق */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.search-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 18px;
    outline: none;
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--olive);
}

.search-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray);
}

/* السكشن الرئيسي */
.hero {
    background: linear-gradient(135deg, var(--cream), #f8f6f0);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    color: var(--olive);
    margin-bottom: 10px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 20px;
    font-weight: 600;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 30px;
    line-height: 1.8;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(184, 134, 11, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(184, 134, 11, 0.4);
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
}

.hero-image {
    position: relative;
    z-index: 2;
}

.hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.olive-leaf {
    position: absolute;
    width: 80px;
    height: 80px;
    opacity: 0.1;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23556B2F"><path d="M12 2C8 2 5 5 5 9c0 5.25 3.99 9.68 9 10.93C19.01 18.68 23 14.25 23 9c0-4-3-7-7-7h-4z"/></svg>') center/contain no-repeat;
}

.olive-leaf-1 {
    top: 20%;
    right: 10%;
    animation: float 6s ease-in-out infinite;
}

.olive-leaf-2 {
    bottom: 20%;
    left: 10%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

/* الأقسام المميزة */
.categories {
    padding: 80px 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--olive);
    margin-bottom: 50px;
    font-weight: 700;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.category-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.category-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.category-card:hover img {
    transform: scale(1.05);
}

.category-content {
    padding: 25px;
}

.category-content h3 {
    font-size: 1.5rem;
    color: var(--olive);
    margin-bottom: 10px;
    font-weight: 600;
}

.category-content p {
    color: var(--gray);
    margin-bottom: 15px;
    font-size: 1rem;
}

.category-count {
    display: inline-block;
    background: var(--sandy);
    color: var(--olive);
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 500;
}

/* الأكثر مبيعاً */
.bestsellers {
    padding: 80px 0;
    background: var(--light-gray);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--gold);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-origin {
    color: var(--olive);
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 500;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.rating-stars {
    color: var(--gold);
    font-size: 14px;
}

.rating-count {
    color: var(--gray);
    font-size: 14px;
}

.product-pricing {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.current-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--olive);
}

.original-price {
    font-size: 1rem;
    color: var(--gray);
    text-decoration: line-through;
}

.add-to-cart {
    width: 100%;
    background: var(--olive);
    color: white;
    border: none;
    padding: 12px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.add-to-cart:hover {
    background: var(--olive-dark);
    transform: translateY(-1px);
}

/* قصتنا */
.our-story {
    padding: 80px 0;
    background: white;
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.story-text h2 {
    font-size: 2.5rem;
    color: var(--olive);
    margin-bottom: 20px;
    font-weight: 700;
}

.story-text p {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.btn-secondary {
    background: transparent;
    color: var(--olive);
    border: 2px solid var(--olive);
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--olive);
    color: white;
    transform: translateY(-2px);
}

.story-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.story-images img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.story-images img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

/* إشعارات الثقة */
.trust-badges {
    padding: 80px 0;
    background: var(--light-gray);
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.badge {
    text-align: center;
    padding: 30px;
}

.badge svg {
    color: var(--olive);
    margin-bottom: 20px;
}

.badge h3 {
    font-size: 1.3rem;
    color: var(--olive);
    margin-bottom: 10px;
    font-weight: 600;
}

.badge p {
    color: var(--gray);
    font-size: 1rem;
}

/* الفوتر */
.footer {
    background: var(--olive);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--sandy);
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--sandy);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--sandy);
}

.contact-info p {
    margin-bottom: 8px;
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--gold);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

/* عربة التسوق المنبثقة */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 3000;
    display: none;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.cart-overlay.active .cart-sidebar {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.cart-header h3 {
    color: var(--olive);
    font-size: 1.3rem;
}

.cart-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.empty-cart {
    text-align: center;
    color: var(--gray);
    padding: 50px 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    color: var(--black);
    margin-bottom: 5px;
    font-size: 14px;
}

.cart-item-price {
    color: var(--olive);
    font-weight: 600;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.qty-btn {
    width: 25px;
    height: 25px;
    border: 1px solid var(--border-color);
    background: white;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: var(--transition);
}

.qty-btn:hover {
    background: var(--olive);
    color: white;
    border-color: var(--olive);
}

.cart-quantity {
    width: 40px;
    text-align: center;
    border: 1px solid var(--border-color);
    padding: 5px;
    border-radius: 4px;
}

.remove-item {
    background: none;
    border: none;
    color: var(--gold);
    cursor: pointer;
    font-size: 12px;
    margin-top: 5px;
    text-decoration: underline;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background: var(--light-gray);
}

.cart-total {
    margin-bottom: 15px;
    text-align: center;
    color: var(--olive);
    font-size: 1.2rem;
}

.checkout-btn {
    width: 100%;
    background: var(--gold);
    color: white;
    border: none;
    padding: 15px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.checkout-btn:hover {
    background: var(--gold-dark);
}

/* صفحة المنتجات */
.products-page {
    padding: 30px 0 80px;
    min-height: calc(100vh - 200px);
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--olive);
    margin-bottom: 10px;
}

.page-header p {
    color: var(--gray);
    font-size: 1.1rem;
}

.products-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

/* الفلاتر */
.filters-sidebar {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filters-sidebar h3 {
    color: var(--olive);
    margin-bottom: 25px;
    font-size: 1.3rem;
    font-weight: 600;
}

.filter-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-section h4 {
    color: var(--black);
    margin-bottom: 15px;
    font-size: 1rem;
    font-weight: 600;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--gray);
    transition: var(--transition);
}

.filter-options label:hover {
    color: var(--olive);
}

.filter-options input[type="radio"],
.filter-options input[type="checkbox"] {
    accent-color: var(--olive);
}

.price-range {
    margin-top: 10px;
}

.price-range input[type="range"] {
    width: 100%;
    margin: 10px 0;
    accent-color: var(--olive);
}

.price-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--gray);
}

.clear-filters {
    width: 100%;
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 10px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.clear-filters:hover {
    background: var(--gold);
    color: white;
}

/* محتوى المنتجات */
.products-content {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.results-count {
    color: var(--gray);
    font-size: 14px;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-options label {
    color: var(--black);
    font-size: 14px;
}

.sort-options select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: white;
    color: var(--black);
    cursor: pointer;
}

/* التصفح */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination button {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    background: white;
    color: var(--black);
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.pagination button:hover,
.pagination button.active {
    background: var(--olive);
    color: white;
    border-color: var(--olive);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* صفحة تفاصيل المنتج */
.product-detail {
    padding: 30px 0 80px;
}

.breadcrumb {
    margin-bottom: 30px;
    color: var(--gray);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--olive);
    text-decoration: none;
}

.breadcrumb span {
    margin: 0 8px;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

/* معرض الصور */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.main-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.thumbnail-images {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 5px 0;
}

.thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.thumbnail.active {
    border-color: var(--olive);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* معلومات المنتج */
.product-info {
    padding: 20px;
}

.product-info h1 {
    font-size: 2rem;
    color: var(--olive);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.rating-text {
    color: var(--gray);
    font-size: 14px;
}

.product-pricing {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.current-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--olive);
}

.original-price {
    font-size: 1.2rem;
    color: var(--gray);
    text-decoration: line-through;
}

.product-origin {
    margin-bottom: 25px;
    padding: 10px 15px;
    background: var(--sandy);
    border-radius: var(--border-radius);
    display: inline-block;
}

.origin-label {
    color: var(--olive);
    font-weight: 600;
    margin-left: 5px;
}

.product-description,
.product-benefits,
.product-usage {
    margin-bottom: 25px;
}

.product-description h3,
.product-benefits h3,
.product-usage h3 {
    color: var(--olive);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.product-description p,
.product-usage p {
    color: var(--gray);
    line-height: 1.6;
}

.product-benefits ul {
    list-style: none;
    padding-right: 20px;
}

.product-benefits li {
    position: relative;
    color: var(--gray);
    margin-bottom: 8px;
    padding-right: 20px;
}

.product-benefits li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--olive);
    font-weight: bold;
}

.product-options {
    margin-bottom: 30px;
}

.size-options,
.quantity-selector {
    margin-bottom: 20px;
}

.size-options label,
.quantity-selector label {
    display: block;
    margin-bottom: 10px;
    color: var(--black);
    font-weight: 600;
}

.size-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.size-btn {
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    background: white;
    color: var(--black);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.size-btn:hover,
.size-btn.active {
    background: var(--olive);
    color: white;
    border-color: var(--olive);
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

#quantity-input {
    width: 80px;
    text-align: center;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
}

.product-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.btn-primary {
    background: var(--olive);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    flex: 1;
}

.btn-primary:hover {
    background: var(--olive-dark);
    transform: translateY(-1px);
}

.buy-now {
    background: var(--gold);
}

.buy-now:hover {
    background: var(--gold-dark);
}

/* علامات التبويب */
.product-tabs {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.tab-buttons {
    display: flex;
    background: var(--light-gray);
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: var(--gray);
    transition: var(--transition);
}

.tab-btn.active,
.tab-btn:hover {
    background: white;
    color: var(--olive);
}

.tab-content {
    display: none;
    padding: 30px;
}

.tab-content.active {
    display: block;
}

/* المراجعات */
.reviews-section h3,
.related-products h3 {
    color: var(--olive);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.reviews-summary {
    margin-bottom: 30px;
    text-align: center;
    padding: 20px;
    background: var(--light-gray);
    border-radius: var(--border-radius);
}

.average-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.rating-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--olive);
}

.total-reviews {
    color: var(--gray);
}

.review-item {
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.reviewer-name {
    font-weight: 600;
    color: var(--black);
}

.review-date {
    color: var(--gray);
    font-size: 14px;
}

.review-text {
    color: var(--gray);
    line-height: 1.6;
}

.load-more-reviews {
    display: block;
    margin: 20px auto 0;
    padding: 10px 20px;
    background: transparent;
    color: var(--olive);
    border: 1px solid var(--olive);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.load-more-reviews:hover {
    background: var(--olive);
    color: white;
}

/* صفحة قصتنا */
.about-page {
    padding: 30px 0 80px;
}

.about-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
    background: white;
    padding: 60px 0;
}

.about-hero-content h1 {
    font-size: 3rem;
    color: var(--olive);
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--gold);
    font-weight: 500;
}

.about-hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.story-section {
    margin-bottom: 80px;
}

.story-section.reverse .story-content {
    direction: ltr;
}

.story-section.reverse .story-text {
    direction: rtl;
}

.story-section h2 {
    font-size: 2rem;
    color: var(--olive);
    margin-bottom: 20px;
    font-weight: 700;
}

.story-section p {
    font-size: 1.1rem;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

.story-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* الطرق التقليدية */
.methods-section {
    background: white;
    padding: 80px 0;
    margin-bottom: 80px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.methods-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--olive);
    margin-bottom: 50px;
    font-weight: 700;
}

.methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.method-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.method-card:hover {
    background: var(--light-gray);
    transform: translateY(-5px);
}

.method-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.method-card h3 {
    color: var(--olive);
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 600;
}

.method-card p {
    color: var(--gray);
    line-height: 1.6;
}

/* القيم */
.values-section {
    background: var(--light-gray);
    padding: 80px 0;
    margin-bottom: 80px;
}

.values-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--olive);
    margin-bottom: 50px;
    font-weight: 700;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.value-item {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.value-item h3 {
    color: var(--olive);
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 600;
}

.value-item p {
    color: var(--gray);
    line-height: 1.6;
}

/* الرؤية والرسالة */
.vision-mission {
    background: white;
    padding: 80px 0;
    margin-bottom: 80px;
}

.vm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.vision,
.mission {
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.vision {
    background: linear-gradient(135deg, var(--olive), var(--olive-light));
    color: white;
}

.mission {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: white;
}

.vision h2,
.mission h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.vision p,
.mission p {
    font-size: 1.1rem;
    line-height: 1.7;
}

/* تواصل معنا */
.contact-section {
    background: var(--light-gray);
    padding: 80px 0;
}

.contact-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--olive);
    margin-bottom: 50px;
    font-weight: 700;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-item {
    margin-bottom: 30px;
}

.contact-item h3 {
    color: var(--olive);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.contact-item p {
    color: var(--gray);
    margin-bottom: 5px;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--black);
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--olive);
    box-shadow: 0 0 0 3px rgba(85, 107, 47, 0.1);
}

/* صفحة عربة التسوق */
.cart-page {
    padding: 30px 0 80px;
    min-height: calc(100vh - 200px);
}

.cart-page h1 {
    font-size: 2.5rem;
    color: var(--olive);
    margin-bottom: 40px;
    font-weight: 700;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.cart-content {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.cart-item-full {
    display: flex;
    gap: 20px;
    padding: 25px;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}

.cart-item-full:last-child {
    border-bottom: none;
}

.cart-item-full img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.cart-item-details {
    flex: 1;
}

.cart-item-details h3 {
    color: var(--olive);
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.cart-item-details .origin {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 10px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-item-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--olive);
    margin-right: 20px;
}

.remove-btn {
    background: none;
    border: none;
    color: var(--gold);
    cursor: pointer;
    padding: 5px;
    font-size: 18px;
    transition: var(--transition);
}

.remove-btn:hover {
    color: var(--gold-dark);
    transform: scale(1.1);
}

.cart-summary {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.cart-summary h3 {
    color: var(--olive);
    margin-bottom: 25px;
    font-size: 1.5rem;
    text-align: center;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: var(--gray);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--olive);
    margin-bottom: 25px;
}

.checkout-btn-full {
    width: 100%;
    background: var(--olive);
    color: white;
    border: none;
    padding: 15px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.checkout-btn-full:hover {
    background: var(--olive-dark);
    transform: translateY(-1px);
}

.continue-shopping {
    display: block;
    text-align: center;
    color: var(--olive);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.continue-shopping:hover {
    color: var(--olive-dark);
}

.empty-cart-full {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 80px 40px;
    text-align: center;
}

.empty-cart-content svg {
    color: var(--gray);
    margin-bottom: 30px;
    opacity: 0.5;
}

.empty-cart-content h2 {
    color: var(--olive);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.empty-cart-content p {
    color: var(--gray);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* نموذج الدفع */
.checkout-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 4000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.checkout-modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: var(--border-radius);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    color: var(--olive);
    font-size: 1.8rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray);
}

.checkout-steps {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 25px 30px;
    border-bottom: 1px solid var(--border-color);
}

.step {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray);
    font-size: 14px;
}

.step.active {
    color: var(--olive);
    font-weight: 600;
}

.step-number {
    width: 30px;
    height: 30px;
    border: 2px solid var(--gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: var(--transition);
}

.step.active .step-number {
    background: var(--olive);
    border-color: var(--olive);
    color: white;
}

.step-content {
    display: none;
    padding: 30px;
}

.step-content.active {
    display: block;
}

.step-content h3 {
    color: var(--olive);
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* طرق الدفع */
.payment-methods {
    margin-bottom: 30px;
}

.payment-method {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    transition: var(--transition);
}

.payment-method:hover {
    border-color: var(--olive);
}

.payment-method label {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    cursor: pointer;
    width: 100%;
}

.payment-method input[type="radio"] {
    accent-color: var(--olive);
}

.payment-info strong {
    color: var(--olive);
    display: block;
    margin-bottom: 5px;
}

.payment-info small {
    color: var(--gray);
}

.card-form {
    background: var(--light-gray);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-top: 20px;
}

.step-buttons {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
}

.prev-step {
    background: transparent;
    color: var(--gray);
    border: 1px solid var(--gray);
}

.next-step {
    background: var(--olive);
    color: white;
    border: none;
}

.confirm-order {
    background: var(--gold);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
}

.confirm-order:hover {
    background: var(--gold-dark);
}

/* ملخص الطلب */
.order-summary {
    background: var(--light-gray);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 30px;
}

.summary-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.summary-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.summary-section h4 {
    color: var(--olive);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    color: var(--gray);
}

.total-summary {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    margin-top: 20px;
}

.total-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: var(--gray);
}

.final-total {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--olive);
    padding-top: 15px;
    border-top: 2px solid var(--border-color);
}

/* الرسائل التفاعلية */
.success-message,
.error-message {
    padding: 15px;
    border-radius: var(--border-radius);
    margin: 20px 0;
    font-weight: 600;
}

.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* التصميم المتجاوب */
@media (max-width: 1024px) {
    .hero-content,
    .story-content,
    .about-hero,
    .contact-content,
    .vm-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-image img,
    .about-hero-image img {
        height: 300px;
    }
    
    .products-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .filters-sidebar {
        position: static;
        order: 2;
    }
    
    .product-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .cart-layout {
        grid-template-columns: 1fr;
    }
    
    .cart-summary {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: white;
        box-shadow: var(--shadow);
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }
    
    .navbar-menu.active {
        display: flex;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .categories-grid,
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .badges-grid,
    .methods-grid,
    .values-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .modal-content {
        margin: 20px;
        max-height: calc(100vh - 40px);
    }
    
    .checkout-steps {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .step-buttons {
        flex-direction: column;
    }
    
    .cart-item-full {
        flex-direction: column;
        text-align: center;
    }
    
    .cart-item-controls {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .categories,
    .bestsellers,
    .our-story,
    .trust-badges {
        padding: 40px 0;
    }
    
    .categories-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card,
    .category-card {
        max-width: none;
    }
    
    .products-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .main-image img {
        height: 300px;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .cart-item-full img {
        width: 80px;
        height: 80px;
    }
}

/* تحسينات إضافية للأداء */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

.bounce-gentle {
    animation: bounceGentle 2s ease-in-out infinite;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        transform: translateY(20px); 
        opacity: 0; 
    }
    to { 
        transform: translateY(0); 
        opacity: 1; 
    }
}

@keyframes bounceGentle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* تحسينات الطباعة */
@media print {
    .header,
    .footer,
    .cart-overlay,
    .checkout-modal,
    .search-overlay {
        display: none !important;
    }
    
    .hero,
    .categories,
    .bestsellers,
    .our-story,
    .trust-badges {
        padding: 20px 0;
    }
    
    .product-card,
    .category-card {
        break-inside: avoid;
    }
}

/* تحسينات إمكانية الوصول */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus states للوحة المفاتيح */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 2px solid var(--olive);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.4);
    }
    
    .product-card,
    .category-card,
    .badge {
        border: 1px solid var(--border-color);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}