/*
 * Discounts Module Styles
 * Unified CSS for all Discount pages
 * HalalahSite - Halala Plus
 */

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(107, 118, 249, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(107, 118, 249, 0);
    }
}

/* Animation Classes */
.animate-fade-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section,
.store-hero {
    background: linear-gradient(135deg, var(--bs-halala2) 0%, var(--bs-halala4) 100%);
    padding: 60px 0 80px;
    margin-bottom: -40px;
    position: relative;
    overflow: hidden;
}

.store-hero {
    padding: 60px 0 100px;
    margin-bottom: 0;
}

.hero-section::before,
.store-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-title {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    animation: fadeInDown 0.8s ease-out;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb-nav {
    padding: 15px 0;
    margin-bottom: 20px;
}

.breadcrumb-nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
    color: #fff;
}

.breadcrumb-nav span {
    color: #fff;
    font-weight: 600;
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.6);
    margin: 0 10px;
}

/* ============================================
   FILTER SECTION
   ============================================ */
.filter-section {
    background: #fff;
    border-radius: 20px;
    padding: 25px 30px;
    box-shadow: 0 15px 40px rgba(107, 118, 249, 0.15);
    position: relative;
    z-index: 10;
    margin-top: -40px;
    animation: slideUp 0.6s ease-out 0.3s both;
}

.filter-section .form-control,
.filter-section .form-select {
    border: 2px solid #e8eaf6;
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f8f9ff;
}

.filter-section .form-control:focus,
.filter-section .form-select:focus {
    border-color: var(--bs-halala3);
    box-shadow: 0 0 0 4px rgba(99, 112, 248, 0.15);
    background-color: #fff;
}

.filter-section .form-control::placeholder {
    color: #a0a5c0;
}

.filter-label {
    color: var(--bs-halala5);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: block;
}

/* Search Icon - LTR */
.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--bs-halala3);
    font-size: 1.2rem;
}

/* Search Icon - RTL */
[dir="rtl"] .search-icon,
html[lang="ar"] .search-icon {
    right: auto;
    left: 15px;
}

/* Clear Filter Button */
.btn-clear-filter {
    background: transparent;
    border: 2px solid var(--bs-halala3);
    color: var(--bs-halala3);
    border-radius: 12px;
    padding: 12px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-clear-filter:hover {
    background: var(--bs-halala3);
    color: #fff;
    transform: translateY(-2px);
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */
.categories-section,
.providers-section {
    padding: 60px 0;
    min-height: 60vh;
    background: linear-gradient(180deg, #f8f9ff 0%, #fff 100%);
}

.section-title {
    color: var(--bs-halala5);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-subtitle {
    color: #8A91AC;
    font-size: 1rem;
    margin-bottom: 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

/* Results Container */
.results-container {
    position: relative;
    min-height: 300px;
}

/* Count Badge */
.count-badge {
    background: linear-gradient(135deg, var(--bs-halala2) 0%, var(--bs-halala4) 100%);
    color: #fff;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 30px;
    animation: pulse 2s infinite;
}

/* ============================================
   LOADING OVERLAY
   ============================================ */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
    border-radius: 20px;
}

.loading-overlay.active {
    display: flex;
}

.loader {
    width: 50px;
    height: 50px;
    border: 4px solid #e8eaf6;
    border-top-color: var(--bs-halala3);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ============================================
   CATEGORY CARD (Depts)
   ============================================ */
.category-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 30px rgba(107, 118, 249, 0.08);
    height: 100%;
    position: relative;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--bs-halala2) 0%, var(--bs-halala4) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(107, 118, 249, 0.2);
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:active {
    transform: translateY(-8px) scale(0.98);
}

.card-inner {
    padding: 35px 25px;
    text-align: center;
    position: relative;
}

/* Category Image Container */
.image-container {
    width: 110px;
    height: 110px;
    margin: 0 auto 25px;
    position: relative;
}

.image-wrapper {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8eaf6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.category-card:hover .image-wrapper {
    background: linear-gradient(135deg, var(--bs-halala1) 0%, var(--bs-halala3) 100%);
    transform: scale(1.1) rotate(5deg);
}

.image-wrapper::after {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.category-card:hover .image-wrapper::after {
    transform: translateX(100%);
}

.category-image {
    max-width: 60px;
    max-height: 60px;
    object-fit: contain;
    transition: all 0.4s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.category-card:hover .category-image {
    filter: brightness(0) invert(1) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transform: scale(1.15);
}

/* Category Card Title */
.category-card .card-title {
    color: var(--bs-halala5);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    transition: color 0.3s ease;
    line-height: 1.4;
}

.category-card:hover .card-title {
    color: var(--bs-halala3);
}

/* View Link */
.view-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--bs-halala3);
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.category-card:hover .view-link {
    opacity: 1;
    transform: translateY(0);
}

.view-link i {
    transition: transform 0.3s ease;
}

/* LTR */
.category-card:hover .view-link i {
    transform: translateX(5px);
}

/* RTL */
[dir="rtl"] .category-card:hover .view-link i,
html[lang="ar"] .category-card:hover .view-link i {
    transform: translateX(-5px);
}

/* Decorative Elements - LTR */
.card-decoration {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(107, 118, 249, 0.05) 0%, rgba(119, 87, 230, 0.05) 100%);
    top: -20px;
    right: -20px;
    transition: all 0.4s ease;
}

/* RTL */
[dir="rtl"] .card-decoration,
html[lang="ar"] .card-decoration {
    right: auto;
    left: -20px;
}

.category-card:hover .card-decoration {
    transform: scale(1.5);
    background: linear-gradient(135deg, rgba(107, 118, 249, 0.1) 0%, rgba(119, 87, 230, 0.1) 100%);
}

/* ============================================
   PROVIDER CARD (Index, Index1)
   ============================================ */
.provider-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 30px rgba(107, 118, 249, 0.08);
    height: 100%;
    position: relative;
}

.provider-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--bs-halala2) 0%, var(--bs-halala4) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.provider-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(107, 118, 249, 0.2);
}

.provider-card:hover::before {
    opacity: 1;
}

.provider-card:active {
    transform: translateY(-5px) scale(0.98);
}

/* Provider Image Container */
.provider-image-container {
    position: relative;
    width: 100%;
    padding-top: 75%;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8eaf6 100%);
    overflow: hidden;
}

.provider-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: all 0.4s ease;
}

.provider-card:hover .provider-image {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Image Overlay */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(107, 118, 249, 0) 0%, rgba(107, 118, 249, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 20px;
}

.provider-card:hover .image-overlay {
    opacity: 1;
}

.view-btn {
    background: #fff;
    color: var(--bs-halala3);
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transform: translateY(20px);
    transition: all 0.3s ease 0.1s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.provider-card:hover .view-btn {
    transform: translateY(0);
}

/* Provider Content */
.provider-content {
    padding: 20px;
    text-align: center;
}

.provider-name {
    color: var(--bs-halala5);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0;
    transition: color 0.3s ease;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.provider-card:hover .provider-name {
    color: var(--bs-halala3);
}

/* ============================================
   NO RESULTS STATE
   ============================================ */
.no-results-state {
    text-align: center;
    padding: 80px 20px;
}

.no-results-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8eaf6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

.no-results-icon i {
    font-size: 3.5rem;
    color: #c5cae9;
}

.no-results-title {
    color: var(--bs-halala5);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.no-results-text {
    color: #8A91AC;
    font-size: 1rem;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    background: #fff;
    border: 2px solid #e8eaf6;
    border-radius: 12px;
    color: var(--bs-halala5);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pagination-btn:hover {
    background: var(--bs-halala1);
    border-color: var(--bs-halala1);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(107, 118, 249, 0.3);
}

.pagination-btn.active {
    background: linear-gradient(135deg, var(--bs-halala2) 0%, var(--bs-halala4) 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 20px rgba(107, 118, 249, 0.3);
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-btn i {
    font-size: 1rem;
}

.pagination-info {
    color: #8A91AC;
    font-size: 0.9rem;
    margin-top: 15px;
    text-align: center;
}

/* ============================================
   STORE DETAILS PAGE
   ============================================ */
/* Store Card */
.store-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(107, 118, 249, 0.2);
    margin-top: -60px;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.store-header {
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
    border-bottom: 1px solid #e8eaf6;
    flex-wrap: wrap;
}

.store-logo-wrapper {
    width: 150px;
    height: 150px;
    border-radius: 20px;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8eaf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(107, 118, 249, 0.15);
    flex-shrink: 0;
}

.store-logo {
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
}

.store-info {
    flex: 1;
    min-width: 250px;
}

.store-name {
    color: var(--bs-halala5);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    color: #fff;
}

.social-link.whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.social-link.facebook {
    background: linear-gradient(135deg, #1877F2 0%, #0D5DC7 100%);
}

.social-link.instagram {
    background: linear-gradient(135deg, #E4405F 0%, #C13584 50%, #833AB4 100%);
}

.social-link.linkedin {
    background: linear-gradient(135deg, #0A66C2 0%, #004182 100%);
}

.social-link.store-link {
    background: linear-gradient(135deg, var(--bs-halala2) 0%, var(--bs-halala4) 100%);
}

/* Store Content */
.store-content {
    padding: 40px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.info-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-card {
    background: #f8f9ff;
    border-radius: 16px;
    padding: 25px;
    transition: all 0.3s ease;
}

.info-card:hover {
    background: #fff;
    box-shadow: 0 10px 30px rgba(107, 118, 249, 0.1);
}

.info-card-title {
    color: var(--bs-halala3);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card-title i {
    font-size: 1.3rem;
}

.info-card-content {
    color: #5a5f7d;
    font-size: 1rem;
    line-height: 1.8;
    white-space: pre-line;
}

/* Map Section */
.map-section {
    position: relative;
}

.map-wrapper {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(107, 118, 249, 0.1);
    height: 350px;
}

.map-wrapper #map {
    width: 100%;
    height: 100%;
}

/* Map Overlay - LTR */
.map-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: #fff;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Map Overlay - RTL */
[dir="rtl"] .map-overlay,
html[lang="ar"] .map-overlay {
    left: auto;
    right: 20px;
}

.map-overlay i {
    color: var(--bs-halala3);
    font-size: 1.5rem;
}

.map-overlay-text {
    color: var(--bs-halala5);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ============================================
   DISCOUNTS SECTION
   ============================================ */
.discounts-section {
    padding: 60px 0;
    background: linear-gradient(180deg, #f8f9ff 0%, #fff 100%);
}

/* Discount Cards */
.discount-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(107, 118, 249, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.discount-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--bs-halala2) 0%, var(--bs-halala4) 100%);
}

.discount-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(107, 118, 249, 0.2);
}

.discount-badge {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.discount-percent {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
}

.discount-code {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8eaf6 100%);
    border-radius: 10px;
    padding: 12px 20px;
    margin-bottom: 15px;
    display: inline-block;
}

.discount-code-label {
    color: #8A91AC;
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.discount-code-value {
    color: var(--bs-halala5);
    font-size: 1.1rem;
    font-weight: 700;
    font-family: monospace;
    letter-spacing: 2px;
}

.discount-expiry {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #8A91AC;
    font-size: 0.9rem;
}

.discount-expiry i {
    color: var(--bs-halala3);
}

/* No Discounts State */
.no-discounts {
    text-align: center;
    padding: 60px 20px;
}

.no-discounts-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8eaf6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.no-discounts-icon i {
    font-size: 2.5rem;
    color: #c5cae9;
}

/* ============================================
   OFFER CARD
   ============================================ */
.offer-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 30px rgba(107, 118, 249, 0.08);
    height: 100%;
    position: relative;
}

.offer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10B981 0%, #059669 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.offer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(107, 118, 249, 0.2);
}

.offer-card:hover::before {
    opacity: 1;
}

/* Offer Image Container */
.offer-image-container {
    position: relative;
    width: 100%;
    padding-top: 65%;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8eaf6 100%);
    overflow: hidden;
}

.offer-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.offer-card:hover .offer-image {
    transform: scale(1.1);
}

/* Offer Discount Badge */
.offer-discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: #fff;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4);
    z-index: 1;
}

[dir="rtl"] .offer-discount-badge,
html[lang="ar"] .offer-discount-badge {
    right: auto;
    left: 15px;
}

/* Offer Content */
.offer-content {
    padding: 20px;
}

.offer-name {
    color: var(--bs-halala5);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    transition: color 0.3s ease;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.offer-card:hover .offer-name {
    color: var(--bs-halala3);
}

.offer-description {
    color: #8A91AC;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: pre-line;
}

.offer-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #e8eaf6;
}

.offer-time {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #8A91AC;
    font-size: 0.85rem;
}

.offer-time i {
    color: var(--bs-halala3);
}

.remain-label {
    color: #8A91AC;
}

.offer-days {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Offer Variant for Discount Card */
.discount-card.offer-variant .discount-badge {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
}

/* Store Details Section Update */
.store-details-section {
    padding: 60px 0;
    background: linear-gradient(180deg, #f8f9ff 0%, #fff 100%);
}

.store-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(107, 118, 249, 0.15);
    padding: 40px;
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.store-logo-container {
    width: 150px;
    height: 150px;
    border-radius: 20px;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8eaf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(107, 118, 249, 0.15);
    margin: 0 auto 25px;
}

.store-card .store-logo {
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
}

.store-card .store-name {
    text-align: center;
    margin-bottom: 20px;
}

.store-card .social-links {
    justify-content: center;
    margin-bottom: 30px;
}

.store-card .info-section {
    background: #f8f9ff;
    border-radius: 16px;
    padding: 25px;
    margin-top: 25px;
}

.info-title {
    color: var(--bs-halala3);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.info-content {
    color: #5a5f7d;
    font-size: 1rem;
    line-height: 1.8;
    white-space: pre-line;
}

/* Map Section */
.map-section {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(107, 118, 249, 0.15);
    padding: 30px;
    height: 100%;
}

.map-title {
    color: var(--bs-halala3);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
}

.map-hint {
    color: #8A91AC;
    font-size: 0.85rem;
    margin-top: 15px;
    text-align: center;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 992px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .category-card,
    .provider-card {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .hero-section,
    .store-hero {
        padding: 40px 0 60px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .filter-section {
        padding: 20px;
    }

    .store-header {
        padding: 25px;
        flex-direction: column;
        text-align: center;
    }

    .store-logo-wrapper {
        width: 120px;
        height: 120px;
    }

    .store-name {
        font-size: 1.5rem;
    }

    .social-links {
        justify-content: center;
    }

    .store-content {
        padding: 25px;
    }

    .map-wrapper {
        height: 280px;
    }

    .discount-badge {
        width: 80px;
        height: 80px;
    }

    .discount-percent {
        font-size: 1.4rem;
    }
}

@media (max-width: 576px) {
    .image-container {
        width: 90px;
        height: 90px;
    }

    .category-image {
        max-width: 50px;
        max-height: 50px;
    }

    .category-card .card-title {
        font-size: 1rem;
    }

    .card-inner {
        padding: 25px 20px;
    }

    .provider-name {
        font-size: 1rem;
    }

    .provider-content {
        padding: 15px;
    }

    .pagination-btn {
        min-width: 40px;
        height: 40px;
        font-size: 0.85rem;
    }
}
