/*
 * Theme Name: Sahel
 * Description: Custom styles for Sahel WordPress Platform
 * Version: 1.0.0
 */

/* ===========================
   Variables & Reset
   =========================== */

:root {
    --primary-color: #6FCF43;
    --primary-dark: #4CAF50;
    --secondary-color: #4CAF50;
    --success-color: #4CAF50;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --text-color: #212121;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
    --bg-light: #F5F5F5;
    --bg-white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

* {
    box-sizing: border-box;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

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

/* ===========================
   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;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    line-height: 1.5;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

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

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

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

.btn-block {
    width: 100%;
}

/* ===========================
   Hero Section
   =========================== */

.sahel-hero {
    background: linear-gradient(135deg, #6FCF43 0%, #4CAF50 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-title .highlight {
    color: #fbbf24;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===========================
   Partners Marquee
   =========================== */

.sahel-partners {
    background-color: var(--bg-light);
    padding: 2rem 0;
    margin-bottom: 3rem;
    overflow: hidden;
}

.partners-marquee {
    overflow: hidden;
    position: relative;
}

.marquee-content {
    display: flex;
    gap: 2rem;
    animation: scroll 20s linear infinite;
}

.partner-logo {
    flex: 0 0 auto;
    background-color: white;
    padding: 1.5rem 2rem;
    border-radius: var(--radius-lg);
    font-size: 2rem;
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ===========================
   Section Titles
   =========================== */

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.section-heading {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-color);
}

.section-footer {
    text-align: center;
    margin-top: 2rem;
}

/* ===========================
   Categories Grid
   =========================== */

.sahel-categories {
    padding: 3rem 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.category-card {
    background-color: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--category-color, var(--primary-color));
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--category-color, var(--primary-color));
}

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

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

/* ===========================
   Stores & Products Grid
   =========================== */

.sahel-featured-stores,
.sahel-latest-products {
    padding: 3rem 0;
}

.stores-grid,
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Store Card */
.store-card {
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

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

.store-card-header {
    position: relative;
    height: 150px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.store-card-logo {
    position: absolute;
    bottom: -30px;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid white;
    object-fit: cover;
    background-color: white;
}

.store-card-body {
    padding: 2.5rem 1.5rem 1.5rem;
}

.store-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: center;
}

.store-card-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.store-card-description {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* Product Card */
.product-card {
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

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

.product-card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background-color: var(--bg-light);
}

.product-card-body {
    padding: 1.5rem;
}

.product-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    line-height: 1.4;
}

.product-card-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.product-card-meta {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* ===========================
   Occasions Grid
   =========================== */

.sahel-occasions {
    padding: 3rem 0;
    background-color: var(--bg-light);
}

.occasions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.occasion-card {
    background-color: white;
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.occasion-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.occasion-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.occasion-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

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

/* ===========================
   Features Section
   =========================== */

.sahel-why-us {
    padding: 4rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-description {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===========================
   CTA Section
   =========================== */

.sahel-cta {
    background: linear-gradient(135deg, #6FCF43 0%, #4CAF50 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* ===========================
   Modal (النافذة المنبثقة)
   =========================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: white;
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text-color);
}

.modal-body {
    padding: 2rem;
}

/* ===========================
   Forms
   =========================== */

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

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

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group label {
    display: flex;
    align-items: start;
    gap: 0.5rem;
    font-weight: normal;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 0.25rem;
}

.login-prompt {
    text-align: center;
}

.prompt-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.login-prompt h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.login-prompt p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* ===========================
   Contact Button (زر المراسلة)
   =========================== */

.product-cta {
    margin: 2rem 0;
}

.btn-contact-seller {
    position: relative;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-contact-seller:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.btn-contact-seller .btn-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

.btn-contact-seller .btn-icon {
    font-size: 1.5rem;
    z-index: 1;
}

.btn-contact-seller .btn-text {
    z-index: 1;
}

.contact-note {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 1rem;
}

/* ===========================
   Product Single Page
   =========================== */

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

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

.product-gallery {
    position: relative;
}

.product-image-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: var(--bg-light);
    max-height: 500px;
}

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

.product-image-placeholder {
    width: 100%;
    height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
    color: var(--text-light);
    border-radius: var(--radius-lg);
}

.product-image-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.stock-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--danger-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
}

.product-info {
    padding-top: 1rem;
}

.product-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

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

.price-currency {
    font-size: 1.25rem;
    color: var(--text-light);
}

.product-store-info {
    margin-bottom: 2rem;
}

.store-link {
    text-decoration: none;
    color: inherit;
}

.store-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    transition: background-color 0.3s ease;
}

.store-badge:hover {
    background-color: #e5e7eb;
}

.store-mini-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.store-badge-info {
    flex: 1;
}

.store-name {
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.verified-icon {
    color: var(--primary-color);
    font-size: 1rem;
}

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

.product-description {
    margin-bottom: 2rem;
}

.description-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

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

.product-tags,
.product-occasions {
    margin-bottom: 1.5rem;
}

.tags-title,
.occasions-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.tags-list,
.occasions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-badge,
.occasion-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background-color: var(--bg-light);
    color: var(--text-color);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-badge:hover,
.occasion-badge:hover {
    background-color: var(--primary-color);
    color: white;
}

.product-meta {
    display: flex;
    gap: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-light);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Related Products */
.related-products,
.similar-products {
    margin-top: 4rem;
}

/* ===========================
   Store Single Page
   =========================== */

.store-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 3rem 0;
    color: white;
    margin-bottom: 3rem;
}

.store-header-content {
    display: flex;
    gap: 2rem;
    align-items: start;
}

.store-avatar {
    flex-shrink: 0;
}

.store-logo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid white;
    object-fit: cover;
    background-color: white;
}

.store-logo-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid white;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary-color);
}

.store-info {
    flex: 1;
}

.store-title-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.store-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
}

.verified-badge {
    font-size: 1.5rem;
    color: #fbbf24;
}

.store-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.store-rating .stars {
    color: #fbbf24;
    margin-left: 0.5rem;
}

.store-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

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

.store-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
}

.store-description {
    margin-bottom: 3rem;
}

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

.store-products {
    margin-bottom: 3rem;
}

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

/* Store Sidebar */
.store-sidebar {
    position: sticky;
    top: 2rem;
}

.sidebar-widget {
    background-color: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.stats-list,
.info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-item,
.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-item i,
.info-item i {
    font-size: 1.25rem;
    color: var(--primary-color);
    width: 30px;
}

.stat-info {
    flex: 1;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
}

.stat-value {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
}

.info-item a {
    color: var(--text-color);
    text-decoration: none;
}

.info-item a:hover {
    color: var(--primary-color);
}

.categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.category-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background-color: var(--bg-light);
    color: var(--text-color);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* Store Reviews */
.store-reviews {
    margin-top: 3rem;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-item {
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.reviewer-name {
    font-weight: 600;
    margin-left: 0.5rem;
}

.review-date {
    font-size: 0.875rem;
    color: var(--text-light);
}

.review-stars {
    color: #fbbf24;
}

.review-content {
    line-height: 1.6;
    color: var(--text-light);
}

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

/* ===========================
   Responsive Design
   =========================== */

@media (max-width: 1024px) {
    .store-layout {
        grid-template-columns: 1fr;
    }

    .store-sidebar {
        position: static;
    }

    .product-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 1rem;
    }

    .stores-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .store-header-content {
        flex-direction: column;
        text-align: center;
    }

    .store-meta-row {
        flex-direction: column;
        gap: 1rem;
    }

    .product-title {
        font-size: 1.5rem;
    }

    .price-amount {
        font-size: 2rem;
    }

    .modal-content {
        margin: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .store-title {
        font-size: 1.75rem;
    }

    .btn-contact-seller {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }
}

/* ===========================
   Utility Classes
   =========================== */

.text-center {
    text-align: center;
}

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

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

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* ===========================
   Header Styles
   =========================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Top Bar */
.header-top-bar {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

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

.welcome-text {
    font-weight: 500;
}

.top-bar-right {
    display: flex;
    gap: 1.5rem;
}

.top-bar-link {
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.3s ease;
}

.top-bar-link:hover {
    opacity: 0.8;
}

/* Main Header */
.header-main {
    background-color: white;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

/* Site Branding */
.site-branding {
    flex-shrink: 0;
}

.site-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.site-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.site-description {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    color: var(--text-light);
}

.custom-logo-link {
    display: block;
    line-height: 0;
}

.custom-logo {
    max-height: 60px;
    width: auto;
}

/* Main Navigation */
.main-navigation {
    flex: 1;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-color);
}

.menu-toggle-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 24px;
}

.menu-toggle-icon span {
    display: block;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle-text {
    margin-right: 0.5rem;
    font-weight: 600;
}

.primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
    justify-content: center;
}

.primary-menu > li {
    position: relative;
}

.primary-menu > li > a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 0;
    display: block;
    transition: color 0.3s ease;
}

.primary-menu > li > a:hover {
    color: var(--primary-color);
}

.primary-menu > li.current-menu-item > a {
    color: var(--primary-color);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.header-action-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    position: relative;
}

.header-action-link:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.header-action-link i {
    font-size: 1.25rem;
}

.messages-link {
    position: relative;
}

.badge-count {
    position: absolute;
    top: 0;
    left: 0;
    background-color: var(--danger-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.125rem 0.375rem;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    font-size: 1.25rem;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.search-toggle:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

/* Search Modal */
.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.search-modal.show {
    display: flex;
}

.search-modal-content {
    max-width: 800px;
    width: 100%;
    position: relative;
}

.search-close {
    position: absolute;
    top: -3rem;
    left: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: opacity 0.3s ease;
}

.search-close:hover {
    opacity: 0.7;
}

.search-form {
    display: flex;
    background-color: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.search-field {
    flex: 1;
    padding: 1.5rem 2rem;
    border: none;
    font-size: 1.25rem;
    font-family: inherit;
    outline: none;
}

.search-submit {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 1.5rem 2rem;
    cursor: pointer;
    font-size: 1.5rem;
    transition: background-color 0.3s ease;
}

.search-submit:hover {
    background-color: var(--primary-dark);
}

/* Mobile Menu Toggle Animation */
.menu-toggle.toggled .menu-toggle-icon span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.toggled .menu-toggle-icon span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.toggled .menu-toggle-icon span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===========================
   Responsive Header
   =========================== */

@media (max-width: 1024px) {
    .primary-menu {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .header-top-bar {
        display: none;
    }

    .header-content {
        gap: 1rem;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: white;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        padding: 2rem;
        overflow-y: auto;
        z-index: 9999;
    }

    .main-navigation.toggled {
        right: 0;
    }

    .primary-menu {
        flex-direction: column;
        gap: 0;
    }

    .primary-menu > li {
        border-bottom: 1px solid var(--border-color);
    }

    .primary-menu > li > a {
        padding: 1rem 0;
        font-size: 1.125rem;
    }

    .header-action-link span {
        display: none;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.25rem;
    }

    .custom-logo {
        max-height: 40px;
    }

    .header-actions {
        gap: 0.5rem;
    }

    .header-action-link {
        padding: 0.375rem;
    }

    .search-field {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .search-submit {
        padding: 1rem 1.5rem;
        font-size: 1.25rem;
    }
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

.mobile-menu-overlay.show {
    display: block;
}

@media (min-width: 769px) {
    .mobile-menu-overlay {
        display: none !important;
    }
}

/* ===========================
   Footer Styles
   =========================== */

.site-footer {
    background-color: #1f2937;
    color: #e5e7eb;
    margin-top: 4rem;
}

/* Footer Widgets */
.footer-widgets {
    padding: 4rem 0 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-widgets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.footer-widget-area .widget {
    margin-bottom: 2rem;
}

.footer-widget-area .widget-title {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
}

.footer-widget-area ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget-area ul li {
    margin-bottom: 0.75rem;
}

.footer-widget-area a {
    color: #e5e7eb;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-widget-area a:hover {
    color: var(--primary-color);
    padding-right: 5px;
}

/* Footer Bottom */
.footer-bottom {
    padding: 2rem 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.copyright {
    margin: 0;
    font-size: 0.875rem;
}

.copyright a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.copyright a:hover {
    text-decoration: underline;
}

/* Social Links */
.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Footer Menu */
.footer-navigation {
    flex: 1;
    text-align: center;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-menu li a {
    color: #e5e7eb;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-menu li a:hover {
    color: var(--primary-color);
}

/* Developer Credit */
.developer-credit {
    background-color: #111827;
    padding: 1rem 0;
    text-align: center;
}

.credit-text {
    margin: 0;
    font-size: 0.8125rem;
    color: #9ca3af;
}

.credit-text a {
    color: var(--primary-color);
    text-decoration: none;
}

.credit-text a:hover {
    text-decoration: underline;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.6);
}

/* WhatsApp Float Button */
.sahel-whatsapp-float {
    position: fixed;
    bottom: 5rem;
    left: 2rem;
    z-index: 999;
}

.whatsapp-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    font-size: 2rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: whatsappPulse 2s infinite;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
}

@keyframes whatsappPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ===========================
   Footer Responsive
   =========================== */

@media (max-width: 768px) {
    .footer-widgets-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-menu {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-navigation {
        width: 100%;
    }

    .scroll-to-top {
        bottom: 1.5rem;
        left: 1.5rem;
        width: 45px;
        height: 45px;
        font-size: 1.125rem;
    }

    .sahel-whatsapp-float {
        bottom: 4.5rem;
        left: 1.5rem;
    }

    .whatsapp-button {
        width: 55px;
        height: 55px;
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .footer-widgets {
        padding: 3rem 0 1.5rem;
    }

    .footer-widget-area .widget-title {
        font-size: 1.125rem;
    }

    .footer-bottom {
        padding: 1.5rem 0;
    }

    .social-link {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* ===========================
   تصحيحات إضافية
   =========================== */

/* تصغير أحجام النصوص في البطاقات */
.hero-title {
    font-size: 2rem !important;
}

.hero-description {
    font-size: 1.125rem !important;
}

.section-title {
    font-size: 1.75rem !important;
}

.product-card-title,
.store-card-title {
    font-size: 1rem !important;
    line-height: 1.4 !important;
}

.product-card-price {
    font-size: 1.25rem !important;
}

.category-name {
    font-size: 1rem !important;
}

/* إصلاح زر التواصل */
.product-cta {
    margin: 2rem 0;
    text-align: center;
}

.btn-contact-seller {
    max-width: 100% !important;
    width: 100%;
    padding: 0.875rem 1.5rem !important;
    font-size: 1rem !important;
}

/* تصغير عنوان المنتج */
.product-title {
    font-size: 1.5rem !important;
}

.price-amount {
    font-size: 2rem !important;
}

/* تحسين الفورم */
.form-group label {
    font-size: 0.9375rem;
}

.form-group input,
.form-group textarea {
    font-size: 0.9375rem;
}

.checkbox-group label {
    font-size: 0.875rem;
    line-height: 1.5;
}

/* تحسين Modal */
.modal-title {
    font-size: 1.25rem !important;
}

.login-prompt h4 {
    font-size: 1.25rem !important;
}

.login-prompt p {
    font-size: 0.9375rem;
}

/* تحسين عنوان المتجر */
.store-title {
    font-size: 2rem !important;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.5rem !important;
    }

    .hero-description {
        font-size: 1rem !important;
    }

    .section-title {
        font-size: 1.5rem !important;
    }

    .product-title {
        font-size: 1.25rem !important;
    }

    .price-amount {
        font-size: 1.75rem !important;
    }

    .store-title {
        font-size: 1.5rem !important;
    }

    .btn-contact-seller {
        padding: 0.75rem 1.25rem !important;
        font-size: 0.9375rem !important;
    }
}

/* ===========================
   Archive Pages Styling
   =========================== */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 3rem 0;
    color: white;
    text-align: center;
    margin-bottom: 3rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.page-description {
    font-size: 1.125rem;
    margin: 0;
    opacity: 0.95;
}

/* Archive Filters */
.archive-filters {
    background-color: #f9fafb;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-color);
    white-space: nowrap;
}

.filter-select {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9375rem;
    color: var(--text-color);
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:hover {
    border-color: var(--primary-color);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Stores Archive */
.stores-archive {
    padding: 2rem 0 4rem;
}

.stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Products Archive */
.products-archive {
    padding: 2rem 0 4rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background-color: #f9fafb;
    border-radius: 12px;
}

.no-results i {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    display: block;
}

.no-results h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--text-color);
}

.no-results p {
    font-size: 1rem;
    color: var(--text-light);
    margin: 0 0 1.5rem 0;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    padding: 2rem 0;
}

.pagination .nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0.5rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-color);
    background-color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

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

.pagination .page-numbers.dots {
    border: none;
    cursor: default;
}

.pagination .page-numbers.dots:hover {
    transform: none;
}

.pagination .prev,
.pagination .next {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background-color: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination .prev:hover,
.pagination .next:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Form Improvements */
.contact-form .form-group {
    margin-bottom: 1.25rem;
}

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

.contact-form .form-control {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.contact-form .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.contact-form textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.contact-form .checkbox-group {
    display: flex;
    align-items: start;
    gap: 0.75rem;
}

.contact-form .checkbox-group input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.contact-form .checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
    cursor: pointer;
}

.contact-form .btn-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.contact-form .btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Responsive - Archives */
@media (max-width: 1024px) {
    .stores-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 2rem 0;
    }

    .page-title {
        font-size: 1.75rem;
    }

    .page-description {
        font-size: 1rem;
    }

    .archive-filters {
        flex-direction: column;
        gap: 1rem;
    }

    .filter-group {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .stores-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1.5rem;
    }

    .pagination .page-numbers {
        min-width: 40px;
        height: 40px;
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .stores-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }

    .pagination .nav-links {
        gap: 0.25rem;
    }

    .pagination .prev,
    .pagination .next {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* ===========================
   Product Card Modern Design
   =========================== */

.product-card-modern {
    position: relative;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.product-card-modern-inner {
    position: relative;
}

/* Image Section */
.product-image-section {
    position: relative;
    overflow: hidden;
}

.product-image-wrapper-modern {
    position: relative;
    width: 100%;
    padding-top: 100%;
    /* 1:1 Aspect Ratio */
    overflow: hidden;
    background: #f3f4f6;
}

.product-image-modern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

/* Image Overlay */
.product-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card-modern:hover .product-image-overlay {
    opacity: 1;
}

.view-details-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9375rem;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.product-card-modern:hover .view-details-btn {
    transform: translateY(0);
}

/* Badges */
.product-badges {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 2;
}

.badge-new,
.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.badge-new {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.badge-tag {
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-color);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Quick Actions */
.product-quick-actions {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    z-index: 2;
}

.product-card-modern:hover .product-quick-actions {
    opacity: 1;
    transform: translateX(0);
}

.quick-action-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: none;
    border-radius: 50%;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.quick-action-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.quick-action-btn.favorite-btn:hover {
    background: #ef4444;
}

/* Content Section */
.product-content-section {
    padding: 1.25rem;
}

.product-store-info {
    margin-bottom: 0.75rem;
}

.store-link-mini {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.store-link-mini:hover {
    color: var(--primary-color);
}

.store-link-mini i {
    font-size: 0.875rem;
}

.product-title-modern {
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 0.625rem 0;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-title-modern a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.product-excerpt {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0 0 1rem 0;
    height: 3em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Footer */
.product-footer-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 2px solid #f3f4f6;
}

.product-price-modern {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.price-amount-modern {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.price-currency-modern {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-light);
}

.btn-contact-store-mini {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.125rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-contact-store-mini:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-contact-store-mini i {
    font-size: 1rem;
}

/* Responsive - Product Cards */
@media (max-width: 768px) {
    .product-card-modern {
        border-radius: 12px;
    }

    .product-content-section {
        padding: 1rem;
    }

    .product-title-modern {
        font-size: 1rem;
    }

    .price-amount-modern {
        font-size: 1.25rem;
    }

    .btn-contact-store-mini span {
        display: none;
    }

    .btn-contact-store-mini {
        padding: 0.625rem;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .product-badges {
        top: 0.75rem;
        right: 0.75rem;
    }

    .badge-new,
    .badge-tag {
        font-size: 0.6875rem;
        padding: 0.25rem 0.625rem;
    }

    .product-quick-actions {
        top: 0.75rem;
        left: 0.75rem;
    }

    .quick-action-btn {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }
}

/* ===============================================
   Modern Footer Styles
   =============================================== */

.site-footer-modern {
    background: linear-gradient(135deg, #1f2937 0%, #374151 50%, #4b5563 100%);
    color: white;
    margin-top: 0;
}

.footer-main {
    padding: 80px 0 40px;
}

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

.footer-col {
    animation: fadeInUp 0.6s ease;
}

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

/* Footer About */
.footer-about {
}

.footer-logo img {
    max-width: 180px;
    height: auto;
    margin-bottom: 1.5rem;
}

.footer-brand {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 1.5rem 0;
    color: white;
}

.footer-description {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
}

/* Social Links Modern */
.footer-social-modern {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link-modern {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: white;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link-modern:hover {
    background: white;
    color: #2E7D32;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Footer Titles */
.footer-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    color: white;
    position: relative;
    padding-bottom: 1rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 3px;
}

/* Footer Links */
.footer-links,
.footer-contact {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 0.875rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.9375rem;
}

.footer-links a:hover {
    color: white;
    transform: translateX(-5px);
}

.footer-links a i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.footer-links a:hover i {
    transform: translateX(-3px);
}

/* Footer Contact */
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9375rem;
}

.footer-contact li i {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 3px;
    min-width: 20px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: white;
}

/* Footer Bottom */
.footer-bottom-modern {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
}

.footer-copyright p {
    margin: 0;
}

.footer-copyright a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.footer-copyright a:hover {
    opacity: 0.8;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: white;
}

.footer-bottom-links .separator {
    color: rgba(255, 255, 255, 0.4);
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .footer-about {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .footer-main {
        padding: 60px 0 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-about {
        grid-column: 1;
        text-align: center;
    }

    .footer-social-modern {
        justify-content: center;
    }

    .footer-title::after {
        right: 50%;
        transform: translateX(50%);
    }

    .footer-bottom-grid {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-main {
        padding: 40px 0 20px;
    }

    .footer-brand {
        font-size: 1.5rem;
    }

    .footer-title {
        font-size: 1.125rem;
    }

    .footer-description,
    .footer-links a,
    .footer-contact li {
        font-size: 0.875rem;
    }

    .social-link-modern {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}
