/* 
 * styles-public.css
 * 
 * Path: /htdocs/assets-public/styles-public.css
 * 
 * Purpose: Main stylesheet for public pages
 * Contains all CSS for the Modern Pharmacy website
 * 
 * Design principles:
 * - Healthcare-appropriate color scheme (blues, whites, teals)
 * - Mobile-first responsive design
 * - Professional typography
 * - Consistent spacing and alignment
 * - Subtle animations for enhanced UX
 * - Accessibility compliance (WCAG 2.1 AA)
 * 
 * Structure:
 * 1. CSS Reset & Base Styles
 * 2. Variables & Theme
 * 3. Layout & Grid System
 * 4. Typography
 * 5. Components
 * 6. Page Specific Styles
 * 7. Responsive Design
 * 8. Print Styles
 * 9. Accessibility
 * 
 * @package PharmacyWebsite
 * @category Public
 * @version 1.0
 */

/* ==========================================================================
   1. CSS RESET & BASE STYLES
   ========================================================================== */

/* Modern CSS Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    color: #333333;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Remove default button styles */
button {
    background: none;
    border: none;
    font: inherit;
    cursor: pointer;
    outline: none;
}

/* Remove default list styles */
ul, ol {
    list-style: none;
}

/* Remove default link styles */
a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease, background-color 0.3s ease;
}

/* Remove default table styles */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Remove default form styles */
input, textarea, select {
    font: inherit;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.5em;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    border-color: #0077cc;
    box-shadow: 0 0 0 3px rgba(0, 119, 204, 0.1);
}

/* Remove default image border */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Remove default fieldset styles */
fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

/* ==========================================================================
   2. VARIABLES & THEME
   ========================================================================== */

:root {
    /* Primary Color Palette - Healthcare Professional */
    --primary-color: #0077cc;
    --primary-dark: #005fa3;
    --primary-light: #e9f7fe;
    --primary-rgb: 0, 119, 204;
    
    /* Secondary Color Palette */
    --secondary-color: #27ae60;
    --secondary-dark: #219653;
    --secondary-light: #d4edda;
    
    /* Accent Colors */
    --accent-color: #764ba2;
    --accent-dark: #667eea;
    --accent-light: #f3e8ff;
    
    /* Status Colors */
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --error-color: #e74c3c;
    --info-color: #3498db;
    
    /* Neutral Colors */
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #eaeaea;
    --dark-gray: #95a5a6;
    --black: #333333;
    
    /* Text Colors */
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-light: #999999;
    --text-on-dark: #ffffff;
    
    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-dark: #2c3e50;
    --bg-light: #ffffff;
    
    /* Border Colors */
    --border-color: #eaeaea;
    --border-dark: #bdc3c7;
    
    /* Shadow System */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* Spacing Scale */
    --space-xs: 0.25rem;  /* 4px */
    --space-sm: 0.5rem;   /* 8px */
    --space-md: 1rem;     /* 16px */
    --space-lg: 1.5rem;   /* 24px */
    --space-xl: 2rem;     /* 32px */
    --space-2xl: 3rem;    /* 48px */
    --space-3xl: 4rem;    /* 64px */
    
    /* Typography Scale */
    --text-xs: 0.75rem;   /* 12px */
    --text-sm: 0.875rem;  /* 14px */
    --text-base: 1rem;    /* 16px */
    --text-lg: 1.125rem;  /* 18px */
    --text-xl: 1.25rem;   /* 20px */
    --text-2xl: 1.5rem;   /* 24px */
    --text-3xl: 1.875rem; /* 30px */
    --text-4xl: 2.25rem;  /* 36px */
    --text-5xl: 3rem;     /* 48px */
    
    /* Font Families */
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'Monaco', 'Courier New', monospace;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
    
    /* Z-index Layers */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    --z-notification: 1080;
    --z-max: 9999;
    
    /* Container Max Widths */
    --container-sm: 100%;
    --container-md: 720px;
    --container-lg: 960px;
    --container-xl: 1140px;
    --container-xxl: 1320px;
    
    /* Breakpoints */
    --breakpoint-xs: 0;
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
    --breakpoint-xxl: 1400px;
}

/* Dark Theme Variables (Optional) */
@media (prefers-color-scheme: dark) {
    :root {
        --white: #1a1a1a;
        --black: #f5f5f5;
        --light-gray: #2d2d2d;
        --medium-gray: #404040;
        --dark-gray: #666666;
        --text-primary: #f5f5f5;
        --text-secondary: #cccccc;
        --text-light: #999999;
        --bg-primary: #1a1a1a;
        --bg-secondary: #2d2d2d;
        --border-color: #404040;
        --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.3);
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0056b3;
        --secondary-color: #1e7e34;
        --error-color: #c00;
        --border-color: #000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   3. LAYOUT & GRID SYSTEM
   ========================================================================== */

/* Container System */
.container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: var(--space-md);
    padding-left: var(--space-md);
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

.container-fluid {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: var(--space-md);
    padding-left: var(--space-md);
}

/* Grid System */
.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--space-md);
}

.grid-col-1 { grid-column: span 1; }
.grid-col-2 { grid-column: span 2; }
.grid-col-3 { grid-column: span 3; }
.grid-col-4 { grid-column: span 4; }
.grid-col-5 { grid-column: span 5; }
.grid-col-6 { grid-column: span 6; }
.grid-col-7 { grid-column: span 7; }
.grid-col-8 { grid-column: span 8; }
.grid-col-9 { grid-column: span 9; }
.grid-col-10 { grid-column: span 10; }
.grid-col-11 { grid-column: span 11; }
.grid-col-12 { grid-column: span 12; }

/* Responsive Grid Columns */
@media (max-width: 768px) {
    .grid-col-md-1 { grid-column: span 1; }
    .grid-col-md-2 { grid-column: span 2; }
    .grid-col-md-3 { grid-column: span 3; }
    .grid-col-md-4 { grid-column: span 4; }
    .grid-col-md-5 { grid-column: span 5; }
    .grid-col-md-6 { grid-column: span 6; }
    .grid-col-md-7 { grid-column: span 7; }
    .grid-col-md-8 { grid-column: span 8; }
    .grid-col-md-9 { grid-column: span 9; }
    .grid-col-md-10 { grid-column: span 10; }
    .grid-col-md-11 { grid-column: span 11; }
    .grid-col-md-12 { grid-column: span 12; }
}

/* Flexbox Utilities */
.flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.flex-row {
    flex-direction: row;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-nowrap {
    flex-wrap: nowrap;
}

.justify-start {
    justify-content: flex-start;
}

.justify-end {
    justify-content: flex-end;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-around {
    justify-content: space-around;
}

.align-start {
    align-items: flex-start;
}

.align-end {
    align-items: flex-end;
}

.align-center {
    align-items: center;
}

.align-stretch {
    align-items: stretch;
}

.flex-1 {
    flex: 1;
}

.flex-auto {
    flex: 1 1 auto;
}

.flex-none {
    flex: none;
}

/* Spacing Utilities */
.m-0 { margin: 0; }
.mt-0 { margin-top: 0; }
.mr-0 { margin-right: 0; }
.mb-0 { margin-bottom: 0; }
.ml-0 { margin-left: 0; }
.mx-0 { margin-left: 0; margin-right: 0; }
.my-0 { margin-top: 0; margin-bottom: 0; }

.p-0 { padding: 0; }
.pt-0 { padding-top: 0; }
.pr-0 { padding-right: 0; }
.pb-0 { padding-bottom: 0; }
.pl-0 { padding-left: 0; }
.px-0 { padding-left: 0; padding-right: 0; }
.py-0 { padding-top: 0; padding-bottom: 0; }

.m-1 { margin: var(--space-xs); }
.mt-1 { margin-top: var(--space-xs); }
.mr-1 { margin-right: var(--space-xs); }
.mb-1 { margin-bottom: var(--space-xs); }
.ml-1 { margin-left: var(--space-xs); }
.mx-1 { margin-left: var(--space-xs); margin-right: var(--space-xs); }
.my-1 { margin-top: var(--space-xs); margin-bottom: var(--space-xs); }

.p-1 { padding: var(--space-xs); }
.pt-1 { padding-top: var(--space-xs); }
.pr-1 { padding-right: var(--space-xs); }
.pb-1 { padding-bottom: var(--space-xs); }
.pl-1 { padding-left: var(--space-xs); }
.px-1 { padding-left: var(--space-xs); padding-right: var(--space-xs); }
.py-1 { padding-top: var(--space-xs); padding-bottom: var(--space-xs); }

.m-2 { margin: var(--space-sm); }
.mt-2 { margin-top: var(--space-sm); }
.mr-2 { margin-right: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-sm); }
.ml-2 { margin-left: var(--space-sm); }
.mx-2 { margin-left: var(--space-sm); margin-right: var(--space-sm); }
.my-2 { margin-top: var(--space-sm); margin-bottom: var(--space-sm); }

.p-2 { padding: var(--space-sm); }
.pt-2 { padding-top: var(--space-sm); }
.pr-2 { padding-right: var(--space-sm); }
.pb-2 { padding-bottom: var(--space-sm); }
.pl-2 { padding-left: var(--space-sm); }
.px-2 { padding-left: var(--space-sm); padding-right: var(--space-sm); }
.py-2 { padding-top: var(--space-sm); padding-bottom: var(--space-sm); }

.m-3 { margin: var(--space-md); }
.mt-3 { margin-top: var(--space-md); }
.mr-3 { margin-right: var(--space-md); }
.mb-3 { margin-bottom: var(--space-md); }
.ml-3 { margin-left: var(--space-md); }
.mx-3 { margin-left: var(--space-md); margin-right: var(--space-md); }
.my-3 { margin-top: var(--space-md); margin-bottom: var(--space-md); }

.p-3 { padding: var(--space-md); }
.pt-3 { padding-top: var(--space-md); }
.pr-3 { padding-right: var(--space-md); }
.pb-3 { padding-bottom: var(--space-md); }
.pl-3 { padding-left: var(--space-md); }
.px-3 { padding-left: var(--space-md); padding-right: var(--space-md); }
.py-3 { padding-top: var(--space-md); padding-bottom: var(--space-md); }

.m-4 { margin: var(--space-lg); }
.mt-4 { margin-top: var(--space-lg); }
.mr-4 { margin-right: var(--space-lg); }
.mb-4 { margin-bottom: var(--space-lg); }
.ml-4 { margin-left: var(--space-lg); }
.mx-4 { margin-left: var(--space-lg); margin-right: var(--space-lg); }
.my-4 { margin-top: var(--space-lg); margin-bottom: var(--space-lg); }

.p-4 { padding: var(--space-lg); }
.pt-4 { padding-top: var(--space-lg); }
.pr-4 { padding-right: var(--space-lg); }
.pb-4 { padding-bottom: var(--space-lg); }
.pl-4 { padding-left: var(--space-lg); }
.px-4 { padding-left: var(--space-lg); padding-right: var(--space-lg); }
.py-4 { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }

.m-5 { margin: var(--space-xl); }
.mt-5 { margin-top: var(--space-xl); }
.mr-5 { margin-right: var(--space-xl); }
.mb-5 { margin-bottom: var(--space-xl); }
.ml-5 { margin-left: var(--space-xl); }
.mx-5 { margin-left: var(--space-xl); margin-right: var(--space-xl); }
.my-5 { margin-top: var(--space-xl); margin-bottom: var(--space-xl); }

.p-5 { padding: var(--space-xl); }
.pt-5 { padding-top: var(--space-xl); }
.pr-5 { padding-right: var(--space-xl); }
.pb-5 { padding-bottom: var(--space-xl); }
.pl-5 { padding-left: var(--space-xl); }
.px-5 { padding-left: var(--space-xl); padding-right: var(--space-xl); }
.py-5 { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }

/* Display Utilities */
.d-none { display: none !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }
.d-table { display: table !important; }

@media (min-width: 768px) {
    .d-md-none { display: none !important; }
    .d-md-inline { display: inline !important; }
    .d-md-inline-block { display: inline-block !important; }
    .d-md-block { display: block !important; }
    .d-md-flex { display: flex !important; }
    .d-md-grid { display: grid !important; }
}

@media (min-width: 992px) {
    .d-lg-none { display: none !important; }
    .d-lg-inline { display: inline !important; }
    .d-lg-inline-block { display: inline-block !important; }
    .d-lg-block { display: block !important; }
    .d-lg-flex { display: flex !important; }
    .d-lg-grid { display: grid !important; }
}

/* Text Alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }

@media (min-width: 768px) {
    .text-md-left { text-align: left; }
    .text-md-center { text-align: center; }
    .text-md-right { text-align: right; }
    .text-md-justify { text-align: justify; }
}

/* Visibility */
.visible { visibility: visible; }
.invisible { visibility: hidden; }

/* Overflow */
.overflow-auto { overflow: auto; }
.overflow-hidden { overflow: hidden; }
.overflow-visible { overflow: visible; }
.overflow-scroll { overflow: scroll; }

/* Position */
.position-static { position: static; }
.position-relative { position: relative; }
.position-absolute { position: absolute; }
.position-fixed { position: fixed; }
.position-sticky { position: sticky; }

/* Width & Height */
.w-100 { width: 100%; }
.h-100 { height: 100%; }
.vh-100 { height: 100vh; }
.min-vh-100 { min-height: 100vh; }

/* ==========================================================================
   4. TYPOGRAPHY
   ========================================================================== */

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

h1 {
    font-size: var(--text-4xl);
    font-weight: 700;
}

h2 {
    font-size: var(--text-3xl);
}

h3 {
    font-size: var(--text-2xl);
}

h4 {
    font-size: var(--text-xl);
}

h5 {
    font-size: var(--text-lg);
}

h6 {
    font-size: var(--text-base);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Paragraphs */
p {
    margin-bottom: var(--space-md);
}

p:last-child {
    margin-bottom: 0;
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-normal);
}

a:hover, a:focus {
    color: var(--primary-dark);
    text-decoration: underline;
}

a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Text Utilities */
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-success { color: var(--success-color); }
.text-warning { color: var(--warning-color); }
.text-error { color: var(--error-color); }
.text-info { color: var(--info-color); }

.text-light { color: var(--text-light); }
.text-dark { color: var(--text-primary); }
.text-white { color: var(--white); }

.text-uppercase { text-transform: uppercase; }
.text-lowercase { text-transform: lowercase; }
.text-capitalize { text-transform: capitalize; }

.text-bold { font-weight: 700; }
.text-semibold { font-weight: 600; }
.text-medium { font-weight: 500; }
.text-regular { font-weight: 400; }
.text-light-weight { font-weight: 300; }

.text-italic { font-style: italic; }
.text-underline { text-decoration: underline; }
.text-line-through { text-decoration: line-through; }

.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }
.text-5xl { font-size: var(--text-5xl); }

.line-height-1 { line-height: 1; }
.line-height-tight { line-height: 1.25; }
.line-height-normal { line-height: 1.6; }
.line-height-loose { line-height: 1.8; }

.letter-spacing-tight { letter-spacing: -0.5px; }
.letter-spacing-normal { letter-spacing: normal; }
.letter-spacing-wide { letter-spacing: 0.5px; }

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Lists */
ul, ol {
    margin-bottom: var(--space-md);
    padding-left: var(--space-lg);
}

ul {
    list-style-type: disc;
}

ol {
    list-style-type: decimal;
}

li {
    margin-bottom: var(--space-xs);
}

/* Blockquote */
blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: var(--space-lg);
    margin: var(--space-lg) 0;
    font-style: italic;
    color: var(--text-secondary);
}

blockquote cite {
    display: block;
    margin-top: var(--space-sm);
    font-style: normal;
    font-weight: 600;
    color: var(--text-primary);
}

/* Code */
code, pre {
    font-family: var(--font-mono);
    background-color: var(--light-gray);
    border-radius: var(--radius-sm);
}

code {
    padding: 0.2em 0.4em;
    font-size: 0.875em;
}

pre {
    padding: var(--space-md);
    overflow-x: auto;
    margin-bottom: var(--space-md);
}

pre code {
    padding: 0;
    background-color: transparent;
}

/* ==========================================================================
   5. COMPONENTS
   ========================================================================== */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn:focus {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.25);
}

.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Button Sizes */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: var(--text-sm);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: var(--text-lg);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Button Variants */
.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
    transform: translateY(-2px);
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-light {
    background-color: var(--light-gray);
    color: var(--text-primary);
    border-color: var(--light-gray);
}

.btn-light:hover {
    background-color: var(--medium-gray);
    border-color: var(--medium-gray);
    transform: translateY(-2px);
}

.btn-link {
    background-color: transparent;
    color: var(--primary-color);
    border-color: transparent;
    text-decoration: underline;
}

.btn-link:hover {
    color: var(--primary-dark);
    text-decoration: none;
    transform: none;
}

/* Button with loading state */
.btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn.loading::after {
    content: '';
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-left: var(--space-sm);
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: button-spinner 0.75s linear infinite;
}

@keyframes button-spinner {
    to { transform: rotate(360deg); }
}

/* Cards */
.card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-img-top {
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
}

.card-body {
    padding: var(--space-lg);
}

.card-title {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.card-text {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.card-footer {
    padding: var(--space-md) var(--space-lg);
    background-color: var(--light-gray);
    border-top: 1px solid var(--border-color);
}

/* Forms */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 600;
    color: var(--text-primary);
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: var(--text-base);
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--white);
    background-clip: padding-box;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.form-control::placeholder {
    color: var(--text-light);
    opacity: 1;
}

.form-control:disabled,
.form-control[readonly] {
    background-color: var(--light-gray);
    opacity: 1;
}

.form-text {
    display: block;
    margin-top: var(--space-xs);
    font-size: var(--text-sm);
    color: var(--text-light);
}

.form-check {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.form-check-input {
    width: 1.25em;
    height: 1.25em;
    margin-top: 0;
    margin-right: var(--space-xs);
}

.form-check-label {
    margin-bottom: 0;
}

/* Form Validation */
.form-control.is-valid {
    border-color: var(--success-color);
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2327ae60' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid {
    border-color: var(--error-color);
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23e74c3c'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23e74c3c' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: var(--space-xs);
    font-size: var(--text-sm);
    color: var(--error-color);
}

.is-invalid ~ .invalid-feedback {
    display: block;
}

/* Alerts */
.alert {
    position: relative;
    padding: var(--space-md) var(--space-lg);
    margin-bottom: var(--space-md);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
}

.alert-heading {
    color: inherit;
    margin-top: 0;
    margin-bottom: var(--space-xs);
}

.alert-link {
    font-weight: 600;
}

.alert-dismissible {
    padding-right: 3rem;
}

.alert-dismissible .close {
    position: absolute;
    top: 0;
    right: 0;
    padding: var(--space-md) var(--space-lg);
    color: inherit;
    background: transparent;
    border: 0;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.alert-primary {
    color: var(--primary-dark);
    background-color: var(--primary-light);
    border-color: var(--primary-color);
}

.alert-secondary {
    color: var(--secondary-dark);
    background-color: var(--secondary-light);
    border-color: var(--secondary-color);
}

.alert-success {
    color: var(--success-color);
    background-color: rgba(39, 174, 96, 0.1);
    border-color: rgba(39, 174, 96, 0.3);
}

.alert-warning {
    color: var(--warning-color);
    background-color: rgba(243, 156, 18, 0.1);
    border-color: rgba(243, 156, 18, 0.3);
}

.alert-error {
    color: var(--error-color);
    background-color: rgba(231, 76, 60, 0.1);
    border-color: rgba(231, 76, 60, 0.3);
}

.alert-info {
    color: var(--info-color);
    background-color: rgba(52, 152, 219, 0.1);
    border-color: rgba(52, 152, 219, 0.3);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 0.25em 0.75em;
    font-size: var(--text-xs);
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: var(--radius-full);
}

.badge-pill {
    padding-right: 0.75em;
    padding-left: 0.75em;
    border-radius: var(--radius-full);
}

.badge-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.badge-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.badge-success {
    background-color: var(--success-color);
    color: var(--white);
}

.badge-warning {
    background-color: var(--warning-color);
    color: var(--black);
}

.badge-error {
    background-color: var(--error-color);
    color: var(--white);
}

.badge-info {
    background-color: var(--info-color);
    color: var(--white);
}

.badge-light {
    background-color: var(--light-gray);
    color: var(--text-primary);
}

.badge-dark {
    background-color: var(--dark-gray);
    color: var(--white);
}

/* Breadcrumb */
.breadcrumb {
    padding: var(--space-md) 0;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm);
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-light);
    font-size: var(--text-sm);
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    color: var(--dark-gray);
}

.breadcrumb-item a {
    color: var(--text-secondary);
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--text-primary);
    font-weight: 600;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    padding: var(--space-lg) 0;
}

.pagination-list {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.pagination-item {
    display: flex;
}

.pagination-link,
.pagination-ellipsis,
.pagination-current {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 var(--space-sm);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    transition: all var(--transition-normal);
}

.pagination-link {
    color: var(--text-secondary);
    background-color: var(--white);
}

.pagination-link:hover {
    background-color: var(--light-gray);
    border-color: var(--dark-gray);
    text-decoration: none;
}

.pagination-link.prev,
.pagination-link.next {
    padding: 0 var(--space-md);
}

.pagination-current {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    font-weight: 600;
}

.pagination-ellipsis {
    color: var(--text-light);
    border: none;
    pointer-events: none;
}

.pagination-link.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

/* Progress Bars */
.progress {
    height: 1rem;
    background-color: var(--light-gray);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: var(--radius-full);
    transition: width 0.6s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xs);
    color: var(--white);
    font-weight: 600;
    padding: 0 var(--space-sm);
}

.progress-bar-striped {
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    background-size: 1rem 1rem;
}

.progress-bar-animated {
    animation: progress-bar-stripes 1s linear infinite;
}

@keyframes progress-bar-stripes {
    from { background-position: 1rem 0; }
    to { background-position: 0 0; }
}

/* Tables */
.table {
    width: 100%;
    margin-bottom: var(--space-lg);
    background-color: var(--white);
    border-collapse: collapse;
}

.table th,
.table td {
    padding: var(--space-md);
    vertical-align: top;
    border-top: 1px solid var(--border-color);
}

.table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    color: var(--text-primary);
    background-color: var(--light-gray);
}

.table tbody tr:hover {
    background-color: rgba(var(--primary-rgb), 0.05);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: var(--light-gray);
}

.table-bordered {
    border: 1px solid var(--border-color);
}

.table-bordered th,
.table-bordered td {
    border: 1px solid var(--border-color);
}

.table-hover tbody tr:hover {
    background-color: rgba(var(--primary-rgb), 0.1);
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-modal);
    display: none;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
}

.modal.show {
    display: block;
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: var(--space-lg);
    pointer-events: none;
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: var(--white);
    background-clip: padding-box;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    outline: 0;
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-color);
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
}

.modal-title {
    margin-bottom: 0;
    line-height: 1.5;
    font-size: var(--text-xl);
    font-weight: 600;
}

.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: var(--space-lg);
}

.modal-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--border-color);
    border-bottom-right-radius: var(--radius-lg);
    border-bottom-left-radius: var(--radius-lg);
    gap: var(--space-sm);
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-modal-backdrop);
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-backdrop.show {
    opacity: 1;
}

/* Close Button */
.close {
    background: transparent;
    border: 0;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
}

.close:hover {
    background-color: var(--light-gray);
    color: var(--text-primary);
}

/* Tooltips */
.tooltip {
    position: absolute;
    z-index: var(--z-tooltip);
    display: block;
    margin: 0;
    font-family: var(--font-body);
    font-style: normal;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
    text-decoration: none;
    text-shadow: none;
    text-transform: none;
    letter-spacing: normal;
    word-break: normal;
    word-spacing: normal;
    white-space: normal;
    line-break: auto;
    font-size: var(--text-sm);
    word-wrap: break-word;
    opacity: 0;
}

.tooltip.show {
    opacity: 1;
}

.tooltip .arrow {
    position: absolute;
    display: block;
    width: 0.8rem;
    height: 0.4rem;
}

.tooltip .arrow::before {
    position: absolute;
    content: "";
    border-color: transparent;
    border-style: solid;
}

.tooltip-inner {
    max-width: 200px;
    padding: var(--space-sm) var(--space-md);
    color: var(--white);
    text-align: center;
    background-color: var(--black);
    border-radius: var(--radius-md);
}

/* Popovers */
.popover {
    position: absolute;
    top: 0;
    left: 0;
    z-index: var(--z-popover);
    display: block;
    max-width: 276px;
    font-family: var(--font-body);
    font-style: normal;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
    text-decoration: none;
    text-shadow: none;
    text-transform: none;
    letter-spacing: normal;
    word-break: normal;
    word-spacing: normal;
    white-space: normal;
    line-break: auto;
    font-size: var(--text-sm);
    word-wrap: break-word;
    background-color: var(--white);
    background-clip: padding-box;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.popover .arrow {
    position: absolute;
    display: block;
    width: 1rem;
    height: 0.5rem;
}

.popover .arrow::before,
.popover .arrow::after {
    position: absolute;
    display: block;
    content: "";
    border-color: transparent;
    border-style: solid;
}

.popover-header {
    padding: var(--space-md) var(--space-lg);
    margin-bottom: 0;
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    background-color: var(--light-gray);
    border-bottom: 1px solid var(--border-color);
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
}

.popover-body {
    padding: var(--space-md) var(--space-lg);
    color: var(--text-secondary);
}

/* ==========================================================================
   6. PAGE SPECIFIC STYLES
   ========================================================================== */

/* Header Styles */
.header {
    position: relative;
    z-index: var(--z-sticky);
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.header-top {
    background: var(--bg-dark);
    color: var(--text-on-dark);
    padding: var(--space-sm) 0;
}

.header-top .contact-info {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--text-on-dark);
    font-size: var(--text-sm);
}

.contact-link:hover {
    color: var(--primary-light);
    text-decoration: none;
}

.emergency-contact {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--error-color);
    font-weight: 600;
    font-size: var(--text-sm);
}

.social-links {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-on-dark);
    transition: all var(--transition-normal);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.language-selector select {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-on-dark);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) 0;
    gap: var(--space-lg);
}

.logo-container {
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--primary-color);
}

.logo:hover {
    text-decoration: none;
}

.logo i {
    font-size: var(--text-2xl);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.tagline {
    font-size: var(--text-xs);
    color: var(--text-light);
    font-weight: 400;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: var(--text-xl);
    color: var(--primary-color);
    cursor: pointer;
    padding: var(--space-xs);
    border-radius: var(--radius-sm);
}

.mobile-menu-toggle:hover {
    background: var(--light-gray);
}

.quick-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-full);
    background: var(--light-gray);
    color: var(--text-secondary);
    transition: all var(--transition-normal);
}

.search-toggle:hover {
    background: var(--medium-gray);
    color: var(--text-primary);
}

.search-bar {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    max-width: 500px;
    background: var(--white);
    padding: var(--space-md);
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    display: none;
}

.search-bar.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-bar form {
    display: flex;
    gap: var(--space-sm);
}

.search-bar input {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
}

.search-bar button[type="submit"] {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    padding: var(--space-sm) var(--space-md);
    cursor: pointer;
}

.search-bar .close-search {
    background: var(--light-gray);
    color: var(--text-secondary);
    border: none;
    border-radius: var(--radius-full);
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-inquiry {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.desktop-only {
    display: inline;
}

.mobile-only {
    display: none;
}

/* Navigation Styles */
.main-navigation {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
}

.nav-menu {
    display: flex;
    gap: 1px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-lg) var(--space-md);
    color: var(--text-primary);
    font-weight: 500;
    transition: all var(--transition-normal);
    position: relative;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary-color);
    background: var(--light-gray);
}

.nav-item.active .nav-link {
    color: var(--primary-color);
    background: var(--primary-light);
}

.nav-item.active .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 300px;
    background: var(--white);
    box-shadow: var(--shadow-xl);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    z-index: var(--z-dropdown);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content {
    padding: var(--space-lg);
}

.dropdown-header {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-color);
}

.dropdown-header h3 {
    margin: 0 0 var(--space-xs) 0;
    color: var(--text-primary);
    font-size: var(--text-xl);
}

.dropdown-header p {
    margin: 0;
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    background: var(--light-gray);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition-normal);
    border: 1px solid transparent;
}

.dropdown-item:hover {
    background: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.dropdown-item.highlight {
    background: var(--primary-light);
    border-color: var(--primary-color);
}

.dropdown-item-content h4 {
    margin: 0 0 var(--space-xs) 0;
    font-size: var(--text-base);
    color: var(--text-primary);
}

.dropdown-item-content p {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.4;
}

.dropdown-item .fa-arrow-right {
    color: var(--primary-color);
    opacity: 0.7;
    transition: transform var(--transition-normal);
}

.dropdown-item:hover .fa-arrow-right {
    transform: translateX(5px);
    opacity: 1;
}

.dropdown-footer {
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--text-sm);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    background: var(--primary-light);
    transition: all var(--transition-normal);
}

.btn-view-all:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Footer Styles */
.footer {
    background: var(--bg-dark);
    color: var(--text-on-dark);
    margin-top: auto;
}

.newsletter-section {
    background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent-color) 100%);
    padding: var(--space-xl) 0;
}

.newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
}

.newsletter-text h3 {
    color: var(--white);
    margin-bottom: var(--space-sm);
    font-size: var(--text-xl);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.newsletter-text p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    max-width: 500px;
}

.newsletter-form {
    flex: 1;
    max-width: 500px;
}

.newsletter-form .form-group {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: var(--space-md) var(--space-lg);
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--text-base);
}

.newsletter-form .btn {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    font-weight: 600;
    white-space: nowrap;
}

.form-check {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.form-check input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
}

.form-check label {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.9);
}

.form-check a {
    color: var(--white);
    text-decoration: underline;
}

.footer-main {
    padding: var(--space-2xl) 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-xl);
}

.footer-title {
    color: var(--white);
    margin-bottom: var(--space-lg);
    font-size: var(--text-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.contact-details {
    margin-bottom: var(--space-xl);
}

.contact-item {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    align-items: flex-start;
}

.contact-item i {
    color: var(--primary-color);
    font-size: var(--text-lg);
    margin-top: 2px;
    min-width: 1.25rem;
}

.contact-item address,
.contact-item a,
.contact-item .business-hours {
    color: var(--dark-gray);
    font-style: normal;
    line-height: 1.6;
    margin: 0;
}

.contact-item a:hover {
    color: var(--white);
    text-decoration: underline;
}

.emergency-contact {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

.emergency-icon {
    font-size: var(--text-2xl);
    color: var(--error-color);
}

.emergency-details h4 {
    color: var(--white);
    margin: 0 0 var(--space-xs) 0;
    font-size: var(--text-base);
}

.emergency-details p {
    color: var(--dark-gray);
    margin: 0 0 var(--space-sm) 0;
    font-size: var(--text-sm);
}

.emergency-phone {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--error-color);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--text-base);
}

.footer-links {
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--dark-gray);
    text-decoration: none;
    transition: all var(--transition-normal);
}

.footer-links a:hover {
    color: var(--white);
    transform: translateX(5px);
}

.footer-links a i {
    font-size: var(--text-xs);
}

.view-all {
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-accreditation {
    grid-column: span 2;
}

.social-links {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--white);
    font-size: var(--text-lg);
    transition: all var(--transition-normal);
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.accreditations h4 {
    color: var(--white);
    margin-bottom: var(--space-md);
    font-size: var(--text-base);
}

.badge-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.accreditation-badge {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.accreditation-badge i {
    color: var(--primary-color);
    font-size: var(--text-lg);
}

.accreditation-badge span {
    color: var(--dark-gray);
    font-size: var(--text-sm);
}

.mobile-apps h4 {
    color: var(--white);
    margin-bottom: var(--space-md);
    font-size: var(--text-base);
}

.app-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.app-link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.app-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.app-link i {
    font-size: var(--text-2xl);
    color: var(--white);
}

.app-text {
    display: flex;
    flex-direction: column;
}

.app-text span {
    font-size: var(--text-xs);
    color: var(--dark-gray);
}

.app-text strong {
    color: var(--white);
    font-size: var(--text-base);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: var(--space-lg) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
}

.copyright p {
    color: var(--dark-gray);
    margin: 0 0 var(--space-sm) 0;
    font-size: var(--text-sm);
}

.legal-links {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.legal-links a {
    color: var(--dark-gray);
    text-decoration: none;
    font-size: var(--text-xs);
    transition: color var(--transition-normal);
}

.legal-links a:hover {
    color: var(--white);
}

.separator {
    color: var(--dark-gray);
}

.payment-methods {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.payment-label {
    color: var(--dark-gray);
    font-size: var(--text-sm);
}

.payment-icons {
    display: flex;
    gap: var(--space-sm);
}

.payment-icons i {
    font-size: var(--text-xl);
    color: var(--dark-gray);
}

/* Homepage Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-light) 0%, #e9f7fe 100%);
}

.hero-carousel {
    position: relative;
    height: 600px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero-carousel {
        height: 400px;
    }
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide .slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.hero-slide .slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.hero-slide .slide-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 600px;
    padding: var(--space-xl);
}

.hero-slide h1 {
    font-size: var(--text-4xl);
    color: var(--white);
    margin-bottom: var(--space-md);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .hero-slide h1 {
        font-size: var(--text-2xl);
    }
}

.hero-slide p {
    font-size: var(--text-lg);
    margin-bottom: var(--space-lg);
    color: rgba(255, 255, 255, 0.9);
}

.hero-slide .btn {
    font-size: var(--text-lg);
    padding: var(--space-md) var(--space-xl);
}

.hero-controls {
    position: absolute;
    bottom: var(--space-xl);
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    z-index: 3;
}

.hero-dots {
    display: flex;
    gap: var(--space-sm);
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.hero-dot.active {
    background: var(--white);
    transform: scale(1.2);
}

.hero-nav {
    display: flex;
    gap: var(--space-sm);
}

.hero-nav button {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    font-size: var(--text-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.hero-nav button:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Content Sections */
.section {
    padding: var(--space-3xl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-title h2 {
    font-size: var(--text-3xl);
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.section-title p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Featured Products */
.featured-products .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.product-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background: var(--primary-color);
    color: var(--white);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 600;
}

.product-content {
    padding: var(--space-lg);
}

.product-category {
    display: inline-block;
    color: var(--primary-color);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-xs);
}

.product-title {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.product-description {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    margin-bottom: var(--space-md);
    line-height: 1.5;
}

.product-price {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.price-current {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--primary-color);
}

.price-original {
    font-size: var(--text-sm);
    color: var(--text-light);
    text-decoration: line-through;
}

.product-actions {
    display: flex;
    gap: var(--space-sm);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.service-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    transition: all var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    background: var(--primary-light);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    color: var(--primary-color);
}

.service-title {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.service-description {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--space-lg);
}

.blog-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: var(--space-lg);
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    font-size: var(--text-xs);
    color: var(--text-light);
}

.blog-category {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-color);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-title {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
    line-height: 1.3;
}

.blog-excerpt {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--primary-color);
    font-weight: 600;
    font-size: var(--text-sm);
}

.blog-read-more:hover {
    color: var(--primary-dark);
}

/* Trust Indicators */
.trust-indicators {
    background: var(--light-gray);
    padding: var(--space-2xl) 0;
}

.indicators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    text-align: center;
}

.indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.indicator-icon {
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.indicator-number {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--primary-color);
}

.indicator-label {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    font-weight: 500;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-info-section {
    background: var(--light-gray);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
}

.contact-form-section {
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.map-container {
    height: 300px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-top: var(--space-lg);
}

.business-hours-table {
    width: 100%;
    margin-top: var(--space-lg);
}

.business-hours-table tr {
    border-bottom: 1px solid var(--border-color);
}

.business-hours-table tr:last-child {
    border-bottom: none;
}

.business-hours-table td {
    padding: var(--space-sm) 0;
}

.business-hours-table td:first-child {
    font-weight: 600;
    color: var(--text-primary);
}

.business-hours-table td:last-child {
    text-align: right;
    color: var(--text-secondary);
}

/* Search Page */
.search-results {
    margin-top: var(--space-xl);
}

.search-result-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    transition: all var(--transition-normal);
}

.search-result-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.result-type {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-color);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-sm);
}

.result-title {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.result-title .highlight {
    background: yellow;
    padding: 0 2px;
}

.result-excerpt {
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.result-excerpt .highlight {
    background: yellow;
    padding: 0 2px;
    font-weight: 600;
}

.result-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: var(--text-xs);
    color: var(--text-light);
}

/* Product Detail Page */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
}

@media (max-width: 992px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
    }
}

.product-gallery {
    position: sticky;
    top: var(--space-xl);
}

.main-image {
    position: relative;
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-md);
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-sm);
}

.thumbnail {
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-normal);
}

.thumbnail.active {
    border-color: var(--primary-color);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info h1 {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-sm);
}

.product-category {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: var(--space-lg);
}

.product-price-large {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--space-lg);
}

.product-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-xl);
}

.product-specs {
    margin-bottom: var(--space-xl);
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border-color);
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: 600;
    color: var(--text-primary);
}

.spec-value {
    color: var(--text-secondary);
}

.inquiry-form {
    background: var(--light-gray);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
}

/* ==========================================================================
   7. RESPONSIVE DESIGN
   ========================================================================== */

/* Mobile Navigation */
@media (max-width: 768px) {
    .header-top {
        display: none;
    }
    
    .header-main {
        flex-wrap: wrap;
    }
    
    .mobile-menu-toggle {
        display: block;
        order: 3;
    }
    
    .quick-actions {
        order: 2;
        margin-left: auto;
    }
    
    .search-toggle {
        display: none;
    }
    
    .btn-inquiry span {
        display: none;
    }
    
    .btn-inquiry i {
        margin: 0;
    }
    
    .desktop-only {
        display: none;
    }
    
    .mobile-only {
        display: inline;
    }
    
    .main-navigation .container {
        display: none;
    }
    
    .mobile-nav-bottom {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
        z-index: var(--z-fixed);
        padding: var(--space-sm) 0;
    }
    
    .mobile-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: var(--space-sm) var(--space-xs);
        text-decoration: none;
        color: var(--text-secondary);
        font-size: var(--text-xs);
        transition: all var(--transition-normal);
        border: none;
        background: none;
        cursor: pointer;
    }
    
    .mobile-nav-item i {
        font-size: var(--text-lg);
        margin-bottom: 2px;
    }
    
    .mobile-nav-item.active {
        color: var(--primary-color);
    }
    
    .mobile-nav-item.active i {
        color: var(--primary-color);
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-quick-links {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        bottom: 0;
        width: 100%;
        max-width: 400px;
        background: var(--white);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
        z-index: var(--z-fixed);
        overflow-y: auto;
        transition: right var(--transition-normal);
    }
    
    .mobile-nav-open .mobile-quick-links {
        right: 0;
    }
    
    .quick-links-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: var(--space-lg);
        background: var(--primary-color);
        color: var(--white);
    }
    
    .quick-links-header h3 {
        margin: 0;
        font-size: var(--text-lg);
    }
    
    .close-mobile-nav {
        background: none;
        border: none;
        color: var(--white);
        font-size: var(--text-xl);
        cursor: pointer;
        padding: 0;
        width: 2.5rem;
        height: 2.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .quick-links-grid {
        padding: var(--space-lg);
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
    
    .quick-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: var(--space-lg) var(--space-sm);
        background: var(--light-gray);
        border-radius: var(--radius-lg);
        text-decoration: none;
        color: var(--text-primary);
        transition: all var(--transition-normal);
        text-align: center;
    }
    
    .quick-link:hover {
        background: var(--primary-light);
        transform: translateY(-2px);
    }
    
    .quick-link-icon {
        font-size: var(--text-xl);
        color: var(--primary-color);
        margin-bottom: var(--space-sm);
    }
    
    .mobile-emergency {
        padding: var(--space-lg);
        margin: var(--space-lg);
        background: #f8d7da;
        border-radius: var(--radius-lg);
        border-left: 4px solid var(--error-color);
        display: flex;
        align-items: center;
        gap: var(--space-md);
    }
    
    .emergency-icon {
        font-size: var(--text-2xl);
        color: var(--error-color);
    }
    
    .emergency-info h4 {
        margin: 0 0 var(--space-xs) 0;
        color: #721c24;
    }
    
    .emergency-info p {
        margin: 0 0 var(--space-sm) 0;
        color: #721c24;
        font-size: var(--text-sm);
    }
    
    .emergency-phone {
        display: inline-flex;
        align-items: center;
        gap: var(--space-xs);
        color: var(--error-color);
        text-decoration: none;
        font-weight: 600;
        font-size: var(--text-base);
    }
    
    .mobile-hours {
        padding: var(--space-lg);
        border-top: 1px solid var(--border-color);
    }
    
    .mobile-hours h4 {
        margin: 0 0 var(--space-md) 0;
        color: var(--text-primary);
    }
    
    .hours-list {
        margin: 0;
        padding: 0;
    }
    
    .hours-list li {
        display: flex;
        justify-content: space-between;
        padding: var(--space-sm) 0;
        border-bottom: 1px solid var(--light-gray);
    }
    
    .hours-list li:last-child {
        border-bottom: none;
    }
    
    .mobile-nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: calc(var(--z-fixed) - 1);
    }
    
    .mobile-nav-open .mobile-nav-overlay {
        display: block;
    }
    
    /* Responsive Footer */
    .newsletter-content {
        flex-direction: column;
        text-align: center;
        gap: var(--space-lg);
    }
    
    .newsletter-form {
        max-width: 100%;
    }
    
    .newsletter-form .form-group {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .social-accreditation {
        grid-column: span 1;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
    }
    
    .legal-links {
        justify-content: center;
    }
    
    .payment-methods {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    /* Responsive Content */
    .section {
        padding: var(--space-xl) 0;
    }
    
    .section-title h2 {
        font-size: var(--text-2xl);
    }
    
    .hero-slide h1 {
        font-size: var(--text-2xl);
    }
    
    .hero-slide p {
        font-size: var(--text-base);
    }
    
    .product-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .thumbnail-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .social-accreditation {
        grid-column: span 3;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-xl);
    }
    
    .social-links {
        grid-column: span 1;
    }
    
    .accreditations {
        grid-column: span 1;
    }
    
    .mobile-apps {
        grid-column: span 1;
    }
    
    .hero-slide h1 {
        font-size: var(--text-3xl);
    }
    
    .featured-products .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small Desktop */
@media (min-width: 993px) and (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .social-accreditation {
        grid-column: span 4;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-xl);
    }
}

/* ==========================================================================
   8. PRINT STYLES
   ========================================================================== */

@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    .header,
    .footer,
    .navigation,
    .search-bar,
    .newsletter-section,
    .social-links,
    .quick-actions,
    .btn {
        display: none !important;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
    
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
    
    .card {
        border: 1px solid #ddd;
        break-inside: avoid;
    }
    
    img {
        max-width: 100% !important;
        break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        page-break-inside: avoid;
    }
    
    table {
        page-break-inside: avoid;
    }
    
    .page-break {
        page-break-before: always;
    }
}

/* ==========================================================================
   9. ACCESSIBILITY
   ========================================================================== */

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only-focusable:active,
.sr-only-focusable:focus {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* Focus Styles */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Skip to Content */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: var(--white);
    padding: var(--space-sm) var(--space-md);
    z-index: var(--z-max);
    text-decoration: none;
}

.skip-to-content:focus {
    top: 0;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High Contrast */
@media (prefers-contrast: high) {
    .btn {
        border-width: 3px;
    }
    
    .form-control {
        border-width: 2px;
    }
    
    .alert {
        border-width: 2px;
    }
}

/* ==========================================================================
   10. UTILITIES & HELPERS
   ========================================================================== */

/* Clearfix */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Text Truncation */
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.5em;
    height: 1.5em;
    margin: -0.75em 0 0 -0.75em;
    border: 2px solid var(--primary-color);
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner 0.75s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Selection Color */
::selection {
    background-color: var(--primary-color);
    color: var(--white);
}

::-moz-selection {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--dark-gray);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Print Styles for Links */
@media print {
    a[href^="http"]::after {
        content: " (" attr(href) ")";
    }
}

/* Utility Classes for Spacing */
.space-y-0 > * + * { margin-top: 0; }
.space-y-1 > * + * { margin-top: var(--space-xs); }
.space-y-2 > * + * { margin-top: var(--space-sm); }
.space-y-3 > * + * { margin-top: var(--space-md); }
.space-y-4 > * + * { margin-top: var(--space-lg); }
.space-y-5 > * + * { margin-top: var(--space-xl); }

.space-x-0 > * + * { margin-left: 0; }
.space-x-1 > * + * { margin-left: var(--space-xs); }
.space-x-2 > * + * { margin-left: var(--space-sm); }
.space-x-3 > * + * { margin-left: var(--space-md); }
.space-x-4 > * + * { margin-left: var(--space-lg); }
.space-x-5 > * + * { margin-left: var(--space-xl); }

/* Aspect Ratios */
.aspect-ratio-16-9 {
    aspect-ratio: 16/9;
}

.aspect-ratio-4-3 {
    aspect-ratio: 4/3;
}

.aspect-ratio-1-1 {
    aspect-ratio: 1/1;
}

/* Object Fit */
.object-cover {
    object-fit: cover;
}

.object-contain {
    object-fit: contain;
}

.object-fill {
    object-fit: fill;
}

/* Background Utilities */
.bg-primary { background-color: var(--primary-color); }
.bg-secondary { background-color: var(--secondary-color); }
.bg-success { background-color: var(--success-color); }
.bg-warning { background-color: var(--warning-color); }
.bg-error { background-color: var(--error-color); }
.bg-info { background-color: var(--info-color); }
.bg-light { background-color: var(--light-gray); }
.bg-dark { background-color: var(--bg-dark); }
.bg-white { background-color: var(--white); }

/* Border Utilities */
.border { border: 1px solid var(--border-color); }
.border-0 { border: 0; }
.border-top { border-top: 1px solid var(--border-color); }
.border-right { border-right: 1px solid var(--border-color); }
.border-bottom { border-bottom: 1px solid var(--border-color); }
.border-left { border-left: 1px solid var(--border-color); }

.border-primary { border-color: var(--primary-color); }
.border-secondary { border-color: var(--secondary-color); }
.border-success { border-color: var(--success-color); }
.border-warning { border-color: var(--warning-color); }
.border-error { border-color: var(--error-color); }
.border-info { border-color: var(--info-color); }
.border-light { border-color: var(--light-gray); }
.border-dark { border-color: var(--bg-dark); }
.border-white { border-color: var(--white); }

.rounded { border-radius: var(--radius-md); }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }
.rounded-top { border-top-left-radius: var(--radius-md); border-top-right-radius: var(--radius-md); }
.rounded-bottom { border-bottom-left-radius: var(--radius-md); border-bottom-right-radius: var(--radius-md); }
.rounded-left { border-top-left-radius: var(--radius-md); border-bottom-left-radius: var(--radius-md); }
.rounded-right { border-top-right-radius: var(--radius-md); border-bottom-right-radius: var(--radius-md); }

/* Shadow Utilities */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-none { box-shadow: none; }

/* Opacity */
.opacity-0 { opacity: 0; }
.opacity-25 { opacity: 0.25; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

/* Cursor */
.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }
.cursor-not-allowed { cursor: not-allowed; }
.cursor-help { cursor: help; }
.cursor-wait { cursor: wait; }

/* User Select */
.user-select-none { user-select: none; }
.user-select-text { user-select: text; }
.user-select-all { user-select: all; }

/* Pointer Events */
.pointer-events-none { pointer-events: none; }
.pointer-events-auto { pointer-events: auto; }

/* Visibility */
.visible { visibility: visible; }
.invisible { visibility: hidden; }

/* Z-index */
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.z-auto { z-index: auto; }

/* Overflow */
.overflow-auto { overflow: auto; }
.overflow-hidden { overflow: hidden; }
.overflow-visible { overflow: visible; }
.overflow-scroll { overflow: scroll; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }
.overflow-x-hidden { overflow-x: hidden; }
.overflow-y-hidden { overflow-y: hidden; }

/* Position */
.position-static { position: static; }
.position-relative { position: relative; }
.position-absolute { position: absolute; }
.position-fixed { position: fixed; }
.position-sticky { position: sticky; }

.top-0 { top: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }

.top-50 { top: 50%; }
.right-50 { right: 50%; }
.bottom-50 { bottom: 50%; }
.left-50 { left: 50%; }

.translate-middle {
    transform: translate(-50%, -50%);
}

/* Display */
.d-block { display: block; }
.d-inline-block { display: inline-block; }
.d-inline { display: inline; }
.d-flex { display: flex; }
.d-inline-flex { display: inline-flex; }
.d-grid { display: grid; }
.d-none { display: none; }

/* Flexbox */
.flex-row { flex-direction: row; }
.flex-column { flex-direction: column; }
.flex-row-reverse { flex-direction: row-reverse; }
.flex-column-reverse { flex-direction: column-reverse; }

.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.flex-wrap-reverse { flex-wrap: wrap-reverse; }

.justify-content-start { justify-content: flex-start; }
.justify-content-end { justify-content: flex-end; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-around { justify-content: space-around; }
.justify-content-evenly { justify-content: space-evenly; }

.align-items-start { align-items: flex-start; }
.align-items-end { align-items: flex-end; }
.align-items-center { align-items: center; }
.align-items-baseline { align-items: baseline; }
.align-items-stretch { align-items: stretch; }

.align-content-start { align-content: flex-start; }
.align-content-end { align-content: flex-end; }
.align-content-center { align-content: center; }
.align-content-between { align-content: space-between; }
.align-content-around { align-content: space-around; }
.align-content-stretch { align-content: stretch; }

.align-self-auto { align-self: auto; }
.align-self-start { align-self: flex-start; }
.align-self-end { align-self: flex-end; }
.align-self-center { align-self: center; }
.align-self-baseline { align-self: baseline; }
.align-self-stretch { align-self: stretch; }

.flex-fill { flex: 1 1 auto; }
.flex-grow-0 { flex-grow: 0; }
.flex-grow-1 { flex-grow: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-shrink-1 { flex-shrink: 1; }

.order-first { order: -1; }
.order-0 { order: 0; }
.order-1 { order: 1; }
.order-2 { order: 2; }
.order-3 { order: 3; }
.order-4 { order: 4; }
.order-5 { order: 5; }
.order-last { order: 6; }

/* Grid */
.grid-template-columns-1 { grid-template-columns: repeat(1, 1fr); }
.grid-template-columns-2 { grid-template-columns: repeat(2, 1fr); }
.grid-template-columns-3 { grid-template-columns: repeat(3, 1fr); }
.grid-template-columns-4 { grid-template-columns: repeat(4, 1fr); }
.grid-template-columns-5 { grid-template-columns: repeat(5, 1fr); }
.grid-template-columns-6 { grid-template-columns: repeat(6, 1fr); }
.grid-template-columns-none { grid-template-columns: none; }

.grid-template-rows-1 { grid-template-rows: repeat(1, 1fr); }
.grid-template-rows-2 { grid-template-rows: repeat(2, 1fr); }
.grid-template-rows-3 { grid-template-rows: repeat(3, 1fr); }
.grid-template-rows-4 { grid-template-rows: repeat(4, 1fr); }
.grid-template-rows-5 { grid-template-rows: repeat(5, 1fr); }
.grid-template-rows-6 { grid-template-rows: repeat(6, 1fr); }
.grid-template-rows-none { grid-template-rows: none; }

.gap-0 { gap: 0; }
.gap-1 { gap: var(--space-xs); }
.gap-2 { gap: var(--space-sm); }
.gap-3 { gap: var(--space-md); }
.gap-4 { gap: var(--space-lg); }
.gap-5 { gap: var(--space-xl); }

.gap-row-0 { row-gap: 0; }
.gap-row-1 { row-gap: var(--space-xs); }
.gap-row-2 { row-gap: var(--space-sm); }
.gap-row-3 { row-gap: var(--space-md); }
.gap-row-4 { row-gap: var(--space-lg); }
.gap-row-5 { row-gap: var(--space-xl); }

.gap-column-0 { column-gap: 0; }
.gap-column-1 { column-gap: var(--space-xs); }
.gap-column-2 { column-gap: var(--space-sm); }
.gap-column-3 { column-gap: var(--space-md); }
.gap-column-4 { column-gap: var(--space-lg); }
.gap-column-5 { column-gap: var(--space-xl); }

.grid-column-span-1 { grid-column: span 1; }
.grid-column-span-2 { grid-column: span 2; }
.grid-column-span-3 { grid-column: span 3; }
.grid-column-span-4 { grid-column: span 4; }
.grid-column-span-5 { grid-column: span 5; }
.grid-column-span-6 { grid-column: span 6; }
.grid-column-span-full { grid-column: 1 / -1; }

.grid-row-span-1 { grid-row: span 1; }
.grid-row-span-2 { grid-row: span 2; }
.grid-row-span-3 { grid-row: span 3; }
.grid-row-span-4 { grid-row: span 4; }
.grid-row-span-5 { grid-row: span 5; }
.grid-row-span-6 { grid-row: span 6; }
.grid-row-span-full { grid-row: 1 / -1; }

.justify-items-start { justify-items: start; }
.justify-items-end { justify-items: end; }
.justify-items-center { justify-items: center; }
.justify-items-stretch { justify-items: stretch; }

.align-items-start { align-items: start; }
.align-items-end { align-items: end; }
.align-items-center { align-items: center; }
.align-items-stretch { align-items: stretch; }

.justify-self-auto { justify-self: auto; }
.justify-self-start { justify-self: start; }
.justify-self-end { justify-self: end; }
.justify-self-center { justify-self: center; }
.justify-self-stretch { justify-self: stretch; }

.align-self-auto { align-self: auto; }
.align-self-start { align-self: start; }
.align-self-end { align-self: end; }
.align-self-center { align-self: center; }
.align-self-stretch { align-self: stretch; }

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-slide-up {
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-down {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-left {
    animation: slideLeft 0.3s ease;
}

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-slide-right {
    animation: slideRight 0.3s ease;
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-bounce {
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

/* Responsive Utilities - Mobile First */
@media (min-width: 640px) {
    .sm\:d-block { display: block; }
    .sm\:d-inline-block { display: inline-block; }
    .sm\:d-inline { display: inline; }
    .sm\:d-flex { display: flex; }
    .sm\:d-inline-flex { display: inline-flex; }
    .sm\:d-grid { display: grid; }
    .sm\:d-none { display: none; }
}

@media (min-width: 768px) {
    .md\:d-block { display: block; }
    .md\:d-inline-block { display: inline-block; }
    .md\:d-inline { display: inline; }
    .md\:d-flex { display: flex; }
    .md\:d-inline-flex { display: inline-flex; }
    .md\:d-grid { display: grid; }
    .md\:d-none { display: none; }
}

@media (min-width: 1024px) {
    .lg\:d-block { display: block; }
    .lg\:d-inline-block { display: inline-block; }
    .lg\:d-inline { display: inline; }
    .lg\:d-flex { display: flex; }
    .lg\:d-inline-flex { display: inline-flex; }
    .lg\:d-grid { display: grid; }
    .lg\:d-none { display: none; }
}

@media (min-width: 1280px) {
    .xl\:d-block { display: block; }
    .xl\:d-inline-block { display: inline-block; }
    .xl\:d-inline { display: inline; }
    .xl\:d-flex { display: flex; }
    .xl\:d-inline-flex { display: inline-flex; }
    .xl\:d-grid { display: grid; }
    .xl\:d-none { display: none; }
}

/* ==========================================================================
   11. THEME SPECIFIC OVERRIDES
   ========================================================================== */

/* Healthcare Specific Styles */
.emergency-banner {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: var(--space-md);
    text-align: center;
    font-weight: 600;
    animation: pulse 2s infinite;
}

.prescription-refill-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    margin: var(--space-xl) 0;
    text-align: center;
}

.prescription-refill-banner h3 {
    color: white;
    margin-bottom: var(--space-sm);
}

.health-tip {
    background: var(--secondary-light);
    border-left: 4px solid var(--secondary-color);
    padding: var(--space-md);
    margin: var(--space-md) 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.warning-box {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin: var(--space-md) 0;
}

.success-box {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin: var(--space-md) 0;
}

.info-box {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin: var(--space-md) 0;
}

/* Pharmacy Specific Components */
.dosage-instructions {
    background: var(--primary-light);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin: var(--space-md) 0;
    font-size: var(--text-sm);
}

.dosage-instructions h4 {
    color: var(--primary-color);
    margin-bottom: var(--space-xs);
}

.medication-warning {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin: var(--space-md) 0;
    font-size: var(--text-sm);
}

.insurance-info {
    background: #e8f4fd;
    border: 1px solid #b6d4fe;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin: var(--space-md) 0;
}

.insurance-info h4 {
    color: var(--primary-color);
    margin-bottom: var(--space-xs);
}

/* Loading States for Pharmacy */
.pharmacy-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl);
    text-align: center;
}

.pharmacy-loading .loading-icon {
    width: 60px;
    height: 60px;
    border: 4px solid var(--primary-light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: var(--space-md);
}

/* Responsive Medicine Cabinet */
.medicine-cabinet {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-md);
}

.medicine-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    transition: all var(--transition-normal);
}

.medicine-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.medicine-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: var(--text-lg);
    flex-shrink: 0;
}

.medicine-info h4 {
    font-size: var(--text-base);
    margin-bottom: 2px;
    color: var(--text-primary);
}

.medicine-info p {
    font-size: var(--text-xs);
    color: var(--text-secondary);
    margin: 0;
}

/* Print Prescription Styles */
@media print {
    .prescription-print {
        page-break-inside: avoid;
    }
    
    .prescription-header {
        border-bottom: 2px solid #000;
        padding-bottom: var(--space-md);
        margin-bottom: var(--space-lg);
    }
    
    .prescription-body {
        font-size: 14pt;
        line-height: 1.6;
    }
    
    .prescription-footer {
        margin-top: var(--space-xl);
        padding-top: var(--space-md);
        border-top: 1px solid #000;
        font-size: 12pt;
    }
}

/* Accessibility Overrides for Pharmacy */
@media (prefers-contrast: high) {
    .medicine-item {
        border-width: 2px;
    }
    
    .dosage-instructions {
        border: 2px solid var(--primary-color);
    }
    
    .medication-warning {
        border-width: 2px;
    }
}

/* Animation for Pharmacy Actions */
@keyframes medicineBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.medicine-bounce {
    animation: medicineBounce 0.5s ease;
}

/* Custom Pharmacy Scrollbar */
.pharmacy-scroll::-webkit-scrollbar {
    width: 8px;
}

.pharmacy-scroll::-webkit-scrollbar-track {
    background: var(--primary-light);
}

.pharmacy-scroll::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: var(--radius-full);
}

/* Hover Effects for Pharmacy Items */
.pharmacy-hover {
    transition: all var(--transition-normal);
}

.pharmacy-hover:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
}

/* Emergency Overlay */
.emergency-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(231, 76, 60, 0.9);
    color: white;
    z-index: var(--z-max);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-xl);
}

.emergency-overlay-content {
    max-width: 600px;
}

.emergency-overlay h2 {
    color: white;
    font-size: var(--text-3xl);
    margin-bottom: var(--space-md);
}

.emergency-overlay p {
    font-size: var(--text-lg);
    margin-bottom: var(--space-xl);
    opacity: 0.9;
}

/* Loading Prescription Animation */
.prescription-loading {
    position: relative;
    overflow: hidden;
}

.prescription-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loadingShimmer 1.5s infinite;
}

@keyframes loadingShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ==========================================================================
   END OF STYLES
   ========================================================================== */