/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #fafafa;
    color: #1a1a1a;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Optimisations performance mobile */
* {
    -webkit-tap-highlight-color: transparent;
}

button, a {
    touch-action: manipulation;
}

.product-card,
.service-card,
.testimonial-card,
.faq-item {
    will-change: transform;
}

@media (max-width: 640px) {
    .hero-3d-canvas,
    .computer-3d-container canvas {
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0c1b3c;
}

::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2563eb;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

/* Buttons */
.btn-primary {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.625rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.875rem;
}

.btn-primary:hover {
    background: #2563eb;
    transform: scale(1.05);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 0.625rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.875rem;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

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

.btn-block {
    width: 100%;
}

.icon-btn {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    color: #3b82f6;
    transform: scale(1.1);
}

/* Header */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(12, 27, 60, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

@media (min-width: 640px) {
    .header-content {
        height: 5rem;
    }
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.logo-box {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    overflow: hidden;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .logo-box {
        width: 3rem;
        height: 3rem;
    }
}

.logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.company-name {
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 640px) {
    .company-name {
        font-size: 1.25rem;
    }
}

.company-tagline {
    color: #3b82f6;
    font-size: 0.625rem;
    display: none;
}

@media (min-width: 640px) {
    .company-tagline {
        display: block;
        font-size: 0.75rem;
    }
}

.desktop-nav {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .desktop-nav {
        display: flex;
    }
}

.desktop-nav a {
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

.desktop-nav a:hover {
    color: #3b82f6;
    transform: scale(1.1);
}

.mobile-menu-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (min-width: 1024px) {
    .mobile-menu-buttons {
        display: none;
    }
}

.cart-badge {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    background: #3b82f6;
    color: white;
    font-size: 0.625rem;
    padding: 0.125rem 0.375rem;
    border-radius: 9999px;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Mobile Nav */
.mobile-nav {
    display: none;
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
    background: #0c1b3c;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideDown 0.3s ease-out;
}

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

.mobile-nav.active {
    display: flex;
}

@media (min-width: 1024px) {
    .mobile-nav {
        display: none !important;
    }
}

.mobile-nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.3s;
}

.mobile-nav a:hover {
    color: #3b82f6;
}

/* Hero Section */
.hero-section {
    padding-top: 6rem;
    padding-bottom: 3rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #0c1b3c 0%, #0f172a 50%, #0c1b3c 100%);
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
}

@media (min-width: 640px) {
    .hero-section {
        padding-top: 8rem;
        padding-bottom: 5rem;
    }
}

.hero-3d-canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(12, 27, 60, 0.7) 0%, rgba(30, 41, 59, 0.6) 50%, rgba(12, 27, 60, 0.7) 100%);
    z-index: 10;
}

.hero-content {
    position: relative;
    z-index: 20;
    text-align: center;
    max-width: 64rem;
}

.hero-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeInUp 1s ease-out;
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 3rem;
    }
}

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

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

.hero-description {
    font-size: 1rem;
    color: #d1d5db;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

@media (min-width: 640px) {
    .hero-description {
        font-size: 1.25rem;
    }
}

@media (min-width: 768px) {
    .hero-description {
        font-size: 1.5rem;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

/* Sections */
.about-section,
.services-section,
.shop-section,
.testimonials-section,
.faq-section,
.contact-section {
    padding: 3rem 1rem;
}

@media (min-width: 640px) {
    .about-section,
    .services-section,
    .shop-section,
    .testimonials-section,
    .faq-section,
    .contact-section {
        padding: 5rem 1.5rem;
    }
}

/* About Section avec ordinateur 3D */
.about-content-wrapper {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    align-items: center;
    justify-items: center;
}

@media (min-width: 1024px) {
    .about-content-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.computer-3d-container {
    width: 100%;
    max-width: 100%;
    height: 300px;
    position: relative;
    margin: 2rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.computer-3d-container canvas {
    display: block;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .computer-3d-container {
        height: 400px;
    }
}

@media (min-width: 1024px) {
    .computer-3d-container {
        height: 500px;
        margin: 0;
    }
}

.services-section,
.testimonials-section {
    background: rgba(0, 0, 0, 0.02);
}

.section-intro {
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
    width: 100%;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .section-intro {
        padding: 0;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
    .section-header {
        margin-bottom: 4rem;
    }
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

@media (min-width: 640px) {
    .section-title {
        font-size: 2.25rem;
    }
}

.section-subtitle,
.section-description {
    font-size: 1rem;
    color: #6b7280;
}

@media (min-width: 640px) {
    .section-subtitle,
    .section-description {
        font-size: 1.125rem;
    }
}

/* Services Grid */
.services-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.625rem;
    border: 1px solid #e5e7eb;
    transition: all 0.5s;
    cursor: pointer;
}

@media (min-width: 640px) {
    .service-card {
        padding: 2rem;
    }
}

.service-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-0.5rem) scale(1.05);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    transition: transform 0.5s;
}

@media (min-width: 640px) {
    .service-icon {
        font-size: 3rem;
    }
}

.service-card:hover .service-icon {
    transform: scale(1.25);
}

.service-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    transition: color 0.3s;
}

@media (min-width: 640px) {
    .service-card h3 {
        font-size: 1.25rem;
    }
}

.service-card:hover h3 {
    color: #3b82f6;
}

.service-card p {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .service-card p {
        font-size: 1rem;
    }
}

.service-details {
    list-style: none;
    margin-top: 1rem;
    padding: 0;
}

.service-details li {
    color: #4b5563;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

@media (min-width: 640px) {
    .service-details li {
        font-size: 0.875rem;
    }
}

.service-details li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #3b82f6;
    font-weight: 700;
}

/* Search Section */
.search-section {
    max-width: 56rem;
    margin: 0 auto 3rem;
}

.search-box {
    position: relative;
    margin-bottom: 1rem;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
}

.search-box input {
    width: 100%;
    padding: 1.25rem 1rem 1.25rem 3rem;
    font-size: 1rem;
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 0.75rem;
    transition: all 0.3s;
}

@media (min-width: 640px) {
    .search-box input {
        padding: 1.5rem 1rem 1.5rem 3rem;
        font-size: 1.125rem;
    }
}

.search-box input:focus {
    outline: none;
    border-color: #3b82f6;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.category-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.625rem;
    border: 1px solid #e5e7eb;
    background: white;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.875rem;
}

.category-btn:hover {
    transform: scale(1.05);
}

.category-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* View All Products Button */
.view-all-products {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    animation: fadeInUp 1s ease-out;
}

.btn-view-all {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 1.25rem 3rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-view-all::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-view-all:hover::before {
    left: 100%;
}

.btn-view-all:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.5);
}

.btn-view-all i {
    transition: transform 0.3s;
}

.btn-view-all:hover i {
    transform: translateX(10px);
}

@media (max-width: 640px) {
    .btn-view-all {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* Products Grid */
.products-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.product-card {
    background: white;
    border-radius: 0.625rem;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.5s;
    cursor: pointer;
}

.product-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-0.5rem) scale(1.05);
}

.product-image {
    height: 8rem;
    background: linear-gradient(135deg, #0c1b3c 0%, #1e293b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

@media (min-width: 640px) {
    .product-image {
        height: 9rem;
    }
}

.product-image i {
    width: 4rem;
    height: 4rem;
    color: #3b82f6;
    position: relative;
    z-index: 10;
    transition: all 0.5s;
}

@media (min-width: 640px) {
    .product-image i {
        width: 6rem;
        height: 6rem;
    }
}

.product-card:hover .product-image i {
    transform: scale(1.1) rotate(6deg);
}

.product-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(59, 130, 246, 0.1);
    transition: transform 0.7s;
}

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

.product-info {
    padding: 1.5rem;
}

.product-category {
    font-size: 0.75rem;
    color: #3b82f6;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
    .product-category {
        font-size: 0.875rem;
    }
}

.product-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

@media (min-width: 640px) {
    .product-name {
        font-size: 1.25rem;
    }
}

.product-card:hover .product-name {
    color: #3b82f6;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .product-price {
        font-size: 1.5rem;
    }
}

.product-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Testimonials Grid */
.testimonials-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.625rem;
    border: 1px solid #e5e7eb;
    transition: all 0.5s;
}

.testimonial-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-0.5rem);
}

.stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
    color: #fbbf24;
}

.testimonial-text {
    color: #6b7280;
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

@media (min-width: 640px) {
    .testimonial-text {
        font-size: 1rem;
    }
}

.testimonial-author {
    font-weight: 700;
}

.testimonial-company {
    color: #3b82f6;
    font-size: 0.875rem;
}

/* FAQ List */
.faq-list {
    max-width: 48rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: white;
    border-radius: 0.625rem;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.faq-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-0.25rem);
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.faq-question h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #3b82f6;
    flex: 1;
}

@media (min-width: 640px) {
    .faq-question h3 {
        font-size: 1.125rem;
    }
}

.faq-question i {
    color: #3b82f6;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-item.active .faq-question i {
    transform: rotate(90deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: #6b7280;
    font-size: 0.875rem;
}

@media (min-width: 640px) {
    .faq-answer p {
        font-size: 1rem;
    }
}

/* Admin Access Section */
.admin-access-section {
    background: linear-gradient(135deg, #0c1b3c 0%, #1e293b 100%);
    padding: 3rem 1rem;
}

@media (min-width: 640px) {
    .admin-access-section {
        padding: 5rem 1.5rem;
    }
}

.admin-access-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
    align-items: center;
    max-width: 56rem;
    margin: 0 auto;
    transition: all 0.3s;
}

@media (min-width: 768px) {
    .admin-access-card {
        grid-template-columns: auto 1fr auto;
        padding: 2.5rem;
    }
}

.admin-access-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.3);
}

.admin-access-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .admin-access-icon {
        margin: 0;
    }
}

.admin-access-icon i {
    width: 2rem;
    height: 2rem;
    color: white;
}

.admin-access-content {
    text-align: center;
}

@media (min-width: 768px) {
    .admin-access-content {
        text-align: left;
    }
}

.admin-access-content h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.admin-access-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

/* Contact Section */
.contact-grid {
    display: grid;
    gap: 3rem;
    grid-template-columns: 1fr;
    max-width: 80rem;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.625rem;
    border: 1px solid #e5e7eb;
    display: flex;
    gap: 1rem;
    transition: all 0.3s;
}

.contact-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-0.25rem);
}

.contact-card-icon {
    width: 3rem;
    height: 3rem;
    background: #3b82f6;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-card-icon i {
    color: white;
    width: 1.25rem;
    height: 1.25rem;
}

.contact-card-icon.facebook-icon {
    background: #1877F2;
}

.contact-card-content h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-card-content p {
    color: #6b7280;
}

.facebook-link {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.3s;
}

.facebook-link:hover {
    color: #2563eb;
}

.map-container {
    position: relative;
    width: 100%;
    height: 16rem;
    border-radius: 0.5rem;
    overflow: hidden;
    display: block;
    transition: all 0.3s;
}

.map-container:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
}

.map-overlay {
    position: absolute;
    inset: 0;
    background: rgba(59, 130, 246, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.map-container:hover .map-overlay {
    background: rgba(59, 130, 246, 0.2);
}

.map-cta {
    background: rgba(255, 255, 255, 0.9);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s;
    font-weight: 600;
    color: #0c1b3c;
    font-size: 0.875rem;
}

.map-container:hover .map-cta {
    opacity: 1;
}

/* Contact Form */
.contact-form-card {
    background: white;
    padding: 2rem;
    border-radius: 0.625rem;
    border: 1px solid #e5e7eb;
    transition: all 0.3s;
}

.contact-form-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.625rem;
    font-size: 1rem;
    transition: all 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    transform: scale(1.05);
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background: #0c1b3c;
    color: white;
    padding: 3rem 1rem;
}

@media (min-width: 640px) {
    .footer {
        padding: 4rem 1.5rem;
    }
}

.footer-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 1.125rem;
}

.footer-text {
    color: #9ca3af;
    font-size: 0.875rem;
}

.footer-column h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: #3b82f6;
}

.footer-contact {
    color: #9ca3af;
    font-size: 0.875rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s;
}

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

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background: white;
    border-radius: 0.625rem;
    max-width: 42rem;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
}

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

.modal-large {
    max-width: 56rem;
}

.modal-small {
    max-width: 28rem;
}

.modal-fullscreen {
    max-width: 95vw;
    max-height: 90vh;
    width: 100%;
}

@media (max-width: 640px) {
    .modal-fullscreen {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .modal-fullscreen .modal-header {
        position: sticky;
        top: 0;
        background: white;
        z-index: 10;
    }
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.modal-close:hover {
    transform: scale(1.1);
}

.modal-body {
    padding: 1.5rem;
}

.modal-description {
    color: #6b7280;
    margin-bottom: 1rem;
}

.empty-cart {
    text-align: center;
    padding: 3rem 1.5rem;
    color: #6b7280;
}

.empty-cart i {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    opacity: 0.5;
}

.cart-item {
    background: #fafafa;
    padding: 1rem;
    border-radius: 0.625rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.cart-item-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #0c1b3c 0%, #1e293b 100%);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cart-item-icon i {
    color: #3b82f6;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.cart-item-price {
    color: #3b82f6;
    font-weight: 700;
    font-size: 0.75rem;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.quantity-controls {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.quantity-btn {
    width: 2rem;
    height: 2rem;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 0.375rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.quantity-btn:hover {
    background: #f3f4f6;
}

.quantity-display {
    width: 2rem;
    text-align: center;
    font-weight: 600;
}

.remove-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.3s;
}

.remove-btn:hover {
    background: #dc2626;
}

.cart-total {
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    margin-top: 1rem;
}

.cart-total-label {
    text-align: right;
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.cart-total-amount {
    text-align: right;
    font-size: 1.5rem;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 1rem;
}

.whatsapp-btn {
    background: #25D366;
    color: white;
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 0.625rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
    font-size: 1rem;
}

.whatsapp-btn:hover {
    background: #128C7E;
    transform: scale(1.05);
}

/* Product Detail Modal */
.product-detail-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .product-detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-main-image {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #0c1b3c 0%, #1e293b 100%);
    border-radius: 0.5rem;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-main-image i {
    width: 8rem;
    height: 8rem;
    color: #3b82f6;
}

.gallery-nav {
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 0.5rem;
    border-radius: 9999px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 10;
}

.gallery-nav.next {
    left: auto;
    right: 0.5rem;
}

.product-main-image:hover .gallery-nav {
    opacity: 1;
}

.gallery-nav:hover {
    background: white;
}

.gallery-dots {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.gallery-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 9999px;
    background: #d1d5db;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.gallery-dot.active {
    background: #3b82f6;
    width: 2rem;
}

.product-detail-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-detail-price {
    font-size: 2rem;
    font-weight: 700;
    color: #3b82f6;
}

.product-specs h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.spec-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #fafafa;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
}

.spec-label {
    font-weight: 600;
    color: #3b82f6;
    text-transform: capitalize;
    min-width: 120px;
    font-size: 0.875rem;
}

.spec-value {
    color: #6b7280;
    flex: 1;
    font-size: 0.875rem;
}

/* Admin Login Form */
.admin-login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-login-form input {
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.625rem;
    font-size: 1rem;
}

.admin-login-form input:focus {
    outline: none;
    border-color: #3b82f6;
}

.admin-hint {
    text-align: center;
    color: #6b7280;
    font-size: 0.75rem;
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.625rem;
    border: none;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.btn-danger:hover {
    transform: translateY(-0.125rem);
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.3);
}

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

/* Utility Classes */
.hidden {
    display: none !important;
}


/* Admin Panel Styles */
.admin-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e5e7eb;
    flex-wrap: wrap;
}

.admin-tab {
    background: transparent;
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #6b7280;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.admin-tab:hover {
    color: #3b82f6;
}

.admin-tab.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.admin-dashboard {
    padding: 1rem 0;
}

.stats-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.625rem;
    border: 1px solid #e5e7eb;
    display: flex;
    gap: 1rem;
    align-items: center;
    transition: all 0.3s;
}

.stat-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-0.25rem);
}

.stat-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon i {
    color: white;
    width: 1.5rem;
    height: 1.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
}

.stat-label {
    color: #6b7280;
    font-size: 0.875rem;
}

.admin-section {
    margin: 2rem 0;
}

.admin-section h3 {
    font-size: 1.125rem;
    color: #6b7280;
}

.admin-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-danger {
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.625rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-danger:hover {
    background: #dc2626;
    transform: scale(1.05);
}

.admin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-section-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.admin-products-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-product-item {
    background: white;
    padding: 1rem;
    border-radius: 0.625rem;
    border: 1px solid #e5e7eb;
    display: flex;
    gap: 1rem;
    align-items: center;
    transition: all 0.3s;
}

.admin-product-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.admin-product-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #0c1b3c 0%, #1e293b 100%);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.admin-product-icon i {
    color: #3b82f6;
}

.admin-product-info {
    flex: 1;
}

.admin-product-name {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.admin-product-category {
    font-size: 0.75rem;
    color: #3b82f6;
}

.admin-product-price {
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 0.25rem;
}

.admin-product-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-edit,
.btn-delete {
    padding: 0.5rem;
    border-radius: 0.375rem;
    border: 1px solid #e5e7eb;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-edit:hover {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.btn-delete:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
}

.product-form {
    max-width: 42rem;
    margin: 0 auto;
}

.product-form h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.form-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.messages-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message-item {
    background: white;
    padding: 1.5rem;
    border-radius: 0.625rem;
    border: 1px solid #e5e7eb;
    transition: all 0.3s;
    cursor: pointer;
}

.message-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.message-item.unread {
    border-left: 4px solid #3b82f6;
    background: #f0f9ff;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.message-sender {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
}

.unread-badge {
    background: #3b82f6;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.message-date {
    color: #6b7280;
    font-size: 0.875rem;
}

.message-contact {
    color: #6b7280;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.message-text {
    color: #1a1a1a;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #fafafa;
    border-radius: 0.5rem;
}

.message-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

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

.no-messages {
    text-align: center;
    color: #6b7280;
    padding: 3rem;
}

/* ==================== ENHANCED PRODUCT IMAGE STYLES ==================== */

/* Product card images - fill frame properly */
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.5rem;
    transition: transform 0.5s ease;
}

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

.product-icon-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.product-icon-fallback i {
    width: 4rem;
    height: 4rem;
    color: #3b82f6;
}

@media (min-width: 640px) {
    .product-icon-fallback i {
        width: 6rem;
        height: 6rem;
    }
}

/* Product modal main image - fill frame */
.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 100%;
}

/* Gallery thumbnails */
.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
}

@media (max-width: 640px) {
    .gallery-thumbnails {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }
}

.gallery-thumbnail {
    aspect-ratio: 1;
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    background: #f3f4f6;
}

.gallery-thumbnail:hover {
    border-color: #93c5fd;
}

.gallery-thumbnail.active {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0c1b3c 0%, #1e293b 100%);
}

.thumb-fallback i {
    width: 1.5rem;
    height: 1.5rem;
    color: #3b82f6;
}

/* ==================== MOBILE ABOUT SECTION CENTERED ==================== */

@media (max-width: 1023px) {
    .about-content-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .section-intro {
        max-width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .section-description {
        text-align: center;
    }

    .computer-3d-container {
        width: 100%;
        max-width: 400px;
        margin: 2rem auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .computer-3d-container canvas {
        margin: 0 auto;
    }
}

/* ==================== MOBILE THREE.JS HERO CENTERED ==================== */

@media (max-width: 640px) {
    .hero-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-3d-canvas {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        height: 100%;
    }

    .hero-content {
        position: relative;
        z-index: 20;
        text-align: center;
        width: 100%;
        max-width: 100%;
        padding: 0 0.5rem;
    }

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

    .hero-description {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }
}

/* ==================== ELEGANT MOBILE MODALS ==================== */

@media (max-width: 640px) {
    .modal.active {
        padding: 0;
        align-items: flex-end;
    }

    .modal-content {
        max-width: 100%;
        max-height: 95vh;
        border-radius: 1.5rem 1.5rem 0 0;
        animation: slideUpMobile 0.3s ease-out;
    }

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

    .modal-header {
        padding: 1.25rem 1rem;
        position: sticky;
        top: 0;
        background: white;
        z-index: 10;
        border-radius: 1.5rem 1.5rem 0 0;
        border-bottom: 1px solid #e5e7eb;
    }

    .modal-header h2 {
        font-size: 1.125rem;
    }

    .modal-body {
        padding: 1rem;
        overflow-y: auto;
    }

    /* Product detail modal mobile */
    .product-detail-grid {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
    }

    .product-gallery {
        width: 100%;
    }

    .product-main-image {
        aspect-ratio: 4/3;
        border-radius: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .product-main-image img {
        border-radius: 0.75rem;
    }

    .product-detail-info {
        padding: 0;
    }

    .product-detail-price {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .product-specs h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .spec-item {
        padding: 0.625rem;
        margin-bottom: 0.5rem;
    }

    .spec-label, .spec-value {
        font-size: 0.8rem;
    }

    /* Cart modal mobile */
    .cart-item {
        flex-wrap: wrap;
        padding: 0.875rem;
    }

    .cart-item-icon {
        width: 2.5rem;
        height: 2.5rem;
    }

    .cart-item-info {
        flex: 1;
        min-width: calc(100% - 4rem);
    }

    .cart-item-actions {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid #e5e7eb;
    }

    /* All products modal mobile */
    .modal-fullscreen {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
        height: 100vh;
    }

    .modal-fullscreen .modal-header {
        border-radius: 0;
    }
}

/* ==================== TWO PRODUCTS PER LINE ON MOBILE FOR ALL PRODUCTS ==================== */

#allProductsGrid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
    #allProductsGrid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    #allProductsGrid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* Smaller cards in all products modal on mobile */
.all-products-card {
    border-radius: 0.5rem;
}

@media (max-width: 640px) {
    .all-products-card .product-image {
        height: 6.5rem;
    }

    .all-products-card .product-info {
        padding: 0.75rem;
    }

    .all-products-card .product-category {
        font-size: 0.625rem;
        margin-bottom: 0.25rem;
    }

    .all-products-card .product-name {
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
        line-height: 1.2;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .all-products-card .product-price {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .all-products-card .product-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.7rem;
    }

    .all-products-card .product-btn i {
        width: 0.875rem;
        height: 0.875rem;
    }

    .all-products-card .product-icon-fallback i {
        width: 2.5rem;
        height: 2.5rem;
    }

    /* Smaller search section in all products modal */
    #allProductsModal .search-section {
        margin-bottom: 1rem;
    }

    #allProductsModal .search-box input {
        padding: 0.875rem 0.875rem 0.875rem 2.5rem;
        font-size: 0.875rem;
    }

    #allProductsModal .category-filters {
        gap: 0.5rem;
    }

    #allProductsModal .category-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
}

/* ==================== IMPROVED PRODUCT CARD PROPORTIONS ==================== */

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 20rem;
}

.product-image {
    height: 9rem;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .product-card {
        min-height: 18rem;
    }
    
    .product-image {
        height: 8rem;
    }
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-btn {
    margin-top: auto;
}
