/* =========================================================
   VARKA SWEETS
   PREMIUM ORDER TRACKING
========================================================= */

:root {

    --cream: #fbf7f2;
    --cream-dark: #f5eee7;

    --white: #ffffff;

    --brown: #30221e;
    --brown-deep: #241815;
    --brown-soft: #6d5b54;
    --brown-muted: #907b70;

    --terracotta: #b94725;
    --terracotta-dark: #96381f;
    --terracotta-light: #f9e8e0;

    --gold: #c79752;

    --border: #ead8ce;
    --border-soft: #f0e2da;

    --success: #43845b;
    --success-light: #edf7f0;

    --danger: #b63d35;
    --danger-light: #fff0ee;

    --shadow:
        0 30px 80px rgba(72, 38, 24, 0.08);

    --shadow-soft:
        0 14px 40px rgba(72, 38, 24, 0.06);

    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;

}


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {

    margin: 0;

    min-height: 100vh;

    background:
        radial-gradient(
            circle at 8% 0%,
            rgba(199, 151, 82, 0.09),
            transparent 28%
        ),
        radial-gradient(
            circle at 92% 8%,
            rgba(185, 71, 37, 0.07),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            #fffdfb 0%,
            var(--cream) 100%
        );

    color: var(--brown);

    font-family:
        "DM Sans",
        Arial,
        sans-serif;

    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}


/* =========================================================
   PAGE
========================================================= */

.tracking-page {

    width:
        min(
            1180px,
            calc(100% - 40px)
        );

    margin: 0 auto;

    padding:
        72px 0 70px;

}


/* =========================================================
   HEADER
========================================================= */

.tracking-header {

    text-align: center;

    max-width: 720px;

    margin:
        0 auto 42px;

}

.tracking-eyebrow {

    display: inline-flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 16px;

    color: var(--terracotta);

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 4px;

    text-transform: uppercase;

}

.tracking-eyebrow span {

    width: 28px;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--terracotta)
        );

}

.tracking-eyebrow span:last-child {

    background:
        linear-gradient(
            90deg,
            var(--terracotta),
            transparent
        );

}

.tracking-header h1 {

    margin: 0;

    font-family:
        "Playfair Display",
        Georgia,
        serif;

    font-size:
        clamp(40px, 5vw, 58px);

    line-height: 1.05;

    letter-spacing: -1.5px;

    color: var(--brown-deep);

}

.tracking-header p {

    max-width: 620px;

    margin: 16px auto 0;

    color: var(--brown-soft);

    font-size: 16px;

    line-height: 1.7;

}


/* =========================================================
   SEARCH CARD
========================================================= */

.track-search-card {

    position: relative;

    display: grid;

    grid-template-columns: 110px 1fr;

    gap: 35px;

    padding: 45px;

    background:
        rgba(255, 255, 255, 0.97);

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-xl);

    box-shadow:
        var(--shadow);

    overflow: hidden;

}

.track-search-card::before {

    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 4px;

    background:
        linear-gradient(
            90deg,
            var(--terracotta),
            var(--gold),
            var(--terracotta)
        );

}

.search-icon {

    width: 90px;
    height: 90px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            #fff7f2,
            #f7e3d8
        );

    border:
        1px solid #edcbbb;

    box-shadow:
        0 12px 30px
        rgba(185, 71, 37, .10);

}

.search-icon div {

    width: 58px;
    height: 58px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: #fff;

    background:
        linear-gradient(
            135deg,
            var(--terracotta),
            var(--terracotta-dark)
        );

    font-size: 30px;

}

.section-kicker {

    display: block;

    margin-bottom: 8px;

    color: var(--terracotta);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 2.8px;

    text-transform: uppercase;

}

.search-content h2 {

    margin: 0;

    color: var(--brown-deep);

    font-family:
        "Playfair Display",
        Georgia,
        serif;

    font-size: 32px;

    line-height: 1.15;

}

.search-content > p {

    margin: 9px 0 28px;

    color: var(--brown-soft);

    font-size: 14px;

    line-height: 1.7;

}


/* =========================================================
   FORM
========================================================= */

.tracking-form {

    display: grid;

    grid-template-columns:
        1fr 1fr auto;

    gap: 14px;

    align-items: end;

}

.form-field label {

    display: block;

    margin-bottom: 8px;

    color: var(--brown);

    font-size: 12px;

    font-weight: 700;

}

.input-wrap {

    position: relative;

}

.input-icon {

    position: absolute;

    left: 16px;
    top: 50%;

    transform:
        translateY(-50%);

    color: var(--terracotta);

    font-size: 14px;

    font-weight: 700;

}

.input-wrap input {

    width: 100%;

    height: 52px;

    padding:
        0 16px 0 42px;

    border:
        1px solid var(--border);

    border-radius: 13px;

    outline: none;

    background: #fff;

    color: var(--brown);

    transition:
        border-color .2s ease,
        box-shadow .2s ease;

}

.input-wrap input::placeholder {

    color: #b29f96;

}

.input-wrap input:focus {

    border-color:
        var(--terracotta);

    box-shadow:
        0 0 0 4px
        rgba(185, 71, 37, .08);

}

.track-button {

    height: 52px;

    padding:
        0 24px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 14px;

    border: 0;

    border-radius: 13px;

    cursor: pointer;

    color: #fff;

    background:
        linear-gradient(
            135deg,
            var(--terracotta),
            var(--terracotta-dark)
        );

    box-shadow:
        0 12px 25px
        rgba(185, 71, 37, .18);

    font-size: 13px;

    font-weight: 700;

    white-space: nowrap;

    transition:
        transform .2s ease,
        box-shadow .2s ease;

}

.track-button:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 17px 32px
        rgba(185, 71, 37, .24);

}

.track-button span {

    font-size: 17px;

}


/* =========================================================
   ERROR
========================================================= */

.tracking-error {

    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 18px;

    padding: 13px 15px;

    border:
        1px solid #efc6c1;

    border-radius: 12px;

    color: #963b33;

    background:
        var(--danger-light);

    font-size: 13px;

}

.tracking-error span {

    width: 22px;
    height: 22px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: #fff;

    background: var(--danger);

    font-size: 12px;

    font-weight: 700;

}


/* =========================================================
   HELP
========================================================= */

.tracking-help {

    display: flex;

    align-items: flex-start;

    gap: 14px;

    max-width: 700px;

    margin: 20px auto 0;

    padding: 20px 22px;

    background:
        rgba(255,255,255,.7);

    border:
        1px solid var(--border-soft);

    border-radius: 16px;

}

.help-icon {

    width: 30px;
    height: 30px;

    flex: 0 0 30px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: var(--terracotta);

    background:
        var(--terracotta-light);

    font-weight: 700;

}

.tracking-help strong {

    display: block;

    margin-bottom: 4px;

    font-size: 13px;

}

.tracking-help p {

    margin: 0;

    color: var(--brown-soft);

    font-size: 12px;

    line-height: 1.6;

}


/* =========================================================
   ORDER TRACKING CARD
========================================================= */

.order-tracking-card {

    position: relative;

    background:
        rgba(255,255,255,.97);

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-xl);

    box-shadow:
        var(--shadow);

    overflow: hidden;

}

.order-tracking-card::before {

    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 4px;

    background:
        linear-gradient(
            90deg,
            var(--terracotta),
            var(--gold),
            var(--terracotta)
        );

}


/* =========================================================
   ORDER TOP
========================================================= */

.order-top {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

    padding:
        42px 45px 30px;

}

.order-top h2 {

    margin: 0;

    color: var(--brown-deep);

    font-family:
        "Playfair Display",
        Georgia,
        serif;

    font-size: 32px;

}

.order-top p {

    margin: 7px 0 0;

    color: var(--brown-muted);

    font-size: 13px;

}

.status-pill {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding:
        10px 15px;

    border-radius: 999px;

    font-size: 11px;

    font-weight: 700;

    white-space: nowrap;

    background:
        var(--success-light);

    color:
        var(--success);

    border:
        1px solid #d7eadc;

}

.status-dot {

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: currentColor;

    box-shadow:
        0 0 0 4px
        rgba(67,132,91,.10);

}

.status-cancelled {

    color:
        var(--danger);

    background:
        var(--danger-light);

    border-color:
        #f0cfca;

}


/* =========================================================
   CURRENT STATUS
========================================================= */

.current-status {

    display: flex;

    align-items: center;

    gap: 20px;

    margin:
        0 45px;

    padding: 25px;

    border:
        1px solid var(--border);

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            #fffaf7,
            #fff
        );

}

.current-status-icon {

    width: 56px;
    height: 56px;

    flex: 0 0 56px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: #fff;

    background:
        linear-gradient(
            135deg,
            var(--terracotta),
            var(--terracotta-dark)
        );

    font-size: 22px;

    font-weight: 700;

    box-shadow:
        0 10px 25px
        rgba(185,71,37,.18);

}

.current-label {

    display: block;

    margin-bottom: 4px;

    color: var(--terracotta);

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 2px;

}

.current-status h3 {

    margin: 0;

    color: var(--brown-deep);

    font-size: 20px;

}

.current-status p {

    margin: 5px 0 0;

    color: var(--brown-soft);

    font-size: 13px;

    line-height: 1.5;

}


/* =========================================================
   TRACKING PROGRESS
========================================================= */

.tracking-progress {

    display: flex;

    align-items: flex-start;

    padding:
        42px 45px 35px;

}

.progress-step {

    position: relative;

    display: flex;

    flex-direction: column;

    align-items: center;

    min-width: 82px;

    text-align: center;

}

.step-circle {

    width: 40px;
    height: 40px;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid #decfc7;

    border-radius: 50%;

    color: #a9958b;

    background: #fff;

    font-size: 11px;

    font-weight: 700;

    transition:
        all .25s ease;

}

.progress-step.complete .step-circle {

    color: #fff;

    border-color:
        var(--terracotta);

    background:
        var(--terracotta);

    box-shadow:
        0 7px 18px
        rgba(185,71,37,.16);

}

.progress-step.active .step-circle {

    box-shadow:
        0 0 0 6px
        rgba(185,71,37,.10),
        0 7px 18px
        rgba(185,71,37,.16);

}

.step-label {

    width: 95px;

    margin-top: 10px;

    color: #99867d;

    font-size: 10px;

    line-height: 1.35;

}

.progress-step.complete .step-label {

    color: var(--brown);

    font-weight: 600;

}

.progress-line {

    flex: 1;

    height: 2px;

    margin-top: 19px;

    background:
        #eaded8;

}

.progress-line.complete {

    background:
        linear-gradient(
            90deg,
            var(--terracotta),
            var(--gold)
        );

}


/* =========================================================
   CANCELLED
========================================================= */

.cancelled-box {

    display: flex;

    align-items: center;

    gap: 15px;

    margin:
        30px 45px;

    padding: 20px;

    border:
        1px solid #efcbc7;

    border-radius: 16px;

    background:
        var(--danger-light);

}

.cancelled-box > span {

    width: 40px;
    height: 40px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex: 0 0 40px;

    border-radius: 50%;

    color: #fff;

    background:
        var(--danger);

    font-size: 20px;

}

.cancelled-box strong {

    display: block;

    color: #87362f;

    font-size: 14px;

}

.cancelled-box p {

    margin: 4px 0 0;

    color: #9d625b;

    font-size: 12px;

}


/* =========================================================
   INFO GRID
========================================================= */

.order-info-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 12px;

    padding:
        0 45px 35px;

}

.info-card {

    display: flex;

    align-items: center;

    gap: 12px;

    min-height: 78px;

    padding: 15px;

    border:
        1px solid var(--border-soft);

    border-radius: 15px;

    background:
        #fffaf7;

}

.info-icon {

    width: 36px;
    height: 36px;

    flex: 0 0 36px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background:
        var(--terracotta-light);

    font-size: 15px;

}

.info-label {

    display: block;

    margin-bottom: 4px;

    color: #a18d83;

    font-size: 8px;

    font-weight: 700;

    letter-spacing: 1.4px;

}

.info-card strong {

    display: block;

    color: var(--brown);

    font-size: 12px;

}


/* =========================================================
   ITEMS
========================================================= */

.items-section {

    margin:
        0 45px;

    padding:
        28px 0;

    border-top:
        1px solid var(--border);

    border-bottom:
        1px solid var(--border);

}

.section-heading {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 16px;

}

.section-heading h3 {

    margin: 0;

    font-family:
        "Playfair Display",
        Georgia,
        serif;

    font-size: 23px;

    color: var(--brown-deep);

}

.item-count {

    padding:
        7px 11px;

    border-radius: 999px;

    color: var(--terracotta);

    background:
        var(--terracotta-light);

    font-size: 10px;

    font-weight: 700;

}

.order-items {

    border:
        1px solid var(--border-soft);

    border-radius: 16px;

    overflow: hidden;

}

.order-item {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding:
        16px 18px;

    background: #fff;

}

.order-item + .order-item {

    border-top:
        1px solid var(--border-soft);

}

.item-main {

    display: flex;

    align-items: center;

    gap: 13px;

}

.item-placeholder {

    width: 48px;
    height: 48px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background:
        linear-gradient(
            145deg,
            #fff5ef,
            #f5e1d5
        );

    font-size: 21px;

}

.item-main strong {

    display: block;

    color: var(--brown);

    font-size: 13px;

}

.item-main span {

    display: block;

    margin-top: 2px;

    color: var(--brown-soft);

    font-size: 11px;

}

.item-main small {

    display: block;

    margin-top: 3px;

    color: #a18d83;

    font-size: 10px;

}

.item-price {

    color: var(--brown);

    font-size: 13px;

    font-weight: 700;

}


/* =========================================================
   ADDRESS
========================================================= */

.address-section {

    margin:
        0 45px;

    padding:
        27px 0;

    border-bottom:
        1px solid var(--border);

}

.address-section h3 {

    margin: 0 0 7px;

    font-family:
        "Playfair Display",
        Georgia,
        serif;

    font-size: 22px;

}

.address-section p {

    max-width: 720px;

    margin: 0;

    color: var(--brown-soft);

    font-size: 13px;

    line-height: 1.7;

}


/* =========================================================
   TOTAL
========================================================= */

.order-total {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin:
        0 45px;

    padding:
        28px 0;

}

.order-total span {

    display: block;

    color: var(--brown-soft);

    font-size: 13px;

    font-weight: 600;

}

.order-total small {

    display: block;

    margin-top: 4px;

    color: #a18d83;

    font-size: 10px;

}

.order-total strong {

    color: var(--terracotta);

    font-size: 28px;

}


/* =========================================================
   ACTIONS
========================================================= */

.tracking-actions {

    display: flex;

    justify-content: flex-start;

    gap: 12px;

    margin:
        0 45px;

}

.btn {

    min-height: 50px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 12px;

    padding:
        0 23px;

    border-radius: 13px;

    text-decoration: none;

    font-size: 12px;

    font-weight: 700;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease;

}

.btn-primary {

    color: #fff;

    background:
        linear-gradient(
            135deg,
            var(--terracotta),
            var(--terracotta-dark)
        );

    box-shadow:
        0 12px 25px
        rgba(185,71,37,.18);

}

.btn-primary:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 16px 30px
        rgba(185,71,37,.24);

}

.btn-secondary {

    color: var(--brown);

    background: #fff;

    border:
        1px solid var(--border);

}

.btn-secondary:hover {

    transform:
        translateY(-2px);

    background:
        #fffaf7;

}


/* =========================================================
   SECURITY
========================================================= */

.secure-note {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    padding:
        25px 30px 32px;

    color: #958178;

    font-size: 11px;

    text-align: center;

}


/* =========================================================
   FOOTER
========================================================= */

.tracking-footer {

    margin-top: 32px;

    text-align: center;

}

.footer-brand {

    color: var(--brown);

    font-family:
        "Playfair Display",
        Georgia,
        serif;

    font-size: 20px;

    font-weight: 700;

    letter-spacing: 2px;

}

.tracking-footer p {

    margin: 4px 0;

    color: var(--brown-soft);

    font-size: 10px;

    letter-spacing: 1.5px;

}

.tracking-footer span {

    color: #a18d83;

    font-size: 10px;

}

