/* Shop Page Styles */

/* Cart Icon */
.cart-icon {
    position: relative;
    margin-left: 15px;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s;
}

.cart-icon:hover {
    background: rgba(139, 69, 19, 0.1);
}

.cart-icon i {
    font-size: 1.2rem;
    color: #8B4513;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Shop Header */
.shop-header {
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('https://i.postimg.cc/Jh282Kt1/Gemini-Generated-Image-73cyzn73cyzn73cy.png');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    color: white;
    text-align: center;
}

.shop-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.shop-hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
}



/* Product Categories */
.product-categories {
    padding: 60px 0;
    background: #f8f9fa;
}

/* Categories Filter - Salla Style */
.categories-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.filter-btn {
    background: #f8f9fa;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
}

.filter-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.filter-btn.active {
    background: #8B4513;
    color: white;
    border-color: #8B4513;
}

/* Products Section */
.products-section {
    padding: 80px 0;
}

/* Products Grid - Salla Style */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
    padding: 0 10px;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.product-image-container {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
    aspect-ratio: 1;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    z-index: 2;
}

.product-badge.new {
    background: #10b981;
}

.product-badge.sale {
    background: #ef4444;
}

.product-badge.premium {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ef4444;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
}

.product-actions {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-actions {
    opacity: 1;
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.9);
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.action-btn:hover {
    background: #8B4513;
    color: white;
    transform: scale(1.1);
}

.product-content {
    padding: 16px;
}

.product-title {
    color: #1f2937;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-description {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.stars {
    display: flex;
    gap: 2px;
}

.stars i {
    color: #fbbf24;
    font-size: 12px;
}

.stars i.far {
    color: #d1d5db;
}

.rating-count {
    color: #9ca3af;
    font-size: 12px;
}

.product-price-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.price-container {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.old-price {
    color: #9ca3af;
    text-decoration: line-through;
    font-size: 12px;
    line-height: 1;
}

.current-price {
    color: #8B4513;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

.add-to-cart-btn {
    background: #8B4513;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.add-to-cart-btn:hover {
    background: #A0522D;
    transform: translateY(-1px);
}

.add-to-cart-btn i {
    font-size: 11px;
}

/* Empty Products State */
.empty-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: #6b7280;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #d1d5db;
}

.empty-products h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #374151;
}

.empty-products p {
    font-size: 1rem;
    color: #6b7280;
}

/* Product Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #333;
}

.modal-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.modal-image img {
    width: 100%;
    border-radius: 15px;
}

.modal-info h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 2rem;
}

.modal-price {
    font-size: 1.8rem;
    color: #8B4513;
    font-weight: 700;
    margin-bottom: 20px;
}

.modal-description {
    color: #666;
    line-height: 1.8;
    margin-bottom: 25px;
}

.modal-features h4 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.modal-features ul {
    list-style: none;
    margin-bottom: 30px;
}

.modal-features li {
    padding: 8px 0;
    color: #666;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-features li::before {
    content: "✓";
    color: #27ae60;
    font-weight: bold;
}

.modal-add-to-cart {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #8B4513, #A0522D);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.modal-add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139,69,19,0.3);
}

/* Cart Modal */
#cartItems {
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    gap: 15px;
}

.cart-item:last-child {
    border-bottom: none;
}

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

.cart-item-info h4 {
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 16px;
}

.cart-item-price {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    border-radius: 20px;
    padding: 5px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: #8B4513;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.3s;
}

.quantity-btn:hover {
    background: #A0522D;
    transform: scale(1.1);
}

.quantity {
    min-width: 30px;
    text-align: center;
    font-weight: bold;
    color: #333;
}

.item-total {
    font-weight: bold;
    color: #8B4513;
    min-width: 80px;
    text-align: center;
}

.remove-item {
    background: #dc3545;
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.remove-item:hover {
    background: #c82333;
    transform: scale(1.1);
}

.cart-total {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.cart-total h3 {
    color: #2c3e50;
    font-size: 1.5rem;
}

.cart-actions {
    display: flex;
    gap: 15px;
}

.checkout-btn,
.clear-cart-btn {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.checkout-btn {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(39,174,96,0.3);
}

.clear-cart-btn {
    background: #e74c3c;
    color: white;
}

.clear-cart-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

/* Checkout Modal Styles */
.checkout-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.checkout-modal.active {
    opacity: 1;
    visibility: visible;
}

.checkout-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.checkout-header {
    padding: 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkout-header h2 {
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 600;
}

.close-checkout {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
}

.close-checkout:hover {
    background: #f3f4f6;
    color: #374151;
}

.checkout-steps {
    display: flex;
    justify-content: space-between;
    padding: 20px 24px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 60%;
    width: 80%;
    height: 2px;
    background: #e5e7eb;
    z-index: 1;
}

.step.completed:not(:last-child)::after {
    background: #8B4513;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    position: relative;
    z-index: 2;
}

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

.step.completed .step-number {
    background: #10b981;
    color: white;
}

.step-title {
    font-size: 12px;
    color: #6b7280;
    text-align: center;
    font-weight: 500;
}

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

.checkout-body {
    padding: 24px;
    min-height: 400px;
}

.checkout-step {
    display: none;
}

.checkout-step.active {
    display: block;
}

.order-review h3,
.customer-info h3,
.location-selection h3,
.payment-methods h3,
.order-confirmation h3 {
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.order-items {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.order-item:last-child {
    border-bottom: none;
}

.item-info h4 {
    color: #1f2937;
    font-weight: 600;
    margin-bottom: 4px;
}

.item-info p {
    color: #6b7280;
    font-size: 14px;
}

.item-price {
    color: #8B4513;
    font-weight: 600;
}

.order-total {
    text-align: center;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
}

.order-total h3 {
    color: #8B4513;
    font-size: 1.5rem;
    margin: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    color: #374151;
    font-weight: 500;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8B4513;
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.payment-options {
    display: grid;
    gap: 12px;
    margin-bottom: 24px;
}

.payment-option {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

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

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

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

.payment-option input[type="radio"]:checked {
    border-color: #8B4513;
    background: #fef7f0;
}

.payment-option label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 500;
    color: #374151;
}

.payment-option label i {
    font-size: 1.25rem;
    color: #6b7280;
}

.payment-details {
    background: #f9fafb;
    border-radius: 8px;
    padding: 20px;
    margin-top: 16px;
}

.bank-info {
    background: white;
    border-radius: 6px;
    padding: 16px;
    margin: 16px 0;
    border-left: 4px solid #8B4513;
}

.bank-info p {
    margin-bottom: 8px;
    color: #374151;
}

.confirmation-icon {
    text-align: center;
    margin-bottom: 20px;
}

.confirmation-icon i {
    font-size: 4rem;
    color: #10b981;
}

.order-confirmation p {
    text-align: center;
    color: #6b7280;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* Map Styles */
.map-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
}

.map-search-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Cairo', sans-serif;
    transition: border-color 0.3s;
}

.map-search-input:focus {
    outline: none;
    border-color: #8B4513;
}

.map-container {
    margin: 15px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#googleMap {
    width: 100%;
    height: 350px;
}

.selected-location {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    border-left: 4px solid #8B4513;
}

.selected-location h4 {
    color: #8B4513;
    margin-bottom: 8px;
    font-size: 16px;
}

.selected-location p {
    color: #666;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.final-summary {
    background: #f9fafb;
    border-radius: 8px;
    padding: 20px;
}

.summary-section {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

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

.summary-section h4 {
    color: #374151;
    font-weight: 600;
    margin-bottom: 8px;
}

.summary-section p {
    color: #6b7280;
    margin: 0;
}

.total-amount {
    color: #8B4513 !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
}

.checkout-footer {
    padding: 20px 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    font-family: 'Cairo', sans-serif;
}

.btn-primary {
    background: #8B4513;
    color: white;
}

.btn-primary:hover {
    background: #A0522D;
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    white-space: nowrap;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

.btn-secondary i {
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .shop-hero h1 {
        font-size: 2.5rem;
    }
    
    .categories-filter {
        justify-content: center;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-product {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .modal-content {
        padding: 30px 20px;
    }
    
    .cart-actions {
        flex-direction: column;
    }
    
    .checkout-content {
        width: 95%;
        margin: 20px;
    }
    
    .checkout-steps {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .step {
        flex: none;
        width: calc(20% - 8px);
    }
    
    .step:not(:last-child)::after {
        display: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .checkout-footer {
        flex-direction: column;
    }
    
    .cart-item {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .quantity-controls {
        justify-content: center;
    }
    
    .item-total {
        text-align: center;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .shop-hero h1 {
        font-size: 2rem;
    }
    
    .shop-hero p {
        font-size: 1.1rem;
    }
    

}