/*
Theme Name: DigiShopar
Theme URI: https://digishopar.com
Author: DigiShopar Team
Author URI: https://digishopar.com
Description:_custom theme for DigiShopar store - Arabic RTL design
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: digishopar
Tags: rtl-theme, custom-menu, custom-logo, featured-images
*/

:root {
    --primary-color: #e6c05c;
    --secondary-color: #1a1a1a;
    --text-color: #333333;
    --light-bg: #f8f8f8;
    --white: #ffffff;
    --border-color: #e5e5e5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', 'Tahoma', sans-serif;
    direction: rtl;
    text-align: right;
    background-color: var(--white);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}

.header-main {
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
}

.main-navigation ul {
    display: flex;
    gap: 30px;
}

.main-navigation ul li a {
    font-weight: 500;
    position: relative;
}

.main-navigation ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.main-navigation ul li a:hover::after {
    width: 100%;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-icons a {
    font-size: 20px;
}

.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    font-size: 12px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #333 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    font-weight: bold;
    border-radius: 5px;
    margin: 5px;
}

.btn:hover {
    background-color: #d4a84a;
    transform: translateY(-2px);
}

/* Sections */
.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.section-title p {
    color: #666;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
}

.product-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

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

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

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff4444;
    color: var(--white);
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 3px;
}

.product-info {
    padding: 20px;
}

.product-category {
    font-size: 12px;
    color: #888;
    margin-bottom: 5px;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.current-price {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
}

.original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.product-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-add-cart {
    flex: 1;
    padding: 10px;
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

.btn-add-cart:hover {
    background-color: #333;
}

.btn-wishlist,
.btn-quick-view {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    background: var(--white);
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-wishlist:hover,
.btn-quick-view:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Categories Section */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    text-align: center;
    padding: 30px;
    background: var(--light-bg);
    border-radius: 10px;
    transition: all 0.3s;
}

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

.category-card:hover h3,
.category-card:hover p {
    color: var(--secondary-color);
}

.category-card h3 {
    margin-bottom: 10px;
}

.category-card p {
    color: #666;
    font-size: 14px;
}

/* Footer */
.site-footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget ul li a {
    opacity: 0.8;
}

.footer-widget ul li a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    opacity: 0.7;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-submit {
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    background-color: #d4a84a;
}

/* Page Title */
.page-title {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #333 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.page-title h1 {
    font-size: 42px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Contact Page */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.contact-card {
    text-align: center;
    padding: 30px;
    background: var(--light-bg);
    border-radius: 10px;
}

.contact-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

/* About Page */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-text h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* Cart Page */
.cart-empty {
    text-align: center;
    padding: 60px 20px;
}

.cart-empty-icon {
    font-size: 80px;
    color: #ddd;
    margin-bottom: 20px;
}

.cart-empty h2 {
    margin-bottom: 15px;
}

.cart-empty p {
    color: #666;
    margin-bottom: 30px;
}

/* Account Page */
.account-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 20px;
}

.account-tab {
    padding: 10px 30px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    color: #666;
    position: relative;
}

.account-tab.active {
    color: var(--primary-color);
}

.account-tab.active::after {
    content: '';
    position: absolute;
    bottom: -22px;
    right: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.login-form,
.register-form {
    max-width: 400px;
    margin: 0 auto;
}

/* Wishlist Page */
.wishlist-empty {
    text-align: center;
    padding: 60px 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .main-navigation {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .header-main {
        flex-wrap: wrap;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 24px;
    }
    
    .btn {
        padding: 12px 25px;
    }
}
