* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Helvetica, Arial, sans-serif;

    background: #fffafa;
    color: #202020;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
select {
    font: inherit;
}

.container {
    width: min(1195px, calc(100% - 40px));
    margin: auto;
}


/* ================= HEADER ================= */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(15px);

    border-bottom: 1px solid #eeeeee;
}

.nav {
    height: 86px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo span,
.footer-logo span {
    color: #ff3f78;
}

.nav-links {
    display: flex;
    gap: 38px;
}

.nav-links a {
    font-weight: 650;
    transition: 0.2s;
}

.nav-links a:hover {
    color: #ff3f78;
}

.menu-btn {
    display: none;

    border: 0;
    background: transparent;

    font-size: 27px;
    cursor: pointer;
}


/* ================= MOBILE MENU ================= */

.mobile-menu {
    display: none;

    position: fixed;
    top: 86px;
    left: 0;
    right: 0;

    background: white;

    z-index: 999;

    padding: 20px;

    border-bottom: 1px solid #eee;
}

.mobile-menu.show {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-menu a {
    font-weight: 700;
}


/* ================= HERO ================= */

.hero {
    background:
        radial-gradient(circle at 80% 25%, #ffe6ef 0%, transparent 32%),
        radial-gradient(circle at 10% 90%, #fff0dd 0%, transparent 35%);

    padding: 90px 0 100px;
}

.hero-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    align-items: center;

    gap: 70px;
}

.small-badge {
    display: inline-block;

    padding: 8px 15px;

    border: 1px solid #f0dfe5;

    border-radius: 30px;

    background: rgba(255, 255, 255, 0.8);

    font-size: 14px;
    font-weight: 700;

    margin-bottom: 22px;
}

.hero h1 {
    font-size: clamp(65px, 8vw, 105px);

    line-height: 0.95;

    letter-spacing: -6px;

    margin-bottom: 30px;
}

.hero h1 span {
    color: #ff3f78;
}

.hero-content p {
    max-width: 600px;

    font-size: 20px;

    color: #666;

    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 14px;

    flex-wrap: wrap;
}

.btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 56px;

    padding: 0 23px;

    border-radius: 14px;

    font-weight: 750;

    border: 1px solid transparent;

    cursor: pointer;

    transition: 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn.primary {
    background: #ff3f78;

    color: white;

    box-shadow: 0 10px 25px rgba(255, 63, 120, 0.22);
}

.btn.secondary {
    background: white;

    border-color: #e6e6e6;
}


/* ================= HERO VISUAL ================= */

.hero-visual {
    min-height: 430px;

    border-radius: 35px;

    background:
        linear-gradient(
            135deg,
            #ffe0eb,
            #fff0dc
        );

    position: relative;

    display: flex;

    align-items: center;
    justify-content: center;
}

.hero-circle {
    width: 225px;
    height: 225px;

    background: white;

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 75px;

    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.08);
}

.rating-badge,
.trending-badge {
    position: absolute;

    background: white;

    padding: 14px 19px;

    border-radius: 16px;

    font-weight: 700;

    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

.rating-badge {
    top: 60px;
    left: 35px;
}

.trending-badge {
    bottom: 60px;
    right: 35px;
}


/* ================= SEARCH ================= */

.search-section {
    margin-top: -35px;

    position: relative;
    z-index: 10;
}

.search-box {
    background: white;

    height: 65px;

    border: 1px solid #e6e0e0;

    border-radius: 18px;

    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.06);

    display: flex;

    align-items: center;

    padding: 0 22px;
}

.search-icon {
    font-size: 22px;
    margin-right: 14px;
}

.search-box input {
    border: 0;
    outline: 0;

    width: 100%;

    font-size: 17px;

    background: transparent;
}


/* ================= CATEGORIES ================= */

.categories-section {
    padding: 90px 0 40px;
}

.section-label {
    color: #ff3f78;

    font-size: 13px;

    font-weight: 850;

    letter-spacing: 2px;

    margin-bottom: 8px;
}

.categories-section h2,
.products-section h2,
.why-section h2,
.about-section h2,
.admin-section h2 {
    font-size: 42px;

    letter-spacing: -1.5px;

    margin-bottom: 25px;
}

.category-buttons {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;
}

.category-btn {
    border: 1px solid #e7e2e2;

    background: white;

    border-radius: 50px;

    padding: 11px 18px;

    cursor: pointer;

    font-weight: 650;

    transition: 0.2s;
}

.category-btn:hover,
.category-btn.active {
    background: #ff3f78;

    color: white;

    border-color: #ff3f78;
}


/* ================= PRODUCTS ================= */

.products-section {
    padding: 50px 0 100px;
}

.products-heading {
    display: flex;

    justify-content: space-between;

    align-items: flex-end;

    margin-bottom: 30px;
}

.product-count {
    color: #777;

    font-weight: 650;
}

.products-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 24px;
}


/* ================= PRODUCT CARD ================= */

.product-card {
    background: white;

    border: 1px solid #eee7e7;

    border-radius: 22px;

    overflow: hidden;

    transition: 0.25s;

    display: flex;

    flex-direction: column;
}

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

    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
}

.product-image {
    height: 280px;

    background: linear-gradient(
        135deg,
        #fff0f5,
        #fff5e9
    );

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    padding: 15px;
}

.image-placeholder {
    font-size: 70px;
}

.product-content {
    padding: 22px;

    display: flex;

    flex-direction: column;

    flex: 1;
}

.product-category {
    color: #ff3f78;

    font-size: 12px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 1px;

    margin-bottom: 8px;
}

.product-title {
    font-size: 19px;

    line-height: 1.3;

    margin-bottom: 12px;
}

.product-meta {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 18px;
}

.product-price {
    font-size: 21px;

    font-weight: 850;
}

.product-rating {
    background: #fff5d9;

    color: #9b6900;

    padding: 5px 9px;

    border-radius: 8px;

    font-size: 13px;

    font-weight: 750;
}

.product-btn {
    margin-top: auto;

    width: 100%;

    min-height: 48px;

    border: 0;

    border-radius: 12px;

    background: #202020;

    color: white;

    font-weight: 750;

    cursor: pointer;

    transition: 0.2s;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    text-decoration: none;

    box-sizing: border-box;

    text-align: center;
}

.product-btn:hover {
    background: #ff3f78;
    color: white;
}


/* ================= LOADING & ERROR STATES ================= */

.products-loading,
.products-error {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.loading-spinner {
    width: 44px;
    height: 44px;
    margin: 0 auto 16px;
    border: 3.5px solid #ffe0eb;
    border-top: 3.5px solid #ff3f78;
    border-radius: 50%;
    animation: kfSpin 0.8s linear infinite;
}

@keyframes kfSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.products-loading p {
    font-size: 16px;
    font-weight: 600;
    color: #888;
}

.products-error {
    background: #fff5f8;
    border: 1px solid #ffd8e5;
    border-radius: 18px;
    max-width: 500px;
    margin: 20px auto;
}

.error-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.products-error h3 {
    color: #222;
    font-size: 20px;
    margin-bottom: 6px;
}

.products-error p {
    margin-bottom: 18px;
    color: #666;
}

.retry-btn {
    min-height: 44px;
    padding: 0 20px;
    font-size: 14px;
}


/* ================= NO PRODUCTS ================= */

.no-products {
    display: none;

    text-align: center;

    padding: 70px 20px;

    color: #777;
}

.no-products-icon {
    font-size: 50px;

    margin-bottom: 15px;
}

.no-products h3 {
    color: #222;

    font-size: 23px;

    margin-bottom: 5px;
}


/* ================= WHY ================= */

.why-section {
    padding: 90px 0;

    background: #fff1f5;
}

.why-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

.why-card {
    background: white;

    border-radius: 20px;

    padding: 30px;

    border: 1px solid #f2e3e8;
}

.why-icon {
    font-size: 32px;

    margin-bottom: 15px;
}

.why-card h3 {
    font-size: 21px;

    margin-bottom: 8px;
}

.why-card p {
    color: #777;
}


/* ================= ABOUT ================= */

.about-section {
    padding: 100px 0;
}

.about-box {
    max-width: 850px;
}

.about-box p {
    font-size: 18px;

    color: #666;

    margin-bottom: 18px;
}

.affiliate-note {
    background: #fff5f8;

    border-left: 4px solid #ff3f78;

    padding: 18px 20px;

    border-radius: 10px;
}


/* ================= ADMIN ================= */

.admin-section {
    padding: 90px 0;

    background: #faf7f8;
}

.admin-description {
    color: #777;

    margin-bottom: 25px;
}

.admin-box {
    max-width: 650px;

    background: white;

    border: 1px solid #eee;

    border-radius: 22px;

    padding: 30px;

    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.04);
}

.admin-box label {
    display: block;

    font-weight: 700;

    margin: 17px 0 7px;
}

.admin-box label:first-child {
    margin-top: 0;
}

.admin-box input,
.admin-box select {
    width: 100%;

    height: 50px;

    border: 1px solid #ddd;

    border-radius: 10px;

    padding: 0 14px;

    outline: none;

    background: white;
}

.admin-box input:focus,
.admin-box select:focus {
    border-color: #ff3f78;
}

.admin-add-btn {
    width: 100%;

    margin-top: 25px;
}

.clear-btn {
    width: 100%;

    margin-top: 12px;

    border: 0;

    background: transparent;

    color: #999;

    cursor: pointer;

    padding: 10px;
}


/* ================= FOOTER ================= */

.footer {
    background: #181818;

    color: white;

    padding-top: 55px;
}

.footer-content {
    display: flex;

    justify-content: space-between;

    gap: 30px;
}

.footer-logo {
    font-size: 24px;

    font-weight: 850;

    margin-bottom: 8px;
}

.footer-content p {
    color: #aaa;
}

.footer-links {
    display: flex;

    gap: 25px;

    color: #bbb;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;

    color: #777;

    font-size: 13px;

    border-top: 1px solid #292929;

    margin-top: 45px;

    padding: 22px;
}


/* ================= RESPONSIVE ================= */

@media (max-width: 900px) {

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

    .hero {
        padding-top: 60px;
    }

    .hero-visual {
        min-height: 350px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

}


@media (max-width: 650px) {

    .container {
        width: min(100% - 28px, 1195px);
    }

    .nav {
        height: 70px;
    }

    .nav-links {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    .mobile-menu {
        top: 70px;
    }

    .hero {
        padding: 55px 0 80px;
    }

    .hero h1 {
        font-size: 65px;

        letter-spacing: -4px;
    }

    .hero-content p {
        font-size: 17px;
    }

    .hero-visual {
        min-height: 300px;
    }

    .hero-circle {
        width: 170px;
        height: 170px;

        font-size: 55px;
    }

    .rating-badge {
        top: 30px;
        left: 20px;
    }

    .trending-badge {
        bottom: 30px;
        right: 20px;
    }

    .categories-section h2,
    .products-section h2,
    .why-section h2,
    .about-section h2,
    .admin-section h2 {
        font-size: 34px;
    }

    .products-heading {
        align-items: flex-start;

        flex-direction: column;

        gap: 8px;
    }

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

    .product-image {
        height: 300px;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-links {
        flex-wrap: wrap;
    }

}