/*
Theme Name: Farachati Store
Theme URI: https://farachati.com
Author: Farachati Dev
Description: قالب ووردبريس مستقل وعصري مصمم خصيصاً لمتجر فراشتي (الألعاب، الهدايا، وإكسسوارات الشعر) مع نظام طلب سريع للدفع عند الاستلام (COD)، قائمة ولايات وبلديات، سلة تسوق، حماية من الطلبات الوهمية، واستكمال الطلب عند الخروج.
Version: 3.4.0
Text Domain: farachati-store
*/

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&display=swap');

:root {
    --primary: #FF4D8D;
    --primary-dark: #E03573;
    --primary-light: #FFF0F5;
    --secondary: #7C3AED;
    --secondary-light: #F3E8FF;
    --accent: #FFB703;
    --accent-light: #FFF8E6;
    --bg-body: #FFFDFB;
    --bg-card: #FFFFFF;
    --text-main: #1E1B2E;
    --text-muted: #64607D;
    --border-color: #EFEAF6;
    --success: #10B981;
    --whatsapp: #25D366;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 4px 14px rgba(30, 27, 46, 0.05);
    --shadow-md: 0 10px 30px rgba(255, 77, 141, 0.10);
    --shadow-lg: 0 20px 45px rgba(30, 27, 46, 0.12);
}

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

html {
    direction: rtl;
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Announcement Bar */
.fc-announcement {
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    color: #fff;
    text-align: center;
    padding: 7px 12px;
    font-size: 0.84rem;
    font-weight: 700;
}

/* Header */
.fc-header {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: var(--shadow-sm);
}

.fc-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    gap: 10px;
    min-height: 58px;
}

.fc-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--primary);
    flex-shrink: 0;
    white-space: nowrap;
}

.fc-logo-badge {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    display: inline-grid;
    place-items: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255, 77, 141, 0.22);
}

.fc-nav {
    display: flex;
    align-items: center;
    gap: 14px;
}

.fc-nav a {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-main);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

.fc-nav a:hover, .fc-nav a.active {
    background: var(--primary-light);
    color: var(--primary);
}

/* Compact Rectangular Header Buttons */
.fc-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
}

.fc-rect-cart-btn {
    background: var(--secondary-light);
    color: var(--secondary);
    border: 1px solid #DDD6FE;
    height: 32px;
    padding: 0 9px;
    border-radius: 7px;
    font-family: inherit;
    font-weight: 800;
    font-size: 0.78rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.fc-rect-cart-btn:hover {
    background: var(--secondary);
    color: #fff;
    border-color: var(--secondary);
}

.fc-cart-count {
    background: var(--primary);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 900;
    min-width: 16px;
    height: 16px;
    line-height: 1;
    border-radius: 4px;
    display: inline-grid;
    place-items: center;
    padding: 0 3px;
}

.fc-rect-shop-btn {
    background: var(--primary);
    color: #fff !important;
    height: 32px;
    padding: 0 11px !important;
    border-radius: 7px !important;
    font-weight: 800 !important;
    font-size: 0.78rem !important;
    line-height: 1 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(255, 77, 141, 0.22);
}

.fc-rect-shop-btn:hover {
    background: var(--primary-dark);
}

/* Hero Section */
.fc-hero {
    padding: 40px 0 32px;
    background: radial-gradient(circle at top right, var(--primary-light) 0%, transparent 48%),
                radial-gradient(circle at bottom left, var(--secondary-light) 0%, transparent 48%);
}

.fc-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 32px;
    align-items: center;
}

.fc-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-light);
    color: #B45309;
    padding: 6px 14px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.84rem;
    margin-bottom: 14px;
    border: 1px solid #FDE68A;
}

.fc-hero h1 {
    font-size: 2.35rem;
    font-weight: 900;
    line-height: 1.28;
    margin-bottom: 14px;
    color: var(--text-main);
}

.fc-hero p {
    font-size: 1.02rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    max-width: 560px;
}

.fc-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 800;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 8px 22px rgba(255, 77, 141, 0.32);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(255, 77, 141, 0.42);
}

.btn-outline {
    background: #fff;
    color: var(--text-main);
    border: 2px solid var(--border-color);
}

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

/* Category Pillars in Hero */
.fc-pillars {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.fc-pillar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

.fc-pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.fc-pillar-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.fc-pillar-card h3 {
    font-size: 1.02rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.fc-pillar-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
}

/* Filter Pills */
.fc-section {
    padding: 42px 0;
}

.fc-section-header {
    text-align: center;
    margin-bottom: 28px;
}

.fc-section-header h2 {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 8px;
}

.fc-section-header p {
    color: var(--text-muted);
    font-size: 0.96rem;
}

.fc-filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 28px;
}

.fc-filter-btn {
    background: #fff;
    border: 1.5px solid var(--border-color);
    color: var(--text-main);
    padding: 8px 18px;
    border-radius: 50px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fc-filter-btn:hover, .fc-filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 6px 16px rgba(255, 77, 141, 0.25);
}

/* Product Grid */
.fc-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
    gap: 22px;
}

.fc-product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
    position: relative;
}

.fc-product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: #FFD1E3;
}

.fc-product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 50px;
    z-index: 2;
}

.fc-product-thumb {
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #FFF5F8, #F5F0FF);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.fc-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.fc-product-card:hover .fc-product-thumb img {
    transform: scale(1.06);
}

.fc-placeholder-art {
    font-size: 3.5rem;
}

.fc-product-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.fc-product-cat {
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 4px;
}

.fc-product-title {
    font-size: 1.02rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-main);
    line-height: 1.4;
}

.fc-product-price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: auto;
    margin-bottom: 12px;
}

.fc-price-current {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--primary);
}

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

/* Dual Product Action Buttons */
.fc-card-actions {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 8px;
}

.fc-order-btn {
    width: 100%;
    padding: 9px 10px;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    font-family: inherit;
    font-weight: 800;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.fc-order-btn:hover {
    background: var(--primary-dark);
}

.fc-add-cart-btn {
    width: 100%;
    padding: 9px 8px;
    border-radius: 10px;
    background: var(--secondary-light);
    color: var(--secondary);
    border: 1.5px solid #DDD6FE;
    font-family: inherit;
    font-weight: 800;
    font-size: 0.82rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.fc-add-cart-btn:hover {
    background: var(--secondary);
    color: #fff;
    border-color: var(--secondary);
}

.fc-add-cart-btn.in-cart,
.fc-add-cart-btn.added {
    background: var(--success);
    color: #fff;
    border-color: var(--success);
}

.fc-add-cart-btn.in-cart:hover {
    background: #059669;
    border-color: #059669;
}

/* Trust Badges */
.fc-trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.fc-trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fc-trust-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.fc-trust-item h4 {
    font-size: 0.95rem;
    font-weight: 800;
}

.fc-trust-item p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Honeypot Field */
.fc-hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* Exit Recovery Sticky Banner */
.fc-exit-banner {
    position: fixed;
    bottom: 22px;
    right: 22px;
    left: 90px;
    max-width: 540px;
    background: #1E1B2E;
    color: #fff;
    border: 1px solid rgba(255, 77, 141, 0.45);
    border-radius: 16px;
    padding: 14px 18px;
    box-shadow: var(--shadow-lg);
    z-index: 995;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.fc-exit-banner.visible {
    display: flex;
}

.fc-exit-banner-text strong {
    display: block;
    font-size: 0.92rem;
    color: #FBCFE8;
}

.fc-exit-banner-text span {
    font-size: 0.82rem;
    color: #E2E8F0;
}

.fc-exit-banner-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.fc-exit-resume-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 7px 12px;
    font-family: inherit;
    font-weight: 800;
    font-size: 0.82rem;
    cursor: pointer;
    white-space: nowrap;
}

.fc-exit-dismiss-btn {
    background: rgba(255,255,255,0.12);
    color: #CBD5E1;
    border: none;
    border-radius: 8px;
    padding: 7px 10px;
    font-family: inherit;
    font-size: 0.8rem;
    cursor: pointer;
}

/* Modals */
.fc-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(20, 16, 36, 0.65);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
}

.fc-modal-backdrop.open {
    display: flex;
}

.fc-modal {
    background: #fff;
    width: 100%;
    max-width: 520px;
    border-radius: var(--radius-lg);
    padding: 26px;
    position: relative;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: popIn 0.25s ease;
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.fc-modal-close {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #F3F4F6;
    font-size: 1.2rem;
    cursor: pointer;
}

.fc-form-group {
    margin-bottom: 14px;
}

.fc-form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.fc-form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
    background: #fff;
}

.fc-form-control:focus {
    border-color: var(--primary);
}

.fc-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.fc-order-summary {
    background: var(--primary-light);
    border-radius: 14px;
    padding: 14px;
    margin: 16px 0;
    font-size: 0.92rem;
}

.fc-summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.fc-summary-total {
    display: flex;
    justify-content: space-between;
    font-weight: 900;
    font-size: 1.1rem;
    color: var(--primary);
    border-top: 1px dashed #F9A8D4;
    padding-top: 8px;
    margin-top: 6px;
}

/* Cart Items List */
.fc-cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 10px;
    background: #FAFAFC;
}

.fc-cart-item-title {
    font-weight: 800;
    font-size: 0.92rem;
}

.fc-cart-item-sub {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.fc-cart-qty-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.fc-qty-mini-btn {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: #fff;
    font-weight: 800;
    cursor: pointer;
}

.fc-remove-cart-btn {
    background: #FEE2E2;
    color: #DC2626;
    border: none;
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

/* Floating WhatsApp */
.fc-whatsapp-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--whatsapp);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.38);
    z-index: 990;
    transition: transform 0.25s ease;
}

.fc-whatsapp-float:hover {
    transform: scale(1.08);
}

/* Footer */
.fc-footer {
    background: #1E1B2E;
    color: #E2E8F0;
    padding: 44px 0 22px;
    margin-top: 36px;
}

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

.fc-footer h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.fc-footer ul {
    list-style: none;
}

.fc-footer ul li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #CBD5E1;
}

.fc-footer-pixels {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 0;
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.82rem;
    color: #94A3B8;
}

.fc-pixel-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fc-pixel-pill {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #E2E8F0;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
}

.fc-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 16px;
    text-align: center;
    font-size: 0.86rem;
    color: #94A3B8;
}

@media (max-width: 860px) {
    .fc-header-inner {
        gap: 6px;
        padding: 8px 0;
    }
    .fc-logo {
        font-size: 1.05rem;
        gap: 6px;
    }
    .fc-logo-badge {
        width: 30px;
        height: 30px;
        font-size: 0.95rem;
        border-radius: 8px;
    }
    .fc-header-actions {
        gap: 5px;
    }
    .fc-rect-cart-btn {
        height: 29px;
        padding: 0 7px;
        font-size: 0.73rem;
        gap: 4px;
    }
    .fc-cart-count {
        min-width: 15px;
        height: 15px;
        font-size: 0.65rem;
    }
    .fc-rect-shop-btn {
        height: 29px;
        padding: 0 8px !important;
        font-size: 0.73rem !important;
        gap: 3px;
    }
    .fc-hero-grid {
        grid-template-columns: 1fr;
    }
    .fc-hero h1 {
        font-size: 1.85rem;
    }
    .fc-nav {
        display: none;
    }
    .fc-form-row, .fc-card-actions {
        grid-template-columns: 1fr;
    }
    .fc-exit-banner {
        flex-direction: column;
        align-items: flex-start;
        left: 16px;
        right: 16px;
        bottom: 84px;
    }
}
