.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.product-card {
    display: grid;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    min-height: 184px;
}

.product-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    overflow: hidden;
    background: #eef2f6;
    display: grid;
    place-items: center;
    color: var(--green);
    font-size: 2.2rem;
    font-weight: 900;
}

.product-image img,
.image-preview img,
.thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-desc {
    margin: 8px 0 0;
    color: #344054;
    line-height: 1.4;
}

.product-card.muted {
    opacity: .58;
}

.sku,
small,
.muted-text {
    color: var(--muted);
}

small {
    display: block;
    line-height: 1.35;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.qty-row {
    display: grid;
    grid-template-columns: 40px minmax(70px, 1fr) 40px;
    gap: 8px;
    align-items: center;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #ffffff;
    font-size: 1.25rem;
    font-weight: 800;
    cursor: pointer;
}

.icon-btn:disabled {
    cursor: not-allowed;
    opacity: .5;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 11px;
    font: inherit;
    color: var(--text);
    background: #ffffff;
}

textarea {
    resize: vertical;
}

label {
    display: grid;
    gap: 6px;
    font-weight: 750;
}

.checkout-panel,
.stack {
    display: grid;
    gap: 14px;
}

.delivery-fields {
    display: grid;
    gap: 10px;
}

.delivery-fields [hidden] {
    display: none !important;
}

.location-choice {
    display: grid;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f9fafb;
    padding: 12px;
}

.location-choice > strong {
    font-size: .95rem;
}

.choice-line {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    font-weight: 750;
}

.choice-line input {
    width: auto;
}

.geo-share-box {
    display: grid;
    gap: 8px;
    padding-top: 4px;
}

.geo-share-box[hidden] {
    display: none !important;
}

[data-location-status][data-tone="ok"] {
    color: var(--green);
    font-weight: 800;
}

[data-location-status][data-tone="error"] {
    color: var(--red);
    font-weight: 800;
}

[data-location-status][data-tone="loading"] {
    color: var(--blue);
    font-weight: 800;
}

.gps-note,
.location-admin-note {
    border: 1px solid #bde9cd;
    border-radius: 8px;
    background: #ecfdf3;
    color: var(--green);
}

.gps-note {
    display: block;
    margin-top: 6px;
    padding: 7px 9px;
    font-weight: 800;
}

.location-admin-note {
    display: grid;
    gap: 4px;
    padding: 10px 11px;
}

.delivery-date-box,
.delivery-note span {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}

.delivery-date-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 12px;
}

.delivery-date-box span {
    color: var(--muted);
    font-weight: 750;
}

.delivery-note span {
    display: block;
    color: #344054;
    font-weight: 650;
    line-height: 1.4;
    padding: 10px 11px;
}

.two-col-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.two-col-fields small {
    grid-column: 1 / -1;
}

.summary-box {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.summary-box div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
}

.summary-box div + div {
    border-top: 1px solid var(--line);
}

.success-mark {
    width: 54px;
    height: 54px;
    margin: 0 auto 16px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #dff7ea;
    color: var(--green);
    font-size: 2rem;
    font-weight: 900;
}
