/* =========================================================
   GATRAD KRUPA
   MY ORDERS — PREMIUM CART STYLE
   ========================================================= */

:root {
    --gk-primary: #536442;
    --gk-primary-dark: #354329;
    --gk-primary-soft: #eef2e9;

    --gk-cream: #f7f5ef;
    --gk-white: #ffffff;

    --gk-text: #20241d;
    --gk-muted: #777d73;
    --gk-border: #e6e8e1;

    --gk-pending: #b7791f;
    --gk-confirmed: #536442;
    --gk-shipped: #47739c;
    --gk-delivered: #39734a;
    --gk-cancelled: #a33f3f;

    --gk-shadow:
        0 18px 50px rgba(30, 38, 25, .07);

    --gk-radius: 18px;
}


/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;

    background:
        linear-gradient(
            180deg,
            #faf9f5 0%,
            #f5f3ec 100%
        );

    color: var(--gk-text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    -webkit-font-smoothing: antialiased;
}

button,
a {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   MAIN PAGE
   ========================================================= */

.gk-orders-page {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;

    padding:
        34px 0 90px;
}


/* =========================================================
   HEADER / HERO
   ========================================================= */

.gk-orders-header {
    position: relative;

    padding:
        34px 0 28px;

    margin-bottom: 18px;

    animation:
        gkFadeUp .65s cubic-bezier(.2,.8,.2,1);
}

.gk-orders-brand {
    display: inline-flex;
    align-items: center;

    min-height: 34px;
    padding: 0 13px;

    margin-bottom: 18px;

    border-radius: 999px;

    background: var(--gk-primary-soft);

    color: var(--gk-primary);

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2.5px;
}

.gk-orders-header h1 {
    margin: 0 0 9px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(38px, 7vw, 58px);

    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -1.8px;
}

.gk-orders-header p {
    max-width: 600px;

    margin: 0;

    color: var(--gk-muted);

    font-size: 14px;
    line-height: 1.7;
}

.gk-orders-user {
    margin-top: 16px;

    color: #92978f;

    font-size: 11px;
    font-weight: 600;

    word-break: break-word;
}


/* =========================================================
   LOGIN REQUIRED
   ========================================================= */

.gk-login-required {
    padding: 55px 20px;

    text-align: center;

    background: rgba(255,255,255,.88);

    border: 1px solid var(--gk-border);
    border-radius: 22px;

    box-shadow: var(--gk-shadow);

    animation:
        gkFadeUp .55s ease;
}

.gk-login-icon {
    width: 66px;
    height: 66px;

    margin: 0 auto 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--gk-primary-soft);

    font-size: 25px;

    animation:
        gkSoftPulse 2.2s ease-in-out infinite;
}

.gk-login-required h2 {
    margin: 0 0 8px;

    font-family: Georgia, serif;

    font-size: 27px;
    font-weight: 500;
}

.gk-login-required p {
    margin: 0 0 24px;

    color: var(--gk-muted);

    font-size: 13px;
}


/* =========================================================
   PRIMARY BUTTON
   ========================================================= */

.gk-primary-button,
.gk-shop-button,
.gk-secondary-button {
    min-height: 46px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 20px;

    border-radius: 10px;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}

.gk-primary-button,
.gk-shop-button {
    background: var(--gk-primary);
    color: #fff;
}

.gk-primary-button:hover,
.gk-shop-button:hover {
    background: var(--gk-primary-dark);

    transform: translateY(-2px);

    box-shadow:
        0 12px 28px rgba(53,67,41,.18);
}

.gk-secondary-button {
    background: #fff;

    border: 1px solid var(--gk-border);

    color: var(--gk-primary);
}

.gk-secondary-button:hover {
    background: var(--gk-primary-soft);

    transform: translateY(-2px);
}


/* =========================================================
   CONTENT
   ========================================================= */

.gk-orders-content {
    animation:
        gkFadeUp .6s cubic-bezier(.2,.8,.2,1);
}


/* =========================================================
   ERROR
   ========================================================= */

.gk-orders-error {
    margin-bottom: 18px;

    padding: 15px 17px;

    background: #fff5f5;

    border:
        1px solid
        #f0d4d4;

    border-radius: 13px;

    color: var(--gk-cancelled);

    font-size: 12px;

    animation:
        gkShake .35s ease;
}


/* =========================================================
   LOADING
   ========================================================= */

.gk-orders-loading {
    padding: 65px 20px;

    text-align: center;
}

.gk-loading-spinner {
    width: 40px;
    height: 40px;

    margin: 0 auto 14px;

    border:
        2px solid
        #dfe4d9;

    border-top-color:
        var(--gk-primary);

    border-radius: 50%;

    animation:
        gkSpin .8s linear infinite;
}

.gk-orders-loading p {
    margin: 0;

    color: var(--gk-muted);

    font-size: 12px;
}


/* =========================================================
   ORDERS LIST
   ========================================================= */

.gk-orders-list {
    display: grid;
    gap: 18px;
}


/* =========================================================
   ORDER CARD
   ========================================================= */

.gk-order-card {
    position: relative;

    overflow: hidden;

    background: rgba(255,255,255,.96);

    border:
        1px solid
        var(--gk-border);

    border-radius:
        var(--gk-radius);

    box-shadow:
        var(--gk-shadow);

    opacity: 0;

    transform: translateY(22px);

    animation:
        gkOrderIn
        .55s
        cubic-bezier(.2,.8,.2,1)
        forwards;

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}


/* Premium top line */

.gk-order-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 3px;

    background:
        linear-gradient(
            90deg,
            var(--gk-primary),
            #7d8d6b,
            var(--gk-primary)
        );

    background-size: 200% 100%;

    animation:
        gkGradientMove 4s linear infinite;
}

.gk-order-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 25px 65px
        rgba(30,38,25,.10);

    border-color:
        #d9ded2;
}


/* =========================================================
   CARD HEADER
   ========================================================= */

.gk-order-card-header {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    padding: 23px 24px;

    border-bottom:
        1px solid
        #eeeeea;
}

.gk-order-label {
    margin-bottom: 6px;

    color: #9a9f97;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 2px;
}

.gk-order-card-header h2 {
    margin: 0;

    color: var(--gk-primary);

    font-size: 15px;
    font-weight: 800;

    letter-spacing: .4px;
}

.gk-order-date {
    margin-top: 7px;

    color: #999e96;

    font-size: 11px;
}


/* =========================================================
   STATUS BADGE
   ========================================================= */

.gk-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 9px 12px;

    border-radius: 999px;

    font-size: 9px;
    font-weight: 800;

    white-space: nowrap;
}

.gk-status-badge::before {
    content: "";

    width: 7px;
    height: 7px;

    border-radius: 50%;
}

.gk-status-pending {
    color: #8b5b16;
    background: #fff5df;
}

.gk-status-pending::before {
    background: var(--gk-pending);

    animation:
        gkStatusPulse 1.6s infinite;
}

.gk-status-confirmed {
    color: #435432;
    background: #eef3e9;
}

.gk-status-confirmed::before {
    background: var(--gk-confirmed);
}

.gk-status-shipped {
    color: #3d6689;
    background: #eaf2f8;
}

.gk-status-shipped::before {
    background: var(--gk-shipped);
}

.gk-status-delivered {
    color: #31613d;
    background: #eaf5ed;
}

.gk-status-delivered::before {
    background: var(--gk-delivered);
}

.gk-status-cancelled {
    color: #893636;
    background: #faeaea;
}

.gk-status-cancelled::before {
    background: var(--gk-cancelled);
}


/* =========================================================
   PRODUCTS
   ========================================================= */

.gk-order-products {
    display: grid;
    gap: 10px;

    padding: 20px 24px 4px;
}

.gk-product-row {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 18px;

    padding: 14px 15px;

    background: #fafaf7;

    border:
        1px solid
        #eeeeea;

    border-radius: 12px;

    transition:
        background .25s ease,
        transform .25s ease;
}

.gk-product-row:hover {
    background: #f5f6f0;

    transform: translateX(3px);
}

.gk-product-info {
    min-width: 0;
}

.gk-product-info strong {
    display: block;

    margin-bottom: 5px;

    color: var(--gk-text);

    font-size: 13px;
    font-weight: 700;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gk-product-info span {
    color: #8c9289;

    font-size: 10px;
}

.gk-product-price {
    text-align: right;

    white-space: nowrap;
}

.gk-product-price span {
    display: block;

    margin-bottom: 3px;

    color: #969c94;

    font-size: 10px;
}

.gk-product-price strong {
    color: var(--gk-primary);

    font-size: 13px;
}


/* =========================================================
   SUMMARY
   ========================================================= */

.gk-order-summary {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 18px 24px;

    margin-top: 17px;

    background: #fafaf7;

    border-top:
        1px solid
        #eeeeea;

    border-bottom:
        1px solid
        #eeeeea;
}

.gk-order-summary > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.gk-order-summary span {
    color: #999e96;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1.4px;
}

.gk-order-summary strong {
    color: var(--gk-text);

    font-size: 13px;
}


/* =========================================================
   TIMELINE
   ========================================================= */

.gk-order-tracking {
    padding: 25px 24px 18px;
}

.gk-timeline {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    margin: 0;
}

.gk-timeline-step {
    position: relative;

    text-align: center;
}

.gk-timeline-step:not(:last-child)::after {
    content: "";

    position: absolute;

    top: 12px;
    left: 50%;

    width: 100%;
    height: 2px;

    background: #e4e6df;

    z-index: 0;
}

.gk-timeline-step.completed:not(:last-child)::after {
    background: var(--gk-primary);
}

.gk-timeline-dot {
    position: relative;

    z-index: 1;

    width: 25px;
    height: 25px;

    margin: 0 auto 8px;

    display: flex;
    align-items: center;
    justify-content: center;

    border:
        2px solid
        #dfe2db;

    border-radius: 50%;

    background: #fff;

    color: #a0a59e;

    font-size: 9px;
    font-weight: 800;

    transition:
        all .35s ease;
}

.gk-timeline-step.completed .gk-timeline-dot {
    border-color: var(--gk-primary);

    background: var(--gk-primary);

    color: #fff;

    box-shadow:
        0 0 0 5px
        rgba(83,100,66,.08);
}

.gk-timeline-step.active .gk-timeline-dot {
    border-color: var(--gk-primary);

    color: var(--gk-primary);

    animation:
        gkCurrentStatus
        1.8s
        ease-in-out
        infinite;
}

.gk-timeline-label {
    color: #999e96;

    font-size: 9px;
    font-weight: 700;
}

.gk-timeline-step.completed .gk-timeline-label,
.gk-timeline-step.active .gk-timeline-label {
    color: var(--gk-primary);
}

.gk-timeline-cancelled {
    display: block;
}

.gk-timeline-cancelled .gk-timeline-step {
    text-align: left;
}

.gk-timeline-cancelled .gk-timeline-dot {
    margin-left: 0;

    border-color: var(--gk-cancelled);

    color: var(--gk-cancelled);

    animation: none;
}


/* =========================================================
   DETAILS BUTTON
   ========================================================= */

.gk-order-details-toggle {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 50px;

    padding: 0 24px;

    border: 0;
    border-top: 1px solid #eeeeea;

    background: #fff;

    color: var(--gk-primary);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1.2px;

    cursor: pointer;

    transition:
        background .25s ease,
        color .25s ease;
}

.gk-order-details-toggle:hover {
    background: var(--gk-primary-soft);
}

.gk-order-details-toggle span {
    width: 27px;
    height: 27px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--gk-primary-soft);

    font-size: 17px;
    font-weight: 400;

    transition:
        transform .3s ease;
}

.gk-order-details-toggle.open span {
    transform: rotate(180deg);
}


/* =========================================================
   DETAILS
   ========================================================= */

.gk-order-details {
    padding: 22px 24px;

    background: #fafaf7;

    border-top: 1px solid #eeeeea;

    animation:
        gkDetailsIn .3s ease;
}

.gk-details-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 17px;
}

.gk-details-grid > div {
    min-width: 0;
}

.gk-details-grid span {
    display: block;

    margin-bottom: 5px;

    color: #999e96;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1.5px;
}

.gk-details-grid strong {
    display: block;

    color: var(--gk-text);

    font-size: 12px;
    line-height: 1.5;

    word-break: break-word;
}

.gk-details-full {
    grid-column: 1 / -1;
}


/* =========================================================
   EMPTY ORDERS
   ========================================================= */

.gk-no-orders {
    padding: 70px 25px;

    text-align: center;

    background: #fff;

    border:
        1px solid
        var(--gk-border);

    border-radius:
        var(--gk-radius);

    box-shadow:
        var(--gk-shadow);

    animation:
        gkFadeUp .55s ease;
}

.gk-no-orders-icon {
    width: 66px;
    height: 66px;

    margin: 0 auto 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--gk-primary-soft);

    color: var(--gk-primary);

    font-size: 28px;

    animation:
        gkSoftPulse 2.4s ease-in-out infinite;
}

.gk-no-orders h2 {
    margin: 0 0 8px;

    font-family: Georgia, serif;

    font-size: 27px;
    font-weight: 500;
}

.gk-no-orders p {
    margin: 0 0 24px;

    color: var(--gk-muted);

    font-size: 13px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.gk-orders-footer {
    display: flex;

    justify-content: center;

    padding-top: 32px;
}


/* =========================================================
   DONATE / દાનપેટી FLOATING BUTTON
   ========================================================= */

#gkDonateButton {
    position: fixed;

    right: 18px;
    bottom: 18px;

    z-index: 5000;

    display: inline-flex;
    align-items: center;
    gap: 9px;

    min-height: 45px;

    padding: 0 15px;

    border:
        1px solid
        rgba(83,100,66,.18);

    border-radius: 999px;

    background:
        rgba(255,255,255,.94);

    color: var(--gk-primary);

    box-shadow:
        0 12px 35px
        rgba(30,38,25,.13);

    backdrop-filter:
        blur(14px);

    cursor: pointer;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1px;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}

#gkDonateButton::before {
    content: "♡";

    width: 25px;
    height: 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--gk-primary-soft);

    font-size: 14px;
}

#gkDonateButton:hover {
    transform: translateY(-4px);

    background: #fff;

    box-shadow:
        0 17px 40px
        rgba(30,38,25,.17);
}


/* =========================================================
   DONATE MODAL
   ========================================================= */

#gkDonateModal {
    position: fixed;

    inset: 0;

    z-index: 10000;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 20px;

    background:
        rgba(25,30,22,.48);

    backdrop-filter:
        blur(8px);

    opacity: 1;

    animation:
        gkModalIn .25s ease;
}

#gkDonateModal[hidden] {
    display: none;
}

.gk-donate-card {
    position: relative;

    width: min(390px, 100%);

    padding: 25px;

    text-align: center;

    background: #fff;

    border-radius: 24px;

    box-shadow:
        0 30px 90px
        rgba(20,25,18,.25);

    animation:
        gkDonateCardIn .35s
        cubic-bezier(.2,.8,.2,1);
}

.gk-donate-card h2 {
    margin: 0 0 6px;

    font-family: Georgia, serif;

    font-size: 27px;
    font-weight: 500;
}

.gk-donate-card p {
    margin: 0 0 18px;

    color: var(--gk-muted);

    font-size: 12px;
    line-height: 1.6;
}

.gk-donate-card img {
    display: block;

    width: min(270px, 100%);

    aspect-ratio: 1 / 1;

    object-fit: contain;

    margin: 0 auto;

    border:
        1px solid
        var(--gk-border);

    border-radius: 14px;

    background: #fff;
}

.gk-donate-close {
    position: absolute;

    top: 12px;
    right: 12px;

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;

    border-radius: 50%;

    background: #f4f5f0;

    color: #687064;

    font-size: 20px;

    cursor: pointer;

    transition:
        transform .2s ease,
        background .2s ease;
}

.gk-donate-close:hover {
    background: var(--gk-primary-soft);

    transform: rotate(90deg);
}


/* =========================================================
   ANIMATIONS
   ========================================================= */

@keyframes gkSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes gkFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gkOrderIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gkDetailsIn {
    from {
        opacity: 0;
        transform: translateY(-7px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gkStatusPulse {
    0%, 100% {
        box-shadow:
            0 0 0 0
            rgba(183,121,31,.35);
    }

    50% {
        box-shadow:
            0 0 0 6px
            rgba(183,121,31,0);
    }
}

@keyframes gkCurrentStatus {
    0%, 100% {
        box-shadow:
            0 0 0 0
            rgba(83,100,66,.16);
    }

    50% {
        box-shadow:
            0 0 0 7px
            rgba(83,100,66,0);
    }
}

@keyframes gkSoftPulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.045);
    }
}

@keyframes gkGradientMove {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

@keyframes gkModalIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes gkDonateCardIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes gkShake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-4px);
    }

    75% {
        transform: translateX(4px);
    }
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 700px) {

    .gk-orders-page {
        width: min(100% - 22px, 1120px);

        padding-top: 20px;
        padding-bottom: 75px;
    }

    .gk-orders-header {
        padding-top: 25px;
    }

    .gk-orders-header h1 {
        font-size: 42px;
    }

    .gk-order-card-header {
        flex-direction: column;

        padding: 20px;
    }

    .gk-status-badge {
        align-self: flex-start;
    }

    .gk-order-products {
        padding-left: 18px;
        padding-right: 18px;
    }

    .gk-order-summary {
        padding:
            16px 18px;
    }

    .gk-order-tracking {
        padding:
            23px 16px 16px;
    }

    .gk-order-details-toggle {
        padding:
            0 18px;
    }

    .gk-order-details {
        padding:
            20px 18px;
    }

    #gkDonateButton {
        right: 12px;
        bottom: 12px;
    }
}


@media (max-width: 480px) {

    .gk-orders-header h1 {
        font-size: 36px;
        letter-spacing: -1px;
    }

    .gk-orders-header p {
        font-size: 13px;
    }

    .gk-product-row {
        padding: 12px;
    }

    .gk-product-info strong {
        max-width: 180px;
    }

    .gk-details-grid {
        grid-template-columns: 1fr;
    }

    .gk-details-full {
        grid-column: auto;
    }

    .gk-timeline-label {
        font-size: 7px;
    }

    .gk-timeline-dot {
        width: 22px;
        height: 22px;
    }

    .gk-donate-card {
        padding: 20px;
    }
}


/* =========================================================
   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;
    }
}