/* ==========================================================================
   Ecommerce module styles — scoped to shop, account, and auth pages only,
   loaded via shop/partials/nav.blade.php. Brand palette/fonts pulled from
   the homepage (public/css/style.css) for visual consistency: gold accent
   (#dab263), dark navbar/footer, Montserrat headings + Poppins body copy.
   ========================================================================== */

:root {
    --shop-primary: #dab263;
    --shop-primary-dark: #c49a4a;
    --shop-dark: #111111;
    --shop-dark-soft: #1c1c1c;
    --shop-body-font: 'Poppins', system-ui, -apple-system, sans-serif;
    --shop-heading-font: 'Montserrat', sans-serif;
    --shop-radius: .75rem;
}

body {
    font-family: var(--shop-body-font);
}

.shop-nav,
.account-nav,
h1, h2, h3, h4, h5, h6,
.card-title, .navbar-brand {
    font-family: var(--shop-heading-font);
}

/* ---- Buttons & links: gold accent instead of Bootstrap default blue ---- */
.btn-primary {
    background-color: var(--shop-primary);
    border-color: var(--shop-primary);
    color: #1a1a1a;
    font-weight: 600;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--shop-primary-dark) !important;
    border-color: var(--shop-primary-dark) !important;
    color: #1a1a1a !important;
}
.btn-outline-dark:hover {
    background-color: var(--shop-dark);
    border-color: var(--shop-dark);
}
a {
    color: var(--shop-primary-dark);
}
a:hover {
    color: var(--shop-primary);
}

/* ---------------------------------- Nav ---------------------------------- */
.shop-nav {
    margin-bottom: 0;
    background-color: var(--shop-dark) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
}
.shop-nav .nav-link {
    position: relative;
    transition: color .15s ease-in-out;
}
.shop-nav .nav-link:hover {
    color: var(--shop-primary) !important;
}
.shop-nav .navbar-brand {
    font-weight: 700;
    letter-spacing: .04em;
    color: #fff !important;
    font-size: 1.15rem;
}
.shop-nav-brand-accent {
    color: var(--shop-primary);
}
.shop-nav-logo {
    height: 34px;
    width: 34px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    padding: 3px;
}

/* Icon buttons: cart, search, account */
.shop-nav-icon-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, .85);
    font-size: 1.15rem;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}
.shop-nav-icon-link:hover,
.shop-nav-icon-link:focus {
    background: rgba(255, 255, 255, .1);
    color: var(--shop-primary);
}
.shop-nav-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 50rem;
    background: var(--shop-primary);
    color: #1a1a1a;
    font-size: .65rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

/* Account dropdown */
.shop-nav-dropdown {
    border: none;
    border-radius: var(--shop-radius);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, .18);
    padding: .5rem;
    min-width: 220px;
}
.shop-nav-dropdown .dropdown-header {
    font-family: var(--shop-heading-font);
    font-weight: 700;
    color: var(--shop-dark);
}
.shop-nav-dropdown .dropdown-item {
    border-radius: .5rem;
    padding: .5rem .75rem;
}
.shop-nav-dropdown .dropdown-item:hover {
    background-color: rgba(218, 178, 99, .12);
}

/* Search dropdown panel — anchored to the search icon, same mechanics as
   the account dropdown, rather than fighting the navbar's own flex/collapse
   layout with a full-width bar. */
.shop-nav-search-panel {
    border: none;
    border-radius: var(--shop-radius);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, .18);
    width: 300px;
}
.shop-nav-search-panel .form-control:focus {
    border-color: var(--shop-primary);
    box-shadow: 0 0 0 .2rem rgba(218, 178, 99, .25);
}
.shop-nav-search-panel .btn-primary i {
    color: #1a1a1a;
}

/* -------------------------------- Product card --------------------------- */
.product-card {
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: var(--shop-radius);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, .1);
}
.product-card .ratio {
    overflow: hidden;
    border-radius: var(--shop-radius) var(--shop-radius) 0 0;
}
.product-card .ratio img {
    transition: transform .35s ease;
}
.product-card:hover .ratio img {
    transform: scale(1.06);
}
.product-card .card-body {
    padding: 1.1rem;
}
.product-card .card-title {
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.3;
}
.product-card .badge.bg-danger {
    background-color: #c0392b !important;
    border-radius: 50rem;
    font-weight: 500;
    letter-spacing: .02em;
}
.product-card .badge.bg-success {
    background-color: var(--shop-primary) !important;
    color: #1a1a1a !important;
    border-radius: 50rem;
    font-weight: 500;
    letter-spacing: .02em;
}
.product-card .fw-semibold {
    color: var(--shop-dark);
}

.object-fit-cover {
    object-fit: cover;
}

.product-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f1f3f5 0%, #e9ecef 100%);
    color: #adb5bd;
    font-size: 2.5rem;
}

/* ------------------------------ Product detail ------------------------------- */
.pdp-gallery-wrap {
    position: relative;
}
.pdp-gallery-main {
    border-radius: var(--shop-radius);
    overflow: hidden;
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, .08);
}
.pdp-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, .92);
    color: var(--shop-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 .4rem 1rem rgba(0, 0, 0, .12);
    cursor: pointer;
    transition: background-color .15s ease, transform .15s ease;
    z-index: 2;
}
.pdp-gallery-arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.06);
}
.pdp-gallery-arrow.pdp-gallery-prev {
    left: 1rem;
}
.pdp-gallery-arrow.pdp-gallery-next {
    right: 1rem;
}
.pdp-thumb {
    width: 68px;
    height: 68px;
    border-radius: .6rem;
    overflow: hidden;
    padding: 0;
    border: 2px solid transparent;
    opacity: .65;
    transition: opacity .15s ease, border-color .15s ease;
}
.pdp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pdp-thumb:hover {
    opacity: 1;
}
.pdp-thumb.is-active {
    border-color: var(--shop-dark);
    opacity: 1;
}
.pdp-brand {
    display: inline-block;
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--shop-primary-dark);
    margin-bottom: .35rem;
}
.pdp-title {
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: -.01em;
    margin-bottom: .5rem;
}
.pdp-buybox {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: var(--shop-radius);
    padding: 1.5rem;
    margin-top: 1rem;
}
.pdp-price {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--shop-dark);
}
.pdp-compare-price {
    font-size: 1.1rem;
    color: #adb5bd;
    text-decoration: line-through;
}
.pdp-section-label {
    display: block;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #868e96;
    margin-bottom: .6rem;
}
.pdp-details-heading {
    font-size: .95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    display: inline-block;
    padding-bottom: .6rem;
    border-bottom: 2px solid var(--shop-dark);
    margin-bottom: 1.25rem;
}

/* ------------------------------- Size pills -------------------------------- */
.pdp-size-pill {
    min-width: 3rem;
    padding: .5rem 1rem;
    border-radius: 50rem;
    border: 1px solid rgba(0, 0, 0, .15);
    background: #fff;
    color: var(--shop-dark);
    font-weight: 600;
    font-size: .9rem;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.pdp-size-pill:hover {
    border-color: var(--shop-dark);
}
.pdp-size-pill.is-selected {
    background: var(--shop-dark);
    border-color: var(--shop-dark);
    color: #fff;
}

/* ------------------------------- Swatches --------------------------------- */
.swatch-option {
    display: inline-flex;
    padding: 3px;
    border-radius: 50%;
    background: none;
    cursor: pointer;
    line-height: 0;
    box-shadow: 0 0 0 1px transparent;
    transition: box-shadow .15s ease;
}
.swatch-option .swatch {
    display: block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, .15);
}
.swatch-option.swatch-selected,
.swatch-option:has(input:checked) {
    box-shadow: 0 0 0 1px #fff, 0 0 0 2px var(--shop-dark);
}

/* ---------------------------- Stock urgency -------------------------------- */
.pdp-stock-line {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .88rem;
    font-weight: 500;
    margin-bottom: 1rem;
}
.pdp-stock-line.is-low {
    color: #d9832a;
}
.pdp-stock-line.is-ok {
    color: #2f9e44;
}
.pdp-stock-line.is-out {
    color: #e03131;
}

/* --------------------------- Qty + add-to-cart row -------------------------- */
.pdp-qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: 50rem;
    overflow: hidden;
}
.pdp-qty-stepper button {
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    background: none;
    font-size: 1.1rem;
    color: var(--shop-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}
.pdp-qty-stepper button:hover {
    background: #f1f3f5;
}
.pdp-qty-stepper span {
    min-width: 2rem;
    text-align: center;
    font-weight: 600;
}
.pdp-add-btn {
    flex: 1;
    border-radius: 50rem;
    padding: .7rem 1.5rem;
    background: var(--shop-dark);
    border: none;
    color: #fff;
    font-weight: 600;
    letter-spacing: .02em;
    transition: background-color .15s ease, transform .1s ease;
}
.pdp-add-btn:hover:not(:disabled) {
    background: var(--shop-dark-soft);
}
.pdp-add-btn:disabled {
    opacity: .5;
}

/* ------------------------------- Pagination -------------------------------- */
.pagination {
    gap: .35rem;
}
.page-link {
    border: none;
    border-radius: 50rem !important;
    color: var(--shop-dark);
    min-width: 2.25rem;
    text-align: center;
    transition: background-color .15s ease, color .15s ease;
}
.page-link:hover {
    background-color: rgba(218, 178, 99, .15);
    color: var(--shop-dark);
}
.page-item.active .page-link {
    background-color: var(--shop-primary);
    color: #1a1a1a;
    font-weight: 600;
    box-shadow: none;
}
.page-item.disabled .page-link {
    background: none;
    color: #adb5bd;
}

/* --------------------------------- Footer ---------------------------------- */
.shop-footer {
    background-color: var(--shop-dark);
    color: rgba(255, 255, 255, .75);
    margin-top: 3rem;
}
.shop-footer-brand {
    color: var(--shop-primary);
    font-weight: 700;
    letter-spacing: .03em;
}
.shop-footer-heading {
    color: #fff;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: .9rem;
}
.shop-footer-links li {
    margin-bottom: .5rem;
}
.shop-footer-links a {
    color: rgba(255, 255, 255, .65);
    font-size: .9rem;
    text-decoration: none;
}
.shop-footer-links a:hover {
    color: var(--shop-primary);
}
.shop-footer-socials {
    display: flex;
    gap: .6rem;
}
.shop-footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    transition: background-color .15s ease, color .15s ease;
}
.shop-footer-social:hover {
    background: var(--shop-primary);
    color: #1a1a1a;
}
.shop-footer-rule {
    border-color: rgba(255, 255, 255, .12);
    margin: 2rem 0 1.25rem;
}

/* ------------------------------ Account sidebar ----------------------------- */
.account-avatar-card {
    display: flex;
    align-items: center;
    gap: .75rem;
    background: var(--shop-dark);
    color: #fff;
    border-radius: var(--shop-radius);
    padding: 1.1rem;
    margin-bottom: 1rem;
}
.account-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 50%;
    background: var(--shop-primary);
    color: #1a1a1a;
    font-family: var(--shop-heading-font);
    font-weight: 700;
    font-size: 1.1rem;
}
.account-nav-list {
    border-radius: var(--shop-radius);
    overflow: hidden;
}
.account-nav-list .list-group-item {
    border-color: rgba(0, 0, 0, .06);
    padding: .75rem 1rem;
}
.account-nav-list .list-group-item i {
    width: 20px;
    display: inline-block;
    text-align: center;
    margin-right: .4rem;
    color: var(--shop-primary-dark);
}
.account-nav-list .list-group-item.active i,
.account-nav-list .list-group-item.text-danger i {
    color: inherit;
}
.list-group-item.active {
    background-color: var(--shop-primary) !important;
    border-color: var(--shop-primary) !important;
    color: #1a1a1a !important;
    font-weight: 600;
}

/* ------------------------------ Account dashboard ---------------------------- */
.account-welcome-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: linear-gradient(135deg, var(--shop-dark) 0%, var(--shop-dark-soft) 100%);
    color: #fff;
    border-radius: var(--shop-radius);
    padding: 1.5rem 1.75rem;
}

.account-stat-tile {
    display: flex;
    align-items: center;
    gap: .9rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: var(--shop-radius);
    padding: 1.1rem;
    height: 100%;
    transition: box-shadow .2s ease, transform .2s ease;
}
.account-stat-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 .75rem 1.5rem rgba(0, 0, 0, .08);
}
.account-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: rgba(218, 178, 99, .15);
    color: var(--shop-primary-dark);
    font-size: 1.25rem;
}
.account-stat-value {
    font-family: var(--shop-heading-font);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.1;
}
.account-stat-label {
    font-size: .8rem;
    color: #6c757d;
}

.account-order-list {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}
.account-order-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: var(--shop-radius);
    padding: .9rem 1.1rem;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .15s ease, border-color .15s ease;
}
.account-order-row:hover {
    box-shadow: 0 .5rem 1.25rem rgba(0, 0, 0, .08);
    border-color: rgba(218, 178, 99, .4);
    color: inherit;
}
.account-order-row-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: rgba(17, 17, 17, .05);
    color: var(--shop-dark);
}
.account-order-row-main {
    flex: 1 1 auto;
    min-width: 0;
}
.account-order-row-total {
    font-weight: 600;
    white-space: nowrap;
}

.account-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    background: #fff;
    border: 1px dashed rgba(0, 0, 0, .12);
    border-radius: var(--shop-radius);
    color: #6c757d;
}
.account-empty-state i {
    font-size: 2.5rem;
    color: var(--shop-primary);
    display: block;
    margin-bottom: .75rem;
}

/* ---------------------------------- Cart ------------------------------------- */
.cart-item-list {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.cart-item-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: var(--shop-radius);
    padding: 1rem;
}
.cart-item-thumb {
    width: 64px;
    height: 64px;
    min-width: 64px;
    border-radius: .5rem;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cart-item-info {
    flex: 1 1 auto;
    min-width: 0;
}
.cart-item-name {
    color: var(--shop-dark);
    font-weight: 600;
    text-decoration: none;
}
.cart-item-name:hover {
    color: var(--shop-primary-dark);
}
.cart-item-price {
    width: 80px;
    color: #6c757d;
}
.cart-item-qty {
    width: 110px;
    min-width: 110px;
}
.cart-item-total {
    width: 90px;
    text-align: right;
    font-weight: 600;
}
.cart-item-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: #adb5bd;
    border-radius: 50%;
    transition: background-color .15s ease, color .15s ease;
}
.cart-item-remove:hover {
    background: rgba(220, 53, 69, .1);
    color: #dc3545;
}
.cart-summary-card {
    position: sticky;
    top: 90px;
}
@media (max-width: 767.98px) {
    .cart-item-row {
        flex-wrap: wrap;
    }
    .cart-item-total {
        width: auto;
        margin-left: auto;
    }
}

/* ---------------------------------- Print ----------------------------------- */
/* Order/invoice print view: strip all site chrome (nav, footer, account
   sidebar, buttons, the floating ticket link) and let the invoice content
   fill the page as a clean document rather than a printed webpage. */
@media print {
    .shop-nav,
    .shop-footer,
    .floating-ticket-btn,
    .account-sidebar {
        display: none !important;
    }

    .account-content {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    .container {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
    }

    body {
        background: #fff !important;
    }

    .card {
        border: none !important;
        box-shadow: none !important;
    }

    a {
        color: inherit !important;
        text-decoration: none !important;
    }
}

/* ------------------------------ Page header ---------------------------------- */
.shop-page-header {
    padding: .5rem 0 1.75rem;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
}
.shop-page-kicker {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--shop-primary-dark);
    margin-bottom: .4rem;
}
.shop-page-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -.01em;
    margin-bottom: 0;
}
.shop-page-subtitle {
    color: #6c757d;
    margin-top: .4rem;
    margin-bottom: 0;
    max-width: 46rem;
}

/* ------------------------------ Checkout steps -------------------------------- */
.checkout-steps {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 2.25rem;
}
.checkout-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 11rem;
}
.checkout-step-connector {
    position: absolute;
    top: 18px;
    left: -50%;
    width: 100%;
    height: 2px;
    background: rgba(0, 0, 0, .1);
    z-index: 0;
}
.checkout-step-connector.is-complete {
    background: var(--shop-primary);
}
.checkout-step-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    font-weight: 700;
    font-size: .95rem;
    position: relative;
    z-index: 1;
    transition: background-color .2s ease, color .2s ease;
}
.checkout-step.is-active .checkout-step-circle {
    background: var(--shop-dark);
    color: #fff;
}
.checkout-step.is-complete .checkout-step-circle {
    background: var(--shop-primary);
    color: #1a1a1a;
    cursor: pointer;
}
.checkout-step-label {
    margin-top: .5rem;
    font-size: .85rem;
    font-weight: 600;
    color: #6c757d;
}
.checkout-step.is-active .checkout-step-label {
    color: var(--shop-dark);
}

.checkout-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: var(--shop-radius);
    padding: 1.75rem;
}
.checkout-card + .checkout-card {
    margin-top: 1.25rem;
}
.checkout-section-title {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}
.checkout-section-title i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(218, 178, 99, .15);
    color: var(--shop-primary-dark);
    font-size: .9rem;
}

/* ------------------------------- Payment page -------------------------------- */
.payment-brands {
    display: inline-flex;
    gap: .45rem;
    color: #adb5bd;
    font-size: 1.05rem;
}
.payment-brands i {
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
    font-size: inherit;
    color: inherit;
}

.payment-order-ref {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .7rem 1rem;
    margin-bottom: 1.25rem;
    border-radius: .55rem;
    background: rgba(218, 178, 99, .1);
    font-size: .85rem;
    color: #6c757d;
}
.payment-order-ref strong {
    color: var(--shop-primary-dark);
    letter-spacing: .03em;
}

.payment-alert {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    padding: .85rem 1rem;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(192, 57, 43, .25);
    border-radius: .55rem;
    background: rgba(192, 57, 43, .07);
    color: #a5321f;
    font-size: .875rem;
}
.payment-alert i {
    margin-top: .1rem;
}

.payment-element {
    min-height: 0;
}

/* Placeholder shown until Stripe's iframe reports ready, so the card panel
   doesn't collapse to nothing on a slow connection. */
.payment-skeleton {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    padding: .25rem 0 .5rem;
}
.payment-skeleton[hidden] {
    display: none;
}
.payment-skeleton-bar {
    height: 46px;
    border-radius: .55rem;
    background: linear-gradient(90deg, #f1f1f1 25%, #e7e7e7 37%, #f1f1f1 63%);
    background-size: 400% 100%;
    animation: payment-shimmer 1.4s ease infinite;
}
@keyframes payment-shimmer {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}
@media (prefers-reduced-motion: reduce) {
    .payment-skeleton-bar { animation: none; }
}

.payment-submit {
    width: 100%;
    margin-top: 1.5rem;
    padding: .8rem 1rem;
    font-size: 1rem;
    border-radius: .6rem;
}
.payment-submit:disabled {
    opacity: .65;
}

.payment-secure-note {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, .06);
    font-size: .8rem;
    color: #6c757d;
    line-height: 1.5;
}
.payment-secure-note i {
    color: var(--shop-primary-dark);
    font-size: 1.1rem;
}
.payment-secure-note strong {
    display: block;
    color: var(--shop-dark);
    font-weight: 600;
}

.payment-help {
    margin: 1rem .25rem 0;
    font-size: .8rem;
    color: #6c757d;
}

.payment-items {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}
.payment-items li {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    padding: .6rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, .05);
    font-size: .85rem;
}
.payment-items li:last-child {
    border-bottom: 0;
}
.payment-item-name {
    display: block;
    font-weight: 600;
}
.payment-item-variant,
.payment-item-qty {
    display: block;
    font-size: .78rem;
    color: #6c757d;
}
.payment-item-price {
    white-space: nowrap;
    font-weight: 600;
}

.payment-ship-to {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, .06);
    font-size: .8rem;
    color: #6c757d;
    line-height: 1.6;
}
.payment-ship-to-label {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: .35rem;
    font-weight: 600;
    color: var(--shop-dark);
}

/* Shared by the checkout review step and anywhere else that needs a calm,
   non-alarming inline note (Bootstrap's .alert reads far too loud here). */
.checkout-notice {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    padding: .85rem 1rem;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: .55rem;
    background: #fbfbfb;
    font-size: .85rem;
    color: #5a5a5a;
}
.checkout-notice i {
    margin-top: .1rem;
    color: var(--shop-primary-dark);
    font-size: 1rem;
}

/* ------------------------------ Thank-you page -------------------------------- */
.thankyou-hero {
    text-align: center;
    padding: 1rem 0 2rem;
}
.thankyou-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--shop-primary) 0%, var(--shop-primary-dark) 100%);
    color: #1a1a1a;
    font-size: 2.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 1rem 2rem rgba(218, 178, 99, .35);
}
.thankyou-order-number {
    display: inline-block;
    background: rgba(218, 178, 99, .12);
    color: var(--shop-primary-dark);
    font-weight: 700;
    letter-spacing: .03em;
    padding: .35rem .9rem;
    border-radius: 50rem;
    margin: .5rem 0 1rem;
}
