.portal-page--shop {
    padding-bottom: 4rem;
}

.shop-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 1.5rem;
    align-items: start;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.shop-card {
    background: var(--aloha-surface-elevated, #fff);
    border: 1px solid rgba(15, 15, 15, 0.06);
    border-radius: var(--radius-lg, 16px);
    overflow: hidden;
    box-shadow: var(--shadow-sm, 0 2px 12px rgba(15, 23, 42, 0.06));
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shop-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
}

.shop-card__media {
    position: relative;
    min-height: 200px;
    background: linear-gradient(145deg, #111827 0%, #1f2937 55%, #374151 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    overflow: hidden;
}

.shop-card__image {
    width: 100%;
    height: 100%;
    min-height: 200px;
    object-fit: cover;
    display: block;
}

.shop-card__icon {
    font-size: 2.8rem;
}

.shop-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(227, 6, 19, 0.92);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
}

.shop-card__body {
    padding: 1.15rem 1.2rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.shop-card__title {
    margin: 0;
    font-family: 'Oswald', sans-serif;
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #111827;
}

.shop-card__desc {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: #4b5563;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shop-card__price-main {
    font-family: 'Oswald', sans-serif;
    font-size: 1.35rem;
    color: var(--aloha-red, #e30613);
}

.shop-card__price-meta {
    display: block;
    font-size: 0.72rem;
    color: #6b7280;
}

.shop-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #374151;
}

.shop-field input,
.shop-field select,
.shop-field textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 0.65rem 0.8rem;
    font: inherit;
    background: #fff;
}

.shop-field--qty input {
    max-width: 90px;
}

.shop-field--full {
    grid-column: 1 / -1;
}

.shop-add-form {
    display: grid;
    gap: 0.75rem;
    margin-top: auto;
}

.shop-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: none;
    border-radius: 999px;
    padding: 0.7rem 1.1rem;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.shop-btn--primary {
    background: var(--aloha-red, #e30613);
    color: #fff;
}

.shop-btn--primary:hover {
    background: #b91c1c;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.shop-btn--ghost {
    background: #f3f4f6;
    color: #111827;
}

.shop-btn--checkout {
    width: 100%;
}

.shop-btn--checkout.is-disabled {
    pointer-events: none;
    opacity: 0.45;
}

.shop-btn--large {
    width: 100%;
    padding: 0.95rem 1.2rem;
    font-size: 0.9rem;
}

.shop-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.shop-cart-panel {
    position: sticky;
    top: calc(var(--header-height, 72px) + 1rem);
    background: #fff;
    border: 1px solid rgba(15, 15, 15, 0.06);
    border-radius: var(--radius-lg, 16px);
    box-shadow: var(--shadow-sm, 0 2px 12px rgba(15, 23, 42, 0.06));
    overflow: hidden;
}

.shop-cart-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid #f1f5f9;
}

.shop-cart-panel__head h2 {
    margin: 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.shop-cart-panel__count {
    background: var(--aloha-red, #e30613);
    color: #fff;
    min-width: 1.6rem;
    height: 1.6rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
}

.shop-cart-panel__items {
    max-height: 420px;
    overflow: auto;
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.shop-cart-empty {
    margin: 0;
    color: #6b7280;
    font-size: 0.9rem;
}

.shop-cart-item {
    display: grid;
    gap: 0.55rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #f1f5f9;
}

.shop-cart-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.shop-cart-item__meta {
    font-size: 0.78rem;
    color: #6b7280;
}

.shop-cart-item__actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.shop-qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.shop-qty-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: #f9fafb;
    cursor: pointer;
    font-weight: 700;
}

.shop-qty-value {
    min-width: 24px;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 700;
}

.shop-cart-item__price {
    margin-left: auto;
    font-weight: 700;
    font-size: 0.88rem;
}

.shop-remove-btn {
    border: none;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
}

.shop-cart-panel__footer {
    padding: 1rem 1.1rem 1.15rem;
    border-top: 1px solid #f1f5f9;
    background: #fafafa;
}

.shop-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.45rem;
}

.shop-cart-note {
    margin: 0 0 0.85rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.shop-cart-fab {
    display: none;
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 120;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: var(--aloha-red, #e30613);
    color: #fff;
    box-shadow: 0 10px 30px rgba(227, 6, 19, 0.35);
    cursor: pointer;
}

.shop-cart-fab span {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.shop-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    background: #fff;
    border-radius: 16px;
    border: 1px dashed #d1d5db;
}

.shop-empty i {
    font-size: 2.5rem;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.shop-checkout-grid,
.shop-success-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 1.5rem;
    align-items: start;
}

.shop-panel {
    background: #fff;
    border: 1px solid rgba(15, 15, 15, 0.06);
    border-radius: 16px;
    padding: 1.25rem 1.35rem;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
    margin-bottom: 1rem;
}

.shop-panel h2,
.shop-panel h3 {
    margin: 0 0 1rem;
    font-family: 'Oswald', sans-serif;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.shop-panel--center {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.shop-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.shop-delivery-options {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.shop-delivery-option {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.85rem 0.95rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.shop-delivery-option:has(input:checked) {
    border-color: rgba(227, 6, 19, 0.45);
    background: #fff5f5;
}

.shop-delivery-option strong {
    display: block;
    margin-bottom: 0.15rem;
}

.shop-delivery-option small {
    color: #6b7280;
}

.shop-summary-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.shop-summary-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    font-size: 0.9rem;
}

.shop-summary-list span {
    display: block;
    color: #6b7280;
    font-size: 0.78rem;
}

.shop-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.45rem 0;
    font-size: 0.9rem;
}

.shop-summary-row--total {
    border-top: 1px solid #e5e7eb;
    margin-top: 0.5rem;
    padding-top: 0.85rem;
    font-size: 1rem;
}

.shop-alert {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.shop-alert--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.shop-stripe-note {
    margin: 0.75rem 0 0;
    font-size: 0.78rem;
    color: #6b7280;
    text-align: center;
}

.shop-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #ecfdf5;
    color: #059669;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.shop-success-icon--warn {
    background: #fef2f2;
    color: #dc2626;
}

.shop-success-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.shop-status {
    display: inline-flex;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.shop-status--paid,
.shop-status--completed {
    background: #ecfdf5;
    color: #065f46;
}

.shop-status--pending_payment {
    background: #fef9c3;
    color: #854d0e;
}

.shop-status--processing,
.shop-status--ready_pickup,
.shop-status--shipped {
    background: #eff6ff;
    color: #1d4ed8;
}

@media (max-width: 992px) {
    .shop-layout,
    .shop-checkout-grid,
    .shop-success-grid {
        grid-template-columns: 1fr;
    }

    .shop-cart-panel {
        position: fixed;
        inset: auto 0 0 0;
        top: auto;
        max-height: 78vh;
        border-radius: 18px 18px 0 0;
        transform: translateY(110%);
        transition: transform 0.25s ease;
        z-index: 130;
    }

    .shop-cart-panel.is-open {
        transform: translateY(0);
    }

    .shop-cart-fab {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .shop-form-grid {
        grid-template-columns: 1fr;
    }
}
