:root {
    --primary: #16a34a;
    --secondary: #6366f1;
    --dark-blue: #1e3d72;
    --text-dark: #374151;
    --text-muted: #6b7280;
    --bg-light: #f9fafb;
    --magenda: #57b1ba; 
    --dark-green: #007B7F; 
    --light-green: #16a085; 
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    color: #374151;
    background-color: #f9fafb;
    margin: 0;
    padding: 0;
}

body.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

/* Sticky Header Start */
.header-sticky{
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 9999;
    transform: none !important; 
}
.navbar {
    width: 100%;
    background: #fff;
    transition: all 0.238s ease;
}
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: navbarEntrance 0.238s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes navbarEntrance {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }
    15% {
        opacity: 0.2;
        transform: translateY(-40px);
    }
    30% {
        opacity: 0.4;
        transform: translateY(-30px);
    }
    45% {
        opacity: 0.6;
        transform: translateY(-20px);
    }
    60% {
        opacity: 0.75;
        transform: translateY(-12px);
    }
    75% {
        opacity: 0.9;
        transform: translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Sticky Header End */

.text-justify {
    text-align: justify;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.nav-pills .nav-link {
    border-radius: 2rem;
    padding: 0.5rem 1.25rem !important;
    margin: 0 0.25rem !important;
    color: #374151;
    transition: background 0.2s, color 0.2s;
    font-weight: 600;
}

.nav-pills .nav-link.active,
.nav-pills .nav-link:focus,
.nav-pills .nav-link:hover {
    background: #6366f1;
    color: #fff;
}

.navbar-cta .btn-success {
    border-radius: 2rem;
    font-weight: 600;
    padding: 0.5rem 1.25rem !important;
    box-shadow: 0 2px 8px rgba(52, 211, 153, 0.08);
}

@media (max-width: 991px) {
    .navbar-nav {
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
    }
}

/* Hero Area */
.hero-area {
    position: relative;
    min-height: 70vh;
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    text-align: center;
    overflow: hidden;
}

.hero-area::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.1);
    z-index: 1;
}

.hero-area>* {
    position: relative;
    z-index: 2;
}

.hero-area .hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #000000;
}

.hero-area .hero-subtitle {
    font-size: 1.5rem;
    color: #000000;
    margin-bottom: 30px;
}

.hero-area .hero-btn {
    display: inline-block;
    padding: 15px 40px;
    background: #0073e6;
    color: #fff;
    border-radius: 5px;
    font-size: 1.2rem;
    text-decoration: none;
}

.bg-header-gradient {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3d72 100%) !important;
}

/* Sub Menu Area */
.navbar-nav .menu-item {
    position: relative;
}

.navbar-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #ffffff;
    padding: 0.5rem 0;
    margin: 0;
    list-style: none;
    border-radius: 0.75rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 999;
}

.navbar-nav .menu-item-has-children::after {
    content: "";
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    height: 10px;
}

.navbar-nav .menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.navbar-nav .sub-menu .nav-link,
.navbar-nav .sub-menu a {
    display: block;
    padding: 0.6rem 1.25rem;
    color: #374151;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.navbar-nav .sub-menu a:hover,
.navbar-nav .sub-menu .nav-link:hover {
    background: #6366f1;
    color: #ffffff;
}

.navbar-nav .sub-menu .current-menu-item > a {
    background: #6366f1;
    color: #fff;
}

.menu-item-has-children > a::after {
    content: "▾";
    font-size: 0.7rem;
    margin-left: 6px;
}

@media (max-width: 991px) {
    .navbar-nav .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        padding-left: 1rem;
    }

    .menu-item-has-children > a::after {
        display: none;
    }
}

/* =========================
   NAVBAR CTA (Customizer Synced)
========================= */

.navbar-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Cart */
.navbar-cta .nav-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1rem;
    border-radius: 2rem;
    color: var(--medico-menu-text);
    transition: all 0.25s ease;
}

.navbar-cta .nav-cart:hover {
    background: var(--medico-menu-hover-bg);
    color: var(--medico-menu-hover-text);
}

/* Buttons (Login / Register / My Account) */
.navbar-cta .btn {
    border-radius: 2rem;
    padding: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    background: transparent;
    color: var(--medico-menu-text);
    border: 1px solid transparent;
    transition: all 0.25s ease;
}

.navbar-cta .btn:hover,
.navbar-cta .btn:focus {
    background: var(--medico-menu-hover-bg);
    color: var(--medico-menu-hover-text);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Dropdown */
.navbar-cta .dropdown-toggle {
    background: transparent;
}

.navbar-cta .dropdown-menu {
    background: var(--medico-submenu-bg);
    border-radius: 0.75rem;
    border: none;
    padding: 0.5rem 0;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.navbar-cta .dropdown-item {
    color: var(--medico-menu-text);
    font-weight: 500;
    padding: 0.6rem 1.25rem;
    transition: all 0.2s ease;
}

.navbar-cta .dropdown-item:hover {
    background: var(--medico-menu-hover-bg);
    color: var(--medico-menu-hover-text);
}

/* Mobile */
@media (max-width: 991px) {
    .navbar-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        margin-top: 1rem;
    }

    .navbar-cta .btn,
    .navbar-cta .nav-cart {
        width: 100%;
        justify-content: center;
    }
}

/* Footer Area */
.site-footer {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3d72 100%);
}

.site-footer a:hover {
    color: #ffc107 !important;
    transition: color 0.3s ease;
}

.site-footer .btn:hover {
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.footer_widgets {
    background: linear-gradient(135deg, #1e3d72 0%, #2c5aa0 100%);
    padding: 60px 0;
    color: #ffffff;
}

.footer_widgets .footer-widget {
    color: #eaeaea;
}

.footer_widgets .footer-widget h6 {
    color: #ffc107;
    font-weight: 700;
}

.footer_widgets a {
    color: #eaeaea;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer_widgets a:hover {
    color: #ffc107;
}

.footer_widgets ul {
    padding-left: 0;
    list-style: none;
}

.footer_widgets ul li {
    margin-bottom: 8px;
}

.footer-social-link {
    display: inline-block;
    margin-right: 10px;
    color: #ffffff;
    background: #6366f1;
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none;
    position: relative;
    transition: transform 0.2s ease, background 0.2s ease;
}

.footer-social-link:hover {
    background: #4f46e5;
    transform: translateY(-3px);
    color: #fff;
}

.footer-social-link[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #111;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 12px;
    opacity: 1;
    pointer-events: none;
    z-index: 10;
}

/* Toast */
.medico-toast {
    position: fixed;
    top: 50px;
    right: 20px;
    min-width: 260px;
    max-width: 320px;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #ffffff !important;
    background-color: #16a34a !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    z-index: 999999;
    opacity: 0;
    transform: translateY(-15px);
    animation: medicoToast 4s ease forwards;
}

.medico-toast-error {
    background-color: #dc2626 !important;
}

@keyframes medicoToast {
    0% {
        opacity: 0;
        transform: translateY(-15px);
    }
    10% {
        opacity: 1;
        transform: translateY(0);
    }
    80% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-15px);
    }
}

/* =========================
   PRODUCTS SECTION
========================= */

.home-products {
    padding: 80px 0;
    background: #f8fafc;
}

/* Product Top Bar */
.product-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    min-height: 50px;
    background-color: #f1f1f1;
    padding: 7px 10px;
    border-radius: 6px;
}

/* Layout Switcher */
.layout-switcher {
    display: flex;
    gap: 10px;
}

/* Sort Dropdown */
.sort-dropdown {
    position: relative;
}

.sort-summary {
    background: #57b1ba;
    color: #fff;
    padding: 10px 40px 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    list-style: none;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

/* Hover */
.sort-summary:hover {
    background: #3f8f97; 
}

.sort-summary::-webkit-details-marker {
    display: none;
}
.sort-summary::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-right: 2px solid #fff;  
    border-bottom: 2px solid #fff;  
    transform: translateY(-55%) rotate(45deg);
    opacity: 1;
}

.sort-list {
    position: absolute;
    top: 110%;
    left: 0;
    min-width: 220px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    padding: 8px 0;
    margin: 0;
    list-style: none;
    z-index: 999;
    font-weight: 600;
}

.sort-list li a {
    display: block;
    padding: 10px 16px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    transition: all .2s ease;
}

/* HOVER — now perfect */
.sort-list li a:hover {
    background: #e6f5f7;
    color: #0f6f78;
}

/* Active */
.sort-list li a.active {
    color: #57b1ba;
    font-weight: 600;
}

.sort-dropdown:not([open]) .sort-list {
    display: none;
}
.layout-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #57b1ba;
    color: #57b1ba;
    background: #fff;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.layout-btn:hover {
    background: #57b1ba;
    color: #fff;
    transform: translateY(-2px);
}

.layout-btn.active {
    background: #57b1ba;
    color: #fff;
}

/* Products Container */
.products {
    transition: all 0.3s ease;
}

.grid-layout {
    display: grid;
    gap: 30px;
}

.row-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Grid Columns */
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* =========================
   PRODUCT ITEM BASE STYLES
========================= */

.product-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Grid Layout Product */
.grid-layout .product-item {
    padding: 20px;
    text-align: center;
}

.grid-layout .product-item:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,.1);
    transform: translateY(-5px);
}

/* Row Layout Product */
.row-layout .product-item {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 25px;
    border: 1px solid #f0f0f0;
}

.row-layout .product-item:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-3px);
    border-color: #e0e0e0;
}

/* =========================
   PRODUCT IMAGES
========================= */

/* Grid Image */
.product-item .product-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: transform 0.4s ease;
}

/* Row Image */
.product-item .product-row-img {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
    transition: transform 0.4s ease;
}


/* Grid Layout */
.grid-layout .product-item .product-img-wrap {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
}

.grid-layout .product-item .product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Row Layout */
.row-layout .product-item .product-img-wrap {
    position: relative;
    flex: 0 0 280px; 
    height: 280px;
    overflow: hidden;
    border-radius: 10px;
}

.row-layout .product-item .product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}


/* Image Hover Effects */
.product-img-wrap:hover .product-img,
.product-img-wrap:hover .product-row-img {
    transform: scale(1.05);
}

/* =========================
   PRODUCT CONTENT
========================= */

.product-img-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

/* Grid Content */
.grid-layout .product-info {
    margin-top: 15px;
    text-align: center;
}

.grid-layout .product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1e3d72;
}

.product-title a{
    text-decoration: none;
    color: #1e3d72;
}

.grid-layout .product-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #6b7280;
    margin-bottom: 15px;
}

/* Row Content */
.row-layout .product-info {
    flex: 1;
    text-align: left;
    padding: 10px 0;
}

.row-layout .product-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1e3d72;
}

.row-layout .product-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 20px;
    max-height: 80px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* =========================
   PRODUCT PRICE
========================= */

.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    font-weight: 700;
    color: #16a34a;
}

.product-price del {
    color: #6b7280;
    font-weight: 600;
    margin-right: 8px;
}

/* Grid Price */
.grid-layout .product-price {
    font-size: 1.05rem;
    justify-content: center;
}

/* Row Price */
.row-layout .product-price {
    font-size: 1.3rem;
}

.row-layout .product-price del {
    font-size: 1.1rem;
    color: #888;
}

/* =========================
   PRODUCT FOOTER
========================= */

.product-footer {
    display: block;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

/* Grid Footer */
.grid-layout .product-footer {
    justify-content: center;
    flex-direction: row;
}

/* Row Footer */
.row-layout .product-footer {
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

/* =========================
   COMMON ELEMENTS
========================= */

.buy-now-btn {
    display: inline-block;
    padding: 10px 50px;
    background: #1e3d72;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 10px;
}

.buy-now-btn:hover {
    background: #007B7F;
    box-shadow: 0 5px 12px rgba(30,61,114,0.25);
    transform: translateY(-2px);
}

.row-layout .buy-now-btn {
    padding: 10px 50px;
    background: linear-gradient(135deg, #1e3d72, #2c5aa0);
    border-radius: 6px;
}

.row-layout .buy-now-btn:hover {
    background: linear-gradient(135deg, #2c5aa0, #007B7F);
}

/* Stock Badge */
.product-item .stock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    z-index: 10;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-item:hover .stock-badge {
    opacity: 1;
    transform: translateY(0);
}

.stock-badge.bg-success {
    background-color: #28a745 !important;
}

.stock-badge.bg-danger {
    background-color: #dc3545 !important;
}
.stock-badge.low_stock { background: #c79a0a; }

/* Product Image Overlay */
.product-img-overlay {
    position: absolute;
    inset: 0;
    background: rgba(30, 61, 114, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 10px;
    pointer-events: none;
}
.product-img-overlay a {
    pointer-events: auto;  
}


.product-img-wrap:hover .product-img-overlay {
    opacity: 1;
}

.overlay-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.overlay-btn:hover {
    transform: translateY(-2px) scale(1.05);
}

.overlay-btn.cart { color: #1e3d72; }
.overlay-btn.wishlist { color: #16a34a; }
.overlay-btn.whatsapp { color: #10b981; }

/* =========================
   SIDEBAR
========================= */

.shop-sidebar-wrap {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
}

.sidebar-widget {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.sidebar-widget:last-child {
    border-bottom: none;
}

.widget-title {
    font-weight: 600;
    margin-bottom: 12px;
    background:#f1f1f1;
    padding:12px 15px;
    border-left:4px solid var(--primary);
}

.widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-list li {
    margin-bottom: 8px;
}

.widget-list a {
    display: flex;
    justify-content: space-between;
    color: #444;
    text-decoration: none;
    font-size: 14px;
}

.widget-list a.active,
.widget-list a:hover {
    color: #198754;
    font-weight: 500;
}

/* =========================
   PAGINATION
========================= */
.shop-content-wrapper {
    position: relative;
    min-height: 400px;
}
.shop-products-area {
    min-height: 300px;
    position: relative;
}

/* Products Container */
.products-container {
    min-height: 200px;
    margin-bottom: 0;
}
.no-products {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 60px 20px;
    margin: 30px 0;
}

/* Pagination Wrapper - Sticky Bottom */
.shop-pagination-wrapper {
    position: relative;
    text-align: center;
    z-index: 10;
    background: #fff;
    padding: 20px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 40px;
}

.shop-pagination {
    display: block;
    width: 100%;
}

.shop-pagination ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    gap: 8px;
}

.pagination {
    min-width: 40px;
    height: 40px;
    padding: 10px 12px;
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.25s ease;
}
.pagination .page-item a{
    text-decoration: none;
    color: #374151;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}
.pagination .page-item a:hover{
    background: #eef7f9;
    border-color: #3aa1af;
    color: #3aa1af;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(58, 161, 175, 0.15);
}
.pagination .page-item{}
.pagination .page-item .page-link.current{
    background: #3aa1af;
    color: #ffffff;
    border-color: #3aa1af;
}
.pagination .page-item a.active {
    background: #3aa1af;
    color: #ffffff;
    border-color: #3aa1af;
    box-shadow: 0 6px 15px rgba(58,161,175,0.35);
    font-weight: bold;
}
.shop-pagination .dots {
    border: none;
    background: transparent;
    pointer-events: none;
    color: #9ca3af;
}


.shop-pagination .prev,
.shop-pagination .next {
    padding: 0 16px;
    font-weight: 600;
}

/* =========================
   GALLERY SLIDER
========================= */

.gallery-slider,
.gallery-track,
.gallery-item {
    background: transparent;
}

.gallery-item img {
    display: block;
    background: transparent;
}

.gallery-slider {
    position: relative;
}

.gallery-track {
    display: flex;
    gap: 8px;
    transition: transform 0.4s ease;
}

.gallery-item {
    flex-shrink: 0;
}

.gallery-prev, .gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.4);
    backdrop-filter: blur(6px);
    color: #000;
    font-weight: bold;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 10;
}

.gallery-prev { left: 5px; }
.gallery-next { right: 5px; }

.gallery-slider:hover .gallery-prev,
.gallery-slider:hover .gallery-next { opacity: 1; }

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0,0,0,0.2);
    cursor: pointer;
    transition: background 0.3s;
}

.gallery-dot.active {
    background: #000;
}

/* =========================
   DOSAGE & QUANTITY
========================= */

.dosage-btn,
.quantity-btn {
    background: #e9ecef;
    border: 2px solid #e9ecef;
    color: #6c757d;
    transition: all .2s ease;
}

.dosage-btn.active,
.quantity-btn.active {
    background: #28a745;
    border-color: #28a745;
    color: #fff;
}

.dosage-btn:hover,
.quantity-btn:hover {
    transform: translateY(-2px);
}

.view_btn{
     background-color: var(--dark-green);
     padding: 8px 15px;
     color: #ffffff;
     text-decoration: none;
     text-align: center;
     font-size: 16px;
     font-weight: 600;
     margin-top: 10px;
     border-radius: 6px;
     transition: color 0.3s ease;
}
.view_btn:hover{
    background-color: #ffc107;
    transform: translateY(-2px);
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1200px) {
    .grid-cols-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-top-bar {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .shop-sort-form {
        width: 100%;
        justify-content: center;
    }
    
    .layout-switcher {
        width: 100%;
        justify-content: center;
    }
    
    .row-layout .product-item {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .row-layout .product-row-img {
        width: 100%;
        height: 250px;
    }
    
    .row-layout .product-info {
        text-align: center;
        width: 100%;
    }
    
    .row-layout .product-footer {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }
    
    .product-img,
    .product-row-img {
        height: 200px;
    }
    
    .row-layout .product-item {
        padding: 20px;
    }
    
    .row-layout .product-row-img {
        height: 220px;
    }
    
    .row-layout .product-title {
        font-size: 1.15rem;
    }
    
    .row-layout .product-desc {
        font-size: 0.9rem;
        -webkit-line-clamp: 2;
        max-height: 60px;
    }
}

@media (max-width: 576px) {
    .row-layout .product-item {
        padding: 15px;
    }
    
    .row-layout .product-row-img {
        height: 200px;
    }
    
    .row-layout .buy-now-btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    .shop-pagination .page-numbers {
        min-width: 34px;
        height: 34px;
        font-size: 13px;
    }
    
    .stock-badge {
        top: 5px;
        right: 5px;
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .row-layout .product-item .product-img-wrap {
        flex: 0 0 250px;
        height: 250px;
    }
}

@media (max-width: 991px) {
    .row-layout .product-item .product-img-wrap {
        flex: 0 0 100% !important;
        height: 250px;
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .grid-layout .product-item .product-img-wrap,
    .row-layout .product-item .product-img-wrap {
        height: 220px;
    }
}

@media (max-width: 576px) {
    .grid-layout .product-item .product-img-wrap,
    .row-layout .product-item .product-img-wrap {
        height: 200px;
    }
}



/* =========================
   PREMIUM ANIMATED BREADCRUMB
========================= */

.breadcrumb-nav {
    display: inline-block;
    animation: breadcrumbFade 0.6s ease forwards;
    opacity: 0;
    transform: translateY(8px);
}

@keyframes breadcrumbFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.breadcrumb {
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    padding: 12px 22px;
    border-radius: 20px;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.breadcrumb-item {
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.breadcrumb-item a {
    color: rgba(255,255,255,0.92);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.breadcrumb-item a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0%;
    height: 2px;
    background: #ffc107;
    transition: width 0.3s ease;
}

.breadcrumb-item a:hover::after {
    width: 100%;
}

.breadcrumb-item a:hover {
    color: #ffc107;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: rgba(255,255,255,0.5);
    padding: 0 8px;
    font-size: 12px;
    font-weight: bold;
}

.breadcrumb-item.active {
    color: #ffc107;
    font-weight: 600;
}

.breadcrumb-item i {
    margin-right: 4px;
    font-size: 13px;
}

@media (max-width: 576px) {
    .breadcrumb {
        flex-wrap: wrap;
        border-radius: 16px;
        padding: 10px 16px;
        gap: 6px;
    }

    .breadcrumb-item {
        font-size: 13px;
    }
}
.value-card {
    transition: all 0.3s ease;
}
.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
}

.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

.feature-icon {
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-card .card-title a:hover {
    color: #0d6efd !important;
}

.pagination-wrapper .pagination .page-link {
    border: 1px solid #dee2e6;
    color: #6c757d;
    padding: 0.75rem 1rem;
}

.pagination-wrapper .pagination .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

a {
    transition: color 0.3s ease;
    text-decoration: none;
    color: #777777;
}

.post-content h1, .post-content h2, .post-content h3, 
.post-content h4, .post-content h5, .post-content h6 {
    color: #212529;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-content p {
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: #6c757d;
}

.post-content ul, .post-content ol {
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.post-content li {
    margin-bottom: 0.5rem;
    color: #6c757d;
    line-height: 1.6;
}

.post-content blockquote {
    border-left: 4px solid #0d6efd;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #495057;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.nav-link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.related-posts .card:hover {
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

@media print {
    .blog-sidebar, .post-navigation, .related-posts {
        display: none !important;
    }
}