/* =====================================================================
   GoCart app theme
   Loaded AFTER site.css, so it restyles the whole site into a modern,
   mobile-app look (rounded cards, pill search, bottom navigation)
   while keeping GoCart's original colours:
     navy #131921 / #1f2f46, orange #ff9900, green #16a34a, grey #f3f4f6
   ===================================================================== */

:root {
    --gc-navy: #131921;
    --gc-navy-2: #1f2f46;
    --gc-orange: #ff9900;
    --gc-orange-dark: #e68a00;
    --gc-orange-soft: #fff4db;
    --gc-tint: #eef1f6;
    --gc-bg: #f3f4f6;
    --gc-card: #ffffff;
    --gc-text: #111827;
    --gc-muted: #6b7280;
    --gc-line: #e5e7eb;
    --gc-green: #16a34a;
    --gc-red: #dc2626;
    --gc-radius: 20px;
    --gc-shadow: 0 6px 24px rgba(19, 25, 33, .07);
    --gc-nav-h: 68px;
}

/* ---------- Base ---------- */

body {
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    background: var(--gc-bg);
    color: var(--gc-text);
    -webkit-font-smoothing: antialiased;
}

a {
    text-underline-offset: 3px;
}

img {
    max-width: 100%;
}

h1, h2, h3, h4 {
    letter-spacing: -.01em;
}

:focus-visible {
    outline: 3px solid rgba(255, 153, 0, .55);
    outline-offset: 2px;
}

/* ---------- Top bar (desktop: slim dark strip) ---------- */

.top-bar {
    padding: 8px 40px !important;
    font-size: 13px !important;
    font-weight: 500;
}

.top-bar a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.top-bar a:hover {
    color: var(--gc-orange);
}

/* ---------- Header ---------- */

.main-header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 14px 40px !important;
    gap: 22px !important;
    border-bottom: 1px solid var(--gc-line);
    box-shadow: 0 2px 14px rgba(19, 25, 33, .05);
}

.logo {
    font-size: 32px !important;
    font-weight: 800 !important;
    min-width: 0 !important;
    letter-spacing: -.03em;
    line-height: 1;
}

.search-container {
    background: var(--gc-tint);
    border: 1px solid transparent;
    border-radius: 999px;
    overflow: hidden;
    align-items: center;
    padding: 4px 4px 4px 6px;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.search-container:focus-within {
    background: #fff;
    border-color: var(--gc-orange);
    box-shadow: 0 0 0 4px rgba(255, 153, 0, .15);
}

.search-box {
    height: 44px !important;
    border: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    padding-left: 16px !important;
    font-size: 15px !important;
    outline: none !important;
    box-shadow: none !important;
    color: var(--gc-text);
}

.search-btn {
    width: 44px !important;
    height: 44px;
    border-radius: 50% !important;
    display: grid;
    place-items: center;
    font-size: 17px !important;
    padding: 0;
}

.header-icons {
    align-items: center;
    gap: 10px !important;
    font-size: 22px !important;
    color: var(--gc-navy-2) !important;
}

.header-icons > i,
.header-icons > .icon-wrap {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--gc-tint);
    transition: background .2s, color .2s;
}

.header-icons > i:hover,
.header-icons > .icon-wrap:hover {
    background: var(--gc-orange-soft);
    color: var(--gc-orange-dark) !important;
}

.icon-wrap {
    position: relative;
    display: inline-grid;
}

.icon-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--gc-orange);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 19px;
    text-align: center;
    border: 2px solid #fff;
    box-sizing: content-box;
}

/* ---------- Page width ---------- */

main.has-bottom-nav {
    max-width: 1280px;
    margin: 0 auto;
}

/* ---------- Home: hero ---------- */

.app-hero {
    position: relative;
    overflow: hidden;
    margin: 22px 40px 8px;
    padding: 38px 44px;
    min-height: 230px;
    border-radius: 26px;
    background:
        radial-gradient(circle at 85% 20%, rgba(255, 153, 0, .35), transparent 45%),
        linear-gradient(135deg, var(--gc-navy-2) 0%, var(--gc-navy) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: var(--gc-shadow);
}

.app-hero-text {
    position: relative;
    z-index: 1;
    max-width: 520px;
}

.app-hero h1 {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 10px;
    color: #fff;
}

.app-hero p {
    margin: 0 0 22px;
    color: rgba(255, 255, 255, .82);
    font-size: 16px;
    line-height: 1.5;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    background: #fff;
    color: var(--gc-navy) !important;
    font-weight: 700;
    text-decoration: none !important;
    transition: transform .2s, background .2s, color .2s;
}

.hero-cta:hover {
    background: var(--gc-orange);
    color: #fff !important;
    transform: translateY(-2px);
}

.app-hero-art {
    position: relative;
    width: 230px;
    height: 170px;
    flex: none;
}

.app-hero-art > i {
    position: absolute;
    right: 0;
    bottom: -6px;
    font-size: 150px;
    line-height: 1;
    color: rgba(255, 255, 255, .92);
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .35));
}

.art-bag {
    position: absolute;
    font-size: 54px;
    line-height: 1;
    filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .3));
}

.art-bag-1 {
    right: 82px;
    top: -6px;
    color: var(--gc-orange);
    transform: rotate(-8deg);
}

.art-bag-2 {
    right: 28px;
    top: 4px;
    color: #7dd3fc;
    transform: rotate(8deg);
}

/* ---------- Home: category icons ---------- */

.cat-row {
    display: flex;
    gap: 14px;
    padding: 18px 40px 6px;
    overflow-x: auto;
    scrollbar-width: none;
}

.cat-row::-webkit-scrollbar {
    display: none;
}

.cat-item {
    flex: 1 0 84px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    color: var(--gc-text) !important;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.cat-circle {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--gc-orange-soft);
    color: var(--gc-orange-dark);
    font-size: 28px;
    transition: transform .2s, background .2s, color .2s;
}

.cat-item:hover .cat-circle {
    background: var(--gc-orange);
    color: #fff;
    transform: translateY(-3px);
}

.cat-name {
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- Sections ---------- */

.featured-products {
    padding: 24px 40px 8px !important;
}

.section-header {
    margin-bottom: 4px !important;
}

.section-header h2,
.featured-products h2 {
    font-size: 22px !important;
    font-weight: 800 !important;
    margin: 0 0 4px !important;
    color: var(--gc-navy) !important;
}

.section-header p {
    margin: 0;
    font-size: 14px;
    color: var(--gc-muted);
}

.section-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.see-all {
    color: var(--gc-orange-dark) !important;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none !important;
    white-space: nowrap;
}

.see-all:hover {
    color: var(--gc-navy) !important;
}

/* Empty state (home deals, etc.) */

.empty-state {
    margin-top: 16px;
    padding: 34px 20px;
    border-radius: var(--gc-radius);
    background: var(--gc-tint);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    color: var(--gc-muted);
}

.empty-state i {
    font-size: 54px;
    color: var(--gc-navy-2);
    opacity: .85;
    line-height: 1.1;
}

.empty-state strong {
    color: var(--gc-navy);
    font-size: 18px;
    margin-top: 6px;
}

/* ---------- Product cards ---------- */

.home-product-grid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)) !important;
    gap: 16px !important;
}

.home-product-card {
    border: none !important;
    border-radius: 18px !important;
    box-shadow: var(--gc-shadow) !important;
    background: #fff;
}

.home-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(19, 25, 33, .12) !important;
}

.home-product-image {
    width: 100%;
    height: auto !important;
    aspect-ratio: 1 / 1;
    object-fit: contain !important;
    background: #fff;
    display: block;
    border-bottom: 1px solid #f1f2f4;
}

.home-product-image-placeholder {
    aspect-ratio: 1 / 1;
    height: auto !important;
    display: grid;
    place-items: center;
    background: var(--gc-tint);
    color: #9ca3af;
    font-size: 40px;
}

.home-product-info {
    padding: 14px 16px 16px !important;
}

.home-product-info h3 {
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

.home-product-info h4 {
    font-size: 18px !important;
    font-weight: 800 !important;
    margin: 6px 0 0 !important;
}

.product-badge {
    display: inline-block;
    padding: 3px 10px;
    margin-bottom: 8px;
    border-radius: 999px;
    background: var(--gc-orange-soft);
    color: var(--gc-orange-dark);
    font-size: 11px;
    font-weight: 700;
}

.stock-low {
    color: var(--gc-orange-dark);
    font-size: 12px;
    font-weight: 600;
}

.stock-out {
    color: var(--gc-red);
    font-size: 12px;
    font-weight: 600;
}

.stock-good {
    color: var(--gc-green);
    font-weight: 600;
}

/* ---------- Trust strip ---------- */

.trust-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding: 28px 40px 40px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--gc-shadow);
}

.trust-item > i {
    flex: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--gc-orange-soft);
    color: var(--gc-orange-dark);
    font-size: 21px;
}

.trust-item strong {
    display: block;
    font-size: 15px;
    color: var(--gc-navy);
}

.trust-item span {
    display: block;
    font-size: 13px;
    color: var(--gc-muted);
    line-height: 1.4;
}

/* ---------- Buttons ---------- */

.save-btn,
.shop-now-btn,
.shop-btn,
.checkout-btn,
.create-btn,
.wishlist-btn {
    border-radius: 999px !important;
    font-weight: 700 !important;
    padding: 13px 26px;
    border: none;
    transition: transform .15s, background .2s, box-shadow .2s;
}

.save-btn:hover,
.shop-btn:hover,
.checkout-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(255, 153, 0, .35);
}

.shop-btn {
    display: inline-block;
    background: var(--gc-orange) !important;
    color: #fff !important;
    text-decoration: none !important;
}

.shop-btn:hover {
    background: var(--gc-orange-dark) !important;
}

.wishlist-btn {
    background: var(--gc-tint);
    color: var(--gc-navy);
}

.wishlist-btn:hover {
    background: var(--gc-orange-soft);
}

.cancel-btn {
    border-radius: 999px;
}

.btn-success {
    border-radius: 999px !important;
    font-weight: 700;
    padding: 12px 20px;
}

/* ---------- Cards and forms ---------- */

.account-card,
.cart-items,
.cart-summary,
.product-description-card,
.seller-card,
.review-form-card,
.review-card {
    border-radius: var(--gc-radius) !important;
    box-shadow: var(--gc-shadow);
    border-color: transparent !important;
}

.form-control,
.form-select {
    border-radius: 14px !important;
    border: 1px solid var(--gc-line);
    background: #fff;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--gc-orange) !important;
    box-shadow: 0 0 0 4px rgba(255, 153, 0, .15) !important;
}

textarea.form-control {
    height: auto !important;
}

.alert {
    border-radius: 14px;
    border: none;
}

/* ---------- Empty cart ---------- */

.empty-cart {
    text-align: center;
    padding: 36px 16px 28px !important;
}

.empty-cart-icon {
    width: 190px !important;
    height: 160px !important;
    margin: 0 auto 18px !important;
    border-radius: 58% 42% 55% 45% / 52% 58% 42% 48% !important;
    background: var(--gc-tint) !important;
    display: grid !important;
    place-items: center;
}

.empty-cart-icon i {
    font-size: 78px !important;
    color: var(--gc-navy-2) !important;
}

.empty-cart h3 {
    font-size: 26px !important;
    font-weight: 800 !important;
    color: var(--gc-navy) !important;
    margin-bottom: 6px;
}

.empty-cart p {
    color: var(--gc-muted) !important;
    max-width: 320px;
    margin: 0 auto 22px !important;
}

/* Cart rows */

.cart-card {
    border-radius: 18px;
}

.qty-btn {
    border-radius: 50% !important;
}

/* ---------- Standalone sign-in / register pages ---------- */

.register-card {
    border-radius: 26px !important;
    box-shadow: 0 14px 40px rgba(19, 25, 33, .12) !important;
}

.brand-logo {
    font-weight: 800;
    letter-spacing: -.03em;
}

/* ---------- Bottom navigation (mobile app style) ---------- */

.bottom-nav {
    display: none;
}

@media (max-width: 900px) {

    body {
        font-size: 15px;
    }

    .top-bar {
        padding: 6px 16px !important;
        font-size: 12px !important;
    }

    .main-header {
        padding: 12px 16px !important;
        flex-wrap: wrap;
        gap: 12px !important;
        justify-content: space-between;
    }

    .logo {
        font-size: 28px !important;
        order: 1;
    }

    .header-icons {
        order: 2;
        gap: 8px !important;
    }

    /* the bottom bar already has these */
    .header-icons > i.bi-heart,
    .header-icons > i.bi-person-circle {
        display: none;
    }

    .search-container {
        order: 3;
        flex: 1 1 100%;
    }

    main.has-bottom-nav {
        padding-bottom: calc(var(--gc-nav-h) + 22px);
    }

    .bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 60;
        height: var(--gc-nav-h);
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        background: #fff;
        border-top: 1px solid var(--gc-line);
        box-shadow: 0 -6px 22px rgba(19, 25, 33, .08);
        padding-bottom: env(safe-area-inset-bottom);
    }

    .bottom-nav a {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        color: var(--gc-muted);
        font-size: 11px;
        font-weight: 600;
        text-decoration: none !important;
    }

    .bottom-nav a i {
        font-size: 22px;
        line-height: 1;
    }

    .bottom-nav a.active {
        color: var(--gc-orange-dark);
    }

    .bottom-nav a.active::before {
        content: "";
        position: absolute;
        top: 0;
        left: 22%;
        right: 22%;
        height: 3px;
        border-radius: 0 0 4px 4px;
        background: var(--gc-orange);
    }

    .bottom-nav .icon-wrap {
        display: inline-grid;
        background: none;
        width: auto;
        height: auto;
    }

    .bottom-nav .icon-badge {
        top: -5px;
        right: -9px;
    }

    .app-hero {
        margin: 14px 16px 6px;
        padding: 24px 22px;
        min-height: 0;
        border-radius: 22px;
    }

    .app-hero h1 {
        font-size: 27px;
    }

    .app-hero p {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .app-hero-art {
        width: 120px;
        height: 110px;
    }

    .app-hero-art > i {
        font-size: 92px;
    }

    .art-bag {
        font-size: 34px;
    }

    .art-bag-1 {
        right: 50px;
    }

    .art-bag-2 {
        right: 14px;
    }

    .cat-row {
        padding: 14px 16px 4px;
        gap: 6px;
    }

    .cat-item {
        flex: 0 0 74px;
    }

    .cat-circle {
        width: 58px;
        height: 58px;
        font-size: 24px;
    }

    .featured-products {
        padding: 18px 16px 4px !important;
    }

    .home-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    .home-product-info {
        padding: 10px 12px 14px !important;
    }

    .trust-strip {
        grid-template-columns: 1fr;
        padding: 18px 16px 28px;
    }
}

@media (max-width: 520px) {

    .app-hero-art {
        display: none;
    }

    .section-header h2,
    .featured-products h2 {
        font-size: 19px !important;
    }
}

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

    * {
        transition: none !important;
        animation: none !important;
    }
}
/* =====================================================================
   PART 2: the same app look on every page
   (account, orders, tracking, cart, checkout, product page, seller,
   admin, forms and tables) + delivery address picker
   ===================================================================== */

/* ---------- Delivery address picker ---------- */

.location-bar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 600;
    max-width: 60vw;
}

    .location-bar .deliver-text {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .location-bar:hover {
        color: var(--gc-orange);
    }

.location-content {
    width: 520px !important;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 24px !important;
    padding: 28px !important;
}

    .location-content h3 {
        font-weight: 800;
        color: var(--gc-navy);
        margin-bottom: 4px;
    }

.addr-search {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}

    .addr-search .form-control {
        flex: 1;
        height: 48px;
        border-radius: 999px !important;
        padding-left: 18px;
    }

    .addr-search .save-btn {
        padding: 0 22px;
    }

.addr-geo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 9px 16px;
    border: none;
    border-radius: 999px;
    background: var(--gc-orange-soft);
    color: var(--gc-orange-dark);
    font-weight: 700;
    font-size: 14px;
}

    .addr-geo:hover {
        background: var(--gc-orange);
        color: #fff;
    }

.addr-status {
    min-height: 22px;
    margin-top: 12px;
    font-size: 14px;
    color: var(--gc-muted);
}

    .addr-status.addr-error {
        color: var(--gc-red);
    }

.addr-results {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
}

.addr-result {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    padding: 12px 10px;
    border: none;
    border-bottom: 1px solid var(--gc-line);
    background: none;
    text-align: left;
    font-size: 14px;
    border-radius: 10px;
}

    .addr-result i {
        color: var(--gc-orange-dark);
        margin-top: 2px;
    }

    .addr-result:hover {
        background: var(--gc-tint);
    }

.addr-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

/* "Deliver to" strip on the home page */

.deliver-strip {
    display: flex;
    align-items: center;
    gap: 14px;
    width: calc(100% - 80px);
    margin: 14px 40px 0;
    padding: 12px 16px;
    border: none;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--gc-shadow);
    text-align: left;
}

.deliver-icon {
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--gc-orange-soft);
    color: var(--gc-orange-dark);
    font-size: 19px;
}

.deliver-copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

    .deliver-copy small {
        color: var(--gc-muted);
        font-size: 12px;
    }

    .deliver-copy strong {
        color: var(--gc-navy);
        font-size: 15px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.deliver-change {
    color: var(--gc-orange-dark);
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
}

.deliver-strip:hover .deliver-change {
    color: var(--gc-navy);
}

/* ---------- Account area (profile, orders, addresses, security ...) ---------- */

.account-container {
    max-width: 1280px;
    margin: 0 auto;
    align-items: flex-start;
}

.account-sidebar {
    width: 280px;
    flex: none;
    background: #fff;
    border: none !important;
    border-radius: var(--gc-radius);
    box-shadow: var(--gc-shadow);
    padding: 18px;
}

    .account-sidebar a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 11px 14px;
        border-radius: 14px;
        color: var(--gc-text);
        font-weight: 600;
        text-decoration: none !important;
        transition: background .2s, color .2s;
    }

        .account-sidebar a:hover {
            background: var(--gc-orange-soft);
            color: var(--gc-orange-dark);
        }

        .account-sidebar a i {
            font-size: 18px;
            color: var(--gc-navy-2);
        }

    .account-sidebar hr {
        border-color: var(--gc-line);
        opacity: 1;
    }

    .account-sidebar h4 {
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: .08em;
        color: var(--gc-muted);
        margin: 10px 14px 6px;
    }

.profile-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 6px 14px;
}

    .profile-user h3 {
        margin: 0;
        font-size: 17px;
        font-weight: 800;
        color: var(--gc-navy);
        overflow-wrap: anywhere;
    }

    .profile-user p {
        margin: 0;
        color: var(--gc-muted);
        font-size: 13px;
    }

.profile-sidebar-icon {
    font-size: 44px;
    color: var(--gc-navy-2);
}

.account-sidebar .logout-btn,
.logout-btn {
    color: var(--gc-red) !important;
}

.account-content {
    flex: 1;
    min-width: 0;
    background: #fff;
    border-radius: var(--gc-radius) !important;
    box-shadow: var(--gc-shadow) !important;
    padding: 28px;
}

    .account-content > h1 {
        font-size: 26px;
        font-weight: 800;
        color: var(--gc-navy);
        margin-bottom: 16px;
    }

.welcome-banner {
    position: relative;
    overflow: hidden;
    padding: 28px 32px;
    border-radius: 22px;
    color: #fff;
    background: radial-gradient(circle at 90% 20%, rgba(255, 153, 0, .35), transparent 45%), linear-gradient(135deg, var(--gc-navy-2), var(--gc-navy));
}

    .welcome-banner h5 {
        font-size: 12px;
        letter-spacing: .12em;
        color: var(--gc-orange);
        margin-bottom: 6px;
    }

    .welcome-banner h1 {
        font-size: 28px;
        font-weight: 800;
        color: #fff;
        margin-bottom: 8px;
    }

    .welcome-banner p {
        margin: 0;
        color: rgba(255, 255, 255, .8);
    }

.banner-icon {
    font-size: 70px;
    color: rgba(255, 255, 255, .85);
}

.account-cards {
    gap: 14px !important;
}

.account-card {
    background: #fff;
    margin-bottom: 16px;
}

.account-cards .account-card {
    margin-bottom: 0;
    cursor: pointer;
    background: var(--gc-tint);
    box-shadow: none;
    transition: transform .2s, background .2s;
}

    .account-cards .account-card:hover {
        transform: translateY(-3px);
        background: var(--gc-orange-soft);
    }

    .account-cards .account-card i {
        display: block;
        font-size: 26px;
        color: var(--gc-orange-dark);
        margin-bottom: 6px;
    }

.address-card {
    background: #fff;
    border-radius: var(--gc-radius);
    box-shadow: var(--gc-shadow);
    padding: 22px;
}

/* Orders: lines, thumbnails, status pills */

.order-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
}

.order-line {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--gc-line);
}

.order-line-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

    .order-line-main a {
        color: var(--gc-navy);
        font-weight: 600;
        text-decoration: none;
    }

        .order-line-main a:hover {
            color: var(--gc-orange-dark);
        }

    .order-line-main small {
        color: var(--gc-muted);
    }

.order-thumb {
    flex: none;
    width: 56px;
    height: 56px;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--gc-line);
    border-radius: 12px;
}

.order-thumb-empty {
    display: grid;
    place-items: center;
    background: var(--gc-tint);
    color: #9ca3af;
    font-size: 22px;
}

.recent-orders .section-header-row h2 {
    font-size: 20px;
    font-weight: 800;
    margin: 0;
}

.order-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 6px;
    border-bottom: 1px solid var(--gc-line);
    color: inherit;
    text-decoration: none !important;
    border-radius: 14px;
    transition: background .2s;
}

    .order-row:hover {
        background: var(--gc-tint);
    }

    .order-row:last-child {
        border-bottom: none;
    }

.order-row-main {
    flex: 1;
    min-width: 0;
}

    .order-row-main strong {
        display: block;
        color: var(--gc-navy);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .order-row-main p {
        margin: 2px 0 0;
        color: var(--gc-muted);
        font-size: 13px;
    }

.order-track {
    color: var(--gc-orange-dark);
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
}

.track-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    text-decoration: none !important;
}

.status {
    display: inline-block;
    padding: 6px 14px !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    white-space: nowrap;
}

    .status.processing {
        background: var(--gc-orange-soft);
        color: var(--gc-orange-dark);
    }

    .status.shipped {
        background: #dbeafe;
        color: #1d4ed8;
    }

    .status.delivered {
        background: #dcfce7;
        color: #166534;
    }

    .status.cancelled {
        background: #fee2e2;
        color: #991b1b;
    }

/* Delivery tracking page */

.track-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 26px 40px 40px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    color: var(--gc-navy-2);
    font-weight: 600;
    text-decoration: none !important;
}

    .back-link:hover {
        color: var(--gc-orange-dark);
    }

.track-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

    .track-head h1 {
        font-size: 28px;
        font-weight: 800;
        color: var(--gc-navy);
        margin: 0;
    }

.track-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 18px;
    align-items: start;
}

.track-steps {
    list-style: none;
    margin: 18px 0 20px;
    padding: 0;
}

.track-step {
    position: relative;
    display: flex;
    gap: 16px;
    padding-bottom: 26px;
}

    .track-step:last-child {
        padding-bottom: 0;
    }

    .track-step::before {
        content: "";
        position: absolute;
        left: 15px;
        top: 32px;
        bottom: 0;
        width: 2px;
        background: var(--gc-line);
    }

    .track-step:last-child::before {
        display: none;
    }

    .track-step.done::before {
        background: var(--gc-green);
    }

.track-dot {
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    border: 2px solid var(--gc-line);
    color: #fff;
    z-index: 1;
}

.track-step.done .track-dot {
    background: var(--gc-green);
    border-color: var(--gc-green);
}

.track-step.current .track-dot {
    border-color: var(--gc-orange);
    box-shadow: 0 0 0 5px rgba(255, 153, 0, .2);
    background: var(--gc-orange);
}

.track-step strong {
    display: block;
    color: var(--gc-navy);
}

.track-step.todo strong {
    color: var(--gc-muted);
}

.track-step p {
    margin: 2px 0 0;
    color: var(--gc-muted);
    font-size: 14px;
}

.track-step small {
    color: var(--gc-muted);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

/* ---------- Cart & checkout ---------- */

.cart-page {
    max-width: 1280px;
    margin: 0 auto;
}

.cart-items,
.cart-summary {
    background: #fff;
}

.cart-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--gc-navy);
}

.cart-summary h2 {
    font-size: 20px;
    font-weight: 800;
}

.checkout-btn {
    width: 100%;
    padding: 14px;
}

.cart-image {
    overflow: hidden;
}

    .cart-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        border-radius: 0 !important;
        background: #fff;
    }

/* ---------- Product page ---------- */

.product-details-page {
    max-width: 1280px;
    margin: 0 auto;
}

.product-gallery {
    background: #fff;
    border-radius: var(--gc-radius);
    box-shadow: var(--gc-shadow);
    padding: 18px;
    align-self: start;
}

.product-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--gc-navy);
}

.product-price {
    color: var(--gc-orange-dark) !important;
    font-weight: 800;
}

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

    .product-actions form {
        flex: 1 1 200px;
    }

    .product-actions button {
        width: 100%;
    }

.reviews-section,
.related-products {
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 40px 30px;
}

    .reviews-section h2,
    .related-products h2 {
        font-size: 22px;
        font-weight: 800;
        color: var(--gc-navy);
        margin-bottom: 14px;
    }

/* ---------- Forms, tables, badges (all pages) ---------- */

.form-group label,
.form-label {
    font-weight: 600;
    color: var(--gc-navy);
    margin-bottom: 6px;
}

.table {
    --bs-table-bg: transparent;
}

    .table th {
        color: var(--gc-muted);
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: .05em;
        font-weight: 700;
        border-bottom-width: 1px;
    }

    .table td,
    .table th {
        vertical-align: middle;
    }

.badge {
    border-radius: 999px;
    padding: 6px 12px;
    font-weight: 700;
}

/* ---------- Seller and admin ---------- */

.admin-content {
    max-width: 1280px;
    margin: 0 auto;
}

    .admin-content > h1 {
        font-size: 26px;
        font-weight: 800;
        color: var(--gc-navy);
    }

    .admin-content .account-card h3 {
        font-size: 18px;
        font-weight: 700;
    }

/* ---------- Sign in / register pages ---------- */

body.register-page {
    background: radial-gradient(circle at 15% 10%, rgba(255, 153, 0, .14), transparent 40%), radial-gradient(circle at 90% 90%, rgba(31, 47, 70, .12), transparent 45%), var(--gc-bg);
}

.register-card h2 {
    font-weight: 800;
    color: var(--gc-navy);
}

.register-card .form-control {
    height: 50px;
}

/* ---------- Small screens ---------- */

@media (max-width: 900px) {

    .location-content {
        width: 94% !important;
        padding: 22px !important;
    }

    .deliver-strip {
        width: calc(100% - 32px);
        margin: 12px 16px 0;
    }

    .account-container {
        flex-direction: column;
        padding: 14px !important;
        gap: 14px !important;
    }

    .account-sidebar {
        width: 100%;
    }

    .account-content {
        padding: 18px;
    }

    .account-cards {
        grid-template-columns: 1fr 1fr !important;
    }

    .order-track {
        display: none;
    }

    .track-page {
        padding: 16px 16px 30px;
    }

    .track-layout {
        grid-template-columns: 1fr;
    }

    .cart-page {
        grid-template-columns: 1fr !important;
        padding: 14px !important;
    }

    .product-details-page {
        grid-template-columns: 1fr !important;
        padding: 16px !important;
        gap: 18px !important;
    }

    .reviews-section,
    .related-products {
        padding: 10px 16px 24px;
    }

    .admin-content {
        padding: 16px !important;
        overflow-x: auto;
    }

    .welcome-banner {
        padding: 20px;
    }

        .welcome-banner h1 {
            font-size: 22px;
        }

    .banner-icon {
        display: none;
    }
}

@media (max-width: 520px) {

    .account-cards {
        grid-template-columns: 1fr !important;
    }

    .addr-search {
        flex-direction: column;
    }

        .addr-search .save-btn {
            height: 46px;
        }
}

/* ===== Address search box fix =====
   site.css makes .form-control and .save-btn 100% wide, which squashed the box. */
.addr-search {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .addr-search .form-control {
        flex: 1 1 auto;
        width: auto !important;
        min-width: 0;
        height: 48px;
        margin: 0;
        padding: 0 18px;
        border-radius: 999px !important;
    }

    .addr-search .save-btn {
        flex: 0 0 auto;
        width: auto !important;
        height: 48px;
        margin: 0;
        padding: 0 24px;
        border-radius: 999px;
    }

@media (max-width: 520px) {
    .addr-search { flex-direction: row; }
    .addr-search .save-btn { padding: 0 18px; height: 48px; }
}

/* "Use my exact location" on checkout */
.checkout-locate {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}
.checkout-locate .addr-geo { margin-top: 0; }
.checkout-search { position: relative; margin-bottom: 14px; }
.checkout-search .addr-results {
    border: 1px solid var(--gc-line);
    border-radius: 12px;
    background: #fff;
    max-height: 260px;
    overflow: auto;
}
.checkout-search .addr-results:empty { display: none; }

/* Admin: seller documents and product images */
.admin-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0; }
.admin-thumbs a, .admin-thumbs img {
    display: block;
    width: 96px; height: 96px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--gc-line);
}
.admin-doc-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0; }
.admin-doc-links a {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: 999px;
    background: var(--gc-orange-soft); color: var(--gc-orange-dark);
    font-weight: 700; font-size: 14px; text-decoration: none;
}
.admin-doc-links a:hover { background: var(--gc-orange); color: #fff; }
.admin-doc-preview { max-width: 100%; max-height: 80vh; border-radius: 12px; border: 1px solid var(--gc-line); }
.danger-btn {
    padding: 12px 22px; border: none; border-radius: 10px;
    background: #dc2626; color: #fff; font-weight: 700;
}
.danger-btn:hover { background: #b91c1c; }
/* Address search box fix */
.addr-search {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .addr-search .form-control {
        flex: 1 1 auto;
        width: auto !important;
        min-width: 0;
        height: 48px;
        margin: 0;
        padding: 0 18px;
        border-radius: 999px !important;
    }

    .addr-search .save-btn {
        flex: 0 0 auto;
        width: auto !important;
        height: 48px;
        margin: 0;
        padding: 0 24px;
        border-radius: 999px;
    }

@media (max-width: 520px) {
    .addr-search {
        flex-direction: row;
    }

        .addr-search .save-btn {
            padding: 0 18px;
            height: 48px;
        }
}

.addr-detail {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--gc-line);
}

.addr-picked {
    font-weight: 700;
    margin-bottom: 8px;
}
.policy-body {
    white-space: pre-wrap;
    line-height: 1.7;
}

.notif-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 16px;
    margin-bottom: 10px;
    border: 1px solid var(--gc-line);
    border-radius: 14px;
    background: #fff;
    color: inherit;
    text-decoration: none;
}

    .notif-row:hover {
        background: var(--gc-tint);
    }

.notif-unread {
    border-left: 4px solid var(--gc-orange);
    background: var(--gc-orange-soft);
}

.notif-icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gc-orange-soft);
    color: var(--gc-orange-dark);
    font-size: 18px;
}

.notif-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

    .notif-main small {
        color: var(--gc-muted);
    }


:root {
    --gocart-primary: #f97316;
    --gocart-primary-dark: #ea580c;
    --gocart-primary-light: #fff7ed;
    --gocart-text: #171717;
}

/* Go cart brand accents */
.logo-accent {
    color: var(--gocart-primary) !important;
}

/* Orange buttons */
.btn-primary {
    background-color: var(--gocart-primary);
    border-color: var(--gocart-primary);
}

    .btn-primary:hover {
        background-color: var(--gocart-primary-dark);
        border-color: var(--gocart-primary-dark);
    }
