/* ==========================================
   MEDICAR NOW - PRODUCTS PAGE
   CENTERED LAYOUT / CLEAN DESIGN
   ========================================== */

body.products-page {
    --brand-red: #ED151C;
    --brand-green: #12B34B;
    --page-dark: #090F17;
    --card-dark: #121B25;

    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 100vh;
    margin: 0 !important;
    padding: 0 !important;

    background-color: #090F17 !important;
    background-image:
        linear-gradient(rgba(7, 12, 19, 0.76),
            rgba(7, 12, 19, 0.88)),
        url("../images/products-bg.jpg") !important;
    background-size: cover !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;

    color: #FFFFFF;
    font-family: "Inter", Arial, sans-serif;
    overflow-x: hidden;
}

body.products-page *,
body.products-page *::before,
body.products-page *::after {
    box-sizing: border-box;
}

/* ==========================================
   HEADER
   ========================================== */

body.products-page header.site-header {
    position: relative !important;
    inset: auto !important;
    float: none !important;
    clear: both !important;

    display: block !important;
    width: min(1380px, calc(100% - 40px)) !important;
    max-width: 1380px !important;
    height: auto !important;
    min-height: 0 !important;

    margin: 16px auto 22px !important;
    padding: 0 !important;

    background: rgba(14, 21, 30, 0.97) !important;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.20);
}

body.products-page .site-header-inner {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;

    width: 100% !important;
    max-width: none !important;
    min-height: 78px;
    margin: 0 auto !important;
    padding: 11px 24px;
    gap: 24px;
}

body.products-page .site-logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-shrink: 0;
    gap: 12px;
    min-width: 0;
    text-decoration: none;
}

body.products-page .site-logo img {
    display: block;
    width: 58px !important;
    height: 58px !important;
    min-width: 58px;
    max-width: 58px !important;
    max-height: 58px !important;
    object-fit: contain;
}

body.products-page .brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.25;
}

body.products-page .brand-text b {
    color: #ED151C !important;
    font-size: 21px;
    font-weight: 800;
}

body.products-page .brand-text small {
    color: #E5EBF0 !important;
    font-size: 11px;
}

body.products-page .brand-text em {
    color: #BFCAD5 !important;
    font-size: 11px;
    font-style: normal;
}

/* NAVIGATION */

body.products-page .site-nav {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;

    width: auto !important;
    margin: 0 0 0 auto !important;
    gap: 10px;
}

body.products-page .site-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    padding: 11px 15px;

    color: #E7ECF2;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 11px;

    transition: background 0.2s, color 0.2s;
}

body.products-page .site-nav a:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.08);
}

body.products-page .site-nav a.active {
    color: #FFFFFF;
    background: rgba(237, 21, 28, 0.20);
}

body.products-page .site-nav .cart-link {
    gap: 6px;
}

body.products-page #language-btn {
    width: auto;
    padding: 11px 17px;
    background: #ED151C;
    color: #FFFFFF;
    border: 0;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

body.products-page #language-btn:hover {
    background: #D10F17;
}

/* ==========================================
   MAIN CONTENT - CENTERED
   ========================================== */

body.products-page main.products-page {
    position: relative !important;
    inset: auto !important;
    float: none !important;
    clear: both !important;

    display: block !important;
    width: min(1380px, calc(100% - 40px)) !important;
    max-width: 1380px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;

    margin: 0 auto 70px !important;
    padding: 0 !important;

    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
}

/* ==========================================
   PRODUCTS HERO BANNER
   ========================================== */

body.products-page .products-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;

    width: 100% !important;
    max-width: 100% !important;
    min-height: 305px;
    margin: 0 0 13px !important;
    padding: 38px 55px;
    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 22px;
    text-align: left;

    background-image:
        linear-gradient(90deg,
            rgba(6, 11, 18, 0.90) 0%,
            rgba(6, 11, 18, 0.72) 34%,
            rgba(6, 11, 18, 0.22) 65%,
            rgba(6, 11, 18, 0.02) 100%),
        url("../images/products-banner.jpg") !important;

    background-position: center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;

    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.22);
}

body.products-page .products-header-content {
    position: relative;
    z-index: 2;
    width: min(100%, 550px);
    min-width: 0;
}

body.products-page .products-header .section-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 16px;
    padding: 7px 14px;

    background: rgba(237, 21, 28, 0.18);
    border: 1px solid rgba(237, 21, 28, 0.35);
    border-radius: 30px;

    color: #FF898D;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

body.products-page .products-header h2 {
    margin: 0 0 9px;
    color: #FFFFFF !important;
    font-size: clamp(34px, 4vw, 54px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -1px;
}

body.products-page .products-header p {
    margin: 0 0 23px;
    color: #E2E8EF !important;
    font-size: 15px;
    line-height: 1.5;
}

/* ==========================================
   SEARCH INSIDE BANNER
   ========================================== */

body.products-page .products-header .products-search-field {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 520px;
    min-width: 0;
}

body.products-page .products-search-field svg {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    width: 19px;
    height: 19px;
    color: #B7C4D1;
    pointer-events: none;
    z-index: 2;
}

body.products-page #search-input {
    display: block;
    width: 100%;
    height: 46px !important;
    min-height: 46px !important;
    margin: 0;
    padding: 0 17px 0 47px !important;

    background: rgba(8, 15, 24, 0.84) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.26) !important;
    border-radius: 25px !important;

    font-family: inherit;
    font-size: 13px !important;
    outline: none;
    backdrop-filter: blur(8px);

    transition: border-color 0.2s, box-shadow 0.2s;
}

body.products-page #search-input::placeholder {
    color: #A8B6C5;
}

body.products-page #search-input:focus {
    border-color: #ED151C !important;
    box-shadow: 0 0 0 3px rgba(237, 21, 28, 0.18);
}

/* ==========================================
   CATEGORY FILTER
   ========================================== */

body.products-page .products-controls {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;

    width: 100% !important;
    max-width: 100% !important;
    min-height: 54px;
    margin: 0 0 14px !important;
    padding: 7px 10px !important;
    gap: 10px;

    background: #101925 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 13px;
    box-shadow: none !important;
}

body.products-page .products-category-field {
    width: 210px;
    max-width: 100%;
    min-width: 0;
}

body.products-page #category-filter {
    display: block;
    width: 100%;
    height: 39px !important;
    min-height: 39px !important;
    margin: 0;
    padding: 0 13px;

    background: #0B121B !important;
    color: #FFFFFF !important;
    border: 1px solid #34404D !important;
    border-radius: 9px !important;

    font-family: inherit;
    font-size: 12px !important;
    cursor: pointer;
}

body.products-page #category-filter:focus {
    border-color: #ED151C !important;
    outline: none;
}

body.products-page #sort-products {
    display: none !important;
}

/* ==========================================
   PRODUCTS GRID - CENTERED
   ========================================== */

body.products-page #products-container,
body.products-page #products-container.products-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;

    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;

    margin: 0 auto !important;
    padding: 0 !important;
    gap: 14px !important;

    align-items: stretch;
    justify-content: stretch !important;
    justify-items: stretch !important;

    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

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

body.products-page #products-container .product-card {
    display: flex;
    flex-direction: column;

    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;

    padding: 12px;
    gap: 9px;

    background: #121B25 !important;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 16px;
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.18);

    text-align: left;
    overflow: hidden;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

body.products-page #products-container .product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(237, 21, 28, 0.55);
    box-shadow: 0 13px 30px rgba(0, 0, 0, 0.28);
}

/* PRODUCT IMAGES */

body.products-page #products-container .product-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 145px;
    padding: 11px;

    background: #F4F6F8 !important;
    border-radius: 12px;
    overflow: hidden;
}

body.products-page #products-container .product-image {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: contain;
    transition: transform 0.25s ease;
}

body.products-page #products-container .product-card:hover .product-image {
    transform: scale(1.05);
}

/* PRODUCT CATEGORY */

body.products-page #products-container .product-category {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    max-width: 100%;
    padding: 5px 10px;

    background: rgba(18, 179, 75, 0.13);
    color: #55DC8B !important;
    border-radius: 20px;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* PRODUCT INFORMATION */

body.products-page #products-container .product-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    gap: 7px;
}

body.products-page #products-container .product-name {
    margin: 0;
    color: #FFFFFF !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

body.products-page #products-container .product-description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;

    margin: 0;
    overflow: hidden;
    color: #A6B3C0 !important;

    font-size: 11px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

body.products-page #products-container .product-price {
    margin: auto 0 0;
    color: #FFFFFF !important;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;
}

body.products-page #products-container .product-stock {
    margin: 0;
    font-size: 10px;
    font-weight: 600;
}

body.products-page #products-container .product-stock.in-stock {
    color: #50D783 !important;
}

body.products-page #products-container .product-stock.out-of-stock {
    color: #FF777B !important;
}

/* ADD TO CART */

body.products-page #products-container .add-to-cart-btn {
    display: block;
    width: 100%;
    min-height: 39px;
    margin-top: auto;
    padding: 9px 10px;

    background: #ED151C !important;
    color: #FFFFFF !important;
    border: 0;
    border-radius: 9px;

    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

body.products-page #products-container .add-to-cart-btn:hover:not(:disabled) {
    background: #C91018 !important;
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(237, 21, 28, 0.25);
}

body.products-page #products-container .add-to-cart-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

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

@media (max-width: 1100px) {

    body.products-page #products-container,
    body.products-page #products-container.products-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 850px) {
    body.products-page .site-header-inner {
        flex-wrap: wrap;
        justify-content: center;
    }

    body.products-page .site-nav {
        justify-content: center;
        width: 100% !important;
        margin: 0 !important;
    }

    body.products-page .products-header {
        min-height: 285px;
        padding: 30px;
    }

    body.products-page #products-container,
    body.products-page #products-container.products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 600px) {

    body.products-page header.site-header,
    body.products-page main.products-page {
        width: calc(100% - 24px) !important;
    }

    body.products-page header.site-header {
        margin: 10px auto 16px !important;
    }

    body.products-page .site-header-inner {
        padding: 12px;
        gap: 12px;
    }

    body.products-page .site-logo img {
        width: 46px !important;
        height: 46px !important;
        min-width: 46px;
        max-width: 46px !important;
        max-height: 46px !important;
    }

    body.products-page .brand-text b {
        font-size: 16px;
    }

    body.products-page .brand-text small {
        font-size: 9px;
    }

    body.products-page .brand-text em {
        font-size: 10px;
    }

    body.products-page .site-nav {
        gap: 5px;
    }

    body.products-page .site-nav a,
    body.products-page #language-btn {
        padding: 8px 10px;
        font-size: 11px;
    }

    body.products-page .products-header {
        min-height: 280px;
        padding: 25px 20px;
        border-radius: 16px;

        background-image:
            linear-gradient(90deg,
                rgba(6, 11, 18, 0.95),
                rgba(6, 11, 18, 0.72)),
            url("../images/products-banner.jpg") !important;

        background-position: 60% center !important;
    }

    body.products-page .products-header .section-label {
        font-size: 9px;
        letter-spacing: 0.4px;
    }

    body.products-page .products-header h2 {
        font-size: 34px;
    }

    body.products-page .products-header p {
        font-size: 13px;
    }

    body.products-page #search-input {
        height: 43px !important;
        min-height: 43px !important;
    }

    body.products-page .products-controls {
        min-height: 50px;
        padding: 6px 8px !important;
    }

    body.products-page .products-category-field {
        width: 100%;
    }

    body.products-page #products-container,
    body.products-page #products-container.products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    body.products-page #products-container .product-card {
        padding: 9px;
        gap: 8px;
    }

    body.products-page #products-container .product-image-wrapper {
        height: 120px;
        padding: 8px;
    }

    body.products-page #products-container .product-name {
        font-size: 12px;
    }

    body.products-page #products-container .product-price {
        font-size: 12px;
    }

    body.products-page #products-container .add-to-cart-btn {
        font-size: 11px;
    }
}

@media (max-width: 360px) {

    body.products-page #products-container,
    body.products-page #products-container.products-grid {
        grid-template-columns: 1fr !important;
    }
}

/* =====================================================
   MEDICAR NOW - RESTORE ORIGINAL HOME PAGE
   Home page only - Products and Cart remain untouched
   ===================================================== */

body.home-page {
    --primary: #ED151C;
    --primary-dark: #B90F16;
    --accent: #12B34B;
    --surface: #151A21;
    --border: #2A323C;

    display: block;
    min-height: 100vh;
    margin: 0;
    padding: 0;

    background-color: #0B0E12 !important;
    background-image:
        linear-gradient(rgba(7, 10, 16, 0.68),
            rgba(7, 10, 16, 0.86)),
        url("../images/home-bg.jpg") !important;

    background-size: cover !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;

    color: #F1F4F7;
    font-family: "Inter", "Cairo", Arial, sans-serif;
    overflow-x: hidden;
}

body.home-page *,
body.home-page *::before,
body.home-page *::after {
    box-sizing: border-box;
}

/* ================= HEADER ================= */

.home-page .site-header {
    position: sticky;
    top: 10px;
    z-index: 100;

    width: min(1320px, calc(100% - 32px));
    margin: 10px auto 20px;

    background: rgba(13, 19, 27, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;

    -webkit-backdrop-filter: blur(20px) saturate(145%);
    backdrop-filter: blur(20px) saturate(145%);

    box-shadow:
        0 10px 32px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.home-page .site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    max-width: 1280px;
    min-height: 66px;

    margin: 0 auto;
    padding: 6px 20px;
    gap: 18px;
}

.home-page .site-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 10px;
    text-decoration: none;
}

.home-page .site-logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 2px 7px rgba(237, 21, 28, 0.25));
}

.home-page .brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.home-page .brand-text b {
    color: #ED151C;
    font-size: 1.22rem;
    font-weight: 800;
    letter-spacing: 0.7px;
}

.home-page .brand-text small {
    color: #E5EBF0;
    font-size: 0.70rem;
}

.home-page .brand-text em {
    color: #BFCAD5;
    font-size: 0.78rem;
    font-style: normal;
}

.home-page .site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    margin-left: auto;
}

.home-page .site-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 8px 13px;
    border-radius: 10px;

    color: #E7ECF2;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;

    transition: background 0.2s, color 0.2s;
}

.home-page .site-nav a:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.08);
}

.home-page .site-nav a.active {
    color: #FFFFFF;
    background: #ED151C;
    box-shadow: 0 4px 13px rgba(237, 21, 28, 0.24);
}

.home-page #language-btn {
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #FFFFFF;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

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

.home-page .hero-section {
    position: relative;
    width: min(1180px, calc(100% - 40px));
    min-height: 350px;
    margin: 0 auto 30px;
    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.home-page .hero-slides-container {
    position: relative;
    width: 100%;
    min-height: 350px;
}

.home-page .hero-slide {
    position: relative;
    width: 100%;
    min-height: 350px;

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.home-page .hero-slide:not(.is-active) {
    display: none;
}

.home-page .hero-slide.is-active {
    display: flex;
    align-items: center;
}

.home-page .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            rgba(5, 10, 17, 0.86),
            rgba(5, 10, 17, 0.48),
            rgba(5, 10, 17, 0.08));
}

.home-page .hero-content {
    position: relative;
    z-index: 2;

    width: min(100%, 650px);
    padding: 40px 55px;
    text-align: left;
}

.home-page .hero-label {
    display: inline-block;
    margin-bottom: 14px;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.home-page .hero-content h1 {
    margin: 0 0 15px;
    color: #FFFFFF;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.15;
}

.home-page .hero-content p {
    margin: 0 0 25px;
    color: #E1E7EE;
    font-size: 14px;
    line-height: 1.7;
}

.home-page .hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px 25px;
    background: #ED151C;
    border-radius: 11px;

    color: #FFFFFF;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;

    transition: transform 0.2s, background 0.2s;
}

.home-page .hero-btn:hover {
    background: #C91018;
    transform: translateY(-2px);
}

.home-page .hero-slider-controls {
    position: absolute;
    z-index: 5;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    align-items: center;
    gap: 14px;
}

.home-page .hero-arrow {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.35);
    color: #FFFFFF;
    cursor: pointer;
}

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

.home-page .features-section {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    width: min(1180px, calc(100% - 40px));
    margin: 0 auto 40px;
    gap: 16px;
}

.home-page .feature-item {
    padding: 24px 18px;
    background: rgba(21, 26, 33, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 16px;
    text-align: center;
    backdrop-filter: blur(8px);
}

.home-page .feature-icon {
    display: block;
    margin-bottom: 10px;
    font-size: 28px;
}

.home-page .feature-item h3 {
    margin: 0 0 8px;
    color: #FFFFFF;
    font-size: 15px;
}

.home-page .feature-item p {
    margin: 0;
    color: #AAB4BF;
    font-size: 12px;
    line-height: 1.6;
}

/* ================= HOME PRODUCTS ================= */

.home-page .home-products-section {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto 42px;
}

.home-page .section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.home-page .section-label {
    display: inline-block;
    margin-bottom: 7px;
    color: #12B34B;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.7px;
}

.home-page .section-heading h2 {
    margin: 0;
    color: #FFFFFF;
    font-size: clamp(20px, 2.5vw, 27px);
    font-weight: 800;
}

.home-page .section-link {
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.home-page .section-link:hover {
    color: #ED151C;
}

.home-page .home-products-section .products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 16px;
}

.home-page .home-products-section .product-card {
    display: flex;
    flex-direction: column;

    min-width: 0;
    padding: 12px;
    gap: 9px;

    background: rgba(21, 26, 33, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 15px;

    color: #FFFFFF;
    overflow: hidden;

    transition: transform 0.2s, border-color 0.2s;
}

.home-page .home-products-section .product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(237, 21, 28, 0.50);
}

.home-page .product-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 165px;
    padding: 12px;

    background: #FFFFFF;
    border-radius: 11px;
    overflow: hidden;
}

.home-page .product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.home-page .home-products-section .product-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.home-page .home-products-section .product-name {
    margin: 0;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

.home-page .home-products-section .product-description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;

    margin: 0;
    overflow: hidden;
    color: #AAB4BF;
    font-size: 11px;
    line-height: 1.5;
}

.home-page .home-products-section .product-price {
    margin-top: auto;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 800;
}

.home-page .home-products-section .add-to-cart-btn {
    width: 100%;
    margin-top: auto;
    padding: 10px 12px;

    background: linear-gradient(135deg, #ED151C, #BD1017);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 10px;

    color: #FFFFFF;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;

    transition: transform 0.2s, box-shadow 0.2s;
}

.home-page .home-products-section .add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 17px rgba(237, 21, 28, 0.25);
}

.home-page .add-to-cart-btn:disabled {
    opacity: 0.48;
    cursor: not-allowed;
}

.home-page .offer-badge {
    position: absolute;
    top: 9px;
    left: 9px;
    z-index: 2;

    padding: 5px 9px;
    background: #ED151C;
    border-radius: 999px;

    color: #FFFFFF;
    font-size: 10px;
    font-weight: 800;
}

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

.home-page .main-footer {
    padding: 28px max(5%, calc((100% - 1180px) / 2)) 13px;
    background: rgba(11, 14, 18, 0.95);
    border-top: 2px solid #ED151C;
    color: #FFFFFF;
}

.home-page .main-footer .footer-content {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 24px;
    margin-bottom: 18px;
}

.home-page .footer-brand {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    column-gap: 13px;
    align-items: center;
}

.home-page .footer-logo {
    grid-column: 1;
    grid-row: 1 / 3;

    width: 54px;
    height: 54px;
    margin: 0;
    object-fit: contain;
}

.home-page .footer-brand h2 {
    margin: 0 0 4px;
    color: #FFFFFF;
    font-size: 16px;
    line-height: 1.4;
}

.home-page .footer-brand p {
    margin: 0;
    color: #AAB4BF;
    font-size: 12px;
}

.home-page .footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.home-page .footer-links h3,
.home-page .footer-contact h3 {
    margin: 0 0 8px;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 800;
}

.home-page .footer-links a,
.home-page .footer-contact-item {
    color: #CDD5DE;
    font-size: 12px;
    text-decoration: none;
}

.home-page .footer-links a:hover,
.home-page .footer-contact-item:hover {
    color: #FFFFFF;
}

.home-page .footer-contact-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
}

.home-page .footer-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}

.home-page .footer-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;
    flex-shrink: 0;

    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
}

.home-page .footer-contact-icon svg {
    width: 16px;
    height: 16px;
}

.home-page .footer-bottom {
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    text-align: center;
    color: #AAB4BF;
    font-size: 11px;
}

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

@media (max-width: 1000px) {
    .home-page .home-products-section .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .home-page .site-header {
        top: 6px;
        width: calc(100% - 20px);
        margin: 6px auto 16px;
    }

    .home-page .site-header-inner {
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 7px 12px;
        gap: 7px;
    }

    .home-page .site-nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        margin: 0;
    }

    .home-page .hero-section,
    .home-page .features-section,
    .home-page .home-products-section {
        width: calc(100% - 28px);
    }

    .home-page .main-footer .footer-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-page .home-products-section .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    body.home-page {
        background-attachment: scroll !important;
        background-position: center center !important;
    }

    .home-page .site-logo img {
        width: 42px;
        height: 42px;
    }

    .home-page .brand-text b {
        font-size: 1rem;
    }

    .home-page .brand-text small {
        font-size: 0.62rem;
    }

    .home-page .brand-text em {
        font-size: 0.68rem;
    }

    .home-page .site-nav {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .home-page .site-nav a {
        padding: 7px 10px;
        font-size: 0.78rem;
        white-space: nowrap;
    }

    .home-page .hero-section,
    .home-page .hero-slides-container,
    .home-page .hero-slide {
        min-height: 320px;
    }

    .home-page .hero-content {
        padding: 35px 24px;
    }

    .home-page .hero-content h1 {
        font-size: 30px;
    }

    .home-page .features-section {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .home-page .home-products-section .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .home-page .product-image-wrapper {
        height: 120px;
    }

    .home-page .main-footer .footer-content {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .home-page .footer-contact-list {
        gap: 10px 14px;
    }

    .home-page .footer-contact-item {
        font-size: 11px;
    }
}

@media (max-width: 360px) {
    .home-page .home-products-section .products-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================================
   MEDICAR NOW - FINAL HOME FIX
   SPECIAL OFFERS + COMPACT FOOTER
   =================================================== */

/* Space before footer */
body.home-page .home-products-section:last-of-type {
    margin-bottom: 60px !important;
}

/* ================= SPECIAL OFFERS ================= */

body.home-page .offers-section {
    display: block !important;
    width: min(1180px, calc(100% - 40px)) !important;
    max-width: 1180px !important;
    margin: 0 auto 42px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

body.home-page .offers-section .section-heading {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: space-between !important;
    width: 100%;
    margin-bottom: 18px !important;
    gap: 16px;
}

body.home-page .offers-section .section-heading h2 {
    margin: 0 !important;
    color: #fff !important;
    font-size: clamp(20px, 2.5vw, 27px) !important;
    font-weight: 800;
}

body.home-page .offers-section .section-label {
    display: inline-block;
    margin-bottom: 7px;
    color: #12B34B !important;
    font-size: 11px;
    font-weight: 800;
}

body.home-page .offers-section .products-grid,
body.home-page #offers-container {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 16px !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    background: transparent !important;
}

body.home-page #offers-container .product-card {
    position: relative;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 100%;
    margin: 0 !important;
    padding: 12px !important;
    gap: 9px;
    background: rgba(21, 26, 33, 0.94) !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    border-radius: 15px !important;
    overflow: hidden;
    box-shadow: none !important;
    text-align: left;
}

body.home-page #offers-container .product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(237, 21, 28, 0.50) !important;
}

body.home-page #offers-container .product-image-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 165px !important;
    padding: 12px !important;
    background: #fff !important;
    border-radius: 11px !important;
    overflow: hidden;
}

body.home-page #offers-container .product-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

body.home-page #offers-container .product-info {
    display: flex !important;
    flex: 1 !important;
    flex-direction: column !important;
    align-items: flex-start;
    gap: 7px;
    min-width: 0;
}

body.home-page #offers-container .product-name {
    margin: 0 !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 700;
    line-height: 1.45;
}

body.home-page #offers-container .product-description {
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden !important;
    margin: 0 !important;
    color: #AAB4BF !important;
    font-size: 11px !important;
    line-height: 1.5;
}

body.home-page #offers-container .product-price {
    margin-top: auto;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 800;
}

body.home-page #offers-container .add-to-cart-btn {
    display: block !important;
    width: 100% !important;
    margin-top: auto;
    padding: 10px 12px !important;
    background: #ED151C !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 10px !important;
    font-size: 12px !important;
    font-weight: 800;
    cursor: pointer;
}

body.home-page #offers-container .add-to-cart-btn:hover:not(:disabled) {
    background: #C91018 !important;
}

body.home-page #offers-container .offer-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    padding: 5px 9px;
    background: #ED151C;
    color: #fff;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
}

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

body.home-page .main-footer {
    width: 100% !important;
    margin-top: 60px !important;
    padding: 24px max(24px, calc((100% - 1180px) / 2)) 12px !important;
    background: rgba(10, 15, 22, 0.97) !important;
    border-top: 2px solid #ED151C !important;
    color: #fff;
}

body.home-page .main-footer .footer-content {
    display: grid !important;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.7fr) minmax(0, 1.4fr) !important;
    align-items: start !important;
    gap: 55px !important;
    margin: 0 auto 18px !important;
    padding: 0 !important;
    max-width: 1180px;
}

/* Brand column */
body.home-page .footer-brand {
    display: grid !important;
    grid-template-columns: 54px minmax(0, 1fr) !important;
    align-items: center !important;
    column-gap: 13px !important;
    row-gap: 4px !important;
    min-width: 0;
}

body.home-page .footer-logo {
    grid-column: 1 !important;
    grid-row: 1 / 3 !important;
    width: 54px !important;
    height: 54px !important;
    margin: 0 !important;
    object-fit: contain;
}

body.home-page .footer-brand h2 {
    grid-column: 2;
    margin: 0 !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 800;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

body.home-page .footer-brand p {
    grid-column: 2;
    margin: 0 !important;
    color: #AAB4BF !important;
    font-size: 11px !important;
}

/* Quick Links column */
body.home-page .footer-links {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 9px !important;
    min-width: 0;
    padding-left: 24px !important;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

body.home-page .footer-links h3,
body.home-page .footer-contact h3 {
    margin: 0 0 8px !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 800 !important;
}

body.home-page .footer-links a {
    color: #CDD5DE !important;
    font-size: 12px !important;
    text-decoration: none !important;
}

body.home-page .footer-links a:hover {
    color: #fff !important;
}

/* Contact column */
body.home-page .footer-contact {
    display: block !important;
    min-width: 0;
    padding-left: 24px !important;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

body.home-page .footer-contact-list {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 10px 16px !important;
}

body.home-page .footer-contact-item {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    width: auto !important;
    max-width: 100%;
    gap: 8px !important;
    margin: 0 !important;
    color: #CDD5DE !important;
    font-size: 11px !important;
    line-height: 1.4;
    text-decoration: none !important;
}

body.home-page .footer-contact-item:hover {
    color: #fff !important;
    opacity: 1;
    transform: translateY(-1px);
}

body.home-page .footer-contact-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    flex-shrink: 0 !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 8px !important;
}

body.home-page .footer-contact-icon svg {
    width: 16px !important;
    height: 16px !important;
}

body.home-page .footer-bottom {
    max-width: 1180px;
    margin: 0 auto;
    padding: 12px 0 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    text-align: center;
}

body.home-page .footer-bottom p {
    margin: 0 !important;
    color: #AAB4BF !important;
    font-size: 11px !important;
    line-height: 1.6;
}

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

@media (max-width: 1000px) {
    body.home-page .main-footer .footer-content {
        grid-template-columns: 1fr 1fr !important;
        gap: 25px !important;
    }

    body.home-page .footer-contact {
        grid-column: 1 / -1;
    }

    body.home-page #offers-container {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 650px) {
    body.home-page .offers-section {
        width: calc(100% - 28px) !important;
    }

    body.home-page #offers-container {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    body.home-page #offers-container .product-image-wrapper {
        height: 120px !important;
    }

    body.home-page .main-footer {
        padding: 22px 18px 12px !important;
    }

    body.home-page .main-footer .footer-content {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    body.home-page .footer-links,
    body.home-page .footer-contact {
        grid-column: auto !important;
        padding-left: 0 !important;
        border-left: 0 !important;
    }

    body.home-page .footer-contact-list {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    body.home-page .footer-contact-item {
        font-size: 11px !important;
    }
}

@media (max-width: 360px) {
    body.home-page #offers-container {
        grid-template-columns: 1fr !important;
    }
}

/* =====================================
   HOME - VIEW ALL BUTTONS FIX
   ===================================== */

body.home-page .home-products-section .section-heading>a.section-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: auto !important;
    min-width: 0 !important;
    height: 36px !important;
    min-height: 36px !important;

    margin: 0 !important;
    padding: 0 16px !important;

    background: rgba(237, 21, 28, 0.12) !important;
    border: 1px solid rgba(237, 21, 28, 0.45) !important;
    border-radius: 10px !important;

    color: #FFFFFF !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    white-space: nowrap !important;

    flex: 0 0 auto !important;
    box-shadow: none !important;
    transform: none !important;

    transition:
        background 0.2s ease,
        border-color 0.2s ease !important;
}

body.home-page .home-products-section .section-heading>a.section-link:hover {
    background: #ED151C !important;
    border-color: #ED151C !important;
    color: #FFFFFF !important;
}

body.home-page .home-products-section .section-heading {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-end !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
}

body.home-page .home-products-section .section-heading>div {
    min-width: 0;
}

@media (max-width: 480px) {
    body.home-page .home-products-section .section-heading>a.section-link {
        height: 32px !important;
        min-height: 32px !important;
        padding: 0 11px !important;
        font-size: 11px !important;
    }
}

/* CART PAGE - BANNER IMAGE ONLY */

body.cart-page .cart-header,
body.cart-page .cart-hero,
body.cart-page .cart-banner {
    background-image:
        linear-gradient(90deg,
            rgba(5, 12, 24, 0.82) 0%,
            rgba(5, 12, 24, 0.30) 55%,
            rgba(5, 12, 24, 0.05) 100%),
        url("../images/cart.jpg") !important;

    background-position: center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
}

/* CART BANNER - BETTER IMAGE PROPORTIONS */

body.cart-page .cart-header,
body.cart-page .cart-hero,
body.cart-page .cart-banner {
    min-height: 330px !important;
    background-size: 100% 100% !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}