/* =========================
   Elegant Taste - Final Product Card Design
   Brand Colors Only:
   Red / Green / White / Charcoal Black
========================= */

:root {
    --et-red: #c8102e;
    --et-green: #1f7a3f;
    --et-white: #ffffff;
    --et-charcoal: #1f1f1f;
    --et-soft-bg: #f7f7f7;
    --et-border: #e6e6e6;
    --et-muted: #777777;
}

/* Product Card */
.wd-product,
.products .product {
    background: var(--et-white) !important;
    border: 1px solid var(--et-border) !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    padding: 0 !important;
    box-shadow: 0 4px 18px rgba(31,31,31,0.08) !important;
    transition: all 0.25s ease !important;
}

/* Hover */
.wd-product:hover,
.products .product:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 14px 32px rgba(31,31,31,0.16) !important;
    border-color: var(--et-green) !important;
}

/* Image Area */
.wd-product .product-element-top {
    background: var(--et-soft-bg) !important;
    padding: 14px !important;
    min-height: 230px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Product Image */
.wd-product .product-image-link img,
.wd-product img {
    max-height: 210px !important;
    object-fit: contain !important;
    transition: transform 0.3s ease !important;
}

.wd-product:hover img {
    transform: scale(1.04) !important;
}

/* Info Area */
.wd-product .product-wrapper,
.wd-product .product-element-bottom {
    background: var(--et-white) !important;
}

/* Product Title */
.wd-product .wd-entities-title,
.wd-product .wd-entities-title a {
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
    color: var(--et-charcoal) !important;
    min-height: 42px !important;
    margin-bottom: 8px !important;
}

/* Price */
.wd-product .price {
    color: var(--et-green) !important;
    font-size: 19px !important;
    font-weight: 900 !important;
    margin-top: 8px !important;
    display: block !important;
}

/* Old Price */
.wd-product .price del {
    color: var(--et-muted) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    margin-inline-end: 6px !important;
}

/* New Price */
.wd-product .price ins {
    color: var(--et-green) !important;
    text-decoration: none !important;
}

/* Sale Badge */
.wd-product .onsale,
.product-label.onsale {
    background: var(--et-red) !important;
    color: var(--et-white) !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    border-radius: 0 0 8px 8px !important;
    padding: 7px 10px !important;
    box-shadow: 0 4px 12px rgba(31,31,31,0.18) !important;
}

/* =========================
   ADD TO CART - POWER BUTTON
========================= */

.wd-product .button,
.wd-product .add_to_cart_button {

    background: #1f1f1f !important;
    color: #ffffff !important;

    border-radius: 12px !important;
    padding: 12px !important;

    font-size: 14px !important;
    font-weight: 900 !important;

    width: 100% !important;
    margin-top: 10px !important;

    transition: all 0.25s ease !important;
}

/* Hover */
.wd-product .button:hover,
.wd-product .add_to_cart_button:hover {

    background: #c8102e !important;
    transform: translateY(-2px) !important;
}

/* السعر */
.wd-product .price {
    font-size: 20px !important;
    font-weight: 900 !important;
}

/* السعر القديم */
.wd-product .price del {
    font-size: 13px !important;
}

/* تأثير التركيز */
.wd-product:hover {
    border: 1px solid #c8102e !important;
}

/* Categories / Rating */
.wd-product .star-rating,
.wd-product .wd-product-cats {
    opacity: 0.75 !important;
    color: var(--et-charcoal) !important;
}

/* Grid Spacing */
.products {
    gap: 22px !important;
}

/* Mobile */
@media (max-width: 768px) {

    .wd-product .product-element-top {
        min-height: 170px !important;
        padding: 10px !important;
    }

    .wd-product .product-image-link img,
    .wd-product img {
        max-height: 155px !important;
    }

    .wd-product .wd-entities-title,
    .wd-product .wd-entities-title a {
        font-size: 13px !important;
        min-height: 38px !important;
    }

    .wd-product .price {
        font-size: 16px !important;
    }

    .wd-product .add_to_cart_button,
    .wd-product .button,
    .wd-product .wd-add-btn a {
        font-size: 13px !important;
        padding: 10px 8px !important;
    }
}

/* =========================
   TRUST BAR - SAFE FINAL VERSION
========================= */

.et2-trust-bar {
    direction: rtl !important;
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 12px !important;
    background: #1f1f1f !important;
    padding: 14px !important;
    border-radius: 18px !important;
    margin: 20px auto !important;
    width: 100% !important;
}

.et2-trust-card {
    background: #ffffff !important;
    color: #1f1f1f !important;
    border-radius: 14px !important;
    min-height: 76px !important;
    padding: 12px 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    text-align: center !important;
}

.et2-icon {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    border-radius: 50% !important;
    background: #c8102e !important;
    position: relative !important;
    display: inline-block !important;
}

/* Truck */
.et2-icon-truck::before {
    content: "";
    position: absolute;
    width: 17px;
    height: 10px;
    background: #ffffff;
    left: 7px;
    top: 11px;
    border-radius: 2px;
}

.et2-icon-truck::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 5px;
    border-bottom: 3px solid #ffffff;
    border-left: 3px solid #ffffff;
    left: 7px;
    top: 18px;
}

/* Lock */
.et2-icon-lock::before {
    content: "";
    position: absolute;
    width: 16px;
    height: 13px;
    background: #ffffff;
    left: 9px;
    top: 15px;
    border-radius: 3px;
}

.et2-icon-lock::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 10px;
    border: 3px solid #ffffff;
    border-bottom: none;
    left: 8px;
    top: 7px;
    border-radius: 10px 10px 0 0;
}

/* Shield */
.et2-icon-shield::before {
    content: "✓";
    position: absolute;
    color: #ffffff;
    font-size: 21px;
    font-weight: 900;
    left: 9px;
    top: 3px;
}

/* Return */
.et2-icon-return::before {
    content: "↩";
    position: absolute;
    color: #ffffff;
    font-size: 23px;
    font-weight: 900;
    left: 7px;
    top: 2px;
}

/* Hover */
.et2-trust-card:hover {
    background: #1f7a3f !important;
    color: #ffffff !important;
}

.et2-trust-card:hover .et2-icon {
    background: #ffffff !important;
}

.et2-trust-card:hover .et2-icon::before,
.et2-trust-card:hover .et2-icon::after {
    color: #1f7a3f !important;
    border-color: #1f7a3f !important;
    background: #1f7a3f !important;
}

/* Mobile */
@media (max-width: 768px) {
    .et2-trust-bar {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 12px !important;
        border-radius: 16px !important;
    }

    .et2-trust-card {
        flex-direction: column !important;
        min-height: 92px !important;
        font-size: 12px !important;
        gap: 7px !important;
    }

    .et2-icon {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
    }
}

/* =========================
   FILTER BAR CLEAN
========================= */

.shop-loop-head {

    background: #ffffff !important;
    border-radius: 12px !important;
    padding: 10px 15px !important;

    box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
}

/* =========================
   HEADER SEARCH UPGRADE
========================= */

/* البحث */
.searchform,
.wd-search-form,
.wd-search-wrapper {

    border-radius: 999px !important;
    background: #f5f5f5 !important;
    padding: 4px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06) !important;
}

/* input */
.searchform input,
.wd-search-form input {

    border: none !important;
    background: transparent !important;
    padding: 10px 12px !important;
    font-size: 14px !important;
}

/* زر البحث */
.searchform button,
.wd-search-form button {

    background: #c8102e !important;
    color: #fff !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
}

/* hover */
.searchform button:hover,
.wd-search-form button:hover {
    background: #1f7a3f !important;
}

/* =========================
   HEADER HEIGHT FIX
========================= */

.whb-header,
.whb-main-header {

    padding-top: 6px !important;
    padding-bottom: 6px !important;
}

/* تقليل الفراغ تحت الهيدر */

.site-content {
    margin-top: 10px !important;
}

/* =========================
   CATEGORY CARDS UPGRADE
========================= */

.category-grid-item,
.product-category,
.wd-cat {
    background: #ffffff !important;
    border: 1px solid #eeeeee !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    box-shadow: 0 6px 18px rgba(31,31,31,0.08) !important;
    transition: all 0.25s ease !important;
}

.category-grid-item:hover,
.product-category:hover,
.wd-cat:hover {
    transform: translateY(-5px) !important;
    border-color: #1f7a3f !important;
    box-shadow: 0 14px 30px rgba(31,31,31,0.14) !important;
}

.category-grid-item img,
.product-category img,
.wd-cat img {
    transition: transform 0.35s ease !important;
}

.category-grid-item:hover img,
.product-category:hover img,
.wd-cat:hover img {
    transform: scale(1.05) !important;
}

.category-grid-item .wd-entities-title,
.category-grid-item h3,
.product-category h2,
.wd-cat .wd-entities-title {
    color: #1f1f1f !important;
    font-size: 18px !important;
    font-weight: 900 !important;
}

.category-grid-item mark,
.product-category mark,
.wd-cat mark {
    background: transparent !important;
    color: #1f7a3f !important;
    font-weight: 800 !important;
}

/* Mobile */
@media (max-width: 768px) {
    .category-grid-item,
    .product-category,
    .wd-cat {
        border-radius: 14px !important;
    }

    .category-grid-item .wd-entities-title,
    .category-grid-item h3,
    .product-category h2,
    .wd-cat .wd-entities-title {
        font-size: 15px !important;
    }
}

/* =========================
   CATEGORY BLOCKS - PREMIUM
========================= */

.product-category,
.wd-cat {

    position: relative !important;
    overflow: hidden !important;
    border-radius: 20px !important;
}

/* Overlay */
.product-category::after,
.wd-cat::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.6),
        rgba(0,0,0,0.2),
        transparent
    );
    z-index: 2;
}

/* Title فوق الصورة */
.product-category h2,
.wd-cat .wd-entities-title {

    position: absolute !important;
    bottom: 35px !important;
    right: 15px !important;
    z-index: 3 !important;

    color: #fff !important;
    font-size: 18px !important;
    font-weight: 900 !important;
}

/* عدد المنتجات */
.product-category mark,
.wd-cat mark {

    position: absolute !important;
    bottom: 10px !important;
    right: 15px !important;
    z-index: 3 !important;

    color: #fff !important;
    font-size: 12px !important;
}

/* Hover */
.product-category:hover,
.wd-cat:hover {
    transform: scale(1.03) !important;
}

/* Mobile Fix */
@media (max-width: 768px) {

    .product-category h2,
    .wd-cat .wd-entities-title {
        font-size: 14px !important;
    }

    .product-category mark,
    .wd-cat mark {
        font-size: 11px !important;
    }
}

/* =========================
   ALL PRODUCTS CTA BUTTON
========================= */

a[href*="shop"],
.elementor-button,
.wd-button-wrapper a {
    transition: all 0.25s ease !important;
}

/* زر كل المنتجات */
a[href*="shop"].elementor-button,
.elementor-button[href*="shop"],
.wd-button-wrapper a[href*="shop"] {
    background: #c8102e !important;
    color: #ffffff !important;
    border-radius: 999px !important;
    padding: 13px 26px !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    border: none !important;
    box-shadow: 0 10px 24px rgba(200,16,46,0.25) !important;
}

/* Hover */
a[href*="shop"].elementor-button:hover,
.elementor-button[href*="shop"]:hover,
.wd-button-wrapper a[href*="shop"]:hover {
    background: #1f7a3f !important;
    color: #ffffff !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 28px rgba(31,122,63,0.25) !important;
}

/* Mobile */
@media (max-width: 768px) {
    a[href*="shop"].elementor-button,
    .elementor-button[href*="shop"],
    .wd-button-wrapper a[href*="shop"] {
        padding: 11px 22px !important;
        font-size: 13px !important;
    }
}

/* =========================
   PRODUCT BUTTON FIX
========================= */

/* زر إضافة للسلة = الأساسي */
.single_add_to_cart_button {

    background: #c8102e !important;
    color: #fff !important;

    width: 100% !important;
    padding: 14px !important;

    font-size: 15px !important;
    font-weight: 900 !important;

    border-radius: 12px !important;
}

/* hover */
.single_add_to_cart_button:hover {
    background: #1f7a3f !important;
}

/* زر اشتري الآن = ثانوي */
.wd-buy-now-btn {
    background: #1f1f1f !important;
    color: #fff !important;
    opacity: 0.85 !important;
}

/* =========================
   PRODUCT HIGHLIGHTS
========================= */

.et-product-highlights {
    direction: rtl;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 10px 0 12px;
}

.et-product-highlights span {
    background: #ffffff;
    color: #1f1f1f;
    border: 1px solid #e8e8e8;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 800;
}

.et-product-highlights span:first-child {
    border-color: #1f7a3f;
    color: #1f7a3f;
}

.et-product-highlights span:nth-child(2) {
    border-color: #c8102e;
    color: #c8102e;
}

@media (max-width: 768px) {
    .et-product-highlights {
        justify-content: center;
    }

    .et-product-highlights span {
        font-size: 11px;
        padding: 6px 10px;
    }
}

.single-product .price {
    font-size: 24px !important;
    font-weight: 900 !important;
}

/* وصف المنتج */
.woocommerce-Tabs-panel {

    font-size: 14px !important;
    line-height: 2 !important;
}

/* =========================
   STICKY ADD TO CART BAR
========================= */

.et-sticky-cart {
    direction: rtl;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;

    background: #ffffff;
    border-top: 1px solid #e8e8e8;
    box-shadow: 0 -8px 25px rgba(31,31,31,0.12);

    padding: 12px 18px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.et-sticky-info {
    max-width: 520px;
    overflow: hidden;
}

.et-sticky-title {
    color: #1f1f1f;
    font-size: 14px;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.et-sticky-price {
    color: #c8102e;
    font-size: 15px;
    font-weight: 900;
    margin-top: 3px;
}

.et-sticky-price del {
    color: #777777;
    font-size: 12px;
    margin-inline-end: 6px;
}

.et-sticky-price ins {
    color: #c8102e;
    text-decoration: none;
}

.et-sticky-btn {
    background: #c8102e;
    color: #ffffff;

    border: none;
    border-radius: 999px;

    padding: 12px 28px;

    font-size: 14px;
    font-weight: 900;

    cursor: pointer;
    transition: all 0.25s ease;
}

.et-sticky-btn:hover {
    background: #1f7a3f;
    transform: translateY(-2px);
}

/* Mobile */
@media (max-width: 768px) {

    .et-sticky-cart {
        bottom: 72px; /* فوق شريط الموبايل السفلي */
        padding: 10px 12px;
        gap: 10px;
        justify-content: space-between;
    }

    .et-sticky-info {
        max-width: 58%;
    }

    .et-sticky-title {
        font-size: 11px;
    }

    .et-sticky-price {
        font-size: 13px;
    }

    .et-sticky-btn {
        padding: 11px 16px;
        font-size: 12px;
        min-width: 120px;
    }
}