/* =====================================================================
   30 Â· CARDS â€” home hero, image section cards, category / modality / item
   cards, admin quick cards, catalog sidebar
   (Replaces section_cards.css, category_cards.css, modality_cards.css,
   item_cards.css, admin_cards.css, sidebar.css, icons.css, and the catalog
   rules that were duplicated in admin.css and site.css)
   ===================================================================== */

/* ---------- Home hero (full-bleed, centred) ---------- */
.hero-section {
    position: relative; width: 100vw; margin: -20px calc(-50vw + 50%) 0;
    min-height: 360px; background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center; text-align: center; padding: 80px 20px;
}
.hero-section::before {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(to top, rgba(0, 64, 0, .9) 0%, rgba(0, 64, 0, .3) 100%);
}
.hero-content { position: relative; z-index: 2; color: var(--white); max-width: 800px; }
.hero-content h1, .hero-content h2 { color: var(--white); font-weight: var(--title-weight); }

/* ---------- Image section cards (home, products, services) ---------- */
.section-card {
    position: relative; border-radius: var(--border-radius); overflow: hidden;
    background-size: cover; background-position: center; box-shadow: var(--shadow);
    padding: clamp(28px, 5vw, 56px); margin: 20px auto; max-width: 1000px; min-height: 300px;
    display: flex; flex-direction: column; justify-content: center;
}
.section-card::before {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(to right, rgba(0,0,0,.85) 0%, rgba(0,0,0,.4) 60%, transparent 100%);
}
.section-card-content { position: relative; z-index: 2; color: var(--white); max-width: 480px; }
.section-card-content h2, .section-card-content h3,
.section-card-allubot h2, .section-card-allubot h3 { color: var(--white); margin-bottom: 12px; }

.section-card-allubot {
    position: relative; border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--shadow);
    margin: 40px auto; max-width: 1000px; padding: 20px 0; min-height: 300px;
    display: flex; flex-direction: column; justify-content: center;
    background: radial-gradient(circle at 85% 50%, rgba(0, 120, 60, .6) 0%, var(--dark-green) 70%);
}
.meet-allubot-img { position: absolute; bottom: 0; right: 40px; padding: 0 !important; }
.meet-allubot-img img { width: 300px; height: auto; object-fit: contain; }

.section-no-border-1, .section-no-border-2 { max-width: 1000px; margin: 0 auto; text-align: center; padding-left: 16px; padding-right: 16px; }
.section-no-border-1 { padding-top: 60px; padding-bottom: 20px; }
.section-no-border-2 { padding-top: 20px; padding-bottom: 40px; }

/* ---------- Category cards (products) ---------- */
.category-card {
    position: relative; border-radius: 16px; overflow: hidden; background-size: cover; background-position: center;
    height: 320px; display: flex; flex-direction: column; justify-content: space-between; padding: 35px 30px;
    text-decoration: none; box-shadow: 0 10px 20px rgba(0,0,0,.1); transition: transform .3s ease;
}
.category-card:hover { transform: translateY(-5px); }
.category-card::before {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, rgba(8, 45, 25, .75) 0%, rgba(4, 25, 12, .96) 100%);
}
.category-content {
    position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column;
    align-items: center; justify-content: space-between; text-align: center; color: #fff;
}
.category-text-group { margin: auto 0; width: 100%; }
.category-title { font-size: 1.6rem; font-weight: 700; margin-bottom: 12px; color: #fff; }
.category-desc { font-size: .92rem; line-height: 1.4; color: #e2e8f0; margin-bottom: 0; }
.category-link-btn {
    background-color: #fff; color: #0f3f23; padding: 8px 24px; border-radius: 50px; font-weight: 600; font-size: .9rem;
    text-transform: lowercase; box-shadow: 0 4px 10px rgba(0,0,0,.15); transition: background-color .2s ease, color .2s ease;
}
.category-link-btn:hover { background-color: #0f3f23; color: #fff; }

/* ---------- Modality cards + carousel (home) ---------- */
.modality-card {
    position: relative; width: 240px !important; height: 240px !important; flex-shrink: 0;
    border-radius: 24px; overflow: hidden; background-size: cover; background-position: center;
    box-shadow: 0 10px 25px rgba(0,0,0,.1); display: flex; flex-direction: column; justify-content: flex-end;
    padding: 24px; text-decoration: none; transition: transform .3s ease, box-shadow .3s ease;
}
.modality-card::before {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, rgba(40, 120, 70, .4) 0%, rgba(20, 80, 45, .8) 100%);
}
.modality-card > * { position: relative; z-index: 2; }
.modality-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,.15); }
.modality-title { color: var(--white) !important; font-size: 1.5rem; font-weight: 700; margin-bottom: 4px; }
.modality-link { color: rgba(255,255,255,.85); font-size: .9rem; text-transform: lowercase; text-decoration: none; }

.carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; width: 45px; height: 90px;
    background-color: rgba(0,0,0,.25); border: none; color: #fff; font-size: 1.5rem;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    transition: background-color .3s ease, opacity .3s ease;
}
.carousel-btn:hover { background-color: rgba(0,0,0,.4); }
.carousel-btn.hidden { opacity: 0; pointer-events: none; }   /* toggled by assets/carousel.js */
.carousel-btn-left { left: 0; border-radius: 0 45px 45px 0; }
.carousel-btn-right { right: 0; border-radius: 45px 0 0 45px; }

/* ---------- Item cards (public product list + admin items + editor preview) ---------- */
.item-card {
    background-color: #fff; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column;
    align-items: center; padding: 20px; text-decoration: none; height: 100%;
    border: 1px solid transparent; box-shadow: 0 4px 15px rgba(0,0,0,.06);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.item-card:hover { transform: translateY(-4px); box-shadow: 0 8px 22px rgba(0,0,0,.1); }
.item-card-img-container {
    width: 100%; height: 160px; display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px; background-color: #f8fafc; border-radius: 10px; overflow: hidden;
}
.item-card-img { max-width: 100%; max-height: 100%; object-fit: contain; }
.item-card-title { font-size: .95rem; font-weight: 600; color: #1e293b; text-align: center; margin-bottom: 0; line-height: 1.3; }
.item-tile { position: relative; height: 100%; }
.item-tile:hover .item-card { border-color: var(--a-line); }
.item-tile .tile-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 4px; z-index: 2; pointer-events: none; }

/* ---------- Catalog layout: sidebar + toolbar (public list AND admin items) ---------- */
.catalog .sidebar-container {
    background: #fff; border: 1px solid var(--a-line); border-radius: var(--a-radius); padding: 6px 14px 10px;
    box-shadow: var(--a-shadow); align-self: flex-start; position: sticky; top: 86px;
}
.sidebar-row {
    display: block; width: 100%; padding: 14px 6px; border: 0; border-bottom: 1px solid #e5e7eb; border-radius: 0;
    text-decoration: none; color: #374151; font-size: .95rem; box-shadow: none !important;
    transition: color .15s ease, padding-left .15s ease;
}
.sidebar-row:last-child { border-bottom: 0; }
.sidebar-row:hover, .sidebar-row.active { color: var(--green); }
.sidebar-row:hover { padding-left: 10px; }
.sidebar-row:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.sidebar-all-products, .sidebar-category-title { font-weight: 700; color: #111827; font-size: 1rem; }
.sidebar-modality-link { padding-left: 22px; font-weight: 400; color: #4b5563; font-size: .92rem; }
.sidebar-modality-link.active { font-weight: 600; }
.catalog .item-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.catalog .item-toolbar .count { color: var(--a-muted); font-size: .84rem; margin-left: auto; }
.catalog-empty { text-align: center; color: var(--a-muted); padding: 48px 20px; }
.catalog-mobile-filter { display: none; margin-bottom: 14px; }
@media (max-width: 991px) { .catalog-mobile-filter { display: block; } }

/* ---------- Admin dashboard quick-access cards ---------- */
.admin-card {
    position: relative; background-color: var(--green); border-radius: 16px; overflow: hidden; border: none; cursor: pointer;
    width: 100%; height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    box-shadow: 0 8px 22px rgba(0,0,0,.14); transition: transform .3s ease, box-shadow .3s ease;
}
.admin-card:hover { transform: translateY(-5px); box-shadow: 0 20px 45px rgba(0, 128, 0, .3); }
.admin-card::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background-size: cover; background-position: center; opacity: .15;
}
.admin-card.inquiries-bg::before { background-image: url('/assets/pictures/admin cards/bg_inquiries.avif'); }
.admin-card.items-bg::before { background-image: url('/assets/pictures/admin cards/bg_items.jpg'); }
.admin-card.accounts-bg::before { background-image: url('/assets/pictures/admin cards/bg_accounts.jpg'); }
.admin-card.reports-bg::before { background-image: url('/assets/pictures/admin cards/bg_analytics.webp'); }
.admin-card-body {
    position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 14px; width: 100%; gap: 12px;
}
.admin-card-icon { height: 46px; width: 46px; object-fit: contain; }
.admin-card-title { color: var(--white) !important; font-size: 1rem; font-weight: 700; letter-spacing: .5px; margin: 0; }
.admin-card .sub { color: rgba(255,255,255,.8); font-size: .76rem; margin-top: -6px; }