/* Base Theme */


/*
 * This is the base theme, intended to serve as a foundation for new themes.
 * New themes can be created by inheriting, extending, or overriding
 * the properties, variablse and attributes of this base theme.
 */

:root {
    /* Global Variables */

    /* Colors */
    --primary-color:        #333;                   /* Main headers, buttons, key accents   */
    --secondary-color:      #555;                   /* Subheadings, secondary text          */
    --background-color:     #ffffff;                /* Main background                      */
    --text-color:           #222;                   /* Primary text                         */
    --link-color:           #007bff;                /* Hyperlinks                           */
    --button-bg:            #4CAF50;                /* Buttons                              */
    --button-text:          #ffffff;                /* Button text                          */
    --input-border-color:   #ccc;                   /* Form input borders                   */
    --card-bg:              #f9f9f9;                /* Product and payment card backgrounds */
    --shadow-color:         rgba(0, 0, 0, 0.1);     /* Box shadows                          */
    --hover-shadow-color:   rgba(0, 0, 0, 0.15);    /* Hover effect shadows                 */

    /* Fonts */
    --header-font-size: 1.5rem;
    --content-font-size: 1rem;

    /* Spacing */
    --section-padding: 20px;
    --border-radius: 10px;
    --gap-size: 10px;

}


body {
    color: var(--text-color);
    padding-bottom: calc(60px + 10px); /* previnting body hidding behind footer nav */
}

img {
    max-width: 100%;
}

/* Base Section Styling */
section {
    padding: 40px 20px;
    margin: 20px 0;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    background: var(--background-color);
}

/* Section Headers */
section .header {
    font-size: var(--header-font-size);
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

/* Section Content */
section .content {
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    section {
        padding: 30px 10px;
    }
    
    section .header {
        font-size: 1.6rem;
    }
}

input, textarea, select {
    color: var(--text-color);
    background: var(--background-color);
    accent-color: var(--secondary-color);
}



/* Contact Section */

#contact-section .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#contact-section address {
    font-style: normal;
    line-height: 1.6;
    margin-bottom: 15px;
}

#contact-section a {
    text-decoration: none;
    color: var(--link-color);
}

#contact-section a:hover {
    text-decoration: underline;
}

.social-links-container {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.social-links-container a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--link-color);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: background 0.3s;
}

.social-links-container a:hover {
    background-color: var(--hover-shadow-color);
}


/* About Section */

#about-section .content {
    font-size: 1rem;
    line-height: 1.8;
    text-align: center;
    color: var(--secondary-color);
}


#about-section .content p {
    margin: 0;
    word-break: break-word;
}


/* Products Section */
#products-section {
    padding: 20px;
    background-color: var(--background-color);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Product Grid Layout */
#products-section .content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

/* Individual Product Card */
.product {
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    background: var(--card-bg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.product .product-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
}

.product .product-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 8px;
}

.product .product-description {
    font-size: 0.95rem;
    color: var(--secondary-color);
    margin-bottom: 12px;
    word-break: break-word;
}

.product .product-enquiry-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: #25D366; /* WhatsApp Green */
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.product .product-enquiry-button:hover {
    background-color: #1ebe5d;
}


/* Payments Section */

/* Payment Methods Container */
#payments-section .content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Individual Payment Method */
.payment-method {
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 15px;
    background: var(--card-bg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.payment-method:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Payment Method Title */
.payment-method-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 10px;
}

/* Payment Method Details */
.payment-method p {
    margin: 5px 0;
    font-size: 0.95rem;
    color: var(--secondary-color);
    word-break: break-word; /* Handles long text */
}

/* QR Code Image */
.payment-method-qr-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
}


/* Gallery Section */

/* Gallery Content Layout (Responsive Grid) */
#gallery-section .content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

/* Gallery Item (Image + Caption) */
.gallery-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Gallery Image */
.gallery-item img {
    width: 100%;
    height: auto;
    display: block; /* Remove extra spacing under images */
    border-radius: 8px;
}

/* Image Description (Caption) */
.gallery-item-description {
    text-align: center;
    margin-top: 8px;
    font-size: 0.9rem;
    color: var(--secondary-color);
}


/* Videos Section */

/* Video Content Layout (Responsive Grid) */
#videos-section .content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* Video Item (Container for Each Video) */
.video-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-item:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* YouTube iframe Styling */
.youtube-video-iframe {
    width: 100%;
    aspect-ratio: 16 / 9; /* Ensures correct video aspect ratio */
    border-radius: 8px;
}

/* Video Title Styling */
.youtube-video-title {
    margin-top: 10px;
    font-size: 1rem;
    color: var(--secondary-color);
    text-align: center;
}


/* Reviews Section */

/* Review Cards Layout */
.review-card {
    background: var(--card-bg);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Reviewer Info */
.reviewer-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0;
    color: var(--text-color);
}

.review-date {
    font-size: 0.9rem;
    color: #777;
    margin-top: 5px;
}

/* Review Text */
.review-text {
    margin: 10px 0;
    font-size: 1rem;
    color: var(--primary-color);;
}

/* Review Rating (Stars) */
.review-rating {
    color: #FFD700; /* Golden Stars */
    font-size: 1.2rem;
}

/* Review Form */
#send-review {
    margin-top: 30px;
    padding: 15px;
    background: var(--card-bg);
    border-radius: 10px;
}

#send-review label {
    display: block;
    font-size: 1rem;
    margin: 10px 0 5px;
    color: var(--secondary-color);
}

#send-review input,
#send-review textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid var(--input-border-color);
    border-radius: 5px;
    font-size: 1rem;
}

#send-review textarea {
    resize: vertical;
    min-height: 80px;
}

#send-review-button {
    background: #4CAF50;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

#send-review-button:hover {
    background: #45a049;
}


/* Enquiry Section */

/* Input Fields */
#enquiry-section label {
    display: block;
    font-size: 1rem;
    margin: 10px 0 5px;
    color: var(--secondary-color);
}

#enquiry-section input,
#enquiry-section textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid var(--input-border-color);
    border-radius: 5px;
    font-size: 1rem;
}

#enquiry-section textarea {
    resize: vertical;
    min-height: 100px;
}

/* Send Button */
#send-enquiry-button {
    background: #4CAF50;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

#enquiry-button:hover {
    background: #45a049;
}


/* Share Section */

/* Share URL */
.share-url-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.link-copy-field {
    flex: 1;
    padding: 8px;
    border: 1px solid var(--input-border-color);
    border-radius: 5px;
}

#copy-url-button {
    background: var(--button-bg);
    color: var(--button-text);
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

#copy-url-button:hover {
    background: #45a049;
}

/* QR Code */
#share-qr {
    width: 150px;
    height: 150px;
    display: block;
    margin: 10px auto;
}

#download-qr-button {
    background: var(--button-bg);
    color: var(--button-text);
    padding: 8px 12px;
    border: none;
    display: block;
    margin: auto;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    text-decoration: none;
}

/* WhatsApp Share */
.whatsapp-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    max-width: 100%;
    align-items: center;
}

#country-code {
    padding: 8px;
    border: 1px solid var(--input-border-color);
    border-radius: 5px;
    max-width: 100px;
    flex: 0 0 auto;
}

#whatsapp-number {
    padding: 8px;
    border: 1px solid var(--input-border-color);
    border-radius: 5px;
    flex: 1;
    min-width: 150px;
}

.share-whatsapp-button {
    background: var(--button-bg);
    color: var(--button-text);
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    flex: 0 0 auto;
}

@media (max-width: 400px) {
    .whatsapp-container {
        flex-direction: column;
        align-items: stretch;
    }

    #country-code,
    #whatsapp-number,
    .share-whatsapp-button {
        width: 100%;
    }
}

/* Footer navigation */
.footer-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--background-color);
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    border-top: 2px solid var(--primary-color);
    box-shadow: 0 -2px 10px var(--shadow-color);
    overflow-x: auto;
    white-space: nowrap;
    height: 60px; /* fixed size for making body paddingable */
    z-index: 10;
}

.nav-item {
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 12px;
    min-width: 70px;
    transition: transform 0.2s ease-in-out, color 0.3s;
}

.nav-item i {
    margin-bottom: 6px;
    font-size: 1.8rem;
}

.nav-item span {
    font-size: 0.85rem;
}

.nav-item:hover {
    transform: scale(1.1);
    color: var(--secondary-color);
}

/* for small screens */
@media (max-width: 600px) {
    .footer-nav {
        padding: 10px 0;
        justify-content: flex-start;
    }

    .nav-item {
        flex: 0 0 auto;
    }
}

