/* Use system fonts so pages render without waiting on an external font service. */

/* =========================================
   ROOT
   ========================================= */

:root {
    --accent: #6c63ff;
    --dark: #111111;
    --light: #ffffff;
    --gray: #666666;
}


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

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    color: #111111;
}


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

header {
    width: 100%;
    padding: 22px 5%;

    position: fixed;
    top: 0;
    left: 0;

    z-index: 1000;

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

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

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

nav {
    max-width: 1400px;
    margin: 0 auto;

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

.logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    position: relative;

    text-decoration: none;
    color: #111111;

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

    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    opacity: 0.55;
}


/* =========================================
   GENERAL SECTIONS
   ========================================= */

section {
    scroll-margin-top: 90px;
}

section h2 {
    font-size: clamp(40px, 6vw, 80px);
    margin-bottom: 20px;
}

section p {
    max-width: 600px;
    font-size: 18px;
    line-height: 1.6;
}


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

#home {
    min-height: 100vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;

    padding: 120px 20px 60px;
}

#home h1 {
    max-width: 1000px;

    font-size: clamp(52px, 8vw, 110px);
    line-height: 0.92;
    letter-spacing: -5px;
    font-weight: 800;
}

#home p {
    margin-top: 32px;

    max-width: 620px;

    font-size: 18px;
    line-height: 1.6;

    color: var(--gray);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 35px;
}

#home button {
    padding: 16px 28px;

    border: 1px solid #111111;
    border-radius: 50px;

    background: #111111;
    color: #ffffff;

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

    cursor: pointer;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease,
        background 0.3s ease,
        color 0.3s ease;
}

#home button:last-child {
    background: transparent;
    color: #111111;
}

#home button:hover {
    transform: translateY(-4px);
    opacity: 0.85;
}

#home button:last-child:hover {
    background: #111111;
    color: #ffffff;
}


/* =========================================
   COMMON SECTION STYLING
   ========================================= */

#discover,
#sell,
#about,
#contact {
    min-height: 70vh;

    padding: 120px 10%;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

#discover {
    background: #f5f5f5;
}

#sell {
    background: #111111;
    color: #ffffff;
}

#about {
    background: #ffffff;
}

#contact {
    background: #f5f5f5;
}

.section-heading {
    max-width: 800px;
    margin-bottom: 60px;
}

.section-heading h2 {
    margin-bottom: 20px;
}

.section-label {
    color: var(--accent);

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

    letter-spacing: 2px;

    margin-bottom: 15px;
}


/* =========================================
   DISCOVER SECTION
   ========================================= */

/*
   IMPORTANT:
   The grid controls the card positions.
   GSAP only changes opacity.
*/

.discover-grid {
    width: 100%;

    display: grid;

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

    gap: 25px;

    align-items: stretch;
}

.discover-card {
    width: 100%;
    min-width: 0;

    min-height: 300px;

    padding: 35px;

    background: #ffffff;

    border: 1px solid #e5e5e5;

    border-radius: 24px;

    overflow: hidden;

    box-sizing: border-box;

    /*
       Prevents animation/layout conflicts.
       We do NOT position these cards manually.
    */

    position: relative;

    transition:
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.discover-card:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);

    border-color: #d5d5d5;
}


/* =========================================
   PRODUCT GRID
   ========================================= */

.product-grid {
    width: 100%;

    display: grid;

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

    gap: 25px;

    align-items: stretch;
}

.product-card {
    background: #ffffff;

    border: 1px solid #e5e5e5;

    border-radius: 24px;

    overflow: hidden;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

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

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

.product-image {
    height: 250px;

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

    background: #eeeeee;

    font-size: 50px;
    font-weight: 800;
}

.product-content {
    padding: 30px;
}

.product-category {
    color: var(--gray);

    font-size: 13px;

    margin-bottom: 10px;
}

.product-content h3 {
    font-size: 26px;

    margin-bottom: 12px;
}

.product-content p {
    color: var(--gray);

    font-size: 15px;

    margin-bottom: 25px;
}

.product-content a {
    color: var(--dark);

    text-decoration: none;

    font-weight: 600;
}


/* =========================================
   STORY SECTION
   ========================================= */

#story {
    min-height: 100vh;

    padding: 120px 7%;

    position: relative;

    overflow: hidden;
}

.story-content {
    max-width: 1200px;

    margin: auto;
}

.story-content h2 {
    font-size: clamp(60px, 9vw, 130px);

    line-height: 0.9;

    letter-spacing: -5px;
}

.delivery-scene {
    position: relative;

    height: 500px;

    margin-top: 80px;

    overflow: hidden;
}

.delivery-man {
    position: absolute;

    left: 10%;
    bottom: 80px;

    font-size: 80px;
}

.delivery-box {
    position: absolute;

    left: calc(10% + 70px);
    bottom: 80px;

    font-size: 45px;
}

.rock {
    position: absolute;

    left: 55%;
    bottom: 75px;

    font-size: 55px;
}

.tech-reveal {
    position: absolute;

    left: 65%;
    bottom: 120px;

    display: flex;

    gap: 20px;
}

.tech-item {
    width: 100px;
    height: 100px;

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

    background: #ffffff;

    border-radius: 20px;

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

    opacity: 0;

    transform: translateY(40px) scale(0.8);
}


/* =========================================
   HERO BUTTON HOVER
   ========================================= */

#explore-btn,
#sell-btn {
    transition: transform 0.25s ease;
}

#explore-btn:hover,
#sell-btn:hover {
    transform: translateY(-4px);
}


/* =========================================
   SELL SECTION
   ========================================= */

.sell-content {
    max-width: 850px;
}

.sell-content h2 {
    font-size: clamp(50px, 7vw, 100px);

    line-height: 0.95;

    letter-spacing: -4px;

    margin-bottom: 30px;
}

.sell-content > p:not(.section-label) {
    max-width: 600px;

    color: #bbbbbb;

    font-size: 18px;

    line-height: 1.6;
}

.sell-content button {
    margin-top: 35px;

    padding: 16px 28px;

    border: none;

    border-radius: 50px;

    background: var(--accent);

    color: white;

    font-size: 15px;

    cursor: pointer;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.sell-content button:hover {
    transform: translateY(-4px);

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.sell-steps {
    display: grid;

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

    gap: 30px;

    margin-top: 100px;
}

.sell-step {
    padding-top: 25px;

    border-top: 1px solid #444444;
}

.sell-step span {
    font-size: 13px;

    color: var(--accent);
}

.sell-step h3 {
    margin-top: 20px;

    font-size: 24px;
}

.sell-step p {
    margin-top: 10px;

    color: #999999;

    font-size: 15px;
}


/* =========================================
   START SELLING BUTTON
   ========================================= */

#start-selling-btn {
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

#start-selling-btn:hover {
    transform: translateY(-4px);

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}


/* =========================================
   SUBMIT TECHNOLOGY
   ========================================= */

#submit-tech {
    min-height: 100vh;

    padding: 120px 8%;

    display: flex;

    align-items: center;

    justify-content: center;
}

.submit-content {
    width: 100%;

    max-width: 700px;
}

.submit-content h2 {
    font-size: clamp(50px, 7vw, 90px);

    line-height: 0.95;

    margin: 20px 0;
}

.submit-content > p:not(.section-label) {
    font-size: 18px;

    line-height: 1.6;

    margin-bottom: 40px;
}

#tech-form {
    display: flex;

    flex-direction: column;

    gap: 15px;
}

#tech-form input,
#tech-form textarea {
    width: 100%;

    padding: 16px 18px;

    border: 1px solid #dddddd;

    border-radius: 12px;

    font-family: inherit;

    font-size: 16px;

    box-sizing: border-box;

    outline: none;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

#tech-form input:focus,
#tech-form textarea:focus {
    border-color: var(--accent);

    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.12);
}

#tech-form textarea {
    resize: vertical;

    min-height: 150px;
}

#tech-form button {
    width: fit-content;

    padding: 16px 28px;

    border: none;

    border-radius: 50px;

    cursor: pointer;

    font-size: 16px;

    transition: transform 0.25s ease;
}

#tech-form button:hover {
    transform: translateY(-4px);
}

#form-message {
    margin-top: 20px;

    font-weight: 600;
}


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

#about {
    padding: 140px 8%;
}

.about-heading {
    max-width: 900px;

    margin-bottom: 60px;
}

.about-heading h2 {
    font-size: clamp(50px, 7vw, 90px);

    line-height: 0.95;

    margin-top: 20px;

    letter-spacing: -3px;
}

.about-text {
    max-width: 650px;

    margin-left: auto;

    margin-bottom: 100px;
}

.about-text p {
    font-size: 20px;

    line-height: 1.7;

    margin-bottom: 25px;
}

.about-stats {
    display: grid;

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

    gap: 25px;
}

.about-stat {
    padding: 35px;

    min-height: 220px;

    border-top: 1px solid rgba(0, 0, 0, 0.15);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease;
}

.about-stat:hover {
    transform: translateY(-6px);
}

.about-stat > span {
    font-size: 13px;

    font-weight: 700;

    letter-spacing: 2px;
}

.about-stat h3 {
    font-size: 30px;

    margin: 25px 0 10px;
}

.about-stat p {
    line-height: 1.5;
}


/* =========================================
   CONTACT SECTION
   ========================================= */

#contact {
    min-height: 80vh;

    padding: 120px 8%;

    display: flex;

    align-items: center;
}

.contact-content {
    max-width: 800px;
}

.contact-content h2 {
    font-size: clamp(50px, 7vw, 90px);

    line-height: 0.95;

    margin: 20px 0;
}

.contact-content > p:not(.section-label) {
    max-width: 550px;

    font-size: 18px;

    line-height: 1.6;

    margin-bottom: 35px;
}

.contact-button {
    display: inline-block;

    padding: 16px 28px;

    border-radius: 50px;

    background: var(--dark);

    color: white;

    text-decoration: none;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

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

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}


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

footer {
    padding: 40px;

    text-align: center;

    border-top: 1px solid #dddddd;
}


/* =========================================
   TABLET
   ========================================= */

@media (max-width: 900px) {

    .discover-grid,
    .product-grid,
    .sell-steps,
    .about-stats {
        grid-template-columns: 1fr;
    }

    .discover-card {
        min-height: 250px;
    }

    .about-text {
        margin-left: 0;
    }

}


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

@media (max-width: 768px) {

    /* Navbar */

    header {
        padding: 20px;
    }

    nav {
        flex-direction: column;

        gap: 20px;
    }

    .nav-links {
        flex-wrap: wrap;

        justify-content: center;

        gap: 15px;
    }


    /* Hero */

    #home {
        min-height: 90vh;

        text-align: center;

        padding: 100px 20px 60px;
    }

    #home h1 {
        font-size: clamp(42px, 12vw, 70px);

        letter-spacing: -2px;
    }

    #home p {
        font-size: 16px;
    }

    .hero-buttons {
        width: 100%;

        max-width: 280px;

        display: flex;

        flex-direction: column;

        align-items: center;

        gap: 15px;
    }

    .hero-buttons button,
    #home button {
        width: 100%;
    }


    /* Sections */

    #discover,
    #sell,
    #about,
    #contact {
        padding: 100px 20px;
    }


    /* Discover */

    .discover-grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .discover-card {
        min-height: 220px;

        padding: 28px;
    }


    /* Product */

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


    /* Sell */

    .sell-steps {
        grid-template-columns: 1fr;

        gap: 40px;

        margin-top: 70px;
    }


    /* About */

    #about {
        padding: 100px 20px;
    }

    .about-heading h2 {
        letter-spacing: -2px;
    }

    .about-text {
        margin-left: 0;

        margin-bottom: 60px;
    }

    .about-text p {
        font-size: 17px;
    }

    .about-stats {
        grid-template-columns: 1fr;

        gap: 30px;
    }

    .about-stat {
        min-height: auto;

        padding: 25px 0;
    }


    /* Contact */

    #contact {
        padding: 100px 20px;
    }


    /* Story */

    #story {
        padding: 80px 20px;
    }

    .story-content h2 {
        font-size: clamp(50px, 14vw, 80px);

        letter-spacing: -3px;
    }

    .delivery-scene {
        height: 400px;

        margin-top: 50px;
    }

    .delivery-man {
        left: 5%;

        font-size: 60px;
    }

    .delivery-box {
        left: calc(5% + 55px);

        font-size: 35px;
    }

    .rock {
        left: 60%;

        font-size: 45px;
    }


    /* Technology reveal */

    .tech-reveal {
        left: 50%;

        transform: translateX(-50%);

        gap: 10px;
    }

    .tech-item {
        width: 90px;
        height: 90px;

        background: white;

        border: 1px solid rgba(0, 0, 0, 0.08);

        border-radius: 20px;

        font-size: 16px;

        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    }


    /* Submit */

    #submit-tech {
        padding: 100px 20px;
    }

    .submit-content h2 {
        font-size: clamp(45px, 12vw, 70px);
    }

}
/* Keep navigation visible */
.nav-links a {
    opacity: 1;
    visibility: visible;
}
/* =========================================
   MARKETPLACE PRODUCT DETAILS
   ========================================= */

.product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 25px;
}

.product-bottom strong {
    font-size: 18px;
    font-weight: 700;
}

.product-bottom a {
    white-space: nowrap;
}
/* =========================================
   MARKETPLACE CONTROLS
   ========================================= */

.marketplace-controls {
    margin-bottom: 50px;
}

.search-box {
    width: 100%;
    margin-bottom: 25px;
}

.search-box input {
    width: 100%;
    padding: 18px 22px;

    border: 1px solid #dddddd;
    border-radius: 14px;

    background: #ffffff;

    font-family: inherit;
    font-size: 16px;

    outline: none;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.search-box input:focus {
    border-color: var(--accent);

    box-shadow:
        0 0 0 3px rgba(108, 99, 255, 0.12);
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 11px 18px;

    border: 1px solid #dddddd;
    border-radius: 50px;

    background: #ffffff;
    color: #111111;

    font-family: inherit;
    font-size: 14px;
    font-weight: 500;

    cursor: pointer;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

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

.filter-btn.active {
    background: #111111;
    color: #ffffff;
    border-color: #111111;
}


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

.product-card.hidden {
    display: none;
}


/* =========================================
   MOBILE FILTERS
   ========================================= */

@media (max-width: 768px) {

    .category-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 5px;
    }

    .filter-btn {
        flex-shrink: 0;
    }

}
/* =========================================
   PRODUCT DETAILS
   ========================================= */

#product-details {
    min-height: 100vh;
    padding: 120px 8%;

    display: none;
    align-items: center;

    background: #ffffff;
}

.product-detail-content {
    width: 100%;
    max-width: 1300px;
    margin: auto;
}

#back-to-marketplace {
    margin-bottom: 60px;

    padding: 12px 18px;

    border: 1px solid #dddddd;
    border-radius: 50px;

    background: transparent;

    font-family: inherit;
    font-size: 14px;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        color 0.25s ease;
}

#back-to-marketplace:hover {
    transform: translateX(-4px);

    background: #111111;
    color: #ffffff;
}

.product-detail-grid {
    display: grid;

    grid-template-columns:
        minmax(300px, 1fr)
        minmax(300px, 1fr);

    gap: 80px;

    align-items: center;
}

.product-detail-image {
    min-height: 550px;

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

    background: #eeeeee;

    border-radius: 30px;

    font-size: 100px;
    font-weight: 800;
}

.product-detail-info h2 {
    margin: 20px 0;

    font-size: clamp(50px, 7vw, 100px);

    line-height: 0.95;
    letter-spacing: -4px;
}

.product-detail-info > p:not(.section-label) {
    max-width: 600px;

    color: #666666;

    font-size: 19px;
    line-height: 1.7;
}

.detail-meta {
    display: flex;

    gap: 60px;

    margin-top: 45px;
}

.detail-meta div {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

.detail-meta span {
    color: #888888;

    font-size: 13px;

    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-meta strong {
    font-size: 22px;
}

#get-product-btn {
    margin-top: 45px;

    padding: 17px 28px;

    border: none;
    border-radius: 50px;

    background: #111111;
    color: #ffffff;

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

    cursor: pointer;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

#get-product-btn:hover {
    transform: translateY(-4px);

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.15);
}


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

@media (max-width: 768px) {

    #product-details {
        padding: 100px 20px;
    }

    .product-detail-grid {
        grid-template-columns: 1fr;

        gap: 45px;
    }

    .product-detail-image {
        min-height: 350px;

        font-size: 70px;
    }

    .product-detail-info h2 {
        font-size: clamp(45px, 12vw, 70px);

        letter-spacing: -2px;
    }

    .detail-meta {
        gap: 35px;
    }

}
/* =========================================================
   ORIGYN — PREMIUM LISTING EXPERIENCE
   ========================================================= */

#submit-tech {
    min-height: auto;
    padding: 150px 8% 130px;
    display: block;
}


/* ---------------------------------------------------------
   HEADER
   --------------------------------------------------------- */

.submit-header {
    max-width: 1000px;
    margin-bottom: 80px;
}

.submit-header h2 {
    font-size: clamp(55px, 7vw, 105px);
    line-height: 0.92;
    letter-spacing: -5px;
    margin: 22px 0 30px;
}

.submit-intro {
    max-width: 560px;
    font-size: 19px;
    line-height: 1.7;
    color: #666;
}


/* ---------------------------------------------------------
   WORKSPACE
   --------------------------------------------------------- */

.listing-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}


/* ---------------------------------------------------------
   PANELS
   --------------------------------------------------------- */

.listing-form-panel,
.listing-preview-panel {
    position: relative;

    padding: 34px;

    background: #fafafa;

    border: 1px solid rgba(0, 0, 0, 0.08);

    border-radius: 28px;

    box-sizing: border-box;
}


.listing-form-panel {
    background: #ffffff;
}


.listing-preview-panel {
    background: #f5f5f5;
}


/* ---------------------------------------------------------
   PANEL HEADER
   --------------------------------------------------------- */

.panel-top {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    margin-bottom: 32px;
}


.panel-number {
    display: block;

    margin-bottom: 8px;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 2px;

    color: #777;
}


.panel-top h3 {
    margin: 0;

    font-size: 26px;

    letter-spacing: -0.8px;
}


.panel-status {
    padding: 7px 11px;

    border-radius: 50px;

    background: #eeeeee;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1.5px;

    color: #777;
}


.panel-status.live {
    background: #111;

    color: white;
}


/* ---------------------------------------------------------
   FORM
   --------------------------------------------------------- */

#tech-form {
    display: flex;

    flex-direction: column;

    gap: 20px;
}


.form-group {
    display: flex;

    flex-direction: column;

    gap: 9px;
}


.form-group label {
    font-size: 12px;

    font-weight: 700;

    letter-spacing: 0.8px;

    text-transform: uppercase;

    color: #555;
}


#tech-form input,
#tech-form textarea,
#tech-form select {

    width: 100%;

    box-sizing: border-box;

    padding: 16px 17px;

    border: 1px solid #dedede;

    border-radius: 13px;

    background: #fff;

    color: #111;

    font-family: inherit;

    font-size: 15px;

    outline: none;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;

}


#tech-form input:hover,
#tech-form textarea:hover,
#tech-form select:hover {

    border-color: #bdbdbd;

}


#tech-form input:focus,
#tech-form textarea:focus,
#tech-form select:focus {

    border-color: #111;

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

}


#tech-form textarea {

    min-height: 135px;

    resize: vertical;

}


#tech-form select {

    cursor: pointer;

}


.form-row {

    display: grid;

    grid-template-columns: 0.7fr 1.3fr;

    gap: 16px;

}


/* ---------------------------------------------------------
   PRICE INPUT
   --------------------------------------------------------- */

.input-prefix {

    position: relative;

}


.input-prefix span {

    position: absolute;

    left: 17px;

    top: 50%;

    transform: translateY(-50%);

    font-size: 15px;

    font-weight: 700;

    pointer-events: none;

}


.input-prefix input {

    padding-left: 35px !important;

}


/* ---------------------------------------------------------
   FORM BUTTON
   --------------------------------------------------------- */

.listing-action {

    width: 100%;

    min-height: 54px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 15px 19px;

    border: none;

    border-radius: 14px;

    font-family: inherit;

    font-size: 15px;

    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;

}


.listing-action span {

    font-size: 20px;

    transition:
        transform 0.25s ease;

}


.listing-action:hover {

    transform: translateY(-3px);

}


.listing-action:hover span {

    transform: translateX(5px);

}


.listing-action.primary {

    margin-top: 5px;

    background: #111;

    color: white;

}


.listing-action.primary:hover {

    box-shadow:
        0 15px 30px rgba(0, 0, 0, 0.15);

}


#form-message {

    min-height: 20px;

    margin: 0;

    font-size: 13px;

    color: #555;

}


/* ---------------------------------------------------------
   PREVIEW
   --------------------------------------------------------- */

#listing-preview {

    display: none;

}


.listing-preview-panel {

    min-height: 100%;

}


.preview-card {

    overflow: hidden;

    border-radius: 22px;

    background: white;

    border: 1px solid rgba(0, 0, 0, 0.07);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.07);

}


.preview-image {

    min-height: 230px;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #eeeeee,
            #dcdcdc
        );

    font-size: 65px;

    font-weight: 800;

    letter-spacing: -4px;

    color: #111;

}


.preview-content {

    padding: 28px;

}


#preview-category {

    margin: 0 0 12px;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.8px;

    color: #777;

}


#preview-name {

    margin: 0 0 12px;

    font-size: 30px;

    line-height: 1;

    letter-spacing: -1.2px;

}


#preview-description {

    min-height: 52px;

    margin: 0;

    font-size: 15px;

    line-height: 1.6;

    color: #666;

}


.preview-bottom {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-top: 28px;

    padding-top: 20px;

    border-top: 1px solid #eeeeee;

}


#preview-price {

    font-size: 23px;

    letter-spacing: -0.5px;

}


.preview-bottom span {

    font-size: 12px;

    color: #888;

}


#preview-creator {

    color: #111;

}


.listing-action.publish {

    margin-top: 20px;

    background: #111;

    color: white;

}


.listing-action.publish:hover {

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.18);

}


/* ---------------------------------------------------------
   PROCESS
   --------------------------------------------------------- */

.listing-process {

    position: relative;

    display: grid;

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

    gap: 30px;

    margin-top: 90px;

    padding-top: 35px;

    border-top: 1px solid rgba(0, 0, 0, 0.12);

}


.process-line {

    display: none;

}


.process-step {

    display: flex;

    gap: 18px;

}


.process-step > span {

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1px;

    color: #999;

}


.process-step h4 {

    margin: 0 0 7px;

    font-size: 17px;

}


.process-step p {

    margin: 0;

    max-width: 220px;

    font-size: 13px;

    line-height: 1.5;

    color: #777;

}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 900px) {

    #submit-tech {

        padding: 110px 20px 90px;

    }


    .submit-header {

        margin-bottom: 55px;

    }


    .submit-header h2 {

        font-size: clamp(48px, 12vw, 75px);

        letter-spacing: -3px;

    }


    .listing-workspace {

        grid-template-columns: 1fr;

    }


    .listing-process {

        grid-template-columns: 1fr;

        gap: 25px;

    }

}


@media (max-width: 600px) {

    .listing-form-panel,
    .listing-preview-panel {

        padding: 24px;

        border-radius: 22px;

    }


    .form-row {

        grid-template-columns: 1fr;

    }


    .preview-image {

        min-height: 190px;

    }


    .preview-content {

        padding: 22px;

    }

}
/* =========================================================
   CART + FAVORITES NAVIGATION
   ========================================================= */

#favorites-nav,
#cart-nav {
    position: relative;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 42px;

    height: 42px;

    padding: 0;

    border: 1px solid rgba(0, 0, 0, 0.12);

    border-radius: 50%;

    background: transparent;

    font-family: inherit;

    font-size: 17px;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        background 0.25s ease;
}


#favorites-nav:hover,
#cart-nav:hover {
    transform: translateY(-2px);

    background: #f2f2f2;
}


#favorites-count,
#cart-count {
    position: absolute;

    top: -5px;

    right: -4px;

    min-width: 17px;

    height: 17px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 0 4px;

    box-sizing: border-box;

    border-radius: 50px;

    background: #111;

    color: white;

    font-size: 9px;

    font-weight: 700;
}
/* =========================================================
   PRODUCT FAVORITE BUTTON
   ========================================================= */

.favorite-product-btn {

    position: absolute;

    top: 14px;

    right: 14px;

    z-index: 5;

    width: 40px;

    height: 40px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 0;

    border: 1px solid rgba(0, 0, 0, 0.08);

    border-radius: 50%;

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

    backdrop-filter: blur(8px);

    font-size: 19px;

    line-height: 1;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        background 0.25s ease;
}


.favorite-product-btn:hover {

    transform: scale(1.08);

    background: white;

}


.favorite-product-btn.active {

    background: #111;

    color: white;

}
/* ========================================================
   CART UI
   ======================================================== */

#cart-button {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 9998;

    border: none;
    border-radius: 50px;

    padding: 14px 20px;

    background: #111;
    color: #fff;

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

    cursor: pointer;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

#cart-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.2);
}

#cart-button-count {
    display: inline-flex;

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

    min-width: 20px;
    height: 20px;

    margin-left: 6px;

    padding: 0 5px;

    border-radius: 50%;

    background: #fff;
    color: #111;

    font-size: 12px;
}


/* CART DRAWER */

#cart-drawer {
    position: fixed;

    top: 0;
    right: 0;

    width: min(420px, 90vw);
    height: 100vh;

    z-index: 10000;

    background: #fff;

    box-shadow: -15px 0 50px rgba(0, 0, 0, 0.15);

    display: flex;
    flex-direction: column;

    transform: translateX(100%);

    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

#cart-drawer.active {
    transform: translateX(0);
}


/* HEADER */

.cart-header {
    display: flex;

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

    padding: 25px;

    border-bottom: 1px solid #eee;
}

.cart-header h2 {
    margin: 0;

    font-size: 22px;
}

#close-cart {
    border: none;

    background: transparent;

    font-size: 30px;

    line-height: 1;

    cursor: pointer;
}


/* ITEMS */

#cart-items {
    flex: 1;

    overflow-y: auto;

    padding: 20px;
}

.cart-empty {
    text-align: center;

    padding: 60px 20px;

    color: #777;
}

.cart-item {
    display: flex;

    gap: 15px;

    padding: 15px 0;

    border-bottom: 1px solid #eee;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h3 {
    margin: 0 0 6px;

    font-size: 15px;
}

.cart-item-info p {
    margin: 0;

    font-size: 13px;

    color: #777;
}

.cart-item-price {
    font-weight: 700;
}

.cart-item-controls {
    display: flex;

    align-items: center;

    gap: 8px;

    margin-top: 10px;
}

.cart-item-controls button {
    width: 28px;
    height: 28px;

    border: 1px solid #ddd;

    background: #fff;

    border-radius: 6px;

    cursor: pointer;
}


/* FOOTER */

.cart-footer {
    padding: 20px 25px;

    border-top: 1px solid #eee;

    background: #fff;
}

.cart-total {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 18px;

    font-size: 16px;
}

.cart-total strong {
    font-size: 20px;
}

#checkout-btn {
    width: 100%;

    border: none;

    padding: 15px;

    border-radius: 10px;

    background: #111;
    color: #fff;

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

    cursor: pointer;

    transition: transform 0.2s ease;
}

#checkout-btn:hover {
    transform: translateY(-2px);
}
/* ========================================================
   CHECKOUT
   ======================================================== */

#checkout-screen {
    position: fixed;
    inset: 0;
    z-index: 11000;

    background: #fff;

    overflow-y: auto;

    opacity: 0;
    visibility: hidden;

    transform: translateY(30px);

    transition:
        opacity 0.35s ease,
        transform 0.35s ease,
        visibility 0.35s ease;
}

#checkout-screen.active {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}

.checkout-container {
    width: min(1100px, 90%);
    margin: 0 auto;

    padding: 50px 0 80px;
}

#back-to-cart {
    border: none;
    background: transparent;

    padding: 0;
    margin-bottom: 45px;

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

    cursor: pointer;
}

.checkout-container h2 {
    margin: 8px 0 10px;

    font-size: clamp(34px, 5vw, 60px);
    line-height: 1;
}

.checkout-subtitle {
    margin-bottom: 45px;

    color: #777;

    font-size: 15px;
}


/* CHECKOUT LAYOUT */

.checkout-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1.5fr)
        minmax(320px, 0.8fr);

    gap: 50px;

    align-items: start;
}


/* FORM */

.checkout-form {
    display: flex;
    flex-direction: column;

    gap: 22px;
}

.checkout-form .form-group {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

.checkout-form label {
    font-size: 13px;
    font-weight: 600;
}

.checkout-form input,
.checkout-form textarea {
    width: 100%;
    box-sizing: border-box;

    border: 1px solid #ddd;
    border-radius: 10px;

    padding: 14px 16px;

    background: #fafafa;

    font: inherit;

    outline: none;

    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.checkout-form textarea {
    min-height: 120px;

    resize: vertical;
}

.checkout-form input:focus,
.checkout-form textarea:focus {
    border-color: #111;

    background: #fff;
}


/* ORDER SUMMARY */

.checkout-summary {
    position: sticky;
    top: 30px;

    padding: 25px;

    border: 1px solid #e8e8e8;
    border-radius: 16px;

    background: #fafafa;
}

.checkout-summary h3 {
    margin: 0 0 20px;

    font-size: 20px;
}

#checkout-items {
    display: flex;
    flex-direction: column;

    gap: 14px;

    margin-bottom: 20px;
}

.checkout-item {
    display: flex;

    justify-content: space-between;

    gap: 15px;

    padding-bottom: 14px;

    border-bottom: 1px solid #e5e5e5;
}

.checkout-item-name {
    font-size: 14px;
    font-weight: 600;
}

.checkout-item-quantity {
    margin-top: 4px;

    font-size: 12px;

    color: #777;
}

.checkout-item-price {
    font-size: 14px;
    font-weight: 700;

    white-space: nowrap;
}

.checkout-summary-total {
    display: flex;

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

    margin-top: 20px;
    padding-top: 20px;

    border-top: 1px solid #ddd;
}

.checkout-summary-total strong {
    font-size: 22px;
}

#place-order-btn {
    width: 100%;

    margin-top: 22px;

    padding: 15px;

    border: none;
    border-radius: 10px;

    background: #111;
    color: #fff;

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

    cursor: pointer;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

#place-order-btn:hover {
    transform: translateY(-2px);
}

#place-order-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


/* MOBILE */

@media (max-width: 800px) {

    .checkout-container {
        padding-top: 30px;
    }

    .checkout-layout {
        grid-template-columns: 1fr;

        gap: 35px;
    }

    .checkout-summary {
        position: static;
    }

}
/* ADD TO CART BUTTON */

.product-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.add-to-cart-btn {
    border: 1px solid #111;
    background: #111;
    color: #fff;

    padding: 9px 14px;
    border-radius: 8px;

    font-family: inherit;
    font-size: 12px;
    font-weight: 600;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    background: #fff;
    color: #111;
}

.add-to-cart-btn:disabled {
    opacity: 0.7;
    cursor: default;
    transform: none;
}
