/* =======================================================
   MASEK GROUP OF COMPANIES - HOME PAGE
   FONT STYLE: SEGOE UI + ARIAL
   NO GOOGLE FONTS REQUIRED
   BRAND COLOURS: GREEN, CHARCOAL BLACK, WHITE AND BLUE
======================================================= */


/* =======================================================
   GLOBAL RESET
======================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    background: #FFFFFF;
    color: #111111;
    line-height: 1.6;
    font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar .logo,
.nav-links a,
.hero-tag,
.btn,
.small-btn,
.floating-buttons a,
.section-label,
.category-number {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
}


/* =======================================================
   NAVBAR - CLASSIC SILVER
======================================================= */

.navbar {
    background: #C0C0C0;
    background-color: #C0C0C0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 10px 2%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
    border-bottom: 3px solid #25D366;
    width: 100%;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 1;
    min-width: 0;
}

.navbar-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.navbar-logo img {
    display: block;
    width: 225px;
    height: 82px;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
}

.navbar .logo {
    color: #111111;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.2px;
    line-height: 1.25;
    margin: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.nav-links a {
    color: #111111;
    text-decoration: none;
    margin-left: 25px;
    padding: 10px 18px;
    font-weight: 600;
    border-radius: 25px;
    white-space: nowrap;
    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.nav-links a:hover {
    background: #25D366;
    color: #111111;
    transform: translateY(-1px);
}

.nav-links a.active {
    background: rgba(37, 211, 102, 0.14);
    color: #111111;
    border-radius: 25px;
    box-shadow: inset 0 -3px 0 #25D366;
}


/* =======================================================
   HERO
======================================================= */

.hero {
    position: relative;
    width: 100%;
    height: 55vh;
    min-height: 450px;
    max-height: 550px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #FFFFFF;
    background: #111111;
}


/* =======================================================
   HERO IMAGE SLIDER
======================================================= */

.hero-image-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    background: #111111;
}

.hero-image-slider img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transform: scale(1);
    transition:
        opacity 1.2s ease-in-out,
        transform 5s ease-in-out;
}

.hero-image-slider img.active {
    opacity: 1;
    transform: scale(1.02);
}


/* =======================================================
   HERO IMAGE OVERLAY
======================================================= */

.hero-image-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(17, 17, 17, 0.62) 0%,
        rgba(17, 17, 17, 0.43) 50%,
        rgba(17, 17, 17, 0.62) 100%
    );
    z-index: 1;
    pointer-events: none;
}


/* =======================================================
   HERO CONTENT
======================================================= */

.hero-content {
    position: relative;
    z-index: 2;
    width: 80%;
    max-width: 950px;
    padding: 20px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: rgba(37, 211, 102, 0.95);
    color: #111111;
    padding: 7px 15px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.20);
}

.hero-tag i {
    font-size: 12px;
}


/* =======================================================
   HERO HEADING AND DESCRIPTION
======================================================= */

.hero-content h1 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
    color: #FFFFFF;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.hero-content p {
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 24px;
    color: #FFFFFF;
    font-weight: 600;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 7px rgba(0, 0, 0, 0.50);
}


/* =======================================================
   HERO BUTTONS
======================================================= */

.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #25D366;
    color: #111111;
    padding: 11px 27px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    margin: 5px;
    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
    border: 2px solid #25D366;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.20);
}

.btn:hover {
    background: #20C463;
    border-color: #20C463;
    color: #111111;
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.btn.second {
    background: #2563EB;
    color: #FFFFFF;
    border: 2px solid #2563EB;
}

.btn.second:hover {
    background: #1D4ED8;
    color: #FFFFFF;
    border-color: #1D4ED8;
}

.btn i {
    font-size: 14px;
}


/* =======================================================
   FLOATING CONTACT BUTTONS
======================================================= */

.floating-buttons {
    position: fixed;
    right: 12px;
    bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    z-index: 9999;
}

.floating-buttons a {
    width: 140px;
    height: 38px;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 22px;
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 700;
    font-size: 11px;
    line-height: 1.1;
    letter-spacing: 0;
    box-sizing: border-box;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.18);
    transition: transform 0.3s ease;
}

.floating-buttons a i {
    font-size: 17px;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}

.floating-buttons a span {
    display: inline-block;
    margin: 0;
    padding: 0;
    line-height: 1.1;
    letter-spacing: 0;
    white-space: nowrap;
}

.floating-buttons a:hover {
    transform: scale(1.02);
}

.floating-buttons a.whatsapp {
    background: #25D366;
    color: #FFFFFF;
    animation: pulseGreen 2s infinite;
}

.floating-buttons a.call {
    background: #2563EB;
    color: #FFFFFF;
    border: 1px solid #2563EB;
    animation: pulseBlue 2s infinite;
}

.floating-buttons a.call:hover {
    background: #1D4ED8;
    color: #FFFFFF;
    border-color: #1D4ED8;
}


/* =======================================================
   FLOATING BUTTON ANIMATIONS
======================================================= */

@keyframes pulseGreen {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.65);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@keyframes pulseBlue {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.55);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(37, 99, 235, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}


/* =======================================================
   GENERAL SECTIONS
======================================================= */

.section {
    padding: 70px 8%;
    text-align: center;
    background: #FFFFFF;
}

.section h2 {
    font-family: Arial, Helvetica, sans-serif;
    color: #111111;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

.section > p {
    color: #333333;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: 17px;
}


/* =======================================================
   SECTION HEADING
======================================================= */

.section-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 15px;
}

.heading-title {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-heading h2 {
    margin: 0;
}

.section-label {
    display: block;
    color: #25D366;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
    margin-bottom: 7px;
}

.heading-line {
    width: 55px;
    height: 3px;
    background: #25D366;
    border-radius: 10px;
}


/* =======================================================
   SECTION INTRODUCTION
======================================================= */

.section-intro {
    max-width: 800px;
    margin: 0 auto;
    color: #555555;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: 17px;
    line-height: 1.7;
}


/* =======================================================
   PRODUCT CATEGORIES
======================================================= */

.categories-section {
    background: #FFFFFF;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 30px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}


/* =======================================================
   PRODUCT CATEGORY CARD
======================================================= */

.product-card {
    position: relative;
    background: #FFFFFF;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid #25D366;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
    display: flex;
    flex-direction: column;
    min-height: 455px;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: #25D366;
    box-shadow:
        0 16px 32px rgba(0, 0, 0, 0.12),
        0 0 0 2px rgba(37, 211, 102, 0.25);
}


/* =======================================================
   PRODUCT CATEGORY IMAGE
   IMAGE DIMENSIONS KEPT UNCHANGED
======================================================= */

.product-image-wrapper {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #F2FCF5;
}


/* =======================================================
   CATEGORY IMAGE SLIDER
======================================================= */

.category-image-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.category-image-slider img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: scale(1);
    transition: opacity 1.2s ease-in-out;
}

.category-image-slider img.active {
    opacity: 1;
    visibility: visible;
}


/* =======================================================
   SINGLE CATEGORY IMAGE
======================================================= */

.product-image-wrapper > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.45s ease;
}


/* =======================================================
   CATEGORY IMAGE HOVER
======================================================= */

.product-card:hover .category-image-slider img.active {
    transform: scale(1.02);
}

.product-card:hover .product-image-wrapper > img {
    transform: scale(1.04);
}


/* =======================================================
   IMAGE OVERLAY
======================================================= */

.image-overlay {
    position: absolute;
    right: 15px;
    bottom: 15px;
    width: 46px;
    height: 46px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: rgba(17, 17, 17, 0.90);
    color: #FFFFFF;
    font-size: 18px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.20);
    transition:
        background 0.3s ease,
        transform 0.3s ease;
    z-index: 5;
}

.product-card:hover .image-overlay {
    background: #25D366;
    color: #111111;
    transform: translateY(-3px);
}


/* =======================================================
   PRODUCT CARD CONTENT
======================================================= */

.product-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 20px 18px;
    position: relative;
}

.category-number {
    color: #25D366;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 3px;
}

.product-card h3 {
    font-family: Arial, Helvetica, sans-serif;
    color: #111111;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 6px;
}

.product-card p {
    color: #444444;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 12px;
    max-width: 300px;
}


/* =======================================================
   PRODUCT BUTTON
======================================================= */

.small-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: auto;
    background: #25D366;
    color: #111111;
    text-decoration: none;
    padding: 11px 23px;
    border-radius: 30px;
    font-weight: 600;
    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
    border: 2px solid #25D366;
}

.small-btn:hover {
    background: #111111;
    color: #FFFFFF;
    border-color: #111111;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.small-btn i {
    font-size: 13px;
    transition: transform 0.3s ease;
}

.small-btn:hover i {
    transform: translateX(4px);
}


/* =======================================================
   NO CATEGORIES
======================================================= */

.no-categories {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    background: #F7FDF9;
    border: 1px solid #DDEEE2;
    border-radius: 12px;
    color: #555555;
}

.no-categories i {
    color: #25D366;
    font-size: 35px;
    margin-bottom: 12px;
}

.no-categories p {
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: 15px;
}


/* =======================================================
   LARGE TABLET
======================================================= */

@media (max-width: 1100px) {

    .navbar {
        background: #C0C0C0;
        background-color: #C0C0C0;
        padding: 10px 2%;
        gap: 8px;
    }

    .navbar-brand {
        gap: 8px;
    }

    .navbar-logo img {
        width: 170px;
        height: 65px;
    }

    .navbar .logo {
        font-size: 19px;
    }

    .nav-links a {
        margin-left: 8px;
        padding: 9px 10px;
        font-size: 14px;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 850px;
    }
}


/* =======================================================
   TABLET
======================================================= */

@media (max-width: 800px) {

    .navbar {
        background: #C0C0C0;
        background-color: #C0C0C0;
        padding: 10px 3%;
        gap: 10px;
    }

    .navbar-brand {
        gap: 8px;
    }

    .navbar-logo img {
        width: 150px;
        height: 58px;
    }

    .navbar .logo {
        font-size: 18px;
    }

    .nav-links {
        flex-wrap: wrap;
    }

    .nav-links a {
        margin-left: 8px;
        padding: 8px 10px;
        font-size: 13px;
    }

    .hero {
        height: 55vh;
        min-height: 430px;
        max-height: 520px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 17px;
    }

    .section {
        padding: 60px 5%;
    }

    .product-grid {
        gap: 18px;
    }

    .product-image-wrapper {
        height: 280px;
    }
}


/* =======================================================
   MOBILE
======================================================= */

@media (max-width: 600px) {

    .navbar {
        background: #C0C0C0;
        background-color: #C0C0C0;
        flex-direction: column;
        justify-content: center;
        gap: 8px;
        padding: 10px 3%;
    }

    .navbar-brand {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
    }

    .navbar-logo img {
        width: 140px;
        height: 54px;
    }

    .navbar .logo {
        font-size: 17px;
        text-align: center;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .nav-links a {
        margin: 3px;
        padding: 8px 12px;
        font-size: 14px;
    }

    .hero {
        height: 58vh;
        min-height: 420px;
        max-height: 500px;
    }

    .hero-content {
        width: 92%;
        padding: 10px;
    }

    .hero-tag {
        font-size: 10px;
        padding: 6px 12px;
        margin-bottom: 12px;
    }

    .hero-content h1 {
        font-size: 29px;
    }

    .hero-content p {
        font-size: 16px;
        margin-bottom: 18px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
        width: auto;
        max-width: 90%;
    }

    .section {
        padding: 50px 5%;
    }

    .section-heading {
        gap: 10px;
    }

    .section-heading h2 {
        font-size: 29px;
    }

    .section-label {
        font-size: 9px;
        letter-spacing: 1.3px;
    }

    .heading-line {
        width: 30px;
    }

    .section-intro {
        font-size: 16px;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 30px;
    }

    .product-card {
        min-height: 0;
        max-width: 430px;
        width: 100%;
        margin: 0 auto;
    }

    .product-image-wrapper {
        height: 260px;
    }

    .product-card-content {
        padding: 15px 20px 18px;
    }

    .product-card h3 {
        font-size: 22px;
    }

    .product-card p {
        min-height: 0;
    }

    .floating-buttons {
        right: 8px;
        bottom: 12px;
        gap: 4px;
    }

    .floating-buttons a {
        width: 118px;
        height: 34px;
        padding: 4px 8px;
        gap: 4px;
        font-size: 10px;
        border-radius: 20px;
    }

    .floating-buttons a i {
        font-size: 15px;
    }
}


/* =======================================================
   VERY SMALL PHONES
======================================================= */

@media (max-width: 400px) {

    .navbar {
        background: #C0C0C0;
        background-color: #C0C0C0;
        padding: 8px 2%;
    }

    .navbar-logo img {
        width: 120px;
        height: 48px;
    }

    .navbar .logo {
        font-size: 16px;
    }

    .nav-links a {
        font-size: 13px;
        padding: 7px 9px;
        margin: 2px;
    }

    .hero {
        height: 58vh;
        min-height: 400px;
        max-height: 480px;
    }

    .hero-content h1 {
        font-size: 26px;
    }

    .hero-content p {
        font-size: 15px;
    }

    .hero-tag {
        font-size: 9px;
        padding: 5px 10px;
    }

    .section-heading h2 {
        font-size: 26px;
    }

    .product-image-wrapper {
        height: 230px;
    }

    .floating-buttons {
        right: 6px;
        bottom: 10px;
        gap: 3px;
    }

    .floating-buttons a {
        width: 108px;
        height: 32px;
        padding: 4px 6px;
        gap: 4px;
        font-size: 9px;
        border-radius: 20px;
    }

    .floating-buttons a i {
        font-size: 14px;
    }
}


/* =======================================================
   REDUCE ANIMATIONS WHEN REQUESTED
======================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .floating-buttons a {
        transition: none;
        animation: none;
    }
}


/* =========================================================
   MASEK HOME PAGE - PRODUCT SEARCH BAR
========================================================= */

.home-search-section {
    width: 100%;
    padding: 18px 5%;
    background: #F7F8FA;
    border-bottom: 1px solid #E5E7EB;
    position: relative;
    z-index: 900;
}

.home-search-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}


/* SEARCH FORM */

.home-search-form {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 54px;
    margin: 0;
    padding: 0;
    background: #FFFFFF;
    border: 1px solid #D1D5DB;
    border-radius: 9px;
    overflow: hidden;
}


/* SEARCH INPUT WRAPPER */

.home-search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 0 17px;
    background: #FFFFFF;
}

.home-search-input-wrapper > i {
    flex-shrink: 0;
    color: #777777;
    font-size: 17px;
}

.home-search-input-wrapper input {
    flex: 1;
    width: 100%;
    min-width: 0;
    height: 52px;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    background: transparent;
    color: #111111;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    box-shadow: none;
}

.home-search-input-wrapper input:focus {
    outline: none;
    border: none;
    box-shadow: none;
}

.home-search-input-wrapper input::placeholder {
    color: #888888;
    opacity: 1;
}


/* SEARCH BUTTON */

.home-search-form button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    flex-shrink: 0;
    padding: 0 27px;
    margin: 0;
    border: none;
    border-radius: 0;
    background: #2563EB;
    color: #FFFFFF;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.25s ease;
}

.home-search-form button:hover {
    background: #1D4ED8;
}

.home-search-form button:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.35);
    outline-offset: -3px;
}


/* LIVE SEARCH SUGGESTIONS */

.home-search-suggestions {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    max-height: 360px;
    overflow-y: auto;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.13);
    z-index: 2000;
}

.home-search-suggestion {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 17px;
    color: #111111;
    text-decoration: none;
    border-bottom: 1px solid #EEEEEE;
    background: #FFFFFF;
    transition: background 0.2s ease;
}

.home-search-suggestion:last-child {
    border-bottom: none;
}

.home-search-suggestion:hover {
    background: #EFF6FF;
}

.home-search-suggestion strong {
    display: block;
    color: #111111;
    font-size: 14px;
    font-weight: 700;
}

.home-search-suggestion small {
    display: block;
    color: #666666;
    font-size: 12px;
}

.home-search-no-results {
    padding: 15px 17px;
    color: #666666;
    background: #FFFFFF;
    font-size: 14px;
}


/* SEARCH TABLET RESPONSIVENESS */

@media screen and (max-width: 900px) {

    .home-search-section {
        padding: 16px 4%;
    }
}


/* SEARCH MOBILE RESPONSIVENESS */

@media screen and (max-width: 600px) {

    .home-search-section {
        padding: 13px 4%;
    }

    .home-search-form {
        min-height: 48px;
    }

    .home-search-input-wrapper {
        gap: 8px;
        padding: 0 11px;
    }

    .home-search-input-wrapper > i {
        font-size: 15px;
    }

    .home-search-input-wrapper input {
        height: 46px;
        font-size: 13px;
    }

    .home-search-form button {
        padding: 0 15px;
        font-size: 13px;
    }
}


/* SMALL MOBILE SCREENS */

@media screen and (max-width: 360px) {

    .home-search-form button {
        gap: 6px;
        padding: 0 12px;
        font-size: 12px;
    }
}


/* =======================================================
   CATEGORY CARD DESCRIPTION PREVIEW
======================================================= */

.product-card-content .category-description-preview {
    width: 100%;
    max-width: 300px;
    margin: 0 auto 9px;
    color: #444444;
    font-size: 15px;
    line-height: 1.65;
    text-align: center;
    overflow-wrap: break-word;
}


/* =======================================================
   CATEGORY CARD BUTTONS
======================================================= */

.category-card-buttons {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 0;
}


/* VIEW INFORMATION BUTTON - BLUE */

.category-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 220px;
    min-height: 43px;
    padding: 10px 18px;
    border: 2px solid #2563EB;
    border-radius: 30px;
    background: #2563EB;
    color: #FFFFFF;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.category-info-btn:hover {
    background: #1D4ED8;
    border-color: #1D4ED8;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(37, 99, 235, 0.22);
}

.category-info-btn:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.35);
    outline-offset: 3px;
}


/* VIEW PRODUCTS BUTTON - GREEN, WITHOUT ARROW */

.category-card-buttons .small-btn {
    width: 100%;
    max-width: 220px;
    min-height: 43px;
    margin-top: 0;
    gap: 0;
}

.category-card-buttons .small-btn i {
    display: none;
}


/* =======================================================
   CATEGORY INFORMATION POP-UP
======================================================= */

.category-info-modal {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    background: rgba(0, 0, 0, 0.72);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.category-info-modal.active {
    display: flex;
}

body.category-modal-open {
    overflow: hidden;
}


/* POP-UP CONTENT */

.category-info-modal-content {
    position: relative;
    width: 100%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 35px 32px 28px;
    background: #FFFFFF;
    border-radius: 15px;
    border-top: 5px solid #2563EB;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25);
    animation: categoryModalAppear 0.25s ease;
}


/* POP-UP OPENING ANIMATION */

@keyframes categoryModalAppear {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* POP-UP CLOSE ICON */

.category-info-close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 50%;
    background: #F1F5F9;
    color: #333333;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition:
        background 0.25s ease,
        color 0.25s ease;
}

.category-info-close:hover {
    background: #2563EB;
    color: #FFFFFF;
}


/* POP-UP HEADING */

.category-info-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 35px;
    margin-bottom: 22px;
    padding-bottom: 15px;
    border-bottom: 1px solid #E5E7EB;
}

.category-info-heading > i {
    color: #2563EB;
    font-size: 25px;
}

.category-info-heading h2 {
    margin: 0;
    color: #111111;
    font-size: 23px;
    line-height: 1.35;
}


/* FULL CATEGORY DESCRIPTION */

.category-info-description {
    color: #444444;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.8;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    text-align: left;
    margin-bottom: 25px;
}


/* POP-UP CLOSE BUTTON */

.category-info-done {
    display: block;
    width: 100%;
    max-width: 160px;
    min-height: 43px;
    margin: 0 auto;
    padding: 10px 20px;
    border: 2px solid #2563EB;
    border-radius: 25px;
    background: #2563EB;
    color: #FFFFFF;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background 0.25s ease,
        border-color 0.25s ease;
}

.category-info-done:hover {
    background: #1D4ED8;
    border-color: #1D4ED8;
}


/* =======================================================
   MOBILE CATEGORY BUTTONS AND POP-UP
======================================================= */

@media screen and (max-width: 600px) {

    .category-card-buttons {
        gap: 8px;
    }

    .category-card-buttons .category-info-btn,
    .category-card-buttons .small-btn {
        max-width: 240px;
        min-height: 44px;
        font-size: 14px;
    }

    .category-info-modal {
        padding: 14px;
    }

    .category-info-modal-content {
        max-width: 100%;
        max-height: 88vh;
        padding: 32px 20px 22px;
        border-radius: 12px;
    }

    .category-info-heading h2 {
        font-size: 20px;
    }

    .category-info-description {
        font-size: 15px;
        line-height: 1.7;
    }
}


/* =======================================================
   REDUCED MOTION
======================================================= */

@media (prefers-reduced-motion: reduce) {

    .category-info-modal-content {
        animation: none;
    }

    .category-info-btn,
    .category-info-done {
        transition: none;
    }
}


/* =======================================================
   HOME PAGE - SALES QUOTE BUTTON
   POSITIONED BESIDE THE SEARCH BAR
   ORANGE BRANDING + PULSE ANIMATION
======================================================= */

.home-search-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
    width: 100%;
}

.home-search-row .home-search-form {
    flex: 1;
    min-width: 0;
}

.home-sales-quote-btn,
.home-sales-quote-btn:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    min-height: 54px;
    padding: 0 24px;

    background: #FF6B00;
    color: #FFFFFF;

    border: 1px solid #FF6B00;
    border-radius: 9px;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;

    animation: homeQuotePulse 2s infinite;

    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}

.home-sales-quote-btn:hover {
    background: #E85F00;
    border-color: #E85F00;
    color: #FFFFFF;
    transform: translateY(-1px);
}

.home-sales-quote-btn:focus-visible {
    outline: 3px solid rgba(255, 107, 0, 0.30);
    outline-offset: 3px;
}


/* SALES QUOTE PULSE ANIMATION */

@keyframes homeQuotePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.65);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(255, 107, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 0, 0);
    }
}


/* TABLET AND MOBILE */

@media screen and (max-width: 600px) {

    .home-search-row {
        gap: 8px;
    }

    .home-sales-quote-btn {
        min-height: 48px;
        padding: 0 12px;
        font-size: 11px;
    }
}

@media screen and (max-width: 360px) {

    .home-search-row {
        gap: 6px;
    }

    .home-sales-quote-btn {
        padding: 0 9px;
        font-size: 10px;
    }
}


/* =======================================================
   REDUCED MOTION - SALES QUOTE BUTTON
======================================================= */

@media (prefers-reduced-motion: reduce) {

    .home-sales-quote-btn {
        animation: none;
        transition: none;
    }
}


/* =======================================================
   MOBILE SALES QUOTE BUTTON FIX
======================================================= */

@media screen and (max-width: 600px) {

    .home-search-row .home-sales-quote-btn,
    .home-search-row .home-sales-quote-btn:visited {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;

        background: #FF6B00 !important;
        color: #FFFFFF !important;
        border: 1px solid #FF6B00 !important;

        font-weight: 700 !important;
        text-decoration: none !important;

        animation: homeQuotePulse 2s infinite !important;
    }

    .home-search-row .home-sales-quote-btn:hover {
        background: #E85F00 !important;
        border-color: #E85F00 !important;
        color: #FFFFFF !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-search-row .home-sales-quote-btn {
        animation: none !important;
    }
}
 