html,
body {
    overflow-x: hidden;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #050505;
    color: #f5f5f5;
    position: relative;
}

body.home-page {
    height: 100svh;
    overflow: hidden;
    background: #000;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("assets/Atmospherlogo-clean.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: min(88vw, 1200px);
    filter: saturate(1.08);
    opacity: 0.62;
    pointer-events: none;
    z-index: 0;
}

body.products-page::before {
    display: none;
}

body > * {
    position: relative;
    z-index: 1;
}

.admin-fab {
    position: fixed;
    left: 8px;
    bottom: 8px;
    z-index: 12;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.01);
    color: transparent;
    text-decoration: none;
    font-size: 1px;
    line-height: 1;
    border: 1px solid rgba(255, 255, 255, 0.02);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    opacity: 0.02;
}

.admin-lock-screen {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(5, 5, 5, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.admin-lock-screen.is-hidden {
    display: none;
}

.admin-lock-card {
    width: min(460px, 100%);
    padding: 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.splash-screen {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 46%, rgba(82, 146, 255, 0.12), rgba(0, 0, 0, 0) 24%), #050505;
    transition: opacity 500ms ease, visibility 500ms ease;
}

.splash-screen.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-logo {
    width: min(960px, 92vw);
    max-width: 100%;
    max-height: 82vh;
    object-fit: contain;
    filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.34));
}

.page-shell {
    opacity: 1;
    transform: none;
}

.home-page .page-shell {
    min-height: 100svh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    overflow: hidden;
    background: #000;
}

.home-page .site-header {
    background: rgba(0, 0, 0, 0.92);
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.home-page .hero,
.home-page .site-footer {
    background: #000;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 9;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 28px 24px 20px;
    background: rgba(5, 5, 5, 0.76);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.site-header-brand {
    color: #f5f5f5;
    text-decoration: none;
    font-size: clamp(18px, 1.5vw, 20px);
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    line-height: 1;
    text-shadow:
        0 0 10px rgba(183, 96, 255, 0.45),
        0 0 22px rgba(156, 77, 255, 0.28),
        0 0 36px rgba(116, 58, 255, 0.18);
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(28px, 7vw, 72px);
    width: 100%;
}

.site-nav a {
    color: rgba(245, 245, 245, 0.82);
    text-decoration: none;
    font-size: clamp(14px, 1.1vw, 15px);
    font-weight: 700;
    padding: 0 14px;
    letter-spacing: 0.02em;
    line-height: 1.25;
    text-shadow:
        0 0 8px rgba(170, 104, 255, 0.28),
        0 0 18px rgba(132, 72, 255, 0.16);
    transition: color 180ms ease, text-shadow 180ms ease;
}

.site-nav a:hover,
.site-header-brand:hover {
    color: #8be9ff;
}

.site-nav a:hover {
    text-shadow:
        0 0 10px rgba(194, 129, 255, 0.42),
        0 0 22px rgba(150, 91, 255, 0.24);
}

.site-language-btn {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-radius: 999px;
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 700;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.top-controls {
    position: fixed;
    top: 74px;
    right: 12px;
    z-index: 10;
    display: flex;
    gap: 8px;
    align-items: center;
}

.counter-cart {
    background: #dbeafe;
    padding: 8px 10px;
    border-radius: 8px;
    color: #1e3a8a;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

.counter-fav {
    background: rgba(255, 192, 216, 0.18);
    padding: 8px 10px;
    border-radius: 8px;
    color: #ffd2e3;
    font-weight: bold;
    border: 1px solid rgba(255, 192, 216, 0.2);
    cursor: pointer;
}

.cart-panel {
    display: none;
    position: fixed;
    top: 56px;
    right: 12px;
    width: min(360px, calc(100vw - 24px));
    max-height: min(70vh, 720px);
    overflow: auto;
    background: rgba(9, 10, 14, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 11;
}

.fav-panel {
    display: none;
    position: fixed;
    top: 56px;
    right: 12px;
    width: min(360px, calc(100vw - 24px));
    max-height: min(70vh, 720px);
    overflow: auto;
    background: rgba(18, 10, 18, 0.94);
    border: 1px solid rgba(255, 192, 216, 0.14);
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 11;
}

.cart-panel.open {
    display: block;
}

.fav-panel.open {
    display: block;
}

.cart-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.cart-panel-header h3 {
    margin: 0;
    font-size: 18px;
}

.cart-close {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-radius: 999px;
    padding: 8px 12px;
    cursor: pointer;
}

.cart-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-item {
    display: grid;
    grid-template-columns: 68px 1fr auto;
    gap: 12px;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px;
}

.cart-item img {
    width: 68px;
    height: 68px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 6px;
    box-sizing: border-box;
}

.cart-item-name {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.cart-item-price {
    margin-top: 4px;
    font-size: 12px;
    color: rgba(245, 245, 245, 0.68);
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-action-btn {
    border: none;
    border-radius: 999px;
    padding: 8px 10px;
    cursor: pointer;
    font-weight: 700;
    white-space: nowrap;
}

.cart-open-btn {
    background: #dbeafe;
    color: #1e3a8a;
}

.cart-remove-btn {
    background: #3a1016;
    color: #ffb3c1;
}

.cart-empty {
    margin: 0;
    color: rgba(245, 245, 245, 0.72);
    line-height: 1.5;
}

.cart-go-btn {
    width: 100%;
    margin-top: 14px;
    border: none;
    border-radius: 999px;
    padding: 12px 14px;
    cursor: pointer;
    font-weight: 800;
    background: #dbeafe;
    color: #1e3a8a;
}

.fav-remove-btn {
    background: #3a1016;
    color: #ffb3c1;
}

.hero {
    min-height: calc(100vh - 83px);
    padding: 12px 24px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 2% -8% auto;
    height: min(72vw, 560px);
    border-radius: 999px;
    background:
        radial-gradient(circle at 30% 50%, rgba(88, 160, 255, 0.32), transparent 42%),
        radial-gradient(circle at 70% 50%, rgba(222, 82, 255, 0.28), transparent 40%),
        radial-gradient(circle at 50% 60%, rgba(88, 160, 255, 0.08), transparent 58%);
    filter: blur(52px);
    opacity: 1;
    pointer-events: none;
}

.hero-brand {
    width: min(1100px, 100%);
    padding: 0;
    position: relative;
    z-index: 1;
}

.hero-logo {
    width: min(1240px, 96vw);
    max-height: calc(100vh - 180px);
    max-width: 100%;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    filter: drop-shadow(0 28px 46px rgba(0, 0, 0, 0.34));
    transform: scale(1.12);
    transform-origin: center;
}

@media (min-width: 721px) and (max-width: 1024px) {
    .home-page .site-header {
        gap: 16px;
        padding: 28px 28px 18px;
    }

    .home-page .site-nav {
        gap: clamp(32px, 6vw, 56px);
    }

    .home-page .hero {
        padding: 18px 28px 20px;
        align-items: center;
    }

    .home-page .hero::before {
        inset: 6% -10% auto;
        height: min(62vw, 520px);
        filter: blur(44px);
        opacity: 0.92;
    }

    .home-page .hero-brand {
        width: 100%;
        min-height: 50vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .home-page .hero-logo {
        width: auto;
        height: min(48vh, 420px);
        max-width: 92vw;
        max-height: none;
        transform: scale(1.18);
    }

    .home-page .site-footer {
        margin: 0 auto 14px;
        padding-top: 10px;
    }
}

@media (min-width: 1025px) {
    .home-page .hero {
        padding: 20px 32px 28px;
    }

    .home-page .hero::before {
        inset: 2% -6% auto;
        height: min(68vw, 620px);
    }

    .home-page .hero-brand {
        min-height: 58vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .home-page .hero-logo {
        width: auto;
        height: min(56vh, 560px);
        max-width: 88vw;
        max-height: none;
        transform: scale(1.1);
    }
}

.section-label {
    margin: 0 0 10px;
    color: rgba(139, 233, 255, 0.84);
    font-size: 12px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.products-section h2 {
    margin: 0;
    font-size: clamp(30px, 6vw, 62px);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.page-sections {
    padding: 0 24px 24px;
}

.products-section {
    width: min(1180px, 100%);
    margin: 0 auto 28px;
    padding: 28px;
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035)),
        radial-gradient(circle at top, rgba(139, 233, 255, 0.08), transparent 28%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.products-section h2 {
    font-size: clamp(22px, 4vw, 36px);
}

.section-heading {
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.products-page-section {
    margin-top: 10px;
}

.container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 26px;
    padding: 0;
}

.site-footer {
    width: min(420px, calc(100% - 32px));
    margin: 8px auto 28px;
    padding: 18px 24px 0;
    text-align: center;
    color: rgba(245, 245, 245, 0.5);
    font-size: 11px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    position: relative;
}

.home-page .site-footer {
    margin: 0 auto 18px;
}

.home-page .site-footer::before {
    content: none !important;
    display: none !important;
}

.home-page .hero::after {
    content: none;
}

.site-footer::before {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    margin: 0 auto 16px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.site-footer span {
    opacity: 0.7;
}

.site-footer strong {
    margin-left: 8px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-shadow: 0 0 16px rgba(163, 113, 255, 0.18);
}

.footer-admin-link {
    margin-left: 12px;
    color: rgba(139, 233, 255, 0.84);
    text-decoration: none;
    letter-spacing: 0.08em;
}

.content-page,
.admin-page {
    width: min(980px, calc(100% - 32px));
    margin: 24px auto 0;
}

.content-card,
.admin-card {
    margin-bottom: 20px;
    padding: 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.content-title,
.admin-section-title {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 42px);
}

.content-card-hero {
    background: linear-gradient(180deg, rgba(139, 233, 255, 0.08), rgba(255, 255, 255, 0.04));
}

.content-subtitle {
    margin: 0;
    color: rgba(245, 245, 245, 0.72);
    font-size: 16px;
    line-height: 1.7;
}

.content-body,
.admin-note {
    margin: 0;
    color: rgba(245, 245, 245, 0.76);
    font-size: 16px;
    line-height: 1.7;
    white-space: pre-line;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.admin-inline-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-language-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.admin-grid-price {
    align-items: center;
}

.admin-input,
.admin-textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    color: #f5f5f5;
    padding: 14px 16px;
    font: inherit;
}

.admin-upload-field {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(245, 245, 245, 0.78);
    padding: 0 16px;
    text-align: center;
    cursor: pointer;
}

.admin-upload-field input {
    display: none;
}

.admin-image-preview {
    margin: 0 0 14px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-image-preview img {
    width: 100%;
    max-height: 280px;
    object-fit: contain;
    display: block;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
}

.admin-textarea {
    resize: vertical;
    margin-bottom: 14px;
}

.admin-save-btn,
.managed-product-remove {
    border: none;
    border-radius: 999px;
    padding: 12px 18px;
    cursor: pointer;
    font-weight: 800;
}

.admin-save-btn {
    background: #dbeafe;
    color: #1e3a8a;
}

.managed-products {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.managed-product-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.managed-product-name {
    font-weight: 800;
}

.managed-product-meta,
.admin-empty,
.admin-status {
    color: rgba(245, 245, 245, 0.68);
}

.managed-product-remove {
    background: #3a1016;
    color: #ffb3c1;
}

.admin-status {
    margin: 8px 2px 0;
    min-height: 24px;
}

.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
    padding: 0;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 46px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
    cursor: pointer;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 58px rgba(0, 0, 0, 0.32);
    border-color: rgba(139, 233, 255, 0.18);
}

.card-link {
    display: block;
    width: 100%;
}

.card img {
    width: 100%;
    height: 320px;
    object-fit: contain;
    background:
        radial-gradient(circle at 50% 32%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04) 48%, rgba(255, 255, 255, 0.02) 72%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03));
    padding: 20px;
    box-sizing: border-box;
    display: block;
    filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.32)) contrast(1.12) saturate(1.08) brightness(1.03);
}

.card img.dji-mini-highlight {
    background:
        radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08) 52%, rgba(255, 255, 255, 0.02) 76%),
        linear-gradient(180deg, rgba(226, 232, 240, 0.26), rgba(148, 163, 184, 0.08));
}

@media (max-width: 720px) {
    body.home-page {
        height: 100svh;
        overflow: hidden;
        overscroll-behavior: none;
    }

    body::before {
        display: none;
    }

    .site-header {
        align-items: center;
        gap: 18px;
        padding: 24px 16px 22px;
        background: rgba(5, 5, 5, 0.88);
    }

    .site-nav {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: clamp(14px, 2.8vh, 22px);
    }

    .site-header-brand {
        font-size: 17px;
        letter-spacing: 0.2em;
    }

    .site-nav a {
        font-size: 15px;
        letter-spacing: 0;
    }

    .top-controls {
        top: 114px;
        right: 16px;
    }

    .hero {
        min-height: 0;
        padding: 16px 16px 24px;
        align-items: center;
    }

    .hero::before {
        inset: 8% -14% auto;
        height: 78vw;
        filter: blur(34px);
        opacity: 0.96;
    }

    .hero-brand,
    .products-section {
        padding: 20px 16px;
        border-radius: 20px;
    }

    .hero-brand {
        padding: 0;
        margin-top: 0;
        width: 100%;
        min-height: 46vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-logo {
        width: auto;
        height: min(46vh, 360px);
        max-width: 112vw;
        max-height: none;
        filter: drop-shadow(0 22px 40px rgba(0, 0, 0, 0.42));
        transform: scale(1.08);
    }

    .container {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
        gap: 18px;
    }

    .site-footer {
        width: calc(100% - 40px);
        margin: 0 auto 12px;
        padding: 8px 12px 0;
        font-size: 10px;
        letter-spacing: 0.2em;
    }

    .home-page .site-header,
    .home-page .hero,
    .home-page .site-footer,
    body.home-page,
    .home-page .page-shell {
        background: #000;
    }

    .home-page .site-header {
        border: none !important;
        box-shadow: none !important;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .home-page .site-footer::before {
        content: none !important;
        display: none !important;
    }

    .site-footer::before {
        margin-bottom: 14px;
    }

    .site-footer strong {
        display: block;
        margin: 8px 0 0;
        letter-spacing: 0.14em;
    }

    .products-section {
        padding: 22px 16px;
        border-radius: 24px;
    }

    .card {
        border-radius: 18px;
    }

    .card img {
        height: 250px;
        padding: 16px;
    }

    .content-page,
    .admin-page {
        width: calc(100% - 32px);
    }

    .content-card,
    .admin-card {
        padding: 20px 16px;
        border-radius: 20px;
    }

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

    .admin-language-grid {
        grid-template-columns: 1fr;
    }

}
