/* General Styles */
:root {
    --primary-color: #4f46e5;
    --primary-dark: #4338ca;
    --text-color: #333;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s ease;

    --footer-primary-color: #6c5ce7;
    --footer-secondary-color: #a29bfe;
    --footer-dark-color: #2d3436;
    --footer-light-color: #f5f6fa;
    --footer-accent-color: #fd79a8;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f4f9;
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

section h1, section h2, section h3 {
    color: #2c3e50;
}

section p {
    color: #666;
}


.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background-color: white;
    box-shadow: var(--shadow);
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    position: relative;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    /* color: var(--dark-color); */
    color: #023e77;
    text-decoration: none;

    outline: 2px solid black;
    border-radius: 3px;
}

.logo span {
    /* color: var(--primary-color); */
    color: #30aa31;
}

/* Navigation Styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin-left: 30px;
}

.nav-item {
    position: relative;
    margin: 0 10px;
}

.nav-link {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 6px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
    background-color: rgba(79, 70, 229, 0.1);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    width: 200px;
    max-height: 340px;
    overflow-y: auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
    list-style: none;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.dropdown-menu li a:hover {
    background-color: rgba(79, 70, 229, 0.1);
    color: var(--primary-color);
    padding-left: 25px;
}

/* Search Bar Styles */
.search-container {
    position: relative;
    margin-left: auto;
    margin-right: 20px;
    width: 250px;
}

.search-input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: var(--transition);
    background-color: #f8fafc;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
    background-color: white;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

#search-results-div {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
}

.search-result-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    display: block;
    color: var(--text-color);
    text-decoration: none;
}

.search-result-item:hover {
    background-color: #f5f5f5;
}

/* Button Styles */
.nav-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.user-actions-btns{
    display: none;
}
.user-actions-btns.active{
    display: flex;
    flex-wrap: wrap;
}
.user-account{
    border-radius: 10%;
    padding: 10px;
    outline: none;
    border: none;
    font-weight: bolder;
    font-size: 1.5em;
    display: none;
    cursor: pointer;
}
.user-account.active{
    display: block;
}
.user-account option{
    font-size: small;
}

.btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    text-decoration: none;
}

.btn-login {
    background-color: transparent;
    color: var(--dark-color);
}

.btn-login:hover {
    color: var(--primary-color);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--dark-color);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .search-container {
        width: 200px;
    }
}

@media (max-width: 992px) {
    .navbar {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 80%;
        max-width: 400px;
        height: calc(100vh - 80px);
        overflow-y: auto;
        background-color: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 30px;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
    }

    .navbar.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
        margin-left: 0;
    }

    .nav-item {
        margin: 5px 0;
        width: 100%;
    }

    .nav-link {
        padding: 12px 0;
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        padding-left: 20px;
    }

    .dropdown-menu.show {
        display: block;
    }

    .search-container {
        order: -1;
        width: 100%;
        margin: 0 0 20px 0;
    }
    
    .nav-buttons {
        margin: 20px 0 0;
        width: 100%;
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .mobile-menu-btn {
        display: block;
    }

    .header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

/* Social Sharing Styles */
.share-toggle {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 1px;
    z-index: 999;
    color: white;
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-size: larger;
    font-weight: bolder;
    background-color: #6b03b1;
    border-top-left-radius: 50px;
    border-bottom-left-radius: 30px;
    padding: 5px 0;
    cursor: pointer;
}
.share-toggle.active {
    display: block;
}
.social-share {
    position: fixed;
    bottom: 80px;
    right: 20px;
    display: none;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}
.social-share.active{
    display: flex;
}
.share-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.share-btn.facebook {
    background-color: #1877f2;
}

.share-btn.twitter {
    background-color: #1da1f2;
}

.share-btn.whatsapp {
    background-color: #25d366;
}

.share-btn.instagram {
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
}

.share-btn.linkedin {
    background-color: #0077b5;
}

.share-btn.pinterest {
    background-color: #e60023;
}

.share-btn.reddit {
    background-color: #ff5700;
}

.share-btn.telegram {
    background-color: #0088cc;
}

.share-btn.email {
    background-color: #777;
}

.share-btn.sms {
    background-color: #5bc236;
}

.share-btn.copy {
    background-color: var(--primary-color);
}

.share-btn.close {
    background-color: var(--dark-color);
}

.share-tooltip {
    position: absolute;
    right: 60px;
    background: white;
    color: black;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.share-btn:hover .share-tooltip {
    opacity: 1;
}

@media (max-width: 768px) {
    .social-share {
        bottom: 70px;
        right: 10px;
    }
    
    .share-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}


/* PWA-specific styles */
#installBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: var(--shadow);
    z-index: 1000;
    display: none;
}

#installBtn:hover {
    background-color: var(--primary-dark);
}

.offline-notification {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #333;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    z-index: 1000;
    display: none;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
    padding: 60px 20px;
    text-align: center;
    color: #fff;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.hero p {
    max-width: 70%;
    margin: auto;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.hero .cta-btn {
    background-color: #fff;
    color: var(--primary-color);
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;

    text-decoration: none;
    font-weight: 600;
}

.hero .cta-btn:hover {
    background-color: var(--primary-dark);
    color: #fff;
}
/* Ad container */
.ad-container {
    text-align: center;
    margin-top: 2px;
}
.ad-container img {
    max-width: 100%;
    height: auto;
    cursor: pointer;
}
.ad-space-728x90 {
    margin: 20px 0;
}
/* Featured Stores Section */
/* .features-stores {
    padding: 1.5rem;
}
.features-stores h2 {
    text-align: center;
    padding: 1.5rem;
    position: sticky;
    top: 0;
    background-color: white;
}
.stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.store-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.store-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.store-image {
    height: 200px;
    width: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin-top: 10px;
    border: 2px solid var(--primary-color);
}
.offer-image {
    width: 100%;
    height: auto;
}
.store-info {
    padding: 20px;
}
.store-info ul {
    margin: 0 0.5rem 0.5rem 1rem;
    font-size: small;
    text-align: left;
}
.store-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--dark-color);
    text-align: center;
}

.store-reward, .product-reward {
    display: inline-block;
    background-color: rgba(79, 70, 229, 0.1);
    color: var(--primary-color);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.visit-store {
    width: 100%;
    padding: 8px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: block;
    text-align: center;
}

.visit-store:hover {
    background-color: var(--primary-dark);
}
.visit-store+.visit-store {
    margin-top: 0.5rem;
} */

.features-stores {
    position: relative;
    width: 100%;
    /* max-width: 1200px; */
    padding: 1.5rem;
}

.features-stores h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.slider-wrapper {
    position: relative;
    overflow: hidden;
}

.stores-grid {
    /* display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0; */
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 1.5rem;

    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE 10+ */
}
.stores-grid::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}
.store-card {
    /* min-width: 280px;
    flex: 0 0 auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center; */
    width: 300px;
    min-height: 400px;
    flex: 0 0 auto;
    scroll-snap-align: start;
    margin: auto;
    border-radius: 10px;
    overflow: hidden;
    /* background: white; */
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}
.store-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.store-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.store-info {
    padding: 0 1rem 0.3rem;
}
.store-info ul {
    margin: 0 0.5rem 0.5rem 1rem;
    font-size: small;
    text-align: left;
}
.store-title {
    margin: 0 0 0.5rem;
    color: #232323;
}

.store-reward {
    display: inline-block;
    background: #ececfc;
    color: #d9534f;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 700;
}
.offer-details {
    /* display: none; */
    font-size: 14px;
    color: #555;
    margin-top: 6px;
}
.timer {
    /* display: none; */
    background: #e6f2ff;
    color: #0077cc;
    padding: 8px;
    font-size: 14px;
    border-radius: 6px;
    margin-top: 10px;
    text-align: center;
    font-weight: 600;
}
.timer::before {
    content: '⏳ ';
}
.visit-store {
    display: block;
    margin-top: 0.5rem;
    background: #ff9900;
    color: white;
    text-decoration: none;
    padding: 8px;
    border-radius: 4px;
    font-weight: 600;
}
.visit-store::before {
    content: '🛍️ ';
}
.visit-store + .visit-store {
    background: #ececec;
    color: #333;
    margin-bottom: 0.3rem;
}
.visit-store + .visit-store::before {
    content: '🔍 ';
}
.tc-note {
    font-size: 12px;
    color: #888;
    text-align: center;
    margin-top: 10px;
    text-decoration: none;
}
.tc-note::before {
    content: '📌 ';
}
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    cursor: pointer;
    padding: 15px;
    border-radius: 10%;
    height: 100px;
    font-size: larger;
    font-weight: 900;
    z-index: 1;
}

.slider-btn:disabled {
    display: none;
}

.slider-btn.prev { left: -10px; }
.slider-btn.next { right: -10px; }
@media (max-width: 576px) {
    /* .stores-grid {
        grid-template-columns: 1fr;
    } */
}


/* Reward Offers Section */
.reward-offers {
    padding: 40px 20px;
    background-color: #f4f4f9;
    text-align: center;
}

.reward-offers h2 {
    margin-bottom: 20px;
    padding: 1rem;
    position: sticky;
    top: 0;
    background-color: white;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.offer-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.offer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.offer-card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    /* margin-bottom: 5px; */
}

.offer-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.offer-card span {
    margin-bottom: 15px;
}

.offer-card .shop-now-btn {
    background-color: var(--primary-color);
    text-decoration: none;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: block;
}
.offer-card .shop-now-btn+.shop-now-btn {
    margin-top: 0.5rem;
}
.offer-card .shop-now-btn:hover {
    background-color: var(--primary-dark);
}
.more-offers {
    text-decoration: none;
    margin: 0 2rem;
    font-size: larger;
    font-weight: 700;
    display: block;
    text-align: end;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--footer-dark-color), #000);
    color: var(--footer-light-color);
    padding: 4rem 2rem 2rem;
    position: relative;
    overflow: hidden;
}

.footer-wave {
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" fill="%232d3436" opacity=".25"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" fill="%232d3436" opacity=".5"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%232d3436"/></svg>');
    background-size: cover;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.footer-logo {
    margin-bottom: 1.5rem;
    font-size: 2rem;
    font-weight: 700;
    /* color: var(--footer-light-color); */
    display: flex;
    align-items: center;
}

.footer-logo span {
    /* color: var(--footer-accent-color); */
    color: #30aa31;
}

.footer-logo i {
    margin-right: 10px;
    color: var(--footer-primary-color);
}

.footer-about p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    opacity: 0.8;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--footer-light-color);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--footer-primary-color);
    transform: translateY(-3px);
}

.footer-links h3, .footer-contact h3, .footer-newsletter h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after, .footer-contact h3::after, .footer-newsletter h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--footer-primary-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--footer-light-color);
    opacity: 0.8;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--footer-accent-color);
    padding-left: 5px;
}

.footer-links a i {
    margin-right: 8px;
    font-size: 0.8rem;
}

.footer-contact p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    opacity: 0.8;
    line-height: 1.6;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--footer-primary-color);
    min-width: 20px;
}

.footer-newsletter p {
    margin-bottom: 1.5rem;
    opacity: 0.8;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    margin-bottom: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 4px 0 0 4px;
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--footer-light-color);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form button {
    padding: 0 1.2rem;
    background: var(--footer-primary-color);
    color: var(--footer-light-color);
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--footer-accent-color);
}

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: 0;
}

.payment-methods {
    display: flex;
    gap: 0.8rem;
}

.payment-methods i {
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .hero p {
        max-width: 100%;
    }
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}