/* =========================
   PRODUCT HERO
========================= */

.product-hero {

    width: 100%;

    min-height: 320px;

    background: #f0f2f5 !important;

    padding: 80px 8% 50px;

    overflow: hidden;

    position: relative;

    display: flex;

    align-items: center;
    justify-content: center;
}


/* =========================
   CONTAINER
========================= */

.hero-container {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 50px;

    position: relative;
    z-index: 2;
}

/* =========================
   LEFT CONTENT
========================= */

.hero-content {
   
    width: 48%;
    
    padding-left: 40px;
    
}

/* BREADCRUMB */

.hero-breadcrumb {
    display: none;
}

/* HEADING */

.hero-content h1 {
    
    font-size: 38px;
   
    line-height: 1.1;

    color: #ffffff;
    font-weight: 800;

    margin-bottom: 18px;
}

.hero-content h1 span {

    display: block;

    color: #f47a20;
}

/* LINE */

.hero-line {

    width: 110px;

    height: 4px;

    border-radius: 50px;

    background:
        linear-gradient(to right, #123f67, #f47a20);

    margin-bottom: 30px;
}

/* TEXT */

.hero-text {

    font-size: 15px;

    line-height: 1.7;

    color: rgba(255, 255, 255, 0.8);

    margin-bottom: 25px;

    max-width: 500px;
}

/* =========================
   FEATURES
========================= */

.hero-features {

    display: flex;

    gap: 20px;

    flex-wrap: nowrap;

    margin-bottom: 25px;
}

/* BOX */

.feature-box {

    min-width: 130px;
}

.feature-box i {

    width: 45px;
    height: 45px;

    background: rgba(244, 122, 32, 0.15);

    color: #f47a20;

    border-radius: 50%;

    border: 1px solid rgba(244, 122, 32, 0.2);

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 18px;

    margin-bottom: 12px;
}

.feature-box h4 {

    font-size: 15px;

    color: #fff;

    font-weight: 700;

    margin-bottom: 4px;
}

.feature-box p {

    font-size: 12px;

    color: rgba(255, 255, 255, 0.6);

    margin: 0;
}

/* =========================
   BUTTON
========================= */

.hero-btn {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    padding: 14px 30px;

    background: #f47a20;

    color: #fff !important;

    text-decoration: none;

    border-radius: 12px;

    font-size: 15px;

    font-weight: 700;

    transition: 0.3s;

    box-shadow: 0 8px 16px rgba(244, 122, 32, 0.3);
}

.hero-btn:hover {

    background: #123f67;

    transform: translateY(-4px);
}

/* =========================
   IMAGE
========================= */

.hero-image {

    width: 52%;

    position: relative;
}

.hero-image img {

    width: 85%;

    margin: 0 auto;

    border-radius: 18px;

    display: block;

    object-fit: contain;

    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.4));

    animation: floatImage 5s ease-in-out infinite;
}

/* ANIMATION */

@keyframes floatImage {

    0% {

        transform: translateY(0px);
    }

    50% {

        transform: translateY(-12px);
    }

    100% {

        transform: translateY(0px);
    }
}

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

@media(max-width:1400px) {

    .hero-content h1 {

        font-size: 48px;
    }
}

@media(max-width:1100px) {

    .hero-container {

        flex-direction: column;

        text-align: center;
    }

    .hero-content,
    .hero-image {

        width: 100%;
    }

    .hero-line {

        margin: auto auto 30px;
    }

    .hero-text {

        margin: auto auto 40px;
    }

    .hero-features {

        justify-content: center;
    }
}

@media(max-width:768px) {
    .product-hero {
        padding: 60px 20px 40px;
        min-height: auto;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-text {
        font-size: 16px;
    }

    .feature-box {
        width: auto;
    }

    .hero-features {
        gap: 30px;
    }

    .feature-box i {
        margin: auto auto 18px;
    }

    .hero-btn {
        padding: 15px 28px;

        font-size: 15px;
    }
}


/* =========================
   OUR PRODUCTS HERO
========================= */

.product-hero {
    position: relative;
    padding: 60px 0;
    background: #f0f2f5 !important;
    overflow: hidden;
    color: var(--brand-white);
    min-height: 380px;
    display: flex;
    align-items: center;
}

/* Fixing background layering and potential conflicts with style.css */
.product-hero .product-overlay {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 70% 30%, rgba(244, 122, 32, 0.12) 0%, transparent 50%);
    z-index: 1;
    bottom: 0;
    height: 100%;
    width: 100%;
    padding: 0;
    display: block;
    background-color: transparent;
    transition: none;
}

/* Adding a subtle grid effect via pseudo-element */
.product-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
    z-index: 1;
    pointer-events: none;
}

.product-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 5;
    width: 100%;
}

/* LEFT CONTENT */

.product-hero .product-content {
    flex: 1;
    max-width: 620px;
    animation: fadeInUp 0.8s ease-out forwards;
    text-align: center;
    padding: 0;
}

.product-hero .product-tag {
    display: inline-block;
    background: rgba(244, 122, 32, 0.15);
    color: var(--brand-orange) !important;
    font-size: 12px;
    font-weight: 800;
    padding: 8px 22px;
    border-radius: 100px;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid rgba(244, 122, 32, 0.4);
    backdrop-filter: blur(4px);
}

.product-hero .product-content h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    color: var(--brand-white) !important;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.product-hero .product-content p {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85) !important;
    margin-bottom: 40px;
    max-width: 520px;
}

.product-buttons {
    display: flex;
    gap: 20px;
}

.product-btn {
    padding: 16px 38px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.product-hero .primary-btn {
    background: var(--brand-orange);
    color: var(--brand-white) !important;
    box-shadow: 0 12px 24px rgba(244, 122, 32, 0.35);
}

.product-hero .primary-btn:hover {
    background: var(--brand-white);
    color: var(--brand-blue-deep) !important;
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(244, 122, 32, 0.2);
}

.product-hero .secondary-btn {
    background: transparent;
    color: var(--brand-white) !important;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.product-hero .secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--brand-white);
    color: var(--brand-orange) !important;
    transform: translateY(-4px);
}

/* RIGHT IMAGE */

.product-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    animation: fadeInRight 1s ease-out 0.2s forwards;
    opacity: 0;
}

.product-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.35));
    animation: floatEffect 5s ease-in-out infinite;
}

/* ANIMATIONS */

@keyframes floatEffect {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* RESPONSIVE */

@media (max-width: 1199px) {
    .product-content h1 {
        font-size: 48px;
    }
}

@media (max-width: 991px) {
    .product-hero {
        padding: 60px 0 50px;
        text-align: center;
        min-height: auto;
    }

    .product-container {
        flex-direction: column;
    }

    .product-hero .product-content {
        max-width: 100%;
        padding: 0;
        margin-bottom: 60px;
        text-align: center;
    }

    .product-hero .product-content h1 {
        font-size: 42px;
    }

    .product-hero .product-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .product-buttons {
        justify-content: center;
    }

    .product-image {
        justify-content: center;
        width: 100%;
    }

    .product-image img {
        max-width: 80%;
    }
}

@media (max-width: 576px) {
    .product-hero {
        padding: 50px 0 40px;
    }

    .product-hero .product-content h1 {
        font-size: 32px;
    }

    .product-hero .product-content p {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .product-buttons {
        flex-direction: row;
        gap: 15px;
        padding: 0 20px;
    }

    .product-btn {
        width: auto;
    }

    .product-image img {
        max-width: 100%;
    }
}


/* =========================
   CATEGORY SECTION
========================= */

.category-section {

    padding: 30px 8%;

    background: #f7f9fc;
}

/* HEADING */

.section-heading {

    margin-bottom: 50px;
}

.section-heading span {

    color: #f47a20;

    font-size: 14px;

    font-weight: 700;

    letter-spacing: 1px;

    display: block;

    margin-bottom: 15px;
}

.section-heading h2 {

    font-size: 32px;

    color: #123f67;

    font-weight: 800;
}

/* =========================
   GRID
========================= */

.category-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 30px;
}

/* CARD */

.category-card {
    position: relative;
    height: 320px;
    background: #fff;

    border-radius: 20px;

    overflow: hidden;

    display: flex;

    flex-direction: column;

    align-items: stretch;

    text-align: center;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);

    transition: 0.35s ease;
}

.category-card:hover {

    transform: translateY(-6px);

    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.10);
}

/* IMAGE */

.category-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    border: none;
    z-index: 1;
}

.category-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;

    transition: 0.4s;
}

.category-card:hover img {

    transform: scale(1.08);
}

/* CONTENT */

.category-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 20px 25px;
    z-index: 2;
    background: linear-gradient(to top, rgba(18, 63, 103, 0.95) 20%, transparent 100%);
}

.category-content h3 {
    font-size: 18px;
    line-height: 1.3;
    color: #ffffff;
    margin-bottom: 8px;
    font-weight: 700;
}

.category-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.category-content p a {
    display: inline-block;
    margin-top: 12px;
    padding: 6px 20px;
    border: 1px solid var(--brand-orange);
    border-radius: 50px;
    color: var(--brand-orange);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.category-content p a:hover {
    background: var(--brand-orange);
    color: #fff !important;
}
/* =========================
   VIEW MORE CARD
========================= */

.view-more-card {
    display: none;
}

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

@media(max-width:1200px) {

    .category-grid {

        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width:768px) {

    .category-section {

        padding: 30px 20px;
    }

    .section-heading h2 {

        font-size: 38px;
    }

    .category-grid {

        grid-template-columns: 1fr;
    }

    .category-card {

        flex-direction: column;
    }

    .category-img {
        width: 100%;
        height: 220px;
        border-bottom: 1px solid #eee;
    }

    .category-content {

        width: 100%;
    }

    .category-content h3 {

        font-size: 26px;
    }
}

/* Mobile spacing: keep hero text size consistent (remove tiny-shrink overrides) */
@media(max-width: 576px){
    .product-hero{
        padding: 40px 15px 20px !important;
        min-height: auto !important;
    }

    .hero-content{
        padding-left: 0 !important;
    }

    .hero-content h1{
        font-size: 32px !important;
        margin-bottom: 12px !important;
    }

    .hero-text{
        font-size: 16px !important;
        line-height: 1.6 !important;
        margin-bottom: 18px !important;
        max-width: 420px !important;
    }

    .hero-line{
        width: 60px !important;
        height: 3px !important;
        margin-bottom: 18px !important;
    }
}


/* =========================
   FINAL PRODUCT PAGE OVERRIDES
========================= */

.product-hero{
    background:
        radial-gradient(circle at top right, rgba(244,122,32,0.18), transparent 25%),
        linear-gradient(135deg, #edf7ff 0%, #dceffd 56%, #eef7ff 100%) !important;
    border-bottom:1px solid rgba(15,92,149,0.08);
}

/* Ensure product hero text stays centered vertically/horizontally */
.product-hero .hero-container,
.product-hero .product-container{
    display:flex;
    align-items:center;
    justify-content:center;
}

.product-hero .product-content,
.product-hero .hero-content{
    margin:0 auto;
    text-align:center;
}


.product-hero::after{
    opacity:0.18 !important;
}

.hero-content h1,
.hero-content h1 span,
.hero-text{
    color:#ffffff !important;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
}

.hero-line{
    background:linear-gradient(to right, #1769c6, #f47a20) !important;
}

.hero-btn{
    border-radius:999px !important;
}

.hero-image img{
    filter:drop-shadow(0 24px 42px rgba(18,63,103,0.14)) !important;
}

.category-section{
    background:linear-gradient(180deg, #f7fbfe 0%, #eef6fb 100%);
}

.category-grid{
    gap:24px;
}

.category-card{
    height:auto;
    border:1px solid rgba(15,92,149,0.08);
    box-shadow:0 16px 30px rgba(18,63,103,0.07);
}

.category-img{
    position:relative;
    height:250px;
    padding:18px;
    background:linear-gradient(180deg, #ffffff 0%, #f5fafe 100%);
}

.category-img img{
    object-fit:contain;
    width:100%;
    height:100%;
}

.category-content{
    position:relative;
    background:#fff;
    padding:18px 18px 20px;
}

.category-content h3{
    color:#223752;
    min-height:unset;
    margin-bottom:4px;
}

.category-content p{
    color:#64748b;
    margin-bottom:0;
    line-height:1.2;
}

.category-content p a{
    margin-top:6px;
    background:#edf5ff;
    border-color:#d8e9fb;
    color:#1769c6;
}

.category-content p a:hover{
    background:var(--brand-orange);
    border-color:var(--brand-orange);
    color:#fff !important;
}

@media(max-width:768px){
    .category-img{
        height:210px;
    }

    .category-content h3{
        font-size:20px;
        min-height:auto;
    }
}

/* =========================
   FINAL PRODUCT HERO VISIBILITY FIX
========================= */

.product-hero{
    background:
        linear-gradient(rgba(0, 0, 0, 0.1), rgba(7, 9, 10, 0.1)),
        url('../images/product-herobg.png') center/cover no-repeat !important;
}

.product-hero .product-overlay{
    background:
        radial-gradient(circle at 72% 30%, rgba(244,122,32,0.14) 0%, transparent 42%),
        radial-gradient(circle at 18% 24%, rgba(253, 253, 254, 0.1) 0%, transparent 34%) !important;
}

.product-hero .product-content h1,
.product-hero .product-content p{
    color:#ffffff !important;
    font-weight: 700 !important;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6) !important;
    text-shadow: none !important;
}

.product-hero.home-hero .product-tag {
    color:#ffffff !important;
   
    font-size: 14px !important;
    font-weight: 700 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
    text-shadow: none !important;
}

.product-hero .product-tag{
    background:rgba(255,255,255,0.34) !important;
}

/* Centering and Enlarging Product Hero Text */
.product-hero .product-content {
    max-width: 1000px !important; /* Allow container to grow for larger text */
    text-align: center !important;
}

.product-hero .product-content h1 {
    font-size: 28px !important;
    color: #ffffff !important;
}

.product-hero .product-content p {
    font-size: 21px !important;
    max-width: 850px !important; /* Wider paragraph box */
    margin-left: auto !important; /* Centers the block */
    margin-right: auto !important;
    shadow: 0 4px 15px rgba(0, 0, 0, 0.6) !important;
    text-shadow: black !important;
}

.product-hero .product-buttons {
    justify-content: center !important; /* Centers the action buttons */
}
