/* Custom CSS for Wedded Wonderland */

/* Override Bootstrap CSS variables */
:root {
    --ct-font-sans-serif: 'Open Sans', sans-serif !important;
    --bs-font-sans-serif: 'Open Sans', sans-serif !important;
    --ct-body-font-family: 'Open Sans', sans-serif !important;
    --bs-body-font-family: 'Open Sans', sans-serif !important;
}

/* Global Font Declaration */
* {
    font-family: 'Open Sans', sans-serif !important;
}

/* Ensure Font Awesome icons render correctly despite global font overrides */
.fa,
.fas {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

.far {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 400 !important;
}

.fab {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}

body {
    font-family: 'Open Sans', sans-serif !important;
}

/* Popular Products Section Styles */
.popular-products-container {
    display: flex;
    min-height: 60vh;
    margin-bottom: 80px;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}

/* Left Section - Sticky Single Card */
.popular-left-section {
    position: sticky;
    top: 0;
    left: 0;
    width: 45%;
    height: 80vh;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    z-index: 100;
    padding: 40px;
}

.popular-main-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: calc(70vh - 80px);
    display: flex;
    flex-direction: column;
}

.popular-card-header-image {
    width: 100%;
    height: 60%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.popular-card-header-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
    z-index: 1;
}

.popular-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.popular-header-title {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.popular-online-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #000000;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
}

.popular-heart-button {
    position: absolute;
    top: 15px;
    right: 15px;
    background: white !important;
    border: none !important;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 2;
    text-decoration: none !important;
}

.popular-heart-icon {
    color: #dc3545;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.popular-heart-icon.fas {
    color: #dc3545 !important;
}

.popular-heart-icon.far {
    color: #6c757d;
}

.popular-decorative-element {
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: #e91e63;
    clip-path: polygon(100% 0%, 0% 0%, 100% 100%);
    z-index: 2;
}

.popular-card-content {
    padding: 18px;
    height: 25%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.popular-category-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.popular-category-tag {
    background: #f8f9fa;
    color: #6c757d;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    border: 1px solid #e9ecef;
}

.popular-card-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #343a40;
    margin-bottom: 8px;
}

.popular-card-description {
    color: #6c757d;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 12px;
}

.popular-bottom-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.popular-bottom-tag {
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: bold;
}

.popular-discount-tag {
    background: white;
    color: #343a40;
    border: 1px solid #dee2e6;
}

.popular-code-tag {
    background: #dc3545;
    color: white;
}

.popular-location-tag {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #e9ecef;
}

/* Right Section - Scrollable Cards */
.popular-right-section {
    width: 55%;
    padding: 40px 20px;
    background: #f8f9fa;
    display: flex;
    gap: 20px;
    height: 100vh;
    overflow-y: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
}

.popular-right-column {
    flex: 1;
}

.popular-products-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.popular-product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.popular-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.popular-product-header-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.popular-product-header-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    z-index: 1;
}

.popular-product-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.popular-product-header-title {
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.popular-product-online-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #000000;
    color: white;
    padding: 3px 8px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 2;
}

.popular-product-heart-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white !important;
    border: none !important;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 2;
    text-decoration: none !important;
}

.popular-product-heart-icon {
    color: #dc3545;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.popular-product-heart-icon.fas {
    color: #dc3545 !important;
}

.popular-product-heart-icon.far {
    color: #6c757d;
}

.popular-product-decorative-element {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background: #e91e63;
    clip-path: polygon(100% 0%, 0% 0%, 100% 100%);
    z-index: 2;
}

.popular-product-card-content {
    padding: 15px;
}

.popular-product-category-tags {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.popular-product-category-tag {
    background: #f8f9fa;
    color: #6c757d;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    border: 1px solid #e9ecef;
}

.popular-product-card-title {
    font-size: 1rem;
    font-weight: bold;
    color: #343a40;
    margin-bottom: 8px;
}

.popular-product-card-description {
    color: #6c757d;
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 15px;
}

.popular-product-bottom-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.popular-product-bottom-tag {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
}

.popular-product-discount-tag {
    background: white;
    color: #343a40;
    border: 1px solid #dee2e6;
}

.popular-product-code-tag {
    background: #dc3545;
    color: white;
}

.popular-product-location-tag {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #e9ecef;
}

/* Custom Scrollbar Styling */
.popular-right-section::-webkit-scrollbar {
    width: 8px;
}

.popular-right-section::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.popular-right-section::-webkit-scrollbar-thumb {
    background: #000000;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.popular-right-section::-webkit-scrollbar-thumb:hover {
    background: #333333;
}

/* Global smooth scrolling for all scrollable elements */
* {
    scroll-behavior: smooth;
}

/* Enhanced scrolling for mobile */
@media (max-width: 768px) {
    body {
        -webkit-overflow-scrolling: touch;
    }

    /* Disable hover effects on touch devices for better mobile UX */
    .offer-card:hover {
        transform: none;
        box-shadow: none;
    }

    .offer-card:hover .offer-image img {
        transform: none;
    }

    .hero-swiper .swiper-wrapper {
        align-items: center;
    }
}

/* Extra small devices */
@media (max-width: 400px) {
    .offer-card {
        max-width: 90%;
        width: 90%;
    }

    .offer-image img {
        height: 220px;
    }

    .hero-category-pill {
        padding: 5px 10px;
        font-size: 10px;
    }

    .hero-offer-title {
        font-size: 12px;
    }
}

/* Smooth touch interactions */
.hero-swiper {
    touch-action: pan-y;
}

.hero-swiper .swiper-slide {
    -webkit-tap-highlight-color: transparent;
}

/* Responsive Design for Popular Products */
@media (max-width: 768px) {
    .popular-products-container {
        flex-direction: column;
    }

    .popular-left-section {
        width: 100%;
        position: relative;
        height: auto;
    }

    .popular-main-card {
        height: auto;
    }

    .popular-right-section {
        width: 100%;
        flex-direction: column;
        height: auto;
    }

    .popular-header-title {
        font-size: 1.5rem;
    }
}

/* Global Styles */
html {
    scroll-behavior: smooth;
}

body {
    scroll-behavior: smooth;
}

/* Header Styles */
.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 10px;
}

.btn-outline-light {
    border-width: 2px;
    font-weight: 600;
    padding: 8px 20px;
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
    margin-top: 0;
    padding-top: 0;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 55vh;
}
.min-vh-100 {
    min-height: 59vh !important;
}

.hero-background {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    position: relative;
    min-height: 55vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("../images/hero-image-2.webp") center/cover;
    opacity: 0.3;
    z-index: 1;
}


.hero-background .container {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content .lead {
    font-size: 1.5rem;
    font-weight: 400;
}

/* Custom Pink Button */
.btn-pink {
    background: #872318;
    border: none;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 15px 30px;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(172, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.btn-pink:hover {
    background: #8B0000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(172, 0, 0, 0.6);
    color: white;
}

/* Offers Carousel in Hero */
.offers-carousel {
    background: transparent;
    padding: 30px;
    border-radius: 15px;
}

/* Hero Swiper Styles */
.hero-swiper {
    width: 100%;
    height: 100%;
    padding: 20px 0;
    cursor: grab;
}

.hero-swiper:active {
    cursor: grabbing;
}

.hero-swiper .swiper-slide {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: grab;
    width: 320px;
    max-width: 100%;
    transition: all 0.3s ease;
}

.hero-swiper .swiper-slide:active {
    cursor: grabbing;
}

.hero-swiper .swiper-pagination {
    position: relative;
    margin-top: 20px;
}

.hero-swiper .swiper-pagination-bullet {
    background: rgba(135, 35, 24, 0.4);
    opacity: 1;
}

.hero-swiper .swiper-pagination-bullet-active {
    background: #872318;
}

.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
    color: #000000;
    background: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-top: -20px;
}

.hero-swiper .swiper-button-next:after,
.hero-swiper .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.hero-swiper .swiper-button-next:hover,
.hero-swiper .swiper-button-prev:hover {
    background: white;
    color: #000000;
}

.offer-card {
    background: transparent;
    border-radius: 12px;
    padding: 0;
    text-align: left;
    border: none;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.offer-card:hover {
    transform: translateY(-5px);
}

.offer-image img {
    width: 100%;
    max-width: 320px;
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 0;
    display: block;
    transition: transform 0.3s ease;
}

.offer-card:hover .offer-image img {
    transform: scale(1.03);
}

.offer-content small {
    color: #ccc;
    font-size: 0.8rem;
}

.offer-content h6 {
    color: white;
    font-weight: 600;
    margin: 0;
}

.carousel-controls .btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Second Offers Section */
.offers-swiper {
    width: 100%;
    height: 100%;
    padding: 20px 0;
    cursor: grab;
}

.offers-swiper:active {
    cursor: grabbing;
}

.offers-swiper .swiper-slide {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: grab;
}

.offers-swiper .swiper-slide:active {
    cursor: grabbing;
}

.offers-swiper .swiper-pagination {
    position: relative;
    margin-top: 20px;
}

.offers-swiper .swiper-pagination-bullet {
    background: rgba(135, 35, 24, 0.3);
    opacity: 1;
}

.offers-swiper .swiper-pagination-bullet-active {
    background: #872318;
}

.offers-swiper .swiper-button-next,
.offers-swiper .swiper-button-prev {
    color: #000000;
    background: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-top: -20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.offers-swiper .swiper-button-next:after,
.offers-swiper .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.offers-swiper .swiper-button-next:hover,
.offers-swiper .swiper-button-prev:hover {
    background: white;
    color: #000000;
    transform: scale(1.1);
}

.offer-card-large {
    text-align: center;
    padding: 20px;
    border-radius: 15px;
    background: #f8f9fa;
    transition: transform 0.3s ease;
}

.offer-card-large:hover {
    transform: translateY(-5px);
}

.offer-card-large .offer-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.offer-card-large .offer-content small {
    color: #6c757d;
    font-size: 0.9rem;
}

.offer-card-large .offer-content h6 {
    color: #212529;
    font-weight: 600;
    margin: 0;
}

/* Categories Section */
.categories-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.category-item {
    padding: 30px 20px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.category-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.category-icon {
    margin-bottom: 20px;
}

.category-item h6 {
    font-weight: 600;
    margin: 0;
    font-size: 0.9rem;
}

/* Search Offers Section */
.form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    font-weight: 500;
}

.form-select:focus {
    border-color: #FF69B4;
    box-shadow: 0 0 0 0.2rem rgba(255, 105, 180, 0.25);
}

/* Offer Cards in Search Section */
.offer-card-search .card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.offer-card-search .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.offer-card-search .card-body {
    padding: 20px;
}

.offer-card-search .badge {
    font-size: 0.75rem;
    padding: 5px 10px;
    border-radius: 20px;
}

.offer-card-search img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
    margin-bottom: 15px;
}

.offer-card-search:hover img {
    transform: scale(1.05);
}

/* Position badges as overlays on top of images */
.offer-card-search .card {
    position: relative;
}

.offer-card-search .card-body .d-flex {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    z-index: 10;
    margin: 0;
}

/* Style the heart icon button */
.offer-card-search .btn-link {
    background: white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.offer-card-search .btn-link:hover {
    background: #f8f9fa;
    transform: scale(1.1);
}

.offer-card-search .btn-link i {
    color: #dc3545 !important;
    font-size: 14px;
}

.offer-card-search .card-body {
    position: relative;
    padding: 0;
}

.offer-card-search img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    transition: transform 0.3s ease;
    margin-bottom: 0;
}

.offer-card-search .card-body > *:not(.d-flex):not(img) {
    padding: 20px 20px 0 20px;
}

.offer-card-search .card-body > *:last-child {
    padding-bottom: 20px;
}

/* Add light line before badges */
.offer-card-search .card-body .mt-2 {
    position: relative;
    padding-top: 15px;
    padding-bottom: 20px !important;
}

.offer-card-search .card-body .mt-2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: #e9ecef;
}

/* Footer */
.logo-circle {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #FF69B4, #FF1493);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 1.2rem;
}

.social-icons a {
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #FF69B4 !important;
}

footer a:hover {
    color: #FF69B4 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .btn-pink {
        font-size: 14px !important;
        padding: 7px 22px !important;
       
    }
    .hero-swiper {
        padding: 20px 0;
        overflow: visible;
    }

    .hero-swiper .swiper-slide {
        width: 100%;
        max-width: 100%;
        display: flex !important;
        justify-content: center;
    }

    .offer-card {
        max-width: 90%;
        width: 90%;
        margin: 0 auto;
    }

    .offer-image {
        width: 100%;
    }

    .offer-image img {
        max-width: 100%;
        width: 100%;
        height: 260px;
    }

    .hero-swiper .swiper-button-next,
    .hero-swiper .swiper-button-prev {
        width: 35px;
        height: 35px;
        opacity: 0.8;
    }

    .hero-swiper .swiper-button-next:after,
    .hero-swiper .swiper-button-prev:after {
        font-size: 16px;
    }

    .offers-swiper .swiper-button-next,
    .offers-swiper .swiper-button-prev {
        display: none;
    }

    .categories-section .row > div {
        margin-bottom: 20px;
    }

    .offers-carousel {
        padding: 20px 10px;
    }

    .offers-carousel h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-swiper {
        padding: 15px 0;
        overflow: visible;
    }

    .hero-swiper .swiper-slide {
        max-width: 100%;
        width: 100%;
        display: flex !important;
        justify-content: center;
    }

    .offer-card {
        max-width: 85%;
        width: 85%;
        margin: 0 auto;
    }

    .offer-image img {
        height: 240px;
        width: 100%;
    }

    .hero-swiper .swiper-button-next,
    .hero-swiper .swiper-button-prev {
        width: 30px;
        height: 30px;
    }

    .hero-swiper .swiper-button-next:after,
    .hero-swiper .swiper-button-prev:after {
        font-size: 14px;
    }

    .offers-grid {
        grid-template-columns: 1fr;
    }

    .offers-swiper .swiper-button-next,
    .offers-swiper .swiper-button-prev {
        display: none;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .offers-carousel {
        padding: 15px 5px;
    }

    .offers-carousel h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }

    .hero-overlay {
        left: 12px;
        right: 12px;
        bottom: 16px;
    }

    .hero-category-pill {
        padding: 6px 12px;
        font-size: 11px;
        margin-bottom: 8px;
    }

    .hero-offer-title {
        font-size: 13px;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #000000;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #333333;
}

/* Smooth Animations */
* {
    transition: all 0.3s ease;
}

/* Button Hover Effects */
.btn:hover {
    transform: translateY(-2px);
}

/* Card Hover Effects */
.card:hover {
    transform: translateY(-5px);
}

/* Image Hover Effects */
img:hover {
    transform: scale(1.05);
}

/* Loading Animation for Images */
.offer-image img {
    transition: opacity 0.3s ease;
}

.offer-image img:not([src]) {
    opacity: 0;
}

/* Focus States */
.btn:focus,
.form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 105, 180, 0.25);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* Print Styles */
@media print {
    .hero-section,
    .categories-section {
        background: white !important;
        color: black !important;
    }

    .btn {
        display: none !important;
    }
}

/* Popup Styles */
.modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header .btn-close {

    font-size: 1.5rem;
    color: #6c757d;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.popup-image-container {
    position: relative;
    border-radius: 1px;
    overflow: hidden;
}

.popup-image-container img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 1px;
    transition: transform 0.3s ease;
}

.popup-image-container:hover img {
    transform: scale(1.05);
}

.popup-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.popup-badges .badge {
    font-size: 0.75rem;
    padding: 5px 10px;
    border-radius: 20px;
}

.popup-heart {
    background: white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.popup-heart:hover {
    background: #f8f9fa;
    transform: scale(1.1);
}

.popup-heart i {
    color: #dc3545 !important;
    font-size: 14px;
}

.popup-content {
    padding: 0 10px;
}

.popup-badges-top .badge {
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 20px;
}

.popup-badges-top .badge.bg-pink {
    background: linear-gradient(45deg, #FF69B4, #FF1493) !important;
}

.popup-title {
    font-weight: 700;
    color: #212529;
    margin-bottom: 1rem;
}

.popup-location {
    color: #6c757d;
    font-size: 0.9rem;
}

.popup-location span {
    color: #FF69B4;
    cursor: pointer;
}

.popup-offers .badge {
    font-size: 0.8rem;
    padding: 8px 12px;
    border-radius: 20px;
}

.popup-actions .btn {
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.popup-actions .btn:hover {
    background: #FF69B4;
    border-color: #FF69B4;
    color: white;
    transform: translateY(-2px);
}

.popup-actions .btn i {
    font-size: 0.8rem;
}

/* Make cards clickable */
.offer-card-search .card,
.hero-swiper .offer-card,
.offers-swiper .offer-card-large {
    cursor: pointer;
    transition: all 0.3s ease;
}

/* New hero overlay styles to match desired design */
.hero-overlay{
    position:absolute;
    left:16px;
    right:16px;
    bottom:20px;
    z-index:3;
}

.hero-category-pill{
    display:inline-block;
    background:#ffffff;
    color:#000000;
    padding:8px 16px;
    border-radius:20px;
    font-weight:600;
    font-size:12px;
    box-shadow:0 4px 20px rgba(0,0,0,0.3);
    margin-bottom: 12px;
}

.hero-offer-title{
    margin-top:0;
    color:#ffffff;
    font-weight:700;
    font-size:14px;
    line-height: 1.3;
    text-shadow:0 2px 12px rgba(0,0,0,0.8);
}

.offer-card .offer-image{ 
    position:relative;
    border-radius: 12px;
    overflow: hidden;
}

.offer-card .offer-image::after{
    content:'';
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    top:35%;
    background:linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.75) 100%);
    z-index:2;
}

.offer-card-search .card:hover,
.hero-swiper .offer-card:hover,
.offers-swiper .offer-card-large:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Responsive popup */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 1rem;
    }

    .popup-content {
        padding: 0;
        margin-top: 1rem;
    }

    .popup-actions .btn {
        margin-bottom: 0.5rem;
        width: 100%;
    }
}

/* Category tag styling */
.category-tag .badge {
    background: #D0D5DD !important;
    color: #000000 !important;
    border: none;
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(208, 213, 221, 0.3);
    transition: all 0.3s ease;
    margin-right: 8px;
    margin-bottom: 4px;
    display: inline-block;
}

.category-tag .badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(208, 213, 221, 0.4);
}

.category-tag .badge:last-child {
    margin-right: 0;
}

/* Multiple category badges container */
.category-tag {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

/* Responsive category badges */
@media (max-width: 768px) {
    .category-tag .badge {
        font-size: 0.7rem;
        padding: 6px 12px;
        margin-right: 6px;
        margin-bottom: 3px;
    }
}

/* Country badge styling */
.country-badge {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #D0D5DD;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 16px;
    box-shadow: 0 2px 6px rgba(208, 213, 221, 0.3);
    transition: all 0.3s ease;
    margin-right: 6px;
    margin-bottom: 3px;
    display: inline-block;
}

.country-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(208, 213, 221, 0.4);
}

.country-badge:last-child {
    margin-right: 0;
}

/* Multiple country badges container */
.country-badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    align-items: center;
}

/* Responsive country badges */
@media (max-width: 768px) {
    .country-badge {
        font-size: 0.7rem;
        padding: 5px 10px;
        margin-right: 5px;
        margin-bottom: 2px;
    }
}

/* Icon Slider Styling */
.swiper-container {
    width: 100%;
    padding: 20px 0;
}

.swiper-slide {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
}

.icon-circle {
    width: 60px;
    height: 60px;
    background-color: #000;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    flex-shrink: 0;
    margin-right: 12px;
    overflow: visible;
    position: relative;
    z-index: 1;
}

.icon-label {
    font-size: 14px;
    font-weight: 500;
    color: #000;
    text-align: left;
    flex: 1;
    overflow: visible;
    text-overflow: ellipsis;
}

.my-slide {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    min-width: 140px;
    max-width: 180px;
    padding: 8px 16px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.my-slide:hover {
    transform: translateY(-3px);
    overflow: visible;
}

.my-slide:hover .icon-circle {
    transform: scale(1.05);
    background-color: #872318 !important;
    overflow: visible;
    z-index: 10;
}

.my-slide:hover .icon-circle i {
    color: #000 !important;
}

/* Ensure swiper container doesn't crop hover effects */
.swiper-container {
    overflow: visible !important;
}

.swiper-wrapper {
    overflow: visible !important;
}

.swiper-slide {
    overflow: visible !important;
}

@media (max-width: 768px) {
    .form-control {
        width: 100%;
    }
    
    .my-slide {
        min-width: calc(50% - 3px);
        max-width: calc(50% - 3px);
        padding: 8px 12px;
        width: calc(50% - 3px);
        box-sizing: border-box;
    }
    
    .icon-circle {
        width: 45px;
        height: 45px;
        font-size: 18px;
        margin-right: 8px;
        flex-shrink: 0;
    }
    
    .icon-label {
        font-size: 12px;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex: 1;
    }
    
    .swiper-slide {
        width: calc(50% - 3px) !important;
        flex-shrink: 0;
        box-sizing: border-box;
    }
    
    /* Ensure swiper container takes full width on mobile */
    .swiper-container {
        width: 100% !important;
        padding: 0 10px;
    }
    
    .swiper-wrapper {
        width: 100% !important;
    }
    
    /* Mobile padding between category and country sections */
    .search-filters-row .category-filter-col {
        margin-bottom: 20px;
    }
    
    .search-filters-row .country-filter-col {
        margin-top: 0;
    }
}

/* Mobile Icon Slider Specific Styles */
.mobile-icon-slider .my-slide {
    min-width: calc(50% - 5px);
    max-width: calc(50% - 5px);
    padding: 8px 12px;
    width: calc(50% - 5px);
    box-sizing: border-box;
}

.mobile-icon-slider .icon-circle {
    width: 45px;
    height: 45px;
    font-size: 18px;
    margin-right: 8px;
    flex-shrink: 0;
}

.mobile-icon-slider .icon-label {
    font-size: 12px;
    font-weight: 600;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-icon-slider .swiper-slide {
    width: calc(50% - 5px) !important;
    flex-shrink: 0;
    box-sizing: border-box;
}

.mobile-icon-slider {
    width: 100% !important;
    padding: 0 10px;
}

.mobile-icon-slider .swiper-wrapper {
    width: 100% !important;
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .mobile-icon-slider .my-slide {
        min-width: calc(50% - 3px);
        max-width: calc(50% - 3px);
        padding: 6px 8px;
        width: calc(50% - 3px);
    }
    
    .mobile-icon-slider .icon-circle {
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin-right: 6px;
    }
    
    .mobile-icon-slider .icon-label {
        font-size: 11px;
        font-weight: 600;
    }
    
    .mobile-icon-slider .swiper-slide {
        width: calc(50% - 3px) !important;
    }
    
    .mobile-icon-slider {
        padding: 0 5px;
    }
}

/* Custom Category Slider Styles */
.custom-category-slider {
    width: 100% !important;
    padding: 0 20px;
    overflow: visible !important;
}

.custom-category-slider .swiper-wrapper {
    width: 100% !important;
    align-items: center;
}

.custom-category-slider .swiper-slide {
    width: auto !important;
    flex-shrink: 0;
    overflow: visible !important;
}

.custom-slide {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    min-width: 140px;
    max-width: 180px;
    padding: 8px 16px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.custom-icon-circle {
    width: 50px;
    height: 50px;
    background-color: #000;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    flex-shrink: 0;
    margin-right: 12px;
    overflow: visible;
    position: relative;
    z-index: 1;
}

.custom-icon-label {
    font-size: 14px;
    font-weight: 500;
    color: #000;
    text-align: left;
    flex: 1;
    overflow: visible;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Hover effects for custom slider */
.custom-slide:hover {
    transform: translateY(-2px);
    overflow: visible;
}

.custom-slide:hover .custom-icon-circle {
    transform: scale(1.05);
    background-color: #872318 !important;
    overflow: visible;
    z-index: 10;
}

.custom-slide:hover .custom-icon-circle i {
    color: #fff !important;
}

.custom-slide:hover .custom-icon-label {
    color: #872318 !important;
}

/* Mobile responsive styles for custom slider */
@media (max-width: 768px) {
    .custom-category-slider {
        padding: 0 10px;
    }
    
    .custom-slide {
        min-width: 120px;
        max-width: 150px;
        padding: 6px 12px;
    }
    
    .custom-icon-circle {
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin-right: 8px;
    }
    
    .custom-icon-label {
        font-size: 12px;
        font-weight: 600;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .custom-category-slider {
        padding: 0 5px;
    }
    
    .custom-slide {
        min-width: 100px;
        max-width: 130px;
        padding: 4px 8px;
    }
    
    .custom-icon-circle {
        width: 35px;
        height: 35px;
        font-size: 14px;
        margin-right: 6px;
    }
    
    .custom-icon-label {
        font-size: 11px;
        font-weight: 600;
    }
}

/* Mobile Category Slider Styles */
.mobile-category-slider {
    width: 100% !important;
    padding: 0 10px;
    overflow: visible !important;
}

.mobile-category-slider .swiper-wrapper {
    width: 100% !important;
    align-items: center;
}

.mobile-category-slider .swiper-slide {
    width: calc(50% - 5px) !important;
    flex-shrink: 0;
    overflow: visible !important;
    box-sizing: border-box;
}

.mobile-slide {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    min-width: calc(50% - 5px);
    max-width: calc(50% - 5px);
    padding: 8px 12px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    box-sizing: border-box;
}

.mobile-icon-circle {
    width: 40px;
    height: 40px;
    background-color: #000;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    flex-shrink: 0;
    margin-right: 8px;
    overflow: visible;
    position: relative;
    z-index: 1;
}

.mobile-icon-label {
    font-size: 12px;
    font-weight: 600;
    color: #000;
    text-align: left;
    flex: 1;
    overflow: visible;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Hover effects for mobile slider */
.mobile-slide:hover {
    transform: translateY(-2px);
    overflow: visible;
}

.mobile-slide:hover .mobile-icon-circle {
    transform: scale(1.05);
    background-color: #872318 !important;
    overflow: visible;
    z-index: 10;
}

.mobile-slide:hover .mobile-icon-circle i {
    color: #fff !important;
}

.mobile-slide:hover .mobile-icon-label {
    color: #872318 !important;
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .mobile-category-slider {
        padding: 0 5px;
    }
    
    .mobile-slide {
        min-width: calc(50% - 3px);
        max-width: calc(50% - 3px);
        padding: 6px 8px;
    }
    
    .mobile-icon-circle {
        width: 35px;
        height: 35px;
        font-size: 14px;
        margin-right: 6px;
    }
    
    .mobile-icon-label {
        font-size: 11px;
        font-weight: 600;
    }
    
    .mobile-category-slider .swiper-slide {
        width: calc(50% - 3px) !important;
    }
}

/* Desktop responsive styles for custom slider */
@media (min-width: 769px) {
    .custom-slide {
        min-width: 150px;
        max-width: 200px;
        padding: 8px 16px;
    }
    
    .custom-icon-circle {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-right: 12px;
    }
    
    .custom-icon-label {
        font-size: 14px;
        font-weight: 500;
    }
}

/* Desktop specific styles */
@media (min-width: 769px) {
    .my-slide {
        min-width: 150px;
        max-width: 200px;
    }
    
    .swiper-slide {
        width: auto !important;
        flex-shrink: 0;
    }
}

/* Location styling for offer cards */
.unique-card-location,
.card-location {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.unique-card-location i,
.card-location i {
    font-size: 0.75rem;
    color: #dc3545;
}

/* Location badge styling in modals */
.badge .fas.fa-map-marker-alt {
    font-size: 0.75rem;
    margin-right: 0.25rem;
}
