/* ============================================================
   SHARED — admin-editable high-res page banner (Deals / Offers)
   ============================================================ */
.page-banner-section {
    background: #f3f4f8;
    padding: 20px 0 6px;
}
.page-banner {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 22px rgba(10,42,140,.14);
}
.page-banner a { display: block; }

/* ============================================================
   OFFERS PAGE
   ============================================================ */

/* Hero */
.offer-hero {
    background: linear-gradient(135deg, #0a2a8c 0%, #0b4db0 65%, #1565c8 100%);
    padding: 44px 0 36px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.offer-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,.06) 0%, transparent 60%),
                      radial-gradient(circle at 80% 20%, rgba(224,168,46,.12) 0%, transparent 50%);
    pointer-events: none;
}
.offer-hero-badge {
    display: inline-block;
    background: #e0a82e;
    color: #0a2a8c;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 3px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
    position: relative;
}
.offer-hero h1 {
    color: #fff;
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 8px;
    position: relative;
    line-height: 1.2;
}
.offer-hero p {
    color: rgba(255,255,255,.72);
    font-size: 13px;
    margin: 0;
    position: relative;
}

/* Section background */
.offers-section {
    background: #f3f4f8;
    padding: 28px 0 44px;
}

/* 3-column grid */
.offer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Card — compact */
.offer-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 8px rgba(10,42,140,.07);
    border: 1px solid #e8eaf0;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}
.offer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(10,42,140,.12);
}

/* Image — 3:2 compact ratio */
.offer-card-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    display: block;
    background: #dde0ea;
    flex-shrink: 0;
}
.offer-card-img-wrap a {
    display: block;
    width: 100%;
    height: 100%;
}
.offer-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .38s ease;
}
.offer-card:hover .offer-card-img-wrap img {
    transform: scale(1.06);
}
.offer-img-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,42,140,.38) 0%, transparent 50%);
    pointer-events: none;
}
.offer-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e0a82e;
    color: #0a2a8c;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 2px 10px;
    border-radius: 10px;
    line-height: 1.6;
}

/* Card body — tight */
.offer-card-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.offer-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #0b2851;
    margin: 0 0 6px;
    line-height: 1.3;
}
.offer-card-title a { color: inherit; text-decoration: none; }
.offer-card-title a:hover { color: #0a2a8c; }

.offer-card-desc {
    font-size: 12px;
    color: #5a6b80;
    line-height: 1.5;
    margin: 0 0 10px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.offer-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #8593a3;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.offer-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.offer-card-meta .material-symbols-outlined {
    font-size: 13px;
    color: #0a2a8c;
}

.offer-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #0a2a8c;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 5px;
    text-decoration: none;
    align-self: flex-start;
    transition: background .15s ease;
    margin-top: auto;
}
.offer-card-btn:hover { background: #061b5e; color: #fff; text-decoration: none; }
.offer-card-btn .material-symbols-outlined { font-size: 14px; }

/* Empty */
.offer-empty {
    text-align: center;
    padding: 50px 20px;
    background: #fff;
    border-radius: 10px;
    color: #8593a3;
}
.offer-empty .material-symbols-outlined { font-size: 44px; color: #c8d0de; display: block; margin-bottom: 10px; }

/* Responsive */
@media (max-width: 991px) {
    .offer-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .offer-hero h1 { font-size: 22px; }
}
@media (max-width: 575px) {
    .offer-grid { grid-template-columns: 1fr; gap: 14px; }
    .offer-hero { padding: 32px 0 26px; }
    .offer-hero h1 { font-size: 18px; }
}


/* ============================================================
   DEALS PAGE (product/special)
   ============================================================ */

/* Hero */
.deals-hero {
    background: linear-gradient(135deg, #0b2851 0%, #0a2a8c 55%, #0b4db0 100%);
    padding: 44px 0 36px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.deals-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 75% 30%, rgba(224,168,46,.14) 0%, transparent 55%),
                      radial-gradient(circle at 15% 70%, rgba(255,255,255,.05) 0%, transparent 50%);
    pointer-events: none;
}
.deals-hero-badge {
    display: inline-block;
    background: #e0a82e;
    color: #0a2a8c;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 3px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
    position: relative;
}
.deals-hero-title {
    color: #fff;
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 8px;
    position: relative;
    line-height: 1.2;
}
.deals-hero-sub {
    color: rgba(255,255,255,.72);
    font-size: 13px;
    margin: 0;
    position: relative;
}

/* Section */
.deals-section {
    background: #f3f4f8;
    padding: 26px 0 44px;
}

/* Toolbar */
.deals-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #e4e6ef;
    border-radius: 8px;
    padding: 10px 16px;
    margin-bottom: 18px;
    gap: 10px;
    flex-wrap: wrap;
}
.deals-results {
    font-size: 13px;
    color: #5a6b80;
}
.deals-toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #5a6b80;
}
.deals-toolbar-right label { margin: 0; font-weight: 500; }
.deals-sort-select {
    border: 1px solid #d0d4e0;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 13px;
    color: #0b2851;
    background: #f5f6fa;
    cursor: pointer;
    outline: none;
    appearance: auto;
}
.deals-sort-select:focus { border-color: #0a2a8c; }

/* Override product-listing grid for deals: 5 cols */
.deals-grid {
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 14px !important;
}

/* Fix card height so button always aligns at bottom */
.deals-grid .product-wrap {
    display: flex;
    height: 100%;
}
.deals-grid .product-wrap .product {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}
.deals-grid .product-wrap .product .product-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.deals-grid .product-wrap .product .product-info .name {
    flex: 1;
    height: auto;
}
.deals-grid .product-wrap .product .product-info .price-wrap {
    height: auto;
    margin-bottom: 10px;
}
.deals-grid .product-wrap .product .actions {
    margin-top: auto;
    padding-top: 8px;
}
.deals-grid .product-wrap .product .actions .btn-cart {
    width: 100%;
    font-size: 12px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.deals-grid .product-wrap .product .actions .btn-cart .material-symbols-outlined {
    font-size: 16px;
}

/* Pagination */
.deals-pagination {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}
.deals-pagination .pagination { margin: 0; }

/* Empty */
.deals-empty {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 10px;
    color: #8593a3;
}
.deals-empty .material-symbols-outlined { font-size: 48px; color: #c8d0de; display: block; margin-bottom: 12px; }
.deals-empty p { font-size: 14px; margin-bottom: 18px; }
.deals-empty-btn {
    display: inline-block;
    background: #0a2a8c;
    color: #fff;
    padding: 9px 26px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    font-size: 13px;
    transition: background .15s;
}
.deals-empty-btn:hover { background: #061b5e; color: #fff; text-decoration: none; }

/* Responsive */
@media (max-width: 1199px) {
    .deals-grid { grid-template-columns: repeat(4, 1fr) !important; }
}
@media (max-width: 991px) {
    .deals-grid { grid-template-columns: repeat(3, 1fr) !important; }
    .deals-hero-title { font-size: 22px; }
    .deals-hero { padding: 36px 0 28px; }
}
@media (max-width: 767px) {
    .deals-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .deals-toolbar { flex-direction: column; align-items: flex-start; }
    .deals-hero-title { font-size: 18px; }
    .deals-hero { padding: 28px 0 22px; }
}
@media (max-width: 400px) {
    .deals-grid { grid-template-columns: 1fr !important; }
}
