/* Golden Plain Saffron Shop Styles */

/* Font Face Declarations - Moved to fonts.css */

/* RTL Support */
body {
    font-family: 'Yekan', 'Tahoma', 'Arial', sans-serif;
    direction: rtl;
    text-align: right;
}

/* Custom Colors - Saffron Theme Based on Reference Image */
:root {
    --primary-color: #dc2626;      /* Dark Red */
    --secondary-color: #374151;    /* Dark Gray */
    --accent-color: #dc2626;       /* Dark Red */
    --purple-accent: #8b5cf6;      /* Purple */
    --golden-yellow: #f59e0b;      /* Golden Yellow */
    --saffron-orange: #ea580c;     /* Saffron Orange */
    --dark-color: #1f2937;         /* Very Dark Gray */
    --light-color: #f9fafb;        /* Light Gray */
    --warm-white: #ffffff;         /* Pure White */
    --cream: #fef3c7;              /* Amber 100 */
    --soft-orange: #fed7aa;        /* Orange 200 */
    --header-red: #b91c1c;         /* Dark Red for Header */
    --menu-gray: #374151;          /* Dark Gray for Menu */
    --gold-bg: #fef3c7;            /* Light Gold Background */
    --dark-gold: #f59e0b;          /* Dark Gold Text */
    --light-text: #ffffff;         /* White Text */
    --dark-text: #1f2937;          /* Dark Text */
}

/* Header Styles */
.top-header {
    font-size: 0.875rem;
    background: var(--header-red) !important;
    color: var(--light-text);
}

.main-header {
    border-bottom: 3px solid var(--primary-color);
    background: var(--warm-white) !important;
    box-shadow: 0 2px 10px rgba(220, 38, 38, 0.1);
}

.navbar-brand h2 {
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

/* Search Form */
.search-form .form-control {
    border-radius: 0 25px 25px 0;
    border: 2px solid var(--primary-color);
    background: var(--warm-white);
}

.search-form .btn {
    border-radius: 25px 0 0 25px;
    border: 2px solid var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.search-form .btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

/* Navigation */
.navbar-nav .nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    border-radius: 5px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--warm-white) 0%, var(--cream) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: var(--dark-text);
}

/* Product Cards */
.product-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.product-image {
    height: 250px;
    background: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--primary-color);
}

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

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

.product-image::before {
    content: '🌾';
    font-size: 4rem;
    opacity: 0.3;
    position: absolute;
}

.product-title {
    font-weight: bold;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

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

.product-weight {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Buttons */
.btn-custom {
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary-custom {
    background: var(--primary-color);
    border: none;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.btn-primary-custom:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

/* Features Section */
.features-section {
    background: var(--gold-bg);
    padding: 60px 0;
}

.feature-item {
    text-align: center;
    padding: 40px 25px;
    border-radius: 20px;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 2px solid transparent;
}

.feature-item p {
    color: var(--dark-text);
    opacity: 0.8;
}

.feature-item h5 {
    color: var(--dark-text);
    font-weight: bold;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(220, 38, 38, 0.15);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
    transition: all 0.3s ease;
}

.feature-icon i {
    font-size: 2.5rem !important;
    text-shadow: none;
    display: block !important;
    color: white !important;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

/* Section Titles */
.section-title {
    position: relative;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-text);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Testimonials */
.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    margin: 15px;
}

.testimonial-card p {
    color: var(--dark-text);
}

.testimonial-card h6 {
    color: var(--primary-color);
}

.testimonial-card small {
    color: var(--dark-text);
    opacity: 0.7;
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--light-text);
}

/* Newsletter */
.newsletter-section {
    background: var(--primary-color);
    color: var(--light-text);
    padding: 60px 0;
}

.newsletter-form .form-control {
    border-radius: 0 25px 25px 0;
    border: none;
    padding: 12px 20px;
    background: rgba(255,255,255,0.1);
    color: var(--light-text);
}

.newsletter-form .form-control::placeholder {
    color: rgba(255,255,255,0.8);
}

.newsletter-form .btn {
    border-radius: 25px 0 0 25px;
    border: none;
    padding: 12px 25px;
    background: rgba(255,255,255,0.2);
    color: var(--light-text);
    font-weight: 600;
}

.newsletter-form .btn:hover {
    background: rgba(255,255,255,0.3);
    color: var(--light-text);
}

/* Categories Section */
.categories-section {
    background: var(--cream);
}

.categories-section .section-title {
    color: var(--dark-text);
}

.categories-section .card-title {
    color: var(--dark-text);
}

.categories-section .text-muted {
    color: var(--dark-text) !important;
    opacity: 0.8;
}

.categories-section .text-success {
    color: var(--primary-color) !important;
}

/* Footer */
footer {
    background: var(--dark-color) !important;
    color: var(--light-text);
}

footer h5, footer h6 {
    color: var(--light-text);
}

footer p, footer .text-muted {
    color: var(--light-text);
    opacity: 0.8;
}

/* Product Detail Page */
.product-detail-image {
    text-align: center;
    background: var(--light-color);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.product-detail-image img {
    max-height: 500px;
    width: 100%;
    object-fit: contain;
}

.no-image-placeholder {
    padding: 4rem;
    text-align: center;
    background: var(--light-color);
    border-radius: 15px;
    border: 2px dashed #dee2e6;
}

.product-info {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.product-title {
    color: var(--dark-text);
    font-size: 2rem;
    font-weight: bold;
}

.product-card-link {
    text-decoration: none !important;
    color: inherit;
    display: block;
}

.product-card-link:hover {
    text-decoration: none !important;
    color: inherit;
}

.product-card-link * {
    text-decoration: none !important;
}

.product-card-link:hover * {
    text-decoration: none !important;
}

.product-card-link:hover .product-card {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

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

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

/* Remove text decoration from all elements inside product card link */
.product-card-link h1,
.product-card-link h2,
.product-card-link h3,
.product-card-link h4,
.product-card-link h5,
.product-card-link h6,
.product-card-link p,
.product-card-link span,
.product-card-link div,
.product-card-link a,
.product-card-link button {
    text-decoration: none !important;
}

.product-card-link:hover h1,
.product-card-link:hover h2,
.product-card-link:hover h3,
.product-card-link:hover h4,
.product-card-link:hover h5,
.product-card-link:hover h6,
.product-card-link:hover p,
.product-card-link:hover span,
.product-card-link:hover div,
.product-card-link:hover a,
.product-card-link:hover button {
    text-decoration: none !important;
}

/* Legacy styles for backward compatibility */
.product-image-link, .product-title-link {
    text-decoration: none;
    color: inherit;
}

.product-image-link:hover, .product-title-link:hover {
    text-decoration: none;
    color: inherit;
}

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

.price-weight {
    font-size: 1.1rem;
    margin-right: 1rem;
}

.product-description {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 10px;
    border-right: 4px solid var(--primary-color);
}

.product-features ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.product-features ul li:last-child {
    border-bottom: none;
}

.stock-status {
    padding: 1rem;
    background: var(--light-color);
    border-radius: 10px;
    border-right: 4px solid var(--secondary-color);
}

.add-to-cart-form {
    background: var(--gold-bg);
    padding: 1.5rem;
    border-radius: 15px;
    border: 2px solid var(--primary-color);
}

/* Product Tabs */
.nav-tabs .nav-link {
    color: var(--dark-text);
    border: none;
    border-bottom: 3px solid transparent;
    padding: 1rem 1.5rem;
    font-weight: 500;
}

.nav-tabs .nav-link:hover {
    border-bottom: 3px solid var(--primary-color);
    color: var(--primary-color);
}

.nav-tabs .nav-link.active {
    background: none;
    border-bottom: 3px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: bold;
}

.tab-content {
    padding: 2rem 0;
}

/* Reviews */
.rating-summary {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid var(--primary-color);
}

.rating-summary h4 {
    color: var(--primary-color);
    font-size: 3rem;
    font-weight: bold;
}

.review-item {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 10px;
    border-right: 4px solid var(--primary-color);
}

.stars i {
    color: var(--golden-yellow);
}

/* Category Page */
.category-header {
    background: var(--gold-bg);
    padding: 3rem 2rem;
    border-radius: 20px;
    border: 2px solid var(--primary-color);
}

.category-stats {
    margin-top: 1rem;
}

.featured-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.product-details {
    background: var(--light-color);
    padding: 1rem;
    border-radius: 10px;
    border-right: 3px solid var(--primary-color);
}

.stock-status {
    font-size: 0.9rem;
}

.no-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-color);
    color: #6c757d;
}

/* Products Page */
.products-header {
    background: var(--gold-bg);
    padding: 3rem 2rem;
    border-radius: 20px;
    border: 2px solid var(--primary-color);
}

/* Pagination */
.pagination .page-link {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination .page-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--light-text) !important;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--golden-yellow);
    color: var(--dark-color) !important;
    transform: translateY(-3px);
}

/* Header Social Media Links */
.social-links-header a {
    display: inline-block;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--light-text) !important;
    text-align: center;
    line-height: 32px;
    border-radius: 50%;
    margin: 0 3px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.social-links-header a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

/* Navbar Social Media Links */
.social-links-navbar {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.social-links-navbar a {
    display: inline-block;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--light-text) !important;
    text-align: center;
    line-height: 35px;
    border-radius: 50%;
    margin: 0 5px;
    transition: all 0.3s ease;
    font-size: 16px;
    text-decoration: none;
}

.social-links-navbar a:hover {
    background: var(--golden-yellow);
    color: var(--dark-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

/* Top Header Social Media Links */
.top-social-links {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.top-social-links .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--light-text) !important;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
}

.top-social-links .social-link:hover {
    background: var(--golden-yellow);
    color: var(--dark-color) !important;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.top-social-links .social-link:nth-child(1):hover {
    background: #E4405F; /* Instagram Pink */
}

.top-social-links .social-link:nth-child(2):hover {
    background: #0088CC; /* Telegram Blue */
}

.top-social-links .social-link:nth-child(3):hover {
    background: #25D366; /* WhatsApp Green */
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .social-links-header a {
        width: 28px;
        height: 28px;
        line-height: 28px;
        font-size: 12px;
        margin: 0 2px;
    }
    
    .social-links-header {
        margin-bottom: 8px !important;
    }
    
    .social-links-navbar {
        margin-left: 10px;
    }
    
    .social-links-navbar a {
        width: 30px;
        height: 30px;
        line-height: 30px;
        font-size: 14px;
        margin: 0 3px;
    }
    
    .top-social-links {
        gap: 5px;
    }
    
    .top-social-links .social-link {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .product-card {
        margin-bottom: 20px;
    }
    
    .feature-item {
        margin-bottom: 20px;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

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

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Cart Badge */
.badge {
    font-size: 0.7rem;
}

/* Price Formatting */
.price {
    font-family: 'Courier New', monospace;
    direction: ltr;
    text-align: left;
}

/* Persian Number Support */
.persian-numbers {
    font-family: 'Yekan', 'Tahoma', sans-serif;
}

/* Breadcrumb RTL Fix */
.breadcrumb-item:not(:last-child)::after {
    content: " / ";
    color: #6c757d;
    padding: 0 0.5rem;
}

/* Apply Yekan font to all text elements */
h1, h2, h3, h4, h5, h6,
p, span, div, a, button,
input, textarea, select,
.navbar-brand, .nav-link,
.card-title, .card-text,
.btn, .form-control, .form-label,
.breadcrumb, .alert,
.table, .badge,
.modal-title, .modal-body {
    font-family: 'Yekan', 'Tahoma', 'Arial', sans-serif !important;
}

/* RTL Input Group Fix */
.input-group {
    direction: rtl;
}

.input-group .btn:first-child {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-top-right-radius: 0.375rem !important;
    border-bottom-right-radius: 0.375rem !important;
}

.input-group .form-control:last-child {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-top-left-radius: 0.375rem !important;
    border-bottom-left-radius: 0.375rem !important;
}

/* Specific font weights for different elements */
.navbar-brand h2 {
    font-weight: bold;
}

.btn, .form-control {
    font-weight: 500;
}

.card-title, h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

.text-muted, small {
    font-weight: 400;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, .99);
}

.bg-success {
    background-color: darkmagenta !important;
}

