/**
 * Tasawwaqy Auctions Frontend Stylesheet
 * Brand Identity: Modern, Premium, RTL Arabic, Tasawwaqy Crimson Red (#C61A29)
 */

:root {
    --ts-primary: #c61a29;
    --ts-primary-hover: #a8121f;
    --ts-primary-light: #fff1f2;
    --ts-dark: #1e293b;
    --ts-text: #334155;
    --ts-text-muted: #64748b;
    --ts-border: #e2e8f0;
    --ts-bg-light: #f8fafc;
    --ts-bg-card: #ffffff;
    --ts-success: #10b981;
    --ts-warning: #f59e0b;
    --ts-gold: #d97706;
    --ts-radius-sm: 8px;
    --ts-radius-md: 14px;
    --ts-radius-lg: 20px;
    --ts-shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --ts-shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --ts-shadow-lg: 0 16px 40px rgba(198, 26, 41, 0.12);
    --ts-font: 'Cairo', 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.tasawaqy-auctions-container,
.tasawaqy-single-auction-container,
.tasawaqy-modal-overlay {
    font-family: var(--ts-font);
    color: var(--ts-text);
    box-sizing: border-box;
    line-height: 1.5;
}

.tasawaqy-auctions-container *,
.tasawaqy-single-auction-container *,
.tasawaqy-modal-overlay * {
    box-sizing: border-box;
}

/* ==========================================================================
   Showcase Hero Section
   ========================================================================== */
.tasawaqy-showroom-hero {
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 50%, #fef2f2 100%);
    border: 1px solid #fee2e2;
    border-radius: var(--ts-radius-lg);
    padding: 35px 30px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    box-shadow: var(--ts-shadow-sm);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--ts-primary-light);
    color: var(--ts-primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
    border: 1px solid rgba(198, 26, 41, 0.15);
}

.hero-title {
    font-size: 26px;
    font-weight: 900;
    color: var(--ts-dark);
    margin: 0 0 8px 0;
}

.hero-desc {
    font-size: 15px;
    color: var(--ts-text-muted);
    margin: 0;
    max-width: 580px;
}

.hero-rules-banner {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

.rule-chip {
    background: #ffffff;
    border: 1px solid var(--ts-border);
    border-radius: var(--ts-radius-md);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    transition: transform 0.2s ease;
}

.rule-chip:hover {
    transform: translateY(-2px);
    border-color: #fca5a5;
}

.rule-chip .rule-icon {
    font-size: 24px;
}

.rule-info strong {
    display: block;
    font-size: 13px;
    color: var(--ts-dark);
}

.rule-info span {
    font-size: 12px;
    color: var(--ts-primary);
    font-weight: 700;
}

/* ==========================================================================
   Trust Bar
   ========================================================================== */
.tasawaqy-trust-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--ts-border);
    border-radius: var(--ts-radius-md);
    padding: 14px 20px;
    margin-bottom: 25px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ts-dark);
    box-shadow: var(--ts-shadow-sm);
    flex-wrap: wrap;
    gap: 15px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.trust-item .icon {
    font-size: 16px;
}

/* ==========================================================================
   Filter Bar
   ========================================================================== */
.tasawaqy-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-tabs {
    display: flex;
    background: #f1f5f9;
    padding: 5px;
    border-radius: 50px;
    gap: 4px;
}

.filter-tabs .tab-btn {
    border: none;
    background: transparent;
    padding: 9px 20px;
    border-radius: 50px;
    font-family: var(--ts-font);
    font-size: 14px;
    font-weight: 700;
    color: var(--ts-text-muted);
    cursor: pointer;
    transition: all 0.25s ease;
}

.filter-tabs .tab-btn.active,
.filter-tabs .tab-btn:hover {
    background: #ffffff;
    color: var(--ts-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.filter-tabs .tab-btn.active {
    background: var(--ts-primary);
    color: #ffffff;
}

.filter-search-box {
    position: relative;
    width: 280px;
}

.filter-search-box input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid var(--ts-border);
    border-radius: 50px;
    font-family: var(--ts-font);
    font-size: 14px;
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-search-box input:focus {
    border-color: var(--ts-primary);
    box-shadow: 0 0 0 3px rgba(198, 26, 41, 0.12);
}

.filter-search-box .search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ts-text-muted);
    pointer-events: none;
}

/* ==========================================================================
   Auctions Grid & Card
   ========================================================================== */
.tasawaqy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
    gap: 25px;
}

.tasawaqy-card {
    background: var(--ts-bg-card);
    border: 1px solid var(--ts-border);
    border-radius: var(--ts-radius-lg);
    overflow: hidden;
    box-shadow: var(--ts-shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.tasawaqy-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--ts-shadow-md);
    border-color: #fca5a5;
}

.card-media-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    background: #f8fafc;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tasawaqy-card:hover .card-image {
    transform: scale(1.06);
}

.card-placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #cbd5e1;
}

.card-badge-container {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}

.tasawaqy-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.badge-active {
    background: rgba(198, 26, 41, 0.95);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(198, 26, 41, 0.3);
}

.badge-dot {
    width: 7px;
    height: 7px;
    background: #ffffff;
    border-radius: 50%;
    display: inline-block;
    animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
    0% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.8; }
}

.badge-scheduled {
    background: rgba(30, 41, 59, 0.85);
    color: #ffffff;
}

.badge-ended {
    background: rgba(100, 116, 139, 0.9);
    color: #ffffff;
}

.bids-counter-chip {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    color: var(--ts-dark);
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 14px 0;
    line-height: 1.4;
    height: 44px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-title a {
    color: var(--ts-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.card-title a:hover {
    color: var(--ts-primary);
}

/* Card Pricing */
.card-pricing-box {
    background: var(--ts-bg-light);
    border: 1px solid var(--ts-border);
    border-radius: var(--ts-radius-md);
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.price-label {
    display: block;
    font-size: 11px;
    color: var(--ts-text-muted);
    font-weight: 600;
}

.price-value-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.current-price-val {
    font-size: 20px;
    font-weight: 900;
    color: var(--ts-primary);
}

.price-value-row .curr {
    font-size: 13px;
    font-weight: 700;
    color: var(--ts-dark);
}

.increment-rule-tag {
    background: #ffffff;
    border: 1px dashed #fca5a5;
    padding: 4px 8px;
    border-radius: var(--ts-radius-sm);
    font-size: 11px;
    font-weight: 700;
    color: var(--ts-primary);
}

/* Card Countdown Timer */
.card-countdown-box {
    border: 1px solid var(--ts-border);
    border-radius: var(--ts-radius-md);
    padding: 12px;
    background: #ffffff;
    margin-bottom: 15px;
}

.timer-label-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--ts-text-muted);
    margin-bottom: 8px;
}

.tasawaqy-timer-digits {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    direction: ltr; /* Keeps D:H:M:S format uniform */
}

.time-block {
    background: #0f172a;
    color: #ffffff;
    border-radius: 6px;
    padding: 4px 6px;
    min-width: 44px;
    text-align: center;
}

.time-block .num {
    display: block;
    font-size: 16px;
    font-weight: 800;
    font-family: monospace, var(--ts-font);
    line-height: 1.1;
}

.time-block .unit {
    display: block;
    font-size: 9px;
    color: #94a3b8;
    font-family: var(--ts-font);
}

.tasawaqy-timer-digits .colon {
    font-weight: 900;
    color: var(--ts-dark);
    font-size: 16px;
}

.timer-ended-msg {
    color: #64748b;
    font-weight: 700;
    font-size: 13px;
    padding: 6px;
    text-align: center;
    background: #f1f5f9;
    border-radius: 6px;
    width: 100%;
}

.card-winner-banner {
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: var(--ts-radius-sm);
    padding: 8px 12px;
    font-size: 12px;
    color: #92400e;
    margin-bottom: 14px;
    text-align: center;
}

/* Action Buttons */
.tasawaqy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 50px;
    font-family: var(--ts-font);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.tasawaqy-btn-bid {
    width: 100%;
    background: var(--ts-primary);
    color: #ffffff;
    padding: 12px 18px;
    font-size: 15px;
    box-shadow: 0 4px 14px rgba(198, 26, 41, 0.25);
}

.tasawaqy-btn-bid:hover {
    background: var(--ts-primary-hover);
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(198, 26, 41, 0.35);
}

.tasawaqy-btn-bid .next-bid-hint {
    font-size: 12px;
    opacity: 0.9;
    font-weight: 500;
}

.tasawaqy-btn-disabled,
.tasawaqy-btn-ended {
    width: 100%;
    background: #f1f5f9;
    color: #94a3b8;
    padding: 12px;
    font-size: 14px;
    cursor: not-allowed;
}

/* ==========================================================================
   Single Auction Page Layout
   ========================================================================== */
.tasawaqy-single-auction-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 0;
}

.single-auction-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 35px;
}

.product-gallery-card {
    background: #ffffff;
    border: 1px solid var(--ts-border);
    border-radius: var(--ts-radius-lg);
    overflow: hidden;
    box-shadow: var(--ts-shadow-sm);
    margin-bottom: 25px;
}

.main-image-wrapper {
    position: relative;
    width: 100%;
    height: 460px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-main-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.status-ribbon {
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.status-ribbon.active { background: var(--ts-primary); }
.status-ribbon.scheduled { background: var(--ts-dark); }
.status-ribbon.ended { background: #64748b; }

.product-description-card {
    background: #ffffff;
    border: 1px solid var(--ts-border);
    border-radius: var(--ts-radius-lg);
    padding: 30px;
    box-shadow: var(--ts-shadow-sm);
}

.product-description-card .section-title {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 15px 0;
    color: var(--ts-dark);
    border-bottom: 2px solid var(--ts-border);
    padding-bottom: 10px;
}

.auction-terms-box {
    margin-top: 25px;
    background: #fff8f8;
    border: 1px solid #fee2e2;
    border-radius: var(--ts-radius-md);
    padding: 20px;
}

.auction-terms-box h4 {
    margin: 0 0 10px 0;
    color: var(--ts-primary);
    font-size: 15px;
}

.auction-terms-box ul {
    margin: 0;
    padding-right: 20px;
    color: var(--ts-text);
    font-size: 14px;
}

.auction-terms-box li {
    margin-bottom: 6px;
}

/* Bidding Room Card */
.bidding-room-card {
    background: #ffffff;
    border: 1px solid var(--ts-border);
    border-radius: var(--ts-radius-lg);
    padding: 30px;
    box-shadow: var(--ts-shadow-md);
    position: sticky;
    top: 20px;
}

.auction-single-title {
    font-size: 24px;
    font-weight: 900;
    color: var(--ts-dark);
    margin: 0 0 12px 0;
    line-height: 1.35;
}

.auction-quick-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--ts-text-muted);
}

.auction-quick-meta strong {
    color: var(--ts-primary);
}

/* Single Timer Box */
.single-timer-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: var(--ts-radius-md);
    padding: 20px;
    color: #ffffff;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
}

.timer-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 12px;
}

.single-countdown-digits {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    direction: ltr;
}

.digit-box {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 8px 12px;
    min-width: 55px;
    text-align: center;
    backdrop-filter: blur(4px);
}

.digit-box .num {
    display: block;
    font-size: 24px;
    font-weight: 900;
    font-family: monospace, var(--ts-font);
    color: #ffffff;
}

.digit-box .lbl {
    display: block;
    font-size: 11px;
    color: #cbd5e1;
    font-family: var(--ts-font);
}

.digit-sep {
    font-size: 24px;
    font-weight: 900;
    color: #64748b;
}

/* Single Price Banner */
.single-price-banner {
    background: var(--ts-primary-light);
    border: 1px solid #fecdd3;
    border-radius: var(--ts-radius-md);
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.price-title {
    display: block;
    font-size: 13px;
    color: var(--ts-text-muted);
    font-weight: 700;
}

.price-number {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.price-number .val {
    font-size: 32px;
    font-weight: 900;
    color: var(--ts-primary);
}

.price-number .currency-label {
    font-size: 18px;
    font-weight: 800;
    color: var(--ts-dark);
}

.bidder-leader-side {
    text-align: left;
}

.leader-title {
    display: block;
    font-size: 12px;
    color: var(--ts-text-muted);
}

.leader-name {
    font-size: 15px;
    color: var(--ts-dark);
}

/* Quick Increments Section */
.quick-increment-section {
    margin-bottom: 18px;
}

.section-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--ts-dark);
    margin-bottom: 8px;
}

.quick-buttons-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.quick-btn {
    background: #ffffff;
    border: 1.5px solid var(--ts-border);
    border-radius: var(--ts-radius-sm);
    padding: 10px 6px;
    font-family: var(--ts-font);
    font-size: 13px;
    font-weight: 800;
    color: var(--ts-dark);
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-btn:hover {
    border-color: var(--ts-primary);
    color: var(--ts-primary);
    background: var(--ts-primary-light);
    transform: translateY(-2px);
}

/* Form inputs */
.tasawaqy-bid-form .form-group {
    margin-bottom: 16px;
}

.tasawaqy-bid-form label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--ts-dark);
    margin-bottom: 6px;
}

.input-with-currency {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-currency input {
    width: 100%;
    padding: 12px 16px 12px 60px;
    border: 1.5px solid var(--ts-border);
    border-radius: var(--ts-radius-md);
    font-family: var(--ts-font);
    font-size: 18px;
    font-weight: 800;
    color: var(--ts-dark);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-with-currency input:focus {
    border-color: var(--ts-primary);
    box-shadow: 0 0 0 3px rgba(198, 26, 41, 0.12);
}

.currency-addon {
    position: absolute;
    left: 16px;
    font-weight: 800;
    color: var(--ts-text-muted);
    font-size: 15px;
    pointer-events: none;
}

.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.tasawaqy-bid-form input[type="text"],
.tasawaqy-bid-form input[type="tel"] {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--ts-border);
    border-radius: var(--ts-radius-md);
    font-family: var(--ts-font);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tasawaqy-bid-form input[type="text"]:focus,
.tasawaqy-bid-form input[type="tel"]:focus {
    border-color: var(--ts-primary);
    box-shadow: 0 0 0 3px rgba(198, 26, 41, 0.12);
}

.field-hint {
    display: block;
    font-size: 11px;
    color: var(--ts-text-muted);
    margin-top: 4px;
}

.tasawaqy-btn-submit-large {
    width: 100%;
    background: var(--ts-primary);
    color: #ffffff;
    padding: 14px 20px;
    font-size: 17px;
    box-shadow: 0 6px 20px rgba(198, 26, 41, 0.3);
    margin-top: 10px;
}

.tasawaqy-btn-submit-large:hover {
    background: var(--ts-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(198, 26, 41, 0.4);
}

/* Feedback Notifications */
.form-feedback-box,
.modal-feedback-box {
    padding: 12px 16px;
    border-radius: var(--ts-radius-md);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 15px;
}

.feedback-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

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

/* Notices */
.auction-notice-box {
    border-radius: var(--ts-radius-md);
    padding: 20px;
    text-align: center;
    margin-bottom: 25px;
}

.notice-ended {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: var(--ts-dark);
}

.notice-scheduled {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

/* Bids History Widget */
.tasawaqy-bids-history-wrapper {
    margin-top: 25px;
    border-top: 1px solid var(--ts-border);
    padding-top: 20px;
}

.bids-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.bids-history-header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: var(--ts-dark);
    display: flex;
    align-items: center;
    gap: 6px;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--ts-success);
    background: #ecfdf5;
    padding: 3px 8px;
    border-radius: 50px;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: var(--ts-success);
    border-radius: 50%;
    animation: pulseDot 1.5s infinite;
}

.tasawaqy-bids-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bid-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid var(--ts-border);
    border-radius: var(--ts-radius-md);
    transition: background 0.2s ease;
}

.bid-item.is-highest-bid {
    background: #fffbeb;
    border-color: #fef08a;
}

.bidder-avatar {
    font-size: 18px;
    margin-left: 10px;
}

.bidder-meta {
    flex: 1;
}

.bidder-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bidder-name-row .name {
    font-size: 13px;
    font-weight: 700;
    color: var(--ts-dark);
}

.highest-badge {
    background: #fde047;
    color: #713f12;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
}

.bidder-meta .time {
    display: block;
    font-size: 11px;
    color: var(--ts-text-muted);
}

.bid-value strong {
    font-size: 15px;
    font-weight: 900;
    color: var(--ts-primary);
}

.bid-value .currency {
    font-size: 12px;
    color: var(--ts-dark);
    font-weight: 700;
}

.no-bids-placeholder {
    text-align: center;
    padding: 20px;
    color: var(--ts-text-muted);
    font-size: 13px;
    background: #f8fafc;
    border-radius: var(--ts-radius-md);
    border: 1px dashed var(--ts-border);
}

/* ==========================================================================
   Modal Dialog
   ========================================================================== */
.tasawaqy-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(5px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.tasawaqy-modal-dialog {
    background: #ffffff;
    width: 100%;
    max-width: 520px;
    border-radius: var(--ts-radius-lg);
    box-shadow: var(--ts-shadow-lg);
    position: relative;
    overflow: hidden;
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 32px;
    text-align: center;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background: var(--ts-primary);
    color: #ffffff;
}

.modal-header {
    background: var(--ts-primary-light);
    border-bottom: 1px solid #fee2e2;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-header-icon {
    font-size: 24px;
}

.modal-auction-title {
    font-size: 18px;
    font-weight: 800;
    margin: 0;
    color: var(--ts-dark);
}

.modal-body {
    padding: 24px;
}

.modal-price-strip {
    display: flex;
    background: #f8fafc;
    border: 1px solid var(--ts-border);
    border-radius: var(--ts-radius-md);
    padding: 12px 16px;
    margin-bottom: 20px;
    justify-content: space-between;
}

.strip-item .strip-label {
    display: block;
    font-size: 11px;
    color: var(--ts-text-muted);
}

.strip-item .strip-val {
    font-size: 16px;
    font-weight: 800;
    color: var(--ts-dark);
}

.strip-item.highlight .strip-val {
    color: var(--ts-primary);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
    .single-auction-layout {
        grid-template-columns: 1fr;
    }
    .tasawaqy-showroom-hero {
        flex-direction: column;
        align-items: flex-start;
    }
    .hero-rules-banner {
        width: 100%;
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {
    .tasawaqy-grid {
        grid-template-columns: 1fr;
    }
    .filter-tabs {
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
    }
    .filter-search-box {
        width: 100%;
    }
    .form-row-2col {
        grid-template-columns: 1fr;
    }
    .quick-buttons-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .main-image-wrapper {
        height: 300px;
    }
}
.tasawaqy-original-product-link{display:inline-flex;align-items:center;justify-content:center;margin-top:14px;padding:11px 18px;border:1px solid var(--ts-primary,#c61a29);border-radius:10px;color:var(--ts-primary,#c61a29)!important;font-weight:800;text-decoration:none;transition:.2s}
.tasawaqy-original-product-link:hover{background:var(--ts-primary,#c61a29);color:#fff!important;transform:translateY(-1px)}
