* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4a90e2;
    --secondary-color: #50c878;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --text-color: #333;
    --border-color: #ddd;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f5f5f5;
    direction: rtl;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-color);
    padding: 0.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

#cart-count {
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-right: 5px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #357abd;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #45b869;
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #357abd 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .hero {
        padding: 3rem 0;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
}

/* Features Section */
.features {
    padding: 4rem 0;
    background: white;
}

.features h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    background: var(--light-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

/* Categories Preview */
.categories-preview {
    padding: 4rem 0;
    background: var(--light-color);
}

.categories-preview h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.category-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.category-card p {
    margin-bottom: 1.5rem;
    color: #666;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #357abd 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
}

@media (max-width: 768px) {
    .page-header {
        padding: 2rem 0;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
}

/* Products Section */
.products-section {
    padding: 3rem 0;
}

.category-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    font-family: inherit;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.product-card h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Cart Section */
.cart-section {
    padding: 3rem 0;
}

.cart-section .container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.empty-cart-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.empty-cart h2 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.cart-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
    display: grid;
    grid-template-columns: 80px 2fr 150px 120px 50px;
    gap: 1rem;
    align-items: center;
    position: relative;
}

.cart-item-image {
    font-size: 3rem;
    text-align: center;
}

.cart-item-details h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.cart-item-price {
    color: #666;
    font-size: 0.9rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.quantity-btn:hover {
    background: var(--light-color);
}

.cart-item-total {
    text-align: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.remove-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.remove-btn:hover {
    transform: scale(1.2);
}

.cart-summary {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.summary-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.summary-card h2 {
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.1rem;
}

.summary-row:last-of-type {
    border-bottom: none;
    font-weight: bold;
    font-size: 1.3rem;
    color: var(--primary-color);
}

.summary-card .btn {
    margin-top: 1rem;
}

.summary-card .btn-secondary {
    margin-top: 0.5rem;
}

/* About Section */
.about-content {
    padding: 3rem 0;
}

.about-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.about-section h2 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.about-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #666;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.value-card {
    padding: 1.5rem;
    background: var(--light-color);
    border-radius: 10px;
    border-right: 4px solid var(--primary-color);
}

.value-card h3 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.value-card p {
    color: #666;
    margin: 0;
}

/* Contact Section */
.contact-section {
    padding: 3rem 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-info h2 {
    color: var(--dark-color);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.info-icon {
    font-size: 2rem;
    min-width: 50px;
}

.info-item h3 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.info-item p {
    color: #666;
    margin: 0;
}

.contact-form-container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-form-container h2 {
    color: var(--dark-color);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
footer {
    background: var(--dark-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* Responsive Design */

/* Tablet */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .cart-section .container {
        grid-template-columns: 1.5fr 1fr;
    }
    
    .contact-content {
        gap: 2rem;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile and Tablet */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 2rem 0;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        overflow-y: auto;
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--light-color);
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem 2rem;
        width: 100%;
    }
    
    .nav-menu a.active::after {
        display: none;
    }
    
    .nav-menu a.active {
        background: var(--light-color);
        color: var(--primary-color);
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .features {
        padding: 3rem 0;
    }
    
    .features h2 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .categories-preview {
        padding: 3rem 0;
    }
    
    .categories-preview h2 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .category-card {
        padding: 1.5rem;
    }
    
    .category-card h3 {
        font-size: 1.2rem;
    }
    
    .page-header {
        padding: 2rem 0;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .products-section {
        padding: 2rem 0;
    }
    
    .category-filters {
        gap: 0.5rem;
        margin-bottom: 2rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    @media (max-width: 480px) {
        .products-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }
    
    .product-card {
        padding: 1rem;
    }
    
    .product-image {
        font-size: 3rem;
    }
    
    .product-price {
        font-size: 1.2rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .cart-section {
        padding: 2rem 0;
    }
    
    .cart-section .container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cart-summary {
        position: static;
        order: -1;
    }
    
    .cart-item {
        grid-template-columns: 50px 1fr;
        gap: 0.8rem;
        padding: 1rem;
    }
    
    .cart-item-image {
        grid-column: 1;
        font-size: 2rem;
    }
    
    .cart-item-details {
        grid-column: 2;
    }
    
    .cart-item-details h3 {
        font-size: 0.95rem;
        margin-bottom: 0.3rem;
    }
    
    .cart-item-price {
        font-size: 0.85rem;
    }
    
    .cart-item-quantity {
        grid-column: 1 / -1;
        margin-top: 0.5rem;
        justify-content: center;
    }
    
    .cart-item-total {
        grid-column: 1 / -1;
        text-align: center;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid var(--light-color);
    }
    
    .cart-item {
        position: relative;
    }
    
    .remove-btn {
        position: absolute;
        top: 0.5rem;
        left: 0.5rem;
        grid-column: auto;
        background: rgba(255, 255, 255, 0.9);
        padding: 0.3rem;
        border-radius: 5px;
    }
    
    .empty-cart {
        padding: 3rem 1.5rem;
    }
    
    .empty-cart-icon {
        font-size: 4rem;
    }
    
    .about-content {
        padding: 2rem 0;
    }
    
    .about-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .about-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .contact-section {
        padding: 2rem 0;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info,
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .contact-info h2,
    .contact-form-container h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .info-item {
        margin-bottom: 1.5rem;
    }
    
    .info-icon {
        font-size: 1.5rem;
        min-width: 40px;
    }
    
    footer {
        padding: 1.5rem 0;
        margin-top: 2rem;
    }
    
    footer p {
        font-size: 0.9rem;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 2rem 0;
    }
    
    .page-header {
        padding: 1.5rem 0;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .logo h1 {
        font-size: 1rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .features h2,
    .categories-preview h2,
    .page-header h1,
    .about-section h2,
    .contact-info h2,
    .contact-form-container h2 {
        font-size: 1.3rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.8rem;
    }
    
    .product-card {
        padding: 0.8rem;
    }
    
    .product-image {
        font-size: 2.5rem;
    }
    
    .product-card h3 {
        font-size: 0.9rem;
    }
    
    .product-price {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .btn-large {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .filter-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .cart-item {
        padding: 0.8rem;
    }
    
    .summary-card {
        padding: 1.5rem;
    }
    
    .summary-row {
        font-size: 1rem;
    }
    
    .summary-row:last-of-type {
        font-size: 1.1rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
}
