/* Add nav divider styling */
.nav-divider {
    height: 1px;
    background: var(--bg-dark-gray);
    display: none;
}

/* Improve input and form elements */
input,
textarea,
select {
    font-family: inherit;
    border-radius: var(--radius-md);
    border: 1px solid var(--bg-dark-gray);
    padding: 10px 14px;
    transition: all var(--transition-fast);
    font-size: 14px;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

input::placeholder {
    color: var(--text-muted);
}

/* Badge and label styling */
.badge {
    display: inline-block;
    padding: 6px 12px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
}

/* Links with smooth transitions */
a {
    transition: all var(--transition-fast);
    text-decoration: none;
    color: var(--primary-color);
}

a:hover {
    color: var(--primary-dark);
}

/* Button active states */
button:active {
    transform: scale(0.98);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Code blocks if present */
code,
pre {
    font-family: 'Monaco', 'Courier New', monospace;
    background-color: var(--bg-gray);
    border-radius: var(--radius-md);
    padding: 2px 6px;
}

pre {
    padding: 16px;
    overflow-x: auto;
}

/* List styling improvements */
ul,
ol {
    margin-left: 20px;
}

li {
    margin-bottom: 8px;
    line-height: 1.8;
}

/* Blockquote styling */
blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 16px;
    margin-left: 0;
    color: var(--text-light);
    font-style: italic;
}

/* HR improvements */
hr {
    border: none;
    border-top: 1px solid var(--bg-dark-gray);
    margin: 32px 0;
}

/* Images defaults */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Loading states */
.loading {
    opacity: 0.7;
    cursor: wait;
    pointer-events: none;
}

/* Utility classes for spacing */
.mt-4 {
    margin-top: 16px;
}

.mt-8 {
    margin-top: 32px;
}

.mb-4 {
    margin-bottom: 16px;
}

.mb-8 {
    margin-bottom: 32px;
}

.p-4 {
    padding: 16px;
}

.p-8 {
    padding: 32px;
}

/* Text utilities */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

/* Smooth color transitions */
* {
    transition: background-color var(--transition-fast), color var(--transition-fast),
        border-color var(--transition-fast);
}

button,
a {
    transition: all var(--transition-smooth);
}

/* Print styles */
@media print {
    * {
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    button {
        display: none;
    }
}

/* Avoid layout shift */
html {
    scroll-padding-top: 80px;
}

/* Better dark mode support if needed */
@media (prefers-color-scheme: dark) {
    :root {
        --text-dark: #F8FAFC;
        --text-light: #CBD5E1;
        --bg-gray: #1E293B;
        --bg-dark-gray: #334155;
        --white: #0F172A;
    }

    body {
        background-color: var(--white);
        color: var(--text-dark);
    }
}

/* Smooth animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Grid and Flexbox utilities */
.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.grid {
    display: grid;
}

/* Box utilities */
.rounded {
    border-radius: var(--radius-md);
}

.rounded-lg {
    border-radius: var(--radius-lg);
}

.shadow {
    box-shadow: var(--shadow-md);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

/* Display utilities */
.hidden {
    display: none;
}

.inline {
    display: inline;
}

.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

/* Overflow utilities */
.overflow-hidden {
    overflow: hidden;
}

.overflow-auto {
    overflow: auto;
}

/* Position utilities */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.sticky {
    position: sticky;
}

.fixed {
    position: fixed;
}

/* --- New UI Refinements --- */
header {
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

/* Base reset for Add To Cart buttons */
button.add-to-cart, button.btn-mini, button.btn-add, .product-card button {
    box-shadow: none !important;
}

/* Search popover removed - now using search-bar in main.css */

/* Back To Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color) !important;
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 5px 15px rgba(26, 86, 219, 0.3) !important;
    pointer-events: none;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.back-to-top:hover {
    background: var(--primary-dark) !important;
}

/* Toast Container */
#toast-container {
    position: fixed;
    bottom: 30px;
    left: 30px; 
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.awesome-toast {
    background: var(--primary-color);
    color: #fff;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    }
    to {
        opacity: 1;
    }

/* Grid and Flexbox utilities */
.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.grid {
    display: grid;
}

/* Box utilities */
.rounded {
    border-radius: var(--radius-md);
}

.rounded-lg {
    border-radius: var(--radius-lg);
}

.shadow {
    box-shadow: var(--shadow-md);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

/* Display utilities */
.hidden {
    display: none;
}

.inline {
    display: inline;
}

.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

/* Overflow utilities */
.overflow-hidden {
    overflow: hidden;
}

.overflow-auto {
    overflow: auto;
}

/* Position utilities */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.sticky {
    position: sticky;
}

.fixed {
    position: fixed;
}

/* --- New UI Refinements --- */
header {
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding-top: 10px;
    padding-bottom: 10px;
}

/* Base reset for Add To Cart buttons */
button.add-to-cart, button.btn-mini, button.btn-add, .product-card button {
    box-shadow: none !important;
}

/* Search Popover */
.search-popover {
    position: absolute;
    top: 60px;
    right: 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    display: flex;
    overflow: hidden;
    width: 320px;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    border: 1px solid rgba(0,0,0,0.05);
}

.search-popover.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.search-popover input {
    flex: 1;
    border: none;
    padding: 16px 20px;
    font-size: 14px;
    outline: none;
    color: var(--text-dark);
}

.search-popover button {
    background: var(--primary-color) !important;
    color: white;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    border-radius: 0;
}

/* Back To Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color) !important;
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 5px 15px rgba(26, 86, 219, 0.3) !important;
    pointer-events: none;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.back-to-top:hover {
    background: var(--primary-dark) !important;
}

/* Toast Container */
#toast-container {
    position: fixed;
    bottom: 30px;
    left: 30px; 
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.awesome-toast {
    background: var(--primary-color);
    color: #fff;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(-100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.awesome-toast.show {
    transform: translateX(0);
    opacity: 1;
}

/* Grid and Flexbox utilities */
.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.grid {
    display: grid;
}

/* Box utilities */
.rounded {
    border-radius: var(--radius-md);
}

.rounded-lg {
    border-radius: var(--radius-lg);
}

.shadow {
    box-shadow: var(--shadow-md);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

/* Display utilities */
.hidden {
    display: none;
}

.inline {
    display: inline;
}

.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

/* Overflow utilities */
.overflow-hidden {
    overflow: hidden;
}

.overflow-auto {
    overflow: auto;
}

/* Position utilities */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.sticky {
    position: sticky;
}

.fixed {
    position: fixed;
}

/* --- New UI Refinements --- */
header {
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding-top: 10px;
    padding-bottom: 10px;
}

/* Base reset for Add To Cart buttons */
button.add-to-cart, button.btn-mini, button.btn-add, .product-card button {
    box-shadow: none !important;
}

/* Search Popover */
.search-popover {
    position: absolute;
    top: 60px;
    right: 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    display: flex;
    overflow: hidden;
    width: 320px;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    border: 1px solid rgba(0,0,0,0.05);
}

.search-popover.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.search-popover input {
    flex: 1;
    border: none;
    padding: 16px 20px;
    font-size: 14px;
    outline: none;
    color: var(--text-dark);
}

.search-popover button {
    background: var(--primary-color) !important;
    color: white;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    border-radius: 0;
}

/* Back To Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color) !important;
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 5px 15px rgba(26, 86, 219, 0.3) !important;
    pointer-events: none;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.back-to-top:hover {
    background: var(--primary-dark) !important;
}

/* Toast Container */
#toast-container {
    position: fixed;
    bottom: 30px;
    left: 30px; 
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.awesome-toast {
    background: var(--primary-color);
    color: #fff;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(26, 86, 219, 0.4);
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(-100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.awesome-toast.show {
    transform: translateX(0);
    opacity: 1;
}

/* --- Testimonials Section Styling --- */
.testimonials-section {
    padding: 80px 0;
    text-align: center;
    background: var(--bg-gray);
    margin-top: 60px;
}

.testimonials-section h3 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.testimonials-section p {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 40px;
}

.Customers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 900px) {
    .Customers {
        grid-template-columns: repeat(1, 1fr);
    }
}

.testimonial-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition-smooth);
    position: relative;
    border: 1px solid rgba(0,0,0,0.02);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.testimonial-card img {
    border-radius: 50%;
    margin-bottom: 20px;
    border: 3px solid var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    object-fit: cover;
}

.testimonial-card p {
    color: var(--text-dark);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.testimonial-card p::before {
    content: '"';
    font-size: 60px;
    color: var(--primary-light);
    opacity: 0.2;
    position: absolute;
    top: -30px;
    left: -10px;
    z-index: -1;
    font-family: Georgia, serif;
}

/* User had style="color: red" inline, we override it strongly here */
.testimonial-card span {
    font-weight: 700;
    color: var(--primary-color) !important; 
    font-size: 14px;
    margin-top: auto;
}
