* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #f8fafb;
    color: #002347;
    line-height: 1.6;
    overflow-x: hidden;
}

/* =======================================  START OF THE NAVIGATION OR HEADER ======================================= */
nav {
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 7px 3%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(26, 121, 176, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2000;
}

.nav-logo {
    color: #1a79b0;
    font-size: 26px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -1px;
}

.nav-logo span {
    color: #71b345;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #002347;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.nav-links i,
.footer-icon-small {
    color: #71b345;
}


.nav-links a.active {
    color: #71b345;
    font-weight: 700;
    border-bottom: 2px solid #71b345;
}

.nav-links .hover:hover {
    color: #71b345;
    border-bottom: 2px solid #71b345;
}

.nav-account-btn:hover {
    color: #71b345;
    border-bottom: 2px solid #71b345;
}

.drawer-links a.active {
    color: #71b345;
    background: #f0fdf4;
    transform: translateX(5px);
}

.feature-icon.material-symbols-outlined {
    font-size: 40px;
    display: block;
    margin-bottom: 15px;
}

.nav-links a.active-link {
        color: #71b345;     
        font-weight: 700;         
        border-bottom: 2px solid #71b345; 
}

/* ===================================== BRAND ICON: CareMed =====================================  */

.nav-logo-wrapper {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand-icon-plus {
    position: relative;
    width: 32px;
    height: 32px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 12px;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
    justify-content: center;
    flex-direction: column;
    width: 30px;
    height: 30px;
}


.brand-icon-plus.sm {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.box {
    position: absolute;
    width: 45%;
    height: 45%;
    border-radius: 20%;
    transition: all 0.2s ease;
    box-shadow:
        inset 0 2px 4px rgba(255, 255, 255, 0.2),
        inset 0 -3px 5px rgba(0, 0, 0, 0.1);
}


.box.blue {
    background: linear-gradient(135deg, #1C8BC9 0%, #1A79B0 100%);
}

.box.green {
    background: linear-gradient(135deg, #7DC54B 0%, #71B345 100%);
}



.box.top {
    top: 0;
    left: 27.5%;
    z-index: 2;
}

.box.bottom {
    bottom: 0;
    left: 27.5%;
    z-index: 1;
}

.box.left {
    top: 27.5%;
    left: 0;
    z-index: 2;
}

.box.right {
    top: 27.5%;
    right: 0;
    z-index: 1;
}

.main-logo-dark,
.form-logo,
.main-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: 800;
}

@media (max-width: 768px) {
    .brand-icon-plus {
        width: 28px;
        height: 28px;
        margin-right: 10px;
    }

    .main-logo-dark,
    .form-logo,
    .main-logo {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .brand-icon-plus {
        width: 24px;
        height: 24px;
        margin-right: 8px;
    }

    .brand-icon-plus.sm {
        width: 18px;
        height: 18px;
    }

    .box {

        box-shadow:
            inset 0 1px 2px rgba(255, 255, 255, 0.2),
            inset 0 -1.5px 3px rgba(0, 0, 0, 0.1);
    }
}



/* ===================================== END BRAND ICON: CareMed =====================================  */


.auth-only {
    display: none !important;
}

.guest-only {
    display: flex !important;
}

body.logged-in .auth-only {
    display: flex !important;
}

body.logged-in .guest-only {
    display: none !important;
}

body.logged-in .dropdown-menu {
    display: none !important;
}

body.logged-in .dropdown-menu.show {
    display: flex !important;
    flex-direction: column;
}

.nav-shop-link {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: #1a79b0;
}

.nav-account-btn {
    color: #002347;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}



.nav-cta-btn {
    background-color: #002347;
    color: white !important;
    padding: 10px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.nav-cta-btn:hover {
    background-color: #1a79b0;
    transform: translateY(-1px);
}

.mobile-account-btn {
    background: #f8fafc;
    color: #002347 !important;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-decoration: none;
}

.user-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.user-photo-img,
.icon-placeholder {
    animation: fadeInAvatar 0.4s ease-out;
}

@keyframes fadeInAvatar {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

img.user-photo-img {
    position: relative;
}

img.user-photo-img:after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f8fafc;
    z-index: 2;
}

.login-link-mobile.guest-only {
    margin: 15px;
    padding: 12px 20px;
    background-color: #002347;
    color: white !important;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.login-link-mobile.guest-only i {
    margin-right: 10px;
    font-size: 1.1rem;
    color: white;
}

.login-link-mobile.guest-only:hover {
    background-color: #1a79b0;
    transform: translateY(-2px);
}

.login-link-mobile.guest-only:active {
    transform: translateY(0);
}

.mobile-user-info.guest-only {
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 10px;
}

/*---------------------- START OF USER-AVATAR STYLE -------------------------------*/

.icon-placeholder {
    color: #71b345;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.user-avatar,
.profile-avatar-large,
#imagePreview {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #f8fafc;
    border-radius: 50%;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
    border: 2px solid rgba(26, 121, 176, 0.1);
}

.user-avatar .icon-placeholder {
    font-size: 38px;
}

.profile-avatar-large .icon-placeholder {
    font-size: 100px;
}

#imagePreview .icon-placeholder {
    font-size: 110px;
}

/*---------------------- END OF USER-AVATAR STYLE -------------------------------*/

.logout-link-mobile {
    color: #e63946 !important;
}

.login-btn {
    background: #002347;
    color: white !important;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 35, 71, 0.2);
    border: none;
}

.login-btn:hover {
    background: #1a79b0;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(26, 121, 176, 0.3);
}

.login-btn:active {
    transform: translateY(0);
}

.logout-btn {
    background: #f8fafb;
    color: #002347 !important;
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid #002347;
    font-weight: 600;
    font-size: 13px;
    transition: 0.3s ease;
}

.logout-btn:hover {
    background: #002347;
    color: white !important;
}

.hamburger-icon {
    display: none;
    cursor: pointer;
    color: #002347;
    padding: 5px;
    transition: 0.2s;
}

.hamburger-icon:hover {
    background: #f8fafc;
    border-radius: 8px;
}

.side-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100%;
    background: white;
    z-index: 3000;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.drawer-links a {
    text-decoration: none;
    color: #002347;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 12px;
    transition: 0.3s;
}

.drawer-links a:hover {
    background: #f8fafc;
    color: #1a79b0;
    transform: translateX(5px);
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 35, 71, 0.4);
    z-index: 2500;
    display: none;
    backdrop-filter: blur(4px);
}

#nav-toggle:checked~.side-drawer {
    right: 0;
}

#nav-toggle:checked~.drawer-overlay {
    display: block;
}



@media screen and (max-width: 768px) {
    .hamburger-icon {
        display: block;
    }

    .nav-links {
        display: none;
    }

    nav {
        padding: 10px 5%;
    }

    .mobile-user-info {
        display: flex;
    }

    .user-profile-widget {
        display: none;
    }
}

.user-profile-widget {
    position: relative;
    user-select: none;
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 14px;
    background: #f8fafb;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.profile-trigger:hover {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.user-avatar {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.user-name {
    font-size: 14px;
    font-weight: 700;
    color: #002347;
}

.user-role {
    font-size: 11px;
    color: #71b345;
    font-weight: 700;
    text-transform: uppercase;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 220px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    padding: 8px 0;
    display: none;
    flex-direction: column;
    z-index: 3000;
}

.dropdown-menu.show {
    display: flex;
    flex-direction: column;
}

.dropdown-menu a {
    padding: 12px 20px;
    font-size: 14px;
    color: #002347 !important;
    gap: 10px;
    font-weight: 500;
}

.dropdown-menu a:hover {
    background: #f8fafc;
    color: #1a79b0 !important;
}

.dropdown-menu hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 5px 0;
}

.dropdown-menu .logout-item {
    color: #e63946 !important;
    font-weight: 700;
    transition: all 0.2s ease;
}

.dropdown-menu .logout-item:hover {
    background: #fff5f5 !important;
    color: #c53030 !important;
}

.dropdown-menu .logout-item .fa-solid,
.dropdown-menu .logout-item .fa-regular {
    color: #e63946;
}

.logout-link-mobile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    margin: 10px 0;
    background-color: #fff5f5;
    color: #e63946 !important;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.2s ease;
    border: 1px solid rgba(230, 57, 70, 0.1);
}

.logout-link-mobile:hover {
    background-color: #fee2e2;
    transform: translateX(5px);
}

.logout-link-mobile .fa-solid,
.logout-link-mobile .fa-regular {
    color: #e63946;
}

.mobile-user-info {
    display: none;
    align-items: center;
    gap: 15px;
    padding: 10px;
    margin-bottom: 20px;
}

/*------------------------- END OF THE NAVIGATION OR HEADER --------------------------*/


.gallery-container {
    width: 90%;
    max-width: 1200px;
    margin: 90px auto 60px;
}

.section-title {
    font-size: 28px;
    color: #002347;
    border-left: 6px solid #4ade80;
    padding-left: 15px;
    margin-bottom: 5px;
}

.controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin: 30px 0 40px;
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.search-box {
    flex: 2;
    position: relative;
    width: 100%;
}

.search-icon-ui {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    pointer-events: none;
}

.search-box input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
    transition: border-color 0.3s;
}

.search-box input:focus {
    border-color: #00a8cc;
}

.filter-box {
    flex: 1;
    width: 100%;
}

.filter-box select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #002347;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    outline: none;
}


@media screen and (max-width: 768px) {
    .controls-row {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
    }

    .search-box,
    .filter-box {
        flex: none;
        width: 100%;
    }

    .section-title {
        font-size: 24px;
    }
}



/* <START OF PRODUCT-CATALOG SECTION> */
.featured-catalog-section {
    padding: 60px 20px;
    max-width: 1300px;
    margin: 0 auto;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    border-left: 5px solid #38BDF8;
    padding-left: 20px;
}

.section-title {
    margin: 0;
    font-size: 2rem;
    color: #1a202c;
    letter-spacing: -0.5px;
    text-transform: none; 
}

.section-subtitle {
    margin: 8px 0 0;
    color: #718096;
    font-size: 1.1rem;
    font-weight: 400; 
    text-transform: none;
    padding-left: 0;
}

.view-all-link {
    color: #38BDF8;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid #38BDF8;
    padding: 8px 20px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.view-all-link:hover {
    background: #38BDF8;
    color: white;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    border: 1px solid #eee;
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    max-height: 600px;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 35, 71, 0.15);
}

.stock-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #e0f2fe; 
    color: #0369a1; 
    font-size: 10px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 20px;
    z-index: 5;
}

.product-image-box {
    width: 100%;
    height: 220px;
    background-color: #ffffff; 
    border-radius: 18px 18px 0 0;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border: 1px solid #f1f5f9;
    border-bottom: none;
}

.product-img-element {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    padding: 15px; 
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}



.product-card:hover .product-img-element {
    transform: scale(1.05); 
}


.product-image-box:not(:has(img)) {
    background: #f1f5f9;
}

.product-image-box:not(:has(img))::after {
    content: 'PREVIEW NOT AVAILABLE';
    font-size: 10px;
    color: #94a3b8;
    font-weight: 700;
    letter-spacing: 1px;
}

.product-name {
    font-size: 19px;
    color: #1a202c;
    font-weight: 700;
    
}

.trust-badge {
    background-color: #f0fdf4;
    color: #16a34a;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #bbf7d0;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 10px;
}

.trust-badge i {
    color: #16a34a !important;
}

.product-specs {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    min-height: 80px;
    flex-direction: column;
    gap: 8px;
}

.product-description-text {
    font-size: 0.88rem;
    color: #475569; 
    line-height: 1.5;
    font-style: italic; 
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    display: -moz-box;
    display: box;
    line-clamp: 2;
    box-orient: vertical;
    max-height: 3em; 
}

.product-specs li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.product-specs li i {
    color: #38BDF8;
    width: 18px;
    text-align: center;
}

.dual-price-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fcfcfc;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #f0f0f0;
}

.price-item {
    flex: 1;
}

.price-divider {
    width: 1px;
    height: 30px;
    background: #eee;
    margin: 0 10px;
}

.price-tag {
    font-size: 10px;
    font-weight: 800;
    color: #94a3b8;
    display: block;
    margin-bottom: 4px;
}

.price-value {
    font-size: 18px;
    font-weight: 800;
    color: #1a202c;
    margin: 0;
}

.price-value small {
    font-size: 11px;
    color: #64748b;
    font-weight: 400;
}

.price-item:last-child .price-value {
    color: #38BDF8;
}

.dual-action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: auto;
}

.btn-rent,
.btn-buy {
    padding: 12px 5px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-rent {
    background: transparent;
    border: 2px solid #1a202c;
    color: #1a202c;
}

.btn-rent:hover {
    background: #f1f5f9;
}

.btn-buy {
    background: #1a202c;
    border: 2px solid #1a202c;
    color: white;
}

.btn-buy:hover {
    background: #38BDF8;
    border-color: #38BDF8;
}


.guest-cta {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #f8fafc;
    border: 2px dashed #38BDF8 !important; 
    color: #38BDF8 !important;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.guest-cta:hover {
    background: #e0f2fe;
    border-style: solid !important;
    transform: scale(1.02);
}

.btn-buy:has(+ .guest-cta),
.btn-buy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-rent {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-rent i, .btn-buy i {
    font-size: 0.9rem;
}

.dual-action-buttons button, 
.dual-action-buttons a {
    position: relative;
    overflow: hidden;
}

.dual-action-buttons button:active {
    transform: scale(0.95);
}


@media (max-width: 400px) {
    .featured-catalog-section {
        padding: 30px 10px;
    }

    .header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        border-left: 3px solid #38BDF8;
        padding-left: 10px;
        margin-bottom: 30px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .view-all-link {
        font-size: 0.9rem;
        padding: 6px 14px;
    }

    .product-grid {
        grid-template-columns: 1fr; 
        gap: 20px;
    }

    .product-card {
        padding: 15px;
    }

    .product-image-box {
        height: 140px;
    }

    .product-name {
        font-size: 16px;
        min-height: auto;
        margin-bottom: 10px;
    }

    .trust-badge {
        font-size: 11px;
        padding: 3px 6px;
    }

    .product-specs {
        font-size: 0.8rem;
        padding: 0 5px;
    }

  .dual-price-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;          
        padding: 10px;
        background: #f9fafb; 
        border-radius: 12px;
        border: 1px solid #e2e8f0;
    }

    .price-item {
        width: 100%;
    }

    .price-tag {
        font-size: 11px;
        font-weight: 700;
        color: #94a3b8;
        margin-bottom: 2px;
    }

    .price-value {
        font-size: 17px;
        font-weight: 800;
        color: #1a202c;
        margin: 0;
    }

    .price-item:last-child .price-value {
        color: #38BDF8;
    }

    .price-item:first-child {
        padding: 6px 10px;
        background: #f0f9ff;
        border-radius: 8px;
        margin-bottom: 5px;
    }

    .price-item:last-child {
        padding: 6px 10px;
        background: #eff6ff;
        border-radius: 8px;
    }

    .dual-action-buttons {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 10px;
    }

    .dual-action-buttons {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 15px;
    }

    .btn-rent, .btn-buy {
        font-size: 12px;
        padding: 10px 5px;
    }

    .guest-cta {
        font-size: 12px;
        padding: 10px 5px;
    }
}

.pricing-container {
    display: flex;
    align-items: center;
    justify-content: center; 
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 20px;
    height: 60px; 
    min-height: 60px;
    box-sizing: border-box;
}

.price-block {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.price-label {
    display: block;
    font-size: 10px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
}

.price-amount {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
}

.price-amount .period {
    font-size: 0.75rem;
    font-weight: 500;
    color: #94a3b8;
}

.price-separator {
    width: 1px;
    height: 40px;
    background: #e2e8f0;
    margin: 0 10px;
}

.has-dual .sale .price-amount {
    color: #38BDF8;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.btn-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-buy-solid,
.btn-rent-now {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
}

.btn-buy-solid:hover,
.btn-rent-now:hover {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    transform: translateY(-1px);
}

.btn-buy-outline,
.btn-rent-outline {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    color: #1e293b;
}

.btn-buy-outline:hover,
.btn-rent-outline:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: #f8fafc;
}

.btn-rent-outline {
    border-color: #c7d2fe;
}

.btn-rent-now {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
}

.btn-guest {
    background: #f1f5f9;
    color: #64748b;
    border: 1px dashed #cbd5e1;
}

.btn-action i {
    font-size: 0.8rem;
}

.btn-action:active {
    transform: scale(0.96);
}

@media (max-width: 768px) {
    .action-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .btn-action {
        font-size: 0.8rem;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .action-grid {
        grid-template-columns: 1fr; 
    }

    .btn-action {
        font-size: 0.8rem;
        padding: 11px;
        border-radius: 8px;
    }
}


.stock-badge.out-of-stock {
    background: #fee2e2;
    color: #b91c1c;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
    color: #94a3b8;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.product-info-header {
    margin-bottom: 12px;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
    line-height: 1.2;
}

.equipment-type-tag {
    font-size: 0.65rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}


.card-overlays {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 15px; 
    z-index: 10;
    pointer-events: none; 
}

.card-overlays > div {
    pointer-events: auto; 
}


.stock-tag,
.type-tag {
    font-family: 'Inter', sans-serif; 
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 4px 10px;
    border-radius: 4px; 
    display: flex;
    align-items: center;
    gap: 5px;
}

.stock-tag i,
.type-tag i {
    font-size: 0.8rem;
}

.status-in {
    background-color: #e0f2fe; 
    color: #0369a1; 
}

.status-out {
    background-color: #fef2f2;
    color: #991b1b;
}

.trans-both {
    background-color: #ecfdf5; 
    color: #15803d;
}


.trans-rent {
    background-color: #eff6ff;
    color: #1d4ed8;
}


.trans-sale {
    background-color: #fffbeb; 
    color: #a16207; 
}


.product-text-block {
    text-align: center;
    padding: 15px 10px 5px 10px;
    border-bottom: 1px solid #f1f5f9; 
    margin-bottom: 10px;
}

.display-name {
    font-size: 1.15rem;
    font-weight: 800; 
    color: #111827;
    margin-bottom: 3px;
    line-height: 1.2;
}

.equipment-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
}

/* <END OF PRODUCT-CATALOG SECTION> */

footer {
    background: #002347;
    color: white;
    padding: 80px 5% 30px;
    margin-top: 100px;
    border-radius: 40px 40px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 15px;
}

.footer-logo span {
    color: #00a8cc;
}

.footer-col h4 {
    color: #98D8AA;
    margin-bottom: 25px;
}

.footer-col li {
    list-style: none;
    margin-bottom: 12px;
    font-size: 14px;
    opacity: 0.8;
}

.footer-icon-small {
    font-size: 18px !important;
    vertical-align: middle;
    margin-right: 10px;
    color: #52B788;
}

.copyright {
    margin-top: 60px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    font-size: 12px;
    opacity: 0.5;
}



@media screen and (max-width: 768px) {
    .hamburger-icon {
        display: block;
    }

    .nav-links {
        display: none;
    }

    .gallery-container {
        margin-top: 100px;
        width: 95%;
    }

    .controls-row {
        flex-direction: column;
        padding: 10px;
    }


    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-card {
        padding: 15px;
        border-radius: 12px;
    }

    .product-image-box {
        height: 120px;
        margin-bottom: 10px;
    }

    .product-name {
        font-size: 14px;
        min-height: 40px;
        margin-bottom: 10px;
    }

    .dual-price-wrapper {
        flex-direction: column;
        gap: 8px;
        padding: 10px;
    }

    .price-divider {
        width: 100%;
        height: 1px;
        margin: 5px 0;
    }

    .price-value {
        font-size: 15px;
    }

    .dual-action-buttons {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .btn-rent,
    .btn-buy {
        padding: 8px 5px;
        font-size: 11px;
    }

    .stock-badge {
        top: 10px;
        left: 10px;
        font-size: 8px;
        padding: 3px 8px;
    }
}


@media screen and (max-width: 350px) {
    body {
        font-size: 14px;
    }

    nav {
        padding: 10px 3%;
    }

    .nav-logo {
        font-size: 18px;
    }

    .main-hero {
        padding: 80px 0 40px;
        min-height: auto;
    }

    .main-hero h1 {
        font-size: 1.8rem;
        padding: 0 10px;
    }

    .main-hero p {
        font-size: 1rem;
        padding: 0 15px;
    }

    .hero-btn {
        padding: 12px 25px;
        font-size: 14px;
    }

    .about-us-section {
        padding: 40px 10px;
    }

    .about-text h2 {
        font-size: 22px;
    }

    .feature-card {
        padding: 20px 10px;
    }

    .highlight-title {
        font-size: 1.6rem;
    }

    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .highlight-card {
        padding: 25px 15px;
    }

    .card-number {
        font-size: 2.5rem;
        top: 5px;
        right: 10px;
    }

    .gallery-container {
        width: 96%;
        margin: 20px auto;
    }

    .section-title {
        font-size: 20px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .product-card {
        padding: 10px 5px;
    }

    .product-image-box {
        height: 90px;
    }

    .product-name {
        font-size: 11px;
        min-height: 35px;
    }

    .price-value {
        font-size: 12px;
    }

    .price-tag {
        font-size: 7px;
    }

    .dual-action-buttons {
        gap: 5px;
    }

    .btn-rent,
    .btn-buy {
        font-size: 10px;
        padding: 8px 2px;
    }

    footer {
        padding: 40px 5% 20px;
        border-radius: 20px 20px 0 0;
    }

    .footer-col h4 {
        margin-bottom: 15px;
        font-size: 16px;
    }

    .footer-logo {
        font-size: 20px;
    }
}


.category-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.tab-btn {
    padding: 8px 18px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 8px;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    border-color: #002347;
    background: #f8fafc;
}

.tab-btn.active {
    background: #002347;
    color: white;
    border-color: #002347;
}

.help-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #e3f2fd;
    padding: 10px 16px;
    border-radius: 50px;
    color: #002347;
}

@media screen and (max-width: 992px) {
    .header-row {
        flex-direction: column;
    }
    
    .help-banner {
        align-self: flex-start;
    }
}

.avail-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 10px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 20px;
    z-index: 5;
}

.avail-badge.rent-only {
    background: #e8f0fb;
    color: #1a5cbd;
}

.avail-badge.buy-only {
    background: #fef3e2;
    color: #a05c00;
}

.avail-badge.both {
    background: #f0fdf4;
    color: #166534;
}


.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #8fa1b3;
    font-size: 15px;
}


.nav-cart-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #002347; 
    background: transparent;
}

.nav-cart-wrapper:hover {
    background: #f0fdf4; 
    color: #71b345;
    transform: translateY(-1px);
}

.cart-icon-container {
    position: relative;
    font-size: 20px; 
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #f59e0b;
    color: white;
    font-size: 10px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 2px solid #ffffff; 
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

.cart-badge:empty {
    display: none;
}


/* --- CareMed Rental Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7); 
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(6px);
    transition: all 0.3s ease;
}

.modal-content {
    background: #ffffff;
    padding: 0; 
    border-radius: 16px;
    width: 95%;
    max-width: 480px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.modal-header {
    padding: 20px 24px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: #16a34a;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-modal {
    background: #f1f5f9;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-modal:hover {
    background: #fee2e2;
    color: #ef4444;
}

.modal-body {
    padding: 24px;
}

#modalProductName {
    font-size: 1.1rem;
    color: #0f172a;
    margin: 0 0 20px 0;
    font-weight: 600;
}

.rental-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 6px;
}

.modal-field {
    width: 100%;
    padding: 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.modal-field:focus {
    outline: none;
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.modal-footer {
    padding: 20px 24px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-btns {
    display: flex;
    gap: 12px;
}

.btn-text-only {
    color: #2563eb;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.btn-text-only:hover {
    text-decoration: underline;
}

.btn-confirm-rent {
    background: #16a34a;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s, background 0.2s;
}

.btn-confirm-rent:hover {
    background: #15803d;
    transform: translateY(-1px);
}

.btn-cancel {
    background: white;
    color: #64748b;
    border: 1px solid #e2e8f0;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-cancel:hover {
    background: #f1f5f9;
    color: #0f172a;
}


/*================== START OF MESSAGE NOTIFICATION ==================*/

.toast-container {
    position: fixed;
    top: 65px; 
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px; 
}

.medical-toast {
    background: #ffffff;
    min-width: 320px;
    max-width: 440px; 
    padding: 10px 12px; 
    border-radius: 12px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px; 
    box-shadow: 0 10px 22px -6px rgba(0, 0, 0, 0.1),
                0 6px 10px -6px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    animation: toast-slide-in 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Status borders */
.medical-toast.success { border-left: 4px solid #10b981; }
.medical-toast.success .toast-icon { color: #10b981; background: #ecfdf5; }

.medical-toast.error { border-left: 4px solid #ef4444; }
.medical-toast.error .toast-icon { color: #ef4444; background: #fef2f2; }

.medical-toast.warning { border-left: 4px solid #f59e0b; }
.medical-toast.warning .toast-icon { color: #f59e0b; background: #fffbeb; }

.medical-toast.info { border-left: 4px solid #3b82f6; }
.medical-toast.info .toast-icon { color: #3b82f6; background: #eff6ff; }

/* ICON */
.toast-icon {
    width: 32px;  
    height: 32px; 
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px !important;
}

/* CONTENT */
.toast-content {
    display: flex;
    flex-direction: column;
}

.toast-title {
    font-weight: 700;
    font-size: 12.5px; 
    color: #1e293b;
    margin-bottom: 1px;
}

.toast-message {
    font-size: 12px; 
    color: #64748b;
    line-height: 1.25; 
}

/* CLOSE BUTTON */
.toast-close {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #94a3b8;
    border-radius: 8px;

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

    transition: all 0.2s ease;
}

.toast-close .material-symbols-rounded {
    font-size: 18px;
    line-height: 1;
}

.toast-close:hover {
    background: #f1f5f9;
    color: #334155;
    transform: scale(1.05);
}

.toast-close:active {
    transform: scale(0.95);
}

/* PROGRESS BAR */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background: rgba(0, 0, 0, 0.03);
}

.toast-progress::after {
    content: '';
    position: absolute;
    left: 0;
    height: 100%;
    width: 100%;
    background: currentColor;
    opacity: 0.4;
    animation: toast-progress-shrink 5s linear forwards;
}

/* COLOR THEME */
.medical-toast.success { color: #10b981; }
.medical-toast.error { color: #ef4444; }
.medical-toast.warning { color: #f59e0b; }
.medical-toast.info { color: #3b82f6; }

/* ANIMATIONS */
@keyframes toast-slide-in {
    from { transform: translateX(110%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toast-fade-out {
    from { transform: scale(1); opacity: 1; }
    to { transform: scale(0.9); opacity: 0; }
}

@keyframes toast-progress-shrink {
    from { width: 100%; }
    to { width: 0%; }
}

.material-symbols-rounded {
    font-variation-settings:
        'FILL' 1,
        'wght' 500,
        'GRAD' 0,
        'opsz' 24;
}

/*================== END OF MESSAGE NOTIFICATION ==================*/


/* Responsive for new elements */
@media screen and (max-width: 768px) {
    .modal-option-grid {
        grid-template-columns: 1fr;
    }

    .cart-panel {
        width: 100%;
        right: -100vw;
    }

    .avail-badge {
        top: 10px;
        right: 10px;
        font-size: 8px;
        padding: 3px 8px;
    }
}