/**
 * JCE Car Export - Frontend Styles
 *
 * Modern, clean UI inspired by SBT Japan / Autocom Japan.
 * Mobile-first responsive design.
 *
 * @package JCE_Car_Export
 * @since   1.0.0
 */

/* ==========================================================================
   CSS VARIABLES
   ========================================================================== */

:root {
    --jce-primary: #1a2332;
    --jce-accent: #e63946;
    --jce-accent-dark: #c5303c;
    --jce-success: #2ecc71;
    --jce-warning: #f39c12;
    --jce-bg: #f4f6f9;
    --jce-card-bg: #ffffff;
    --jce-text: #2d3436;
    --jce-text-light: #636e72;
    --jce-border: #e0e4e8;
    --jce-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --jce-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --jce-radius: 8px;
    --jce-radius-sm: 4px;
    --jce-transition: 0.25s ease;
    --jce-font: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ==========================================================================
   FILTER WIDGET
   ========================================================================== */

.jce-filter-wrap {
    background: var(--jce-card-bg);
    border-radius: var(--jce-radius);
    padding: 20px;
    box-shadow: var(--jce-shadow);
}

.jce-filter-vertical .jce-filter-group {
    margin-bottom: 16px;
}

.jce-filter-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.jce-filter-horizontal .jce-filter-group {
    flex: 1 1 180px;
    min-width: 150px;
}

.jce-filter-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--jce-text-light);
    margin-bottom: 6px;
}

.jce-filter-input,
.jce-filter-select {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--jce-border);
    border-radius: var(--jce-radius-sm);
    font-size: 14px;
    color: var(--jce-text);
    background: #fff;
    transition: border-color var(--jce-transition);
    font-family: var(--jce-font);
    box-sizing: border-box;
}

.jce-filter-input:focus,
.jce-filter-select:focus {
    outline: none;
    border-color: var(--jce-accent);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.jce-range-inputs {
    display: flex;
    gap: 8px;
    align-items: center;
}

.jce-range-sep {
    color: var(--jce-text-light);
    font-size: 14px;
    flex-shrink: 0;
}

.jce-range-inputs .jce-filter-input,
.jce-range-inputs .jce-filter-select {
    flex: 1;
    min-width: 0;
}

.jce-filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.jce-filter-horizontal .jce-filter-actions {
    margin-top: 0;
    flex: 0 0 auto;
}

.jce-filter-btn {
    padding: 10px 24px;
    border: none;
    border-radius: var(--jce-radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--jce-transition);
    font-family: var(--jce-font);
}

.jce-btn-search {
    background: var(--jce-accent);
    color: #fff;
}

.jce-btn-search:hover {
    background: var(--jce-accent-dark);
    transform: translateY(-1px);
}

.jce-btn-reset {
    background: transparent;
    color: var(--jce-text-light);
    border: 1px solid var(--jce-border);
}

.jce-btn-reset:hover {
    background: var(--jce-bg);
}

/* ==========================================================================
   CAR GRID
   ========================================================================== */

.jce-car-grid-wrap {
    margin: 0;
}

.jce-grid-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 12px 0;
    border-bottom: 1px solid var(--jce-border);
}

.jce-grid-count {
    font-size: 14px;
    color: var(--jce-text-light);
}

.jce-result-count {
    font-weight: 700;
    color: var(--jce-text);
    font-size: 18px;
}

.jce-sort-select {
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--jce-border);
    border-radius: var(--jce-radius-sm);
    font-size: 13px;
    color: var(--jce-text);
    background: #fff;
    cursor: pointer;
}

.jce-car-grid {
    display: grid;
    gap: 20px;
    min-height: 200px;
}

.jce-cols-2 { grid-template-columns: repeat(2, 1fr); }
.jce-cols-3 { grid-template-columns: repeat(3, 1fr); }
.jce-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ==========================================================================
   CAR CARD
   ========================================================================== */

.jce-car-card {
    background: var(--jce-card-bg);
    border-radius: var(--jce-radius);
    overflow: hidden;
    box-shadow: var(--jce-shadow);
    transition: transform var(--jce-transition), box-shadow var(--jce-transition);
    display: flex;
    flex-direction: column;
}

.jce-car-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--jce-shadow-hover);
}

.jce-card-image-link {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--jce-bg);
}

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

.jce-car-card:hover .jce-card-image-link img {
    transform: scale(1.05);
}

.jce-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--jce-accent);
    color: #fff;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.jce-card-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.jce-card-stockid {
    font-size: 11px;
    color: var(--jce-text-light);
    margin-bottom: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.jce-card-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.3;
}

.jce-card-title a {
    color: var(--jce-text);
    text-decoration: none;
    transition: color var(--jce-transition);
}

.jce-card-title a:hover {
    color: var(--jce-accent);
}

.jce-card-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--jce-accent);
    margin-bottom: 10px;
}

.jce-card-price small {
    font-size: 12px;
    font-weight: 400;
    color: var(--jce-text-light);
}

.jce-card-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.jce-spec {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: var(--jce-bg);
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    color: var(--jce-text-light);
    font-weight: 500;
}

.jce-card-extra {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: var(--jce-text-light);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--jce-border);
}

.jce-card-extra span {
    text-transform: capitalize;
}

.jce-card-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.jce-btn {
    padding: 8px 14px;
    border-radius: var(--jce-radius-sm);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all var(--jce-transition);
    cursor: pointer;
    border: none;
    flex: 1;
}

.jce-btn-details {
    background: var(--jce-primary);
    color: #fff;
}

.jce-btn-details:hover {
    background: #243447;
    color: #fff;
}

.jce-btn-whatsapp {
    background: #25D366;
    color: #fff;
}

.jce-btn-whatsapp:hover {
    background: #1da851;
    color: #fff;
}

/* ==========================================================================
   LOADING & NO RESULTS
   ========================================================================== */

.jce-grid-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--jce-text-light);
}

.jce-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--jce-border);
    border-top-color: var(--jce-accent);
    border-radius: 50%;
    animation: jce-spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

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

.jce-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--jce-text-light);
}

.jce-no-results-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.jce-car-grid.jce-loading {
    opacity: 0.5;
    pointer-events: none;
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */

.jce-grid-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 24px 0;
    flex-wrap: wrap;
}

.jce-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--jce-border);
    border-radius: var(--jce-radius-sm);
    background: var(--jce-card-bg);
    color: var(--jce-text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--jce-transition);
}

.jce-page-btn:hover {
    border-color: var(--jce-accent);
    color: var(--jce-accent);
    background: rgba(230, 57, 70, 0.05);
}

.jce-page-btn.active {
    background: var(--jce-accent);
    border-color: var(--jce-accent);
    color: #fff;
    pointer-events: none;
}

.jce-page-dots {
    padding: 0 4px;
    color: var(--jce-text-light);
}

.jce-page-prev,
.jce-page-next {
    font-weight: 600;
}

/* ==========================================================================
   PRICE CALCULATOR
   ========================================================================== */

.jce-price-calculator {
    background: var(--jce-card-bg);
    border-radius: var(--jce-radius);
    padding: 24px;
    box-shadow: var(--jce-shadow);
}

.jce-calc-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 20px;
    color: var(--jce-text);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--jce-accent);
}

.jce-calc-field {
    margin-bottom: 16px;
}

.jce-calc-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--jce-text-light);
    margin-bottom: 6px;
}

.jce-calc-field input,
.jce-calc-field select {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--jce-border);
    border-radius: var(--jce-radius-sm);
    font-size: 14px;
    font-family: var(--jce-font);
    box-sizing: border-box;
}

.jce-calc-field input:focus,
.jce-calc-field select:focus {
    outline: none;
    border-color: var(--jce-accent);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.jce-calc-options {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
}

.jce-calc-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--jce-text);
    cursor: pointer;
}

.jce-calc-btn {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: var(--jce-radius-sm);
    background: var(--jce-accent);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--jce-transition);
    font-family: var(--jce-font);
}

.jce-calc-btn:hover {
    background: var(--jce-accent-dark);
    transform: translateY(-1px);
}

.jce-calc-results {
    margin-top: 20px;
    border-top: 1px solid var(--jce-border);
    padding-top: 20px;
}

.jce-calc-breakdown {
    background: var(--jce-bg);
    border-radius: var(--jce-radius-sm);
    padding: 16px;
}

.jce-calc-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: var(--jce-text);
    border-bottom: 1px dashed var(--jce-border);
}

.jce-calc-row:last-child {
    border-bottom: none;
}

.jce-calc-total {
    padding-top: 12px;
    margin-top: 4px;
    border-top: 2px solid var(--jce-primary);
    border-bottom: none;
    font-weight: 700;
    font-size: 16px;
}

.jce-calc-total-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--jce-accent);
}

.jce-calc-pulse {
    animation: jce-pulse 0.5s ease;
}

@keyframes jce-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.jce-calc-port {
    font-size: 13px;
    color: var(--jce-text-light);
    margin-top: 12px;
    text-align: center;
}

.jce-calc-disclaimer {
    font-size: 11px;
    color: #999;
    text-align: center;
    margin-top: 8px;
    font-style: italic;
}

.jce-calc-error {
    background: #ffeef0;
    color: var(--jce-accent);
    padding: 12px;
    border-radius: var(--jce-radius-sm);
    font-size: 14px;
    text-align: center;
}

/* ==========================================================================
   INQUIRY FORM
   ========================================================================== */

.jce-inquiry-form {
    background: var(--jce-bg);
    border-radius: var(--jce-radius);
    padding: 24px;
    box-shadow: var(--jce-shadow);
}

.jce-inquiry-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--jce-text);
}

.jce-inquiry-car-info {
    background: var(--jce-card-bg);
    border: 1px solid var(--jce-border);
    border-radius: var(--jce-radius-sm);
    padding: 12px 16px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.jce-inquiry-stock {
    font-size: 13px;
    color: var(--jce-text-light);
}

.jce-inquiry-car-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--jce-text);
}

.jce-field-row {
    display: flex;
    gap: 16px;
    margin-bottom: 14px;
}

.jce-field-col {
    flex: 1;
}

.jce-field-full {
    flex: 1 1 100%;
}

.jce-field-col label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--jce-text-light);
    margin-bottom: 5px;
}

.jce-input {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--jce-border);
    border-radius: var(--jce-radius-sm);
    font-size: 14px;
    font-family: var(--jce-font);
    background: var(--jce-card-bg);
    box-sizing: border-box;
    transition: border-color var(--jce-transition);
}

.jce-textarea {
    height: auto;
    padding: 10px 12px;
    resize: vertical;
}

.jce-input:focus {
    outline: none;
    border-color: var(--jce-accent);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.jce-inquiry-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.jce-inquiry-submit {
    flex: 1;
    height: 48px;
    border: none;
    border-radius: var(--jce-radius-sm);
    background: var(--jce-accent);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--jce-transition);
    font-family: var(--jce-font);
}

.jce-inquiry-submit:hover {
    background: var(--jce-accent-dark);
}

.jce-inquiry-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.jce-inquiry-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 24px;
    height: 48px;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    border-radius: var(--jce-radius-sm);
    font-size: 14px;
    font-weight: 700;
    transition: all var(--jce-transition);
    white-space: nowrap;
}

.jce-inquiry-whatsapp-btn:hover {
    background: #1da851;
    color: #fff;
}

.jce-inquiry-response {
    margin-top: 16px;
}

.jce-inquiry-success {
    background: #e8f8ef;
    border: 1px solid #a3e4b8;
    border-radius: var(--jce-radius-sm);
    padding: 20px;
    text-align: center;
}

.jce-success-icon {
    display: block;
    font-size: 36px;
    color: var(--jce-success);
    margin-bottom: 8px;
}

.jce-inquiry-error {
    background: #ffeef0;
    border: 1px solid #ffc6cb;
    border-radius: var(--jce-radius-sm);
    padding: 16px;
    text-align: center;
}

.jce-error-icon {
    display: block;
    font-size: 28px;
    color: var(--jce-accent);
    margin-bottom: 8px;
}

/* ==========================================================================
   COUNTRY SELECTOR
   ========================================================================== */

.jce-country-selector {
    padding: 20px 0;
}

.jce-cs-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 20px;
    text-align: center;
    color: var(--jce-text);
}

.jce-country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.jce-country-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 12px;
    background: var(--jce-card-bg);
    border: 1px solid var(--jce-border);
    border-radius: var(--jce-radius);
    text-decoration: none;
    transition: all var(--jce-transition);
    text-align: center;
}

.jce-country-card:hover {
    border-color: var(--jce-accent);
    box-shadow: var(--jce-shadow-hover);
    transform: translateY(-2px);
}

.jce-country-flag {
    font-size: 32px;
    line-height: 1;
}

.jce-country-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--jce-text);
}

.jce-country-count {
    font-size: 12px;
    color: var(--jce-text-light);
}

.jce-cs-dropdown {
    width: 100%;
    max-width: 400px;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--jce-border);
    border-radius: var(--jce-radius-sm);
    font-size: 16px;
    margin: 0 auto;
    display: block;
}

/* ==========================================================================
   FEATURED SLIDER
   ========================================================================== */

.jce-featured-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--jce-radius);
}

.jce-slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.jce-slider-slide {
    padding: 0 8px;
    box-sizing: border-box;
}

.jce-card-slider {
    height: 100%;
}

.jce-slider-prev,
.jce-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--jce-transition);
}

.jce-slider-prev:hover,
.jce-slider-next:hover {
    background: rgba(0, 0, 0, 0.85);
}

.jce-slider-prev { left: 8px; }
.jce-slider-next { right: 8px; }

/* ==========================================================================
   SINGLE CAR PAGE
   ========================================================================== */

.jce-single-car {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.jce-single-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.jce-single-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--jce-text);
    margin: 0 0 4px;
}

.jce-single-stock {
    font-size: 14px;
    color: var(--jce-text-light);
}

.jce-single-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--jce-accent);
}

.jce-single-price small {
    font-size: 14px;
    font-weight: 400;
    color: var(--jce-text-light);
}

.jce-single-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
}

/* Gallery */
.jce-gallery {
    background: var(--jce-card-bg);
    border-radius: var(--jce-radius);
    overflow: hidden;
    box-shadow: var(--jce-shadow);
}

.jce-gallery-main {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #000;
}

.jce-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.jce-gallery-thumbs {
    display: flex;
    gap: 4px;
    padding: 8px;
    overflow-x: auto;
    background: var(--jce-bg);
}

.jce-gallery-thumb {
    flex: 0 0 80px;
    height: 55px;
    cursor: pointer;
    border-radius: 3px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color var(--jce-transition);
}

.jce-gallery-thumb.active,
.jce-gallery-thumb:hover {
    border-color: var(--jce-accent);
}

.jce-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Specs Table */
.jce-specs-table {
    background: var(--jce-card-bg);
    border-radius: var(--jce-radius);
    box-shadow: var(--jce-shadow);
    overflow: hidden;
    margin-top: 24px;
}

.jce-specs-title {
    font-size: 16px;
    font-weight: 700;
    padding: 14px 20px;
    background: var(--jce-primary);
    color: #fff;
    margin: 0;
}

.jce-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.jce-spec-row {
    display: flex;
    border-bottom: 1px solid var(--jce-border);
    font-size: 14px;
}

.jce-spec-label {
    flex: 0 0 40%;
    padding: 10px 16px;
    font-weight: 600;
    color: var(--jce-text-light);
    background: var(--jce-bg);
}

.jce-spec-value {
    flex: 1;
    padding: 10px 16px;
    color: var(--jce-text);
    text-transform: capitalize;
}

/* Features */
.jce-features-section {
    background: var(--jce-card-bg);
    border-radius: var(--jce-radius);
    box-shadow: var(--jce-shadow);
    padding: 20px;
    margin-top: 24px;
}

.jce-features-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.jce-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--jce-text);
}

.jce-feature-icon {
    color: var(--jce-success);
    font-size: 16px;
}

/* Sidebar */
.jce-single-sidebar {
    position: sticky;
    top: 30px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Related Cars */
.jce-related-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--jce-border);
}

.jce-related-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 20px;
}

.jce-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ==========================================================================
   ICON PSEUDO-ELEMENTS (CSS-only icons)
   ========================================================================== */

.jce-icon-calendar::before { content: '📅 '; font-size: 11px; }
.jce-icon-gauge::before    { content: '⏱ '; font-size: 11px; }
.jce-icon-engine::before   { content: '⚙ '; font-size: 11px; }
.jce-icon-gear::before     { content: '🔧 '; font-size: 11px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
    .jce-cols-4 { grid-template-columns: repeat(3, 1fr); }
    .jce-single-layout { grid-template-columns: 1fr; }
    .jce-single-sidebar { position: static; }
    .jce-related-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .jce-cols-3,
    .jce-cols-4 { grid-template-columns: repeat(2, 1fr); }

    .jce-filter-horizontal {
        flex-direction: column;
    }

    .jce-filter-horizontal .jce-filter-group {
        flex: 1 1 100%;
    }

    .jce-field-row {
        flex-direction: column;
        gap: 12px;
    }

    .jce-single-header {
        flex-direction: column;
    }

    .jce-specs-grid {
        grid-template-columns: 1fr;
    }

    .jce-features-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .jce-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .jce-inquiry-actions {
        flex-direction: column;
    }

    .jce-inquiry-whatsapp-btn {
        width: 100%;
        justify-content: center;
    }

    .jce-grid-toolbar {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .jce-cols-2,
    .jce-cols-3,
    .jce-cols-4 {
        grid-template-columns: 1fr;
    }

    .jce-country-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .jce-related-grid {
        grid-template-columns: 1fr;
    }

    .jce-card-actions {
        flex-direction: column;
    }

    .jce-calc-options {
        flex-direction: column;
        gap: 10px;
    }
}
