.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin: 2em 0;
}
.shop-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 1.5em 1em;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.2s;
}
.shop-card:hover {
    box-shadow: 0 4px 24px rgba(25,118,210,0.12);
}
.shop-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1em;
    background: #f5f5f5;
}
.shop-card h3 {
    font-size: 1.15em;
    margin: 0.5em 0 0.3em 0;
    color: #1976d2;
    text-align: center;
}
.shop-card p {
    font-size: 0.98em;
    color: #444;
    text-align: center;
    margin: 0.3em 0;
}
.shop-card .shop-price {
    font-weight: bold;
    color: #388e3c;
    font-size: 1.1em;
    margin: 0.5em 0;
}
.shop-card form {
    margin-top: 0.8em;
    width: 100%;
    display: flex;
    justify-content: center;
}
.shop-card button {
    background: #1976d2;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.6em 1.2em;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s;
}
.shop-card button:hover {
    background: #1565c0;
}
.shop-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 2em 0 1em 0;
}
.shop-pagination a, .shop-pagination span {
    padding: 0.5em 1em;
    border-radius: 6px;
    background: #f5f5f5;
    color: #1976d2;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}
.shop-pagination a:hover {
    background: #e3f2fd;
}
.shop-pagination .active {
    background: #1976d2;
    color: #fff;
    pointer-events: none;
}
@media (max-width: 700px) {
    .shop-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .shop-card {
        padding: 1em 0.5em;
    }
    .shop-card img {
        width: 100px;
        height: 100px;
    }
}
.cart-container {
    max-width: 1024px;
    margin: 2em auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 2em 2.5em;
}
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5em;
}
.cart-table th, .cart-table td {
    padding: 0.7em;
    border-bottom: 1px solid #eee;
    text-align: left;
    vertical-align: middle;
}
.cart-table img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    margin: 0 auto 6px auto;
}
.cart-actions {
    text-align: right;
}
.cart-total {
    font-size: 1.2em;
    font-weight: bold;
    color: #000000;
    margin-top: 1em;
    display: flex;
    margin-bottom: 20px;
    justify-content: flex-end;
}
.cart-message {
    color: #1976d2;
    margin-bottom: 1em;
    font-weight: 500;
}
.cart-empty {
    color: #888;
    text-align: center;
    margin: 2em 0;
}
.cart-checkout-btn {
    background: #1976d2;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.7em 1.5em;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s;
}
.cart-checkout-btn:hover {
    background: #1565c0;
}
@media (max-width: 700px) {
    .cart-container {
        padding: 1em 0.5em;
    }
    .cart-table th, .cart-table td {
        padding: 0.5em;
    }
}
.checkout-container {
    max-width: 700px;
    margin: 2em auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 2em 2.5em;
}
.checkout-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5em;
}
.checkout-table th, .checkout-table td {
    padding: 0.7em;
    border-bottom: 1px solid #eee;
    text-align: left;
}
.checkout-table img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
}
.checkout-form label {
    display: block;
    margin-top: 1em;
    font-weight: 500;
}
.checkout-form input, .checkout-form textarea {
    width: 100%;
    padding: 0.6em;
    margin-top: 0.3em;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
}
.checkout-form input[type="checkbox"] {
    width: auto;
    padding: 0.6em;
    margin-top: 0em;
    margin-right: 0.5em;
    vertical-align: middle;
}
.checkout-form select {
    width: 100%;
    padding: 0.6em;
    margin-top: 0.3em;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
    background: #fff;
    appearance: auto;
}
.checkout-form button {
    background: #1976d2;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.7em 1.5em;
    font-size: 1em;
    cursor: pointer;
    margin-top: 1.5em;
    transition: background 0.2s;
}
.checkout-form button:hover {
    background: #1565c0;
}
.checkout-errors {
    color: #d32f2f;
    margin-bottom: 1em;
    font-weight: 500;
}
.checkout-success {
    color: #388e3c;
    font-size: 1.2em;
    margin-bottom: 1em;
    font-weight: 500;
    text-align: center;
}
.checkout-total {
    font-size: 1.2em;
    font-weight: bold;
    color: #000000;
    margin-top: 1em;
    display: flex;
    margin-bottom: 20px;
    justify-content: flex-start;
}
@media (max-width: 700px) {
    .checkout-container {
        padding: 1em 0.5em;
    }
    .checkout-table th, .checkout-table td {
        padding: 0.5em;
    }
}