/* =============================================
   HOMEPAGE - GENERAL SECTIONS
   ============================================= */
.zay-home-section {
    padding: 60px 0;
    direction: rtl;
}
.zay-home-section-title {
    text-align: center;
    margin-bottom: 8px;
}
.zay-home-section-title h2 {
    font-size: 30px;
    font-weight: 900;
    color: #1a1a1a;
    display: inline-block;
    position: relative;
    padding-bottom: 10px;
}
.zay-home-section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #1a9fd4, #0d7aad);
    border-radius: 3px;
}
.zay-home-section-subtitle {
    text-align: center;
    color: #888;
    font-size: 15px;
    margin-bottom: 40px;
}

/* =============================================
   PRODUCTS GRID - 5 columns
   ============================================= */
.zay-products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}
@media (max-width: 1100px) { .zay-products-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 850px)  { .zay-products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .zay-products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 380px)  { .zay-products-grid { grid-template-columns: 1fr; } }

/* Product Card */
.zay-product-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1.5px solid #f0f0f0;
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
    position: relative;
    text-align: right;
    direction: rtl;
}
.zay-product-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

/* Sale badge */
.zay-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #1a9fd4;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    z-index: 2;
}
.zay-card-badge.sale { background: #e74c3c; }

/* Product image */
.zay-card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    background: #f5f5f5;
}
.zay-card-image-link { display: block; overflow: hidden; }
.zay-card-image-link:hover .zay-card-image { transform: scale(1.04); transition: transform 0.3s; }

/* Card body */
.zay-card-body {
    padding: 12px 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.zay-card-category {
    font-size: 12px;
    color: #888;
}
.zay-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.5;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.zay-card-title:hover { color: #1a9fd4; }
.zay-card-stars { color: #f5c518; font-size: 13px; letter-spacing: 1px; }
.zay-card-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-direction: row-reverse;
    justify-content: flex-end;
}
.zay-card-price {
    font-size: 16px;
    font-weight: 900;
    color: #1a9fd4;
}
.zay-card-price-old {
    font-size: 13px;
    color: #bbb;
    text-decoration: line-through;
}
.zay-card-btn {
    display: block;
    background: linear-gradient(135deg, #1a9fd4, #0d7aad);
    color: #fff;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    margin-top: auto;
    transition: opacity 0.2s, transform 0.15s;
    font-family: 'Cairo', sans-serif;
}
.zay-card-btn:hover { opacity: 0.9; transform: translateY(-1px); color: #fff; }

/* =============================================
   CATEGORIES BENTO GRID
   ============================================= */
.zay-categories-bento {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 16px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Left column: 2 stacked small cards */
.zay-cat-col-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
/* Right column: 1 tall card */
.zay-cat-col-right {
    display: flex;
    flex-direction: column;
}
/* Bottom: full-width wide card */
.zay-cat-wide {
    grid-column: 1 / -1;
}

.zay-cat-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    min-height: 200px;
}
.zay-cat-card.tall { min-height: 420px; }
.zay-cat-card.wide { min-height: 230px; }

.zay-cat-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.4s;
}
.zay-cat-card:hover img { transform: scale(1.05); }
.zay-cat-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.55));
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 24px;
    text-align: right;
}
.zay-cat-card-name {
    color: #fff;
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 14px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.zay-cat-card-btn {
    background: #1a9fd4;
    color: #fff;
    padding: 9px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}
.zay-cat-card-btn:hover { background: #0d7aad; color: #fff; }

@media (max-width: 700px) {
    .zay-categories-bento { grid-template-columns: 1fr; }
    .zay-cat-wide { grid-column: 1; }
    .zay-cat-card.tall { min-height: 260px; }
}

/* =============================================
   "منتجات مع صفحات هبوط" section placeholder
   ============================================= */
.zay-landing-section {
    padding: 50px 0 30px;
    text-align: center;
    direction: rtl;
    border-top: 1px solid #f0f0f0;
}
