/* ========================================
   PROFESSIONAL WEBSITE ENHANCEMENTS
   Subtle, clean, and modern improvements
   ======================================== */

/* ========================================
   TYPOGRAPHY & READABILITY
   ======================================== */

body {
    font-smoothing: antialiased;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: #2c3e50;
}

p {
    line-height: 1.7;
    color: #555;
}

/* ========================================
   PROFESSIONAL CARDS
   ======================================== */

.card,
.aiz-card,
.aiz-card-box {
    border: 1px solid #e8ecef;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    background: #fff;
}

.card:hover,
.aiz-card:hover,
.aiz-card-box:hover {
    border-color: #d4d9dd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Product cards specific */
.product-card,
.carousel-box {
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.product-card .card-body,
.carousel-box .card-body {
    padding: 1rem;
}

/* ========================================
   PROFESSIONAL BUTTONS
   ======================================== */

.btn {
    font-weight: 500;
    letter-spacing: 0.3px;
    border-radius: 6px;
    padding: 0.5rem 1.25rem;
    transition: all 0.25s ease;
    border-width: 1px;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--hov-primary);
    border-color: var(--hov-primary);
}

.btn-soft-primary {
    background-color: var(--soft-primary);
    color: var(--primary);
    border-color: transparent;
}

.btn-soft-primary:hover {
    background-color: var(--primary);
    color: #fff;
}

/* Icon buttons */
.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* ========================================
   PROFESSIONAL FORMS
   ======================================== */

.form-control,
.aiz-select,
select.form-control,
textarea.form-control {
    border: 1px solid #d4d9dd;
    border-radius: 6px;
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    background-color: #fff;
}

.form-control:focus,
.aiz-select:focus,
select.form-control:focus,
textarea.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--soft-primary);
    outline: none;
}

.form-control::placeholder {
    color: #a0a0a0;
}

/* Form labels */
.form-label,
label {
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

/* ========================================
   NAVIGATION ENHANCEMENTS
   ======================================== */

/* Top navbar */
.top-navbar {
    background: #fff;
    border-bottom: 1px solid #e8ecef;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Navigation links */
.nav-link {
    color: #555;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 0.5rem 1rem;
}

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

/* Category menu */
.aiz-category-menu {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.category-nav-element {
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.category-nav-element:hover {
    background-color: #f8f9fa;
    border-left-color: var(--primary);
    padding-left: 1.25rem;
}

/* ========================================
   PRODUCT DISPLAY
   ======================================== */

/* Product images */
.product-image,
.img-fit {
    transition: transform 0.3s ease;
}

.product-card:hover .product-image,
.carousel-box:hover .img-fit {
    transform: scale(1.03);
}

/* Product titles */
.product-title {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #2c3e50;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

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

/* Price styling */
.price,
.product-price {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary);
}

.old-price,
.text-strike {
    color: #999;
    font-size: 0.9375rem;
}

/* Discount badge */
.discount-badge,
.badge-discount {
    background: #e74c3c;
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Rating stars */
.rating {
    color: #f39c12;
}

/* ========================================
   SEARCH BAR
   ======================================== */

.search-box {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.search-box .form-control {
    border: none;
    border-radius: 6px 0 0 6px;
}

.search-box .btn {
    border-radius: 0 6px 6px 0;
}

/* Search suggestions */
.typed-search-box {
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border: 1px solid #e8ecef;
}

/* ========================================
   BADGES & LABELS
   ======================================== */

.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
    border-radius: 4px;
}

.badge-inline {
    display: inline-flex;
    align-items: center;
}

/* ========================================
   MODALS
   ======================================== */

.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid #e8ecef;
    padding: 1.25rem 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid #e8ecef;
    padding: 1rem 1.5rem;
}

/* ========================================
   BREADCRUMBS
   ======================================== */

.breadcrumb {
    background: transparent;
    padding: 0.75rem 0;
    margin-bottom: 1rem;
}

.breadcrumb-item {
    font-size: 0.875rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #999;
    font-size: 1.125rem;
}

.breadcrumb-item a {
    color: #666;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--primary);
}

.breadcrumb-item.active {
    color: #2c3e50;
}

/* ========================================
   PAGINATION
   ======================================== */

.pagination {
    gap: 0.25rem;
}

.page-link {
    border: 1px solid #d4d9dd;
    color: #555;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    transition: all 0.2s ease;
}

.page-link:hover {
    background-color: var(--soft-primary);
    border-color: var(--primary);
    color: var(--primary);
}

.page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ========================================
   ALERTS
   ======================================== */

.alert {
    border-radius: 8px;
    border: none;
    padding: 1rem 1.25rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* ========================================
   TABLES
   ======================================== */

.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #e8ecef;
    font-weight: 600;
    color: #2c3e50;
    padding: 0.875rem;
}

.table tbody td {
    padding: 0.875rem;
    border-bottom: 1px solid #e8ecef;
    vertical-align: middle;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background-color: #2c3e50;
    color: #ecf0f1;
}

.footer a {
    color: #bdc3c7;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: #fff;
}

.footer h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* ========================================
   BANNERS & SLIDERS
   ======================================== */

.banner,
.slider-item {
    border-radius: 8px;
    overflow: hidden;
}

.banner img,
.slider-item img {
    transition: transform 0.5s ease;
}

.banner:hover img,
.slider-item:hover img {
    transform: scale(1.02);
}

/* ========================================
   SECTION HEADINGS
   ======================================== */

.section-title,
.heading {
    font-size: 1.75rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
}

/* ========================================
   LOADING STATES
   ======================================== */

.spinner-border {
    border-width: 2px;
}

.c-preloader {
    background: rgba(255, 255, 255, 0.95);
}

/* ========================================
   SHADOWS & DEPTH
   ======================================== */

.shadow-sm {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

.shadow {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.shadow-lg {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
}

/* ========================================
   SPACING & LAYOUT
   ======================================== */

.section {
    padding: 3rem 0;
}

.container {
    max-width: 1200px;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 768px) {
    .section-title,
    .heading {
        font-size: 1.5rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .card:hover,
    .aiz-card:hover {
        transform: translateY(-1px);
    }

    .product-card:hover .product-image {
        transform: scale(1.02);
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

.btn:focus,
.form-control:focus,
.page-link:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Skip to main content */
.skip-to-main {
    position: absolute;
    left: -9999px;
    z-index: 999;
}

.skip-to-main:focus {
    left: 0;
    background: var(--primary);
    color: #fff;
    padding: 0.5rem 1rem;
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .no-print,
    .navbar,
    .footer,
    .btn {
        display: none !important;
    }

    body {
        font-size: 12pt;
    }
}
