/********** Template CSS **********/
:root {
    --primary: #06BBCC;
    --light: #F0FBFC;
    --dark: #181d38;
}

.fw-medium {
    font-weight: 600 !important;
}

.product-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.product-image-wrapper {
    height: 250px;
    overflow: hidden;
    background: #f8f9fa;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: #2c3e50;
}

.product-desc {
    flex-grow: 1;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.fw-semi-bold {
    font-weight: 700 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

/*** Button ***/
.btn {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 0px;
}


/*** Navbar ***/
.navbar .dropdown-toggle::after {
    display: none;
    /* hide default bootstrap caret */
}

.navbar .dropdown-arrow::after {
    content: "\f107";
    /* FontAwesome down arrow */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-left: 6px;
}

/* Base links */
.navbar-light .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    font-size: 15px;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--dark);
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

/* Default (Desktop) - Less space */
.nav-item .dropdown-arrow {
    margin-left: -25px !important;
    /* bring arrow closer */
    padding-left: 0 !important;
}

/* Mobile (screen width below 768px) - More space */
@media (max-width: 767px) {
    .nav-item .dropdown-arrow {
        margin-left: 1px !important;
        /* add some spacing */
        padding-left: 4px !important;
    }
}

/* Mobile */
@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar-light .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

/* Dropdown effect on desktop */
@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        margin-top: 0;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .dropdown-menu.fade-down {
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

/* Mobile tweaks */
@media (max-width: 576px) {
    .navbar-brand img {
        height: 40px !important;
    }

    .navbar-brand h2 {
        font-size: 18px !important;
        margin: 0;
    }

    .navbar-brand {
        gap: 6px;
    }
}


/* Container and Grid */
.cpr-section {
    padding: 60px 20px;
    background: #f7f9fc;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    max-width: 1200px;
    width: 100%;
}

/* Flex Layout */
.cpr-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

/* Left Image (smaller) */
.cpr-image {
    flex: 0 0 300px;
    /* Smaller fixed width */
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.cpr-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.cpr-image img:hover {
    transform: scale(1.05) rotate(1deg);
}

/* Right Text */
.cpr-text {
    flex: 1 1 500px;
}

.cpr-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #1a1a1a;
    line-height: 1.3;
}

.cpr-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #333;
    line-height: 1.6;
}

.cpr-text ul {
    list-style-type: disc;
    padding-left: 20px;
    color: #555;
}

.cpr-text ul li {
    margin-bottom: 10px;
    font-weight: 500;
}

/* Animations */
.animated-text {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
    animation-delay: 0.2s;
}

.animated-list li {
    opacity: 0;
    transform: translateX(-20px);
    animation: fadeInRight 0.8s forwards;
}

.animated-list li:nth-child(1) {
    animation-delay: 0.3s;
}

.animated-list li:nth-child(2) {
    animation-delay: 0.5s;
}

.animated-list li:nth-child(3) {
    animation-delay: 0.7s;
}

.animated-list li:nth-child(4) {
    animation-delay: 0.9s;
}

/* Keyframes */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .cpr-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 20px;
    }

    .cpr-text ul {
        padding-left: 0;
        list-style-type: none;
    }

    .cpr-text ul li::before {
        content: "• ";
        color: #007bff;
        font-weight: bold;
    }

    .cpr-image {
        flex: 1 1 80%;
    }

    .cpr-image img {
        border-radius: 15px;
    }
}

/* Products Section */
.products-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, #b22222, #4169e1);
    color: #fff;
    text-align: center;
}

.products-container {
    max-width: 1200px;
    margin: auto;
}

.products-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    animation: fadeInDown 1s ease-in-out;
}

.products-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-in-out;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.product-card {
    background: #fff;
    color: #333;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 1.2s ease-in-out;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.product-name {
    font-size: 1.5rem;
    color: #b22222;
    margin-bottom: 10px;
}

.product-desc {
    font-size: 1rem;
    color: #555;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/* Section */
.product-detail-section {
    padding: 40px;
    background: #f9f9f9;
}

.container {
    max-width: 1000px;
    margin: auto;
}

.product-detail-content {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1s ease-in-out;
}

/* Tabs */
.tabs {
    display: flex;
    margin-bottom: 20px;
}

.tablinks {
    flex: 1;
    padding: 12px;
    border: none;
    background: #eee;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.tablinks.active {
    background: #e63946;
    color: #fff;
    font-weight: bold;
}

.tablinks:hover {
    background: #ddd;
}

/* Tab Content */
.tabcontent {
    display: none;
    animation: slideUp 0.7s ease;
}

.animated-text {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #333;
}

.animated-list li {
    margin-bottom: 8px;
    list-style: "✔ ";
    padding-left: 5px;
}

/* Rating */
.rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    margin: 15px 0;
}

.rating input {
    display: none;
}

.rating label {
    font-size: 30px;
    color: #ccc;
    cursor: pointer;
    transition: transform 0.3s, color 0.3s;
}

.rating input:checked~label,
.rating label:hover,
.rating label:hover~label {
    color: #ffcc00;
    transform: scale(1.2);
}

/* Review Form */
.review-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.review-form textarea,
.review-form input {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    transition: border 0.3s;
}

.review-form textarea:focus,
.review-form input:focus {
    border-color: #e63946;
    outline: none;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.submit-btn {
    background: #1d3557;
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #0b1b33;
}

/* Submitted Reviews */
.submitted-reviews {
    margin-top: 25px;
    padding: 15px;
    background: #f4f4f4;
    border-radius: 12px;
}

.single-review {
    padding: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .tablinks {
        font-size: 14px;
    }

    .product-detail-content {
        padding: 15px;
    }
}

/* Section Title */
.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 90px;
    position: relative;
    animation: fadeInDown 1s ease-in-out;
}

.section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: #e63946;
    margin: 10px auto 0;
    border-radius: 2px;
    animation: expandLine 1s ease-in-out;
}

/* Image Grid */
.image-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0 30px;
    max-width: 1200px;
    margin: auto;
}

/* Image Card */
.image-card {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    animation: fadeInUp 1s ease-in-out;
}

.image-card img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 12px;
    transition: transform 0.5s ease;
}

/* Hover Effects */
.image-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.image-card:hover img {
    transform: scale(1.1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expandLine {
    from {
        width: 0;
    }

    to {
        width: 80px;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .image-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.6rem;
    }
}


/* Footer */
.footer {
    background: #4169e1;
    /* Royal Blue */
    color: #fff;
    padding: 60px 20px 20px;
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
}

/* Decorative animated waves */
.footer::before {
    content: "";
    position: absolute;
    top: -80px;
    left: 0;
    width: 100%;
    height: 100px;
    background: red;
    clip-path: polygon(0 100%, 100% 0%, 100% 100%);
    animation: wave 5s infinite linear;
}

@keyframes wave {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: auto;
}

/* Column Styling */
.footer-col h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: red;
    position: relative;
}

.footer-col h3::after {
    content: "";
    width: 50px;
    height: 3px;
    background: #fff;
    position: absolute;
    left: 0;
    bottom: -5px;
}

.footer-col p,
.footer-col ul,
.footer-col form {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #f1f1f1;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin: 8px 0;
}

.footer-col ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: red;
}

/* Logo - Circular & Full Display */
.footer-logo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    /* Perfect circle */
    object-fit: contain;
    /* Show full logo (no cropping) */
    background: #fff;
    /* Background inside circle */
    padding: 4px;
    /* Space so text in logo is not cut */
    border: 2px solid red;
    /* Theme border */
    margin: 0 auto 20px;
    display: block;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.footer-logo:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

/* Social Icons */
.social-icons a {
    display: inline-block;
    width: 35px;
    height: 35px;
    background: red;
    color: #fff;
    text-align: center;
    line-height: 35px;
    border-radius: 50%;
    margin: 5px;
    transition: 0.3s;
}

.social-icons a:hover {
    background: #fff;
    color: red;
    transform: scale(1.2);
}

/* Form */
.footer-form input,
.footer-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border: none;
    border-radius: 5px;
    outline: none;
    font-size: 0.9rem;
}

.footer-form button {
    width: 100%;
    padding: 12px;
    background: red;
    color: #fff;
    border: none;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.footer-form button:hover {
    background: #fff;
    color: red;
    transform: translateY(-3px);
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
}

/* Responsive - smaller logo on mobile */
@media (max-width: 600px) {
    .footer-logo {
        width: 130px;
        height: 130px;
        padding: 8px;
    }
}