/* Masha Global Link - Custom Styles */

/* Typography - Montserrat Font Family */
* {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

.navbar-brand {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
}

.nav-link {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500;
}

.btn {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500;
}

.card-title {
    font-weight: 600;
}

.hero-title {
    font-weight: 600;
}

.hero-subtitle {
    font-weight: 400;
}

:root {
    --primary-color: #0F6A90;
    --secondary-color: #6FC5D9;
}

/* Override Bootstrap primary color */
.bg-primary {
    background-color: var(--primary-color) !important;
}

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

.btn-primary:hover {
    background-color: #0d5a7a;
    border-color: #0d5a7a;
}

.text-primary {
    color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* Hero Banner Styles */
.hero-banner {
    position: relative;
    width: 100%;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    margin-top: 76px; /* Account for fixed navbar */
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(15, 106, 144, 0.85) 0%, rgba(15, 106, 144, 0.6) 50%, transparent 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 3rem 0;
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    line-height: 1.5;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-btn {
    font-weight: 600;
    padding: 0.75rem 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

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

/* Mobile-first responsive adjustments */
@media (max-width: 768px) {
    .hero-banner {
        min-height: 400px;
        margin-top: 76px;
    }
    
    .hero-content {
        padding: 2rem 1rem;
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-btn {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }
    
    .card-body {
        padding: 1rem !important;
    }
    
    .navbar-brand {
        font-size: 1rem !important;
    }
}

@media (max-width: 576px) {
    .hero-banner {
        min-height: 350px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

/* Icon-based design enhancements */
.card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
}

/* Loading states */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Form enhancements */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(15, 106, 144, 0.25);
}

/* Badge enhancements */
.badge {
    font-weight: 500;
}

/* Button enhancements */
.btn {
    font-weight: 500;
    transition: all 0.2s;
}

.btn:hover {
    transform: translateY(-1px);
}

/* Footer */
footer {
    margin-top: auto;
}

/* Utility classes */
.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* Product card images */
.card-img-top {
    object-fit: contain;
    background-color: #f8f9fa;
}

/* Product type overlay labels */
.position-relative .badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.badge.bg-info {
    background-color: var(--secondary-color) !important;
}

/* Sticky elements */
.sticky-top {
    z-index: 1020;
}

/* Alert enhancements */
.alert {
    border: none;
    border-radius: 0.5rem;
}

/* Navigation enhancements */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 700;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

@media (max-width: 576px) {
    .navbar-brand img {
        height: 30px;
    }
    
    .navbar-brand {
        font-size: 0.9rem;
    }
}

/* Navigation separator */
.nav-separator {
    color: rgba(255, 255, 255, 0.5);
    padding: 0.5rem 0;
    pointer-events: none;
    user-select: none;
}

@media (max-width: 991px) {
    .nav-separator {
        display: none;
    }
}

/* Cart badge */
#cart-count {
    margin-left: 0.25rem;
}

/* Responsive tables */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.875rem;
    }
}

/* Floating Cart Button */
.floating-cart-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(15, 106, 144, 0.4);
    text-decoration: none;
    z-index: 1050;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    min-width: 200px;
    justify-content: center;
}

.floating-cart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(15, 106, 144, 0.5);
    color: white;
    text-decoration: none;
}

.floating-cart-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

.floating-cart-btn i {
    font-size: 1.5rem;
}

.floating-cart-text {
    font-size: 1rem;
    white-space: nowrap;
}

.floating-cart-badge {
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    min-width: 28px;
}

@media (max-width: 768px) {
    .floating-cart-btn {
        bottom: 20px;
        right: 20px;
        padding: 0.875rem 1.25rem;
        min-width: auto;
    }
    
    .floating-cart-text {
        font-size: 0.875rem;
    }
    
    .floating-cart-btn i {
        font-size: 1.25rem;
    }
    
    .floating-cart-badge {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
        min-width: 24px;
    }
}

@media (max-width: 576px) {
    .floating-cart-btn {
        bottom: 15px;
        right: 15px;
        padding: 0.75rem 1rem;
    }
    
    .floating-cart-text {
        display: none;
    }
    
    .floating-cart-content {
        gap: 0.5rem;
    }
}

/* Print styles */
@media print {
    .navbar,
    footer,
    .btn,
    .no-print,
    .floating-cart-btn {
        display: none !important;
    }
}

