/* ============================================================
   MAIN STYLESHEET - ScrapTrade
   ============================================================ */

/* ===== VARIABLES ===== */
:root {
    --primary-color: #2d6a4f;
    --primary-light: #409f7a;
    --primary-dark: #1a4a36;
    --secondary-color: #d4af37;
    --secondary-light: #f1c40f;
    --accent-color: #e67e22;
    --text-color: #1a1a2e;
    --text-muted: #6b7a6b;
    --bg-light: #f8faf8;
    --bg-cream: #fdf8f0;
    --white: #ffffff;
    --shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 50px rgba(0, 0, 0, 0.15);
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', serif;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    background: var(--white);
    overflow-x: visible;
    width: 100%;
    max-width: 100%;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== UTILITY ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.section-tag {
    display: inline-block;
    background: rgba(45, 106, 79, 0.08);
    color: var(--primary-color);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
}

.section-title .highlight {
    color: var(--secondary-color);
}

.section-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    margin: 12px 0 20px;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.text-center .section-line {
    margin: 12px auto 20px;
}






/* ============================================================ */
/* 3-TIER HEADER                                              */
/* ============================================================ */

/* Tier 1: Top Bar */
.top-bar {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-bar a {
    color: rgba(255, 255, 255, 0.85);
    transition: var(--transition);
}

.top-bar a:hover {
    color: var(--secondary-color);
}

.top-bar .separator {
    opacity: 0.3;
    margin: 0 12px;
}

.top-bar-social a {
    display: inline-block;
    margin-left: 14px;
    font-size: 14px;
}

.price-ticker {
    overflow: hidden;
    white-space: nowrap;
    font-weight: 500;
}

.price-ticker span {
    margin: 0 20px;
}

.price-ticker .price-up {
    color: #4caf50;
}

.price-ticker .price-down {
    color: #e63946;
}





/* Tier 2: Middle Bar */
.middle-bar {
    background: var(--white);
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.middle-bar .logo img {
    height: 100px !important;
    width: 170px !important;
}

.middle-bar .search-bar {
    position: relative;
    max-width: 400px;
    width: 100%;
}

.middle-bar .search-bar input {
    width: 100%;
    padding: 10px 45px 10px 18px;
    border: 2px solid #e0e8e0;
    border-radius: 50px;
    font-size: 14px;
    transition: var(--transition);
    background: var(--bg-light);
}

.middle-bar .search-bar input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

.middle-bar .search-bar button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 8px 14px;
    cursor: pointer;
    font-size: 16px;
}

.middle-bar .header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.middle-bar .header-actions .btn-quote {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    color: var(--text-color);
    padding: 8px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    border: none;
}

.middle-bar .header-actions .btn-quote:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
}

.middle-bar .header-actions .btn-cart {
    position: relative;
    background: var(--bg-light);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-size: 18px;
    transition: var(--transition);
    border: none;
}

.middle-bar .header-actions .btn-cart:hover {
    background: var(--primary-color);
    color: var(--white);
}

.middle-bar .header-actions .btn-cart .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent-color);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}





/* Force sticky on navbar */
/* Force sticky on navbar */
.main-nav,
#mainNavbar {
    position: sticky;
    position: -webkit-sticky;
    top: 0;
    z-index: 1050;
    background: #fff;
    width: 100%;
}

/* When scrolled - matches your JS class */
.main-nav.navbar-scrolled,
#mainNavbar.navbar-scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12) !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}



.main-nav .navbar-nav .nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 16px 18px;
    transition: var(--transition);
    font-size: 14px;
    position: relative;
}

.main-nav .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.main-nav .navbar-nav .nav-link:hover::after,
.main-nav .navbar-nav .nav-link.active::after {
    width: 60%;
}

.main-nav .navbar-nav .nav-link:hover,
.main-nav .navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.main-nav .navbar-nav .nav-cta .btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 8px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    border: none;
}

.main-nav .navbar-nav .nav-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(45, 106, 79, 0.4);
}


/* ============================================================ */
/* RESPONSIVE HEADER                                            */
/* ============================================================ */

@media (max-width: 991.98px) {  
    .middle-bar{
        position: sticky;
        position: -webkit-sticky;
        top:0;
        z-index:1060;
        background:#fff;
        box-shadow:0 3px 15px rgba(0,0,0,.08);
    }

    .main-nav{
        position: sticky;
        position: -webkit-sticky;
        top:74px;   /* height of middle bar */
        z-index:1059;
        background:#fff;
    }
    
    .top-bar .price-ticker {
        display: none;
    }
    
    .middle-bar .search-bar {
        max-width: 200px;
    }
    
    .main-nav .navbar-collapse{
    position:absolute;
    left:0;
    right:0;
    top:100%;
    background:#fff;
    z-index:9999;
    box-shadow:0 10px 30px rgba(0,0,0,.15);
    padding:15px;
    max-height:calc(100vh - 90px);
    overflow-y:auto;
}
      .dropdown-menu{
        border:none;
        box-shadow:none;
        padding-left:15px;
        background:#f8f9fa;
    }

    .dropdown-item{
        padding:10px 15px;
    }
 
    
    .main-nav .navbar-nav .nav-link {
        padding: 10px 15px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    }
    
    .main-nav .navbar-nav .nav-link::after {
        display: none;
    }
    
    .main-nav .navbar-nav .nav-cta {
        margin-top: 10px;
    }
    
    .main-nav .navbar-nav .nav-cta .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .top-bar {
        font-size: 11px;
        padding: 6px 0;
    }
    
    .top-bar .top-bar-social {
        display: none;
    }
    
    .top-bar .col-md-6 {
        text-align: center !important;
    }
    
    .middle-bar .search-bar {
        max-width: 150px;
    }
    
    .middle-bar .header-actions .btn-quote span {
        display: none;
    }
    
    .middle-bar .header-actions .btn-quote {
        padding: 8px 14px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {    
    .middle-bar .logo img {
        height: 35px;
    }
    
    .middle-bar .search-bar {
        max-width: 120px;
    }
    
    .middle-bar .search-bar input {
        font-size: 12px;
        padding: 8px 35px 8px 12px;
    }
    
    .middle-bar .header-actions .btn-cart {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }
}

/* ===== SKIP TO CONTENT ===== */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 0 0 8px 8px;
    z-index: 9999;
    font-weight: 600;
}

.skip-to-content:focus {
    top: 0;
}

/* ============================================================ */
/* HERO CAROUSEL                                               */
/* ============================================================ */

.hero-carousel-section {
    position: relative;
    overflow: hidden;
    padding: 0;
}

.hero-carousel-section .carousel {
    border-radius: 0;
}

.hero-carousel-section .carousel-item {
    height: 550px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-carousel-section .carousel-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.85) 0%, rgba(45, 106, 79, 0.6) 100%);
    z-index: 1;
}

.hero-carousel-section .carousel-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    z-index: 2;
    max-width: 550px;
    color: var(--white);
}

.hero-carousel-section .carousel-content .badge {
    background: var(--secondary-color);
    color: var(--text-color);
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 16px;
}

.hero-carousel-section .carousel-content h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
}

.hero-carousel-section .carousel-content h1 .highlight {
    color: var(--secondary-color);
}

.hero-carousel-section .carousel-content p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 24px;
    line-height: 1.7;
}

.hero-carousel-section .carousel-content .btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-carousel-section .carousel-content .btn-primary {
    background: var(--secondary-color);
    color: var(--text-color);
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.hero-carousel-section .carousel-content .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4);
}

.hero-carousel-section .carousel-content .btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.hero-carousel-section .carousel-content .btn-outline:hover {
    background: var(--white);
    color: var(--text-color);
    border-color: var(--white);
}

.hero-carousel-section .carousel-control {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: var(--transition);
}

.hero-carousel-section:hover .carousel-control {
    opacity: 1;
}

.hero-carousel-section .carousel-control-prev {
    left: 20px;
}

.hero-carousel-section .carousel-control-next {
    right: 20px;
}

.hero-carousel-section .carousel-control i {
    font-size: 20px;
}

.hero-carousel-section .carousel-indicators {
    bottom: 30px;
}

.hero-carousel-section .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--white);
    background: transparent;
    margin: 0 6px;
    transition: var(--transition);
}

.hero-carousel-section .carousel-indicators button.active {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Responsive Hero */
@media (max-width: 992px) {
    .hero-carousel-section .carousel-item {
        height: 450px;
    }
    
    .hero-carousel-section .carousel-content h1 {
        font-size: 36px;
    }
    
    .hero-carousel-section .carousel-content {
        left: 5%;
        max-width: 85%;
    }
}

@media (max-width: 768px) {
    .hero-carousel-section .carousel-item {
        height: 400px;
    }
    
    .hero-carousel-section .carousel-content h1 {
        font-size: 28px;
    }
    
    .hero-carousel-section .carousel-content p {
        font-size: 15px;
    }
    
    .hero-carousel-section .carousel-content .btn-group .btn {
        padding: 10px 24px;
        font-size: 14px;
    }
    
    .hero-carousel-section .carousel-control {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .hero-carousel-section .carousel-item {
        height: 350px;
    }
    
    .hero-carousel-section .carousel-content h1 {
        font-size: 22px;
    }
    
    .hero-carousel-section .carousel-content p {
        font-size: 13px;
    }
    
    .hero-carousel-section .carousel-content .badge {
        font-size: 10px;
        padding: 3px 12px;
    }
    
    .hero-carousel-section .carousel-content .btn-group {
        flex-direction: column;
    }
    
    .hero-carousel-section .carousel-content .btn-group .btn {
        width: 100%;
        text-align: center;
    }
}

/* ============================================================ */
/* SCRAP CATEGORIES                                            */
/* ============================================================ */

.scrap-categories-section {
    background: var(--bg-light);
}

.scrap-category-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.04);
    height: 100%;
    cursor: pointer;
}

.scrap-category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.scrap-category-card .icon-wrapper {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 30px;
    color: var(--white);
    transition: var(--transition);
}

.scrap-category-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(-5deg);
}

.scrap-category-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-color);
}

.scrap-category-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 0;
}

.scrap-category-card .price-tag {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 16px;
    border-radius: 50px;
    background: rgba(45, 106, 79, 0.06);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
}

/* ============================================================ */
/* STATS SECTION                                               */
/* ============================================================ */

.stats-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: var(--white);
    padding: 60px 0;
}

.stats-section .stat-item {
    text-align: center;
}

.stats-section .stat-number {
    font-size: 48px;
    font-weight: 800;
    display: block;
    line-height: 1.2;
    color: var(--secondary-color);
}

.stats-section .stat-number .suffix {
    font-size: 28px;
}

.stats-section .stat-label {
    font-size: 16px;
    opacity: 0.8;
    margin-top: 4px;
}

/* ============================================================ */
/* TESTIMONIALS                                                */
/* ============================================================ */

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    height: 100%;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.testimonial-card .stars {
    color: var(--secondary-color);
    margin-bottom: 12px;
    font-size: 14px;
}

.testimonial-card blockquote {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-muted);
    font-style: italic;
    margin: 0 0 16px 0;
}

.testimonial-card .author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.testimonial-card .author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-card .author .name {
    font-weight: 700;
    color: var(--text-color);
}

.testimonial-card .author .role {
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================================ */
/* RESPONSIVE GENERAL                                           */
/* ============================================================ */

@media (max-width: 992px) {
    .section-title {
        font-size: 30px;
    }
    .section-padding {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 26px;
    }
    .section-padding {
        padding: 40px 0;
    }
    .stats-section .stat-number {
        font-size: 36px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 22px;
    }
    .stats-section .stat-number {
        font-size: 30px;
    }
    .stats-section .stat-number .suffix {
        font-size: 20px;
    }
}

/* ============================================================ */
/* NAVBAR TOGGLER - HAMBURGER MENU                             */
/* ============================================================ */

/* Navbar Toggler - Custom */
.navbar-toggler {
    background: none;
    border: 2px solid #1a1a2e;
    padding: 8px 10px;
    cursor: pointer;
    display: none; /* Hidden by default, shown on mobile */
    flex-direction: column;
    gap: 4px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    background: rgba(0, 0, 0, 0.04);
}

.navbar-toggler-icon {
   display: block;
    width: 24px;
    height: 3px;
    background: #1a1a2e !important; /* Dark color - visible on white */
    border-radius: 2px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
     content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 3px;
    background: #1a1a2e !important; /* Dark color - visible on white */
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar-toggler-icon::before {
    top: -8px;
}

.navbar-toggler-icon::after {
    bottom: -8px;
}

/* Animated X on toggle */
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background: transparent !important;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    transform: rotate(45deg);
    top: 0;
     background: #1a1a2e !important;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    transform: rotate(-45deg);
    bottom: 0;
    background: #1a1a2e !important;
}

/* Show toggler on mobile */
@media (max-width: 991.98px) {
    .navbar-toggler {
        display: flex !important;
    }
}

/* Mobile menu styling */
@media (max-width: 991.98px) {
    .main-nav .navbar-collapse {
        background: var(--white, #ffffff);
        padding: 15px 20px;
        border-radius: 12px;
        margin-top: 10px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        max-height: 80vh;
        overflow-y: auto;
        border: 1px solid rgba(0, 0, 0, 0.04);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 1050;
    }
    
    .main-nav .navbar-nav .nav-link {
        padding: 12px 15px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.04);
        font-size: 15px;
    }
    
    .main-nav .navbar-nav .nav-link::after {
        display: none;
    }
    
    .main-nav .navbar-nav .nav-link:hover,
    .main-nav .navbar-nav .nav-link.active {
        background: rgba(45, 106, 79, 0.04);
        border-radius: 8px;
    }
    
    .main-nav .navbar-nav .nav-cta {
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid rgba(0, 0, 0, 0.04);
    }
    
    .main-nav .navbar-nav .nav-cta .btn {
        width: 100%;
        text-align: center;
        padding: 12px 24px;
    }
    
    /* Mobile dropdown */
    .dropdown-menu {
        border: none;
        background: #f8f9fa;
        padding: 5px 0;
        margin: 5px 0;
        border-radius: 8px;
        position: relative !important;
        width: 100% !important;
        transform: none !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
    }
    
    .dropdown-menu .dropdown-item {
        padding: 8px 20px;
        font-size: 14px;
    }
    
    .dropdown-menu .dropdown-item:hover {
        background: rgba(45, 106, 79, 0.06);
    }
    
    .dropdown-toggle::after {
        float: right;
        margin-top: 8px;
    }
}

/* Smaller screens */
@media (max-width: 768px) {
    .navbar-toggler {
        width: 38px;
        height: 38px;
        padding: 6px 8px;
    }
    
    .navbar-toggler-icon {
        width: 20px;
        height: 2.5px;
    }
    
    .navbar-toggler-icon::before,
    .navbar-toggler-icon::after {
        width: 20px;
         height: 2.5px;
    }
    
    .navbar-toggler-icon::before {
        top: -7px;
    }
    
    .navbar-toggler-icon::after {
        bottom: -7px;
    }
}

@media (max-width: 576px) {
    .navbar-toggler {
        width: 34px;
        height: 34px;
        padding: 4px 6px;
        border-width: 1.5px;
    }
    
    .navbar-toggler-icon {
        width: 18px;
        height: 2px;
    }
    
    .navbar-toggler-icon::before,
    .navbar-toggler-icon::after {
        width: 18px;
         height: 2px;
    }
    .navbar-toggler-icon::before {
        top: -6px;
    }
    
    .navbar-toggler-icon::after {
        bottom: -6px;
    }
}

/* ============================================================ */
/* HEADER ACTIONS - RIGHT ALIGNMENT                            */
/* ============================================================ */

.middle-bar .header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-left: auto;
}

.middle-bar .col-lg-4.text-end {
    text-align: right !important;
}

/* Ensure the col takes full width on mobile */
@media (max-width: 991.98px) {
    .middle-bar .col-6.col-md-8.col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
        text-align: right !important;
    }
    
    .middle-bar .header-actions {
        justify-content: flex-end;
        width: 100%;
    }
    
    .middle-bar .btn-quote {
        margin-right: 8px;
    }
}

/* ============================================================ */
/* TABLET VIEW - 768px to 991px                                 */
/* ============================================================ */

@media (min-width: 768px) and (max-width: 991.98px) {
    .middle-bar .col-6.col-md-8.col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
        text-align: right !important;
        margin-left: auto;
    }
    
    .middle-bar .header-actions {
        justify-content: flex-end;
        width: 100%;
        gap: 15px;
    }
    
    .middle-bar .btn-quote {
        padding: 8px 18px;
        font-size: 13px;
    }
    
    .middle-bar .btn-quote span {
        display: inline;
    }
    
    .navbar-toggler {
        margin-left: 0;
    }
}
/* ============================================================ */
/* MOBILE VIEW - 576px to 767px                                 */
/* ============================================================ */

@media (max-width: 576px) {
    .middle-bar .col-6.col-md-8.col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .middle-bar .header-actions {
        gap: 6px;
    }
    
    .middle-bar .btn-quote span {
        display: none;
    }
    
    .middle-bar .btn-quote {
        padding: 6px 12px;
        font-size: 12px;
    }
}