:root {
    /* الألوان الرئيسية */
    --primary-color: #3D7D70;
    --primary-dark: #2d5d54;
    --primary-light: #5a9a8d;
    --primary-lighter: #e8f4f2;
    
    /* الألوان الثانوية */
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    
    /* الألوان المحايدة */
    --white: #ffffff;
    --black: #000000;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    
    /* النصوص */
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-muted: #adb5bd;
    
    /* الخلفيات */
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    
    /* الظلال */
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    
    /* الحدود */
    --border-radius: 0.375rem;
    --border-radius-lg: 0.5rem;
    --border-radius-xl: 1rem;
    --border-color: #dee2e6;
    
    /* الخطوط */
    --font-family-ar: 'Cairo', 'Tajawal', sans-serif;
    --font-family-en: 'Inter', 'Poppins', sans-serif;
    
    /* الانتقالات */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-ar);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

body[dir="ltr"] {
    font-family: var(--font-family-en);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

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

button, input, select, textarea {
    font-family: inherit;
}

/* ===== Container ===== */
.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--gray-700);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-white {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-white:hover {
    background-color: var(--gray-100);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
}

/* ===== Forms ===== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(61, 125, 112, 0.15);
}

.form-control.is-invalid {
    border-color: var(--danger-color);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.invalid-feedback {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--danger-color);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 1rem center;
    background-size: 16px 12px;
    padding-left: 2.5rem;
}

[dir="ltr"] .form-select {
    background-position: right 1rem center;
    padding-left: 1rem;
    padding-right: 2.5rem;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin: 0;
    cursor: pointer;
    accent-color: var(--primary-color);
}

/* ===== Cards ===== */
.card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--gray-100);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--gray-100);
}

/* ===== Alerts ===== */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error, .alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.alert-dismissible .btn-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0.5;
}

.alert-dismissible .btn-close:hover {
    opacity: 1;
}

/* ===== Header ===== */
.top-bar {
    background-color: var(--gray-900);
    color: var(--white);
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.top-bar a {
    color: var(--gray-400);
    transition: color var(--transition-fast);
}

.top-bar a:hover {
    color: var(--white);
}

.header-main {
    background-color: var(--white);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-main .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
}

.logo span {
    color: var(--primary-dark);
}

.search-box {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-left: 3rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    transition: all var(--transition-fast);
}

[dir="rtl"] .search-box input {
    padding-left: 1rem;
    padding-right: 3rem;
}

.search-box input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(61, 125, 112, 0.1);
}

.search-box button {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
}

[dir="ltr"] .search-box button {
    left: auto;
    right: 1rem;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--gray-100);
    color: var(--gray-700);
    transition: all var(--transition-fast);
}

.header-icon:hover {
    background-color: var(--primary-lighter);
    color: var(--primary-color);
}

.header-icon .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 10px;
}

[dir="rtl"] .header-icon .badge {
    right: auto;
    left: -5px;
}

/* Country Selector */
.country-selector {
    position: relative;
}

.country-selector-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--gray-100);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.country-selector-btn:hover {
    border-color: var(--primary-color);
}

.country-selector-btn .flag {
    font-size: 1.25rem;
}

.country-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    z-index: 1001;
    display: none;
}

[dir="ltr"] .country-dropdown {
    left: auto;
    right: 0;
}

.country-dropdown.show {
    display: block;
}

.country-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.country-dropdown-item:hover {
    background-color: var(--gray-100);
}

.country-dropdown-item.active {
    background-color: var(--primary-lighter);
    color: var(--primary-color);
}

/* Navigation */
.main-nav {
    background-color: var(--primary-color);
}

.main-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 1rem 1.25rem;
    color: var(--white);
    font-weight: 500;
    transition: background var(--transition-fast);
}

.nav-menu a:hover,
.nav-menu li.active a {
    background-color: rgba(0, 0, 0, 0.1);
}

.nav-menu .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background: var(--white);
    box-shadow: var(--shadow);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-fast);
    z-index: 100;
}

[dir="ltr"] .nav-menu .dropdown-menu {
    right: auto;
    left: 0;
}

.nav-menu li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .dropdown-menu a {
    padding: 0.75rem 1.25rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

.nav-menu .dropdown-menu a:hover {
    background-color: var(--gray-100);
    color: var(--primary-color);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* ===== Hero Section ===== */
.hero-slider {
    position: relative;
    overflow: hidden;
}

.hero-slide {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to left, rgba(0,0,0,0.6), transparent);
}

[dir="ltr"] .hero-slide::before {
    background: linear-gradient(to right, rgba(0,0,0,0.6), transparent);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    color: var(--white);
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* ===== Products Grid ===== */
.section {
    padding: 4rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.75rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

[dir="ltr"] .section-title::after {
    right: auto;
    left: 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Product Card */
.product-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

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

.product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

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

.product-badges {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

[dir="ltr"] .product-badges {
    right: auto;
    left: 1rem;
}

.product-badge {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--border-radius);
    color: var(--white);
}

.badge-new {
    background-color: var(--primary-color);
}

.badge-sale {
    background-color: var(--danger-color);
}

.badge-bestseller {
    background-color: var(--warning-color);
    color: var(--black);
}

.product-actions {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: all var(--transition-normal);
}

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

.product-action-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: none;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.product-action-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.product-info {
    padding: 1rem;
}

.product-category {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-title a {
    color: var(--text-primary);
}

.product-title a:hover {
    color: var(--primary-color);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.product-rating .stars {
    color: var(--warning-color);
    font-size: 0.875rem;
}

.product-rating .count {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.current-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.original-price {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.discount-percent {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--danger-color);
    background: rgba(220, 53, 69, 0.1);
    padding: 0.125rem 0.5rem;
    border-radius: var(--border-radius);
}

/* ===== Categories Section ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.category-card {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-lighter);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--primary-color);
    transition: all var(--transition-normal);
}

.category-card:hover .category-icon {
    background: var(--primary-color);
    color: var(--white);
}

.category-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.category-count {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ===== Product Page - Modern Design ===== */
.product-page {
    background: var(--bg-light);
}

.product-breadcrumb {
    background: var(--white);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    flex-wrap: wrap;
}

.breadcrumb-nav a {
    color: var(--text-secondary);
}

.breadcrumb-nav a:hover {
    color: var(--primary-color);
}

.breadcrumb-nav .sep {
    font-size: 0.625rem;
    color: var(--gray-400);
}

[dir="ltr"] .breadcrumb-nav .sep {
    transform: rotate(180deg);
}

.breadcrumb-nav span:last-child {
    color: var(--text-primary);
    font-weight: 500;
}

.product-main {
    padding: 2rem 0;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Gallery */
.product-gallery-section {
    position: sticky;
    top: 100px;
}

.gallery-container {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

.main-image-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.main-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.main-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.main-image:hover img {
    transform: scale(1.02);
}

.discount-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--danger-color);
    color: var(--white);
    padding: 0.375rem 0.75rem;
    border-radius: var(--border-radius);
    font-weight: 700;
    font-size: 0.875rem;
    z-index: 2;
}

[dir="ltr"] .discount-badge {
    right: auto;
    left: 1rem;
}

.new-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.375rem 0.75rem;
    border-radius: var(--border-radius);
    font-weight: 700;
    font-size: 0.875rem;
    z-index: 2;
}

[dir="ltr"] .new-badge {
    left: auto;
    right: 1rem;
}

.zoom-btn {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: none;
    border-radius: 50%;
    box-shadow: var(--shadow);
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
}

[dir="ltr"] .zoom-btn {
    left: auto;
    right: 1rem;
}

.main-image-wrapper:hover .zoom-btn {
    opacity: 1;
}

.zoom-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.thumbnails-wrapper {
    overflow: hidden;
}

.thumbnails-list {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.thumbnails-list::-webkit-scrollbar {
    height: 4px;
}

.thumbnails-list::-webkit-scrollbar-track {
    background: var(--gray-200);
    border-radius: 2px;
}

.thumbnails-list::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 2px;
}

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

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

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

/* Product Info */
.product-info-section {
    padding: 0.5rem 0;
}

.product-meta-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.product-category-link {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary-lighter);
    color: var(--primary-color);
    border-radius: var(--border-radius);
    font-size: 0.8125rem;
    font-weight: 500;
}

.product-category-link:hover {
    background: var(--primary-color);
    color: var(--white);
}

.product-sku {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.product-info-section .product-title {
    font-size: 1.625rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.product-info-section .product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.product-info-section .product-rating .stars {
    color: var(--warning-color);
    font-size: 0.9375rem;
}

.product-info-section .product-rating .rating-count {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.product-price-box {
    background: linear-gradient(135deg, var(--primary-lighter) 0%, rgba(61, 125, 112, 0.05) 100%);
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius-lg);
    margin-bottom: 1rem;
    border: 1px solid rgba(61, 125, 112, 0.1);
}

.price-main {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.product-price-box .current-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.product-price-box .old-price {
    font-size: 1.125rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.savings {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.5rem;
    color: var(--danger-color);
    font-size: 0.875rem;
    font-weight: 600;
}

.product-short-desc {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.stock-status {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.stock-status.in-stock {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
}

.stock-status.out-stock {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

.stock-status .limited {
    color: var(--warning-color);
    font-weight: 500;
}

.product-divider {
    height: 1px;
    background: var(--border-color);
    margin: 1.25rem 0;
}

/* Variations */
.variations-section {
    margin-bottom: 1.25rem;
}

.variation-group {
    margin-bottom: 1rem;
}

.variation-label {
    display: block;
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.variation-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.variation-btn {
    border: 2px solid var(--border-color);
    background: var(--white);
    cursor: pointer;
    transition: all 0.2s ease;
}

.variation-btn.size-btn {
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.9375rem;
    font-weight: 500;
    min-width: 50px;
    text-align: center;
}

.variation-btn.color-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    position: relative;
}

.variation-btn.color-btn i {
    display: none;
    color: var(--white);
}

.variation-btn:hover {
    border-color: var(--primary-color);
}

.variation-btn.selected {
    border-color: var(--primary-color);
    background: var(--primary-lighter);
}

.variation-btn.size-btn.selected {
    background: var(--primary-color);
    color: var(--white);
}

.variation-btn.color-btn.selected {
    box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--primary-color);
}

.variation-btn.color-btn.selected i {
    display: block;
}

/* Purchase Section */
.purchase-section {
    margin-bottom: 1.25rem;
}

.quantity-selector {
    margin-bottom: 1rem;
}

.quantity-selector label {
    display: block;
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
}

.qty-controls {
    display: inline-flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.qty-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.qty-input {
    width: 60px;
    height: 44px;
    text-align: center;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.action-buttons {
    display: flex;
    gap: 0.75rem;
}

.btn-add-cart,
.btn-buy-now,
.btn-out-stock {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn-add-cart {
    background: var(--primary-color);
    color: var(--white);
}

.btn-add-cart:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(61, 125, 112, 0.3);
}

.btn-buy-now {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-buy-now:hover {
    background: var(--primary-lighter);
}

.btn-out-stock {
    background: var(--gray-300);
    color: var(--gray-600);
    cursor: not-allowed;
}

/* Extra Actions */
.extra-actions {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.action-link {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.action-link:hover,
.action-link.active {
    color: var(--primary-color);
}

.action-link.active i {
    color: var(--danger-color);
}

/* Guarantees */
.product-guarantees {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-100);
    border-radius: var(--border-radius);
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.guarantee-item i {
    color: var(--primary-color);
}

/* Details Section */
.product-details-section {
    padding: 2rem 0;
}

.details-tabs {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background: var(--gray-100);
}

.tabs-header .tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    transition: all 0.2s ease;
}

.tabs-header .tab-btn:hover {
    color: var(--primary-color);
}

.tabs-header .tab-btn.active {
    background: var(--white);
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tabs-body {
    padding: 1.5rem;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.description-content {
    line-height: 1.8;
    color: var(--text-secondary);
}

.description-content h2,
.description-content h3 {
    color: var(--text-primary);
    margin: 1.5rem 0 0.75rem;
}

.description-content p {
    margin-bottom: 1rem;
}

.description-content ul,
.description-content ol {
    padding-right: 1.5rem;
    margin-bottom: 1rem;
}

[dir="ltr"] .description-content ul,
[dir="ltr"] .description-content ol {
    padding-right: 0;
    padding-left: 1.5rem;
}

.no-reviews {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.no-reviews i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

/* Reviews */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.review-card {
    padding: 1.25rem;
    background: var(--gray-100);
    border-radius: var(--border-radius);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.reviewer-avatar {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.125rem;
}

.reviewer-info h4 {
    font-size: 0.9375rem;
    margin-bottom: 0.125rem;
}

.review-stars {
    color: var(--warning-color);
    font-size: 0.8125rem;
}

.review-date {
    margin-right: auto;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

[dir="ltr"] .review-date {
    margin-right: 0;
    margin-left: auto;
}

.review-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.review-text {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    color: var(--success-color);
}

/* Related Products */
.related-products-section {
    padding: 2rem 0 4rem;
}

.section-heading {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-heading::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease;
    z-index: 2;
}

[dir="ltr"] .lightbox-close {
    left: auto;
    right: 1rem;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
    font-size: 1.25rem;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease;
    z-index: 2;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    right: 1rem;
}

.lightbox-next {
    left: 1rem;
}

[dir="ltr"] .lightbox-prev {
    right: auto;
    left: 1rem;
}

[dir="ltr"] .lightbox-next {
    left: auto;
    right: 1rem;
}

.lightbox-content {
    max-width: 90%;
    max-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
}

.lightbox-thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    max-width: 90%;
    overflow-x: auto;
    padding: 0.5rem;
}

.lightbox-thumbs img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--border-radius);
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.2s ease;
}

.lightbox-thumbs img:hover,
.lightbox-thumbs img.active {
    border-color: var(--white);
    opacity: 1;
}

/* Responsive */
@media (max-width: 992px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-gallery-section {
        position: static;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .product-info-section .product-title {
        font-size: 1.375rem;
    }
    
    .product-price-box .current-price {
        font-size: 1.625rem;
    }
    
    .tabs-header {
        flex-direction: column;
    }
    
    .tabs-header .tab-btn {
        width: 100%;
        justify-content: center;
    }
    
    .product-guarantees {
        flex-direction: column;
    }
}

/* ===== Features Section ===== */
.features-section {
    background: var(--white);
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-lighter);
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.feature-content h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.feature-content p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

/* ===== Footer ===== */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-about .logo {
    color: var(--white);
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-about p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-800);
    color: var(--gray-400);
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--primary-color);
    color: var(--white);
}

.footer-title {
    color: var(--white);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

[dir="ltr"] .footer-title::after {
    right: auto;
    left: 0;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--gray-400);
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: var(--white);
    padding-right: 5px;
}

[dir="ltr"] .footer-links a:hover {
    padding-right: 0;
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-contact i {
    color: var(--primary-color);
    margin-top: 0.25rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    background: var(--gray-800);
    color: var(--white);
}

.newsletter-form input::placeholder {
    color: var(--gray-500);
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-methods {
    display: flex;
    gap: 0.75rem;
}

.payment-methods img {
    height: 30px;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.payment-methods img:hover {
    opacity: 1;
}

/* ===== Cart Page ===== */
.cart-table {
    width: 100%;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.cart-table th {
    background: var(--gray-100);
    padding: 1rem;
    text-align: right;
    font-weight: 600;
}

[dir="ltr"] .cart-table th {
    text-align: left;
}

.cart-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.cart-product {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-product-image {
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.cart-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quantity-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-input button {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    background: var(--white);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.quantity-input button:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.quantity-input input {
    width: 60px;
    height: 36px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.cart-summary {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
}

.cart-summary h3 {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.cart-summary-row.total {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    border-bottom: none;
}

/* ===== Checkout Page ===== */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
}

.checkout-section {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.checkout-section h3 {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.payment-methods-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-method-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.payment-method-item:hover,
.payment-method-item.selected {
    border-color: var(--primary-color);
    background: var(--primary-lighter);
}

.payment-method-item input {
    display: none;
}

.payment-method-icon {
    width: 50px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: var(--border-radius);
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .header-main .container {
        flex-wrap: wrap;
    }
    
    .search-box {
        order: 3;
        max-width: 100%;
        margin-top: 1rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .checkout-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-color);
    }
    
    .nav-menu.show {
        display: flex;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-title::after {
        right: 50%;
        transform: translateX(50%);
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .hero-slide {
        height: 350px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .cart-table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .header-icons {
        gap: 0.5rem;
    }
    
    .header-icon {
        width: 38px;
        height: 38px;
    }
    
    .country-selector-btn span:not(.flag) {
        display: none;
    }
}

/* ===== Utilities ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }

.w-100 { width: 100%; }

.text-primary { color: var(--primary-color); }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success-color); }
.text-danger { color: var(--danger-color); }

.bg-light { background-color: var(--bg-light); }
.bg-white { background-color: var(--white); }

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-300);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

[dir="ltr"] .toast-container {
    left: auto;
    right: 20px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

[dir="ltr"] .toast {
    animation-name: slideInLTR;
}

@keyframes slideInLTR {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast-icon {
    font-size: 1.25rem;
}

.toast-success .toast-icon { color: var(--success-color); }
.toast-error .toast-icon { color: var(--danger-color); }
.toast-warning .toast-icon { color: var(--warning-color); }
.toast-info .toast-icon { color: var(--info-color); }
