﻿:root {
    --gold: #c9a961;
    --gold-dark: #a88945;
    --gold-light: #ead9ad;
    --brown: #2c1810;
    --brown-light: #5a3b2c;
    --cream: #faf7f2;
    --cream-dark: #eee4d7;
    --white: #ffffff;
    --text: #33251f;
    --muted: #81756e;
    --success: #198754;
    --danger: #dc3545;
    --shadow-sm: 0 5px 20px rgba(44, 24, 16, .06);
    --shadow-md: 0 15px 45px rgba(44, 24, 16, .10);
    --shadow-lg: 0 25px 70px rgba(44, 24, 16, .15);
    --radius: 20px;
}


/* =====================================================
   GLOBAL
===================================================== */

body {
    background: radial-gradient(circle at 10% 10%, rgba(201,169,97,.10), transparent 30%), radial-gradient(circle at 90% 90%, rgba(44,24,16,.06), transparent 30%), var(--cream);
    font-family: 'Alexandria', sans-serif;
    color: var(--text);
}

.qo-page {
    max-width: 1150px;
    margin: auto;
    padding: 35px 18px 80px;
}


/* =====================================================
   TOP BANNER
===================================================== */

.qo-top-banner {
    position: relative;
    overflow: hidden;
    background: linear-gradient( 135deg, #24130d, #4b2c1e );
    border-radius: 22px;
    padding: 18px 25px;
    margin-bottom: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: white;
    box-shadow: 0 15px 40px rgba(44,24,16,.20);
    animation: fadeDown .6s ease;
}

    .qo-top-banner::before {
        content: "";
        position: absolute;
        width: 180px;
        height: 180px;
        background: rgba(201,169,97,.10);
        border-radius: 50%;
        top: -100px;
        right: -60px;
    }

    .qo-top-banner::after {
        content: "";
        position: absolute;
        width: 120px;
        height: 120px;
        background: rgba(255,255,255,.04);
        border-radius: 50%;
        bottom: -70px;
        left: -30px;
    }

    .qo-top-banner .icon {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: rgba(201,169,97,.16);
        border: 1px solid rgba(201,169,97,.35);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--gold);
        font-size: 1.25rem;
        flex-shrink: 0;
        box-shadow: 0 0 20px rgba(201,169,97,.15);
    }

    .qo-top-banner .text {
        text-align: right;
    }

        .qo-top-banner .text strong {
            display: block;
            font-size: 1rem;
            margin-bottom: 4px;
        }

        .qo-top-banner .text small {
            color: rgba(255,255,255,.72);
            font-size: .78rem;
        }


/* =====================================================
   HEADER
===================================================== */

.qo-header {
    text-align: center;
    margin-bottom: 35px;
    animation: fadeUp .7s ease;
}

    .qo-header h1 {
        font-family: 'Amiri', serif;
        font-size: 2.1rem;
        color: var(--brown);
        margin-bottom: 8px;
        font-weight: 700;
    }

        .qo-header h1::after {
            content: "";
            display: block;
            width: 60px;
            height: 3px;
            margin: 10px auto 0;
            border-radius: 10px;
            background: linear-gradient( 90deg, transparent, var(--gold), transparent );
        }

    .qo-header p {
        color: var(--muted);
        font-size: .9rem;
    }


/* =====================================================
   MAIN GRID
===================================================== */

.qo-grid {
    display: grid;
    grid-template-columns: .95fr 1.4fr;
    gap: 28px;
    align-items: start;
}


/* =====================================================
   PRODUCT CARD
===================================================== */

.qo-product {
    background: rgba(255,255,255,.92);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(201,169,97,.20);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 25px;
    transition: .4s ease;
    animation: fadeLeft .7s ease;
}

    .qo-product:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
    }


/* PRODUCT IMAGE */

.qo-product__image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: linear-gradient( 135deg, #f9f3ea, #eee1d0 );
}

    .qo-product__image::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( to top, rgba(44,24,16,.20), transparent 35% );
        pointer-events: none;
    }

    .qo-product__image img {
       
        width: 100%;
        height: 100%;
        max-width: 100%;
        object-fit: cover;
        transition: transform .7s ease;
    }

.qo-product:hover .qo-product__image img {
    transform: scale(1.06);
}


/* DISCOUNT */

.qo-product__badge {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    background: linear-gradient( 135deg, #e74c3c, #b52b20 );
    color: white;
    padding: 8px 15px;
    border-radius: 30px;
    font-size: .78rem;
    font-weight: 800;
    box-shadow: 0 8px 25px rgba(220,53,69,.35);
    animation: pulseBadge 2s infinite;
}


/* PRODUCT BODY */

.qo-product__body {
    padding: 25px;
}

.qo-product__cat {
    display: inline-block;
    font-size: .68rem;
    color: var(--gold-dark);
    font-weight: 800;
    letter-spacing: 1px;
    padding: 6px 13px;
    background: #fffaf0;
    border-radius: 30px;
    border: 1px solid var(--gold-light);
    margin-bottom: 12px;
}

.qo-product__name {
    font-family: 'Amiri', serif;
    font-size: 1.45rem;
    color: var(--brown);
    font-weight: 700;
    margin-bottom: 18px;
    line-height: 1.5;
}

.qo-product__price {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 17px;
    border-top: 1px solid var(--cream-dark);
}

    .qo-product__price .now {
        font-family: 'Amiri', serif;
        font-size: 2.1rem;
        color: var(--gold-dark);
        font-weight: 700;
        line-height: 1;
    }

        .qo-product__price .now small {
            font-size: .8rem;
        }

    .qo-product__price .old {
        color: #aaa;
        text-decoration: line-through;
        font-size: .9rem;
    }

.qo-product__stock {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 17px;
    padding: 8px 15px;
    border-radius: 30px;
    background: #edf8f1;
    border: 1px solid #cdebd8;
    color: #167443;
    font-size: .78rem;
    font-weight: 700;
}


/* =====================================================
   FORM CARD
===================================================== */

.qo-form-card {
    background: rgba(255,255,255,.96);
    border-radius: var(--radius);
    border: 1px solid rgba(201,169,97,.18);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    animation: fadeRight .7s ease;
}


/* FORM HEADER */

.qo-form-header {
    background: linear-gradient( 135deg, #24130d, #513021 );
    padding: 22px 26px;
    display: flex;
    align-items: center;
    gap: 13px;
    color: white;
    position: relative;
}

    .qo-form-header::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background: linear-gradient( 90deg, transparent, var(--gold), transparent );
    }

    .qo-form-header i {
        color: var(--gold);
        font-size: 1.35rem;
    }

    .qo-form-header h2 {
        font-family: 'Amiri', serif;
        margin: 0;
        font-size: 1.2rem;
        font-weight: 700;
    }

.qo-form-body {
    padding: 28px;
}


/* =====================================================
   FORM FIELDS
===================================================== */

.qo-field {
    margin-bottom: 100px;
}

    .qo-field label {
        display: block;
        color: var(--brown);
        font-weight: 700;
        font-size: .82rem;
        margin-bottom: 8px;
    }

        .qo-field label i {
            color: var(--gold);
            margin-left: 5px;
            width: 18px;
            text-align: center;
        }

    .qo-field .req {
        color: var(--danger);
    }


    /* INPUT */

    .qo-field input,
    .qo-field select,
    .qo-field textarea {
        width: 100%;
        border: 1.5px solid #e5dbcf;
        border-radius: 13px;
        padding: 13px 15px;
        font-size: .88rem;
        font-weight: 500;
        color: var(--brown);
        background: #fff;
        transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
        font-family: 'Alexandria', sans-serif;
    }

        .qo-field input:hover,
        .qo-field select:hover,
        .qo-field textarea:hover {
            border-color: #d5c09b;
        }

        .qo-field input:focus,
        .qo-field select:focus,
        .qo-field textarea:focus {
            outline: none;
            border-color: var(--gold);
            background: #fffdf9;
            box-shadow: 0 0 0 4px rgba(201,169,97,.12), 0 5px 18px rgba(44,24,16,.05);
            transform: translateY(-1px);
        }

        .qo-field input::placeholder,
        .qo-field textarea::placeholder {
            color: #b7aaa0;
            font-weight: 400;
        }

    .qo-field textarea {
        resize: vertical;
        min-height: 90px;
    }


    /* VALIDATION */

    .qo-field .validation {
        display: block;
        color: var(--danger);
        font-size: .72rem;
        margin-top: 6px;
        font-weight: 600;
    }


/* =====================================================
   COLORS
===================================================== */

.qo-colors-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    padding: 5px 2px;
}

.qo-color-option {
    position: relative;
    cursor: pointer;
    text-align: center;
}

    .qo-color-option input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

.qo-color-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(44,24,16,.14), 0 0 0 1px #ded4c8;
    transition: .3s ease;
}

.qo-color-option:hover .qo-color-circle {
    transform: scale(1.12);
    box-shadow: 0 7px 18px rgba(44,24,16,.18), 0 0 0 2px var(--gold-light);
}

.qo-color-option input:checked + .qo-color-circle {
    box-shadow: 0 7px 22px rgba(201,169,97,.40), 0 0 0 3px var(--gold);
    transform: scale(1.12);
}

    .qo-color-option input:checked + .qo-color-circle::after {
        content: '\f00c';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        color: white;
        font-size: .95rem;
        text-shadow: 0 1px 4px rgba(0,0,0,.7);
    }

.qo-color-name {
    display: block;
    text-align: center;
    margin-top: 7px;
    font-size: .65rem;
    font-weight: 600;
    color: var(--brown);
}


/* =====================================================
   QUANTITY
===================================================== */

.qo-qty {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid #ded3c7;
    border-radius: 50px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 3px 10px rgba(44,24,16,.05);
}

.qo-qty-btn {
    width: 43px;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--brown);
    cursor: pointer;
    transition: .25s;
}

    .qo-qty-btn:hover {
        background: var(--brown);
        color: var(--gold);
    }

.qo-qty-input {
    width: 55px;
    text-align: center;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
    font-weight: 800;
    color: var(--brown);
    font-size: .95rem;
}


/* =====================================================
   DIVIDER
===================================================== */

.qo-form-body hr {
    border: 0;
    height: 1px;
    background: linear-gradient( 90deg, transparent, var(--cream-dark), transparent );
    margin: 28px 0 !important;
}


/* =====================================================
   SUMMARY
===================================================== */

.qo-summary {
    position: relative;
    background: linear-gradient( 135deg, #faf7f2, #f5eee5 );
    border: 1px solid #eadfce;
    border-radius: 16px;
    padding: 18px 20px;
    margin: 24px 0 18px;
    overflow: hidden;
}

    .qo-summary::before {
        content: "";
        position: absolute;
        width: 100px;
        height: 100px;
        border-radius: 50%;
        background: rgba(201,169,97,.08);
        top: -50px;
        left: -40px;
    }

.qo-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    font-size: .82rem;
    color: var(--brown);
}

    .qo-summary-row .label {
        color: #777;
    }

    .qo-summary-row .value {
        font-weight: 700;
    }

    .qo-summary-row.total {
        padding-top: 15px;
        margin-top: 10px;
        border-top: 1px dashed #d4c2aa;
    }

        .qo-summary-row.total .label {
            color: var(--brown);
            font-weight: 800;
            font-size: .95rem;
        }

        .qo-summary-row.total .value {
            color: var(--gold-dark);
            font-family: 'Amiri', serif;
            font-size: 1.55rem;
            font-weight: 700;
        }


/* =====================================================
   SUBMIT BUTTON
===================================================== */

.qo-btn-submit {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 17px 20px;
    background: linear-gradient( 135deg, #2c1810, #563323 );
    color: var(--gold);
    border: none;
    border-radius: 14px;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    transition: .35s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(44,24,16,.20);
    font-family: 'Alexandria', sans-serif;
}

    .qo-btn-submit::before {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        width: 70%;
        height: 100%;
        background: linear-gradient( 90deg, transparent, rgba(255,255,255,.16), transparent );
        transform: skewX(-20deg);
        transition: .6s;
    }

    .qo-btn-submit:hover::before {
        left: 130%;
    }

    .qo-btn-submit:hover {
        background: linear-gradient( 135deg, var(--gold), var(--gold-dark) );
        color: var(--brown);
        transform: translateY(-3px);
        box-shadow: 0 15px 35px rgba(201,169,97,.35);
    }

    .qo-btn-submit:active {
        transform: translateY(0);
    }


/* =====================================================
   TRUST BADGES
===================================================== */

.qo-trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.qo-trust-item {
    text-align: center;
    padding: 13px 7px;
    background: #fff;
    border-radius: 13px;
    border: 1px solid #eee5da;
    transition: .3s;
}

    .qo-trust-item:hover {
        transform: translateY(-3px);
        border-color: var(--gold-light);
        box-shadow: var(--shadow-sm);
    }

    .qo-trust-item i {
        color: var(--gold);
        font-size: 1.25rem;
        margin-bottom: 6px;
        display: block;
    }

    .qo-trust-item small {
        display: block;
        font-size: .65rem;
        color: var(--brown);
        font-weight: 600;
        line-height: 1.4;
    }


/* =====================================================
   ANIMATIONS
===================================================== */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeLeft {
    from {
        opacity: 0;
        transform: translateX(-25px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeRight {
    from {
        opacity: 0;
        transform: translateX(25px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulseBadge {
    0%, 100% {
        box-shadow: 0 8px 20px rgba(220,53,69,.35);
    }

    50% {
        box-shadow: 0 8px 28px rgba(220,53,69,.55);
    }
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 992px) {

    .qo-grid {
        grid-template-columns: 1fr;
    }

    .qo-product {
        position: static;
    }

    .qo-product__image {
        aspect-ratio: 4 / 5;
    }
       
}


@media (max-width: 576px) {

    .qo-page {
        padding: 18px 12px 45px;
    }

    .qo-top-banner {
        border-radius: 16px;
        padding: 14px 15px;
        margin-bottom: 25px;
    }

        .qo-top-banner .icon {
            width: 40px;
            height: 40px;
            font-size: 1rem;
        }

        .qo-top-banner .text strong {
            font-size: .82rem;
        }

        .qo-top-banner .text small {
            font-size: .68rem;
        }

    .qo-header h1 {
        font-size: 1.55rem;
    }

    .qo-header p {
        font-size: .75rem;
    }

    .qo-product__body {
        padding: 19px;
    }

    .qo-product__name {
        font-size: 1.2rem;
    }

    .qo-product__price .now {
        font-size: 1.7rem;
    }

    .qo-form-header {
        padding: 17px 18px;
    }

        .qo-form-header h2 {
            font-size: 1rem;
        }

    .qo-form-body {
        padding: 18px;
    }

    .qo-color-circle {
        width: 43px;
        height: 43px;
    }

    .qo-trust {
        gap: 7px;
    }

    .qo-trust-item {
        padding: 11px 5px;
    }

        .qo-trust-item i {
            font-size: 1.05rem;
        }

        .qo-trust-item small {
            font-size: .58rem;
        }

    .qo-btn-submit {
        padding: 16px 12px;
        font-size: .82rem;
    }
}
