/* ===============================
   COMPONENTS.CSS - FINAL PERFECT VERSION
   Right-aligned menu + Working dropdowns
================================ */

/* ===============================
   TOP BAR (Desktop Only)
================================ */

.top-bar {
    background-color: #f8f9fa;
    padding: 10px 0;
    border-bottom: 1px solid #dee2e6;
    display: none;
}

@media (min-width: 992px) {
    .top-bar {
        display: block !important;
    }
}

.topbar-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto minmax(260px, 1fr);
    align-items: center;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.certification-badges {
    display: flex;
    gap: 15px;
    align-items: center;
}

.badge-img {
    height: 70px;
    width: auto;
    object-fit: contain;
}

.topbar-center {
    display: flex;
    justify-content: center;
}

.top-bar-logo {
    height: 126px;
    width: auto;
}

.topbar-right {
    display: flex;
    justify-content: flex-end;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #25D366;
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 190px;
    justify-content: center;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    color: white;
    transform: translateY(-2px);
}

/* ===============================
   NAVBAR - RIGHT-ALIGNED MENU
================================ */

.navbar {
    background-color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem 0 !important;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.navbar .container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ===============================
   MOBILE: Logo + Brand
================================ */

.navbar-brand {
    display: flex !important;
    align-items: center;
    gap: 10px;
}

@media (min-width: 992px) {
    .navbar-brand {
        display: none !important;
    }
}

.company-logo {
    height: 42px;
    width: auto;
}

.brand-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #0d6efd;
}

/* ===============================
   DESKTOP: Centered Title
================================ */

.nav-brand-title {
    display: none;
}

@media (min-width: 992px) {
    .nav-brand-title {
        display: block !important;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        font-family: 'Playfair Display', serif;
        font-size: 1.6rem;
        font-weight: 700;
        color: #0d6efd;
        letter-spacing: 0.5px;
        white-space: nowrap;
        pointer-events: none;
        z-index: 1;
    }
}

/* ===============================
   HAMBURGER (Mobile Only)
================================ */

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none !important;
}

@media (min-width: 992px) {
    .navbar-toggler {
        display: none !important;
    }
}

/* ===============================
   NAVBAR COLLAPSE - RIGHT ALIGNED
================================ */

.navbar-collapse {
    flex-grow: 0;
}

@media (min-width: 992px) {
    .navbar-collapse {
        display: flex !important;
        flex-basis: auto !important;
    }
    
    .navbar-collapse.collapse:not(.show) {
        display: flex !important;
    }
    
    /* RIGHT ALIGN THE MENU */
    .justify-content-end {
        justify-content: flex-end !important;
    }
}

/* ===============================
   NAV MENU - RIGHT SIDE
================================ */

.navbar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

@media (min-width: 992px) {
    .navbar-nav {
        flex-direction: row !important;
        gap: 0.5rem;
        margin-left: auto;
    }
}

.navbar-nav .nav-item {
    position: relative;
}

.navbar-nav .nav-link {
    display: block;
    padding: 0.5rem 1rem;
    color: #333333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
    cursor: pointer;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.05);
}

/* ===============================
   DROPDOWNS - WORKING ON CLICK
================================ */

@media (min-width: 992px) {
    .navbar-nav .dropdown {
        position: relative;
    }
    
    .navbar-nav .dropdown-menu {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        display: none !important;
        min-width: 220px;
        margin-top: 0.5rem;
        padding: 0.5rem 0;
        list-style: none;
        background-color: #ffffff;
        border: 1px solid rgba(0, 0, 0, 0.15);
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        z-index: 1000;
    }
    
    /* Show on .show class (Bootstrap handles this) */
    .navbar-nav .dropdown-menu.show {
        display: block !important;
    }
}

/* ===============================
   DROPDOWN ITEMS
================================ */

.navbar-nav .dropdown-item {
    display: block;
    width: 100%;
    padding: 0.5rem 1.5rem;
    clear: both;
    font-weight: 400;
    color: #333333;
    text-align: left;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.navbar-nav .dropdown-item:hover,
.navbar-nav .dropdown-item:focus {
    color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.1);
}

.navbar-nav .dropdown-divider {
    height: 0;
    margin: 0.5rem 0;
    overflow: hidden;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* ===============================
   DROPDOWNS - MOBILE
================================ */

@media (max-width: 991px) {
    .navbar-nav .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin-top: 0;
        background-color: #f8f9fa;
        border: none;
        box-shadow: none;
        padding-left: 1rem;
    }
}

/* ===============================
   FOOTER
================================ */

.footer {
    background: #1f1f1f;
    color: #ccc;
    padding: 60px 0 30px;
    font-size: 15px;
}

.footer-title {
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1.1rem;
}

.footer-text {
    max-width: 420px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    background: #2c2c2c;
    border-radius: 50%;
    color: #fff;
    transition: background 0.3s ease;
    text-decoration: none;
    font-size: 1.1rem;
}

.social-link:hover {
    background: #0d6efd;
    color: #fff;
}

.footer-nav-horizontal {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-nav-horizontal a {
    color: #d6c28b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-nav-horizontal a:hover {
    color: #ffffff;
}

.footer-nav-horizontal .divider {
    color: rgba(255, 255, 255, 0.4);
}

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

.footer-contact li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
}

.footer-contact a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #fff;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 30px 0;
}

.copyright {
    color: #999999;
    font-size: 0.9rem;
    text-align: center;
}

/* ===============================
   CARDS
================================ */

.card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #e9ecef;
}

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

.card-img-top {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #212529;
}

.card-text {
    color: #666666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* ===============================
   BUTTONS
================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background-color: #0d6efd;
    color: white;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.btn-success {
    background-color: #198754;
    color: white;
}

.btn-success:hover {
    background-color: #157347;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.3);
}

.btn-outline-primary {
    background-color: transparent;
    color: #0d6efd;
    border: 2px solid #0d6efd;
}

.btn-outline-primary:hover {
    background-color: #0d6efd;
    color: white;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* ===============================
   WHATSAPP FLOAT
================================ */

.whatsapp-float {
    position: fixed;
    width: 56px;
    height: 56px;
    right: 24px;
    bottom: 24px;
    background-color: #25d366;
    color: #ffffff;
    border-radius: 50%;
    text-align: center;
    font-size: 28px;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #ffffff;
}

/* ===============================
   FORMS
================================ */

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #212529;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* ===============================
   BREADCRUMB
================================ */

.breadcrumb {
    background: transparent;
    padding: 0.75rem 0;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    display: flex;
    flex-wrap: wrap;
    list-style: none;
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    padding: 0 0.5rem;
    color: #666666;
}

.breadcrumb-item a {
    color: #0d6efd;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #666666;
}

/* ===============================
   SECTION TITLE
================================ */

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #212529;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #0d6efd;
    border-radius: 2px;
}

/* ===============================
   PAGE HEADER (Blue Gradient Bar)
================================ */

.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0 50px;
    color: white;
    text-align: center;
}

.page-header h1 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.page-header .lead {
    font-size: 1.2rem;
    opacity: 0.95;
    color: white;
}

.page-header .breadcrumb {
    justify-content: center;
    background: transparent !important;
    margin-bottom: 1.5rem;
}

.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.page-header .breadcrumb-item a:hover {
    color: white;
    text-decoration: underline;
}

.page-header .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.7);
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
}

/* ===============================
   BREADCRUMB FIXES FOR PRODUCT PAGES
================================ */

/* Product page breadcrumbs (on colored backgrounds) */
.breadcrumb-link-light {
    color: white !important;
    text-decoration: none;
    transition: all 0.2s ease;
}

.breadcrumb-link-light:hover {
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: underline;
    cursor: pointer;
}

.breadcrumb-active-light {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Ensure breadcrumb background is transparent on product pages */
.page-header .breadcrumb {
    background: transparent !important;
    margin-bottom: 0;
    padding: 0.5rem 0;
}

/* Breadcrumb separators on light backgrounds */
.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
}

/* Ensure proper z-index for clickable links */
.breadcrumb-item a {
    position: relative;
    z-index: 10;
}

/* Icon spacing in dropdown items */
.dropdown-item i {
    margin-right: 0.5rem;
    width: 1.25rem;
    text-align: center;
}

/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 768px) {
    .topbar-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-nav-horizontal .divider {
        display: none;
    }
    
    .btn {
        width: 100%;
    }
}