/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
}

/* Header Styles */
.header {
    background: white;
    padding: 15px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #f0f0f0;
    color: #333;
}

.header-title h1 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.show-number-btn {
    background: #0f6b87;
    color: white;
}

.show-number-btn:hover {
    background: #0f6b87;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.enquire-btn {
    background: #0f6b87;
    color: white;
    border: 2px solid #0f6b87;
}

.enquire-btn:hover {
    background: #0f6b87;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.save-btn, .location-btn, .share-btn {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #e9ecef;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    justify-content: center;
    padding: 0;
}

.save-btn:hover, .location-btn:hover, .share-btn:hover {
    background: #e9ecef;
    color: #333;
    transform: translateY(-1px);
}

.whatsapp-btn {
    background: #25d366;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    justify-content: center;
    padding: 0;
}

.whatsapp-btn:hover {
    background: #1fb954;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* Content Styles */
.content {
    padding: 20px;
}

.products-section {
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

/* Product Category Styles */
.product-category {
    margin-bottom: 35px;
}

.category-title {
    font-size: 18px;
    font-weight: 600;
    color: #157a9d;
    margin-bottom: 20px;
    padding: 10px 15px;
    background: linear-gradient(135deg, rgba(21, 122, 157, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 8px;
    border-left: 4px solid #157a9d;
}

.product-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.product-item:hover {
    border-color: #157a9d;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(21, 122, 157, 0.1);
}

.product-image {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    margin-right: 15px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-item:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-name {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    line-height: 1.3;
}

.product-price {
    font-size: 16px;
    font-weight: 600;
    color: #157a9d;
}

.product-action {
    width: 40px;
    height: 40px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.product-item:hover .product-action {
    background: #1fb954;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* Product Detail Section */
.product-detail-section {
    display: flex;
    gap: 40px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-image-container {
    flex: 0 0 40%;
    position: relative;
}

.main-product-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(21, 122, 157, 0.1);
}

.product-info-container {
    flex: 0 0 60%;
    padding: 20px;
}

.product-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 24px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.product-description p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.product-cta {
    margin-top: 30px;
}

.product-cta .enquire-btn {
    width: 100%;
    max-width: 300px;
    padding: 15px 30px;
    font-size: 18px;
    text-align: center;
    justify-content: center;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #333;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    background: #28a745;
}

.toast.error {
    background: #dc3545;
}

.toast.info {
    background: #17a2b8;
}

.toast.warning {
    background: #ffc107;
    color: #333;
}

/* Modal Contact Form Styles */
.modal-contact {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow-y: auto;
}

.modal-contact-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.closepop-contact {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.closepop-contact:hover {
    color: #333;
}

.textAccept {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
    text-align: center;
}

.contactform {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contactform label {
    font-size: 14px;
    font-weight: 500;
    color: #555;
}

.contactform input,
.contactform textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.contactform input:focus,
.contactform textarea:focus {
    outline: none;
    border-color: #157a9d;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.country-code {
    font-size: 14px;
    color: #666;
}

.send-enquiry {
    background: #25d366;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.send-enquiry:hover {
    background: #1fb954;
    transform: translateY(-2px);
}

.alert {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: none;
}

.alert-danger {
    background-color: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header {
        padding: 12px 15px;
        flex-direction: column;
        align-items: stretch;
    }
    
    .header-title {
        order: -1;
        margin-bottom: 10px;
    }
    
    .header-title h1 {
        font-size: 16px;
        text-align: left;
    }
    
    .back-btn {
        align-self: flex-start;
        margin-bottom: 10px;
    }
    
    .header-actions {
        justify-content: center;
        gap: 6px;
    }
    
    .action-btn {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .content {
        padding: 15px;
    }
    
    .section-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .category-title {
        font-size: 16px;
        padding: 8px 12px;
    }
    
    .product-item {
        padding: 12px;
    }
    
    .product-image {
        width: 60px;
        height: 45px;
        margin-right: 12px;
    }
    
    .product-name {
        font-size: 14px;
    }
    
    .product-price {
        font-size: 14px;
    }
    
    .product-action {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .product-detail-section {
        flex-direction: column;
        gap: 20px;
        padding: 15px;
    }

    .product-image-container {
        flex: 0 0 100%;
    }

    .product-info-container {
        flex: 0 0 100%;
        padding: 15px 0;
    }

    .product-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .product-description p {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .product-cta .enquire-btn {
        max-width: 100%;
        padding: 12px 24px;
        font-size: 16px;
    }

    .modal-contact-content {
        margin: 10% auto;
        padding: 20px;
    }
    
    .textAccept {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .send-enquiry {
        padding: 12px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 10px 12px;
    }
    
    .header-title h1 {
        font-size: 15px;
    }
    
    .action-btn {
        font-size: 11px;
        padding: 5px 8px;
    }
    
    .save-btn, .location-btn, .share-btn, .whatsapp-btn {
        width: 35px;
        height: 35px;
    }
    
    .content {
        padding: 12px;
    }
    
    .section-title {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .product-category {
        margin-bottom: 25px;
    }
    
    .category-title {
        font-size: 15px;
        padding: 6px 10px;
    }
    
    .product-item {
        padding: 10px;
        margin-bottom: 10px;
    }
    
    .product-image {
        width: 50px;
        height: 40px;
        margin-right: 10px;
    }
    
    .product-name {
        font-size: 13px;
    }
    
    .product-price {
        font-size: 13px;
    }
    
    .product-action {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .product-detail-section {
        padding: 10px;
    }

    .product-info-container {
        padding: 10px 0;
    }

    .product-title {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .product-description p {
        font-size: 13px;
        margin-bottom: 12px;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 0.3s ease forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Loading States */
.loading {
    pointer-events: none;
    opacity: 0.7;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #157a9d;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
