/**
 * Seller Bargaining System - Modern Orange Theme
 */

/* Grid Container */
.modern-offers-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Compact Card */
.modern-product-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.modern-product-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}

/* Product Header - Orange Theme */
.modern-product-header {
    padding: 16px;
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
}

.modern-header-content {
    display: flex;
    gap: 12px;
    align-items: center;
}

.modern-product-image {
    flex-shrink: 0;
}

.modern-product-image img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(255,255,255,0.3);
}

.modern-product-details {
    flex: 1;
    min-width: 0;
}

.modern-product-title {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.modern-product-title a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.modern-product-title a:hover {
    opacity: 0.85;
}

.modern-product-stats {
    display: flex;
    gap: 12px;
    font-size: 11px;
}

.modern-stat-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.modern-stat-label {
    opacity: 0.85;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.modern-stat-value {
    font-weight: 700;
    font-size: 13px;
}

/* Offers Section */
.modern-offers-section {
    padding: 16px;
    flex: 1;
}

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

.modern-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #8D6E63;
}

.modern-offers-badge {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
}

/* Compact Offer Card */
.modern-offer-card {
    background: #FFF8E1;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 8px;
    border-left: 3px solid #FFB74D;
    transition: all 0.3s;
}

.modern-offer-card:hover {
    background: #FFECB3;
    border-left-color: #FF9800;
}

.modern-offer-card.best-offer {
    background: linear-gradient(135deg, #FFF8E1 0%, #FFE0B2 100%);
    border-left-color: #FF6F00;
    border-left-width: 4px;
}

.modern-offer-card.best-offer::before {
    content: '🏆 BEST';
    display: block;
    font-size: 9px;
    font-weight: 700;
    color: #E65100;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.modern-offer-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modern-offer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modern-buyer-name {
    font-weight: 600;
    color: #5D4037;
    font-size: 12px;
}

.modern-offer-price {
    font-size: 15px;
    font-weight: 700;
    color: #D84315;
}

.modern-offer-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    color: #8D6E63;
}

.modern-offer-discount {
    background: #FF6F00;
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 700;
}

.modern-offer-actions {
    display: flex;
    gap: 4px;
    margin-top: 4px;
}

.modern-offer-actions {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}

.modern-btn {
    flex: 1;
    padding: 8px 6px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.modern-btn .btn-icon {
    font-size: 16px;
    line-height: 1;
}

.modern-btn .btn-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 700;
}

.modern-btn-accept,
.accept-offer-btn {
    background: #66BB6A;
    color: white;
}

.modern-btn-accept:hover,
.accept-offer-btn:hover {
    background: #4CAF50;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(76,175,80,0.3);
}

.modern-btn-counter,
.counter-offer-btn {
    background: #FFA726;
    color: white;
}

.modern-btn-counter:hover,
.counter-offer-btn:hover {
    background: #FF9800;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(255,152,0,0.3);
}

.modern-btn-reject,
.reject-offer-btn {
    background: #EF5350;
    color: white;
}

.modern-btn-reject:hover,
.reject-offer-btn:hover {
    background: #E53935;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(239,83,80,0.3);
}

/* View More */
.modern-view-more {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #BCAAA4 0%, #A1887F 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.3s;
}

.modern-view-more:hover {
    background: linear-gradient(135deg, #A1887F 0%, #8D6E63 100%);
    transform: translateY(-2px);
}

/* Quick Actions */
.modern-quick-actions {
    padding: 12px;
    background: #FFF8E1;
    border-top: 1px solid #FFECB3;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.modern-btn-primary,
.accept-best-offer-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #66BB6A 0%, #4CAF50 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.modern-btn-primary:hover,
.accept-best-offer-btn:hover {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    transform: translateY(-2px);
}

.modern-btn-secondary,
.reject-all-offers-btn {
    width: 100%;
    padding: 10px;
    background: white;
    color: #8D6E63;
    border: 2px solid #D7CCC8;
    border-radius: 8px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.modern-btn-secondary:hover,
.reject-all-offers-btn:hover {
    background: #FFF8E1;
    border-color: #BCAAA4;
}

/* MODAL */
.modern-offers-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    z-index: 10000;
    padding: 20px;
    overflow-y: auto;
}

.modern-offers-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 700px;
    width: 100%;
    margin: 60px auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modern-modal-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #2c3e50;
}

.modern-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e9ecef;
    border: none;
    color: #6c757d;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-modal-close:hover {
    background: #dee2e6;
    color: #495057;
    transform: rotate(90deg);
}

.modern-modal-body {
    padding: 20px 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.modern-modal-body::-webkit-scrollbar {
    width: 8px;
}

.modern-modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modern-modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 10px;
}

.modern-modal-body::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* Empty State */
.modern-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #a0aec0;
}

.modern-empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.modern-empty-text {
    font-size: 18px;
    font-weight: 600;
    color: #718096;
}

/* Seller Bargains Page */
.gattchaa-seller-bargains h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
}

/* Seller Statistics - Orange Theme */
.seller-bargain-stats {
    display: grid;
grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin: 20px 0 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(255,152,0,0.3);
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-label {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    opacity: 0.9;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
}

/* Filter Dropdown Bar */
.filter-dropdown-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 20px;
    border: 1px solid rgba(0,0,0,0.04);
}

.filter-dropdown-label {
    font-size: 13px;
    font-weight: 700;
    color: #8D6E63;
    flex-shrink: 0;
}

.filter-dropdown-select {
    flex: 1;
    max-width: 300px;
    padding: 10px 16px;
    background: white;
    border: 2px solid #D7CCC8;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #6D4C41;
    cursor: pointer;
    transition: all 0.3s;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23FF9800' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.filter-dropdown-select:hover {
    border-color: #BCAAA4;
    background-color: #FFF8E1;
}

.filter-dropdown-select:focus {
    border-color: #FF9800;
    box-shadow: 0 0 0 3px rgba(255,152,0,0.1);
}

.filter-dropdown-info {
    font-size: 12px;
    color: #8D6E63;
    margin-left: auto;
    font-weight: 600;
}

.filter-dropdown-info strong {
    color: #5D4037;
    font-size: 14px;
}

/* Counter Modal (existing styles) */
.gattchaa-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.gattchaa-modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    position: relative;
}

.gattchaa-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.gattchaa-modal-close:hover {
    color: #000;
}

/* Modal Mobile Responsive */
@media (max-width: 480px) {
    .gattchaa-modal {
        padding: 10px;
    }
    
    .gattchaa-modal-content {
        padding: 20px;
        max-height: 85vh;
        border-radius: 8px;
    }

/* Counter Modal Mobile Compact */
    #gattchaa-counter-modal.gattchaa-modal {
        padding: 20px !important;
    }
    
    #gattchaa-counter-modal .gattchaa-modal-content {
        max-width: 360px !important;
        width: 100% !important;
        border-radius: 8px !important;
    }
    
    .counter-modal-header {
        padding: 16px !important;
    }
    
    .counter-modal-header h2 {
        font-size: 16px !important;
    }
    
    #gattchaa-counter-modal .gattchaa-modal-close {
        font-size: 22px !important;
        right: 16px !important;
    }
    
    #gattchaa-counter-form {
        padding: 16px !important;
    }
    
    .price-comparison-card {
        padding: 12px !important;
        margin-bottom: 16px !important;
    }
    
    .price-box-label {
        font-size: 9px !important;
        margin-bottom: 6px !important;
    }
    
    .price-box-amount {
        font-size: 14px !important;
    }
    
    #gattchaa-counter-form input {
        padding: 10px 12px !important;
        font-size: 14px !important;
    }
    
    #gattchaa-counter-form label {
        font-size: 12px !important;
        margin-bottom: 6px !important;
    }
    
    #gattchaa-counter-form small {
        font-size: 10px !important;
    }
    
    #counter-price-preview {
        padding: 8px !important;
    }
    
    #counter-price-preview .preview-amount {
        font-size: 14px !important;
    }
    
    #gattchaa-counter-form .warning-text {
        padding: 10px 12px !important;
        margin-bottom: 16px !important;
    }
    
    #gattchaa-counter-form .warning-text p {
        font-size: 11px !important;
    }
    
    #gattchaa-counter-form .form-actions button {
        padding: 10px 16px !important;
        font-size: 12px !important;
    }
}

/* Counter Modal Modern Design */
#gattchaa-counter-modal .gattchaa-modal-content {
    padding: 0;
    max-width: 480px;
    overflow: hidden;
}

.counter-modal-header {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    padding: 24px;
    position: relative;
}

.counter-modal-header h2 {
    margin: 0 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: white !important;
}

#gattchaa-counter-modal .gattchaa-modal-close {
    color: white;
    font-size: 26px;
    top: 50%;
    transform: translateY(-50%);
    right: 20px;
    position: absolute;
    z-index: 10;
}

#gattchaa-counter-form {
    padding: 24px;
}

.price-comparison-card {
    background: linear-gradient(135deg, #fff8e1 0%, #ffe0b2 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    border: 2px solid #ff9800;
}

.price-comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.price-box {
    text-align: center;
}

.price-box-label {
    font-size: 11px;
    color: #666;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.price-box-amount {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
}

.price-box-amount.buyer-price {
    color: #e65100;
}

#gattchaa-counter-form .form-row {
    margin-bottom: 20px;
}

#gattchaa-counter-form label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
}

#gattchaa-counter-form input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #ff9800;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    transition: all 0.3s;
}

#gattchaa-counter-form input:focus {
    border-color: #f57c00;
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.1);
    outline: none;
}

#gattchaa-counter-form small {
    font-size: 11px;
    color: #666;
    display: block;
    margin-top: 6px;
}

#gattchaa-counter-form .warning-text {
    background: #fff3cd;
    border-left: 4px solid #ff9800;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 24px;
}

#gattchaa-counter-form .warning-text p {
    margin: 0;
    font-size: 12px;
    color: #856404;
    display: flex;
    align-items: center;
    gap: 8px;
}

#gattchaa-counter-form .form-actions {
    display: flex;
    gap: 12px;
    margin-top: 0;
}

#gattchaa-counter-form .form-actions button {
    flex: 1;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

#gattchaa-counter-form .button-primary {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
}

#gattchaa-counter-form .button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

#gattchaa-counter-form .button-secondary {
    background: #f5f5f5;
    color: #666;
    border: 2px solid #e0e0e0 !important;
}

#counter-price-preview {
    margin-top: 8px;
    padding: 10px;
    background: #fff8e1;
    border-left: 3px solid #ff9800;
    border-radius: 4px;
}

#counter-price-preview .preview-label {
    font-size: 11px;
    color: #666;
    display: block;
    margin-bottom: 4px;
}

#counter-price-preview .preview-amount {
    font-size: 16px;
    font-weight: 700;
    color: #e65100;
}

#gattchaa-counter-form .button-secondary:hover {
    background: #e0e0e0;
}

/* Bargain Modal Frontend - Modern Design */
#gattchaa-bargain-modal .gattchaa-modal-content {
    padding: 0 !important;
    max-width: 480px !important;
}

.bargain-modal-header {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    padding: 24px;
    position: relative;
}

.bargain-modal-header h2 {
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: white !important;
}

#gattchaa-bargain-modal .gattchaa-modal-close {
    color: white !important;
    font-size: 26px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    right: 20px !important;
    position: absolute !important;
    z-index: 10 !important;
}

#gattchaa-bargain-form {
    padding: 24px;
}

.bargain-price-card {
    background: linear-gradient(135deg, #fff8e1 0%, #ffe0b2 100%);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    border: 2px solid #ff9800;
}

.bargain-price-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.bargain-price-box {
    text-align: center;
}

.bargain-price-label {
    font-size: 10px;
    color: #666;
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.bargain-price-amount {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
}

.bargain-price-amount.stock {
    color: #4caf50;
}

#gattchaa-bargain-form input,
#gattchaa-bargain-form textarea {
    padding: 12px 14px !important;
    border: 2px solid #ff9800 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
}

#gattchaa-bargain-form label {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #2c3e50 !important;
}

#gattchaa-bargain-form .form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

#gattchaa-bargain-form .form-actions button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    padding: 14px 24px;
    font-weight: 700;
    border-radius: 8px;
}

#gattchaa-bargain-form button[type="submit"] {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%) !important;
    border: none !important;
    color: white !important;
}

#gattchaa-bargain-form .bargain-modal-cancel {
    background: #f5f5f5 !important;
    color: #666 !important;
    border: 2px solid #e0e0e0 !important;
}

/* Responsive */
@media (max-width: 1200px) {
    .modern-offers-container {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

@media (max-width: 768px) {
    .modern-offers-container {
        grid-template-columns: 1fr;
    }
    
    .seller-bargain-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
.seller-bargain-stats {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
        padding: 10px !important;
        background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%) !important;
    }
    
    .stat-item {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 6px 10px !important;
        background: rgba(255,255,255,0.15) !important;
        border-radius: 6px !important;
        backdrop-filter: blur(10px) !important;
    }
    
    .stat-label {
        font-size: 9px !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        margin-bottom: 0 !important;
        text-align: left !important;
    }
    
    .stat-value {
        font-size: 16px !important;
        font-weight: 700 !important;
    }
    
/* Filter Dropdown Compact */
    .filter-dropdown-bar {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        padding: 8px 10px !important;
        align-items: center !important;
    }
    
    .filter-dropdown-label {
        font-size: 10px !important;
        font-weight: 600 !important;
    }
    
    .filter-dropdown-select {
        font-size: 10px !important;
        padding: 6px 24px 6px 10px !important;
        border-radius: 4px !important;
        flex: 1 !important;
        min-width: 120px !important;
    }
    
    .filter-dropdown-info {
        font-size: 9px !important;
        color: #666 !important;
        white-space: nowrap !important;
    }

    /* Card Grid 2 Kolom */
    .modern-offers-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
/* Header */
    .modern-product-header {
        padding: 0 !important;
        background: #fff !important;
        overflow: visible !important;
        border-bottom: none !important;
        position: relative !important;
    }
    
    .modern-product-header::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #ff9800, #f57c00, #e65100, #f57c00, #ff9800);
    }
    
    .modern-header-content {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    
/* Image Wide - 4:3 Aspect Ratio */
    .modern-product-image {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 4 / 3 !important;
        border-radius: 0 !important;
        order: -2;
        display: block !important;
        overflow: hidden !important;
    }
    
    .modern-product-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }
    
    /* Content Area Below Image */
    .modern-product-details {
        padding: 8px;
        background: #fafafa;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    
    /* Title 2 Lines */
    .modern-product-title {
        font-size: 11px !important;
        font-weight: 700 !important;
        line-height: 1.3 !important;
        margin: 0 !important;
        color: #212121 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
    
    .modern-product-title a {
        font-size: 11px !important;
        color: #212121 !important;
    }
    
    /* Stats 3 Columns */
    .modern-product-stats {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 4px !important;
    }
    
    /* Stat Item Vertical */
    .modern-stat-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 2px !important;
        padding: 4px 2px !important;
        background: white !important;
        border-radius: 4px !important;
        border: 1px solid #e0e0e0 !important;
    }
    
/* Text Label Instead of Icon */
    .modern-stat-label {
        font-size: 8px !important;
        color: #666 !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.3px !important;
        line-height: 1 !important;
    }
    
    .modern-stat-label::before {
        content: none !important;
        display: none !important;
    }
    
    /* Value with Ellipsis */
    .modern-stat-value {
        font-size: 9px !important;
        font-weight: 700 !important;
        color: #ff9800 !important;
        text-align: center !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        max-width: 100% !important;
        line-height: 1 !important;
    }
    
/* Top Offers Section Compact */
    .modern-section-header {
        margin-bottom: 6px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 6px !important;
    }
    
    .modern-section-title {
        font-size: 11px !important;
        font-weight: 700 !important;
        margin: 0 !important;
        line-height: 1.2 !important;
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
    }
    
    .modern-section-title img.emoji {
        width: 12px !important;
        height: 12px !important;
    }
    
    .modern-offers-badge {
        font-size: 9px !important;
        padding: 3px 7px !important;
        border-radius: 12px !important;
        font-weight: 700 !important;
        background: #ff9800 !important;
        color: white !important;
        min-width: 18px !important;
        text-align: center !important;
        line-height: 1 !important;
    }

/* Offers Section Compact */
    .modern-offers-section {
        padding: 8px !important;
    }
    
    /* Offer Card Compact */
    .modern-offer-card {
        padding: 5px !important;
        margin-bottom: 3px !important;
        border-radius: 4px !important;
        background: #fff8e1 !important;
        border: 1px solid #ffe0b2 !important;
    }
    
    /* Content Stack */
    .modern-offer-content {
        display: flex !important;
        flex-direction: column !important;
        gap: 3px !important;
    }
    
    /* Row 1: Buyer + Price */
    .modern-offer-top {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 4px !important;
    }
    
    .modern-buyer-name {
        font-size: 9px !important;
        font-weight: 700 !important;
        color: #d84315 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        flex: 1 !important;
    }
    
    .modern-offer-price {
        font-size: 10px !important;
        font-weight: 700 !important;
        color: #e65100 !important;
        white-space: nowrap !important;
    }
    
    /* Row 2: Meta */
    .modern-offer-meta {
        font-size: 6px !important;
        color: #999 !important;
        display: flex !important;
        gap: 4px !important;
        align-items: center !important;
    }
    
    .modern-offer-meta img.emoji {
        width: 7px !important;
        height: 7px !important;
    }
    
    .modern-offer-discount {
        background: #4caf50 !important;
        color: white !important;
        padding: 1px 3px !important;
        border-radius: 2px !important;
        font-size: 6px !important;
        font-weight: 700 !important;
    }
    
    /* Row 3: Actions - Icon Only */
    .modern-offer-actions {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 2px !important;
    }
    
.modern-offer-actions p {
        grid-column: 1 / -1 !important;
        font-size: 10px !important;
        white-space: normal !important;
        line-height: 1.3 !important;
        word-break: break-word !important;
    }

    .modern-offer-actions button {
        font-size: 11px !important;
        padding: 5px 4px !important;
        border-radius: 3px !important;
    }
    
    .modern-offer-actions .btn-label {
        display: none !important;
    }
    
    .modern-offer-actions .btn-icon {
        font-size: 11px !important;
        line-height: 1 !important;
    }

    .modern-view-more {
        font-size: 9px !important;
        padding: 5px 10px !important;
        margin-top: 5px !important;
    }
    
/* Quick Actions Compact */
    .modern-quick-actions {
        padding: 6px !important;
        padding-top: 6px !important;
        border-top: 2px solid #e0e0e0 !important;
        gap: 3px !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .modern-btn-primary,
    .modern-btn-secondary,
    .modern-btn-whatsapp {
        font-size: 9px !important;
        padding: 6px 8px !important;
        border-radius: 4px !important;
        font-weight: 600 !important;
        line-height: 1.2 !important;
    }
    
    .modern-btn-primary .btn-icon,
    .modern-btn-secondary .btn-icon {
        font-size: 10px !important;
    }
}

/* Modern Pagination - Orange Theme */
.modern-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.pagination-btn {
    padding: 10px 20px;
    background: white;
    border: 2px solid #D7CCC8;
    border-radius: 8px;
    color: #6D4C41;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.pagination-btn:hover {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    border-color: #ff9800;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,152,0,0.3);
}

.pagination-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pagination-number {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid #D7CCC8;
    border-radius: 8px;
    color: #6D4C41;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}

.pagination-number:hover {
    background: #FFF8E1;
    border-color: #BCAAA4;
    color: #5D4037;
}

.pagination-number.active {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    border-color: #ff9800;
    color: white;
    box-shadow: 0 4px 12px rgba(255,152,0,0.3);
    cursor: default;
}

.pagination-ellipsis {
    padding: 0 8px;
    color: #BCAAA4;
    font-weight: 700;
}

/* Responsive Pagination */
@media (max-width: 768px) {
    .modern-pagination {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .pagination-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .pagination-number {
        min-width: 36px;
        height: 36px;
        font-size: 12px;
    }
}

/* WhatsApp Contact Admin Button */
.modern-btn-whatsapp:hover {
    background: #128C7E !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37,211,102,0.3);
}

/* Custom Filter Dropdown */
.custom-filter-dropdown {
    position: relative;
    flex: 1;
    min-width: 150px;
}

.custom-filter-trigger {
    font-size: 13px;
    padding: 10px 36px 10px 16px;
    border: 2px solid #ff9800;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    position: relative;
    user-select: none;
    transition: all 0.3s;
}

.custom-filter-trigger:hover {
    border-color: #f57c00;
    background: #fff8e1;
}

.custom-filter-trigger.active {
    border-color: #f57c00;
    border-radius: 8px 8px 0 0;
}

.custom-filter-selected {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-filter-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    transition: transform 0.3s;
    pointer-events: none;
}

.custom-filter-trigger.active .custom-filter-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.custom-filter-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #f57c00;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.custom-filter-option {
    padding: 12px 16px;
    font-size: 13px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.custom-filter-option:last-child {
    border-bottom: none;
}

.custom-filter-option:hover {
    background: #fff8e1;
}

.custom-filter-option.selected {
    background: #ffe0b2;
    font-weight: 700;
    color: #e65100;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .custom-filter-dropdown {
        min-width: 120px;
    }
    
    .custom-filter-trigger {
        font-size: 12px;
        padding: 8px 28px 8px 12px;
        border-radius: 6px;
    }
    
    .custom-filter-trigger.active {
        border-radius: 6px 6px 0 0;
    }
    
    .custom-filter-arrow {
        right: 10px;
    }
    
    .custom-filter-menu {
        border-radius: 0 0 6px 6px;
    }
    
    .custom-filter-option {
        padding: 10px 12px;
        font-size: 12px;
    }
}

/* AJAX Loading State */
.ajax-loading-state {
    display: none;
    text-align: center;
    padding: 60px 20px;
    color: #ff9800;
}

.ajax-loading-state .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ffe0b2;
    border-top: 4px solid #ff9800;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

.ajax-loading-state .loading-text {
    font-size: 14px;
    font-weight: 600;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    width: 100%;
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-state .empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 700;
    color: #666;
    margin: 0 0 12px 0;
}

.empty-state p {
    font-size: 14px;
    color: #999;
    margin: 0;
}

/* Mobile */
@media (max-width: 480px) {
    .ajax-loading-state {
        padding: 40px 20px;
    }
    
    .ajax-loading-state .spinner {
        width: 32px;
        height: 32px;
    }
    
    .ajax-loading-state .loading-text {
        font-size: 12px;
    }
    
    .empty-state {
        padding: 60px 20px;
    }
    
    .empty-state .empty-icon {
        font-size: 48px;
    }
    
    .empty-state h3 {
        font-size: 16px;
    }
    
    .empty-state p {
        font-size: 12px;
    }

/* Bargain Modal Mobile Compact */
    #gattchaa-bargain-modal.gattchaa-modal {
        padding: 24px !important;
    }
    
    #gattchaa-bargain-modal .gattchaa-modal-content {
        max-height: 60vh !important;
        max-width: 300px !important;
        overflow-y: auto !important;
    }
    
.bargain-modal-header {
        padding: 10px 14px !important;
    }
    
    .bargain-modal-header h2 {
        font-size: 14px !important;
        line-height: 1.2 !important;
    }
    
    #gattchaa-bargain-modal .gattchaa-modal-close {
        font-size: 20px !important;
        right: 14px !important;
    }
    
    #gattchaa-bargain-form {
        padding: 8px !important;
    }
    
    .bargain-price-card {
        padding: 6px !important;
        margin-bottom: 8px !important;
    }
    
    .bargain-price-label {
        font-size: 7px !important;
        margin-bottom: 3px !important;
    }
    
    .bargain-price-amount {
        font-size: 11px !important;
    }
    
    #gattchaa-bargain-form .form-row {
        margin-bottom: 6px !important;
    }
    
    #gattchaa-bargain-form input,
    #gattchaa-bargain-form textarea {
        padding: 6px 8px !important;
        font-size: 11px !important;
    }
    
    #gattchaa-bargain-form label {
        font-size: 9px !important;
        margin-bottom: 2px !important;
    }
    
    #gattchaa-bargain-form small {
        font-size: 8px !important;
    }
    
    .token-lock-warning {
        padding: 5px !important;
        margin-bottom: 6px !important;
    }
    
    .token-lock-warning p {
        font-size: 9px !important;
    }
    
    #gattchaa-bargain-form .form-actions {
        gap: 6px !important;
        margin-top: 8px !important;
    }
    
#gattchaa-bargain-form .form-actions button {
        padding: 8px 10px !important;
        font-size: 11px !important;
        height: auto !important;
        min-height: auto !important;
        line-height: 1.2 !important;
    }
}
}
