/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1f2937;
    background-color: #ffffff;
}

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

/* Typography */
.highlight {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn--primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.btn--outline {
    background: transparent;
    border: 2px solid #e5e7eb;
    color: #374151;
}

.btn--outline:hover {
    border-color: #2563eb;
    color: #2563eb;
    transform: translateY(-1px);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav__brand .nav__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #1f2937;
    font-size: 24px;
    font-weight: 700;
}

.nav__logo i {
    color: #f97316;
    width: 28px;
    height: 28px;
}

.nav__menu {
    display: flex;
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav__link {
    text-decoration: none;
    color: #6b7280;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav__link:hover,
.nav__link.active {
    color: #2563eb;
}

.nav__link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 1px;
}

.nav__search {
    display: flex;
    align-items: center;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 12px;
    gap: 8px;
}

.search__input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    width: 200px;
}

.search__button {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 4px;
    color: #6b7280;
}

.nav__toggle {
    display: none;
    cursor: pointer;
    color: #374151;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    overflow: hidden;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero__content {
    z-index: 2;
}

.hero__title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.hero__description {
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero__stats {
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat__number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 0.25rem;
}

.stat__label {
    font-size: 0.875rem;
    color: #6b7280;
}

.hero__image {
    position: relative;
    z-index: 1;
}

.hero__img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section__header {
    text-align: center;
    margin-bottom: 3rem;
}

.section__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.section__subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* Categories */
.categories {
    background: #f9fafb;
}

.categories__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.category__card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    cursor: pointer;
}

.category__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #2563eb;
}

.category__icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.category__icon i {
    color: white;
    width: 32px;
    height: 32px;
}

.category__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.category__count {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Deals */
.deals__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.deal__card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
}

.deal__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.deal__badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
    z-index: 2;
}

.deal__badge:not(.hot):not(.new):not(.limited) {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.deal__badge.hot {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.deal__badge.new {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.deal__badge.limited {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.deal__store {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px 0;
    margin-bottom: 16px;
}

.store__logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
}

.store__name {
    font-weight: 600;
    color: #1f2937;
}

.deal__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
    padding: 0 24px;
    line-height: 1.4;
}

.deal__description {
    color: #6b7280;
    margin-bottom: 16px;
    padding: 0 24px;
    font-size: 0.875rem;
    line-height: 1.5;
}

.deal__savings {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-block;
    margin: 0 24px 16px;
}

.deal__timer {
    padding: 0 24px;
    margin-bottom: 20px;
}

.timer__label {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.timer__countdown {
    display: flex;
    gap: 8px;
    font-weight: 600;
    color: #ef4444;
}

.timer__countdown span {
    background: #fef2f2;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.875rem;
}

.deal__actions {
    padding: 0 24px 24px;
    display: flex;
    gap: 12px;
}

.deal__btn {
    flex: 1;
    padding: 12px 16px;
    font-size: 0.875rem;
}

.deals__more {
    text-align: center;
    margin-top: 3rem;
}

/* Newsletter */
.newsletter {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: white;
}

.newsletter__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.newsletter__title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.newsletter__description {
    color: #d1d5db;
    font-size: 1.125rem;
}

.newsletter__form {
    display: flex;
    gap: 12px;
    min-width: 400px;
}

.newsletter__input {
    flex: 1;
    padding: 16px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
}

.newsletter__btn {
    padding: 16px 32px;
    white-space: nowrap;
}

/* Footer */
.footer {
    background: #1f2937;
    color: #d1d5db;
    padding: 60px 0 30px;
}

.footer__content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer__brand .footer__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer__logo i {
    color: #f97316;
    width: 28px;
    height: 28px;
}

.footer__description {
    margin-bottom: 2rem;
    line-height: 1.6;
}

.footer__contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact__item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.875rem;
}

.contact__item i {
    width: 16px;
    height: 16px;
    color: #f97316;
}

.footer__title {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer__links a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__links a:hover {
    color: #2563eb;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
}

.footer__social {
    display: flex;
    gap: 12px;
}

.social__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #374151;
    border-radius: 8px;
    color: #d1d5db;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social__link:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal__content {
    background-color: white;
    margin: 15% auto;
    padding: 2rem;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal__close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 24px;
    font-weight: bold;
    color: #6b7280;
    cursor: pointer;
}

.modal__close:hover {
    color: #1f2937;
}

.modal__title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.modal__code {
    background: #f0f9ff;
    border: 2px dashed #2563eb;
    padding: 1rem;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 1.25rem;
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 1.5rem;
}

.modal__instruction {
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav__menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    }

    .nav__menu.active {
        left: 0;
    }

    .nav__list {
        flex-direction: column;
        padding: 2rem 0;
    }

    .nav__search {
        display: none;
    }

    .nav__toggle {
        display: block;
    }

    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__buttons {
        justify-content: center;
    }

    .hero__stats {
        justify-content: center;
    }

    .newsletter__content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .newsletter__form {
        min-width: auto;
        width: 100%;
    }

    .footer__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

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

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

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero__stats {
        flex-direction: column;
        gap: 1rem;
    }

    .section {
        padding: 60px 0;
    }

    .section__title {
        font-size: 2rem;
    }

    .newsletter__form {
        flex-direction: column;
    }
}