/* ==========================================================================
   Solar Filter Nepal — site stylesheet
   ========================================================================== */

:root {
    --color-primary: #0a7d3a;
    --color-primary-dark: #06592a;
    --color-primary-light: #e6f4ec;
    --color-accent: #f5a524;
    --color-accent-dark: #d68c0f;
    --color-ink: #1c2321;
    --color-body: #4a5450;
    --color-muted: #7a847f;
    --color-border: #e4e8e5;
    --color-surface: #ffffff;
    --color-surface-alt: #f6f8f6;
    --color-footer: #0f1a15;
    --color-footer-alt: #0a120e;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-card: 0 10px 30px rgba(15, 26, 21, 0.08);
    --shadow-card-hover: 0 18px 40px rgba(15, 26, 21, 0.14);
    --font-sans: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* -------------------------------------------------------------------- */
/* Base                                                                  */
/* -------------------------------------------------------------------- */

* {
    font-size: 16px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--color-body);
    background: var(--color-surface);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-primary-dark);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--color-ink);
    font-weight: 700;
    line-height: 1.25;
}

.text-success {
    color: var(--color-primary) !important;
}

.btn-success {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    border-radius: var(--radius-sm);
    padding: 10px 22px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-success:hover,
.btn-success:focus {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(10, 125, 58, 0.25);
}

.btn-outline-secondary {
    border-radius: var(--radius-sm);
    border-color: var(--color-border);
    color: var(--color-body);
    font-weight: 600;
    padding: 6px 16px;
}

.btn-outline-secondary:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

/* -------------------------------------------------------------------- */
/* Header                                                                */
/* -------------------------------------------------------------------- */

.header-top {
    background: var(--color-footer);
    color: #cfe8da;
    padding: 9px 0;
    font-size: 13px;
}

.header-top a {
    color: #dfeee5;
    margin-right: 18px;
    font-weight: 500;
    white-space: nowrap;
}

@media (max-width: 575px) {
    .header-top .col-md-8 {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .header-top a {
        margin-right: 0;
    }
}

.header-top a:hover {
    color: var(--color-accent);
}

.header-top .fb:hover,
.header-top .instagram:hover {
    color: var(--color-accent);
}

.header {
    position: relative;
    background: #fff;
    box-shadow: 0 1px 0 rgba(15, 26, 21, 0.06);
}

.header-fixed {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    animation: header-slide-down 0.25s ease;
}

@keyframes header-slide-down {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.main-logo {
    max-height: 56px;
    width: auto;
}

.navbar-toggler {
    position: absolute;
    top: -40px;
    right: 10px;
    border: none;
    color: var(--color-primary);
}

@media (max-width: 991px) {
    .navbar-toggler {
        right: 60px;
    }
}

.navbar-nav a {
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 700;
    font-size: 14px;
    color: var(--color-ink);
    padding: 10px 16px !important;
}

.navbar-nav a:hover {
    color: var(--color-primary);
}

.navbar-nav .active > a,
.navbar-nav .nav-item.active a {
    color: var(--color-primary);
}

.navbar-nav a.dropdown-item {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 20px !important;
    color: var(--color-body);
}

.navbar-nav a.dropdown-item:hover {
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
}

.dropdown-menu {
    top: 100%;
    left: 0;
    margin-top: 0;
    border: none;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-card);
    padding: 8px 0;
}

.nav-item.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-link.has-children {
    padding-right: 4px !important;
}

.dropdown-caret {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 10px 14px 10px 4px;
    color: var(--color-ink);
    font-size: 11px;
    line-height: 1;
}

.dropdown-caret i {
    pointer-events: none;
}

.dropdown-caret:hover {
    color: var(--color-primary);
}

@media (max-width: 991px) {
    .nav-item.dropdown {
        flex-wrap: wrap;
        justify-content: space-between;
        width: 100%;
    }

    .dropdown-caret {
        padding: 10px 14px;
        font-size: 14px;
        margin-left: auto;
    }

    .navbar-nav .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        background: var(--color-surface-alt);
        border-radius: var(--radius-sm);
        margin-top: 4px;
    }
}

/* -------------------------------------------------------------------- */
/* Hero / carousel                                                       */
/* -------------------------------------------------------------------- */

#banner {
    position: relative;
}

.carousel-caption {
    bottom: 90px;
    text-align: left;
    left: 8%;
    right: 8%;
}

.carousel-caption h4 {
    font-size: 44px;
    letter-spacing: 1px;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 20px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 6%;
}

/* -------------------------------------------------------------------- */
/* Sections                                                              */
/* -------------------------------------------------------------------- */

.section-main {
    position: relative;
    padding: 60px 0;
}

.bg-main {
    background: var(--color-surface-alt);
}

.section-main h2 {
    margin-top: 0;
    position: relative;
    padding-bottom: 14px;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.section-main h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 56px;
    height: 3px;
    background: var(--color-accent);
    border-radius: 2px;
}

.section-detail {
    padding: 50px 0;
}

.section-detail h1 {
    margin-top: 0;
    position: relative;
    padding-bottom: 14px;
    font-size: 30px;
    text-transform: uppercase;
    margin-bottom: 34px;
}

.section-detail h1::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 56px;
    height: 3px;
    background: var(--color-accent);
    border-radius: 2px;
}

.main-heading {
    color: var(--color-ink);
    font-weight: 800;
    font-size: 44px;
}

/* -------------------------------------------------------------------- */
/* Product cards                                                        */
/* -------------------------------------------------------------------- */

.brand-card {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 110px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.brand-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: transparent;
}

.brand-card img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.75;
    transition: filter 0.2s ease, opacity 0.2s ease;
}

.brand-card:hover img {
    filter: grayscale(0);
    opacity: 1;
}

@media (max-width: 767px) {
    .brand-card {
        height: 84px;
        padding: 10px;
    }
}

.product-title {
    display: block;
    color: var(--color-ink);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 14px;
    height: 100%;
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-title:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--color-primary);
    color: var(--color-ink);
}

.product-thumb {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
}

.product-title img {
    border-radius: var(--radius-sm);
    aspect-ratio: 1 / 1;
    object-fit: cover;
    width: 100%;
    border: none !important;
    box-shadow: none !important;
    transition: transform 0.4s ease;
}

.product-title:hover img {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #fff;
}

.product-badge-discount {
    background: var(--color-accent-dark);
}

.product-badge-stock {
    background: #6b7280;
}

.product-view-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 8px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(to top, rgba(10, 26, 18, 0.75), rgba(10, 26, 18, 0));
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.product-title:hover .product-view-overlay {
    transform: translateY(0);
    opacity: 1;
}

.product-title h6 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    margin-top: 12px;
    color: var(--color-ink);
    white-space: normal;
    overflow-wrap: break-word;
    line-height: 1.35;
    transition: color 0.2s ease;
    /* Clamp to a fixed 2 lines so every card in a row/carousel reports the
       same height, regardless of title length - otherwise carousels size
       their stage to the tallest (even off-screen) item, leaving a gap
       under shorter visible cards. */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}

.product-title:hover h6 {
    color: var(--color-primary);
}

.product-title .text-success {
    font-weight: 700;
    font-size: 15px;
}

@media (prefers-reduced-motion: reduce) {
    .product-title,
    .product-title img,
    .product-view-overlay {
        transition: none;
    }
}

.product-description h2 {
    margin-top: 0;
    position: relative;
    padding-bottom: 10px;
    font-size: 22px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.product-description h3 {
    font-size: 19px;
    color: var(--color-ink);
}

.product-description h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 50px;
    height: 3px;
    background: var(--color-accent);
    border-radius: 2px;
}

.package-inquiry {
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    max-width: 100%;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
    position: relative;
    font-size: 14px;
}

.package-inquiry .form-group {
    padding-top: 10px !important;
}

.package-inquiry .form-control {
    padding: 6px 10px;
    font-size: 14px;
}

.package-inquiry textarea.form-control {
    min-height: 60px;
}

.package-inquiry label {
    font-size: 13px;
    margin-bottom: 2px;
}

.inquiry-title {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    position: relative;
    padding-bottom: 10px;
}

.inquiry-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 42px;
    height: 3px;
    background: var(--color-accent);
    border-radius: 2px;
}

/* -------------------------------------------------------------------- */
/* Product detail page                                                  */
/* -------------------------------------------------------------------- */

.product-media {
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    margin-bottom: 24px;
}

.product-media img {
    max-height: 420px;
    width: auto;
    border-radius: var(--radius-sm);
}

.product-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    margin-bottom: 24px;
}

.product-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #25d366;
    border-color: #25d366;
    color: #fff;
    border-radius: var(--radius-sm);
    padding: 10px 22px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-whatsapp:hover,
.btn-whatsapp:focus {
    background: #1ebe57;
    border-color: #1ebe57;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.product-price-label {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-muted);
    font-weight: 600;
}

.product-price {
    margin: 4px 0 0;
    font-size: 26px;
    font-weight: 700;
}

.product-why {
    margin-bottom: 24px;
}

.product-sidebar {
    position: sticky;
    top: 96px;
}

@media (max-width: 991px) {
    .product-sidebar {
        position: static;
        margin-top: 24px;
    }
}

/* -------------------------------------------------------------------- */
/* Blog                                                                  */
/* -------------------------------------------------------------------- */

.blog-intro {
    margin-top: -130px;
    position: relative;
    z-index: 2;
}

.blog-intro-area {
    padding: 40px;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.overlay-heading {
    letter-spacing: 2px;
    color: #fff;
    font-size: 48px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    font-weight: 800;
}

/* -------------------------------------------------------------------- */
/* Footer                                                                */
/* -------------------------------------------------------------------- */

.footer {
    background: var(--color-footer);
    padding-top: 50px;
    padding-bottom: 40px;
    font-size: 15px;
    color: #c9d6cf;
}

.footer-logo {
    max-height: 48px;
    width: auto;
    background: #fff;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
}

.footer-about p {
    color: #b9c8c0;
    line-height: 1.7;
}

.footer-title {
    margin-top: 15px;
    margin-bottom: 20px;
}

.footer-title h3 {
    margin-top: 0;
    position: relative;
    padding-bottom: 12px;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
}

.footer-title h3::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 42px;
    height: 2px;
    background: var(--color-accent);
}

.call-info p {
    margin-bottom: 12px;
}

.call-info a {
    color: #dfeee5;
}

.call-info a:hover {
    color: var(--color-accent);
}

.call-info i {
    color: var(--color-accent);
    width: 20px;
    text-align: center;
}

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

.footer-link ul li {
    display: block;
}

.footer-link ul li a {
    color: #c9d6cf;
    padding: 5px 0;
    display: block;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-link ul li a:hover {
    color: var(--color-accent);
    transform: translateX(4px);
}

.social-links {
    margin-bottom: 0;
    padding-left: 0;
    margin-top: 6px;
}

.social-links li {
    display: inline-block;
    padding: 0 10px 0 0;
}

.social-links li a {
    transition: background-color 0.2s ease, color 0.2s ease;
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08);
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 15px;
}

.social-links li a:hover {
    background: var(--color-accent) !important;
    color: var(--color-footer) !important;
}

.footer-legal {
    background: var(--color-footer);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 0;
    font-size: 12.5px;
    color: #93a59b;
    text-align: center;
}

.footer-legal p {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    row-gap: 4px;
}

.legal-item {
    white-space: nowrap;
}

.legal-item:not(:last-child)::after {
    content: "\00b7";
    margin: 0 10px;
    color: #6c7c74;
}

@media (max-width: 480px) {
    .footer-legal p {
        flex-direction: column;
        row-gap: 6px;
    }

    .legal-item:not(:last-child)::after {
        content: none;
    }
}

.footer-bottom {
    background: var(--color-footer-alt);
    padding-top: 18px;
    padding-bottom: 18px;
    font-size: 13px;
    color: #a9b8b0;
}

.footer-bottom a {
    color: #d3dfd9;
}

.footer-bottom a:hover {
    color: var(--color-accent);
}

@media (max-width: 767px) {
    .footer-bottom .copyright,
    .footer-bottom .copyright.text-end {
        text-align: center !important;
    }

    /* Leave room so the fixed WhatsApp button doesn't sit over the credit line. */
    .footer-bottom .copyright.text-end {
        padding-bottom: 54px;
    }
}

/* -------------------------------------------------------------------- */
/* Misc                                                                  */
/* -------------------------------------------------------------------- */

.main-shadow {
    box-shadow: var(--shadow-card);
}

#bookingStick {
    background: rgba(10, 26, 18, 0.75);
    padding: 10px 20px;
    color: #fff;
    border-radius: var(--radius-sm);
}

/* -------------------------------------------------------------------- */
/* Datepicker (kept from prior stylesheet — used by jQuery UI widgets)   */
/* -------------------------------------------------------------------- */

#datepicker {
    margin: 0 auto;
}

.ui-datepicker {
    background: #fff;
    padding: 10px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-card);
}

.ui-datepicker:after {
    display: block;
    content: "";
    height: 0;
    overflow: hidden;
    clear: both;
}

.ui-datepicker .ui-datepicker-group {
    float: left;
    width: 50%;
}

.ui-datepicker .ui-datepicker-header {
    color: var(--color-ink);
    font: 14px/25px var(--font-sans);
    position: relative;
    text-align: center;
    text-transform: uppercase;
}

.ui-datepicker .ui-datepicker-header .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-header .ui-datepicker-next {
    background: var(--color-ink);
    cursor: pointer;
    height: 15px;
    overflow: hidden;
    position: absolute;
    text-indent: -100em;
    top: 5px;
    user-select: none;
    width: 15px;
}

.ui-datepicker .ui-datepicker-header .ui-datepicker-prev:hover,
.ui-datepicker .ui-datepicker-header .ui-datepicker-next:hover {
    background-color: var(--color-primary);
}

.ui-datepicker .ui-datepicker-header .ui-datepicker-prev.ui-state-disabled,
.ui-datepicker .ui-datepicker-header .ui-datepicker-next.ui-state-disabled {
    opacity: 0.3;
}

.ui-datepicker .ui-datepicker-header .ui-datepicker-prev {
    left: 10px;
}

.ui-datepicker .ui-datepicker-header .ui-datepicker-next {
    right: 10px;
}

.ui-datepicker .ui-datepicker-calendar {
    border-collapse: collapse;
    font-size: 12px;
    cursor: default;
}

.ui-datepicker .ui-datepicker-calendar th,
.ui-datepicker .ui-datepicker-calendar td {
    text-align: center;
    vertical-align: middle;
    width: 36px;
    height: 30px;
    line-height: 30px;
    padding: 0;
    z-index: 1;
}

.ui-datepicker .ui-datepicker-calendar th {
    color: var(--color-muted);
}

.ui-datepicker .ui-datepicker-calendar td {
    color: var(--color-body);
    padding: 2px 0;
    position: relative;
}

.ui-datepicker .ui-datepicker-calendar td:before,
.ui-datepicker .ui-datepicker-calendar td:after {
    bottom: 2px;
    content: "";
    left: 0;
    top: 2px;
    position: absolute;
    width: 100%;
    z-index: -1;
}

.ui-datepicker .ui-datepicker-calendar td:before {
    background: var(--color-surface-alt);
}

.ui-datepicker .ui-datepicker-calendar td:first-child:before {
    border-radius: 15px 0 0 15px;
}

.ui-datepicker .ui-datepicker-calendar td:last-child:before {
    border-radius: 0 15px 15px 0;
}

.ui-datepicker .ui-datepicker-calendar td.ui-datepicker-other-month,
.ui-datepicker .ui-datepicker-calendar td.ui-state-disabled {
    color: #d0d0d0;
}

.ui-datepicker .ui-datepicker-calendar a {
    color: inherit;
    display: inline-block;
    height: 30px;
    text-decoration: none;
    width: 30px;
}

.ui-datepicker .ui-datepicker-calendar .ui-datepicker-today a {
    background: var(--color-primary);
    border-radius: 50%;
    color: #fff;
}

.ui-datepicker-trigger {
    float: left;
    height: 15px;
    margin: 13px 0 0 -35px;
    overflow: hidden;
    text-indent: -100em;
    width: 16px;
}

/* -------------------------------------------------------------------- */
/* Responsive                                                            */
/* -------------------------------------------------------------------- */

@media (max-width: 991px) {
    .navbar-nav a {
        padding: 10px 0 !important;
    }

    .carousel-caption h4 {
        font-size: 30px;
    }

    .main-heading {
        font-size: 32px;
    }
}

@media (max-width: 767px) {
    * {
        font-size: 15px;
    }

    .section-main,
    .section-detail {
        padding: 36px 0;
    }

    .blog-intro {
        margin-top: -70px;
    }

    .overlay-heading {
        font-size: 30px;
    }

    .footer-box2 {
        padding-left: 0;
        margin-top: 24px;
    }

    .header-book {
        position: relative;
    }

    .header-book a {
        position: absolute;
        z-index: 1;
        right: 15px;
        bottom: 10px;
    }
}

/* -------------------------------------------------------------------- */
/* Floating WhatsApp button                                             */
/* -------------------------------------------------------------------- */

.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 999;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.5);
    animation: whatsapp-glow 2.2s ease-in-out infinite;
    transition: transform 0.2s ease;
}

.whatsapp-float i {
    font-size: 42px;
}

.whatsapp-float:hover {
    color: #fff !important;
    transform: scale(1.08);
}

@keyframes whatsapp-glow {
    0% {
        box-shadow: 0 4px 16px rgba(37, 211, 102, 0.5), 0 0 0 0 rgba(37, 211, 102, 0.55);
    }
    70% {
        box-shadow: 0 4px 16px rgba(37, 211, 102, 0.5), 0 0 0 16px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 4px 16px rgba(37, 211, 102, 0.5), 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 767px) {
    .whatsapp-float {
        right: 16px;
        bottom: 16px;
        width: 50px;
        height: 50px;
    }

    .whatsapp-float i {
        font-size: 34px;
    }
}

/* -------------------------------------------------------------------- */
/* Global overflow / widget safety net                                  */
/* -------------------------------------------------------------------- */

/* NOTE: do not set overflow-x on html/body — it forces overflow-y to
   "auto" per spec, turning body into its own scroll container and
   breaking position: sticky for every descendant (e.g. product-sidebar).
   Rely on max-width: 100% + no-overflow widgets (reCAPTCHA below)
   instead. */
html {
    max-width: 100%;
}

/* Google reCAPTCHA renders a fixed ~304px widget that doesn't reflow;
   scale it down so it fits inside narrow sidebars/forms on small phones. */
@media (max-width: 400px) {
    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: 0 0;
    }
}

.header-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.header-search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--color-ink, #222);
    cursor: pointer;
    line-height: 1;
    transition: background 0.15s ease, color 0.15s ease;
}

.header-search-toggle:hover,
.header-search-toggle[aria-expanded="true"] {
    background: #f2f4f3;
    color: var(--color-primary);
}

.header-search-form {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    z-index: 1000;
    display: flex;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid #eceeed;
    box-shadow: 0 12px 32px rgba(15, 26, 21, 0.14);
    border-radius: 10px;
    padding: 10px;
    width: 320px;
    max-width: calc(100vw - 30px);
    animation: search-form-in 0.15s ease;
}

.header-search-form::before {
    content: "";
    position: absolute;
    bottom: 100%;
    right: 14px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-left: 1px solid #eceeed;
    border-top: 1px solid #eceeed;
    transform: rotate(45deg);
}

@keyframes search-form-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.header-search-form input[name="keyword"] {
    flex: 1;
    min-width: 0;
    border: 1px solid #e2e5e4;
    border-radius: 8px 0 0 8px;
    padding: 9px 12px;
    font-size: 14px;
    outline: none;
    box-shadow: none;
}

.header-search-form input[name="keyword"]:focus {
    border-color: var(--color-primary, #2e7d4f);
    box-shadow: 0 0 0 3px rgba(46, 125, 79, 0.12);
}

@media (max-width: 480px) {
    .header-search-form {
        width: calc(100vw - 30px);
    }
}

.header-search-form button {
    border: 1px solid var(--color-primary, #2e7d4f);
    border-left: none;
    background: var(--color-primary, #2e7d4f);
    color: #fff;
    border-radius: 0 8px 8px 0;
    padding: 9px 14px;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.header-search-form button:hover {
    opacity: 0.9;
}

.header-search-suggestions {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #eceeed;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(15, 26, 21, 0.14);
    max-height: 320px;
    overflow-y: auto;
}

.header-search-suggestions a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    color: #333;
    text-align: left;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
}

.header-search-suggestions a:last-child {
    border-bottom: none;
}

.header-search-suggestions a:hover,
.header-search-suggestions a.active {
    background: #f5f5f5;
}

.header-search-suggestions img {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.header-search-suggestions span {
    font-size: 13px;
    line-height: 1.3;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.header-search-suggestions .suggestion-empty {
    padding: 10px;
    color: #999;
}

/* -------------------------------------------------------------------- */
/* Home page owl-carousels (brand + per-category product lists)         */
/* -------------------------------------------------------------------- */

/* Bootstrap grid col-* classes set max-width via plain media-query CSS
   even outside a .row flex container, so product-grid's own col-md-3/col-6
   wrapper needs neutralizing when it becomes an owl slide. */
.owl-carousel .owl-item [class*="col-"] {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    padding-left: 0;
    padding-right: 0;
}

.owl-carousel .owl-nav button.owl-prev,
.owl-carousel .owl-nav button.owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(15, 26, 21, 0.18), 0 0 0 0 rgba(46, 125, 79, 0.45);
    color: var(--color-primary, #2e7d4f) !important;
    font-size: 16px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.owl-carousel .owl-nav button.owl-prev:hover,
.owl-carousel .owl-nav button.owl-next:hover {
    background: var(--color-primary, #2e7d4f) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(15, 26, 21, 0.18), 0 0 14px 4px rgba(46, 125, 79, 0.65);
    transform: translateY(-50%) scale(1.08);
}

.owl-carousel .owl-nav button.owl-prev {
    left: -14px;
}

.owl-carousel .owl-nav button.owl-next {
    right: -14px;
}

.owl-carousel .owl-nav button.disabled {
    opacity: 0.35;
    box-shadow: 0 2px 8px rgba(15, 26, 21, 0.18);
}

.owl-carousel .owl-nav button.disabled:hover {
    background: #fff !important;
    color: var(--color-primary, #2e7d4f) !important;
    transform: translateY(-50%);
}

/* Product cards have variable-height text below the image, so centering
   nav arrows on the whole card (like top:50%) overlaps the title/price.
   Anchor them to roughly the image's vertical center instead, staying
   on the sides rather than pushing them below with extra empty space. */
.product-carousel .owl-nav button.owl-prev,
.product-carousel .owl-nav button.owl-next {
    top: 32%;
}
