/* Custom styles moved from inline styles and <style> blocks in frontend views. */

/* ============================================================
   Layout: app.blade.php
   ============================================================ */

.nav-pill-wrap {
    position: relative;
}

.nav-icon-btn--cart {
    position: relative;
}

/* Search suggestions dropdown */
.nav-search {
    position: relative;
}

.search-suggest {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
    margin-top: 6px;
    max-height: 420px;
    overflow-y: auto;
    z-index: 1050;
}

.search-suggest-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: #222;
    text-decoration: none;
    border-bottom: 1px solid #f2f2f2;
    transition: background .15s ease;
}

.search-suggest-item:hover,
.search-suggest-item.is-active {
    background: #f7f4f0;
}

.search-suggest-img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    background: #f5f5f5;
}

.search-suggest-name {
    flex: 1;
    font-size: 14px;
    line-height: 1.3;
}

.search-suggest-price {
    font-weight: 600;
    font-size: 14px;
    color: #3A1A0D;
}

.search-suggest-all {
    display: block;
    padding: 10px 14px;
    font-size: 13px;
    text-align: center;
    color: #3A1A0D;
    text-decoration: none;
    font-weight: 600;
    background: #fafafa;
}

.search-suggest-all:hover,
.search-suggest-all.is-active {
    background: #f1ece6;
}

.search-suggest-empty {
    padding: 14px;
    text-align: center;
    color: #888;
    font-size: 14px;
}

/* Fix Bootstrap 5 .toast overriding Toastr styles */
#toast-container>div {
    opacity: 1 !important;
    border-radius: 4px !important;
}

#toast-container>.toast-success {
    background-color: #51a351 !important;
    color: #fff !important;
}

#toast-container>.toast-error {
    background-color: #bd362f !important;
    color: #fff !important;
}

#toast-container>.toast-warning {
    background-color: #f89406 !important;
    color: #fff !important;
}

#toast-container>.toast-info {
    background-color: #2f96b4 !important;
    color: #fff !important;
}

#toast-container>div .toast-close-button {
    color: #fff !important;
    opacity: 0.8;
}

.nav-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #6B4320;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}

.nav-icon-btn {
    position: relative;
    display: inline-flex;
}

.sidebar-logout-btn {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    text-align: left;
}

/* ============================================================
   Partial: _order-card.blade.php
   ============================================================ */

.order-return-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin: 14px 0 4px;
    padding: 14px 18px;
    background: #fdf8f3;
    border: 1px solid #ead9c6;
    border-radius: 12px;
}

.order-return-cta__text {
    min-width: 0;
    flex: 1;
}

.order-return-cta__title {
    font-weight: 600;
    color: #6B4320;
    font-size: .92rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.order-return-cta__title i {
    font-size: 1rem;
}

.order-return-cta__hint {
    font-size: .78rem;
    color: #8a7560;
    margin-top: 2px;
}

.order-return-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #6B4320;
    color: #fff;
    padding: 9px 20px;
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s;
}

.order-return-cta__btn:hover {
    background: #8a5c32;
    color: #fff;
}

@media (max-width: 575px) {
    .order-return-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .order-return-cta__btn {
        justify-content: center;
    }
}

/* Shipment tracking card inside order details */
.shipment-tracking-card {
    margin: 12px 0;
    padding: 14px 18px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 10px;
    font-size: .88rem;
}

.shipment-tracking-card__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.shipment-tracking-card__title {
    font-weight: 600;
    color: #065f46;
}

.shipment-tracking-card__meta {
    font-size: .78rem;
    margin-top: 2px;
}

.shipment-tracking-card__btn {
    background: #6B4320;
    color: #fff;
    border: none;
}

.shipment-tracking-card__btn:hover,
.shipment-tracking-card__btn:focus {
    background: #8a5c32;
    color: #fff;
}

/* ============================================================
   Returns pages (index / create / show)
   ============================================================ */

.return-list-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 20px 24px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
    margin-bottom: 16px;
}

.return-list-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.return-status-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: .72rem;
    font-weight: 600;
}

.return-status-pending {
    background: #fff3cd;
    color: #856404;
}

.return-status-approved {
    background: #cff4fc;
    color: #055160;
}

.return-status-rejected {
    background: #f8d7da;
    color: #842029;
}

.return-status-completed {
    background: #d1e7dd;
    color: #0a3622;
}

.return-status-cancelled {
    background: #e9ecef;
    color: #495057;
}

.return-list-body {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    padding: 14px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    margin: 14px 0;
}

.return-list-item {
    display: flex;
    gap: 10px;
    align-items: center;
}

.return-list-item img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
}

.return-list-foot {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-brand {
    background: #6B4320;
    color: #fff;
    border: none;
}

.btn-brand:hover {
    background: #8a5c32;
    color: #fff;
}

/* returns/create */
.return-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 22px 26px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
}

.return-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.return-section {
    padding-top: 22px;
    margin-top: 22px;
    border-top: 1px solid #f0f0f0;
}

.return-section .section-heading {
    font-size: 1rem;
    font-weight: 600;
    color: #1a2236;
    margin-bottom: 6px;
}

.return-items-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.return-item-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 12px;
}

.return-item-row.is-disabled {
    opacity: .55;
}

.return-item-row .img-grid {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
}

.return-item-row .img-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.return-item-meta {
    flex: 1;
    min-width: 0;
}

.return-item-name {
    font-weight: 600;
    color: #1a2236;
}

.return-item-qty {
    width: 120px;
}

.return-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 22px;
    margin-top: 22px;
    border-top: 1px solid #f0f0f0;
}

.btn-brand-lg {
    background: #6B4320;
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 8px;
}

.btn-brand-lg:hover {
    background: #8a5c32;
    color: #fff;
}

@media (max-width: 575px) {
    .return-item-row {
        flex-wrap: wrap;
    }

    .return-item-qty {
        width: 100%;
    }
}

/* returns/show */
.return-detail-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 24px 28px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
}

.return-detail-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.return-status-badge--lg {
    padding: 6px 16px;
    font-size: .78rem;
}

.return-detail-section {
    padding-top: 22px;
    margin-top: 22px;
    border-top: 1px solid #f0f0f0;
}

.section-heading {
    font-size: 1rem;
    font-weight: 600;
    color: #1a2236;
    margin-bottom: 14px;
}

.return-detail-card .return-items-list {
    gap: 12px;
}

.return-detail-card .return-item-row {
    padding: 12px;
    border-radius: 10px;
}

.return-detail-card .return-item-row .img-grid {
    width: 64px;
    height: 64px;
    border-radius: 8px;
}

.return-photo-thumb {
    max-width: 240px;
    border-radius: 10px;
    border: 1px solid #eee;
}

/* ============================================================
   Page: order-details (orders skeleton loader)
   ============================================================ */

.orders-skeleton {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skeleton-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
}

.skeleton-thumb {
    width: 96px;
    height: 96px;
    border-radius: 10px;
    flex-shrink: 0;
}

.skeleton-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    justify-content: center;
}

.skeleton-line {
    height: 12px;
    border-radius: 6px;
}

.skeleton-line.w-40 {
    width: 40%;
}

.skeleton-line.w-60 {
    width: 60%;
}

.skeleton-line.w-80 {
    width: 80%;
}

.shimmer {
    background: linear-gradient(90deg, #ececec 0%, #f7f7f7 50%, #ececec 100%);
    background-size: 200% 100%;
    animation: orderShimmer 1.2s infinite linear;
}

@keyframes orderShimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

#ordersListContainer.is-loading {
    opacity: .35;
    pointer-events: none;
}

/* ============================================================
   Page: cart
   ============================================================ */

.cart-empty-state {
    min-height: 60vh;
}

/* ============================================================
   Page: checkout
   ============================================================ */

.payment-option-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid #6B4320;
    border-radius: 10px;
    background: #fdf6ee;
}

.payment-option-icon {
    font-size: 1.6rem;
    color: #6B4320;
    width: 40px;
    text-align: center;
}

.payment-row--item {
    flex-direction: column;
    align-items: flex-start;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.payment-row__item-name {
    font-weight: 600;
}

/* ============================================================
   Page: account-info
   ============================================================ */

/* Hide native browser date picker icon to avoid duplicate with custom icon */
input[type="date"]::-webkit-calendar-picker-indicator {
    display: none;
    -webkit-appearance: none;
}

input[type="date"]::-webkit-inner-spin-button {
    display: none;
    -webkit-appearance: none;
}

/* Prevent edit mode from changing the default border style */
.form-control.editing {
    border-bottom-color: #c3c3c3;
    box-shadow: none;
}

.form-control.editing:focus {
    border-bottom-color: #c97d4d;
    box-shadow: none;
}

/* ============================================================
   Page: thank-you
   ============================================================ */

.thankyou-card {
    background: #fff;
    border-radius: 20px;
    padding: 48px 40px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .07);
    margin: 48px 0;
}

.thankyou-icon {
    font-size: 4rem;
    color: #22c55e;
    margin-bottom: 16px;
}

.thankyou-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a2236;
    margin-bottom: 10px;
}

.thankyou-sub {
    color: #666;
    font-size: 1rem;
    margin-bottom: 28px;
}

.thankyou-summary {
    background: #faf8f5;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
    text-align: left;
}

.ts-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid #f0ece6;
    font-size: .9rem;
    gap: 12px;
}

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

.ts-label {
    color: #888;
    font-weight: 500;
    white-space: nowrap;
}

.ts-value {
    font-weight: 600;
    color: #1a2236;
}

.ts-value--address {
    text-align: right;
    max-width: 55%;
}

.thankyou-items {
    text-align: left;
    margin-bottom: 24px;
}

.ts-section-title {
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: #888;
    font-weight: 700;
    margin-bottom: 12px;
}

.ts-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: .9rem;
    gap: 8px;
}

.ts-item:last-child {
    border-bottom: none;
}

.ts-item-name {
    flex: 1;
    font-weight: 500;
    color: #333;
}

.ts-item-qty {
    color: #888;
    min-width: 30px;
    text-align: center;
}

.ts-item-price {
    font-weight: 600;
    color: #1a2236;
    min-width: 70px;
    text-align: right;
}

.ts-total .ts-item-name {
    font-weight: 700;
}

.ts-total .ts-item-price {
    font-weight: 700;
    font-size: 1rem;
}

.status-pill {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 600;
}

.pill-paid {
    background: #d1e7dd;
    color: #0a3622;
}

.pill-pending {
    background: #fff3cd;
    color: #856404;
}

.pill-refunded {
    background: #e2e3e5;
    color: #41464b;
}

.thankyou-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 32px;
}

/* Generic visibility helper (no !important so jQuery .show()/slideToggle can override) */
.is-hidden {
    display: none;
}

/* ============================================================
   Page: product-details
   ============================================================ */

.compat-table__col-machine {
    width: 22%;
}

.compat-table__col-compat {
    width: 18%;
}

/* ============================================================
   Page: index (home) — CMS-driven hero background
   The image URL is supplied via the --hero-bg-image custom property
   set by the template (only the data is dynamic, not the styling).
   ============================================================ */

.hero-section--cms {
    background: var(--hero-bg-image) no-repeat top left;
    background-size: cover;
}

/* ============================================================
   Page: contact
   ============================================================ */

.contact-map-iframe {
    border: 0;
    border-radius: 20px;
}

/* ============================================================
   Auth pages: login / sign-up / reset-password
   ============================================================ */

.google-btn {
    text-decoration: none;
    color: inherit;
}

.togglePassword {
    cursor: pointer;
}