/* Main CSS for Salelologa Market Website */

/* Import Bootstrap 5 */
@import url('https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css');

/* Import Font Awesome Icons */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* CSS Variables - Light Theme */
:root {
    --primary-color: #4A90E2;
    --primary-light: #E8F4FD;
    --primary-dark: #357ABD;
    --secondary-color: #7B68EE;
    --success-color: #52C41A;
    --info-color: #1890FF;
    --warning-color: #FAAD14;
    --danger-color: #F5222D;
    --light-color: #FFFFFF;
    --light-gray: #F8FAFB;
    --medium-gray: #F1F3F5;
    --dark-color: #2C3E50;
    --text-primary: #2C3E50;
    --text-secondary: #6C757D;
    --text-light: #8492A6;
    --border-color: #E1E8ED;
    --bg-light: #F8FAFB;
    --bg-white: #FFFFFF;
    --shadow-light: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-medium: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-heavy: 0 8px 32px rgba(0,0,0,0.12);
    --font-family: 'Poppins', sans-serif;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
    --transition: all 0.3s ease;
    --transition-smooth: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navigation Enhancements */
.navbar {
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid var(--border-color);
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: var(--transition);
    border-radius: var(--border-radius-sm);
    margin: 0 2px;
    color: var(--text-primary) !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: var(--primary-light);
    color: var(--primary-color) !important;
    transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 100px 0 80px;
    margin-top: -76px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" preserveAspectRatio="none"><path d="M0,50 Q250,0 500,50 T1000,50 L1000,100 L0,100 Z" fill="rgba(255,255,255,0.1)"/></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
}

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

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Product Cards */
.product-card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    transition: var(--transition-smooth);
    overflow: hidden;
    height: 100%;
    background: var(--bg-white);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-color);
}

.product-image-container {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: var(--light-gray);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-gallery {
    position: relative;
}

.gallery-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 10;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}

.gallery-dot.active {
    background: white;
    width: 12px;
}

/* Image Indicators for Featured Products */
.image-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.image-indicators .indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.image-indicators .indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.image-indicators .indicator.active {
    background: white;
    width: 12px;
    height: 12px;
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

.product-body {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.product-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-style: italic;
}

.product-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Search and Filter Section */
.search-section {
    background: var(--bg-white);
    padding: 2rem 0;
    border-radius: var(--border-radius-lg);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-light);
}

.search-input {
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-light);
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(74,144,226,0.15);
    background: var(--bg-white);
}

.filter-btn {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Location Section */
.location-section {
    background: var(--light-color);
    padding: 3rem 0;
}

.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    height: 400px;
    background: #e9ecef;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 3rem 0;
}

.contact-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.contact-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Footer Enhancements */
footer {
    margin-top: auto;
    background: var(--bg-white) !important;
    border-top: 1px solid var(--border-color);
}

footer a {
    transition: var(--transition);
    color: var(--text-secondary) !important;
}

footer a:hover {
    color: var(--primary-color) !important;
    transform: translateX(3px);
}

/* Pagination */
.pagination .page-link {
    color: var(--primary-color);
    border: 1px solid #dee2e6;
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

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

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

/* Utility Classes */
.text-success {
    color: var(--success-color) !important;
}

.bg-success {
    background-color: var(--success-color) !important;
}

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

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .product-image-container {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .product-card {
        margin-bottom: 1.5rem;
    }

    .contact-card {
        margin-bottom: 1.5rem;
    }

    .product-image-container {
        height: 160px;
    }

    .gallery-indicators {
        bottom: 8px;
    }

    .gallery-dot {
        width: 6px;
        height: 6px;
    }

    .gallery-dot.active {
        width: 10px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 80px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .filter-btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .product-image-container {
        height: 140px;
    }

    .product-body {
        padding: 1rem;
    }

    .product-title {
        font-size: 1.1rem;
    }

    .product-subtitle {
        font-size: 0.85rem;
    }

    .product-description {
        font-size: 0.85rem;
    }

    .qr-code {
        width: 50px !important;
        height: 50px !important;
    }

    .map-container {
        height: 300px;
    }

    .contact-card {
        padding: 1.5rem;
    }

    .contact-icon {
        font-size: 2rem;
    }
}

/* Extra small devices (portrait phones, less than 400px) */
@media (max-width: 400px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .display-4 {
        font-size: 2rem !important;
    }

    .display-5 {
        font-size: 1.8rem !important;
    }

    .lead {
        font-size: 0.95rem !important;
    }

    .product-image-container {
        height: 120px;
    }

    .product-body {
        padding: 0.75rem;
    }

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

/* Large devices (desktops, 1200px and up) */
@media (min-width: 1200px) {
    .product-image-container {
        height: 220px;
    }

    .hero-title {
        font-size: 4rem;
    }
}

/* Touch-friendly enhancements for mobile */
@media (hover: none) and (pointer: coarse) {
    .product-card:hover {
        transform: none;
    }

    .product-card:active {
        transform: scale(0.98);
    }

    .filter-btn {
        min-height: 44px;
        padding: 0.75rem 1rem;
    }

    .btn {
        min-height: 44px;
        padding: 0.75rem 1rem;
    }

    .gallery-dot {
        min-width: 12px;
        min-height: 12px;
    }

    .qr-code {
        min-width: 60px;
        min-height: 60px;
    }
}

/* Mobile-specific navigation improvements */
@media (max-width: 768px) {
    .navbar-nav {
        text-align: center;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
}

/* Improve form inputs for mobile */
@media (max-width: 576px) {
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.75rem;
        min-height: 44px;
    }

    .form-select {
        font-size: 16px;
        padding: 0.75rem;
        min-height: 44px;
    }
}

/* Mobile-specific table improvements */
@media (max-width: 768px) {
    .table {
        font-size: 0.9rem;
    }

    .table th,
    .table td {
        padding: 0.5rem;
    }
}

/* Mobile-specific modal improvements */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 0.5rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-footer {
        padding: 0.5rem 1rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

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

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .pagination {
        display: none !important;
    }

    .product-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* ========================
   ENHANCED PRODUCT PAGE STYLES
   ======================== */

/* Products Page Body */
.products-page {
    background: var(--bg-light);
}

/* Enhanced Hero Section */
.products-hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--info-color) 100%);
    color: white;
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.products-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" preserveAspectRatio="none"><path d="M0,50 Q250,0 500,50 T1000,50 L1000,100 L0,100 Z" fill="rgba(255,255,255,0.1)"/></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-stats {
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    min-width: 120px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    display: block;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-image {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.floating-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
}

.floating-icon:nth-child(1) {
    animation-delay: 0s;
}

.floating-icon:nth-child(2) {
    animation-delay: 1s;
}

.floating-icon:nth-child(3) {
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Enhanced Search and Filter Section */
.search-filter-section {
    background: var(--bg-white);
    padding: 1.5rem 0;
    box-shadow: var(--shadow-medium);
    position: sticky;
    top: 76px;
    z-index: 1000;
    border-bottom: 3px solid var(--primary-color);
}

.search-filter-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.search-container {
    flex: 1;
}

.search-input-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 1rem 3.5rem 1rem 3.5rem;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-light);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(74,144,226,0.1);
    background: var(--bg-white);
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.125rem;
}

.search-clear-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 50%;
    transition: var(--transition);
}

.search-clear-btn:hover {
    background: #f8f9fa;
    color: var(--primary-color);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1001;
    max-height: 200px;
    overflow-y: auto;
}

.filter-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-pill {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    font-size: 0.875rem;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    color: var(--text-primary);
}

.filter-pill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: left 0.3s ease;
    z-index: -1;
}

.filter-pill:hover::before,
.filter-pill.active::before {
    left: 0;
}

.filter-pill:hover,
.filter-pill.active {
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40,167,69,0.3);
}

.filter-count {
    background: rgba(255,255,255,0.2);
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    min-width: 20px;
    text-align: center;
}

.filter-pill:not(.active) .filter-count {
    background: #6c757d;
    color: white;
}

.advanced-filters-toggle {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    white-space: nowrap;
}

.advanced-filters-toggle:hover {
    background: #218838;
    transform: translateY(-2px);
}

.results-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-top: 1px solid #e9ecef;
}

.results-text {
    font-size: 0.875rem;
    color: #6c757d;
}

.results-text span {
    font-weight: 600;
    color: var(--dark-color);
}

.view-options {
    display: flex;
    gap: 0.5rem;
}

.view-option {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    color: #6c757d;
}

.view-option:hover,
.view-option.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Advanced Filters */
.advanced-filters {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Products Main Section */
.products-main {
    padding: 3rem 0;
    min-height: 60vh;
}

/* Loading State */
.loading-state {
    display: none;
}

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.skeleton-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton-card::before {
    content: '';
    display: block;
    height: 200px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.skeleton-card::after {
    content: '';
    display: block;
    height: 20px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

@keyframes skeleton-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* No Results State */
.no-results-state {
    text-align: center;
    padding: 4rem 2rem;
}

.no-results-content {
    max-width: 400px;
    margin: 0 auto;
}

.no-results-icon {
    font-size: 4rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.no-results-content h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.no-results-content p {
    color: #6c757d;
    margin-bottom: 2rem;
}

/* Enhanced Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    align-items: start;
}

/* Product card wrapper for proper grid spacing */
.product-card-wrapper {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Enhanced Product Card */
.product-card-enhanced {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-medium);
    transition: var(--transition-smooth);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: 2px solid var(--border-color);
}

.product-card-enhanced:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-color);
}

.product-card-enhanced .product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

.product-card-enhanced .product-actions {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.product-action-btn {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    color: #6c757d;
}

.product-action-btn:hover {
    background: white;
    color: var(--primary-color);
    transform: scale(1.1);
}

.product-action-btn.favorited {
    color: #e74c3c;
}

.product-card-enhanced .product-image-container {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #f8f9fa;
}

.product-card-enhanced .product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-card-enhanced .product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 1rem;
    color: white;
    transform: translateY(100%);
    transition: var(--transition);
}

.product-card-enhanced:hover .product-overlay {
    transform: translateY(0);
}

.product-card-enhanced .product-overlay-text {
    font-size: 0.875rem;
    text-align: center;
}

.product-card-enhanced .product-body {
    padding: 1.5rem;
}

.product-card-enhanced .product-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.75rem;
}

.product-card-enhanced .product-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.product-card-enhanced .product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.product-card-enhanced .product-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 0.75rem;
}

.product-card-enhanced .product-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-enhanced .product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.product-card-enhanced .product-category {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card-enhanced .product-availability {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    background: #d4edda;
    color: #155724;
}

/* Category Color Coding */
.category-seafood .product-badge {
    background: #007bff;
}

.category-fish .product-badge {
    background: #17a2b8;
}

.category-produce .product-badge {
    background: #28a745;
}

.category-handicraft .product-badge {
    background: #6f42c1;
}

/* List View */
.products-grid.list-view {
    grid-template-columns: 1fr;
}

.products-grid.list-view .product-card-enhanced {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.products-grid.list-view .product-card-enhanced .product-image-container {
    width: 200px;
    height: 150px;
    flex-shrink: 0;
}

.products-grid.list-view .product-card-enhanced .product-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Load More Indicator */
.load-more-indicator {
    text-align: center;
    padding: 2rem;
}

.load-more-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

/* End of Results */
.end-of-results {
    text-align: center;
    padding: 3rem 2rem;
    color: #6c757d;
}

.end-results-content {
    max-width: 400px;
    margin: 0 auto;
}

.end-results-content i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    opacity: 0.7;
}

.end-results-content h4 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* Modals */
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 16px 16px;
    background: #f8f9fa;
}

/* Floating Action Buttons */
.floating-actions {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    position: relative;
}

.fab-primary {
    background: var(--primary-color);
    color: white;
}

.fab-primary:hover {
    background: #218838;
    transform: scale(1.1);
}

.fab-secondary {
    background: white;
    color: #6c757d;
    border: 2px solid #e9ecef;
}

.fab-secondary:hover {
    background: #f8f9fa;
    transform: scale(1.1);
}

.fab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #dc3545;
    color: white;
    font-size: 0.75rem;
    padding: 0.125rem 0.375rem;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
    font-weight: 600;
}

/* Enhanced Responsive Design */
@media (max-width: 992px) {
    .search-filter-container {
        flex-direction: column;
        gap: 1rem;
    }

    .filter-container {
        justify-content: center;
    }

    .results-summary {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-image {
        display: none;
    }
}

@media (max-width: 768px) {
    .products-hero-section {
        padding: 4rem 0 2rem;
    }

    .products-hero-section .display-4 {
        font-size: 2.5rem;
    }

    .filter-pills {
        justify-content: center;
    }

    .advanced-filters .row {
        flex-direction: column;
        gap: 1rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }

    .product-card-enhanced .product-image-container {
        height: 180px;
    }

    .product-card-enhanced .product-body {
        padding: 1rem;
    }

    .floating-actions {
        bottom: 1rem;
        right: 1rem;
    }

    .fab {
        width: 48px;
        height: 48px;
        font-size: 1.125rem;
    }
}

@media (max-width: 576px) {
    .products-hero-section {
        padding: 3rem 0 1.5rem;
    }

    .products-hero-section .display-4 {
        font-size: 2rem;
    }

    .search-filter-section {
        top: 70px;
    }

    .filter-pill {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .product-card-enhanced .product-image-container {
        height: 200px;
    }

    .product-card-enhanced .product-title {
        font-size: 1rem;
    }

    .product-card-enhanced .product-description {
        font-size: 0.8rem;
    }
}

/* Touch-friendly Enhancements */
@media (hover: none) and (pointer: coarse) {
    .product-card-enhanced:hover {
        transform: none;
    }

    .product-card-enhanced:active {
        transform: scale(0.98);
    }

    .filter-pill {
        min-height: 44px;
        padding: 0.75rem 1.25rem;
    }

    .search-input {
        font-size: 16px;
        min-height: 44px;
    }

    .fab {
        min-width: 48px;
        min-height: 48px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .products-page {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    }

    .search-filter-section {
        background: #2d2d2d;
        border-bottom-color: var(--primary-color);
    }

    .search-input {
        background: #3d3d3d;
        border-color: #495057;
        color: white;
    }

    .search-input:focus {
        background: #495057;
    }

    .filter-pill {
        background: #3d3d3d;
        border-color: #495057;
        color: white;
    }

    .product-card-enhanced {
        background: #2d2d2d;
    }

    .product-card-enhanced .product-body {
        color: white;
    }

    .product-card-enhanced .product-title {
        color: white;
    }

    .product-card-enhanced .product-subtitle {
        color: #adb5bd;
    }

    .product-card-enhanced .product-description {
        color: #dee2e6;
    }

    .product-card-enhanced .product-meta {
        border-top-color: #495057;
    }

    .product-card-enhanced .product-category {
        color: #adb5bd;
    }
}

/* ========================
   MODERN PRODUCT CARD ENHANCEMENTS
   ======================== */

/* Glassmorphism and Modern Design Elements */
.product-card-modern {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    position: relative;
}

.product-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #28a745, #20c997, #17a2b8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card-modern:hover::before {
    opacity: 1;
}

.product-card-modern:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border-color: rgba(40, 167, 69, 0.3);
}

/* Enhanced Image Gallery */
.product-image-modern {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
}

.product-image-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-card-modern:hover .product-image-modern img {
    transform: scale(1.1) rotate(1deg);
}

/* Modern Quick Actions */
.product-quick-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.product-card-modern:hover .product-quick-actions {
    opacity: 1;
    transform: translateX(0);
}

.btn-quick-action {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-quick-action:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-quick-action.btn-wishlist:hover {
    color: #e74c3c;
}

.btn-quick-action.btn-quick-view:hover {
    color: #007bff;
}

.btn-quick-action.btn-compare:hover {
    color: #6f42c1;
}

/* Enhanced Product Content */
.product-content-enhanced {
    padding: 20px;
    position: relative;
}

.product-title-section {
    margin-bottom: 15px;
}

.product-title-enhanced {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
    line-height: 1.2;
}

.product-subtitle-enhanced {
    font-size: 0.95rem;
    color: #7f8c8d;
    font-style: italic;
    margin-bottom: 0;
}

/* Modern Description with Read More */
.product-description-enhanced {
    margin-bottom: 20px;
}

.description-text {
    font-size: 0.9rem;
    color: #5a6c7d;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
}

.description-text.expanded {
    -webkit-line-clamp: unset;
    display: block;
}

.btn-read-more {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 5px 0;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-read-more:hover {
    color: #218838;
    transform: translateX(3px);
}

/* Modern Action Buttons */
.product-actions-enhanced {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.btn-action {
    flex: 1;
    padding: 12px 16px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn-action::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-action:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary-enhanced {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-primary-enhanced:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.btn-secondary-enhanced {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.btn-secondary-enhanced:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

/* Modern Product Badges */
.product-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.category-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.category-produce {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.category-seafood {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

.category-fish {
    background: linear-gradient(135deg, #17a2b8, #117a8b);
    color: white;
}

.category-handicraft {
    background: linear-gradient(135deg, #6f42c1, #5a32a3);
    color: white;
}

/* Enhanced QR Code Display */
.product-qr-enhanced {
    position: relative;
    display: inline-block;
    padding: 12px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    border: 2px dashed #dee2e6;
    transition: all 0.3s ease;
}

.product-qr-enhanced:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #f0f6ff, #e6f3ff);
    transform: scale(1.05);
}

.qr-code-enhanced {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.qr-code-enhanced:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.qr-tooltip {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.product-qr-enhanced:hover .qr-tooltip {
    opacity: 1;
}

/* Image Gallery Enhancements */
.image-gallery {
    position: relative;
    height: 100%;
}

.gallery-controls {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 16px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card-modern:hover .gallery-controls {
    opacity: 1;
}

.gallery-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.gallery-btn:hover {
    background: white;
    transform: scale(1.1);
}

.gallery-counter {
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

/* Loading Skeleton Animation */
.skeleton-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 12px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Hover Effects and Micro-interactions */
.product-card-modern {
    transform-origin: center bottom;
}

.product-card-modern:hover {
    animation: cardFloat 0.6s ease-out;
}

@keyframes cardFloat {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.01); }
    100% { transform: translateY(-12px) scale(1.02); }
}

/* Pulse Animation for New/Featured Products */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

.product-featured {
    animation: pulse 2s infinite;
}

/* Search Suggestions Styling */
.suggestion-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.suggestion-item:hover {
    background: #f8f9fa;
    padding-left: 20px;
}

.suggestion-item i {
    color: var(--primary-color);
    font-size: 14px;
}

.suggestion-content {
    flex: 1;
}

.suggestion-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 2px;
}

.suggestion-subtitle {
    font-size: 0.8rem;
    color: #7f8c8d;
}

/* Enhanced Responsive Design for Modern Cards */
@media (max-width: 768px) {
    .product-card-modern {
        border-radius: 15px;
        margin-bottom: 15px;
    }

    .product-image-modern {
        height: 200px;
    }

    .product-quick-actions {
        top: 10px;
        right: 10px;
        opacity: 1;
        transform: none;
    }

    .btn-quick-action {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }

    .product-content-enhanced {
        padding: 15px;
    }

    .product-title-enhanced {
        font-size: 1.1rem;
    }

    .product-actions-enhanced {
        flex-direction: column;
    }

    .gallery-controls {
        opacity: 1;
        bottom: 10px;
    }
}

@media (max-width: 480px) {
    .product-card-modern:hover {
        transform: none;
    }

    .product-image-modern {
        height: 180px;
    }

    .qr-code-enhanced {
        width: 60px;
        height: 60px;
    }

    .product-actions-enhanced {
        gap: 8px;
    }

    .btn-action {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
}

/* Accessibility Improvements */
.product-card-modern:focus-within {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

.btn-action:focus {
    outline: 3px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .product-card-modern {
        border: 2px solid #000;
    }

    .btn-action {
        border: 2px solid currentColor;
    }

    .category-badge {
        border: 1px solid currentColor;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .product-card-modern,
    .product-card-modern *,
    .btn-action,
    .btn-action *,
    .qr-code-enhanced,
    .gallery-controls {
        animation: none !important;
        transition: none !important;
    }
}

/* ========================
   ADVANCED MOBILE RESPONSIVENESS
   ======================== */

/* Enhanced Mobile Navigation */
@media (max-width: 992px) {
    .navbar-nav {
        text-align: center;
        padding-top: 1rem;
    }

    .navbar-nav .nav-item {
        margin-bottom: 0.5rem;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-radius: 10px;
        transition: all 0.3s ease;
    }

    .navbar-nav .nav-link:hover {
        background: rgba(255,255,255,0.1);
        transform: translateX(5px);
    }

    .language-dropdown {
        margin-top: 1rem;
        text-align: center;
    }
}

/* Mobile-First Product Grid */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 15px;
    }

    .product-card-enhanced,
    .product-card-modern {
        max-width: 100%;
        margin: 0 auto;
    }

    /* Enhanced Touch Targets */
    .btn-quick-action {
        min-width: 44px;
        min-height: 44px;
    }

    .filter-pill {
        min-height: 44px;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .search-input {
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 44px;
        padding: 0.75rem 1rem;
    }

    /* Mobile-Specific Animations */
    .product-card-enhanced {
        transition: transform 0.2s ease;
    }

    .product-card-enhanced:active {
        transform: scale(0.98);
    }

    /* Enhanced Mobile Search */
    .search-filter-section {
        padding: 1rem 0;
        position: relative;
        top: 0;
    }

    .search-input-wrapper {
        padding: 0 15px;
    }

    .filter-container {
        padding: 0 15px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .filter-container::-webkit-scrollbar {
        display: none;
    }

    .filter-pills {
        flex-wrap: nowrap;
        gap: 0.5rem;
        padding-bottom: 0.5rem;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    /* Compact Header */
    .navbar-brand {
        font-size: 1.2rem;
    }

    .navbar {
        padding: 0.5rem 0;
    }

    /* Hero Section Adjustments */
    .hero-section,
    .products-hero-section {
        padding: 2rem 0 1rem;
        margin-top: -60px;
    }

    .hero-title,
    .products-hero-section .display-4 {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    /* Product Cards */
    .product-card-enhanced .product-image-container,
    .product-image-modern {
        height: 200px;
    }

    .product-card-enhanced .product-body,
    .product-content-enhanced {
        padding: 1rem;
    }

    .product-title-enhanced {
        font-size: 1rem;
        line-height: 1.3;
    }

    .product-subtitle-enhanced {
        font-size: 0.85rem;
    }

    .description-text {
        font-size: 0.8rem;
        -webkit-line-clamp: 3;
    }

    /* Action Buttons */
    .product-actions-enhanced {
        flex-direction: column;
        gap: 8px;
    }

    .btn-action {
        padding: 12px 16px;
        font-size: 0.9rem;
        min-height: 44px;
    }

    /* QR Codes */
    .qr-code-enhanced {
        width: 60px;
        height: 60px;
    }

    .product-qr-enhanced {
        padding: 8px;
    }

    /* Quick Actions */
    .product-quick-actions {
        flex-direction: row;
        top: auto;
        bottom: 10px;
        right: 10px;
        gap: 6px;
        opacity: 1;
        transform: none;
    }

    .btn-quick-action {
        width: 36px;
        height: 36px;
        font-size: 12px;
        background: rgba(255,255,255,0.95);
    }

    /* Gallery Controls */
    .gallery-controls {
        opacity: 1;
        bottom: 8px;
        padding: 6px 12px;
        gap: 10px;
    }

    .gallery-btn {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }

    .gallery-counter {
        font-size: 0.75rem;
    }

    /* Filters */
    .filter-pill {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    /* Badges */
    .category-badge {
        padding: 4px 8px;
        font-size: 0.7rem;
    }

    /* Search Suggestions */
    .suggestion-item {
        padding: 10px 12px;
    }

    .suggestion-title {
        font-size: 0.85rem;
    }

    .suggestion-subtitle {
        font-size: 0.75rem;
    }

    /* Spacing Adjustments */
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .row {
        margin-left: -5px;
        margin-right: -5px;
    }

    .col,
    [class*="col-"] {
        padding-left: 5px;
        padding-right: 5px;
    }
}

/* Ultra Small Devices */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .product-card-enhanced .product-image-container,
    .product-image-modern {
        height: 180px;
    }

    .product-title-enhanced {
        font-size: 0.95rem;
    }

    .btn-action {
        font-size: 0.85rem;
        padding: 10px 12px;
    }

    .qr-code-enhanced {
        width: 50px;
        height: 50px;
    }

    .filter-pill {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Mobile Landscape */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section,
    .products-hero-section {
        padding: 1.5rem 0 1rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .product-card-enhanced .product-image-container,
    .product-image-modern {
        height: 150px;
    }

    .product-quick-actions {
        top: 8px;
        right: 8px;
    }

    .btn-quick-action {
        width: 32px;
        height: 32px;
        font-size: 11px;
    }
}

/* Tablet-Specific Adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .product-card-enhanced .product-image-container,
    .product-image-modern {
        height: 220px;
    }

    .filter-pills {
        justify-content: center;
    }

    .hero-title {
        font-size: 2.2rem;
    }
}

/* High-DPI Mobile Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .product-image-modern img,
    .product-card-enhanced .product-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }

    .qr-code-enhanced {
        image-rendering: pixelated;
    }
}

/* Mobile Performance Optimizations */
@media (max-width: 768px) {
    /* Reduce box-shadows for better performance */
    .product-card-enhanced,
    .product-card-modern {
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .product-card-enhanced:hover,
    .product-card-modern:hover {
        box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    }

    /* Disable complex animations on low-end devices */
    .skeleton-loading,
    .shimmer {
        animation-duration: 2s;
    }

    /* Optimize transitions */
    * {
        transition-duration: 0.2s !important;
    }
}

/* Dark Mode Mobile Enhancements */
@media (max-width: 768px) and (prefers-color-scheme: dark) {
    .navbar {
        background: rgba(0,0,0,0.95) !important;
    }

    .search-filter-section {
        background: rgba(30,30,30,0.95);
    }

    .search-input {
        background: rgba(50,50,50,0.8);
        color: white;
        border-color: rgba(255,255,255,0.1);
    }

    .product-card-enhanced,
    .product-card-modern {
        background: rgba(30,30,30,0.95);
        border-color: rgba(255,255,255,0.1);
    }

    .filter-pill {
        background: rgba(50,50,50,0.8);
        color: white;
        border-color: rgba(255,255,255,0.2);
    }

    .btn-quick-action {
        background: rgba(255,255,255,0.1);
        color: white;
    }

    .gallery-controls {
        background: rgba(0,0,0,0.8);
    }
}

/* Mobile Accessibility */
@media (max-width: 768px) {
    /* Increase tap targets */
    .btn,
    .filter-pill,
    .nav-link {
        min-height: 44px;
        min-width: 44px;
    }

    /* Focus indicators */
    .btn:focus,
    .filter-pill:focus,
    .nav-link:focus {
        outline: 3px solid var(--primary-color);
        outline-offset: 2px;
    }

    /* Screen reader optimizations */
    .sr-only-mobile {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0,0,0,0);
        white-space: nowrap;
        border: 0;
    }
}

/* Print Styles for Mobile */
@media print and (max-width: 768px) {
    .navbar,
    .search-filter-section,
    .product-quick-actions,
    .gallery-controls,
    .floating-actions {
        display: none !important;
    }

    .product-card-enhanced,
    .product-card-modern {
        break-inside: avoid;
        page-break-inside: avoid;
        margin-bottom: 1rem;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .product-title-enhanced {
        font-size: 1.1rem;
        color: black;
    }

    .description-text {
        -webkit-line-clamp: unset;
        display: block;
        color: black;
    }
}