/* ============================================================
   components.css — Woodview Butchery UI Components
   v1.0
   ============================================================ */

/* ============================================================
   1. Buttons
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 24px;
    border: 2px solid transparent;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    white-space: nowrap;
    line-height: 1.4;
    user-select: none;
}

.btn:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

/* Primary — gold bg, black text */
.btn-primary {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--black);
}
.btn-primary:hover {
    background: var(--gold-hover);
    border-color: var(--gold-hover);
    color: var(--black);
}

/* Secondary — black bg, white text */
.btn-secondary {
    background: var(--black);
    border-color: var(--black);
    color: var(--white);
}
.btn-secondary:hover {
    background: var(--dark-grey);
    border-color: var(--gold);
    color: var(--white);
}

/* Outline — transparent, gold border */
.btn-outline {
    background: transparent;
    border-color: var(--gold);
    color: var(--gold);
}
.btn-outline:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--black);
}

/* Ghost — transparent, light border */
.btn-ghost {
    background: transparent;
    border-color: var(--border);
    color: var(--dark-grey);
}
.btn-ghost:hover {
    background: var(--light);
    border-color: var(--mid-grey);
    color: var(--black);
}

/* Danger — red bg, white text */
.btn-danger {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}
.btn-danger:hover {
    background: var(--red-hover);
    border-color: var(--red-hover);
    color: var(--white);
}

/* Link — no border/bg, gold text */
.btn-link {
    background: none;
    border-color: transparent;
    color: var(--gold);
    padding-left: 0;
    padding-right: 0;
}
.btn-link:hover {
    text-decoration: underline;
    color: var(--gold-hover);
}

/* Sizes */
.btn-sm {
    padding: 6px 16px;
    font-size: 0.82rem;
}
.btn-lg {
    padding: 13px 32px;
    font-size: 1rem;
}
.btn-xl {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* Full width */
.btn-full {
    width: 100%;
}

/* Icon-only square button */
.btn-icon {
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
}
.btn-icon.btn-sm {
    width: 32px;
    height: 32px;
}
.btn-icon.btn-lg {
    width: 48px;
    height: 48px;
}

/* Disabled states */
.btn:disabled,
.btn[aria-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ============================================================
   2. Product Card
   ============================================================ */
.product-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Image wrapper — 1:1 aspect ratio */
.product-card-img-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--light);
}

.product-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-card-img-wrap img {
    transform: scale(1.04);
}

/* Badges — top-left absolute */
.product-card-badges {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 2;
}

/* Optional quick-view overlay on hover */
.product-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 13, 13, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}

.product-card:hover .product-card-overlay {
    opacity: 1;
}

/* Product info */
.product-card-info {
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    flex: 1;
}

.product-card-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.product-card-name a {
    color: var(--black);
    text-decoration: none;
    transition: color var(--transition);
}

.product-card-name a:hover {
    color: var(--gold);
}

.product-card-sku {
    font-size: 0.75rem;
    color: var(--mid-grey);
}

/* Pricing */
.product-card-pricing {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-top: var(--space-xs);
}

.price-current {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold);
}

.price-old {
    font-size: 0.85rem;
    color: var(--mid-grey);
    text-decoration: line-through;
}

.price-sale {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--red);
}

/* Per-kg price badge */
.price-per-kg {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--dark-grey);
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 2px 8px;
}

/* Halaal moon badge on card */
.halaal-badge-inline {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    background: #1a4d1a;
    border-radius: var(--radius-pill);
    padding: 2px 8px;
}

/* Card footer actions */
.product-card-actions {
    padding: var(--space-sm) var(--space-md) var(--space-md);
    display: flex;
    gap: var(--space-sm);
}

/* ============================================================
   3. Products Grid
   ============================================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--space-lg);
}

/* Horizontal scroll on mobile */
.scroll-x-mobile {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.scroll-x-mobile::-webkit-scrollbar {
    height: 4px;
}

.scroll-x-mobile::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: var(--space-md);
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }
}

/* ============================================================
   4. Badges
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.badge-new {
    background: var(--gold);
    color: var(--black);
}

.badge-sale {
    background: var(--red);
    color: var(--white);
}

.badge-halaal {
    background: #1a4d1a;
    color: var(--white);
}

.badge-low-stock {
    background: #c97a00;
    color: var(--white);
}

.badge-sold-out {
    background: var(--dark-grey);
    color: var(--white);
}

.badge-featured {
    background: transparent;
    border: 1.5px solid var(--gold);
    color: var(--gold);
}

/* ============================================================
   5. Forms
   ============================================================ */
.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 4px;
    color: var(--dark-grey);
}

.form-label .required {
    color: var(--red);
    margin-left: 2px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: var(--white);
    color: var(--black);
    transition: border-color var(--transition), box-shadow var(--transition);
    appearance: none;
}

.form-control:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

.form-control::placeholder {
    color: var(--mid-grey);
}

.form-control.is-invalid {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(179, 32, 42, 0.12);
}

/* Select */
select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%234A4A4A' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

/* Textarea */
textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Custom Checkbox & Radio */
.form-check {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--dark-grey);
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--gold);
    cursor: pointer;
    flex-shrink: 0;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--mid-grey);
    margin-top: 4px;
}

.form-error {
    font-size: 0.8rem;
    color: var(--error);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Row layout for form */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

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

/* ============================================================
   6. Cards (General)
   ============================================================ */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding-bottom: var(--space-md);
    margin-bottom: var(--space-md);
    border-bottom: 1px solid var(--border);
}

.card-header-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--black);
}

.card-body {
    /* inherits card padding */
}

.card-footer {
    padding-top: var(--space-md);
    margin-top: var(--space-md);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.card-hover {
    transition: box-shadow var(--transition), transform var(--transition);
    cursor: pointer;
}

.card-hover:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

/* ============================================================
   7. Modals
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 560px;
    width: 100%;
    padding: var(--space-xl);
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: slideInUp 0.25s ease;
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
    gap: var(--space-md);
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--black);
    line-height: 1.3;
}

.modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--light);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    color: var(--dark-grey);
    font-size: 1rem;
    flex-shrink: 0;
    transition: background var(--transition), color var(--transition);
}

.modal-close:hover {
    background: var(--gold-light);
    color: var(--gold);
}

.modal-body {
    margin-bottom: var(--space-lg);
    color: var(--dark-grey);
    line-height: 1.6;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-sm);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border);
}

@media (max-width: 480px) {
    .modal {
        padding: var(--space-lg);
    }

    .modal-footer {
        flex-direction: column-reverse;
    }

    .modal-footer .btn {
        width: 100%;
    }
}

/* ============================================================
   8. Toast Notifications
   ============================================================ */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    max-width: 360px;
    pointer-events: none;
}

.toast {
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius);
    padding: var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    box-shadow: var(--shadow-md);
    animation: slideInRight 0.25s ease;
    pointer-events: all;
    gap: var(--space-sm);
}

.toast-body {
    flex: 1;
    font-size: 0.88rem;
    color: var(--dark-grey);
    line-height: 1.5;
}

.toast-title {
    font-weight: 700;
    color: var(--black);
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.toast-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--mid-grey);
    font-size: 1rem;
    padding: 0;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: color var(--transition);
}

.toast-close:hover {
    color: var(--black);
}

.toast-success { border-left-color: var(--success); }
.toast-error   { border-left-color: var(--error); }
.toast-warning { border-left-color: var(--warning); }
.toast-info    { border-left-color: var(--info); }

@media (max-width: 480px) {
    .toast-container {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
    }
}

/* ============================================================
   9. Flash Messages (page-level)
   ============================================================ */
.flash {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    font-size: 0.9rem;
    line-height: 1.5;
}

.flash-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.flash-success {
    background: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #a5d6a7;
}

.flash-error {
    background: #fce4e4;
    color: var(--red);
    border: 1px solid #f5c6cb;
}

.flash-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
}

.flash-info {
    background: #e3f2fd;
    color: #0d47a1;
    border: 1px solid #90caf9;
}

/* ============================================================
   10. Pagination
   ============================================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin: var(--space-xl) 0;
    flex-wrap: wrap;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--dark-grey);
    text-decoration: none;
    background: var(--white);
    cursor: pointer;
    transition: all var(--transition);
}

.page-link:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: var(--gold-light);
}

.page-current,
.page-link.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--black);
    pointer-events: none;
}

.page-link.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.page-ellipsis {
    color: var(--mid-grey);
    font-size: 0.88rem;
    padding: 0 4px;
}

/* ============================================================
   11. Quantity Stepper
   ============================================================ */
.qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.qty-stepper button {
    width: 36px;
    height: 36px;
    background: var(--light);
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--black);
    transition: background var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.qty-stepper button:hover {
    background: var(--gold-light);
    color: var(--gold);
}

.qty-stepper button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.qty-stepper input {
    width: 52px;
    height: 36px;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    text-align: center;
    font-size: 0.95rem;
    font-family: var(--font-body);
    color: var(--black);
    background: var(--white);
}

.qty-stepper input:focus {
    outline: none;
    background: var(--gold-light);
}

/* ============================================================
   12. Weight Selector Widget
   ============================================================ */
.weight-selector {
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    margin: var(--space-md) 0;
}

.weight-selector-label {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--dark-grey);
    margin-bottom: var(--space-sm);
}

.weight-slider-wrap {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.weight-range {
    width: 100%;
    accent-color: var(--gold);
    height: 4px;
    cursor: pointer;
    flex: 1;
    min-width: 120px;
}

.weight-input-group {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    flex-shrink: 0;
}

.weight-input {
    width: 70px;
    padding: 6px 10px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    text-align: center;
    color: var(--black);
    background: var(--white);
}

.weight-input:focus {
    outline: none;
    border-color: var(--border-focus);
}

.weight-unit {
    font-size: 0.85rem;
    color: var(--mid-grey);
    font-weight: 600;
}

.weight-display {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold);
    min-width: 80px;
}

.weight-price-display {
    font-size: 0.9rem;
    color: var(--dark-grey);
    margin-top: var(--space-xs);
}

/* ============================================================
   13. Cart Drawer (slide-in)
   ============================================================ */
.cart-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1400;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

.cart-drawer-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 380px;
    background: var(--white);
    z-index: 1500;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}

.cart-drawer.open {
    transform: translateX(0);
}

.cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.cart-drawer-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--black);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.cart-drawer-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--light);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    color: var(--dark-grey);
    font-size: 1rem;
    transition: background var(--transition), color var(--transition);
}

.cart-drawer-close:hover {
    background: var(--gold-light);
    color: var(--gold);
}

.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.cart-drawer-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-xxl) var(--space-lg);
    color: var(--mid-grey);
    gap: var(--space-md);
}

.cart-drawer-empty-icon {
    font-size: 3rem;
    opacity: 0.4;
}

/* Cart Item Row */
.cart-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border);
}

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

.cart-item-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    flex-shrink: 0;
    background: var(--light);
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--black);
    line-height: 1.3;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-variant {
    font-size: 0.75rem;
    color: var(--mid-grey);
    margin-bottom: var(--space-sm);
}

.cart-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
}

.cart-item-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gold);
}

.cart-item-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--mid-grey);
    font-size: 0.85rem;
    padding: 2px;
    transition: color var(--transition);
    display: flex;
    align-items: center;
}

.cart-item-remove:hover {
    color: var(--red);
}

/* Cart Drawer Footer */
.cart-drawer-footer {
    padding: var(--space-lg);
    border-top: 1px solid var(--border);
    flex-shrink: 0;
    background: var(--off-white);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.cart-subtotal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}

.cart-subtotal-label {
    color: var(--dark-grey);
    font-weight: 600;
}

.cart-subtotal-amount {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--black);
}

@media (max-width: 480px) {
    .cart-drawer {
        width: 100%;
    }
}

/* ============================================================
   14. Loading Spinner
   ============================================================ */
.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    flex-shrink: 0;
}

.spinner-sm {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

.spinner-lg {
    width: 48px;
    height: 48px;
    border-width: 4px;
}

.loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--space-xl);
}

/* ============================================================
   15. Tables
   ============================================================ */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.table th {
    background: var(--black);
    color: var(--white);
    padding: 10px 14px;
    text-align: left;
    font-family: var(--font-heading);
    font-weight: 700;
    white-space: nowrap;
}

.table th:first-child { border-radius: var(--radius-lg) 0 0 0; }
.table th:last-child  { border-radius: 0 var(--radius-lg) 0 0; }

.table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--dark-grey);
    vertical-align: middle;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table tbody tr:hover {
    background: var(--light);
}

.table tfoot td {
    padding: 12px 14px;
    font-weight: 700;
    color: var(--black);
    border-top: 2px solid var(--border);
    background: var(--off-white);
}

/* ============================================================
   16. Order Status Badges
   ============================================================ */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.status-pending    { background: #fff8e1; color: #795548; }
.status-processing { background: #e3f2fd; color: #1a6fa8; }
.status-confirmed  { background: #e0f2f1; color: #00695c; }
.status-packed     { background: #f3e5f5; color: #6a1b9a; }
.status-dispatched { background: #fff3e0; color: #c97a00; }
.status-delivered  { background: #e8f5e9; color: #2d7a2d; }
.status-cancelled  { background: #fce4e4; color: var(--red); }
.status-refunded   { background: #f5f5f5; color: var(--dark-grey); }

/* ============================================================
   17. Delivery Date / Slot Picker
   ============================================================ */
.slot-picker-section {
    margin: var(--space-lg) 0;
}

.slot-picker-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--black);
}

.slot-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: var(--space-sm);
}

.slot-card {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-md);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    background: var(--white);
    user-select: none;
}

.slot-card:hover {
    border-color: var(--gold);
    background: var(--gold-light);
}

.slot-card.selected {
    border-color: var(--gold);
    background: var(--gold-light);
    color: var(--black);
}

.slot-card.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.slot-card-date {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--black);
    margin-bottom: 2px;
}

.slot-card-time {
    font-size: 0.78rem;
    color: var(--mid-grey);
}

.slot-card.selected .slot-card-time {
    color: var(--dark-grey);
}

/* ============================================================
   18. Halaal Section / Trust Strip
   ============================================================ */
.trust-strip {
    background: var(--black);
    color: var(--white);
    padding: var(--space-xl) 0;
}

.trust-strip-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    text-align: center;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

.trust-item-icon {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
    line-height: 1;
}

.trust-item-title {
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.trust-item-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .trust-strip-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
}

@media (max-width: 480px) {
    .trust-strip-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

/* ============================================================
   19. Animations
   ============================================================ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(32px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.5; }
}

/* Transition utility classes */
.transition-fast   { transition: all 0.1s ease; }
.transition-smooth { transition: all 0.35s ease; }
