/*
=========================================================
 GATHIMAINI PHARMACY DESIGN SYSTEM
 Version: 1.0
=========================================================
*/

/*=========================================================
BRAND VARIABLES
=========================================================*/

:root{

    --gmp-primary:#F58221;
    --gmp-secondary:#F7F3BB;

    --gmp-black:#000000;
    --gmp-white:#ffffff;

    --gmp-body:#444444;

    --gmp-border:#ececec;

    --gmp-radius:18px;
    --gmp-radius-sm:10px;

    --gmp-shadow:
        0 12px 35px rgba(0,0,0,.08);

    --gmp-transition:.35s ease;

    --gmp-max-width:1200px;

}

/*=========================================================
RESET
=========================================================*/

*,
*::before,
*::after{

    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;

}

.gmp-page{

    color:var(--gmp-body);

    line-height:1.8;

    font-size:16px;

}

.gmp-page img{

    max-width:100%;

    height:auto;

}

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

.gmp-container{

    width:min(92%, var(--gmp-max-width));

    margin:auto;

}

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

.gmp-section{

    padding:90px 0;

}

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

.gmp-hero{

    background:var(--gmp-secondary);

    padding:110px 20px;

    text-align:center;

}

.gmp-badge{

    display:inline-block;

    background:rgba(245,130,33,.15);

    color:var(--gmp-primary);

    padding:10px 22px;

    border-radius:40px;

    text-transform:uppercase;

    font-size:13px;

    letter-spacing:1px;

    font-weight:700;

}

.gmp-page-title{

    font-size:54px;

    margin:20px 0;

    color:var(--gmp-black);

    line-height:1.2;

}

.gmp-page-intro{

    max-width:760px;

    margin:auto;

    font-size:19px;

}

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

.gmp-btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:10px;

    padding:15px 30px;

    min-width:190px;

    min-height:56px;

    background:var(--gmp-primary);

    color:#ffffff !important;

    font-size:17px !important;

    font-weight:700 !important;

    line-height:1 !important;

    font-family:inherit !important;

    text-decoration:none !important;

    white-space:nowrap;

    border:none;

    border-radius:40px;

    cursor:pointer;

    transition:var(--gmp-transition);

}

.gmp-btn:hover{

    background:#000;

    color:#fff !important;

}

.gmp-btn i{

    font-size:18px !important;

    color:#fff !important;

}

.gmp-btn:hover{

    background:#000;

    color:#fff;

    transform:translateY(-3px);

}

.gmp-btn-outline{

    background:#fff;

    color:var(--gmp-primary);

    border:2px solid var(--gmp-primary);

}

.gmp-btn-outline:hover{

    background:var(--gmp-primary);

    color:#fff;

}

.gmp-hero-actions{

    margin-top:40px;

    display:flex;

    justify-content:center;

    flex-wrap:wrap;

    gap:15px;

}

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

.gmp-card{

    display:flex;

    gap:22px;

    background:#fff;

    border-radius:var(--gmp-radius);

    padding:30px;

    margin-bottom:25px;

    box-shadow:var(--gmp-shadow);

    transition:var(--gmp-transition);

}

.gmp-card:hover{

    transform:translateY(-6px);

}

.gmp-card-icon{

    width:65px;

    height:65px;

    background:var(--gmp-secondary);

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    flex-shrink:0;

}

.gmp-card-icon i{

    font-size:24px;

    color:var(--gmp-primary);

}

.gmp-card h3{

    margin:0 0 10px;

    color:#000;

    font-size:22px;

}

.gmp-card p{

    margin:0;

}

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

.gmp-form-card{

    background:#fff;

    padding:50px;

    border-radius:var(--gmp-radius);

    box-shadow:var(--gmp-shadow);

}

.gmp-form-card h2{

    text-align:center;

    margin-bottom:10px;

    color:#000;

}

.gmp-form-card p{

    text-align:center;

    margin-bottom:35px;

}

.gmp-form-grid{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:25px;

    margin-bottom:25px;

}

.gmp-form label{

    display:block;

    margin-bottom:8px;

    font-weight:600;

    color:#000;

}

.gmp-form input,
.gmp-form textarea{

    width:100%;

    padding:15px;

    border:2px solid var(--gmp-border);

    border-radius:var(--gmp-radius-sm);

    font-size:16px;

    transition:var(--gmp-transition);

    outline:none;

}

.gmp-form input:focus,
.gmp-form textarea:focus{

    border-color:var(--gmp-primary);

}

/*=========================================================
TYPOGRAPHY
=========================================================*/

.gmp-page h1,
.gmp-page h2,
.gmp-page h3,
.gmp-page h4{

    color:#000;

    font-weight:700;

}

.gmp-page a{

    color:var(--gmp-primary);

    transition:var(--gmp-transition);

}

.gmp-page a:hover{

    color:#000;

}

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

@media(max-width:992px){

    .gmp-page-title{

        font-size:42px;

    }

    .gmp-form-grid{

        grid-template-columns:1fr;

    }

}

@media(max-width:768px){

    .gmp-section{

        padding:70px 0;

    }

    .gmp-page-title{

        font-size:34px;

    }

    .gmp-page-intro{

        font-size:17px;

    }

    .gmp-form-card{

        padding:35px;

    }

}

@media(max-width:480px){

    .gmp-card{

        flex-direction:column;

        text-align:center;

    }

    .gmp-card-icon{

        margin:auto;

    }

}

/*=========================================================
ALERTS
=========================================================*/

.gmp-alert{

    padding:18px 25px;

    border-radius:12px;

    margin-bottom:25px;

    font-weight:600;

}

.gmp-success{

    background:#e8f8ee;

    color:#146c2e;

    border-left:5px solid #28a745;

}

.gmp-error{

    background:#fdeaea;

    color:#a12622;

    border-left:5px solid #dc3545;

}

/*====================================================
 GATHIMAINI TRUST CARDS
====================================================*/

.gmp-trust-wrapper{
    margin:25px 0;
}

.gmp-trust-grid{

    display:grid;

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

    gap:15px;

}

.gmp-trust-card{

    background:#F7F3BB;

    border-radius:14px;

    padding:14px 16px;

    border-top:4px solid #F58221;

    transition:.3s;

}

.gmp-trust-card:hover{

    transform:translateY(-4px);

    box-shadow:0 10px 20px rgba(0,0,0,.08);

}

.gmp-trust-content{

    display:flex;

    align-items:center;

    gap:14px;

}

.gmp-trust-icon{

    width:48px;

    height:48px;

    border-radius:50%;

    background:#F58221;

    display:flex;

    align-items:center;

    justify-content:center;

    flex-shrink:0;

}

.gmp-trust-icon i{

    color:#fff;

    font-size:18px;

}

.gmp-trust-text h3{

    margin:0;

    font-size:17px;

    font-weight:700;

    line-height:1.2;

}

.gmp-trust-text p{

    margin:3px 0 0;

    font-size:13px;

    color:#555;

    line-height:1.3;

}

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

@media(max-width:992px){

.gmp-trust-grid{

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

}

}

@media(max-width:576px){

.gmp-trust-grid{

grid-template-columns:1fr;

}

}

/*====================================================
SCROLLABLE CATEGORY MENU
====================================================*/

#menu-shop-categories{

    overflow-y:auto;

    overflow-x:hidden;

    scrollbar-width:thin;
    
    scrollbar-color:#F58221 #f5f5f5;

}

#menu-shop-categories::-webkit-scrollbar{

    width:6px;

}

#menu-shop-categories::-webkit-scrollbar-track{

    background:#f5f5f5;

}

#menu-shop-categories::-webkit-scrollbar-thumb{

    background:#F58221;

    border-radius:20px;

}

#menu-shop-categories::-webkit-scrollbar-thumb:hover{

    background:#d96d00;

}

/*====================================================
MOBILE SCROLLABLE CATEGORIES OVERLAY FIX
====================================================*/
@media (max-width: 991px) {
    /* Targets the mobile structure for your theme's categories dropdown */
    .yamm-category-widgets-wrapper,
    .category-toggle-box ul,
    #menu-shop-categories {
        max-height: 350px !important; /* Prevents it from bleeding down into the trust cards */
        overflow-y: auto !important;   /* Forces the scrollbar to appear */
        overflow-x: hidden !important;
    }
}

/*====================================================
MOBILE TRUST CARDS
====================================================*/

@media (max-width:767px){

    .gmp-trust-grid{

        display:grid;
        grid-template-columns:repeat(2,1fr);
        gap:10px;

    }

    .gmp-trust-card{

        display:flex;
        align-items:center;
        padding:14px 10px;
        min-height:unset;

    }

    .gmp-trust-icon{

        width:58px;
        height:58px;
        font-size:24px;

    }

}

/*====================================================
PRODUCT WIDGET BUTTON ALIGNMENT & TITLE TRUNCATION
====================================================*/
/* Force product titles to match perfectly on exactly 2 lines maximum */
.featured-stories-title, 
.product .woocommerce-loop-product__title,
.acme-product-title a,
.acme-product-title {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important; /* Limits the title text to exactly 2 lines */
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    height: 44px !important; /* Standardized uniform height for 2 lines */
    margin-bottom: 10px !important;
}

/* Ensure the product item wrapper uses flex layout to pin buttons to the bottom */
.acme-col-posts .single-item,
ul.products li.product {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    height: 100% !important;
}

/*====================================================
ROUNDED BUTTONS FOR HOME PAGE PRODUCTS (FORCE FIX)
====================================================*/
/* Targets all buttons inside the featured and sale product grids */
.single-item a,
.single-item button,
.product a.button,
.product button,
a[href*="wa.me"],
a[href*="whatsapp"],
.add_to_cart_button {
    border-radius: 8px !important; /* Change to 40px if you want pill-shaped buttons */
}

/*====================================================
    Insurance Partners Marquee
====================================================*/

.insurance-strip{
    float:right;
    width:32%;
    height:48px;
    display:flex;
    align-items:center;
    overflow:hidden;
    background:#f7f3bb;
    border-left:4px solid #f58221;
    position:relative;
    box-sizing:border-box;
}

/* soft fade on left edge */
.insurance-strip:before{
    content:'';
    position:absolute;
    left:85px;
    top:0;
    width:25px;
    height:100%;
    background:linear-gradient(to right,#f7f3bb 0%,rgba(247,243,187,0)100%);
    z-index:2;
    pointer-events:none;
}

/* soft fade on right edge */
.insurance-strip:after{
    content:'';
    position:absolute;
    right:0;
    top:0;
    width:25px;
    height:100%;
    background:linear-gradient(to left,#f7f3bb 0%,rgba(247,243,187,0)100%);
    z-index:2;
    pointer-events:none;
}

.insurance-label{
    flex:0 0 auto;
    width:85px;
    text-align:center;
    font-size:12px;
    font-weight:700;
    color:#222;
    z-index:5;
}

.insurance-label i{
    color:#f58221;
}

.insurance-marquee{
    flex:1;
    overflow:hidden;
    position:relative;
}

.insurance-track{
    display:flex;
    align-items:center;
    width:max-content;
    animation:insurance-scroll 42s linear infinite;
}

.insurance-track span{

    display:flex;
    align-items:center;
    justify-content:center;

    white-space:nowrap;

    padding:0 18px;

    font-size:13px;
    font-weight:700;

    color:#444;

    letter-spacing:.5px;

}

.insurance-strip:hover .insurance-track{
    animation-play-state:paused;
}

@keyframes insurance-scroll{

    from{
        transform:translateX(0);
    }

    to{
        transform:translateX(-50%);
    }

}

.insurance-track img{

    height:32px;
    width:auto;

    margin:0 20px;

    object-fit:contain;

    flex-shrink:0;

    transition:.3s ease;

}

.insurance-track img:hover{

    transform:scale(1.08);

}

/*==================================================
    Insurance Responsive Layout
==================================================*/

/* Mobile copy hidden by default */

.insurance-mobile{
    display:none;
}

/* Desktop strip visible */

.acmethemes-nav > .insurance-strip{
    display:flex;
}

/* Mobile */

@media (max-width:768px){

    /* hide desktop strip */

    /* Hide every desktop insurance strip */

    .insurance-strip{
        display:none !important;
    }

    /* Show only the dedicated mobile strip */

    .insurance-mobile .insurance-strip{
        display:flex !important;
    }

    /* show mobile strip */

    .insurance-mobile{
        display:block;
        width:100%;
        background:#fff;
        clear:both;
    }

    .insurance-mobile .insurance-strip{

        float:none;

        width:100%;

        height:50px;

        margin:0;

        border-left:none;

        border-top:2px solid #f58221;

    }

}

/*====================================================
CATEGORY ACCORDION (Desktop & Mobile Fix)
====================================================*/

/* Hide all submenus initially across all screen sizes */
#menu-shop-categories .sub-menu,
.yamm-category-widgets-wrapper .sub-menu {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: static !important; /* Forces desktop to act as in-line accordion instead of floating dropdown */
    float: none !important;
    width: 100% !important;
    box-shadow: none !important;
    margin-top: 6px !important;
    margin-left: 15px !important;
    border-left: 2px solid #F58221 !important;
}

/* Force expanded sub-menu visibility when open */
#menu-shop-categories .menu-item-has-children.open > .sub-menu,
.yamm-category-widgets-wrapper .menu-item-has-children.open > .sub-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Indent child items */
#menu-shop-categories .sub-menu li {
    padding-left: 8px !important;
}

/* Rotate indicator arrow when open */
#menu-shop-categories .menu-item-has-children.open > a::after,
#menu-shop-categories .menu-item-has-children.open > .angle-down {
    transform: rotate(90deg) !important;
    transition: 0.3s ease !important;
}

