
/* AUTOHUB_OWNER_LISTINGS_DESIGN_V1 */

#carListingsList,
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

#carListingsList .vehicle-item,
.products-grid .product-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 18px;
    margin: 0;
    min-width: 0;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.045);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#carListingsList .vehicle-item:hover,
.products-grid .product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
}

#carListingsList .vehicle-item > div:first-child {
    height: 220px !important;
    margin-bottom: 18px !important;
    border-radius: 14px !important;
}

#carListingsList .vehicle-item > div:first-child img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.products-grid .product-main-image,
.products-grid .product-image-placeholder {
    height: 220px;
    width: 100%;
    border-radius: 14px;
    object-fit: cover;
    margin-bottom: 18px;
}

#carListingsList .vehicle-item h4,
.products-grid .product-card h2 {
    font-size: 19px;
    font-weight: 750;
    line-height: 1.4;
    margin: 0 0 10px;
    overflow-wrap: anywhere;
}

#carListingsList .car-listing-price,
.products-grid .product-price {
    font-size: 25px;
    font-weight: 800;
    color: #2563eb;
    margin: 8px 0 14px;
    letter-spacing: -0.5px;
}

#carListingsList .vehicle-item p,
.products-grid .product-card p {
    font-size: 14px;
    line-height: 1.7;
    color: #64748b;
    margin: 8px 0;
}

#carListingsList .car-listing-status,
.products-grid .product-status {
    display: inline-block;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    margin-top: 12px;
}

#carListingsList .car-moderation-status,
.products-grid .product-moderation-status {
    width: fit-content;
    max-width: 100%;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    margin-top: 10px;
}

#carListingsList .vehicle-actions,
.products-grid .product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

#carListingsList .vehicle-actions button,
.products-grid .product-actions button {
    border-radius: 10px;
    padding: 11px 18px;
    font-weight: 700;
    cursor: pointer;
}

#carListingsList .vehicle-item:focus-visible,
.products-grid .product-card:focus-visible {
    outline: 3px solid #60a5fa;
    outline-offset: 3px;
}

/* Dark mode */

html[data-theme="dark"] #carListingsList .vehicle-item,
html[data-theme="dark"] .products-grid .product-card {
    background: #172235;
    border-color: #334155;
    color: #f8fafc;
}

html[data-theme="dark"] #carListingsList .vehicle-item h4,
html[data-theme="dark"] .products-grid .product-card h2 {
    color: #f8fafc;
}

html[data-theme="dark"] #carListingsList .vehicle-item p,
html[data-theme="dark"] .products-grid .product-card p {
    color: #cbd5e1;
}

html[data-theme="dark"] #carListingsList .vehicle-actions {
    border-color: #334155;
}

/* Mobile */

@media (max-width: 700px) {
    #carListingsList,
    .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    #carListingsList .vehicle-item,
    .products-grid .product-card {
        padding: 14px;
        border-radius: 16px;
    }

    #carListingsList .vehicle-item > div:first-child,
    .products-grid .product-main-image,
    .products-grid .product-image-placeholder {
        height: 200px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    #carListingsList .vehicle-item,
    .products-grid .product-card {
        transition: none;
    }
}


/* AUTOHUB_OWNER_LISTINGS_UNIFIED_V2 */

/* Qarajdakı avtomobillər */
#vehicleList {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 24px;
}

#vehicleList .vehicle-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    margin: 0;
    padding: 24px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 4px 18px rgba(15, 23, 42, .045);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}

#vehicleList .vehicle-item:hover {
    transform: translateY(-3px);
    border-color: #93c5fd;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .09);
}

#vehicleList .vehicle-item::before {
    content: "";
    display: block;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background-color: #eff6ff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 17h14l1-5-3-5H7l-3 5 1 5Z'/%3E%3Cpath d='M4 12h16'/%3E%3Ccircle cx='7.5' cy='17' r='1.5'/%3E%3Ccircle cx='16.5' cy='17' r='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

#vehicleList .vehicle-item h4 {
    margin: 0;
    font-size: 20px;
    font-weight: 750;
    line-height: 1.4;
    color: #0f172a;
    overflow-wrap: anywhere;
}

#vehicleList .vehicle-item p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.8;
}

#vehicleList .vehicle-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
}

/* Bütün idarəetmə kartlarında düymələr */

#vehicleList .vehicle-actions button,
#carListingsList .vehicle-actions button,
.products-grid .product-actions button {
    min-height: 42px;
    padding: 10px 17px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    transition: background .2s, transform .2s;
}

#vehicleList .edit-button,
#carListingsList .edit-button,
.products-grid .edit-button {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

#vehicleList .delete-button,
#carListingsList .delete-button,
.products-grid .delete-button {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

#vehicleList .vehicle-actions button:hover,
#carListingsList .vehicle-actions button:hover,
.products-grid .product-actions button:hover {
    transform: translateY(-1px);
}

/* Vahid kart başlıqları */

#vehiclesSection > h3,
#myCarListingsSection > h3 {
    font-size: 22px;
    font-weight: 750;
    color: #0f172a;
    letter-spacing: -.4px;
    margin-bottom: 10px;
}

/* Qaranlıq rejim */

html[data-theme="dark"] #vehicleList .vehicle-item {
    background: #172235;
    border-color: #334155;
}

html[data-theme="dark"] #vehicleList .vehicle-item h4,
html[data-theme="dark"] #vehiclesSection > h3,
html[data-theme="dark"] #myCarListingsSection > h3 {
    color: #f8fafc;
}

html[data-theme="dark"] #vehicleList .vehicle-item p {
    color: #cbd5e1;
}

html[data-theme="dark"] #vehicleList .vehicle-actions {
    border-color: #334155;
}

/* Mobil görünüş */

@media (max-width: 700px) {
    #vehicleList {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    #vehicleList .vehicle-item {
        padding: 20px;
        border-radius: 16px;
    }

    #vehicleList .vehicle-item h4 {
        font-size: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #vehicleList .vehicle-item,
    #vehicleList .vehicle-actions button,
    #carListingsList .vehicle-actions button,
    .products-grid .product-actions button {
        transition: none;
    }
}


/* AUTOHUB_CAR_EMPTY_STATE_V1 */

#carListingsList .autohub-car-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 24px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
}

.autohub-car-empty-icon {
    width: 76px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eaf2ff;
    color: #2563eb;
    border-radius: 20px;
    margin-bottom: 20px;
}

.autohub-car-empty-icon svg {
    width: 38px;
    height: 38px;
}

#carListingsList .autohub-car-empty h4 {
    font-size: 21px;
    font-weight: 750;
    color: #0f172a;
    margin: 0 0 10px;
}

#carListingsList .autohub-car-empty p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
    max-width: 400px;
    margin: 0 0 24px;
}

#carListingsList .autohub-car-empty button {
    min-height: 44px;
    padding: 12px 22px;
    border-radius: 11px;
    cursor: pointer;
}

html[data-theme="dark"] #carListingsList .autohub-car-empty {
    background: #172235;
    border-color: #475569;
}

html[data-theme="dark"] #carListingsList .autohub-car-empty h4 {
    color: #f8fafc;
}

html[data-theme="dark"] #carListingsList .autohub-car-empty p {
    color: #cbd5e1;
}

@media (max-width: 600px) {
    #carListingsList .autohub-car-empty {
        padding: 36px 18px;
    }
}


/* AUTOHUB_CAR_EMPTY_REFINEMENT_V2 */

/* Elan siyahısından əvvəlki ayırıcı xətti gizlət */
.profile-card:has(#myCarListingsSection) > hr {
    display: none;
}

/* Bölmənin başlığını səliqəyə sal */
#myCarListingsSection {
    margin-top: 24px;
}

#myCarListingsSection > h3 {
    margin: 0 0 18px;
    font-size: 22px;
    font-weight: 750;
    letter-spacing: -0.4px;
}

/* Boş elan paneli */
#carListingsList .autohub-car-empty {
    padding: 38px 24px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px dashed #d7e2f0;
}

#carListingsList .autohub-car-empty-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    border-radius: 18px;
}

#carListingsList .autohub-car-empty-icon svg {
    width: 32px;
    height: 32px;
}

#carListingsList .autohub-car-empty h4 {
    font-size: 20px;
    margin-bottom: 8px;
}

#carListingsList .autohub-car-empty p {
    margin-bottom: 20px;
    font-size: 14px;
}

#carListingsList .autohub-car-empty button {
    min-height: 44px;
    padding: 11px 20px;
}

html[data-theme="dark"] #carListingsList .autohub-car-empty {
    background: #172235;
    border-color: #475569;
}

@media (max-width: 600px) {
    #myCarListingsSection {
        margin-top: 18px;
    }

    #carListingsList .autohub-car-empty {
        padding: 30px 16px;
    }
}


/* AUTOHUB_OTHER_EMPTY_STATES_V1 */

#vehicleList .autohub-owner-empty,
.products-grid .autohub-owner-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 260px;
    padding: 38px 22px;
    background: #f8fafc;
    border: 1px dashed #d7e2f0;
    border-radius: 18px;
    box-shadow: none;
}

.autohub-owner-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    background: #eaf2ff;
    border-radius: 18px;
    font-size: 30px;
}

#vehicleList .autohub-owner-empty h4,
.products-grid .autohub-owner-empty h2 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 20px;
    font-weight: 750;
}

#vehicleList .autohub-owner-empty p,
.products-grid .autohub-owner-empty p {
    margin: 0 0 20px;
    max-width: 430px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
}

#vehicleList .autohub-owner-empty .btn,
.products-grid .autohub-owner-empty .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 20px;
    border-radius: 11px;
    text-decoration: none;
    cursor: pointer;
}

html[data-theme="dark"] #vehicleList .autohub-owner-empty,
html[data-theme="dark"] .products-grid .autohub-owner-empty {
    background: #172235;
    border-color: #475569;
}

html[data-theme="dark"] #vehicleList .autohub-owner-empty h4,
html[data-theme="dark"] .products-grid .autohub-owner-empty h2 {
    color: #f8fafc;
}

html[data-theme="dark"] #vehicleList .autohub-owner-empty p,
html[data-theme="dark"] .products-grid .autohub-owner-empty p {
    color: #cbd5e1;
}

@media (max-width: 600px) {
    #vehicleList .autohub-owner-empty,
    .products-grid .autohub-owner-empty {
        min-height: 220px;
        padding: 30px 16px;
    }
}


/* AUTOHUB_GARAGE_REDESIGN_V1 */

.autohub-garage-section {
    padding: 28px;
    border-radius: 20px;
    border-color: #e2e8f0;
}

.autohub-garage-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 26px;
}

.autohub-garage-heading-icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 17px;
    flex-shrink: 0;
}

.autohub-garage-heading-icon svg {
    width: 30px;
    height: 30px;
}

.autohub-garage-heading h3 {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
}

.autohub-garage-heading p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.autohub-garage-form-panel {
    padding: 26px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
}

.autohub-garage-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.autohub-garage-panel-heading h4,
.autohub-garage-list-panel > h4 {
    margin: 0;
    font-size: 19px;
    font-weight: 750;
    color: #0f172a;
}

.autohub-garage-panel-heading span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #eaf2ff;
    color: #2563eb;
    border-radius: 10px;
    font-size: 24px;
}

#vehiclesSection .profile-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}

#vehiclesSection .form-group {
    margin: 0;
}

#vehiclesSection .form-group label {
    font-size: 14px;
    font-weight: 700;
    color: #334155;
}

#vehiclesSection .form-group input,
#vehiclesSection .form-group select {
    min-height: 48px;
    border: 1px solid #dbe3ef;
    border-radius: 11px;
    background: #ffffff;
    padding: 12px 14px;
}

#vehiclesSection .form-group input:focus,
#vehiclesSection .form-group select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

#vehiclesSection .form-actions {
    justify-content: flex-end;
    margin-top: 24px;
}

#vehiclesSection .form-actions button {
    min-height: 46px;
    border-radius: 11px;
    padding: 11px 22px;
}

.autohub-garage-list-panel {
    margin-top: 30px;
}

.autohub-garage-list-panel > h4 {
    margin-bottom: 18px;
}

#vehicleList {
    margin-top: 0;
}

/* Dark mode */

html[data-theme="dark"] .autohub-garage-section,
html[data-theme="dark"] .autohub-garage-form-panel {
    background: #172235;
    border-color: #334155;
}

html[data-theme="dark"] .autohub-garage-heading h3,
html[data-theme="dark"] .autohub-garage-panel-heading h4,
html[data-theme="dark"] .autohub-garage-list-panel > h4 {
    color: #f8fafc;
}

html[data-theme="dark"] .autohub-garage-heading p {
    color: #cbd5e1;
}

html[data-theme="dark"] #vehiclesSection .form-group label {
    color: #e2e8f0;
}

html[data-theme="dark"] #vehiclesSection .form-group input,
html[data-theme="dark"] #vehiclesSection .form-group select {
    background: #1e293b;
    border-color: #475569;
    color: #f8fafc;
}

/* Mobile */

@media (max-width: 650px) {
    .autohub-garage-section {
        padding: 18px;
    }

    .autohub-garage-form-panel {
        padding: 18px;
    }

    #vehiclesSection .profile-form {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    #vehiclesSection .form-actions {
        justify-content: stretch;
    }

    #vehiclesSection .form-actions button {
        width: 100%;
    }
}
