/* Common CSS Variables */
:root {
    --primary: #1a73e8;
    --primary-dark: #0d47a1;
    --secondary: #4caf50;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --light-blue: #e8f0fe;
}

/* Common Body Styles */
body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    padding-top: 80px; /* Reduced padding to minimize gap between header and content */
}

/* Common Navigation Styles */
nav {
    border-bottom: 1px solid rgba(214,214,214,1);
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Fixed Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    position: relative;
    z-index: 1001;
}

.nav-bar-small-screens {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    position: relative;
    z-index: 1001;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 15px;
    position: relative;
    z-index: 10;
}

.nav-links li {
    position: relative;
    z-index: 10;
}

.nav-links li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    display: block;
    padding: 5px 8px;
    position: relative;
    z-index: 10;
    cursor: pointer;
    min-width: 50px;
    text-align: center;
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

/* Cart Section Styles */
.cart-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    margin-top: -5px;
    padding-bottom: 10px;
}

/* Contact Info Styles */
.contact-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    justify-content: center;
    margin-bottom: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
}

.contact-item i {
    color: var(--primary);
    font-size: 16px;
    width: 16px;
    text-align: center;
}

.contact-item span {
    font-weight: 500;
}

.contact-separator {
    color: #ccc;
    font-weight: 300;
    font-size: 16px;
}

/* Mobile Contact Info Styles - Removed as icons are no longer in header */

.logo img {
    max-height: 80px;
    max-width: 120px;
    margin-left:20px;
   
}

/* Common Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Cart Styles */
.cart-icon {
    position: relative;
    cursor: pointer;
    margin-right: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

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

.cart-icon:hover {
    color: #007bff;
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%);
    color: white;
    padding: 15px 0 8px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3498db, #e74c3c, #f39c12, #2ecc71);
    background-size: 400% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.footer-content {
    
    margin: 0 auto;
    padding: 0 15px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 15px;
    align-items: start;
    position: relative;
    z-index: 1;
    height: 300px;
}

.footer-logo {
    grid-column: 1;
    text-align: left;
    position: relative;
    padding: 15px;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    animation: logoContainerGlow 3s ease-in-out infinite alternate;
}

@keyframes logoContainerGlow {
    0% {
        box-shadow: 0 0 20px rgba(52, 152, 219, 0.1);
    }
    100% {
        box-shadow: 0 0 30px rgba(52, 152, 219, 0.2);
    }
}

.footer-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(52, 152, 219, 0.1), rgba(231, 76, 60, 0.1), rgba(46, 204, 113, 0.1));
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.footer-logo:hover::before {
    opacity: 1;
}

.footer-logo p {
    font-size: 17px;
    line-height: 1.5;
    color: #ecf0f1;
    margin-top: 10px;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    letter-spacing: 0.3px;
}

.footer-logo img {
    max-width: 160px;
    margin-bottom: 10px;
    /* Enhanced logo visibility with multiple effects */
    filter: brightness(1.3) contrast(1.2) saturate(1.1) !important;
    -webkit-filter: brightness(1.3) contrast(1.2) saturate(1.1) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgb(255 255 255 / 58%) 100%);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255,255,255,0.1),
        inset 0 1px 0 rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

.footer-logo img::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.footer-logo img:hover::before {
    opacity: 1;
    animation: shimmer 1.5s ease-in-out;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.footer-logo img:hover {
    transform: scale(1.08) translateY(-2px);
    filter: brightness(1.4) contrast(1.3) saturate(1.2) !important;
    -webkit-filter: brightness(1.4) contrast(1.3) saturate(1.2) !important;
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255,255,255,0.2),
        inset 0 1px 0 rgba(255,255,255,0.3);
}

.footer-links {
    grid-column: 2;
}

.footer-contact {
    grid-column: 3;
}

.footer-links h3, .footer-contact h3 {
    font-size: 0.85rem;
    margin-bottom: 8px;
    position: relative;
    padding-bottom: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links h3:after, .footer-contact h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #3498db, #e74c3c);
    border-radius: 1px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 4px;
    display: flex;
    align-items: center;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-left: 5px;
    font-size: 12px;
    font-weight: 500;
    position: relative;
}

.footer-links a:hover {
    color: #3498db;
    transform: translateX(3px);
}

.footer-contact-items p {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    font-size: 12px;
}

.footer-contact-items i {
    margin-right: 6px;
    color: #3498db;
    font-size: 13px;
    width: 16px;
    text-align: center;
}

.footer-contact-items a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-contact-items a:hover {
    color: #3498db;
    transform: translateX(2px);
}
.footer-bottom p {
    text-align: center;
    font-size: 14px;
    margin-top: 10px;
}
.footer-bottom {
    text-align: center;
    padding: 8px 15px;
    margin-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 11px;
    color: #bdc3c7;
    background: rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}
@media (max-width: 858px) {
   .contact-item {
        font-size: 9px;
    }
    
   
   }
    

@media (max-width: 1224px) {
    .logo img {
        height: 100px;
        max-width: 100px;
    }
    
}
/* Mobile Footer Responsive */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 8px;
        text-align: center;
        height: 700px;
       
    }
    
    .footer-logo, .footer-links, .footer-contact {
        grid-column: 1;
    }
    
    .footer-logo {
        padding: 12px;
        margin-bottom: 10px;
    }
    
    .footer-logo img {
        max-width: 140px;
        padding: 10px;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgb(255 255 255 / 58%) 100%);
    }
    
    .footer-logo p {
        font-size: 14px;
        margin-top: 8px;
    }
    
    .footer-links h3, .footer-contact h3 {
        font-size: 0.8rem;
        margin-bottom: 6px;
    }
    
    .footer-links a, .footer-contact-items p {
        font-size: 11px;
    }
    
    footer {
        padding: 12px 0 6px;
    }
    
    .footer-bottom {
        padding: 6px 10px;
        font-size: 10px;
    }
}

iframe {
    border-radius: 5px;
    margin-top: 10px;
}

/* Cart & Enquiry Modal Styles */
.overlay-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow: auto;
    padding: 20px;
}

.overlay-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: #646183 0 0 8px 3px !important;
    max-width: 600px;
    width: 100%;
    max-height: 90%;
    overflow-y: auto;
}

.overlay-container-title{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.close-overlay {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    font-size: 1.2rem;
}

.close-overlay svg {
    width: 1em;
    height: 1em;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    min-width: 130px;
    max-width: 100px;
}

input[type="text"],
input[type="tel"],
input[type="email"],
select,textarea,input[type="number"]{
    width: 100%;
    padding: 11px;
    border: 1px solid #dadbdd;
    color: #606266;
    border-radius: 8px;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

.form-group input,
.form-group select,
.form-group textarea {
    flex: 1;
    margin-left: 10px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn:hover {
    opacity: 0.9;
}
.cart-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
    gap: 10px;
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

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

.cart-item-info h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
}

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

.remove-from-cart {
    background: #dc3545;
    color: white;
    border: none;
    padding: 5px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.cart-actions {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}


.selected-products-summary {
    background: #f8f9fa;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.selected-products-summary h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.selected-product-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    border-bottom: 1px solid #dee2e6;
}

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

.selected-product-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 3px;
}

.selected-product-item span {
    font-size: 14px;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    /* Adjust body padding for mobile fixed header */
    body {
        padding-top: 70px; /* Reduced padding for mobile */
    }
    
.logo img {
    max-height: 80px;
    max-width: 120px;
    margin-left:2px;
   
}
    .nav-bar {
        display: none;
    }
    
    .nav-bar-small-screens {
        display: flex;
    }
    
    .cart-section {
        display: none;
    }
    
    
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 2000;
    }
    
    .nav-overlay.active {
        display: block;
    }
    
    #side-bar-content {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #fff;
        transition: right 0.3s ease;
        z-index: 2001;
        overflow-y: auto;
    }
    
    .nav-overlay.active #side-bar-content {
        right: 0;
    }
    
    .side-bar {
        padding: 20px;
    }
    
    .side-bar-image {
        margin-bottom: 30px;
        padding-bottom: 20px;
        border-bottom: 1px solid #eee;
        margin-right:30px;
    }
    
    .nav-links-mobile {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .nav-links-mobile li {
        list-style: none;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-links-mobile li:last-child {
        border-bottom: none;
    }
    
    .nav-links-mobile a {
        display: block;
        padding: 15px 20px;
        text-decoration: none;
        color: #333;
        font-weight: 500;
        transition: background-color 0.3s ease;
    }
    
    .nav-links-mobile a:hover {
        background-color: #f8f9fa;
        color: #007bff;
    }
   
    /* Mobile Contact Info in Sidebar */
    .mobile-contact-info {
        padding: 20px;
        border-bottom: 1px solid #eee;
        margin-bottom: 10px;
    }
    
    .mobile-contact-item {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 15px;
        padding: 10px;
        background: #f8f9fa;
        border-radius: 8px;
        transition: background-color 0.3s ease;
    }
    
    .mobile-contact-item:last-child {
        margin-bottom: 0;
    }

    
    .mobile-contact-item:hover {
        background: #e9ecef;
    }
    
    .mobile-contact-item i {
        color: var(--primary);
        font-size: 16px;
        width: 20px;
        text-align: center;
    }
    
    .mobile-contact-item span {
        color: #333;
        font-weight: 500;
        font-size: 14px;
    }
    
    #menu-toggle {
        cursor: pointer;
        transition: color 0.3s ease;
    }
    
    #menu-toggle:hover {
        color: #007bff;
    }
   

}

/* Loading animation styles */
.loading-animation {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.rotating-circle {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(52, 152, 219, 0.2);
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loading-animation img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-top:30px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    margin-top: 25px;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 500;
}

.button-text {
    display: inline-block;
}

.button-loader {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

/* Message Overlay Styles */
#message-overlay {
    position: fixed;
    top: 520px;
    right: 20px;
    margin-left:30px;
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#message-overlay.show {
    transform: translateX(0);
}

#message-overlay svg {
    flex-shrink: 0;
}

/* Scroll to Top Button */
#scrollToTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: rgb(255, 255, 255);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    
}

#scrollToTopBtn:hover {
    background: linear-gradient(135deg, #2980b9, #1f618d);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

#scrollToTopBtn.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    
    background-color: orange;;
}

#scrollToTopBtn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

#scrollToTopBtn:hover svg {
    transform: translateY(-2px);
}

/* Mobile Message Overlay Responsive */
@media (max-width: 768px) {
    #message-overlay {
        top: 600px;
        right: 5px;
        left: 5px;
        max-width: none;
        width: calc(100% - 10px);
        min-width: 280px;
        padding: 15px 20px;
        font-size: 14px;
    }
    
    #message-overlay svg {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }
    
    /* Mobile Scroll to Top Button */
    #scrollToTopBtn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    #scrollToTopBtn svg {
        width: 18px;
        height: 18px;
    }
}
