/* Drugs OK - Global Styles */
:root {
    --green-dark: #3B740F;
    --green-mid: #719430;
    --green-light: #8bba34;
    --red-accent: #e63946;
    --bg-light: #f8f8f8;
    --text-main: #555555;
    --text-secondary: #666666;
    --white: #ffffff;
    --border: #e5e5e5;
    --shadow: 0 2px 15px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
}

* { box-sizing: border-box; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: var(--text-main); background: var(--bg-light); }

/* ===== HEADER ===== */
.site-header { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 1000; }
.header-top { background: var(--green-dark); color: #fff; font-size: 0.8rem; padding: 6px 0; }
.header-top a { color: rgba(255,255,255,0.85); text-decoration: none; }
.header-main { padding: 12px 0; }
.site-logo img { height: 55px; width: auto; }
.site-logo .site-name { font-size: 1.5rem; font-weight: 700; color: var(--green-dark); line-height: 1.1; }
.site-logo .site-tagline { font-size: 0.72rem; color: var(--text-secondary); }

/* Navbar */
.main-nav .nav-link { color: var(--text-main) !important; font-weight: 500; font-size: 0.9rem; padding: 8px 14px !important; position: relative; transition: color 0.2s; }
.main-nav .nav-link::after { content: ''; position: absolute; bottom: 0; left: 14px; right: 14px; height: 2px; background: var(--green-dark); transform: scaleX(0); transition: transform 0.2s; }
.main-nav .nav-link:hover, .main-nav .nav-link.active { color: var(--green-dark) !important; }
.main-nav .nav-link:hover::after, .main-nav .nav-link.active::after { transform: scaleX(1); }

/* Cart badge */
.cart-btn { position: relative; }
.cart-count { position: absolute; top: -8px; right: -8px; background: var(--red-accent); color: #fff; font-size: 0.7rem; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* ===== BUTTONS ===== */
.btn-primary-green { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn-primary-green:hover { background: var(--green-mid); border-color: var(--green-mid); color: #fff; }
.btn-outline-green { border-color: var(--green-dark); color: var(--green-dark); }
.btn-outline-green:hover { background: var(--green-dark); color: #fff; }

/* ===== HERO SECTION ===== */
.hero-section { background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 60%, var(--green-light) 100%); min-height: 520px; display: flex; align-items: center; position: relative; overflow: hidden; }
.hero-section::before { content: ''; position: absolute; top: -50%; right: -10%; width: 600px; height: 600px; background: rgba(255,255,255,0.05); border-radius: 50%; }
.hero-section::after { content: ''; position: absolute; bottom: -30%; left: -5%; width: 400px; height: 400px; background: rgba(255,255,255,0.03); border-radius: 50%; }
.hero-title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; color: #fff; line-height: 1.15; }
.hero-tagline { font-size: 1.15rem; color: rgba(255,255,255,0.9); margin: 16px 0 28px; }
.hero-btn { background: #fff; color: var(--green-dark); border: none; padding: 14px 36px; font-size: 1rem; font-weight: 700; border-radius: 50px; transition: all 0.3s; box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.hero-btn:hover { background: var(--red-accent); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(230,57,70,0.4); }
.hero-image { filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3)); animation: float 3s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ===== SECTION HEADINGS ===== */
.section-title { font-size: 1.8rem; font-weight: 700; color: var(--green-dark); position: relative; padding-bottom: 12px; margin-bottom: 8px; }
.section-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 50px; height: 3px; background: var(--green-light); border-radius: 2px; }
.section-title.text-center::after { left: 50%; transform: translateX(-50%); }

/* ===== PRODUCT CARDS ===== */
.product-card { background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); transition: all 0.3s; box-shadow: var(--shadow); }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.product-card .product-image-wrap { position: relative; background: #f9f9f9; padding: 20px; text-align: center; height: 220px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-card .product-image-wrap img { max-height: 180px; width: auto; max-width: 100%; object-fit: contain; transition: transform 0.4s; }
.product-card:hover .product-image-wrap img { transform: scale(1.06); }
.product-card .product-body { padding: 16px; }
.product-card .product-name { font-weight: 600; font-size: 0.95rem; color: #333; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .product-price { font-size: 1.1rem; font-weight: 700; color: var(--green-dark); }
.product-card .product-price-regular { font-size: 0.85rem; color: #999; text-decoration: line-through; margin-left: 6px; }
.sale-badge { position: absolute; top: 12px; left: 12px; background: var(--red-accent); color: #fff; font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.product-card .add-to-cart-btn { width: 100%; background: var(--green-dark); color: #fff; border: none; padding: 10px; border-radius: 8px; font-weight: 600; font-size: 0.9rem; transition: background 0.2s; margin-top: 10px; }
.product-card .add-to-cart-btn:hover { background: var(--green-mid); }

/* ===== CATEGORIES ===== */
.category-card { border-radius: 12px; padding: 28px 20px; text-align: center; color: #fff; cursor: pointer; transition: all 0.3s; border: none; }
.category-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.2); }
.category-card .cat-icon { font-size: 2.5rem; margin-bottom: 10px; }
.category-card .cat-name { font-size: 1.2rem; font-weight: 700; }
.cat-a { background: linear-gradient(135deg, #3B740F, #8bba34); }
.cat-b { background: linear-gradient(135deg, #e63946, #ff6b6b); }
.cat-c { background: linear-gradient(135deg, #2196F3, #64B5F6); }
.cat-d { background: linear-gradient(135deg, #FF9800, #FFB74D); }
.cat-all { background: linear-gradient(135deg, #9C27B0, #CE93D8); }

/* ===== STATS BAR ===== */
.stats-bar { background: var(--green-dark); color: #fff; padding: 28px 0; }
.stat-item { text-align: center; }
.stat-item .stat-number { font-size: 2rem; font-weight: 800; color: var(--green-light); }
.stat-item .stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.85); margin-top: 4px; }

/* ===== WHY CHOOSE US ===== */
.feature-card { background: #fff; border-radius: 12px; padding: 30px 24px; text-align: center; border: 1px solid var(--border); box-shadow: var(--shadow); transition: all 0.3s; }
.feature-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.feature-card .feature-icon { width: 70px; height: 70px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 1.8rem; }
.feature-card h5 { font-weight: 700; color: var(--green-dark); margin-bottom: 10px; }

/* ===== BLOG CARDS ===== */
.blog-card { background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); transition: all 0.3s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.blog-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-card .blog-body { padding: 20px; }
.blog-card .blog-title { font-weight: 700; color: #333; font-size: 1rem; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card .blog-excerpt { font-size: 0.88rem; color: var(--text-secondary); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card .read-more { color: var(--green-dark); font-weight: 600; font-size: 0.88rem; text-decoration: none; }
.blog-card .read-more:hover { color: var(--green-mid); }

/* ===== FOOTER ===== */
.site-footer { background: #1a1a2e; color: rgba(255,255,255,0.8); padding: 56px 0 0; }
.footer-logo { max-height: 60px; width: auto; margin-bottom: 12px; }
.footer-desc { font-size: 0.88rem; line-height: 1.7; color: rgba(255,255,255,0.65); }
.footer-heading { color: #fff; font-weight: 700; font-size: 1rem; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.footer-heading::after { content: ''; position: absolute; bottom: 0; left: 0; width: 30px; height: 2px; background: var(--green-light); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--green-light); }
.footer-links a i { width: 18px; color: var(--green-light); }
.social-links { display: flex; gap: 10px; }
.social-links a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.7); transition: all 0.3s; font-size: 0.9rem; }
.social-links a:hover { background: var(--green-dark); color: #fff; }
.footer-bottom { background: rgba(0,0,0,0.2); padding: 16px 0; margin-top: 40px; font-size: 0.83rem; color: rgba(255,255,255,0.5); }

/* ===== SHOP ===== */
.filter-sidebar { background: #fff; border-radius: 12px; padding: 24px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.filter-heading { font-weight: 700; color: var(--green-dark); font-size: 1rem; border-bottom: 2px solid var(--border); padding-bottom: 10px; margin-bottom: 16px; }
.filter-item input[type=checkbox], .filter-item input[type=radio] { accent-color: var(--green-dark); }
.sort-select { border-radius: 8px; border-color: var(--border); font-size: 0.9rem; }
.sort-select:focus { border-color: var(--green-dark); box-shadow: 0 0 0 0.25rem rgba(59,116,15,0.15); }

/* ===== PRODUCT DETAIL ===== */
.product-main-image { border-radius: 12px; border: 1px solid var(--border); padding: 20px; background: #fff; display: flex; align-items: center; justify-content: center; min-height: 380px; }
.product-main-image img { max-height: 340px; max-width: 100%; object-fit: contain; }
.product-price-large { font-size: 2rem; font-weight: 800; color: var(--green-dark); }
.product-price-regular-large { font-size: 1.2rem; color: #999; text-decoration: line-through; }
.qty-input { width: 80px; text-align: center; border-radius: 8px; border: 2px solid var(--border); font-weight: 700; padding: 8px; }
.qty-btn { width: 38px; height: 38px; border-radius: 8px; background: var(--bg-light); border: 2px solid var(--border); font-size: 1.1rem; font-weight: 700; cursor: pointer; transition: background 0.2s; }
.qty-btn:hover { background: var(--green-dark); color: #fff; border-color: var(--green-dark); }
.add-to-cart-large { background: var(--green-dark); color: #fff; border: none; padding: 14px 36px; border-radius: 50px; font-weight: 700; font-size: 1rem; transition: all 0.3s; }
.add-to-cart-large:hover { background: var(--green-mid); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(59,116,15,0.3); }
.tab-content-custom .nav-link { color: var(--text-main); font-weight: 500; }
.tab-content-custom .nav-link.active { color: var(--green-dark); border-bottom: 2px solid var(--green-dark); background: none; }

/* ===== CART ===== */
.cart-table th { background: var(--bg-light); font-weight: 600; color: var(--text-main); font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 2px solid var(--border); }
.cart-table .product-cell { display: flex; align-items: center; gap: 14px; }
.cart-table .product-cell img { width: 70px; height: 70px; object-fit: contain; border-radius: 8px; border: 1px solid var(--border); background: #fff; padding: 4px; }
.cart-qty-input { width: 70px; text-align: center; border-radius: 8px; }
.order-summary-card { background: #fff; border-radius: 12px; border: 1px solid var(--border); padding: 24px; box-shadow: var(--shadow); }
.order-summary-card .summary-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.order-summary-card .summary-total { font-size: 1.2rem; font-weight: 700; color: var(--green-dark); border-bottom: none; padding-top: 12px; }

/* ===== CHECKOUT ===== */
.checkout-card { background: #fff; border-radius: 12px; border: 1px solid var(--border); padding: 28px; box-shadow: var(--shadow); }
.form-control:focus, .form-select:focus { border-color: var(--green-dark); box-shadow: 0 0 0 0.25rem rgba(59,116,15,0.15); }
.payment-option { border: 2px solid var(--border); border-radius: 10px; padding: 16px; cursor: pointer; transition: all 0.2s; margin-bottom: 10px; }
.payment-option:hover, .payment-option.selected { border-color: var(--green-dark); background: rgba(59,116,15,0.04); }
.payment-option input[type=radio] { accent-color: var(--green-dark); }

/* ===== ORDERS ===== */
.order-card { background: #fff; border-radius: 12px; border: 1px solid var(--border); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow); transition: box-shadow 0.2s; }
.order-card:hover { box-shadow: var(--shadow-hover); }
.status-timeline { display: flex; justify-content: space-between; position: relative; padding: 20px 0; }
.status-timeline::before { content: ''; position: absolute; top: 32px; left: 10%; right: 10%; height: 2px; background: var(--border); z-index: 0; }
.timeline-step { text-align: center; position: relative; z-index: 1; flex: 1; }
.timeline-step .step-icon { width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; font-size: 1rem; }
.timeline-step.done .step-icon { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.timeline-step.active .step-icon { background: var(--green-light); border-color: var(--green-light); color: #fff; box-shadow: 0 0 0 4px rgba(139,186,52,0.2); }
.timeline-step .step-label { font-size: 0.78rem; color: var(--text-secondary); font-weight: 500; }
.timeline-step.done .step-label, .timeline-step.active .step-label { color: var(--green-dark); font-weight: 700; }

/* ===== ALERTS ===== */
.alert-success-custom { background: rgba(59,116,15,0.08); border: 1px solid rgba(59,116,15,0.25); color: var(--green-dark); border-radius: 10px; padding: 14px 20px; }
.alert-error-custom { background: rgba(230,57,70,0.08); border: 1px solid rgba(230,57,70,0.25); color: var(--red-accent); border-radius: 10px; padding: 14px 20px; }

/* ===== AUTH ===== */
.auth-card { background: #fff; border-radius: 16px; padding: 40px; box-shadow: 0 10px 40px rgba(0,0,0,0.1); max-width: 480px; margin: 0 auto; }
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo img { height: 60px; }
.auth-title { font-size: 1.6rem; font-weight: 700; color: var(--green-dark); text-align: center; margin-bottom: 6px; }
.auth-subtitle { text-align: center; color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 28px; }

/* ===== BREADCRUMB ===== */
.page-header { background: #fff; border-bottom: 1px solid var(--border); padding: 16px 0; margin-bottom: 0; }
.breadcrumb { margin: 0; font-size: 0.88rem; }
.breadcrumb-item + .breadcrumb-item::before { color: #aaa; }
.breadcrumb-item a { color: var(--green-dark); text-decoration: none; }
.breadcrumb-item.active { color: var(--text-secondary); }

/* ===== PAGINATION ===== */
.pagination .page-link { color: var(--green-dark); border-radius: 8px !important; margin: 0 2px; }
.pagination .page-link:hover { background: var(--green-dark); color: #fff; }
.pagination .page-item.active .page-link { background: var(--green-dark); border-color: var(--green-dark); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-section { min-height: 380px; }
    .hero-title { font-size: 1.8rem; }
    .hero-image { display: none; }
    .product-card .product-image-wrap { height: 180px; }
    .stats-bar .stat-item { margin-bottom: 16px; }
}
