/* ==========================================================================
   VMS PHARMACIES — Modern E-Commerce Design System
   Clean, professional pharmacy styling
   ========================================================================== */

/* ---------- 1. DESIGN TOKENS ---------- */
:root {
    --vms-primary: #1a56db;
    --vms-primary-dark: #1e40af;
    --vms-primary-light: #3b82f6;
    --vms-primary-subtle: #eff6ff;
    --vms-accent: #0d9488;
    --vms-accent-dark: #0f766e;
    --vms-accent-light: #14b8a6;
    --vms-danger: #dc2626;
    --vms-success: #16a34a;
    --vms-warning: #ea580c;
    --vms-white: #ffffff;
    --vms-gray-50: #f8fafc;
    --vms-gray-100: #f1f5f9;
    --vms-gray-200: #e2e8f0;
    --vms-gray-300: #cbd5e1;
    --vms-gray-400: #94a3b8;
    --vms-gray-500: #64748b;
    --vms-gray-600: #475569;
    --vms-gray-700: #334155;
    --vms-gray-800: #1e293b;
    --vms-gray-900: #0f172a;
    --vms-radius: 10px;
    --vms-radius-sm: 6px;
    --vms-radius-lg: 16px;
    --vms-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --vms-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --vms-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --vms-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --vms-shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --vms-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- 2. BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--vms-gray-700);
    background: var(--vms-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--vms-primary); text-decoration: none; transition: color var(--vms-transition); }
a:hover { color: var(--vms-primary-dark); }
img { max-width: 100%; height: auto; }

.text-gradient {
    background: linear-gradient(135deg, var(--vms-primary), var(--vms-accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.vms-text-primary { color: var(--vms-primary) !important; }

/* ---------- 3. BUTTONS ---------- */
.vms-btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    background: var(--vms-primary); color: #fff !important;
    border: none; border-radius: var(--vms-radius-sm);
    font-weight: 600; padding: 0.6rem 1.5rem;
    transition: all var(--vms-transition); cursor: pointer;
    text-decoration: none;
}
.vms-btn-primary:hover, .vms-btn-primary:focus {
    background: var(--vms-primary-dark); color: #fff;
    box-shadow: var(--vms-shadow-md); transform: translateY(-1px);
}

.vms-btn-outline {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    background: transparent; color: var(--vms-primary);
    border: 1.5px solid var(--vms-primary); border-radius: var(--vms-radius-sm);
    font-weight: 600; padding: 0.6rem 1.5rem;
    transition: all var(--vms-transition); cursor: pointer;
    text-decoration: none;
}
.vms-btn-outline:hover, .vms-btn-outline:focus {
    background: var(--vms-primary); color: #fff;
    box-shadow: var(--vms-shadow-md); transform: translateY(-1px);
}

.vms-btn-danger {
    background: var(--vms-danger); color: #fff;
    border: none; border-radius: var(--vms-radius-sm);
    font-weight: 600; padding: 0.6rem 1.5rem; cursor: pointer;
}

/* ---------- 4. TOP BAR ---------- */
.vms-topbar {
    background: var(--vms-gray-900); color: var(--vms-gray-400);
    font-size: 0.78rem; padding: 0.35rem 0; letter-spacing: 0.01em;
}
.vms-topbar a { color: var(--vms-accent-light); font-weight: 500; }
.vms-topbar a:hover { color: #fff; }
.vms-topbar span { display: flex; align-items: center; gap: 0.25rem; }

/* ---------- 5. NAVBAR ---------- */
.vms-navbar {
    background: var(--vms-white) !important;
    border-bottom: 1px solid var(--vms-gray-200);
    padding: 0.6rem 0;
    z-index: 1040;
    box-shadow: var(--vms-shadow-sm);
}
.vms-navbar.navbar { background: var(--vms-white) !important; }

.vms-nav-actions { display: flex; align-items: center; gap: 0.5rem; }

.vms-brand {
    display: flex; align-items: center; gap: 0.6rem;
    text-decoration: none; color: var(--vms-gray-800); font-weight: 800; font-size: 1.2rem;
}
.vms-brand:hover { color: var(--vms-gray-800); text-decoration: none; }

.vms-brand-icon {
    display: flex; align-items: center; justify-content: center;
    width: 34px; height: 34px;
    background: var(--vms-primary); color: #fff;
    border-radius: var(--vms-radius-sm); font-size: 0.9rem;
}
.vms-brand-text span { color: var(--vms-primary); }

.vms-nav-links .nav-link {
    color: var(--vms-gray-600); font-weight: 500; font-size: 0.88rem;
    padding: 0.45rem 0.9rem !important; border-radius: var(--vms-radius-sm);
    transition: all var(--vms-transition);
}
.vms-nav-links .nav-link:hover,
.vms-nav-links .nav-link.active {
    color: var(--vms-primary); background: var(--vms-primary-subtle);
}

.vms-icon-btn {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%;
    color: var(--vms-gray-600); background: var(--vms-gray-100);
    transition: all var(--vms-transition); font-size: 0.95rem;
    text-decoration: none; position: relative; border: none;
}
.vms-icon-btn:hover { color: var(--vms-primary); background: var(--vms-primary-subtle); }

.vms-badge {
    position: absolute; top: -3px; right: -3px;
    background: var(--vms-danger); color: #fff;
    font-size: 0.6rem; font-weight: 700;
    min-width: 18px; height: 18px; padding: 0 4px;
    border-radius: 50px; display: flex; align-items: center; justify-content: center;
    line-height: 1; border: 2px solid var(--vms-white);
}

.vms-toggler {
    border: 1px solid var(--vms-gray-300); border-radius: var(--vms-radius-sm);
    padding: 0.35rem 0.55rem; color: var(--vms-gray-600); font-size: 1.1rem;
    background: transparent;
}

.vms-dropdown {
    border: 1px solid var(--vms-gray-200); border-radius: var(--vms-radius);
    box-shadow: var(--vms-shadow-lg); padding: 0.35rem; margin-top: 0.5rem !important;
    min-width: 180px;
}
.vms-nav-actions .dropdown-menu-end {
    right: 0; left: auto;
}
@media (max-width: 991.98px) {
    .vms-nav-actions .dropdown-menu-end { right: 0; left: auto; position: absolute; }
}
.vms-dropdown .dropdown-item {
    border-radius: var(--vms-radius-sm); padding: 0.5rem 0.75rem;
    font-size: 0.85rem; font-weight: 500; color: var(--vms-gray-600);
    transition: all var(--vms-transition);
}
.vms-dropdown .dropdown-item:hover { background: var(--vms-primary-subtle); color: var(--vms-primary); }

/* ---------- 6. HERO ---------- */
.vms-hero {
    background: var(--vms-primary-subtle);
    padding: 3.5rem 0;
    position: relative;
    overflow: hidden;
}
.vms-hero::before {
    content: '';
    position: absolute; top: -50%; right: -20%; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(13,148,136,0.08) 0%, transparent 70%);
    border-radius: 50%;
}
.min-vh-50 { min-height: auto; }

.vms-hero-badge {
    display: inline-flex; align-items: center; gap: 0.3rem;
    background: var(--vms-white); color: var(--vms-primary);
    font-size: 0.78rem; font-weight: 600; padding: 0.35rem 0.9rem;
    border-radius: 50px; margin-bottom: 0.75rem;
    box-shadow: var(--vms-shadow-sm);
}

.vms-hero-title {
    font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800;
    color: var(--vms-gray-900); line-height: 1.15; margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}
.vms-hero-text {
    font-size: 1rem; color: var(--vms-gray-500);
    max-width: 440px; margin-bottom: 1.25rem; line-height: 1.7;
}

.vms-hero-stats { display: flex; gap: 1.75rem; }
.vms-stat { display: flex; flex-direction: column; }
.vms-stat strong { font-size: 1.4rem; font-weight: 800; color: var(--vms-gray-800); }
.vms-stat span { font-size: 0.75rem; color: var(--vms-gray-500); text-transform: uppercase; letter-spacing: 0.03em; }

.vms-hero-visual { position: relative; }
.vms-hero-icon-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem;
    max-width: 300px; margin: 0 auto;
}
.vms-hero-icon-card {
    background: var(--vms-white); border-radius: var(--vms-radius);
    padding: 1.25rem 1rem; text-align: center;
    box-shadow: var(--vms-shadow-md); border: 1px solid var(--vms-gray-100);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.vms-hero-icon-card:hover {
    transform: translateY(-4px); box-shadow: var(--vms-shadow-lg);
}
.vms-hero-icon-card i {
    font-size: 1.6rem; color: var(--vms-primary);
    margin-bottom: 0.4rem; display: block;
}
.vms-hero-icon-card.accent i { color: var(--vms-accent); }
.vms-hero-icon-card span {
    font-size: 0.78rem; font-weight: 600; color: var(--vms-gray-600);
    display: block;
}

/* ---------- 7. TRUST BAR ---------- */
.vms-trust-bar {
    background: var(--vms-white);
    border-bottom: 1px solid var(--vms-gray-200);
}
.vms-trust-item {
    display: flex; flex-direction: column; align-items: center;
    text-align: center; gap: 0.3rem; padding: 0.5rem 0.25rem;
}
.vms-trust-item i {
    font-size: 1.3rem; color: var(--vms-primary); flex-shrink: 0;
    width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    background: var(--vms-primary-subtle); border-radius: 50%;
}
.vms-trust-item strong { font-size: 0.8rem; color: var(--vms-gray-800); display: block; }
.vms-trust-item span { font-size: 0.72rem; color: var(--vms-gray-500); display: block; }

/* ---------- 8. SECTIONS ---------- */
.vms-section { padding: 2.5rem 0; }
.vms-section-header { text-align: center; margin-bottom: 1.75rem; }
.vms-section-header h2 {
    font-size: 1.5rem; font-weight: 800; color: var(--vms-gray-800);
    margin-bottom: 0.35rem; letter-spacing: -0.02em;
}
.vms-section-header p { color: var(--vms-gray-500); font-size: 0.9rem; margin-bottom: 0; }
.vms-section-header.text-white h2 { color: #fff; }
.vms-section-header.text-white p { color: rgba(255,255,255,0.8); }

.vms-page-header { margin-bottom: 1.25rem; }
.vms-page-title {
    font-size: 1.5rem; font-weight: 800; color: var(--vms-gray-800);
    margin-bottom: 0; letter-spacing: -0.02em;
}
.vms-results-count {
    background: var(--vms-primary-subtle); color: var(--vms-primary);
    font-size: 0.75rem; font-weight: 600; padding: 0.3rem 0.65rem; border-radius: 50px;
}

/* ---------- 9. CATEGORY CARDS ---------- */
.vms-category-card {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: 1.25rem 0.75rem; background: var(--vms-white);
    border: 1px solid var(--vms-gray-200); border-radius: var(--vms-radius);
    text-decoration: none; color: var(--vms-gray-700);
    transition: all 0.25s ease; height: 100%;
}
.vms-category-card:hover {
    border-color: var(--vms-primary-light); box-shadow: var(--vms-shadow-md);
    transform: translateY(-3px); color: var(--vms-primary);
}
.vms-category-icon {
    font-size: 1.6rem; margin-bottom: 0.5rem; line-height: 1;
    width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
    background: var(--vms-primary-subtle); border-radius: 50%; color: var(--vms-primary);
}
.vms-category-icon i { font-size: 1.1rem; }
.vms-category-card h6 { font-weight: 700; margin-bottom: 0.4rem; font-size: 0.82rem; }
.vms-category-arrow {
    margin-top: auto; color: var(--vms-gray-400); font-size: 0.75rem;
    transition: transform var(--vms-transition);
}
.vms-category-card:hover .vms-category-arrow { transform: translateX(4px); color: var(--vms-primary); }

/* ---------- 10. PRODUCT CARDS ---------- */
.vms-product-card {
    background: var(--vms-white); border: 1px solid var(--vms-gray-200);
    border-radius: var(--vms-radius); overflow: hidden;
    transition: all 0.25s ease; height: 100%; display: flex; flex-direction: column;
}
.vms-product-card:hover {
    border-color: var(--vms-gray-300); box-shadow: var(--vms-shadow-lg);
    transform: translateY(-3px);
}
.vms-product-img-wrap {
    position: relative; display: block; aspect-ratio: 1/1;
    overflow: hidden; background: var(--vms-gray-50);
}
.vms-product-img-wrap img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s ease;
}
.vms-product-card:hover .vms-product-img-wrap img { transform: scale(1.06); }

.vms-product-placeholder {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    background: var(--vms-gray-100); color: var(--vms-gray-400); font-size: 2rem;
}
.vms-sale-tag {
    position: absolute; top: 0.6rem; left: 0.6rem;
    background: var(--vms-danger); color: #fff;
    font-size: 0.65rem; font-weight: 700; padding: 0.2rem 0.55rem;
    border-radius: 50px; z-index: 2; text-transform: uppercase; letter-spacing: 0.3px;
}
.vms-sale-tag-lg { font-size: 0.8rem; padding: 0.35rem 0.7rem; }

.vms-wishlist-btn {
    position: absolute; top: 0.6rem; right: 0.6rem;
    width: 30px; height: 30px; border-radius: 50%;
    background: rgba(255,255,255,0.9); border: none;
    display: flex; align-items: center; justify-content: center;
    color: var(--vms-gray-400); cursor: pointer; z-index: 2;
    transition: all var(--vms-transition); backdrop-filter: blur(4px);
}
.vms-wishlist-btn:hover { color: var(--vms-danger); transform: scale(1.1); }

.vms-product-body {
    padding: 0.65rem 0.75rem; display: flex; flex-direction: column; flex-grow: 1;
}
.vms-product-cat {
    font-size: 0.65rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.5px; color: var(--vms-accent); margin-bottom: 0.2rem;
}
.vms-product-name {
    font-size: 0.82rem; font-weight: 600; color: var(--vms-gray-800);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; margin-bottom: 0.4rem; line-height: 1.35;
    text-decoration: none;
}
.vms-product-name:hover { color: var(--vms-primary); }

.vms-product-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.vms-product-price { display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; margin-top: auto; }
.vms-price-current { font-weight: 700; font-size: 0.95rem; color: var(--vms-primary); }
.vms-price-current.sale { color: var(--vms-danger); }
.vms-price-old { font-size: 0.75rem; color: var(--vms-gray-400); text-decoration: line-through; }

.vms-stock-badge { font-size: 0.65rem; font-weight: 600; padding: 0.15rem 0.45rem; border-radius: 50px; }
.vms-stock-badge.in-stock { background: #dcfce7; color: #15803d; }
.vms-stock-badge.out-of-stock { background: #fee2e2; color: #991b1b; }

/* ---------- 11. PROMO CARDS ---------- */
.vms-promo-card {
    background: var(--vms-white); border: 1px solid var(--vms-gray-200);
    border-radius: var(--vms-radius); padding: 1.25rem; height: 100%;
    position: relative; overflow: hidden;
    border-left: 4px solid var(--vms-primary);
}
.vms-promo-card h5 { font-weight: 700; color: var(--vms-gray-800); margin-bottom: 0.4rem; font-size: 1rem; }
.vms-promo-card p { color: var(--vms-gray-500); font-size: 0.85rem; margin-bottom: 0.75rem; }
.vms-promo-badge {
    display: inline-block; background: var(--vms-danger); color: #fff;
    font-weight: 700; font-size: 0.75rem; padding: 0.25rem 0.6rem;
    border-radius: 50px; margin-bottom: 0.6rem;
}
.vms-promo-code {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: var(--vms-primary-subtle); border: 1.5px dashed var(--vms-primary);
    border-radius: var(--vms-radius-sm); padding: 0.35rem 0.65rem; font-size: 0.82rem;
}
.vms-promo-code strong { color: var(--vms-primary); font-size: 0.9rem; }

/* ---------- 12. SALE SECTION ---------- */
.vms-sale-section { background: var(--vms-gray-900); }

/* ---------- 13. BANNER CARDS ---------- */
.vms-banner-card {
    border-radius: var(--vms-radius); overflow: hidden; position: relative;
    background: var(--vms-gray-100); height: 100%; border: 1px solid var(--vms-gray-200);
}
.vms-banner-card img { width: 100%; height: 220px; object-fit: cover; }
.vms-banner-content { padding: 1rem; }
.vms-banner-content h4 { font-weight: 700; color: var(--vms-gray-800); margin-bottom: 0.4rem; font-size: 1.05rem; }
.vms-banner-content p { color: var(--vms-gray-500); font-size: 0.85rem; margin-bottom: 0.75rem; }

/* ---------- 14. CAROUSEL ---------- */
.vms-carousel .carousel-inner { border-radius: var(--vms-radius); overflow: hidden; }
.vms-carousel-caption {
    background: linear-gradient(0deg, rgba(0,0,0,0.65) 0%, transparent 100%);
    left: 0; right: 0; bottom: 0; padding: 1.5rem; text-align: left;
}
.vms-carousel-caption h3 { font-weight: 700; margin-bottom: 0.35rem; font-size: 1.2rem; }
.vms-carousel-caption p { opacity: 0.9; margin-bottom: 0.5rem; font-size: 0.9rem; }

/* ---------- 15. NEWSLETTER ---------- */
.vms-newsletter { background: var(--vms-primary); padding: 3rem 0; color: #fff; }
.vms-newsletter-icon { font-size: 2rem; margin-bottom: 0.75rem; display: block; opacity: 0.9; }
.vms-newsletter h3 { font-weight: 800; margin-bottom: 0.35rem; font-size: 1.3rem; }
.vms-newsletter p { opacity: 0.9; margin-bottom: 1.25rem; font-size: 0.9rem; }
.vms-newsletter-form .form-control {
    border: 0; border-radius: var(--vms-radius-sm) 0 0 var(--vms-radius-sm);
    padding: 0.65rem 1rem; font-size: 0.88rem;
}
.vms-newsletter-form .btn {
    border-radius: 0 var(--vms-radius-sm) var(--vms-radius-sm) 0;
    padding: 0.65rem 1.25rem; background: var(--vms-gray-900);
    border-color: var(--vms-gray-900); color: #fff; font-weight: 600;
}
.vms-newsletter-form .btn:hover { background: var(--vms-gray-800); }

/* ---------- 16. FOOTER ---------- */
.vms-footer { background: var(--vms-gray-900); color: var(--vms-gray-400); }
.vms-footer-brand { display: flex; align-items: center; gap: 0.5rem; }
.vms-footer-brand .vms-brand-icon { width: 30px; height: 30px; font-size: 0.8rem; }
.vms-footer-brand .vms-brand-text { color: #fff; font-size: 1rem; font-weight: 800; }
.vms-footer-brand .vms-brand-text span { color: var(--vms-primary-light); }

.vms-footer-heading {
    color: #fff; font-weight: 700; font-size: 0.82rem;
    text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.75rem;
}
.vms-footer-links { list-style: none; padding: 0; margin: 0; }
.vms-footer-links li { margin-bottom: 0.4rem; }
.vms-footer-links a { color: var(--vms-gray-400); font-size: 0.85rem; transition: color var(--vms-transition); }
.vms-footer-links a:hover { color: #fff; }
.vms-contact-list li { font-size: 0.85rem; display: flex; align-items: center; }

.vms-social-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255,255,255,0.08); color: var(--vms-gray-400);
    transition: all var(--vms-transition); text-decoration: none;
}
.vms-social-btn:hover { background: var(--vms-primary); color: #fff; }

/* ---------- 17. BACK TO TOP ---------- */
.vms-back-to-top {
    position: fixed; bottom: 1.5rem; right: 1.5rem;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--vms-primary); color: #fff; border: none;
    display: flex; align-items: center; justify-content: center; font-size: 0.85rem;
    cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: all 0.3s ease; z-index: 999; box-shadow: var(--vms-shadow-md);
}
.vms-back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.vms-back-to-top:hover { background: var(--vms-primary-dark); }

/* ---------- 18. ALERTS ---------- */
.vms-alert { border-radius: var(--vms-radius-sm); border: 0; font-weight: 500; font-size: 0.88rem; }

/* ---------- 19. FILTERS & TOOLBAR ---------- */
.vms-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.vms-sort-select { border-radius: var(--vms-radius-sm); border-color: var(--vms-gray-300); font-size: 0.82rem; min-width: 150px; }

.vms-filter-panel {
    background: var(--vms-white); border: 1px solid var(--vms-gray-200);
    border-radius: var(--vms-radius); padding: 1rem; position: sticky; top: 80px;
}
.vms-filter-group { margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--vms-gray-200); }
.vms-filter-group:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.vms-filter-title {
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.5px; color: var(--vms-gray-500); margin-bottom: 0.6rem;
}
.vms-filter-list { display: flex; flex-direction: column; gap: 0.15rem; }
.vms-filter-item {
    display: flex; align-items: center; padding: 0.35rem 0.6rem;
    color: var(--vms-gray-600); font-size: 0.82rem; font-weight: 500;
    border-radius: var(--vms-radius-sm); text-decoration: none;
    transition: all var(--vms-transition);
}
.vms-filter-item:hover { background: var(--vms-gray-100); color: var(--vms-primary); }
.vms-filter-item.active { background: var(--vms-primary-subtle); color: var(--vms-primary); font-weight: 600; }

/* ---------- 20. PRODUCT DETAIL ---------- */
.vms-breadcrumb { font-size: 0.82rem; }
.vms-breadcrumb a { color: var(--vms-gray-500); }
.vms-breadcrumb a:hover { color: var(--vms-primary); }

.vms-product-gallery { position: sticky; top: 80px; }
.vms-main-image {
    position: relative; border-radius: var(--vms-radius);
    overflow: hidden; background: var(--vms-gray-50); border: 1px solid var(--vms-gray-200);
}
.vms-main-image img { width: 100%; display: block; }

.vms-product-placeholder-lg {
    display: flex; align-items: center; justify-content: center;
    min-height: 350px; color: var(--vms-gray-300);
}
.vms-gallery-thumbs { display: flex; gap: 0.4rem; margin-top: 0.6rem; overflow-x: auto; }
.vms-thumb {
    flex-shrink: 0; width: 56px; height: 56px;
    border: 2px solid var(--vms-gray-200); border-radius: var(--vms-radius-sm);
    overflow: hidden; cursor: pointer; padding: 0; background: none;
    transition: border-color var(--vms-transition);
}
.vms-thumb.active, .vms-thumb:hover { border-color: var(--vms-primary); }
.vms-thumb img { width: 100%; height: 100%; object-fit: cover; }

.vms-product-details { padding: 0; }

.vms-product-cat-label {
    display: inline-block; background: var(--vms-primary-subtle); color: var(--vms-primary);
    font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
    padding: 0.2rem 0.55rem; border-radius: 50px; margin-bottom: 0.4rem;
}
.vms-product-detail-title {
    font-size: 1.4rem; font-weight: 800; color: var(--vms-gray-800);
    margin-bottom: 0.6rem; line-height: 1.25; letter-spacing: -0.02em;
}

.vms-rating { display: flex; align-items: center; gap: 0.4rem; }
.vms-stars i, .vms-stars-sm i { color: var(--vms-gray-300); font-size: 0.85rem; }
.vms-stars i.filled, .vms-stars-sm i.filled { color: #f59e0b; }
.vms-stars-sm i { font-size: 0.7rem; }
.vms-rating-count { font-size: 0.8rem; color: var(--vms-gray-500); }

.vms-detail-price { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.vms-price-current-lg { font-size: 1.7rem; font-weight: 800; color: var(--vms-primary); }
.vms-price-current-lg.sale { color: var(--vms-danger); }
.vms-price-old-lg { font-size: 1.1rem; color: var(--vms-gray-400); text-decoration: line-through; }
.vms-save-badge {
    background: #fef2f2; color: var(--vms-danger);
    font-size: 0.75rem; font-weight: 700; padding: 0.2rem 0.4rem; border-radius: 50px;
}
.vms-low-stock { color: var(--vms-warning); font-size: 0.82rem; font-weight: 600; }
.vms-product-desc { color: var(--vms-gray-600); line-height: 1.7; }

/* Quantity Control */
.vms-add-to-cart { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }

.vms-qty-control {
    display: flex; align-items: center;
    border: 1px solid var(--vms-gray-300); border-radius: var(--vms-radius-sm); overflow: hidden;
}
.vms-qty-control button {
    width: 36px; height: 36px; border: none; background: var(--vms-gray-50);
    color: var(--vms-gray-600); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--vms-transition); font-size: 0.75rem;
}
.vms-qty-control button:hover { background: var(--vms-gray-200); }
.vms-qty-control input {
    width: 44px; height: 36px; border: none; text-align: center;
    font-weight: 600; font-size: 0.85rem; color: var(--vms-gray-800);
    background: var(--vms-white); -moz-appearance: textfield;
}
.vms-qty-control input::-webkit-outer-spin-button,
.vms-qty-control input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.vms-qty-sm button { width: 30px; height: 30px; font-size: 0.65rem; }
.vms-qty-sm input { width: 36px; height: 30px; font-size: 0.78rem; }

.vms-notify-form {
    background: var(--vms-gray-50); border: 1px solid var(--vms-gray-200);
    border-radius: var(--vms-radius-sm); padding: 0.75rem;
}

/* Trust Features on Product Page */
.vms-trust-features {
    display: flex; justify-content: space-around; padding: 0.75rem 0;
    border-top: 1px solid var(--vms-gray-200); border-bottom: 1px solid var(--vms-gray-200);
    margin-top: 0.75rem;
}
.vms-trust-feature { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; }
.vms-trust-feature i { font-size: 1.1rem; color: var(--vms-primary); }
.vms-trust-feature span { font-size: 0.7rem; color: var(--vms-gray-500); font-weight: 500; }

/* Detail Sections */
.vms-detail-section {
    background: var(--vms-white); border: 1px solid var(--vms-gray-200);
    border-radius: var(--vms-radius); overflow: hidden;
}
.vms-detail-section-title {
    background: var(--vms-gray-50); padding: 0.75rem 1rem; margin: 0;
    font-weight: 700; font-size: 0.95rem; color: var(--vms-gray-700);
    border-bottom: 1px solid var(--vms-gray-200);
}
.vms-detail-section-body { padding: 1rem; }

/* Reviews */
.vms-review-form { background: var(--vms-gray-50); border-radius: var(--vms-radius-sm); padding: 1rem; }
.vms-star-rating { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 0.2rem; }
.vms-star-rating input { display: none; }
.vms-star-rating label { cursor: pointer; font-size: 1.3rem; color: var(--vms-gray-300); transition: color 0.15s; }
.vms-star-rating input:checked ~ label,
.vms-star-rating label:hover,
.vms-star-rating label:hover ~ label { color: #f59e0b; }

.vms-review-item { padding: 0.75rem 0; border-bottom: 1px solid var(--vms-gray-200); }
.vms-review-item:last-child { border-bottom: 0; }

/* ---------- 21. CART PAGE ---------- */
.vms-cart-items { display: flex; flex-direction: column; gap: 0.6rem; }
.vms-cart-item {
    display: flex; gap: 0.75rem; padding: 0.75rem; background: var(--vms-white);
    border: 1px solid var(--vms-gray-200); border-radius: var(--vms-radius); align-items: center;
}
.vms-cart-item-img {
    width: 72px; height: 72px; border-radius: var(--vms-radius-sm);
    overflow: hidden; flex-shrink: 0;
}
.vms-cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.vms-product-placeholder-sm {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    background: var(--vms-gray-100); color: var(--vms-gray-400);
}
.vms-cart-item-details { display: flex; flex-grow: 1; justify-content: space-between; align-items: center; gap: 0.75rem; min-width: 0; }
.vms-cart-item-info { min-width: 0; }
.vms-cart-item-info h6 { font-weight: 600; margin-bottom: 0; font-size: 0.88rem; }
.vms-cart-item-info h6 a { color: var(--vms-gray-800); }
.vms-cart-item-info h6 a:hover { color: var(--vms-primary); }
.vms-cart-item-actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.vms-cart-item-total { font-weight: 700; font-size: 0.95rem; color: var(--vms-primary); white-space: nowrap; }
.vms-cart-remove {
    background: none; border: none; color: var(--vms-gray-400); cursor: pointer;
    padding: 0.25rem; transition: color var(--vms-transition);
}
.vms-cart-remove:hover { color: var(--vms-danger); }

.vms-order-summary {
    background: var(--vms-white); border: 1px solid var(--vms-gray-200);
    border-radius: var(--vms-radius); padding: 1.25rem; position: sticky; top: 80px;
}
.vms-payment-icons { display: flex; justify-content: center; gap: 0.6rem; font-size: 1.3rem; color: var(--vms-gray-400); }

/* ---------- 22. CART SIDEBAR ---------- */
.vms-cart-sidebar { width: 360px !important; }
.vms-cart-sidebar-header { background: var(--vms-primary); color: #fff; padding: 0.85rem 1rem; }
.vms-cart-sidebar-footer {
    padding: 0.85rem 1rem; border-top: 1px solid var(--vms-gray-200); background: var(--vms-gray-50);
}
.vms-sidebar-cart-item {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.6rem 0; border-bottom: 1px solid var(--vms-gray-200);
}
.vms-sidebar-cart-item:last-child { border-bottom: 0; }
.vms-sidebar-cart-img {
    width: 46px; height: 46px; border-radius: var(--vms-radius-sm);
    overflow: hidden; flex-shrink: 0;
}
.vms-sidebar-cart-img img { width: 100%; height: 100%; object-fit: cover; }
.vms-product-placeholder-xs {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    background: var(--vms-gray-100); color: var(--vms-gray-400); font-size: 0.75rem;
}
.vms-sidebar-cart-info { flex-grow: 1; min-width: 0; }
.vms-sidebar-cart-info h6 {
    font-size: 0.8rem; font-weight: 600; color: var(--vms-gray-700);
    margin-bottom: 0.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- 23. EMPTY STATE ---------- */
.vms-empty-state { text-align: center; padding: 3rem 1rem; }
.vms-empty-state i { font-size: 2.5rem; color: var(--vms-gray-300); margin-bottom: 0.75rem; display: block; }
.vms-empty-state h5 { color: var(--vms-gray-600); font-weight: 700; margin-bottom: 0.35rem; }
.vms-empty-state p { color: var(--vms-gray-500); margin-bottom: 1rem; font-size: 0.9rem; }

/* ---------- 24. PAGINATION ---------- */
.pagination { gap: 0.2rem; }
.page-link {
    border-radius: var(--vms-radius-sm) !important;
    border: 1px solid var(--vms-gray-200); color: var(--vms-gray-600);
    font-weight: 500; font-size: 0.82rem; padding: 0.35rem 0.65rem;
    transition: all var(--vms-transition);
}
.page-link:hover { background: var(--vms-primary-subtle); color: var(--vms-primary); border-color: var(--vms-primary-subtle); }
.page-item.active .page-link { background: var(--vms-primary); border-color: var(--vms-primary); color: #fff; }
.page-item.disabled .page-link { background: var(--vms-gray-50); color: var(--vms-gray-400); }

/* ---------- 25. FORMS ---------- */
.form-control { border-radius: var(--vms-radius-sm); border-color: var(--vms-gray-300); font-size: 0.88rem; }
.form-control:focus { border-color: var(--vms-primary-light); box-shadow: 0 0 0 3px rgba(26,86,219,0.12); }
.form-select { border-radius: var(--vms-radius-sm); border-color: var(--vms-gray-300); font-size: 0.88rem; }
.form-select:focus { border-color: var(--vms-primary-light); box-shadow: 0 0 0 3px rgba(26,86,219,0.12); }

/* ---------- 26. AUTH / CARD ---------- */
.card { border: 1px solid var(--vms-gray-200); border-radius: var(--vms-radius); box-shadow: var(--vms-shadow-sm); }
.card-header { background: var(--vms-gray-50); border-bottom: 1px solid var(--vms-gray-200); font-weight: 600; }

/* ---------- 27. RESPONSIVE ---------- */
@media (max-width: 991.98px) {
    .vms-hero { padding: 2.5rem 0; }
    .vms-hero-title { font-size: 1.75rem; }
    .vms-hero-icon-grid { max-width: 260px; }
    .vms-hero-icon-card { padding: 1rem 0.75rem; }
    .vms-hero-icon-card i { font-size: 1.3rem; }
    .vms-section { padding: 2rem 0; }
}

@media (max-width: 767.98px) {
    .vms-navbar { padding: 0.5rem 0; }
    .vms-navbar .container { padding-left: 0.75rem; padding-right: 0.75rem; }

    .vms-hero { padding: 2rem 0; text-align: center; }
    .vms-hero-text { margin-left: auto; margin-right: auto; }
    .vms-hero-stats { justify-content: center; }
    .vms-hero .d-flex.flex-wrap { justify-content: center; }
    .vms-hero-icon-grid { margin-top: 1.5rem; max-width: 220px; gap: 0.5rem; }
    .vms-hero-icon-card { padding: 0.75rem 0.5rem; }
    .vms-hero-icon-card i { font-size: 1.1rem; margin-bottom: 0.2rem; }
    .vms-hero-icon-card span { font-size: 0.68rem; }

    .vms-trust-item i { width: 36px; height: 36px; font-size: 1rem; }
    .vms-trust-item strong { font-size: 0.72rem; }
    .vms-trust-item span { font-size: 0.65rem; }

    .vms-section { padding: 1.5rem 0; }
    .vms-section-header h2 { font-size: 1.2rem; }
    .vms-page-title { font-size: 1.25rem; }

    .vms-product-body { padding: 0.5rem; }
    .vms-product-name { font-size: 0.72rem; }
    .vms-price-current { font-size: 0.82rem; }
    .vms-price-old { font-size: 0.68rem; }
    .vms-product-cat { font-size: 0.58rem; }
    .vms-category-card { padding: 1rem 0.6rem; }
    .vms-category-icon { width: 40px; height: 40px; font-size: 1.3rem; }
    .vms-category-icon i { font-size: 0.95rem; }

    .vms-cart-item { flex-direction: column; align-items: stretch; }
    .vms-cart-item-img { width: 100%; height: 140px; }
    .vms-cart-item-details { flex-direction: column; align-items: flex-start; }
    .vms-cart-item-actions { width: 100%; justify-content: space-between; }

    .vms-product-detail-title { font-size: 1.15rem; }
    .vms-price-current-lg { font-size: 1.4rem; }
    .vms-product-gallery { position: static; }

    .vms-newsletter { padding: 2rem 0; }
    .vms-newsletter h3 { font-size: 1.1rem; }
    .vms-cart-sidebar { width: 100% !important; }
}

@media (max-width: 575.98px) {
    .vms-hero-title { font-size: 1.5rem; }
    .vms-stat strong { font-size: 1.1rem; }
    .vms-hero-stats { gap: 1rem; }
}

/* ---------- 28. PRINT ---------- */
@media print {
    .vms-topbar, .vms-navbar, .vms-footer, .vms-back-to-top, .vms-cart-sidebar { display: none !important; }
}
