/* =========================================================
   EcommerceShop
   GLOBAL DESIGN SYSTEM
   ========================================================= */

:root {
    --primary: #10b981;
    --primary-dark: #059669;
    --primary-light: #34d399;

    --bg: #050807;
    --surface: #0a0f0d;
    --surface-2: #0f1714;
    --surface-3: #16201c;

    --text: #ffffff;
    --text-muted: #94a3b8;
    --text-soft: #64748b;

    --border: rgba(255, 255, 255, 0.08);
    --border-primary: rgba(16, 185, 129, 0.25);

    --danger: #ef4444;
    --warning: #f59e0b;

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --shadow-sm:
        0 4px 15px rgba(0, 0, 0, 0.20);

    --shadow-md:
        0 10px 35px rgba(0, 0, 0, 0.30);

    --shadow-lg:
        0 20px 60px rgba(0, 0, 0, 0.40);

    --transition-fast: 0.2s ease;
    --transition: 0.3s ease;
    --transition-slow: 0.5s ease;
}


/* =========================================================
   RESET
   ========================================================= */

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


html {
    scroll-behavior: smooth;

    width: 100%;

    min-height: 100%;
}


body {
    margin: 0;

    width: 100%;

    min-height: 100vh;
    min-height: 100svh;

    background:
        radial-gradient(
            circle at 50% -20%,
            rgba(16, 185, 129, 0.10),
            transparent 35%
        ),
        var(--bg);

    color: var(--text);

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    -webkit-font-smoothing: antialiased;

    text-rendering: optimizeLegibility;

    overflow-x: hidden;
}


/* =========================================================
   SELECTION
   ========================================================= */

::selection {
    background: rgba(16, 185, 129, 0.35);
    color: white;
}


/* =========================================================
   SCROLLBAR
   ========================================================= */

::-webkit-scrollbar {
    width: 7px;
}


::-webkit-scrollbar-track {
    background: #050807;
}


::-webkit-scrollbar-thumb {
    background: rgba(16, 185, 129, 0.35);
    border-radius: 999px;
}


::-webkit-scrollbar-thumb:hover {
    background: rgba(16, 185, 129, 0.60);
}


/* =========================================================
   BUTTON
   ========================================================= */

button {
    font-family: inherit;
}


button,
a,
input {
    -webkit-tap-highlight-color: transparent;
}


button {
    transition:
        transform var(--transition-fast),
        background var(--transition),
        box-shadow var(--transition),
        opacity var(--transition);
}


button:active {
    transform: scale(0.97);
}


button:disabled {
    cursor: not-allowed;
}


/* =========================================================
   INPUT
   ========================================================= */

input,
textarea,
select {
    font-family: inherit;
}


input::placeholder,
textarea::placeholder {
    color: #64748b;
}


input:focus,
textarea:focus,
select:focus {
    outline: none;
}


/* =========================================================
   LINKS
========================================= */

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


/* =========================================================
   GLASS
========================================= */

.glass {
    background:
        rgba(255, 255, 255, 0.035);

    border:
        1px solid var(--border);

    backdrop-filter:
        blur(20px);

    -webkit-backdrop-filter:
        blur(20px);
}


.glass-primary {
    background:
        rgba(16, 185, 129, 0.06);

    border:
        1px solid var(--border-primary);

    backdrop-filter:
        blur(20px);

    -webkit-backdrop-filter:
        blur(20px);
}


/* =========================================================
   GLOW
========================================= */

.glow {
    box-shadow:
        0 0 35px rgba(16, 185, 129, 0.15);
}


.glow-strong {
    box-shadow:
        0 0 50px rgba(16, 185, 129, 0.25);
}


/* =========================================================
   PRIMARY BUTTON
========================================= */

.btn-primary {
    position: relative;

    display: inline-flex;

    align-items: center;
    justify-content: center;
    gap: 8px;

    border: 0;

    border-radius: var(--radius-md);

    padding: 13px 20px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );

    color: #03140b;

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

    cursor: pointer;

    box-shadow:
        0 8px 25px rgba(16, 185, 129, 0.18);

    overflow: hidden;
}


.btn-primary::before {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            110deg,
            transparent 30%,
            rgba(255,255,255,.25),
            transparent 70%
        );

    transform:
        translateX(-120%);

    transition:
        transform .6s ease;
}


.btn-primary:hover::before {
    transform:
        translateX(120%);
}


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

    box-shadow:
        0 12px 35px rgba(16, 185, 129, 0.28);
}


/* =========================================================
   SECONDARY BUTTON
========================================= */

.btn-secondary {
    display: inline-flex;

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

    gap: 8px;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-md);

    padding: 13px 20px;

    background:
        rgba(255,255,255,.04);

    color: white;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;
}


.btn-secondary:hover {
    background:
        rgba(255,255,255,.08);

    border-color:
        rgba(255,255,255,.15);

    transform:
        translateY(-2px);
}


/* =========================================================
   BADGE
========================================= */

.badge {
    display: inline-flex;

    align-items: center;
    gap: 6px;

    padding: 6px 10px;

    border-radius: 999px;

    background:
        rgba(16,185,129,.10);

    border:
        1px solid rgba(16,185,129,.18);

    color:
        var(--primary-light);

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

    text-transform: uppercase;

    letter-spacing: .08em;
}


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

.card {
    background:
        rgba(255,255,255,.035);

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-lg);

    box-shadow:
        var(--shadow-md);

    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}


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

    border-color:
        rgba(16,185,129,.18);

    box-shadow:
        0 20px 50px rgba(0,0,0,.35);
}


/* =========================================================
   ICON BUTTON
========================================= */

.icon-button {
    width: 42px;
    height: 42px;

    display: inline-flex;

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

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-md);

    background:
        rgba(255,255,255,.04);

    color:
        var(--text-muted);

    cursor: pointer;
}


.icon-button:hover {
    color: white;

    background:
        rgba(16,185,129,.10);

    border-color:
        rgba(16,185,129,.20);

    transform:
        translateY(-2px);
}


/* =========================================================
   PAGE TRANSITION
========================================= */

.page-enter {
    animation:
        pageEnter .45s ease both;
}


@keyframes pageEnter {

    from {
        opacity: 0;
        transform:
            translateY(15px);
    }

    to {
        opacity: 1;
        transform:
            translateY(0);
    }

}


/* =========================================================
   FADE UP
========================================= */

.fade-up {
    animation:
        fadeUp .6s ease both;
}


@keyframes fadeUp {

    from {
        opacity: 0;
        transform:
            translateY(25px);
    }

    to {
        opacity: 1;
        transform:
            translateY(0);
    }

}


/* =========================================================
   FLOAT
========================================= */

.float {
    animation:
        floatAnimation 4s ease-in-out infinite;
}


@keyframes floatAnimation {

    0%,
    100% {
        transform:
            translateY(0);
    }

    50% {
        transform:
            translateY(-8px);
    }

}


/* =========================================================
   PULSE
========================================= */

.pulse {
    animation:
        pulseAnimation 2s ease-in-out infinite;
}


@keyframes pulseAnimation {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .55;
    }

}


/* =========================================================
   SPINNER
========================================= */

.spinner {
    width: 22px;
    height: 22px;

    border-radius: 50%;

    border:
        2px solid rgba(16,185,129,.18);

    border-top-color:
        var(--primary);

    animation:
        spin .7s linear infinite;
}


@keyframes spin {

    to {
        transform:
            rotate(360deg);
    }

}


/* =========================================================
   SKELETON
========================================= */

.skeleton {
    position: relative;

    overflow: hidden;

    background:
        rgba(255,255,255,.06);

    border-radius:
        10px;
}


.skeleton::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.07),
            transparent
        );

    transform:
        translateX(-100%);

    animation:
        skeletonLoading 1.5s infinite;
}


@keyframes skeletonLoading {

    to {
        transform:
            translateX(100%);
    }

}


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

@media (max-width: 600px) {

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

}


/* =========================================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        animation-duration: .01ms !important;

        animation-iteration-count: 1 !important;

        scroll-behavior: auto !important;

        transition-duration: .01ms !important;
    }

}