/* ===== BARAA HOME v6.0 - Easy Orders Clone ===== */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap');

/* ── Global ── */
:root { --brand: #bc8330; --brand-dark: #a06e25; --red: #e44d26; --text: #222; --gray: #888; --bg: #fff; }
body { font-family: 'IBM Plex Sans Arabic', sans-serif !important; direction: rtl; background: var(--bg); color: var(--text); margin: 0; }
* { box-sizing: border-box; }

/* ══════════════════════════════════════
   HIDE EVERYTHING UNNECESSARY
   ══════════════════════════════════════ */
.header-cart, .account-link, .woocommerce-MyAccount-navigation,
.site-footer .bottom-bar, .woocommerce-breadcrumb,
.woocommerce-result-count, .woocommerce-ordering,
nav.woocommerce-pagination,
.woocommerce span.onsale, .woocommerce-js span.onsale,
.woocommerce .widget-area, .sidebar, #secondary,
.woocommerce-product-rating, .woocommerce-product-details__short-description,
.product_meta, .tagged_as, .posted_in, .sku_wrapper,
.woocommerce-tabs .reviews_tab, .woocommerce-tabs .additional_information_tab,
.related.products, .up-sells,
.search-slidedown, .search-btn,
.site-description,
.woocommerce-Reviews,
.comment-respond,
.yith-wcwl-add-to-wishlist { display: none !important; }

/* ── Announcement Bar ── */
.baraa-announcement-bar {
    background: var(--brand); color: #fff; padding: 8px 0; overflow: hidden;
    white-space: nowrap; font-size: 14px; font-weight: 500;
    position: sticky; top: 0; z-index: 99999; height: 34px; line-height: 18px;
}
.baraa-announcement-track {
    display: inline-block; animation: baraaScroll 20s linear infinite; padding-left: 100%;
}
.baraa-announcement-bar:hover .baraa-announcement-track { animation-play-state: paused; }
@keyframes baraaScroll { 0% { transform: translateX(0); } 100% { transform: translateX(100%); } }
.baraa-announcement-sep { margin: 0 15px; opacity: .5; }

/* ══════════════════════════════════════
   HEADER (Easy Orders clone: logo center, icons only)
   ══════════════════════════════════════ */
/* Hide EVERYTHING in default header */
.site-header .top-bar,
.site-header .branding,
.site-header .main-navigation,
.site-header .search-slidedown,
.site-header .search-btn,
.site-header .header-cart,
.site-header .account-link,
.site-header #site-navigation { display: none !important; }
.site-header { display: none !important; }

/* New Easy Orders style header injected via plugin */
.eo-header {
    background: #fff; direction: rtl;
    border-bottom: 1px solid #eee;
    padding: 10px 16px;
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 34px; z-index: 9998;
    max-height: 56px;
}
.eo-header-right { display: flex; align-items: center; gap: 14px; }
.eo-header-center { flex: 1; text-align: center; }
.eo-header-center img { max-height: 28px; width: auto; }
.eo-header-center .eo-site-name {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    font-size: 22px; font-weight: 700; color: var(--text);
    text-decoration: none;
}
.eo-header-left { display: flex; align-items: center; gap: 14px; }
.eo-header-icon {
    width: 22px; height: 22px; cursor: pointer; color: #333;
    display: flex; align-items: center; justify-content: center;
}
.eo-header-icon svg { width: 22px; height: 22px; fill: none; stroke: #333; stroke-width: 2; }
/* Hamburger */
.eo-hamburger { background: none; border: none; padding: 0; cursor: pointer; }
.eo-hamburger svg { width: 24px; height: 24px; stroke: #333; fill: none; stroke-width: 2; }
/* Mobile menu overlay */
.eo-mobile-menu {
    display: none; position: fixed; top: 0; right: 0; width: 280px; height: 100vh;
    background: #fff; z-index: 99999; box-shadow: -4px 0 20px rgba(0,0,0,.15);
    padding: 20px; direction: rtl; overflow-y: auto;
    transition: transform .3s;
}
.eo-mobile-menu.open { display: block; }
/* Hide announcement bar when menu is open */
body.eo-menu-open .baraa-announcement-bar { display: none !important; }
.eo-mobile-menu-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,.4); z-index: 99998;
}
.eo-mobile-menu-overlay.open { display: block; }
.eo-mobile-menu .eo-menu-close {
    font-size: 24px; cursor: pointer; float: left; color: #333;
    background: none; border: none; padding: 0;
}
.eo-mobile-menu ul { list-style: none; padding: 0; margin: 30px 0 0; }
.eo-mobile-menu li { border-bottom: 1px solid #f0f0f0; }
.eo-mobile-menu li a {
    display: block; padding: 14px 0; color: var(--text); text-decoration: none;
    font-weight: 600; font-size: 15px;
}
.eo-mobile-menu li a:hover { color: var(--brand); }

/* ── Slider ── */
.slider-container { border-radius: 0; margin-bottom: 0; }

/* ══════════════════════════════════════
   PRODUCT GRID (Easy Orders exact clone)
   ══════════════════════════════════════ */
/* Full width - remove ALL theme width constraints */
.woocommerce .content-area, .woocommerce .site-main,
.woocommerce-page .content-area,
.woocommerce .wrap, .woocommerce-page .wrap,
.site-content .wrap, #primary.content-area,
.site-content-contain, .site-content, #content.site-content,
.woocommerce-shop .wrap, .woocommerce-shop #primary {
    width: 100% !important; max-width: 100% !important;
    float: none !important; padding: 0 !important; margin: 0 auto !important;
}
.woocommerce .page-header, .woocommerce .page-title { display: none !important; }

.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 12px !important;
    margin: 0 !important;
    list-style: none !important;
}

/* ── Product Card ── */
.woocommerce ul.products li.product {
    text-align: center !important; position: relative;
    border-radius: 12px; overflow: hidden;
    background: #fff; padding: 0 !important;
    margin: 0 !important; width: 100% !important; float: none !important;
    border: 1px solid #f0f0f0;
    transition: box-shadow .2s;
}
.woocommerce ul.products li.product:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }

/* Product Image */
.woocommerce ul.products li.product a img {
    border-radius: 12px 12px 0 0;
    width: 100% !important; height: 220px;
    object-fit: cover; margin: 0 !important; display: block;
}

/* SALE BADGE تخفيضات */
.baraa-sale-badge {
    position: absolute; top: 8px; right: 8px; z-index: 5;
    background: var(--red); color: #fff;
    font-size: 11px; font-weight: 700;
    padding: 3px 12px; border-radius: 20px;
}

/* Product Title */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: 'IBM Plex Sans Arabic', sans-serif !important;
    font-size: 13px !important; font-weight: 600;
    padding: 10px 8px 4px !important; margin: 0 !important;
    line-height: 1.5; min-height: 38px; color: var(--text);
}

/* Price (Easy Orders: sale=black, regular=gray crossed) */
.woocommerce ul.products li.product .price {
    padding: 0 8px 4px; margin: 0 !important;
    display: flex; justify-content: center; align-items: baseline; gap: 6px; flex-wrap: wrap;
}
.woocommerce ul.products li.product .price ins { text-decoration: none !important; order: 1; }
.woocommerce ul.products li.product .price ins .woocommerce-Price-amount {
    color: var(--text) !important; font-weight: 700 !important; font-size: 15px;
}
.woocommerce ul.products li.product .price del { opacity: 1 !important; order: 2; }
.woocommerce ul.products li.product .price del .woocommerce-Price-amount {
    color: #bbb !important; font-size: 12px; text-decoration: line-through !important;
}
.woocommerce ul.products li.product .price > .woocommerce-Price-amount {
    color: var(--text) !important; font-weight: 700 !important; font-size: 15px;
}

/* Hide default WC buttons */
.woocommerce ul.products li.product a.button,
.woocommerce ul.products li.product .add_to_cart_button { display: none !important; }

/* Order Now Button */
.baraa-card-btns { padding: 4px 8px 10px; }
.baraa-card-order-btn {
    display: block; width: 100%; padding: 9px 14px; border-radius: 8px;
    font-size: 13px; font-weight: 700; text-decoration: none; text-align: center;
    background: var(--brand); color: #fff !important; transition: background .2s;
}
.baraa-card-order-btn:hover { background: var(--brand-dark); color: #fff !important; }

/* Wishlist Heart */
.baraa-loop-wishlist {
    position: absolute; top: 8px; left: 8px; z-index: 5;
    background: rgba(255,255,255,.9); border-radius: 50%;
    width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 15px; color: var(--red); transition: transform .2s;
}

/* ══════════════════════════════════════
   SINGLE PRODUCT PAGE (Easy Orders style)
   ══════════════════════════════════════ */
.woocommerce div.product { flex-wrap: wrap !important; direction: rtl; max-width: 900px; margin: 0 auto; }
.baraa-breadcrumb-wrap { display: none !important; }

.woocommerce-product-gallery { position: relative; }
.baraa-wishlist-btn {
    position: absolute; top: 12px; right: 12px; z-index: 10;
    background: #fff; border-radius: 50%; width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
.baraa-heart { font-size: 20px; color: var(--red); }

.woocommerce div.product .product_title {
    font-family: 'IBM Plex Sans Arabic', sans-serif !important;
    font-weight: 700; font-size: 20px; text-align: right; color: var(--text);
}
.woocommerce div.product .price { text-align: right; margin: 8px 0; }
.woocommerce div.product p.price ins,
.woocommerce div.product span.price ins { text-decoration: none !important; }
.woocommerce div.product p.price ins .woocommerce-Price-amount,
.woocommerce div.product span.price ins .woocommerce-Price-amount {
    color: var(--text) !important; font-weight: 700 !important; font-size: 22px;
}
.woocommerce div.product p.price del .woocommerce-Price-amount { color: #bbb !important; text-decoration: line-through !important; font-size: 16px; }
.woocommerce div.product p.price > .woocommerce-Price-amount { color: var(--text) !important; font-weight: 700 !important; font-size: 22px; }
.woocommerce div.product p.price del, .woocommerce div.product span.price del { opacity: 1 !important; }

/* Quantity */
.woocommerce div.product form.cart {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: flex-start;
}
.summary.entry-summary { text-align: right; }
.quantity { display: flex; align-items: center; border: 2px solid #e0e0e0; border-radius: 8px; overflow: hidden; }
.quantity .qty { width: 50px; text-align: center; border: none !important; font-size: 16px; padding: 8px 0; -moz-appearance: textfield; }
.quantity .qty::-webkit-outer-spin-button, .quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; }
.baraa-qty-btn { background: #f5f5f5; border: none; width: 32px; height: 44px; font-size: 16px; cursor: pointer; color: #555; display: flex; align-items: center; justify-content: center; }
.baraa-qty-btn:hover { background: var(--brand); color: #fff; }

/* Buttons */
.woocommerce div.product form.cart .button {
    background: #333 !important; color: #fff !important; border-radius: 8px !important;
    padding: 12px 24px !important; font-weight: 700 !important; font-size: 14px !important;
}
.baraa-order-now-btn {
    background: var(--brand); color: #fff; border: none; border-radius: 8px;
    padding: 12px 28px; font-size: 14px; font-weight: 700; cursor: pointer;
}
.baraa-order-now-btn:hover { background: var(--brand-dark); }

/* Description tab - clean */
.woocommerce div.product .woocommerce-tabs { direction: rtl; }
.woocommerce div.product .woocommerce-tabs ul.tabs { display: none; }
.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel { display: block !important; padding: 15px 0; }
.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel h2 { display: none; }

/* Variations */
.woocommerce div.product .variations { direction: rtl; }
.woocommerce div.product .variations td.label label { font-weight: 700; font-size: 14px; }
.wvs-term { border: 2px solid #ddd; border-radius: 8px; padding: 6px 14px; font-size: 13px; cursor: pointer; background: #fff; }
.wvs-term:hover, .wvs-term.selected { border-color: var(--brand); background: var(--brand); color: #fff; }

/* ══════════════════════════════════════
   ORDER FORM
   ══════════════════════════════════════ */
.baraa-order-section {
    background: #fff; border: 2px solid var(--brand); border-radius: 14px; padding: 24px;
    margin: 20px auto; direction: rtl; max-width: 600px;
}
.baraa-form-title { color: var(--brand); font-size: 20px; font-weight: 700; margin: 0 0 16px; text-align: center; border-bottom: 1px solid #eee; padding-bottom: 12px; }
.baraa-order-product-summary { display: flex; gap: 12px; align-items: center; background: #fafafa; border-radius: 10px; padding: 12px; margin-bottom: 16px; flex-direction: row-reverse; }
.baraa-order-product-summary img { width: 55px; height: 55px; object-fit: cover; border-radius: 8px; }
.baraa-order-price { color: var(--brand); font-weight: 700; font-size: 15px; }

.baraa-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.baraa-form-group { display: flex; flex-direction: column; gap: 5px; }
.baraa-form-group.full { grid-column: 1 / -1; }
.baraa-form-group label { font-weight: 600; font-size: 13px; color: #444; }
.baraa-form-group .req { color: var(--red); }
.baraa-form-group input, .baraa-form-group select, .baraa-form-group textarea {
    border: 1.5px solid #ddd; border-radius: 8px; padding: 10px 12px;
    font-family: 'IBM Plex Sans Arabic', sans-serif; font-size: 14px; direction: rtl; text-align: right;
    transition: border-color .2s; width: 100%;
}
.baraa-form-group input:focus, .baraa-form-group select:focus, .baraa-form-group textarea:focus { outline: none; border-color: var(--brand); }

.baraa-order-totals { background: #f9f9f9; border-radius: 10px; padding: 14px 16px; margin: 16px 0; }
.baraa-total-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; color: #666; border-bottom: 1px solid #eee; }
.baraa-total-row:last-child { border-bottom: none; }
.baraa-grand-total { font-size: 18px !important; font-weight: 700 !important; color: var(--brand) !important; padding-top: 8px; }

.baraa-error { background: #fef2f2; color: #dc2626; border-radius: 8px; padding: 12px; margin: 10px 0; text-align: center; font-weight: 600; }
.baraa-success { background: #f0fdf4; color: #166534; border-radius: 8px; padding: 16px; margin: 10px 0; text-align: center; font-weight: 700; font-size: 16px; }

.baraa-submit-btn {
    width: 100%; background: var(--brand); color: #fff; border: none; border-radius: 10px;
    padding: 14px; font-size: 16px; font-weight: 700; cursor: pointer; margin-top: 4px;
}
.baraa-submit-btn:hover { background: var(--brand-dark); }
.baraa-submit-btn:disabled { background: #ccc; cursor: not-allowed; }

.baraa-trust-badges { display: flex; justify-content: center; gap: 16px; margin-top: 12px; flex-wrap: wrap; }
.baraa-trust-badges span { font-size: 11px; color: #777; font-weight: 600; background: #f5f5f5; padding: 5px 10px; border-radius: 16px; }

/* ── Floating Messenger Button ── */
.baraa-messenger-btn {
    position: fixed; bottom: 20px; right: 20px; z-index: 9999;
    width: 45px; height: 45px; border-radius: 50%;
    background: #0084FF; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 12px rgba(0,132,255,.4);
    animation: messengerBounce 2s infinite; cursor: pointer; text-decoration: none;
}
.baraa-messenger-btn svg { width: 25px; height: 25px; fill: #fff; }
@keyframes messengerBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ── Footer ── */
.baraa-footer-custom {
    background: #fafafa; color: #888; font-family: 'IBM Plex Sans Arabic', sans-serif;
    direction: rtl; padding: 20px; text-align: center; border-top: 1px solid #eee;
}
.baraa-footer-social { display: flex; justify-content: center; gap: 16px; margin-bottom: 12px; }
.baraa-footer-social a { color: #aaa; transition: color .2s; display: flex; }
.baraa-footer-social a:hover { color: var(--brand); }
.baraa-footer-links { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.baraa-footer-links a { color: #999; text-decoration: none; font-size: 12px; }
.baraa-footer-links a:hover { color: var(--brand); }
.baraa-footer-copy { font-size: 11px; color: #bbb; }

/* ══════════════════════════════════════
   MOBILE (Easy Orders = 2 columns)
   ══════════════════════════════════════ */
@media (max-width: 991px) { .woocommerce ul.products { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 768px) {
    .woocommerce ul.products { grid-template-columns: repeat(2, 1fr) !important; gap: 8px; padding: 8px !important; }
    .woocommerce ul.products li.product a img { height: 170px; }
    .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 12px !important; min-height: 34px; padding: 8px 6px 2px !important; }
    .woocommerce ul.products li.product .price ins .woocommerce-Price-amount { font-size: 14px; }
    .woocommerce ul.products li.product .price del .woocommerce-Price-amount { font-size: 11px; }
    .baraa-card-order-btn { font-size: 12px; padding: 8px 10px; }
    .baraa-form-grid { grid-template-columns: 1fr; }
    .baraa-order-section { padding: 16px 12px; margin: 10px 8px; }
    .woocommerce div.product form.cart .button, .baraa-order-now-btn { width: 100%; margin: 4px 0; }
    .woocommerce div.product form.cart { flex-direction: column; }
    .woocommerce div.product .product_title { font-size: 17px; }
    .woocommerce div.product div.images, .woocommerce div.product div.summary { width: 100% !important; float: none !important; }
    .baraa-announcement-bar { font-size: 12px; }
}
@media (max-width: 480px) {
    .woocommerce ul.products li.product a img { height: 145px; }
    .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 11px !important; }
    .baraa-sale-badge { font-size: 10px; padding: 2px 8px; }
}
