@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #0f62fe;
    --primary-dark: #0043ce;
    --primary-light: #edf5ff;
    --secondary: #0f9754;
    --secondary-dark: #076233;
    --secondary-light: #e6f6ee;
    --accent: #f59e0b;
    --accent-light: #fef3c7;
    --text-dark: #111827;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 32px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button, input, select, textarea {
    font-family: inherit;
    outline: none;
}

.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

.announcement-bar {
    background-color: var(--primary-dark);
    color: var(--bg-white);
    height: 40px;
    overflow: hidden;
    position: relative;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.announcement-slider {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    animation: announcementRotate 12s infinite ease-in-out;
}

.announcement-item {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    padding: 0 15px;
}

.announcement-item i {
    margin-right: 8px;
}

@keyframes announcementRotate {
    0%, 25% { transform: translateY(0); }
    30%, 55% { transform: translateY(-40px); }
    60%, 85% { transform: translateY(-80px); }
    90%, 100% { transform: translateY(0); }
}

header {
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--primary);
}

.logo-icon-wrapper {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--bg-white);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: var(--shadow-sm);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-dark);
    position: relative;
    padding: 8px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--primary);
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--bg-white);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.btn-header:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.menu-toggle {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
}

.sidebar-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 50%;
    height: 100vh;
    background-color: var(--bg-white);
    z-index: 1002;
    box-shadow: var(--shadow-lg);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 40px 24px;
}

.sidebar-menu.active {
    right: 0;
}

.sidebar-close {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-dark);
    margin-bottom: 40px;
    transition: var(--transition);
}

.sidebar-close:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.sidebar-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
}

.sidebar-links li {
    width: 100%;
    text-align: center;
}

.sidebar-links a {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    display: block;
    padding: 10px;
    border-radius: var(--radius-sm);
}

.sidebar-links a:hover,
.sidebar-links a.active {
    color: var(--primary);
    background-color: var(--primary-light);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.hero-section {
    position: relative;
    padding: 120px 0;
    min-height: 580px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.6));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: var(--bg-white);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(15, 151, 84, 0.2);
    border: 1px solid rgba(15, 151, 84, 0.4);
    color: #4ade80;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    backdrop-filter: blur(4px);
}

.hero-content h1 {
    font-size: 48px;
    line-height: 1.2;
    color: var(--bg-white);
    margin-bottom: 24px;
}

.hero-content p {
    font-size: 18px;
    color: #cbd5e1;
    margin-bottom: 36px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--bg-white);
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--bg-white);
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(4px);
    transition: var(--transition);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.section-padding {
    padding: 90px 0;
}

.bg-white-section {
    background-color: var(--bg-white);
}

.bg-light-section {
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px auto;
}

.section-tag {
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    display: block;
}

.section-header h2 {
    font-size: 36px;
    line-height: 1.3;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 16px;
    color: var(--text-light);
}

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

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.search-section {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 32px;
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.search-form {
    display: flex;
    gap: 16px;
}

.search-input-group {
    flex: 1;
    position: relative;
}

.search-input-group i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 18px;
}

.search-input-group input,
.search-input-group select {
    width: 100%;
    padding: 16px 16px 16px 48px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 16px;
    background-color: var(--bg-light);
    color: var(--text-dark);
    transition: var(--transition);
}

.search-input-group input:focus,
.search-input-group select:focus {
    border-color: var(--primary);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.btn-search {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: var(--bg-white);
    border: none;
    border-radius: var(--radius-sm);
    padding: 0 32px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-slow);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(15, 98, 254, 0.2);
}

.card-img-wrapper {
    position: relative;
    padding-top: 66.67%;
    overflow: hidden;
    background-color: var(--bg-light);
}

.card-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.card:hover .card-img-wrapper img {
    transform: scale(1.08);
}

.card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: var(--primary);
    color: var(--bg-white);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
}

.card-badge.sale {
    background-color: var(--accent);
}

.card-badge.rx {
    background-color: var(--secondary);
}

.card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-category {
    font-size: 13px;
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 8px;
}

.card-title {
    font-size: 18px;
    margin-bottom: 12px;
    line-height: 1.4;
    transition: var(--transition);
}

.card-title a:hover {
    color: var(--primary);
}

.card-desc {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    margin-top: auto;
}

.card-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-dark);
}

.card-price .original-price {
    font-size: 14px;
    color: var(--text-light);
    text-decoration: line-through;
    margin-left: 6px;
    font-weight: 400;
}

.card-btn {
    background-color: var(--primary-light);
    color: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}

.card-btn:hover {
    background-color: var(--primary);
    color: var(--bg-white);
    transform: rotate(90deg);
}

.category-icon-card {
    padding: 36px 24px;
    text-align: center;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-slow);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.category-icon-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(15, 151, 84, 0.2);
}

.category-icon-box {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--secondary-light);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 24px;
    transition: var(--transition);
}

.category-icon-card:hover .category-icon-box {
    background-color: var(--secondary);
    color: var(--bg-white);
    transform: scale(1.1);
}

.category-icon-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.category-icon-card p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.category-icon-card a {
    color: var(--secondary);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.category-icon-card a:hover {
    color: var(--secondary-dark);
}

.feature-box {
    display: flex;
    gap: 20px;
    padding: 24px;
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.feature-box:hover {
    border-color: rgba(15, 98, 254, 0.3);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.feature-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.feature-info p {
    font-size: 14px;
    color: var(--text-light);
}

.offers-showcase {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.offer-banner-large {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-size: cover;
    background-position: center;
    min-height: 380px;
    color: var(--bg-white);
}

.offer-banner-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(15, 98, 254, 0.9), rgba(15, 98, 254, 0.3));
    z-index: 1;
}

.offer-banner-large * {
    position: relative;
    z-index: 2;
}

.offer-tag {
    align-self: flex-start;
    background-color: var(--accent);
    color: var(--text-dark);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.offer-banner-large h3 {
    font-size: 32px;
    color: var(--bg-white);
    margin-bottom: 12px;
    max-width: 450px;
}

.offer-banner-large p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
    max-width: 400px;
}

.offer-banner-small {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-size: cover;
    background-position: center;
    color: var(--bg-white);
}

.offer-banner-small::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(7, 98, 51, 0.1), rgba(7, 98, 51, 0.9));
    z-index: 1;
}

.offer-banner-small * {
    position: relative;
    z-index: 2;
}

.offer-banner-small h3 {
    font-size: 24px;
    color: var(--bg-white);
    margin-bottom: 8px;
}

.offer-banner-small p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
}

.delivery-steps {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    position: relative;
}

.delivery-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
}

.delivery-step-num {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 20px auto;
    box-shadow: 0 0 0 6px var(--primary-light);
    position: relative;
}

.delivery-step h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.delivery-step p {
    font-size: 14px;
    color: var(--text-light);
}

.testimonial-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 40px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.testimonial-quote {
    color: var(--text-light);
    font-size: 16px;
    font-style: italic;
    margin-bottom: 30px;
    position: relative;
}

.testimonial-quote i {
    font-size: 24px;
    color: var(--primary-light);
    position: absolute;
    top: -15px;
    left: -10px;
    z-index: -1;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonial-user img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-user h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.testimonial-user p {
    font-size: 12px;
    color: var(--text-light);
}

.stars {
    color: var(--accent);
    font-size: 12px;
    display: flex;
    gap: 2px;
}

.newsletter-box {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-md);
    padding: 60px;
    color: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.newsletter-box h2 {
    color: var(--bg-white);
    font-size: 32px;
    margin-bottom: 12px;
}

.newsletter-box p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    margin-bottom: 30px;
    max-width: 540px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 600px;
}

.newsletter-form input {
    flex: 1;
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    font-size: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--bg-white);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form input:focus {
    background-color: var(--bg-white);
    color: var(--text-dark);
    border-color: var(--bg-white);
}

.newsletter-form button {
    background-color: var(--secondary);
    color: var(--bg-white);
    border: none;
    border-radius: var(--radius-sm);
    padding: 0 32px;
    font-weight: 600;
    cursor: pointer;
    font-size: 15px;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
}

footer {
    background-color: #0b0f19;
    color: #9ca3af;
    padding: 80px 0 30px 0;
    font-size: 14px;
    border-top: 4px solid var(--primary);
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--bg-white);
    margin-bottom: 20px;
}

.footer-logo-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--bg-white);
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.footer-col h3 {
    color: var(--bg-white);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background-color: var(--primary);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-col ul a:hover {
    color: var(--bg-white);
    transform: translateX(5px);
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

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

.footer-contact-item i {
    color: var(--primary);
    margin-top: 4px;
}

.footer-newsletter p {
    margin-bottom: 16px;
}

.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: var(--transition);
}

.social-btn:hover {
    background-color: var(--primary);
    color: var(--bg-white);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    color: #6b7280;
}

.footer-bottom-links a:hover {
    color: var(--bg-white);
}

.medicine-directory-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

.filter-sidebar {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px;
    height: fit-content;
}

.filter-group {
    margin-bottom: 28px;
}

.filter-group h3 {
    font-size: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.filter-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.filter-item:hover,
.filter-item.active {
    color: var(--primary);
    font-weight: 500;
}

.filter-count {
    background-color: var(--bg-light);
    padding: 2px 8px;
    border-radius: 100px;
    font-size: 11px;
}

.search-filter-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background-color: var(--bg-white);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.search-results-info {
    font-size: 15px;
    color: var(--text-light);
}

.sort-select-wrapper select {
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: var(--bg-light);
    font-size: 14px;
}

.medicine-inquiry-box {
    background-color: var(--primary-light);
    border: 1px dashed var(--primary);
    border-radius: var(--radius-md);
    padding: 32px;
    margin-top: 40px;
}

.medicine-inquiry-box h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.medicine-inquiry-box p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.inquiry-inline-form {
    display: flex;
    gap: 12px;
}

.inquiry-inline-form input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: var(--bg-white);
}

.faq-accordions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.faq-question {
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background-color: var(--bg-white);
}

.faq-answer {
    padding: 0 24px 20px 24px;
    color: var(--text-light);
    font-size: 14px;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background-color: var(--border-color);
}

.timeline-item {
    margin-bottom: 40px;
    position: relative;
    width: 50%;
    padding: 0 40px;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-badge {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary);
    border: 4px solid var(--bg-white);
    position: absolute;
    top: 10px;
    z-index: 10;
}

.timeline-item:nth-child(odd) .timeline-badge {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-badge {
    left: -10px;
}

.timeline-panel {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.timeline-year {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    background: linear-gradient(135deg, var(--bg-white), var(--bg-light));
    border: 1px solid var(--border-color);
    padding: 40px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.stat-number {
    font-size: 40px;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 8px;
}

.stat-title {
    font-size: 14px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.brand-showcase {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    opacity: 0.6;
}

.brand-logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 50px;
}

.contact-info-panel {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.contact-detail-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-detail-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-detail-info h4 {
    font-size: 16px;
    margin-bottom: 6px;
}

.contact-detail-info p {
    font-size: 14px;
    color: var(--text-light);
}

.working-hours-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    font-size: 14px;
}

.working-hours-table tr {
    border-bottom: 1px solid var(--border-color);
}

.working-hours-table td {
    padding: 12px 0;
}

.working-hours-table td:last-child {
    text-align: right;
    font-weight: 600;
}

.contact-form-panel {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.form-title {
    font-size: 24px;
    margin-bottom: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background-color: var(--bg-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background-color: var(--bg-white);
}

.map-placeholder {
    width: 100%;
    height: 380px;
    background-color: #e2e8f0;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    gap: 12px;
}

.map-placeholder i {
    font-size: 40px;
    color: var(--primary);
}

.file-upload-wrapper {
    position: relative;
    border: 2px dashed var(--border-color);
    padding: 30px;
    text-align: center;
    border-radius: var(--radius-sm);
    cursor: pointer;
    background-color: var(--bg-light);
    transition: var(--transition);
}

.file-upload-wrapper:hover {
    border-color: var(--primary);
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-placeholder i {
    font-size: 32px;
    color: var(--text-light);
    margin-bottom: 12px;
}

/* ==========================================================================
   Shopping Cart Styling
   ========================================================================== */

/* Cart Header actions button */
.cart-icon-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary);
    font-size: 18px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    margin-right: 8px;
    border: none;
    cursor: pointer;
}

.cart-icon-btn:hover {
    background-color: var(--primary);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: var(--accent);
    color: var(--text-dark);
    font-size: 11px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    transition: var(--transition);
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--text-dark);
    color: var(--bg-white);
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
}

.toast-notification.active {
    transform: translateY(0);
    opacity: 1;
}

.toast-notification i {
    color: var(--secondary);
    font-size: 18px;
}

/* Cart Page Layout */
.cart-layout {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 30px;
    align-items: start;
    margin-top: 30px;
}

@media (max-width: 991px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
}

.cart-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.cart-card h2 {
    font-size: 20px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-light);
}

.cart-empty {
    text-align: center;
    padding: 50px 20px;
}

.cart-empty i {
    font-size: 64px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.cart-empty p {
    color: var(--text-light);
    margin-bottom: 24px;
}

/* Cart Items */
.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.cart-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.cart-item-category {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 8px;
    display: inline-block;
}

.cart-item-price {
    font-weight: 700;
    color: var(--primary);
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-qty-ctrl {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.cart-qty-btn {
    background: var(--bg-light);
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.cart-qty-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.cart-qty-val {
    padding: 0 12px;
    font-size: 14px;
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.cart-remove-btn {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
}

.cart-remove-btn:hover {
    color: #ef4444;
}

/* Order Totals */
.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 15px;
}

.summary-row.total {
    border-top: 2px dashed var(--border-color);
    padding-top: 16px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

/* Rx Required Warning badge */
.rx-badge {
    background-color: var(--accent-light);
    color: #b45309;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
}

/* Promo Box */
.promo-box {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.promo-box input {
    flex-grow: 1;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.promo-box button {
    padding: 10px 16px;
    background-color: var(--text-dark);
    color: var(--bg-white);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.promo-box button:hover {
    background-color: var(--primary);
}

/* Mobile header tweaks to align the cart icon */
@media (max-width: 768px) {
    .cart-badge-mobile {
        background-color: var(--accent);
        color: var(--text-dark);
        font-size: 12px;
        font-weight: 700;
        padding: 2px 8px;
        border-radius: 12px;
        margin-left: 6px;
    }
}

/* ==========================================================================
   Product Detail Page Styling
   ========================================================================== */

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 50px;
    align-items: start;
    margin-top: 30px;
}

@media (max-width: 991px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.product-gallery {
    position: sticky;
    top: 100px;
}

.product-image-container {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
}

.product-image-container img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    transition: transform 0.5s var(--transition);
}

.product-image-container:hover img {
    transform: scale(1.03);
}

.trust-badge-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    text-align: center;
}

.trust-badge-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px 12px;
    box-shadow: var(--shadow-sm);
}

.trust-badge-card i {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 8px;
}

.trust-badge-card h4 {
    font-size: 13px;
    color: var(--text-dark);
}

/* Info Panel */
.product-info-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.product-category-tag {
    background-color: var(--primary-light);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 16px;
}

.product-main-title {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.rx-required-notice {
    background-color: var(--accent-light);
    color: #b45309;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    border-left: 4px solid var(--accent);
}

.product-view-price {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 24px;
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.product-view-price .original {
    font-size: 18px;
    color: var(--text-light);
    text-decoration: line-through;
    font-weight: 400;
}

.product-view-desc {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Purchase Section */
.purchase-block {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 24px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

@media (max-width: 480px) {
    .purchase-block {
        flex-direction: column;
        align-items: stretch;
    }
}

.qty-adjuster {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    height: 48px;
    width: 140px;
    overflow: hidden;
}

.qty-adjuster button {
    background: var(--bg-light);
    border: none;
    width: 45px;
    height: 100%;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: var(--transition);
}

.qty-adjuster button:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.qty-adjuster input {
    width: 50px;
    text-align: center;
    border: none;
    font-size: 16px;
    font-weight: 600;
    background: transparent;
    height: 100%;
}

.btn-add-cart-large {
    flex-grow: 1;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--bg-white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.btn-add-cart-large:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Delivery Timeline Card */
.delivery-timeline-box {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-bottom: 30px;
}

.delivery-timeline-item {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.delivery-timeline-item:last-child {
    margin-bottom: 0;
}

.delivery-timeline-item i {
    font-size: 20px;
    color: var(--secondary);
    margin-top: 2px;
}

.delivery-timeline-item h5 {
    font-size: 14px;
    margin-bottom: 4px;
}

.delivery-timeline-item p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.4;
}

/* Product Tabs */
.tabs-container {
    margin-top: 50px;
}

.tabs-nav {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    gap: 30px;
    margin-bottom: 30px;
    overflow-x: auto;
    scrollbar-width: none;
}

.tabs-nav::-webkit-scrollbar {
    display: none;
}

.tab-link-btn {
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-light);
    padding: 12px 0 16px 0;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    transition: var(--transition);
}

.tab-link-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary);
    transition: var(--transition);
}

.tab-link-btn.active {
    color: var(--primary);
}

.tab-link-btn.active::after {
    width: 100%;
}

.tab-panel-content {
    display: none;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    line-height: 1.7;
}

.tab-panel-content.active {
    display: block;
    animation: fadeInTab 0.4s ease-out;
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-panel-content h4 {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.tab-panel-content ul {
    padding-left: 20px;
    margin-bottom: 16px;
}

.tab-panel-content li {
    margin-bottom: 8px;
}

/* Center card category, title, and paragraph descriptions on cards */
.card .card-category,
.card .card-title,
.card .card-desc,
.card p {
    text-align: center;
    width: 100%;
}

/* Mobile Navbar Cart Button Styles */
.mobile-cart-btn {
    display: none;
    margin-left: auto;
    margin-right: 20px;
    align-items: center;
    position: relative;
}

@media (max-width: 991px) {
    .mobile-cart-btn {
        display: flex;
    }
}

/* Center offer-banner-large and offer-banner-small content */
.offer-banner-large,
.offer-banner-small {
    align-items: center;
    text-align: center;
}

.offer-banner-large > *,
.offer-banner-small > * {
    align-self: center !important;
}

.offer-banner-small {
    justify-content: center;
}

/* Center grid-2 content on phone interface only */
@media (max-width: 576px) {
    .grid-2 {
        text-align: center;
    }
    
    .grid-2 > div {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .grid-2 .btn-primary,
    .grid-2 .btn-secondary,
    .grid-2 .section-tag,
    .grid-2 img {
        align-self: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .grid-2 form,
    .grid-2 input,
    .grid-2 select,
    .grid-2 textarea,
    .grid-2 label {
        text-align: left !important;
    }
    
    .grid-2 form {
        width: 100% !important;
    }
}


