/* Additional Styles for Checkout, Order Tracking, and Admin Features */

/* Auth Modal Styles */
.auth-container {
    padding: 2rem;
}

.auth-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #ff6b35;
    border-bottom-color: #ff6b35;
}

.auth-form h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #ff6b35;
}

.auth-submit-btn {
    width: 100%;
    background: #ff6b35;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: background 0.3s ease;
}

.auth-submit-btn:hover {
    background: #e55a2b;
}

.auth-divider {
    text-align: center;
    margin: 1rem 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e9ecef;
}

.auth-divider span {
    background: white;
    padding: 0 1rem;
    color: #666;
}

.google-btn {
    width: 100%;
    background: white;
    color: #333;
    border: 2px solid #e9ecef;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.google-btn:hover {
    border-color: #4285f4;
    color: #4285f4;
}

/* Product Details Modal */
.product-details {
    display: flex;
    padding: 2rem;
    gap: 2rem;
}

.product-gallery {
    flex: 1;
}

.main-image {
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    max-width: 350px;
    margin: 0 auto 1rem auto;
}

.main-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.thumbnail-gallery {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 350px;
    margin: 0 auto;
}

.thumbnail {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    object-fit: cover;
    opacity: 0.7;
}

.thumbnail.active {
    border-color: #ff6b35;
    opacity: 1;
    transform: scale(1.05);
}

.thumbnail:hover {
    border-color: #ff6b35;
    opacity: 1;
}

.product-info-detailed {
    flex: 1;
}

.product-info-detailed h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stars {
    color: #ffc107;
}

.product-price-detailed {
    margin-bottom: 1.5rem;
}

.product-price-detailed .current-price {
    font-size: 2rem;
    font-weight: 700;
    color: #ff6b35;
    margin-right: 1rem;
}

.product-price-detailed .original-price {
    font-size: 1.2rem;
    color: #999;
    text-decoration: line-through;
    margin-right: 1rem;
}

.discount {
    background: #ff6b35;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-description-detailed h4 {
    margin-bottom: 0.5rem;
    color: #333;
}

.product-description-detailed p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.product-description-detailed ul {
    list-style: none;
    margin-bottom: 2rem;
}

.product-description-detailed li {
    padding: 0.3rem 0;
    color: #666;
    position: relative;
    padding-left: 1.5rem;
}

.product-description-detailed li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.product-actions-detailed {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.quantity-selector button {
    background: #f8f9fa;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.quantity-selector button:hover {
    background: #e9ecef;
}

.quantity-selector span {
    padding: 0 1rem;
    font-weight: 600;
    min-width: 60px;
    text-align: center;
}

/* Checkout Modal */
.checkout-container {
    padding: 2rem;
}

.checkout-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.checkout-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: #ff6b35;
    color: white;
}

.step.completed .step-number {
    background: #28a745;
    color: white;
}

.step-title {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

.step.active .step-title {
    color: #ff6b35;
    font-weight: 600;
}

.checkout-step h3 {
    margin-bottom: 1.5rem;
    color: #333;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.shipping-option {
    margin-bottom: 1rem;
}

.shipping-method {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.shipping-method:hover {
    border-color: #ff6b35;
}

.shipping-method input[type="radio"] {
    display: none;
}

.shipping-method input[type="radio"]:checked + label {
    border-color: #ff6b35;
}

.shipping-method label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin: 0;
}

.shipping-info h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.shipping-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.shipping-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ff6b35;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.payment-option {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.payment-option:hover {
    border-color: #ff6b35;
}

.payment-option input[type="radio"] {
    display: none;
}

.payment-option input[type="radio"]:checked + label {
    color: #ff6b35;
}

.payment-option label {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    margin: 0;
    font-weight: 500;
}

.payment-option i {
    font-size: 1.5rem;
}

.step-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

.prev-btn, .next-btn, .confirm-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.prev-btn {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e9ecef;
}

.prev-btn:hover {
    background: #e9ecef;
}

.next-btn, .confirm-btn {
    background: #ff6b35;
    color: white;
}

.next-btn:hover, .confirm-btn:hover {
    background: #e55a2b;
}

.order-summary {
    margin-bottom: 2rem;
}

.summary-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.summary-section:last-child {
    border-bottom: none;
}

.summary-section h4 {
    margin-bottom: 0.5rem;
    color: #333;
}

.order-total {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.total-row.total {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ff6b35;
    border-top: 1px solid #e9ecef;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

.confirmation-content {
    text-align: center;
    padding: 2rem;
}

.success-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 1rem;
}

.confirmation-content h3 {
    color: #333;
    margin-bottom: 1rem;
}

.confirmation-content p {
    color: #666;
    margin-bottom: 2rem;
}

.order-details {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.order-details p {
    margin: 0.5rem 0;
    text-align: left;
}

.track-order-btn {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.track-order-btn:hover {
    background: #e55a2b;
}

/* Order History & Tracking */
.order-list {
    max-height: 400px;
    overflow-y: auto;
}

.order-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.order-id {
    font-weight: 600;
    color: #333;
}

.order-status {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.order-status.pending {
    background: #fff3cd;
    color: #856404;
}

.order-status.processing {
    background: #d1ecf1;
    color: #0c5460;
}

.order-status.shipped {
    background: #d4edda;
    color: #155724;
}

.order-status.delivered {
    background: #d1ecf1;
    color: #0c5460;
}

.view-order-btn {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.tracking-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tracking-form input {
    flex: 1;
    padding: 0.8rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
}

.tracking-form button {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
}

.tracking-timeline {
    margin-top: 2rem;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    position: relative;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 10px;
    top: 25px;
    width: 2px;
    height: 40px;
    background: #e9ecef;
}

.timeline-item.completed::after {
    background: #28a745;
}

.timeline-marker {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e9ecef;
    margin-right: 1rem;
    flex-shrink: 0;
}

.timeline-item.completed .timeline-marker {
    background: #28a745;
}

.timeline-content h5 {
    margin: 0 0 0.25rem 0;
    color: #333;
}

.timeline-content p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Admin Panel */
.admin-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.admin-orders h4 {
    margin-bottom: 1rem;
    color: #333;
}

.orders-table {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.order-row {
    display: grid;
    grid-template-columns: 1fr 1fr 100px 150px;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    align-items: center;
}

.order-cell {
    font-size: 0.9rem;
}

.order-cell select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #e9ecef;
    border-radius: 4px;
}

/* Cart Item Styles */
.cart-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f3f4;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 1rem;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
}

.cart-item-price {
    color: #ff6b35;
    font-weight: 600;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.quantity-btn {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-details {
        flex-direction: column;
    }
    
    .checkout-steps {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .step-actions {
        flex-direction: column;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .order-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}
