/* ============================================================
 * Zhuoyan Lab — Custom Overrides & Utilities
 * ============================================================ */

/* Auth & dashboard cards */
.auth-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 2.5rem;
}

/* Product detail page */
.product-detail-img {
    background: linear-gradient(135deg, var(--teal-50), var(--gray-100));
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-soft);
}

.product-detail-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--teal-700);
}

/* Cart table (admin) */
.cart-table {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

/* Make sure all tables are horizontally scrollable on mobile */
.table-responsive {
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
}

/* For mobile, ensure container doesn't overflow on x-axis EXCEPT for admin pages */
@media (max-width: 991.98px) {
    :not(.is-admin) .container {
        overflow-x: hidden;
    }
    :not(.is-admin) .table-responsive {
        width: 100%;
        margin-bottom: 1rem;
        border-radius: var(--radius-lg);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    /* Admin container - allow table-responsive to work */
    .is-admin .container {
        overflow-x: visible !important;
    }
}

/* Admin-specific styles for mobile horizontal scrolling */
@media (max-width: 991.98px) {
    /* Override global overflow-x: hidden from style.css */
    body.is-admin {
        overflow-x: auto !important;
        width: 100% !important;
    }
    .is-admin main {
        overflow-x: visible !important;
        width: 100%;
    }
    .is-admin .page-header {
        overflow-x: hidden;
        width: 100%;
    }
    .is-admin .section {
        overflow-x: visible !important;
        width: 100%;
    }
    .is-admin .container {
        overflow-x: visible !important;
        width: 100%;
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
    .is-admin .table-responsive {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        max-width: 100vw;
        width: 100%;
        display: block;
        padding-bottom: 10px; /* Space for scrollbar */
        border-radius: var(--radius-lg);
    }
    .is-admin .cart-table {
        overflow: visible !important;
        display: block;
        width: 100%;
    }
    .is-admin .table {
        min-width: 1000px; /* Ensure table has enough width to scroll */
        width: auto;
    }
    /* Ensure all tables in admin have horizontal scroll */
    .is-admin table {
        min-width: 800px;
    }
}

.cart-table th {
    background: var(--gray-50);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-500);
    font-weight: 600;
    padding: 1rem 1.25rem;
    border: none;
}

.cart-table td {
    padding: 1.25rem;
    vertical-align: middle;
    border-color: var(--gray-100);
}

/* ============================================================
   Cart Page — Advanced
   ============================================================ */

.cart-panel {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--gray-100);
    overflow: hidden;
}

.cart-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
    background: var(--gray-50);
}

.cart-panel-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: var(--navy-800);
}

.cart-item-count {
    font-weight: 500;
    color: var(--gray-500);
    font-size: 0.95rem;
}

.cart-clear-btn {
    font-size: 0.85rem;
    color: var(--gray-500);
    text-decoration: none;
    padding: 0;
    border: none;
}

.cart-clear-btn:hover {
    color: #dc2626;
}

.cart-items-list {
    display: flex;
    flex-direction: column;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto auto;
    gap: 1.25rem;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-100);
    transition: background 0.2s ease;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item:hover {
    background: var(--gray-50);
}

.cart-item-image {
    display: block;
    width: 100px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--teal-50), var(--gray-100));
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    min-width: 0;
}

.cart-item-name {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    color: var(--navy-800);
    margin-bottom: 0.25rem;
    text-decoration: none;
}

.cart-item-name:hover {
    color: var(--teal-600);
}

.cart-item-unit {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.cart-item-subtotal {
    text-align: right;
    min-width: 90px;
}

.cart-item-subtotal strong {
    font-size: 1.1rem;
    color: var(--teal-700);
}

.cart-item-subtotal-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 0.15rem;
}

.cart-item-remove {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray-200);
    background: var(--white);
    border-radius: 10px;
    color: var(--gray-500);
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.cart-item-remove:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

/* Quantity controls */
.qty-control {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--gray-200);
    border-radius: 10px;
    overflow: hidden;
    background: var(--white);
}

.qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--gray-50);
    color: var(--navy-800);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.qty-btn:hover {
    background: var(--teal-50);
    color: var(--teal-700);
}

.qty-input {
    width: 48px;
    height: 36px;
    border: none;
    border-left: 1px solid var(--gray-200);
    border-right: 1px solid var(--gray-200);
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--navy-800);
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-input:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(20, 184, 166, 0.25);
}

/* Order summary */
.cart-summary {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 100px;
}

.cart-summary-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--navy-800);
    margin-bottom: 1.25rem;
}

.cart-promo {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--gray-100);
}

.cart-summary-lines {
    margin: 0 0 1rem;
}

.cart-summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.cart-summary-line dt {
    color: var(--gray-600);
    font-weight: 500;
    margin: 0;
}

.cart-summary-line dd {
    margin: 0;
    font-weight: 600;
    color: var(--navy-800);
}

.cart-summary-discount dd {
    color: var(--teal-600);
}

.cart-free-shipping-note {
    font-size: 0.8rem;
    color: var(--teal-600);
    background: var(--teal-50);
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.cart-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-top: 2px solid var(--gray-100);
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy-800);
}

.cart-summary-total strong {
    font-size: 1.5rem;
    color: var(--teal-700);
}

.cart-summary-trust {
    list-style: none;
    padding: 0;
}

.cart-summary-trust li {
    position: relative;
    padding-left: 1.1rem;
    margin-bottom: 0.35rem;
}

.cart-summary-trust li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--teal-500);
    font-weight: 700;
}

.cart-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--gray-100);
}

.cart-empty-icon {
    color: var(--gray-300);
    margin-bottom: 1.5rem;
}

.cart-empty h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--navy-800);
}

.cart-empty p {
    color: var(--gray-500);
    margin-bottom: 0;
}

@media (max-width: 991.98px) {
    .cart-item {
        grid-template-columns: 80px 1fr auto;
        grid-template-rows: auto auto;
        gap: 1rem;
    }

    .cart-item-qty {
        display: none !important;
    }

    .cart-item-subtotal {
        grid-column: 2;
        text-align: left;
    }

    .cart-item-remove {
        grid-row: 1 / span 2;
        grid-column: 3;
        align-self: start;
    }

    .cart-summary {
        position: static;
    }
}

/* ============================================================
   Checkout Page
   ============================================================ */

.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 520px;
    margin: 0 auto;
}

.checkout-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--gray-400);
    font-weight: 500;
}

.checkout-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    background: var(--gray-100);
    color: var(--gray-500);
    border: 2px solid var(--gray-200);
}

.checkout-step.active .checkout-step-num {
    background: var(--teal-500);
    color: var(--white);
    border-color: var(--teal-500);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.2);
}

.checkout-step.done .checkout-step-num {
    background: var(--teal-50);
    color: var(--teal-700);
    border-color: var(--teal-200);
}

.checkout-step.active {
    color: var(--navy-800);
}

.checkout-step-line {
    flex: 1;
    height: 2px;
    background: var(--gray-200);
    margin: 0 0.75rem;
    margin-bottom: 1.5rem;
    max-width: 80px;
}

.checkout-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-soft);
    padding: 1.75rem;
}

.checkout-card-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy-800);
    margin-bottom: 1.25rem;
}

.checkout-card-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
    color: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.payment-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.payment-method-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-600);
    transition: var(--transition);
    margin: 0;
    background: var(--white);
}

.payment-option:hover {
    border-color: var(--gray-300);
}

.payment-option:has(input:checked),
.payment-option.active {
    border-color: var(--teal-500);
    background: var(--teal-50);
    color: var(--teal-700);
}

.payment-method-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-600);
    transition: var(--transition);
    margin: 0;
}

.payment-method-tab input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-method-tab.active {
    border-color: var(--teal-500);
    background: var(--teal-50);
    color: var(--teal-700);
}

.paypal-notice {
    background: var(--gray-50);
    border: 1px dashed var(--gray-200);
    border-radius: 12px;
    padding: 1.25rem;
}

.checkout-summary {
    top: 100px;
}

.checkout-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.9rem;
}

.checkout-item:last-child {
    border-bottom: none;
}

.checkout-item-name {
    flex: 1;
    color: var(--navy-800);
    font-weight: 500;
}

.checkout-item-qty {
    color: var(--gray-500);
    font-size: 0.8rem;
}

.checkout-item-price {
    font-weight: 600;
    color: var(--teal-700);
}

.checkout-items {
    max-height: 220px;
    overflow-y: auto;
}

/* Order success */
.order-success-card {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--gray-100);
}

.order-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--teal-50);
    color: var(--teal-600);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-success-title {
    font-size: 1.75rem;
    color: var(--navy-800);
    margin-bottom: 0.5rem;
}

.order-success-lead {
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.order-success-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    text-align: left;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.order-meta-item .label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-500);
    margin-bottom: 0.2rem;
}

.order-success-items,
.order-success-shipping {
    text-align: left;
    margin-bottom: 1.25rem;
    padding: 1rem 0;
    border-top: 1px solid var(--gray-100);
}

.order-success-items h3,
.order-success-shipping h3 {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    color: var(--navy-800);
}

.order-success-line {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    font-size: 0.9rem;
    color: var(--gray-600);
}

@media (max-width: 575.98px) {
    .payment-methods {
        grid-template-columns: 1fr;
    }

    .payment-method-options {
        grid-template-columns: 1fr;
    }

    .order-success-meta {
        grid-template-columns: 1fr;
    }

    .checkout-steps {
        font-size: 0.7rem;
    }

    .checkout-step-line {
        max-width: 40px;
    }
}

@media (max-width: 575.98px) {
    .cart-item {
        grid-template-columns: 72px 1fr 40px;
        padding: 1rem;
    }

    .cart-item-image {
        width: 72px;
        height: 72px;
    }

    .cart-panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Admin sidebar hint */
.admin-badge {
    font-size: 0.7rem;
    background: var(--teal-100);
    color: var(--teal-700);
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    font-weight: 600;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray-500);
}

.empty-state svg {
    opacity: 0.3;
    margin-bottom: 1rem;
}

/* Alert styling */
.alert-teal {
    background: var(--teal-50);
    border: 1px solid var(--teal-100);
    color: var(--teal-700);
    border-radius: 10px;
}

/* Quantity input */
.qty-input {
    width: 70px;
    text-align: center;
    border-radius: 8px;
}

/* ============================================================
   Contact Page
   ============================================================ */

.contact-info-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    height: 100%;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.contact-info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
    border-color: rgba(20, 184, 166, 0.2);
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--teal-50), var(--teal-100));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal-600);
    margin-bottom: 1rem;
}

.contact-info-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy-800);
    margin-bottom: 0.5rem;
}

.contact-info-card p {
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
    color: var(--gray-600);
}

.contact-info-card a {
    color: var(--teal-700);
    font-weight: 500;
}

.contact-info-card a:hover {
    color: var(--teal-500);
}

.contact-info-meta {
    font-size: 0.8rem;
    color: var(--gray-400);
}

.contact-sidebar-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
}

.contact-help-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-help-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.contact-help-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-help-list li:first-child {
    padding-top: 0;
}

.contact-help-list strong {
    display: block;
    font-size: 0.9rem;
    color: var(--navy-800);
    margin-bottom: 0.25rem;
}

.contact-help-list span {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.contact-social {
    display: flex;
    gap: 0.75rem;
}

.contact-social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    color: var(--navy-700);
    transition: var(--transition);
}

.contact-social-link:hover {
    background: var(--teal-600);
    border-color: var(--teal-600);
    color: var(--white);
    transform: translateY(-2px);
}

.contact-map-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--gray-100);
    min-height: 420px;
    background: var(--gray-100);
}

.contact-map {
    width: 100%;
    height: 420px;
    min-height: 420px;
    border: 0;
    display: block;
    vertical-align: middle;
}

.contact-map-overlay {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 2;
    pointer-events: none;
}

.contact-map-pin-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-soft);
    max-width: 280px;
    pointer-events: auto;
}

.contact-map-pin-card h4 {
    font-size: 1rem;
    margin-bottom: 0.35rem;
    color: var(--navy-800);
}

.contact-map-pin-card p {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    color: var(--gray-500);
}

.contact-accordion .accordion-item {
    border: 1px solid var(--gray-100);
    border-radius: 12px !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.contact-accordion .accordion-button {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--navy-800);
    background: var(--white);
    padding: 1.1rem 1.25rem;
}

.contact-accordion .accordion-button:not(.collapsed) {
    background: var(--teal-50);
    color: var(--teal-700);
    box-shadow: none;
}

.contact-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: var(--teal-100);
}

.contact-accordion .accordion-body {
    font-size: 0.9rem;
    color: var(--gray-600);
    padding: 0 1.25rem 1.25rem;
}

/* ============================================================
   About Page
   ============================================================ */

.value-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    height: 100%;
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
    border-color: rgba(20, 184, 166, 0.15);
}

.value-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--teal-100);
    line-height: 1;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.value-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    color: var(--navy-800);
}

.value-card p {
    font-size: 0.875rem;
    margin: 0;
    color: var(--gray-500);
}

.quality-pillar {
    display: flex;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    height: 100%;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.quality-pillar:hover {
    border-color: rgba(20, 184, 166, 0.2);
    box-shadow: var(--shadow-medium);
}

.quality-pillar-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--teal-50), var(--teal-100));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal-600);
}

.quality-pillar h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--navy-800);
}

.quality-pillar p {
    font-size: 0.8rem;
    margin: 0;
    color: var(--gray-500);
    line-height: 1.5;
}

/* Sidebar styles */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1040;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: var(--navy-900);
    z-index: 1050;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 700;
}

.sidebar-brand .brand-icon {
    color: var(--teal-500);
}

.sidebar-close {
    background: none;
    border: none;
    color: var(--white);
    padding: 0.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.sidebar-close:hover {
    color: var(--teal-500);
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    margin: 0;
    list-style: none;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.2s;
}

.sidebar-link:hover {
    background: rgba(20, 184, 166, 0.1);
    color: var(--teal-500);
}

.sidebar-cart {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-footer {
    padding: 1rem 0;
}

.sidebar-user {
    padding: 1rem 1.5rem;
}

.sidebar-user-name {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.sidebar-user-actions {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-auth {
    padding: 1rem 1.5rem;
}

@media (min-width: 992px) {
    .sidebar,
    .sidebar-overlay {
        display: none !important;
    }
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    position: relative;
}

.process-step {
    text-align: center;
    padding: 1.5rem 1rem;
}

.process-step-marker {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.35);
}

.process-step-content h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--navy-800);
}

.process-step-content p {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin: 0;
}

.cert-badge {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1rem;
    text-align: center;
    height: 100%;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.cert-badge:hover {
    transform: translateY(-3px);
    border-color: var(--teal-100);
    box-shadow: var(--shadow-medium);
}

.cert-badge-icon {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--teal-600);
    background: var(--teal-50);
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    letter-spacing: -0.02em;
}

.cert-badge span {
    font-size: 0.75rem;
    color: var(--gray-500);
    line-height: 1.4;
    display: block;
}

.about-checklist {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}

.about-checklist li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: var(--gray-600);
}

.about-checklist li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45rem;
    width: 8px;
    height: 8px;
    background: var(--teal-500);
    border-radius: 50%;
}

.about-facility-visual {
    background: linear-gradient(160deg, var(--navy-900), var(--navy-800));
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    box-shadow: var(--shadow-medium);
}

.about-facility-stat {
    text-align: center;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
}

.about-facility-stat-value {
    display: block;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--teal-500);
    line-height: 1.2;
}

.about-facility-stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.milestones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.milestone-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border-left: 3px solid var(--teal-500);
}

.milestone-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.milestone-year {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--teal-600);
    background: var(--teal-50);
    padding: 0.25rem 0.65rem;
    border-radius: 100px;
    margin-bottom: 0.75rem;
    letter-spacing: 0.04em;
}

.milestone-card h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--navy-800);
}

.milestone-card p {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin: 0;
}

@media (max-width: 767.98px) {
    .contact-map {
        height: 300px;
    }

    .contact-map-overlay {
        position: static;
        margin-top: 1rem;
    }

    .contact-map-pin-card {
        max-width: 100%;
    }

    .process-timeline {
        grid-template-columns: 1fr;
    }
}

/* Hero Section: Single static background with dark overlay */
.hero-pro {
    position: relative;
    overflow: hidden;
    min-height: 80vh;
}
.hero-pro-bg {
    position: absolute;
    inset: 0;
}
.hero-pro-slide {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    width: 100%;
    height: 100%;
}
.hero-pro-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35) !important; /* 35% dark overlay for text readability */
    z-index: 1;
}
.hero-pro-container {
    position: relative;
    z-index: 10;
}

/* Product grid: horizontal scroll on mobile */
@media (max-width: 991.98px) {
    #featured-products .row.g-4,
    .section .row.g-4,
    .row.product-grid,
    .row[class*='g-']:has(.product-card),
    .row.features-grid {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: 20px !important;
        gap: 16px !important;
        scroll-snap-type: x mandatory !important;
        width: 100% !important;
    }

    #featured-products .row.g-4 > [class*='col-'],
    .section .row.g-4 > [class*='col-'],
    .row.product-grid > [class*='col-'],
    .row[class*='g-']:has(.product-card) > [class*='col-'],
    .row.features-grid > [class*='col-'] {
        flex: 0 0 auto !important;
        width: 85% !important;
        max-width: 85% !important;
        scroll-snap-align: start !important;
    }
}
