/* ===== Professional Base Styles ===== */
:root {
    --primary-color: #2B3A67;
    --accent-color: #C5A25D;
    --light-bg: #F8F9FA;
    --dark-text: #2C3E50;
    --light-text: #6C757D;
    --border-radius: 12px;
    --shadow-soft: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-medium: 0 8px 30px rgba(0,0,0,0.12);
}
/* ===== COMPLETELY PREVENT HORIZONTAL SCROLLING & SWIPE NAVIGATION ===== */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100vw;
    position: relative;
    overscroll-behavior-x: none; /* This prevents swipe navigation */
}

/* Prevent any element from causing horizontal overflow */
* {
    max-width: 100vw;
}



/* Ensure no element can extend beyond viewport */
body > * {
    max-width: 100vw !important;
    overflow-x: hidden !important;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--light-bg);
    color: var(--dark-text);
    margin-top: 70px;
    scroll-behavior: smooth;
    line-height: 1.6;
}

/* ===== Enhanced Navbar ===== */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

    .navbar.scrolled {
        box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    }
    .navbar .nav-link {
        border-radius: var(--border-radius);
    }

        .navbar .nav-link:hover {
            background-color: rgba(197, 162, 93, 0.1);
            color: var(--accent-color);
        }

/* ===== Professional Banner ===== */
.banner-wrapper {
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 3rem;
}

.banner-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.banner-overlay {
    background: linear-gradient(135deg, rgba(43, 58, 103, 0.8) 0%, rgba(43, 58, 103, 0.4) 50%, rgba(197, 162, 93, 0.3) 100%);
}

.banner-text h1 {
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
}

.banner-text .lead {
    font-size: 1.3rem;
    font-weight: 300;
    opacity: 0.9;
}

.banner-subtext {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 600;
}

/* ===== Professional Product Cards ===== */
.gallery-section {
    padding: 2rem 0;
}

.product-card {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: white;
    position: relative;
}

    .product-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-medium);
    }

.image-container {
    height: 200px;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    overflow: hidden;
    background: #f8f9fa;
    position: relative;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.5s ease;
    opacity: 1 !important;
    display: block;
}

.product-card:hover .product-img {
    transform: scale(1.08);
}

/* Price Badge - Hide it completely */
.price-badge {
    display: none !important;
}

/* Hover Overlay - Hide all text, show only Quick View button */
.hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem;
    z-index: 2;
    pointer-events: none;
}

    /* Hide all text elements inside the hover overlay */
    .hover-overlay h6,
    .hover-overlay p {
        opacity: 0;
        transition: all 0.3s ease;
        transform: translateY(10px);
    }

/* Show Quick View button only */
.quick-view-btn {
    background: white;
    border: 2px solid white;
    color: var(--dark-text);
    font-weight: 600;
    transition: all 0.3s ease;
    pointer-events: auto;
    z-index: 3;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
}

.image-container:hover .hover-overlay {
    opacity: 1;
}

.image-container:hover .quick-view-btn {
    opacity: 1;
    transform: translateY(0);
}

    .image-container:hover .quick-view-btn:hover {
        background: transparent;
        color: white;
        transform: translateY(-2px);
    }

/* Card Body - Keep visible below image but hide price and stars */
.card-body {
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

.card-title {
    font-size: 1.1rem;
    color: var(--dark-text);
}

/* Hide price in card body */
.card-body .text-primary.fw-bold.fs-5 {
    display: none !important;
}

/* Hide yellow stars */
.card-body .text-warning.small {
    display: none !important;
}

/* ===== Enhanced Modal & Image Zoom ===== */
.modal-xl {
    max-width: 600px;
}

.modal-content {
    background: transparent;
    border: none;
    box-shadow: none;
}

.modal-body {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.modal.show .modal-dialog {
    transform: none;
}

/* Simple layout - only image */
.carousel-item {
    display: none !important;
}

    .carousel-item.active {
        display: block !important;
    }

/* Image Section - Full modal */
.modal-image-section {
    padding: 2rem;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 500px;
}

.image-zoom-container {
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: var(--border-radius);
}

.zoomable-image {
    transition: transform 0.3s ease;
    cursor: zoom-in;
    opacity: 1 !important;
    display: block;
    border-radius: var(--border-radius);
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

    .zoomable-image.zoomed {
        transform: scale(1.5);
        cursor: zoom-out;
    }

/* Zoom Controls */
.zoom-controls {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    display: flex;
    gap: 8px;
}

.zoom-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    color: #333;
}

    .zoom-btn:hover {
        background: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

.zoom-indicator {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 45px;
    height: 45px;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    opacity: 0.8;
    transition: all 0.3s ease;
    top: 50%;
    transform: translateY(-50%);
    border: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1060;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

    .carousel-control-prev:hover,
    .carousel-control-next:hover {
        opacity: 1;
        background: white;
        transform: translateY(-50%) scale(1.1);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

/* Enhanced Close Button */
.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1065;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    color: #333;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

    .modal-close-btn:hover {
        background: #dc3545;
        border-color: #dc3545;
        color: white;
        transform: scale(1.1);
        box-shadow: 0 4px 10px rgba(220, 53, 69, 0.3);
    }

.carousel.no-transition .carousel-item {
    transition: none !important;
}

/* Enhanced cursor styles for zoom */
.image-zoom-container.zoomed {
    cursor: grab;
}

    .image-zoom-container.zoomed:active {
        cursor: grabbing;
    }

.zoomable-image.zoomed {
    cursor: grab;
}

    .zoomable-image.zoomed:active {
        cursor: grabbing;
    }

/* Smooth transitions for zoom */
.zoomable-image {
    transition: transform 0.1s ease-out;
}

/* Prevent text selection during panning */
.image-zoom-container {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* ===== Professional Contact Section ===== */
.contact-section {
    background: white;
    border-radius: var(--border-radius);
}

.contact-card {
    border: 1px solid rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    background: white;
}

    .contact-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-soft);
        border-color: var(--accent-color);
    }

.contact-icon {
    transition: transform 0.3s ease;
}

.contact-card:hover .contact-icon {
    transform: scale(1.1);
}

.text-accent {
    color: var(--accent-color) !important;
}

/* ===== Enhanced Back to Top Button ===== */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0.9;
    display: none;
}

    .back-to-top-btn:hover {
        transform: translateY(-3px);
        opacity: 1;
        box-shadow: 0 6px 20px rgba(43, 58, 103, 0.3);
    }

/* ===== Empty State ===== */
.empty-state {
    padding: 3rem 1rem;
}

    .empty-state i {
        opacity: 0.7;
    }

/* ===== Professional Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease-out forwards;
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Utility Classes ===== */
.shadow-sm {
    box-shadow: var(--shadow-soft) !important;
}

.rounded-3 {
    border-radius: var(--border-radius) !important;
}

/* ===== Focus States for Accessibility ===== */
button:focus,
a:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* ===== Modal Backdrop Cleanup ===== */
.modal-backdrop {
    z-index: 1040;
}

.modal {
    z-index: 1050;
}

body.modal-open {
    overflow: auto !important;
    padding-right: 0 !important;
}

.modal-backdrop.fade.show {
    opacity: 0.5;
}

.modal.fade:not(.show) {
    opacity: 0;
    display: none;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .banner-img {
        height: 350px;
    }

    .banner-text h1 {
        font-size: 2.2rem;
    }

    .banner-text .lead {
        font-size: 1.1rem;
    }

    .banner-subtext {
        font-size: 1.4rem;
    }

    .modal-xl {
        max-width: 95%;
    }

    .modal-image-section {
        height: 400px;
        padding: 1.5rem;
    }

    .image-container {
        height: 180px;
    }

    .modal-body {
        padding: 1rem;
    }

    .back-to-top-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }

    .zoom-controls {
        top: 15px;
        left: 15px;
    }

    .zoom-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .zoom-indicator {
        top: 15px;
        right: 15px;
        padding: 5px 8px;
    }

    .modal-close-btn {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 576px) {
    body {
        margin-top: 60px;
    }

    .banner-img {
        height: 300px;
    }

    .banner-text h1 {
        font-size: 1.8rem;
    }

    .contact-section {
        padding: 2rem 1rem !important;
    }

    .modal-image-section {
        height: 300px;
        padding: 1rem;
    }

    .image-container {
        height: 160px;
    }

    .carousel-control-prev {
        left: 10px;
    }

    .carousel-control-next {
        right: 10px;
    }

}
