/* ===== GENERAL RESET ===== */
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Roboto', sans-serif;
    background: #f7f7f7;
    color: #111;
}
a {
    text-decoration: none;
    color: inherit;
}

/* ===== WRAPPER ===== */
.container {
    width: 100%;
    max-width: 480px;
    margin: auto;
    padding: 0 14px;
}

/* ===== HEADER ===== */
.header {
    position: sticky;
    top: 0;
    background: #fff;
    padding: 14px 16px;
    font-size: 18px;
    font-weight: 600;
    z-index: 999;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Back icon */
.header .back {
    font-size: 24px;
    font-weight: bold;
}

/* ===== STORE HEADER ===== */
.store-header {
    background: #fff;
    margin: 14px 0;
    padding: 18px;
    border-radius: 20px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 14px;
}
.store-header img {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    object-fit: cover;
}
.store-header .info h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}
.store-header .info p {
    margin: 2px 0 0;
    color: #666;
    font-size: 14px;
}

/* ===== GRID ===== */
.grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 14px;
}

/* ===== PRODUCT CARD ===== */
.product-card {
    background: #fff;
    border-radius: 20px;
    padding: 12px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.product-card img {
    width: 100%;
    height: 130px;
    border-radius: 16px;
    object-fit: cover;
    margin-bottom: 10px;
}

.product-card h3 {
    font-size: 15px;
    margin: 0 0 6px;
    font-weight: 600;
}

.product-card .price {
    font-size: 16px;
    font-weight: 700;
    color: #219653;
    margin-bottom: 8px;
}

/* Add button */
.btn-add {
    background: #ff6600;
    color: #fff;
    padding: 10px;
    border-radius: 14px;
    text-align: center;
    font-size: 14px;
    margin-top: auto;
}
.btn-add:active {
    transform: scale(0.95);
}

/* ===== CART STICKY ===== */
.cart-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 14px 18px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cart-sticky .total {
    font-size: 17px;
    font-weight: 700;
}
.cart-sticky button {
    background: #2196f3;
    padding: 12px 22px;
    border-radius: 14px;
    border: none;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: #2196f3;
    padding: 14px;
    border-radius: 14px;
    color: white;
    text-align: center;
    font-size: 16px;
    display: block;
}
.btn-primary:active {
    transform: scale(0.97);
}

.btn-secondary {
    background: #eee;
    padding: 12px;
    border-radius: 12px;
    color: #333;
    text-align: center;
    font-size: 15px;
}

/* ===== CHECKOUT CARDS ===== */
.card {
    background: white;
    padding: 16px;
    border-radius: 18px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
    margin-bottom: 14px;
}

/* ===== INPUT FIELDS ===== */
input, select, textarea {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #ddd;
    font-size: 15px;
    margin-bottom: 12px;
}

/* ===== SUCCESS PAGE ===== */
.success-box {
    text-align: center;
    padding: 40px 20px;
}
.success-box h1 {
    font-size: 28px;
    color: #219653;
}
.success-box p {
    color: #444;
    font-size: 16px;
}
