:root {
    --bg: #0e0e0f;
    --panel: #161617;
    --surface: #1d1d1f;
    --border: #222223;
    --text: #f1f1f1;
    --muted: #a1a1a6;
    --muted-2: #6e6e73;
    --hover: #2a2a2b;
    --shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.autorepairbottomsection {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: system-ui, sans-serif;
    height: 100%;
}

.autorepairbottomsection .autorepairapp {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.autorepairbottomsection .autorepairheader .brand h1 {
    font-size: 20px;
    margin: 0;
}
.autorepairbottomsection .autorepairheader .muted {
    color: var(--muted-2);
}

.autorepairbottomsection .autorepairheader {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.autorepairbottomsection .header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.autorepairbottomsection .brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.autorepairbottomsection .chip {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--muted);
    padding: 6px 12px;
    cursor: pointer;
}

.autorepairbottomsection .chip:hover,
.autorepairbottomsection .chip.active {
    background: var(--hover);
    color: var(--text);
}

.autorepairbottomsection .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.autorepairbottomsection .card {
    background: var(--panel);
    border: 1px solid var(--card-border);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.15s ease, border-color 0.15s ease;
    display: inline-flex !important;
    flex-direction: column;
    grid-column: auto !important;
    height: auto !important;
}

.autorepairbottomsection .card:hover {
    transform: translateY(-2px);
    border-color: var(--hover);
}

.autorepairbottomsection .card-media {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    padding: 12px;
}

.autorepairbottomsection .card-media svg {
    width: 88px;
    height: 88px;
    opacity: 0.9;
}

.autorepairbottomsection .card-body {
    padding: 12px 14px 16px;
    display: grid;
    gap: 6px;
}
.autorepairbottomsection .title {
    font-size: 16px;
    font-weight: 600;
}

.autorepairbottomsection .desc {
    font-size: 13px;
    color: var(--muted);
    min-height: 34px;
}

.autorepairbottomsection .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.autorepairbottomsection .price {
    font-weight: 800;
    letter-spacing: 0.2px;
}

.autorepairbottomsection .btn {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 8px 14px;
    cursor: pointer;
}
.autorepairbottomsection .btn:hover {
    background: var(--hover);
}

.autorepairbottomsection .btn:active {
    transform: translateY(1px);
}

.autorepairbottomsection .cart-toggle {
    background: var(--panel);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.autorepairbottomsection .cart-toggle .pill {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

.autorepairbottomsection .drawer {
    color: var(--text);
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 380px;
    max-width: 92vw;
    background: var(--panel);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.45);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.autorepairbottomsection .drawer.open {
    transform: translateX(0);
}

.autorepairbottomsection #openCart {
    z-index: 1 !important;
}

.autorepairbottomsection .drawer.open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: -1;
}
.autorepairbottomsection .drawer > header {
    flex: 0 0 auto;
}
.autorepairbottomsection .drawer header {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.autorepairbottomsection .drawer > .content {
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
}

.autorepairbottomsection .drawer > .summary {
    flex: 0 0 auto;
}

.autorepairbottomsection .autorepairapp.drawer-open::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    pointer-events: none;
}
.autorepairbottomsection #productGrid {
    overflow-y: auto;
    padding-right: 4px;
    max-height: calc(100% - 180px);
}
.autorepairbottomsection .drawer h3 {
    margin: 0;
}

.autorepairbottomsection .drawer .content {
    display: grid;
    align-content: start;
    justify-content: stretch;
    gap: 10px;
}

.autorepairbottomsection .empty {
    color: var(--muted);
    text-align: center;
    padding: 40px 10px;
}

.autorepairbottomsection .cart-item {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    background: var(--card-bg);
}
.autorepairbottomsection .cart-thumb {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 8px;
    background: var(--surface);
    padding: 4px;
    display: block;
}
.autorepairbottomsection .cart-item img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 8px;
    background: var(--surface);
    padding: 4px;
}

.autorepairbottomsection .cart-item .name {
    font-weight: 700;
}

.autorepairbottomsection .cart-item .meta {
    color: var(--muted);
    font-size: 12px;
}

.autorepairbottomsection .qty {
    display: flex;
    align-items: center;
    gap: 8px;
}

.autorepairbottomsection .qty button {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--panel);
    color: var(--text);
    cursor: pointer;
}

.autorepairbottomsection .remove {
    color: var(--danger);
    font-size: 12px;
    cursor: pointer;
    text-decoration: underline dotted;
}

.autorepairbottomsection .summary {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 14px;
    display: grid;
    gap: 10px;
}

.autorepairbottomsection .row-sum {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--muted);
}

.autorepairbottomsection .total {
    font-size: 18px;
    font-weight: 900;
    color: var(--text);
}

.autorepairbottomsection .discount {
    display: flex;
    gap: 8px;
}

.autorepairbottomsection .discount input {
    flex: 1;
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text);
    padding: 10px 12px;
    outline: none;
}

.autorepairbottomsection .apply {
    background: transparent;
    border: 1px solid rgba(57, 224, 164, 0.45);
    color: var(--text);
    padding: 10px 12px;
    cursor: pointer;
}

.autorepairbottomsection .checkout {
    display: grid;
    gap: 10px;
    margin-top: 6px;
}

.autorepairbottomsection .checkout .btn {
    width: 100%;
}

.autorepairbottomsection .toast {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 24px;
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 10px 14px;
    display: flex;
    gap: 8px;
    align-items: center;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.autorepairbottomsection .toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.autorepairbottomsection .hide-sm {
    display: none;
}

.autorepairbottomsection .card {
    grid-column: span 4;
}

.autorepairbottomsection #openCart.pill {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow);
}

.autorepairbottomsection #openCart .badge,
.autorepairbottomsection #openCart #cartCount {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: 1px solid var(--card-border);
    padding: 0 8px;
    line-height: 22px;
    min-width: 22px;
    text-align: center;
    font-weight: 700;
}
.autorepairbottomsection .card-media-img {
    max-height: 140px;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.autorepairbottomsection .cart-item {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
}

.autorepairbottomsection .cart-item .name {
    font-weight: 700;
}

.autorepairbottomsection .cart-item .meta {
    color: var(--muted);
    font-size: 12px;
}

.autorepairbottomsection .cart-item .actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.autorepairbottomsection .cart-item .remove {
    color: var(--muted);
    cursor: pointer;
    font-size: 12px;
    text-decoration: underline;
}

.autorepairbottomsection .qty {
    display: flex;
    align-items: center;
    gap: 6px;
}

.autorepairbottomsection .qty input {
    width: 44px;
    text-align: center;
    padding: 6px 8px;
    border: 1px solid var(--card-border);
    background: var(--surface);
    color: var(--text);
}

.autorepairbottomsection .qty button {
    border: 1px solid var(--card-border);
    background: var(--panel);
    padding: 6px 8px;
    color: var(--text);
}

.autorepairbottomsection .drawer header {
    border-bottom: 1px solid var(--card-border);
}

.autorepairbottomsection .drawer .summary {
    border-top: 1px solid var(--card-border);
}