/* Store Page Styles */

/* Page Header */
.store-header {
    background: linear-gradient(135deg, #7b1f3a 0%, #a8324e 100%);
    color: white;
    padding: 60px 0 40px;
    text-align: center;
}

.store-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.store-header p {
    opacity: 0.9;
    font-size: 1.1rem;
}

/* Category Filter */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 20px 0;
    background: var(--secondary-color);
    position: sticky;
    top: 76px;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.category-btn {
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-btn:hover,
.category-btn.active {
    background: var(--primary-color);
    color: white;
}

.category-btn i {
    margin-right: 5px;
}

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 40px 0;
}

.service-card-store {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card-store:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.service-card-header {
    background: linear-gradient(135deg, #f8f1f1 0%, #fff 100%);
    padding: 25px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.service-card-header i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.service-card-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-color);
}

.service-card-header .category-tag {
    display: inline-block;
    font-size: 0.75rem;
    padding: 3px 10px;
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    margin-top: 8px;
}

/* Service Card Image */
.service-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f8f1f1;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s ease;
}

.service-card-store:hover .service-card-image img {
    transform: scale(1.1);
}

.service-card-image .category-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.75rem;
    padding: 5px 12px;
    background: var(--primary-color);
    color: white;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.service-card-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 10px;
}

.service-card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-card-body p {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 15px;
    flex-grow: 1;
}

.service-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.service-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.service-delivery {
    font-size: 0.85rem;
    color: var(--light-text);
}

.service-delivery i {
    margin-right: 3px;
}

/* Quantity Controls */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.qty-btn:hover {
    background: var(--primary-color);
    color: white;
}

.qty-input {
    width: 50px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 8px;
    font-size: 1rem;
}

.add-to-cart-btn {
    flex: 1;
    margin-left: 10px;
    padding: 10px 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.add-to-cart-btn:hover {
    background: var(--accent-color);
}

.add-to-cart-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.add-to-cart-btn i {
    margin-right: 5px;
}

/* Floating Cart Button */
.floating-cart {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.cart-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    box-shadow: 0 5px 20px rgba(123, 31, 58, 0.4);
    cursor: pointer;
    font-size: 1.5rem;
    position: relative;
    transition: all 0.3s;
}

.cart-btn:hover {
    transform: scale(1.1);
    background: var(--accent-color);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #25D366;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}

/* Cart Sidebar */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    max-width: 100%;
    height: 100%;
    background: white;
    z-index: 1200;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 20px;
    background: var(--primary-color);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    margin: 0;
}

.cart-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cart-item-info h4 {
    margin: 0 0 5px;
    font-size: 1rem;
}

.cart-item-info p {
    margin: 0;
    color: var(--light-text);
    font-size: 0.9rem;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 5px;
}

.cart-item-qty button {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
}

.cart-item-qty span {
    width: 30px;
    text-align: center;
}

.remove-item {
    color: #dc3545;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
}

.cart-empty {
    text-align: center;
    padding: 40px;
    color: var(--light-text);
}

.cart-empty i {
    font-size: 4rem;
    margin-bottom: 15px;
    opacity: 0.3;
}

.cart-footer {
    padding: 20px;
    background: #f8f8f8;
    border-top: 1px solid #eee;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.cart-total span:last-child {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.4rem;
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.checkout-btn:hover {
    background: var(--accent-color);
}

.checkout-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Booking Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlide 0.3s ease;
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px;
    background: var(--primary-color);
    color: white;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-body {
    padding: 25px;
}

.modal-body .form-group {
    margin-bottom: 20px;
}

.modal-body label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--text-color);
}

.modal-body input,
.modal-body textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.modal-body input:focus,
.modal-body textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* OTP Section */
.otp-section {
    text-align: center;
    padding: 20px;
}

.otp-input-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.otp-input {
    width: 50px;
    height: 55px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    border: 2px solid #ddd;
    border-radius: 8px;
}

.otp-input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.otp-timer {
    color: var(--light-text);
    margin: 15px 0;
}

.otp-timer.expired {
    color: #dc3545;
}

.resend-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-weight: 500;
    text-decoration: underline;
}

.resend-btn:disabled {
    color: #ccc;
    cursor: not-allowed;
    text-decoration: none;
}

/* Success/Payment Section */
.success-section {
    text-align: center;
    padding: 30px;
}

.success-icon {
    font-size: 5rem;
    color: #4caf50;
    margin-bottom: 20px;
}

.order-id-display {
    background: #f8f1f1;
    padding: 15px 25px;
    border-radius: 8px;
    display: inline-block;
    margin: 15px 0;
}

.order-id-display span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.qr-code-section {
    margin: 25px 0;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 10px;
}

.qr-code-section img {
    max-width: 200px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.payment-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 15px 0;
}

/* Info Alert */
.info-alert {
    background: #e3f2fd;
    border: 1px solid #2196f3;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
}

.info-alert i {
    color: #2196f3;
    font-size: 1.2rem;
    margin-top: 2px;
}

.info-alert p {
    margin: 0;
    font-size: 0.9rem;
    color: #1565c0;
}

.warning-alert {
    background: #fff3e0;
    border: 1px solid #ff9800;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.warning-alert i {
    color: #ff9800;
}

.warning-alert p {
    color: #e65100;
}

/* Track Order Page */
.track-header {
    background: linear-gradient(135deg, #7b1f3a 0%, #a8324e 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.search-box {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.search-box input {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 15px;
}

.search-box input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.search-box button {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.order-result {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
    overflow: hidden;
}

.order-result-header {
    background: var(--primary-color);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-confirmed {
    background: #4caf50;
}

.status-in_progress {
    background: #2196f3;
}

.status-ready {
    background: #ff9800;
}

.status-delivered {
    background: #9c27b0;
}

.status-cancelled {
    background: #f44336;
}

.payment-unpaid {
    background: #f44336;
}

.payment-pending_verification {
    background: #ff9800;
}

.payment-paid {
    background: #4caf50;
}

/* Admin Page */
.admin-header {
    background: #222;
    color: white;
    padding: 20px 0;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin: 0;
}

.stat-card p {
    color: var(--light-text);
    margin: 5px 0 0;
}

.orders-table {
    width: 100%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.orders-table th {
    background: var(--primary-color);
    color: white;
    padding: 15px;
    text-align: left;
}

.orders-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.orders-table tr:hover {
    background: #f8f8f8;
}

.action-btn {
    padding: 5px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    margin-right: 5px;
}

.btn-view {
    background: #2196f3;
    color: white;
}

.btn-verify {
    background: #4caf50;
    color: white;
}

.btn-status {
    background: #ff9800;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .store-header h1 {
        font-size: 1.8rem;
    }

    .category-filter {
        top: 60px;
        padding: 15px;
    }

    .category-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .floating-cart {
        bottom: 20px;
        right: 20px;
    }

    .cart-btn {
        width: 55px;
        height: 55px;
    }

    .otp-input {
        width: 45px;
        height: 50px;
    }
}