:root {
    --bg: #0b0f19;
    --panel: #111827;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --accent: #2ea6ff;
    --border: rgba(255,255,255,0.08);
}

* { box-sizing: border-box; }

html, body {
    height: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

#app {
    padding: 16px;
    max-width: 720px;
    margin: 0 auto;
}

.card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    cursor: pointer;
}

.btn.primary {
    background: var(--accent);
    border-color: transparent;
    color: #fff;
}

h1, h2, h3 { margin: 0 0 12px; }
p { margin: 0 0 10px; color: var(--muted); }


.list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.row.between {
    justify-content: space-between;
}

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

.btn.small {
    height: 32px;
    width: 32px;
    padding: 0;
}

.muted {
    color: var(--muted);
    font-size: 12px;
}

.total {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
}


.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 480px) {
    .grid { grid-template-columns: 1fr 1fr; }
}

.row {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
}


.img-wrap {
    width: 100%;
    background: #0f172a;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-wrap img {
    width: 150px;
    height: 150px;
    object-fit: cover;
}

.img-placeholder {
    color: var(--muted);
    font-size: 12px;
}

.product-page {
    padding: 16px;
}

.product-img {
    width: 100%;
    border-radius: 12px;
    margin: 12px 0;
}

.price {
    font-size: 20px;
    font-weight: 600;
    margin: 8px 0;
}

.p-action{
    display: flex;
    flex-direction: column;
}

.slider {
    position: relative;
    overflow: hidden;
}

.slider-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.slider-track::-webkit-scrollbar {
    display: none;
}

.slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
}

.slide img {
    width: 100%;
    display: block;
    border-radius: 12px;
}

.slide img {
    transition: opacity 0.3s ease;
}

.slider-dots {
    display: flex;
    justify-content: center;
    margin-top: 8px;
    gap: 6px;
}

.dot {
    width: 8px;
    height: 8px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}

.dot.active {
    background: #000;
}


.product-specs {
    margin: 10px 0;
    background: #f6f6f6;
    border-radius: 12px;
    padding: 8px;
    background: var(--panel);
    border: 1px solid var(--border);
}

.product-specs h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.product-specs table {
    width: 100%;
    border-collapse: collapse;
}

.product-specs td {
    padding: 6px 0;
    font-size: 14px;
}

.product-specs td:first-child {
    color: #777;
}

.product-specs td:last-child {
    text-align: right;
    font-weight: 500;
}

.btn-fixed-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    border-radius: 0;
    border: none;
    font-size: 16px;
    font-weight: 600;
    z-index: 100;
}

.has-bottom-btn {
    padding-bottom: 72px;
}

.search-wrap {
    margin-bottom: 16px;
}

.input {
    width: 100%;
    padding: 10px 14px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 14px;
    outline: none;
}

.input:focus {
    border-color: var(--accent);
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 0 8px;
}

.loading {
    text-align: center;
    color: var(--muted);
    padding: 32px 0;
}

