/* =========================================== */
/* style.css - Professional E-commerce Styles */
/* =========================================== */

/* ========== CSS VARIABLES & GLOBAL STYLES ========== */
:root {
    /* Color Variables */
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --danger-color: #ff6b6b;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --dark-color: #333;
    --light-color: #f8f9fa;
    
    /* Gradient Variables */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-danger: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    
    /* Spacing Variables */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    
    /* Border Radius */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 25px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-primary: 0 5px 15px rgba(102, 126, 234, 0.1);
}

/* ========== RESET & BASE STYLES ========== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

/* .container {
    max-width: 1200px;
    padding-left: 15px;
    padding-right: 15px;
} */
/* Container Fix for Large Monitors */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 1px;
}
.main-content {
    padding-top: 10px;
    flex: 1;
}

/* ========== UTILITY CLASSES ========== */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-hover {
    transition: box-shadow 0.3s ease;
}

.shadow-hover:hover {
    box-shadow: var(--shadow-lg) !important;
}

.transition-all {
    transition: all 0.3s ease;
}

/* ========== 1. MARQUEE SCROLL SECTION ========== */
.top-announcement {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-xs) 0;
    position: relative;
    overflow: hidden;
}

.top-announcement::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 100%;
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.3), transparent);
    z-index: 1;
    pointer-events: none;
}

.top-announcement marquee {
    padding: 3px 0;
    font-weight: 500;
}

.announcement-item {
    display: inline-block;
    margin: 0 var(--spacing-xl);
    padding: var(--spacing-xs) var(--spacing-sm);
}

.announcement-highlight {
    color: var(--warning-color);
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.3);
}

.announcement-sale {
    background: var(--gradient-danger);
    padding: 2px 8px;
    border-radius: var(--border-radius-sm);
    color: white;
    font-weight: bold;
    margin-left: var(--spacing-sm);
}

/* ========== 2. LOGO, BANNER & SEARCH SECTION ========== */
.main-header {
    padding: var(--spacing-sm) 0;
    background: white;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 1001;
}

/* Logo Styles */
.logo-container {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Search Section */
.search-section {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.search-wrapper {
    width: 100%;
    max-width: 600px;
}

.search-container {
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    border: 2px solid #e0e0e0;
    background: white;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.search-container:focus-within {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-primary);
    transform: translateY(-1px);
}

.search-category-wrapper {
    position: relative;
    flex: 0 0 180px;
}

.search-category {
    width: 100%;
    background: var(--light-color);
    border: none;
    border-right: 1px solid #dee2e6;
    padding: 12px 40px 12px 20px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23667eea' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

.search-category:focus {
    outline: none;
    background-color: white;
}

.search-input-group {
    flex: 1;
}

.search-input {
    border: none;
    padding: 12px 20px;
    font-size: 0.95rem;
    width: 100%;
}

.search-input:focus {
    outline: none;
    box-shadow: none;
}

.search-btn {
    background: var(--gradient-primary);
    border: none;
    padding: 12px 30px;
    font-weight: 500;
    color: white;
    transition: all 0.3s ease;
    min-width: 120px;
}

.search-btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateX(2px);
}

/* Mobile Search */
.mobile-search-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--dark-color);
    font-size: 1.2rem;
    padding: var(--spacing-sm);
    cursor: pointer;
}

.mobile-search-container {
    display: none;
    padding: var(--spacing-sm) 0;
}

.mobile-search-container.active {
    display: block;
}

.mobile-search .input-group {
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    border: 1px solid #dee2e6;
}

.mobile-search input {
    border: none;
    padding: 10px 15px;
}

.mobile-search button {
    background: var(--primary-color);
    border: none;
    padding: 10px 20px;
    color: white;
}

/* ========== 3. BANNER SECTION ========== */
.hero-banner {
    background: linear-gradient(135deg, #f5f7ff 0%, #ffffff 100%);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: var(--spacing-lg);
    max-height: 150px;
    position: relative;
}

.banner-row {
    height: 150px;
    max-height: 150px;
}

/* Banner Content */
.banner-content {
    background: white;
    height: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.banner-content::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(to left, white 30%, transparent);
    z-index: -1;
}

#banner-title {
    font-size: 1.4rem;
    line-height: 1.2;
    margin-bottom: 0.3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#banner-subtitle {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.banner-cta {
    margin-top: var(--spacing-sm);
}

/* Banner Image */
.banner-image-container {
    height: 150px;
    overflow: hidden;
    position: relative;
}

.banner-image {
    object-fit: cover;
    height: 100%;
    width: 100%;
    transition: transform 0.5s ease;
}

.banner-image:hover {
    transform: scale(1.05);
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(255,255,255,0.1) 0%, transparent 30%);
}

/* Banner Badges */
.banner-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 3;
    animation: float 3s ease-in-out infinite;
}

.banner-badge .badge {
    background: var(--gradient-danger);
    font-size: 0.7rem;
    padding: 4px 8px;
    font-weight: 600;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-5px) rotate(2deg); }
}

/* ========== RESPONSIVE DESIGN ========== */
/* Large Desktop */
/* @media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
} */
/* Large Desktop Screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
}

/* Very Large Monitors (21 inch, 24 inch, 27 inch) */
@media (min-width: 1600px) {
    .container {
        max-width: 1600px;
    }
}

/* Ultra Wide Screens */
@media (min-width: 1920px) {
    .container {
        max-width: 1750px;
    }
}
/* Tablet and below */
@media (max-width: 991.98px) {
    .search-section {
        margin-top: var(--spacing-sm);
    }
    
    .search-container {
        flex-direction: column;
        border-radius: var(--border-radius-lg);
    }
    
    .search-category-wrapper {
        flex: 0 0 100%;
        border-right: none;
        border-bottom: 1px solid #dee2e6;
    }
    
    .search-category {
        border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
        width: 100%;
    }
    
    .search-btn {
        width: 100%;
        border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
    }
    
    .mobile-search-toggle {
        display: block;
    }
    
    .desktop-search {
        display: none;
    }
    
    .hero-banner {
        max-height: 140px;
    }
    
    .banner-row,
    .banner-content,
    .banner-image-container {
        height: 140px;
        max-height: 140px;
    }
    
    #banner-title {
        font-size: 1.2rem;
    }
}

/* Mobile */
@media (max-width: 767.98px) {
    .main-header {
        padding: var(--spacing-xs) 0;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .hero-banner {
        max-height: 130px;
        border-radius: var(--border-radius-md);
    }
    
    .banner-row,
    .banner-content,
    .banner-image-container {
        height: 130px;
        max-height: 130px;
    }
    
    #banner-title {
        font-size: 1.1rem;
    }
    
    #banner-subtitle {
        font-size: 0.7rem;
    }
    
    .banner-content {
        padding: var(--spacing-sm);
    }
    
    .top-announcement {
        font-size: 0.75rem;
    }
    
    .announcement-item {
        margin: 0 var(--spacing-md);
    }
}

/* Small mobile */
@media (max-width: 575.98px) {
    .hero-banner {
        max-height: 120px;
    }
    
    .banner-row,
    .banner-content,
    .banner-image-container {
        height: 120px;
        max-height: 120px;
    }
    
    #banner-title {
        font-size: 1rem;
    }
    
    #banner-subtitle {
        font-size: 0.65rem;
    }
    
    .banner-badge {
        top: 10px;
        right: 10px;
    }
    
    .search-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* ========== PRINT STYLES ========== */
@media print {
    .top-announcement,
    .search-section,
    .mobile-search-toggle {
        display: none !important;
    }
    
    .hero-banner {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
/* ======================
   AUTHENTICATION STYLES
   ====================== */

.auth-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.auth-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.auth-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    text-align: center;
}

.auth-header h2 {
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 28px;
}

.auth-header p {
    opacity: 0.9;
    margin-bottom: 0;
}

.auth-body {
    padding: 40px;
}

.auth-form .form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.auth-form .input-group {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    transition: border-color 0.3s;
}

.auth-form .input-group:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
}

.auth-form .input-group-text {
    background-color: #f8f9fa;
    border: none;
    color: #667eea;
    padding: 12px 15px;
}

.auth-form .form-control {
    border: none;
    padding: 12px 15px;
    font-size: 15px;
}

.auth-form .form-control:focus {
    box-shadow: none;
}

.auth-form .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 14px;
    font-weight: 600;
    font-size: 16px;
    border-radius: 8px;
    transition: all 0.3s;
}

.auth-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

.auth-form .btn-outline-primary {
    border-color: #667eea;
    color: #667eea;
}

.auth-form .btn-outline-primary:hover {
    background-color: #667eea;
    border-color: #667eea;
    color: white;
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 25px 0;
}

.auth-divider:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
}

.auth-divider span {
    background: white;
    padding: 0 15px;
    color: #666;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.auth-links {
    text-align: center;
    margin-top: 20px;
}

.auth-links a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Password Strength */
.password-strength {
    margin-top: 5px;
}

.strength-meter {
    height: 5px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 5px;
}

.strength-fill {
    height: 100%;
    width: 0;
    border-radius: 3px;
    transition: all 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-section {
        padding: 40px 15px;
    }
    
    .auth-header,
    .auth-body {
        padding: 30px 20px;
    }
    
    .auth-header h2 {
        font-size: 24px;
    }
}
/* Auth Page Styling - TOP POSITIONED */
.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding-top: 5px; /* Changed from center alignment to top */
    padding-bottom: 40px;
}

.auth-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.auth-card {
    border-radius: 15px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    width: 100%;
}

.auth-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5px;
    text-align: center;
}

.auth-card-header h2 {
    font-weight: 400;
    margin-bottom: 8px;
    font-size: 18px;
}

.auth-card-header p {
    opacity: 0.9;
    margin-bottom: 0;
    font-size: 15px;
}

.auth-card-body {
    padding: 20px;
    background: white;
}

.auth-form .form-label {
    font-weight: 400;
    color: #333;
    margin-bottom: 6px;
    font-size: 13px;
}

.auth-form .input-group {
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    width: 100%;
    margin-bottom: 5px;
}

.auth-form .input-group-text {
    background-color: #f8f9fa;
    border: none;
    color: #667eea;
    padding: 10px 12px;
    min-width: 45px;
    font-size: 14px;
}

.auth-form .form-control {
    border: none;
    padding: 10px 12px;
    font-size: 14px;
    width: 100%;
}

.auth-form .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 12px;
    font-weight: 600;
    font-size: 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

.auth-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

/* Alert Styles */
.alert {
    border-radius: 6px;
    border: none;
    padding: 12px 15px;
    margin-bottom: 15px;
    width: 100%;
    font-size: 14px;
}

/* Back to home link - TOP positioned */
.back-home-top {
    position: absolute;
    top: 20px;
    left: 20px;
    color: white !important;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
    z-index: 100;
    font-size: 14px;
}

.back-home-top:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white !important;
}

/* Password strength */
.password-strength {
    margin-top: 3px;
    font-size: 12px;
}
#imageModal .modal-dialog {
    margin-top: 70px;
}
/* Fix for stuck modal backdrop */
body.modal-open {
    overflow: auto !important;
    padding-right: 0 !important;
}
.modal-backdrop {
    z-index: 1040 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-page {
        padding-top: 50px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .auth-container {
        max-width: 100%;
    }
    
    .back-home-top {
        top: 15px;
        left: 15px;
    }
}

@media (max-width: 576px) {
    .auth-page {
        padding-top: 40px;
    }
    
    .auth-card-header {
        padding: 20px 15px;
    }
    
    .auth-card-body {
        padding: 20px 15px;
    }
    
    .auth-card-header h2 {
        font-size: 22px;
    }
    
    .back-home-top {
        top: 10px;
        left: 10px;
    }
}
.auth-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: 0.2s;
}
.card-body {
    padding-left: 30px;
    padding-top: 0px;
}

.auth-close-btn:hover {
    color: #ffdddd;
    transform: scale(1.2);
}
.carousel,
.carousel-inner,
.carousel-item,
.hero-section img {
    z-index: 1 !important;
}

.navbar {
    z-index: 999999 !important;
}