@import url('https://fonts.googleapis.com/css2?family=Montserrat+Subrayada&family=Montserrat:ital,wght@0,800;0,900;1,700;1,800;1,900&family=Poppins:wght@300;400;600&display=swap');

:root {
    --bg: #121212;
    --bg-soft: #1d1d1d;
    --panel: rgba(255, 255, 255, 0.05);
    --panel-strong: rgba(255, 255, 255, 0.08);
    --text: #ffffff;
    --muted: rgba(255, 255, 255, 0.72);
    --border: rgba(255, 255, 255, 0.16);
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: var(--text);
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 18% 22%, rgba(58, 89, 173, 0.24), transparent 0 20%),
        radial-gradient(circle at 82% 16%, rgba(111, 39, 133, 0.2), transparent 0 18%),
        radial-gradient(circle at 72% 62%, rgba(31, 110, 122, 0.16), transparent 0 20%),
        radial-gradient(circle at 28% 72%, rgba(255, 177, 92, 0.08), transparent 0 16%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.045) 0%, transparent 16%),
        linear-gradient(180deg, #0c1020 0%, #12111e 32%, #0f0d17 64%, #090b12 100%);
    background-attachment: fixed;
    overflow-x: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

body::before {
    opacity: 0.65;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.9) 0 1px, transparent 1.5px),
        radial-gradient(circle at 24% 64%, rgba(255, 255, 255, 0.7) 0 1px, transparent 1.5px),
        radial-gradient(circle at 36% 28%, rgba(255, 255, 255, 0.8) 0 1.2px, transparent 1.7px),
        radial-gradient(circle at 48% 76%, rgba(255, 255, 255, 0.78) 0 1px, transparent 1.6px),
        radial-gradient(circle at 63% 20%, rgba(255, 255, 255, 0.75) 0 1px, transparent 1.5px),
        radial-gradient(circle at 78% 54%, rgba(255, 255, 255, 0.72) 0 1.2px, transparent 1.7px),
        radial-gradient(circle at 88% 24%, rgba(255, 255, 255, 0.82) 0 1px, transparent 1.5px),
        radial-gradient(circle at 92% 78%, rgba(255, 255, 255, 0.76) 0 1px, transparent 1.5px);
}

body::after {
    background:
        radial-gradient(circle at center, transparent 0 58%, rgba(255, 255, 255, 0.03) 58.3%, transparent 58.8%),
        radial-gradient(circle at center, transparent 0 72%, rgba(255, 255, 255, 0.025) 72.3%, transparent 72.8%);
    opacity: 0.4;
}

a {
    text-decoration: none;
}

header {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 84px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 100px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(24, 24, 24, 0.9);
    backdrop-filter: blur(12px);
}

.logo {
    border: 2px solid white;
    padding: 14px 20px;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(255, 255, 255, 0.08);
}

nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 15px;
    flex-wrap: wrap;
}

nav ul li a {
    border: 2px solid white;
    padding: 8px 20px;
    border-radius: 999px;
    transition: 0.3s;
    font-size: 0.9rem;
}

nav ul li a:hover,
nav ul li a.active {
    background: white;
    color: black;
}

.signup {
    background: white;
    color: black;
}

.auth-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.07);
}

.auth-avatar {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #9af17c, #72c9ff);
    color: #111;
    font-weight: 700;
}

.auth-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.auth-label {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.62);
}

.auth-name {
    font-size: 0.92rem;
    color: white;
    font-weight: 600;
}

.logout-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    padding: 8px 16px;
    color: white;
    cursor: pointer;
    transition: 0.25s ease;
}

.logout-btn:hover {
    background: white;
    color: black;
}

main {
    flex: 1;
    padding: 48px 120px 70px;
}

.home-section {
    position: relative;
    scroll-margin-top: 110px;
}

.home-main {
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 56px;
    padding: 20px 0 50px;
}

.contentmid {
    max-width: 640px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
}

.eyebrow::before {
    content: "";
    width: 34px;
    height: 1px;
    background: rgba(255, 255, 255, 0.7);
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1.1;
    letter-spacing: 4px;
    margin-bottom: 22px;
}

.contentmid p {
    line-height: 1.9;
    color: var(--muted);
    font-size: 1.05rem;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 38px;
}

.btn {
    padding: 15px 36px;
    background: white;
    color: black;
    border: 2px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    display: inline-block;
    text-align: center;
}

.btn:hover {
    background: transparent;
    color: white;
    border-color: white;
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.18);
}

.btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: black;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(130px, 1fr));
    gap: 16px;
    margin-top: 40px;
}

.stat-card,
.info-card,
.about-card,
.product-card,
.cart-items,
.cart-summary,
.signup-container {
    background: linear-gradient(180deg, var(--panel-strong), var(--panel));
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.stat-card {
    padding: 18px 20px;
    border-radius: 18px;
}

.stat-card strong {
    display: block;
    font-size: 1.6rem;
    margin-bottom: 6px;
}

.stat-card span {
    color: var(--muted);
    font-size: 0.92rem;
}

.contentright {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.planet-frame {
    position: relative;
    display: grid;
    place-items: center;
    width: min(470px, 100%);
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, rgba(22, 26, 44, 0.96) 0 50%, rgba(22, 26, 44, 0.64) 58%, rgba(12, 16, 28, 0) 73%),
        radial-gradient(circle at 65% 32%, rgba(67, 143, 255, 0.22), transparent 0 24%),
        radial-gradient(circle at 35% 70%, rgba(115, 74, 210, 0.18), transparent 0 28%);
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
}

.planet-frame::before {
    content: "";
    position: absolute;
    inset: 11%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    box-shadow: 0 0 0 26px rgba(255, 255, 255, 0.02);
}

.planet-frame::after {
    content: "";
    position: absolute;
    width: 118%;
    height: 62%;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    transform: rotate(-18deg);
    opacity: 0.8;
}

.merc {
    position: relative;
    z-index: 1;
    width: 60%;
    border-radius: 50%;
    animation: float 4.5s ease-in-out infinite;
    filter: saturate(1.06) contrast(1.03);
    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.38),
        0 0 35px rgba(80, 153, 255, 0.14);
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-18px); }
    100% { transform: translateY(0); }
}

.info-section {
    margin-top: 50px;
    padding: 36px 0 0;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 28px;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.page-desc {
    color: var(--muted);
    margin-bottom: 16px;
}

.offer-grid,
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.info-card,
.about-card {
    padding: 26px;
    border-radius: 22px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.info-card:hover,
.about-card:hover,
.product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.35);
}

.info-badge {
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.82rem;
}

.info-card h3,
.about-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    letter-spacing: 0.6px;
}

.info-card p,
.about-card p {
    color: var(--muted);
    line-height: 1.8;
}

.text-link {
    display: inline-block;
    margin-top: 18px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.55);
    padding-bottom: 3px;
}

.filters {
    margin-bottom: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: 2px solid white;
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: white;
    color: black;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    padding: 22px;
    border-radius: 20px;
    text-align: center;
    transition: 0.3s;
}

.product-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    margin: 0 auto 20px;
    border-radius: 50%;
}

.product-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.product-card p {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 15px;
    min-height: 40px;
}

.product-card .price {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    display: block;
}

.product-detail {
    display: flex;
    gap: 50px;
    align-items: center;
    min-height: calc(100vh - 240px);
}

.product-detail-img {
    flex: 1;
    text-align: center;
}

.product-detail-img img {
    width: min(400px, 100%);
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.35);
}

.product-detail-info {
    flex: 1;
}

.product-detail-info h2 {
    font-size: 50px;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.product-detail-info .type {
    display: inline-block;
    border: 1px solid white;
    padding: 5px 15px;
    border-radius: 20px;
    margin-bottom: 20px;
    font-size: 14px;
}

.product-detail-info p {
    line-height: 28px;
    color: var(--muted);
    margin-bottom: 30px;
}

.product-detail-info .price {
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 30px;
    display: block;
}

.cart-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.cart-items,
.cart-summary {
    padding: 30px;
    border-radius: 20px;
}

.checkout-form {
    margin-top: 28px;
}

.checkout-form label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.checkout-form input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    background: rgba(7, 10, 18, 0.72);
    color: white;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.checkout-form input:focus {
    border-color: rgba(122, 199, 255, 0.75);
    box-shadow: 0 0 0 3px rgba(77, 163, 255, 0.15);
}

.checkout-note {
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.checkout-status {
    display: none;
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(124, 223, 167, 0.28);
    background: rgba(58, 149, 101, 0.14);
    color: #d6ffe3;
    line-height: 1.7;
}

.checkout-status.is-visible {
    display: block;
}

.auth-toggle {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.auth-tab {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 18px;
    color: white;
    cursor: pointer;
    transition: 0.25s ease;
}

.auth-tab.active {
    background: white;
    color: black;
}

.auth-status {
    display: none;
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(115, 195, 255, 0.22);
    background: rgba(70, 130, 200, 0.12);
    color: #ddf0ff;
    line-height: 1.7;
}

.auth-status.is-visible {
    display: block;
}

.auth-page-desc {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-item-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: var(--muted);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 24px;
    font-weight: bold;
}

.remove-btn {
    background: transparent;
    border: 1px solid #ff7070;
    color: #ff8a8a;
    padding: 7px 15px;
    border-radius: 15px;
    cursor: pointer;
    transition: 0.3s;
}

.remove-btn:hover {
    background: #ff5c5c;
    color: white;
}

.signup-container {
    padding: 40px;
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}

footer {
    text-align: center;
    padding: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(24, 24, 24, 0.85);
}

@media (max-width: 1100px) {
    header,
    main {
        padding-left: 50px;
        padding-right: 50px;
    }

    .home-main,
    .product-detail {
        flex-direction: column;
        text-align: center;
        min-height: auto;
    }

    .hero-stats,
    .offer-grid,
    .about-grid {
        grid-template-columns: 1fr;
    }

    .cart-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    header {
        padding: 18px 20px;
        align-items: flex-start;
        gap: 18px;
        flex-direction: column;
    }

    main {
        padding: 30px 20px 60px;
    }

    .hero-title,
    .product-detail-info h2 {
        font-size: 2.4rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .planet-frame {
        width: min(360px, 100%);
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }
}
