/* ============================================================
   Eliver Shortcodes — Stylesheet
   Matches the eliverexpress.com design language:
   Primary: #3a2fbf (deep purple)  Sale: #e53935 (red)
   ============================================================ */

/* ── Shared ───────────────────────────────────────────────── */
.eliver-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: #1a1a1a;
}
.eliver-notice {
    padding: .75rem 1rem;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
}

/* ── Product Section ─────────────────────────────────────── */
.eliver-products-section {
    padding: 2rem 0;
}

/* Carousel wrapper */
.eliver-carousel {
    position: relative;
    overflow: hidden;
}
.eliver-products-track {
    display: flex;
    gap: 1rem;
    transition: transform .35s ease;
}
/* Grid (non-carousel) */
.eliver-grid .eliver-products-track {
    flex-wrap: wrap;
}
.eliver-grid .eliver-product-card {
    flex: 0 0 calc( (100% / var(--eliver-cols, 5)) - 1rem );
}

/* Carousel nav buttons */
.eliver-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}
.eliver-carousel-btn:hover { background: #f0f0f0; }
.eliver-prev { left: 0; }
.eliver-next { right: 0; }

/* Product Card */
.eliver-product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 0 0 calc( (100% / var(--eliver-cols, 5)) - .85rem );
    transition: box-shadow .2s;
}
.eliver-product-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
}
.eliver-product-img-wrap {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f7f7f7;
}
.eliver-product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.eliver-product-card:hover .eliver-product-img-wrap img {
    transform: scale(1.05);
}
.eliver-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #ccc;
    background: #f0f0f0;
}
.eliver-product-info {
    padding: .65rem .75rem .4rem;
    flex: 1;
}
.eliver-price-row {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-wrap: wrap;
    margin-bottom: .25rem;
}
.eliver-sale-price {
    font-weight: 700;
    font-size: 1rem;
    color: #1a1a1a;
}
.eliver-sale-price::before { content: "Now "; font-weight: 400; color: #555; font-size: .875rem; }
.eliver-regular-price {
    font-size: .875rem;
    color: #e53935;
    text-decoration: line-through;
}
.eliver-regular-price-only {
    font-weight: 700;
    font-size: 1rem;
    color: #1a1a1a;
}
.eliver-product-name {
    display: block;
    font-size: .875rem;
    color: #333;
    text-decoration: none;
    line-height: 1.4;
    margin-bottom: .25rem;
}
.eliver-product-name:hover { color: #3a2fbf; }

.eliver-add-to-bag {
    display: block;
    width: 100%;
    padding: .6rem;
    background: #3a2fbf;
    color: #fff !important;
    text-align: center;
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background .2s;
    margin-top: auto;
}
.eliver-add-to-bag:hover { background: #2d24a0; }

/* ── Banner Section ──────────────────────────────────────── */
.eliver-banner-section {
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
}
.eliver-banner-overlay {
    position: absolute;
    inset: 0;
}
.eliver-banner-content {
    position: relative;
    z-index: 2;
    padding: 2.5rem;
    max-width: 600px;
}
.eliver-align-center { justify-content: center; text-align: center; }
.eliver-align-center .eliver-banner-content { text-align: center; }
.eliver-align-right  { justify-content: flex-end; }
.eliver-align-left   { justify-content: flex-start; }

.eliver-banner-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: .5rem;
}
.eliver-banner-subtitle {
    font-size: 1.125rem;
    color: rgba(255,255,255,.88);
    margin-bottom: 1.25rem;
}
.eliver-banner-btn {
    display: inline-block;
    padding: .7rem 1.75rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, color .2s;
}
.eliver-btn-filled {
    background: #3a2fbf;
    color: #fff !important;
}
.eliver-btn-filled:hover { background: #2d24a0; }
.eliver-btn-outline {
    background: transparent;
    color: #fff !important;
    border: 2px solid #fff;
}
.eliver-btn-outline:hover { background: rgba(255,255,255,.15); }

/* ── Categories Section ──────────────────────────────────── */
.eliver-categories-section {
    padding: 2rem 0;
}
.eliver-categories-grid {
    display: grid;
    grid-template-columns: repeat( var(--eliver-cat-cols, 3), 1fr );
    gap: 1.25rem;
}
.eliver-category-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: box-shadow .2s;
}
.eliver-category-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.eliver-category-img-wrap {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f7f7f7;
}
.eliver-category-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.eliver-category-card:hover .eliver-category-img-wrap img {
    transform: scale(1.05);
}
.eliver-category-name {
    padding: .65rem .85rem;
    font-weight: 600;
    font-size: .95rem;
    color: #1a1a1a;
    background: #fff;
}
.eliver-cat-count {
    font-weight: 400;
    color: #888;
    font-size: .85rem;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
    .eliver-product-card { flex: 0 0 calc(33.333% - .85rem); }
    .eliver-categories-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .eliver-product-card { flex: 0 0 calc(50% - .85rem); }
    .eliver-banner-title { font-size: 1.5rem; }
    .eliver-categories-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .eliver-product-card { flex: 0 0 calc(100% - .85rem); }
    .eliver-categories-grid { grid-template-columns: 1fr; }
    .eliver-banner-content { padding: 1.5rem; }
}
