/* Pinwheel Webshop Styles */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --dark-color: #212529;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    padding-top: 56px;
}

/* Product Cards */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,.125);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.product-card img {
    height: 300px;
    object-fit: cover;
    border-bottom: 1px solid rgba(0,0,0,.125);
}

.product-card .card-body {
    padding: 1.25rem;
}

.product-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.product-card .card-text {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Cart Badge */
#cartCount {
    position: relative;
    top: -2px;
    font-size: 0.75rem;
    padding: 0.25em 0.5em;
}

/* Cart Modal */
.list-group-item img {
    max-width: 60px;
    border-radius: 4px;
}

/* Checkout Form */
#checkoutForm .form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

#checkoutForm .form-control {
    border-radius: 0.375rem;
    border: 1px solid #ced4da;
    padding: 0.625rem 0.75rem;
}

#checkoutForm .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Card Element Styling */
#card-element {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 0.625rem 0.75rem;
}

#card-element:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

#card-errors {
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Order Summary Card */
.card {
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Buttons */
.btn {
    border-radius: 0.375rem;
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    transform: translateY(-1px);
}

.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.btn-success:hover {
    background-color: #157347;
    border-color: #146c43;
}

/* Input Groups for Quantity */
.input-group {
    box-shadow: none;
}

.input-group .btn-outline-secondary {
    border-color: #ced4da;
}

.input-group .form-control {
    border-left: 1px solid #ced4da;
    border-right: 1px solid #ced4da;
}

/* Header */
header.bg-light {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

header h1 {
    font-weight: 700;
}

header .lead {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Navbar */
.navbar-dark .navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

/* Modal Headers */
.modal-header {
    border-bottom: 2px solid #dee2e6;
}

.modal-header.bg-success {
    background-color: var(--success-color) !important;
}

/* Footer */
footer {
    margin-top: auto;
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-card img {
        height: 250px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .modal-dialog {
        margin: 0.5rem;
    }
}

/* Alert Notification */
.alert {
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Empty Cart Message */
.text-center.text-muted {
    padding: 2rem;
    font-size: 1.1rem;
}

/* Price Display */
.h5.mb-0 {
    color: var(--success-color);
    font-weight: 700;
}

/* Success Modal Icon */
.fa-check-circle {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

/* Order Number Display */
#orderNumber {
    color: var(--primary-color);
    font-size: 1.2rem;
}
