/* Modern Store Frontend Styles */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #ffffff;
    color: #1e293b;
}

.store-wrapper {
    background: #ffffff;
    min-height: 100vh;
    padding-bottom: 2rem;
}

.store-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.store-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.store-logo a {
    text-decoration: none;
    color: #667eea;
}

.store-logo h2 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.store-logo img {
    max-height: 50px;
    width: auto;
}

.store-cart-icon {
    position: relative;
}

.cart-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.cart-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    color: #fff;
    border-radius: 50%;
    min-width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.4);
    border: 2px solid white;
}

.store-content {
    padding: 0 0 3rem;
}

/* Product Listing */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.product-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #e2e8f0;
}

.product-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transform: translateY(-8px) scale(1.02);
    border-color: #f59e0b;
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: #f3f4f6;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-details {
    padding: 1.25rem;
}

.product-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.5rem;
}

.product-sku {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0 0 0.75rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 1rem;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-add-cart {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-add-cart::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-add-cart:hover::before {
    left: 100%;
}

.btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-view-cart {
    flex: 1;
    background: #10b981;
    color: #fff;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
    display: none;
}

.btn-view-cart:hover {
    background: #059669;
}

.btn-view-cart.show {
    display: block;
}

/* Cart Page */
.cart-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.cart-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 2rem;
    color: #1e293b;
    text-align: center;
}

.cart-table {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.cart-table table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    background: #f8fafc;
    padding: 1.25rem;
    text-align: left;
    font-weight: 700;
    color: #475569;
    border-bottom: 2px solid #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
}

.cart-table td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 0.5rem;
}

.cart-item-name {
    font-weight: 600;
    color: #1e293b;
}

.cart-item-sku {
    font-size: 0.875rem;
    color: #64748b;
}

.quantity-input {
    width: 80px;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    text-align: center;
}

.btn-remove {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-remove:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
}

.cart-summary {
    background: #ffffff;
    border-radius: 20px;
    padding: 2rem;
    max-width: 450px;
    margin-left: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.cart-summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #e2e8f0;
    font-size: 1.5rem;
    font-weight: 700;
}

.btn-checkout {
    width: 100%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    border: none;
    padding: 1.25rem;
    border-radius: 50px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 1.5rem;
    text-decoration: none;
    display: block;
    text-align: center;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-checkout::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-checkout:hover::before {
    left: 100%;
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.6);
}

/* Checkout Page */
.checkout-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.checkout-container h1 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 2rem;
    color: #1e293b;
    text-align: center;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 2rem;
    align-items: start;
}

.checkout-form {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.form-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.form-section:last-child {
    border-bottom: none;
}

.form-section-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 1.5rem;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #64748b;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    font-size: 0.9375rem;
    color: #1e293b;
    background: #ffffff;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
    border-color: #94a3b8;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

.form-group small {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.75rem;
    color: #94a3b8;
    font-style: italic;
}

.order-summary-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.75rem;
    position: sticky;
    top: 6rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.order-summary-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 1.25rem;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
}

.order-item {
    display: flex;
    gap: 0.875rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.order-item:last-child {
    border-bottom: none;
    margin-bottom: 1.5rem;
}

.order-item-image {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.order-item-details {
    flex: 1;
    min-width: 0;
}

.order-item-name {
    font-weight: 600;
    font-size: 0.9375rem;
    margin: 0 0 0.25rem;
    color: #1e293b;
}

.order-item-qty {
    font-size: 0.8125rem;
    color: #64748b;
}

.order-item-price {
    font-weight: 700;
    font-size: 0.9375rem;
    color: #1e293b;
}

.btn-place-order {
    width: 100%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-place-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.btn-place-order:active {
    transform: translateY(0);
}

/* Order Summary Rows */
.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.625rem 0;
    font-size: 0.9375rem;
    color: #64748b;
}

.cart-summary-row span:last-child {
    font-weight: 600;
    color: #1e293b;
}

.cart-summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 2px solid #e2e8f0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
}

/* Thank You Page */
.thankyou-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem 1rem;
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.success-icon svg {
    width: 48px;
    height: 48px;
    color: #fff;
}

.thankyou-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: #1e293b;
}

.thankyou-message {
    font-size: 1.125rem;
    color: #64748b;
    margin: 0 0 2rem;
}

.order-details-box {
    background: #fff;
    border-radius: 0.75rem;
    padding: 2rem;
    margin: 2rem 0;
    text-align: left;
}

.btn-continue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.btn-continue:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 6rem 1rem;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
    filter: grayscale(0.3);
}

.empty-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: #1e293b;
}

.empty-message {
    color: #64748b;
    font-size: 1.125rem;
    margin: 0 0 2rem;
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

/* Booqable Style Product Cards */
.booqable-product-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 2px solid #e2e8f0;
}

.booqable-product-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transform: translateY(-8px) scale(1.02);
    border-color: #f59e0b;
}

.booqable-product-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #fff;
}

.booqable-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.booqable-product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #94a3b8;
    background: #f3f4f6;
}

.booqable-availability-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #fbbf24;
    color: #78350f;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.booqable-product-info {
    padding: 1.25rem;
}

.booqable-product-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.5rem;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.booqable-product-duration {
    display: inline-block;
    margin-top: .35rem;
    padding: 2px 10px;
    font-size: .72rem;
    font-weight: 600;
    color: #b45309;
    background: #fef3c7;
    border-radius: 999px;
    letter-spacing: .2px;
    text-transform: capitalize;
}

.booqable-product-footer {
    margin-top: 1rem;
}

.booqable-product-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.booqable-product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
}

.booqable-product-price-unit {
    font-size: .85rem;
    font-weight: 500;
    color: #64748b;
    margin-left: .25rem;
}

.booqable-add-to-cart-btn {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.booqable-add-to-cart-btn:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
}

.booqable-add-to-cart-btn:active {
    transform: scale(0.95) rotate(0deg);
}

/* Responsive */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    
    .order-summary-box {
        position: static;
        order: -1;
        margin-bottom: 1.5rem;
    }
    
    .checkout-form {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .checkout-container h1 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .form-section-title {
        font-size: 0.8125rem;
    }
    
    .booqable-product-image {
        height: 200px;
    }
}

@media (min-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Price Range Inputs Fix */
.price-range-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.price-range-inputs input {
    flex: 1;
    min-width: 0;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.875rem;
    box-sizing: border-box;
}

.price-range-inputs span {
    color: #64748b;
    font-weight: 600;
    flex-shrink: 0;
}

/* Payment Section Styling */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.8125rem;
    line-height: 1.5;
}

.alert-info {
    background-color: #dbeafe;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.alert p {
    margin: 0.25rem 0;
}

.alert strong {
    font-weight: 700;
}

.text-muted {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.text-muted::before {
    content: "🔒";
    font-size: 0.875rem;
}

/* ══ Rental Modal Styles (shared: index + product page) ══════════════════════ */
.rental-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rental-modal-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
}
.rental-modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.rental-modal-large { max-width: 1000px; }
.rental-modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.rental-modal-header h2 { margin: 0; font-size: 1.5rem; color: #1e293b; }
.rental-modal-close {
    background: none; border: none;
    font-size: 2rem; color: #64748b; cursor: pointer;
    padding: 0; width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
}
.rental-modal-close:hover { color: #1e293b; }
.rental-modal-body { padding: 2rem; overflow-y: auto; }

/* Availability layout */
.availability-layout { display: flex; flex-direction: column; gap: 2rem; }
.availability-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.availability-field label { display: block; font-weight: 600; color: #1e293b; margin-bottom: .5rem; }
.quantity-control {
    display: flex; align-items: center;
    border: 2px solid #e2e8f0; border-radius: 8px; overflow: hidden;
}
.quantity-control button {
    background: white; border: none;
    padding: .75rem 1rem; font-size: 1.25rem;
    cursor: pointer; color: #64748b;
}
.quantity-control button:hover { background: #f1f5f9; }
.quantity-control input {
    flex: 1; border: none; text-align: center;
    font-size: 1rem; font-weight: 600; padding: .75rem;
}
.availability-select {
    width: 100%; padding: .75rem 1rem;
    border: 2px solid #e2e8f0; border-radius: 8px;
    font-size: 1rem; color: #1e293b;
}

/* Calendar */
.availability-calendar {
    background: white; border: 2px solid #e2e8f0;
    border-radius: 12px; padding: 1.5rem;
}
.calendar-header {
    display: flex; justify-content: space-between;
    align-items: center; margin-bottom: 1.5rem;
}
.calendar-header h3 { margin: 0; font-size: 1.25rem; color: #1e293b; }
.calendar-nav {
    background: none; border: 2px solid #e2e8f0;
    width: 40px; height: 40px; border-radius: 8px;
    font-size: 1.5rem; cursor: pointer; color: #64748b;
}
.calendar-nav:hover { background: #f1f5f9; }
.calendar-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: .5rem; }
.calendar-day-header {
    text-align: center; padding: .75rem;
    font-size: .875rem; font-weight: 600; color: #64748b;
}
.calendar-day {
    aspect-ratio: 1; padding: .5rem; border-radius: 8px;
    text-align: center; display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    border: 2px solid transparent;
}
.calendar-day-empty { visibility: hidden; }
.calendar-day-number { font-size: 1rem; font-weight: 600; margin-bottom: .25rem; }
.calendar-day-count  { font-size: .75rem; color: #64748b; }
.calendar-day-available { background: #dcfce7; color: #166534; cursor: pointer; }
.calendar-day-available:hover { background: #bbf7d0; border-color: #10b981; }
.calendar-day-selected  { background: #3b82f6 !important; color: #fff !important; border-color: #2563eb !important; }
.calendar-day-selected .calendar-day-count { color: rgba(255,255,255,.8); }
.calendar-day-range-start,
.calendar-day-range-end {
    background: #3b82f6 !important; color: #fff !important;
    border-color: #2563eb !important; font-weight: 700;
}
.calendar-day-range-start .calendar-day-count,
.calendar-day-range-end .calendar-day-count { color: rgba(255,255,255,.9); }
.calendar-day-in-range  { background: #bfdbfe !important; color: #1e40af !important; }
.calendar-day-in-range .calendar-day-count { color: #3b82f6; }
.calendar-day-hover-in-range { background: #e0f2fe !important; color: #1d4ed8 !important; }
.calendar-day-hover-in-range .calendar-day-count { color: #3b82f6; }
.calendar-day-unavailable { background: #f1f5f9; color: #cbd5e1; }

/* Time Slots */
.time-slots-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.time-slot {
    padding: 1rem; border: 2px solid #e2e8f0;
    border-radius: 8px; text-align: center;
    cursor: pointer; transition: all .2s;
}
.time-slot-time   { font-weight: 600; color: #1e293b; margin-bottom: .5rem; }
.time-slot-status { font-size: .875rem; color: #64748b; }
.time-slot-available { background: #dcfce7; }
.time-slot-available:hover { background: #bbf7d0; border-color: #10b981; transform: translateY(-2px); }
.time-slot-unavailable { background: #f1f5f9; opacity: .5; cursor: not-allowed; }

@media (max-width: 768px) {
    .availability-controls  { grid-template-columns: 1fr; }
    .time-slots-list        { grid-template-columns: repeat(2,1fr); }
}

