/* Taxi Umrah Booking — Catalog Styles */

/* ── Grid ── */
.txm-catalog {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px 100px;
}

.txm-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

@media (max-width: 992px) {
    .txm-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* ── Card ── */
.txm-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.txm-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.14);
}

/* ── Card Image ── */
.txm-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #e8eef0;
    overflow: hidden;
}

.txm-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.txm-seats-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #FFB41D;
    color: #0A3E41;
    font-weight: 700;
    font-size: 13px;
    padding: 5px 14px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

/* ── Card Body ── */
.txm-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.txm-card-title {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    color: #0A3E41;
}

/* ── Route Select ── */
.txm-route-select label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}

.txm-route-dropdown {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #dce3e5;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease;
    appearance: auto;
}

.txm-route-dropdown:focus {
    outline: none;
    border-color: #0A3E41;
}

/* ── Price Display ── */
.txm-price-display {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
}

.txm-price-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.txm-price-value {
    font-size: 22px;
    font-weight: 800;
    color: #0A3E41;
}

/* ── Add to Cart Button ── */
.txm-add-to-cart {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #0A3E41;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
    margin-top: auto;
}

.txm-add-to-cart:hover:not(:disabled) {
    background: #FFB41D;
    color: #0A3E41;
}

.txm-add-to-cart:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ── Floating Cart Bar ── */
.txm-cart-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: #0A3E41;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.txm-cart-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.txm-cart-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}

.txm-cart-icon {
    font-size: 22px;
}

.txm-cart-divider {
    opacity: 0.4;
}

.txm-cart-total {
    color: #FFB41D;
    font-size: 18px;
    font-weight: 800;
}

.txm-cart-actions {
    display: flex;
    gap: 10px;
}

.txm-view-cart-btn {
    padding: 10px 22px;
    border: 2px solid #FFB41D;
    border-radius: 8px;
    background: transparent;
    color: #FFB41D;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.txm-view-cart-btn:hover {
    background: #FFB41D;
    color: #0A3E41;
}

.txm-checkout-btn {
    padding: 10px 22px;
    border: none;
    border-radius: 8px;
    background: #FFB41D;
    color: #0A3E41;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.txm-checkout-btn:hover {
    background: #ffc94d;
}

/* ── Cart Drawer ── */
.txm-cart-drawer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
}

.txm-cart-drawer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.txm-cart-drawer-panel {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 400px;
    max-width: 90vw;
    background: #fff;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.15);
}

.txm-cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid #eee;
}

.txm-cart-drawer-header h3 {
    margin: 0;
    font-size: 20px;
    color: #0A3E41;
}

.txm-cart-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 0 4px;
}

.txm-cart-close:hover {
    color: #333;
}

.txm-cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 22px;
}

/* ── Cart Item ── */
.txm-cart-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}

.txm-cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.txm-cart-item-name {
    font-weight: 700;
    font-size: 15px;
    color: #0A3E41;
}

.txm-cart-item-remove {
    background: none;
    border: none;
    color: #cc3333;
    font-size: 13px;
    cursor: pointer;
    padding: 2px 6px;
    font-weight: 600;
}

.txm-cart-item-remove:hover {
    text-decoration: underline;
}

.txm-cart-item-route {
    font-size: 13px;
    color: #666;
}

.txm-cart-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.txm-cart-item-price {
    font-weight: 700;
    color: #0A3E41;
    font-size: 15px;
}

.txm-qty-controls {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid #dce3e5;
    border-radius: 6px;
    overflow: hidden;
}

.txm-qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f5f5;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    color: #0A3E41;
    display: flex;
    align-items: center;
    justify-content: center;
}

.txm-qty-btn:hover {
    background: #e0e0e0;
}

.txm-qty-value {
    width: 36px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    border-left: 1px solid #dce3e5;
    border-right: 1px solid #dce3e5;
    line-height: 32px;
}

/* ── Cart Drawer Footer ── */
.txm-cart-drawer-footer {
    padding: 18px 22px;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.txm-cart-drawer-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    color: #0A3E41;
}

.txm-checkout-btn-full {
    width: 100%;
    text-align: center;
    padding: 14px;
    font-size: 16px;
}

/* ── Cart Empty State ── */
.txm-cart-empty {
    text-align: center;
    padding: 40px 0;
    color: #999;
    font-size: 15px;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .txm-cart-bar-inner {
        flex-direction: column;
        text-align: center;
        padding: 12px 16px;
        gap: 10px;
    }

    .txm-cart-actions {
        width: 100%;
    }

    .txm-view-cart-btn,
    .txm-checkout-btn {
        flex: 1;
    }
}
