/* Enhanced Product Catalog Styles */
.portfolio-item-enhanced {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    transition: all 0.3s ease;
    background: transparent;
    padding: 0;
    margin: 0;
}

.portfolio-item-enhanced:hover {
    .scroll-to-top,
    .product-overlay,
    .category-filter {
        display: none !important;
    }
    
    .masthead {
        padding: 2rem 0;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}

/* Focus and Active States for Better UX */
.btn:focus,
.category-filter:focus,
.portfolio-item-enhanced:focus {
    outline: 3px solid #2FC4F4;
    outline-offset: 3px;
}

.btn:active {
    transform: translateY(1px);
}

/* Map Responsive Container */
.map-section {
    position: relative;
    width: 100%;
}

.map-container {
    position: relative;
    width: 100%;
    height: 400px;
}

@media (max-width: 768px) {
    .map-container {
        height: 300px;
    }
}

/* Footer Enhancements */
.footer {
    background: linear-gradient(135deg, #212529 0%, #343a40 100%);
}

.contact-item {
    padding: 20px;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.divider-light {
    border-color: rgba(255, 255, 255, 0.2);
}

/* Additional Mobile Optimizations */
@media (max-width: 576px) {
    .btn-xl {
        font-size: 0.9rem;
        padding: 0.8rem 1.5rem;
    }
    
    .btn-lg {
        font-size: 0.85rem;
        padding: 0.6rem 1.2rem;
    }
    
    .d-flex.gap-3 {
        flex-direction: column;
        gap: 0.75rem !important;
    }
    
    .d-flex.gap-3 .btn {
        width: 100%;
        text-align: center;
    }
    
    .callout h2 {
        font-size: 1.5rem;
    }
    
    .callout h3 {
        font-size: 1.2rem;
    }
}

/* Ensure proper text wrapping */
.text-white h4,
.text-white h3,
.text-white h2 {
    word-wrap: break-word;
    hyphens: auto;
}

/* Improve touch targets on mobile */
@media (max-width: 768px) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Unified Button Border Styling - Based on Client Preference */
/* Standardize all outline buttons to have consistent border thickness */
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-light,
.btn-outline-dark {
    border-width: 2px !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Enhanced hover effects for outline buttons */
.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 76, 62, 0.3);
}

.btn-outline-light:hover,
.btn-outline-light:focus {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: #fff;
    color: var(--bs-primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    background-color: var(--bs-secondary);
    border-color: var(--bs-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 38, 53, 0.3);
}

/* Fix text visibility issues */
.bg-gradient-primary .text-white,
.bg-gradient-primary .text-white span {
    color: #ffffff !important;
}

.bg-primary .text-white,
.bg-primary .text-white * {
    color: #ffffff !important;
}

/* Ensure proper contrast on gradient backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-secondary) 100%) !important;
    color: white;
}

/* Force text visibility on specific elements */
.content-section.bg-primary * {
    color: white;
}

.content-section.bg-primary h2,
.content-section.bg-primary h3,
.content-section.bg-primary h4,
.content-section.bg-primary p {
    color: white !important;
}

/* =============================================================================
   IMAGE COVERAGE OPTIMIZATION - ALL PRODUCTS
   ============================================================================= */

/* Ensure full coverage in all product containers */
.portfolio-item-enhanced .product-image-container img,
.product-item .product-image-container img,
.portfolio-item .product-image-container img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: #f8f9fa;
    z-index: 1 !important;
    transition: transform 0.3s ease !important;
}

/* Specific containers for different sections */
.product-grid {
    --product-image-aspect: 3 / 2;
    --product-image-min-height: 220px;
    --product-image-min-height-tablet: 200px;
    --product-image-min-height-mobile: 180px;
}

.product-grid--tall {
    --product-image-aspect: 4 / 3;
    --product-image-min-height: 260px;
    --product-image-min-height-tablet: 220px;
    --product-image-min-height-mobile: 200px;
}

.portfolio-item-enhanced .product-image-container,
.product-item .product-image-container {
    width: 100% !important;
    aspect-ratio: var(--product-image-aspect, 3 / 2) !important;
    overflow: hidden !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: #f8f9fa !important;
    display: block !important;
    min-height: 200px !important; /* fallback */
    cursor: zoom-in !important;
}

.portfolio-item-enhanced:hover .product-image-container img,
.product-item:hover .product-image-container img {
    transform: scale(1.05) !important;
}

.product-info-overlay {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    align-items: center !important;
    text-align: center !important;
    padding: 20px !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.9) 100%) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
    pointer-events: none !important;
    z-index: 2 !important;
}

.portfolio-item-enhanced:hover .product-info-overlay,
.product-item:hover .product-info-overlay {
    opacity: 1 !important;
    visibility: visible !important;
}

.product-info-overlay h4 {
    color: var(--vixel-gold, #d4af37) !important;
    margin-bottom: 8px !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
}

.product-info-overlay p {
    color: #f0f0f0 !important;
    margin-bottom: 0 !important;
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
}

/* Ensure external images (Unsplash) also fit */
img[src*="unsplash.com"] {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
}

/* Force coverage on all container variants */
.portfolio-item-enhanced,
.product-item {
    background: transparent !important;
}

.portfolio-item-enhanced .product-image-container,
.product-item .product-image-container {
    background: transparent !important;
}

/* Override any style that might interfere */
.img-fluid.loaded {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* =============================================================================
   VISUAL CONSISTENCY - STRAIGHT CORNERS LIKE THE LOGO
   ============================================================================= */

/* Global override to maintain consistency with the straight-cornered logo */
.btn,
.btn-primary,
.btn-secondary,
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-light,
.btn-outline-dark,
.btn-light,
.btn-dark,
.btn-lg,
.btn-xl,
.btn-sm,
.btn-xs,
.alert,
.alert-info,
.alert-warning,
.alert-success,
.alert-danger,
.card,
.card-body,
.card-header,
.card-footer,
.modal-content,
.modal-dialog,
.modal-header,
.modal-body,
.modal-footer,
.dropdown-menu,
.dropdown-item,
.nav-pills .nav-link,
.nav-tabs .nav-link,
.badge,
.badge-primary,
.badge-secondary,
.badge-info,
.progress,
.progress-bar,
.toast,
.tooltip,
.popover,
.pagination .page-link,
.page-link,
.form-control,
.form-select,
.input-group-text,
.input-group,
.cookie-btn,
.cookie-btn-primary,
.cookie-btn-secondary,
.loading-spinner,
.image-placeholder,
.lazy-fade-in,
.rounded,
.rounded-sm,
.rounded-lg,
.rounded-xl,
.rounded-pill,
.rounded-top,
.rounded-bottom,
.rounded-start,
.rounded-end,
.border-radius,
*[class*="rounded"],
*[style*="border-radius"] {
    border-radius: 0 !important;
}

/* Specific elements that need straight corners */
.portfolio-item-enhanced,
.product-item,
.portfolio-item,
.product-image-container,
.product-overlay,
.product-badge,
.category-filter,
.contact-item,
.service-icon,
.cookie-content,
.cookie-logo,
.cookie-logo::before,
.cookie-modal,
.cookie-header,
.cookie-body,
.cookie-actions,
.cookie-settings,
.cookie-category,
.cookie-toggle,
.cookie-toggle-slider,
.bg-white,
.shadow,
.shadow-lg,
.shadow-sm,
.border,
.d-inline-block,
.masthead .lead {
    border-radius: 0 !important;
}

/* NO EXCEPTIONS - Total visual consistency with straight-cornered logo */
/* Previously some circular elements were kept, but for total consistency 
   with the VIXELL logo, all elements will have straight corners */

/* TOTAL Override to eliminate any inherited border-radius */
* {
    border-radius: 0 !important;
}

/* Restore only elements that MUST be circular - NONE for total consistency */
/* .rounded-circle,
.scroll-to-top,
.menu-toggle,
button.rounded {
    border-radius: 50% !important;
} */

/* All buttons will be square for consistency with the logo */

/* Improve appearance of specific square buttons */
.scroll-to-top {
    width: 50px !important;
    height: 50px !important;
    border-radius: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
}

.scroll-to-top:hover {
    transform: translateY(-3px) !important;
}

.menu-toggle {
    border-radius: 0 !important;
    transition: all 0.3s ease !important;
}

.menu-toggle:hover {
    transform: scale(1.1) !important;
}

/* Map buttons and other Google Maps elements */
.gm-style .gm-style-iw,
.gm-style .gm-style-iw-c,
.gm-style button,
.gm-style .gm-ui-hover-effect {
    border-radius: 0 !important;
}

/* BEVEL ELIMINATION - Remove all box-shadow from buttons */
.btn,
button,
.category-filter,
.product-overlay .btn,
.footer .btn,
.btn-primary,
.btn-secondary,
.btn-success,
.btn-danger,
.btn-warning,
.btn-info,
.btn-light,
.btn-dark,
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-success,
.btn-outline-danger,
.btn-outline-warning,
.btn-outline-info,
.btn-outline-light,
.btn-outline-dark,
.btn-xl,
.btn-lg,
.btn-sm,
input[type="submit"],
input[type="button"],
input[type="reset"] {
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    --bs-btn-box-shadow: none !important;
    --bs-btn-focus-box-shadow: none !important;
    --bs-btn-active-shadow: none !important;
}

/* Hover, focus and active states without bevels */
.btn:hover,
.btn:focus,
.btn:active,
.btn.active,
button:hover,
button:focus,
button:active,
.category-filter:hover,
.category-filter:focus,
.category-filter:active,
.category-filter.active,
.product-overlay .btn:hover,
.product-overlay .btn:focus,
.product-overlay .btn:active,
.footer .btn:hover,
.footer .btn:focus,
.footer .btn:active,
input[type="submit"]:hover,
input[type="submit"]:focus,
input[type="submit"]:active,
input[type="button"]:hover,
input[type="button"]:focus,
input[type="button"]:active,
input[type="reset"]:hover,
input[type="reset"]:focus,
input[type="reset"]:active {
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    --bs-btn-box-shadow: none !important;
    --bs-btn-focus-box-shadow: none !important;
    --bs-btn-active-shadow: none !important;
}

/* Remove bevels from specific elements that still have them */
.service-icon:hover {
    box-shadow: none !important;
}

.product-badge {
    box-shadow: none !important;
}

/* Enhanced styles for statistics numbers */
.display-4 {
    line-height: 1.1 !important;
    letter-spacing: -0.02em !important;
}

/* Responsive typography for statistical numbers */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2.8rem !important;
    }
}

@media (max-width: 576px) {
    .display-4 {
        font-size: 2.2rem !important;
    }
}

/* Enhanced feature icons */
.fas.fa-tags,
.fas.fa-shipping-fast,
.fas.fa-shield-alt {
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.fas.fa-tags:hover,
.fas.fa-shipping-fast:hover,
.fas.fa-shield-alt:hover {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

/* Visual improvement for feature containers */
.col-lg-4 .text-center:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

/* Responsive fallback heights for product grids */
.product-grid .product-image-container {
    min-height: var(--product-image-min-height, 220px) !important;
}

@media (max-width: 991px) {
    .product-grid .product-image-container {
        min-height: var(--product-image-min-height-tablet, 200px) !important;
    }
}

@media (max-width: 576px) {
    .product-grid .product-image-container {
        min-height: var(--product-image-min-height-mobile, 180px) !important;
    }
}

.lightbox .lb-caption strong {
    color: var(--vixel-gold) !important;
    font-size: 18px !important;
    display: block !important;
    margin-bottom: 8px !important;
}

.lightbox .lb-caption .btn {
    background-color: var(--vixel-gold) !important;
    border-color: var(--vixel-gold) !important;
    color: #000000 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-block !important;
    margin-top: 10px !important;
    padding: 8px 16px !important;
    border-radius: 0 !important;
    transition: all 0.3s ease !important;
}

.lightbox .lb-caption .btn:hover {
    background-color: #e6c770 !important;
    transform: translateY(-2px) !important;
}

/* Fix gallery interaction conflicts */
.product-image-container a {
    display: block;
    position: relative;
    cursor: zoom-in;
    z-index: 1;
}

.product-image-container a:hover {
    text-decoration: none;
}

/* TOTAL ELIMINATION OF ROUNDED BORDERS - STRAIGHT ANGLES ONLY */
/* Global override for Lightbox2 and any external plugin */
.lightbox,
.lb-container,
.lb-outerContainer,
.lb-dataContainer,
.lb-data,
.lb-details,
.lb-caption,
.lb-image,
.lb-nav,
.lb-prev,
.lb-next,
.lb-close,
#lightbox,
#lightboxOverlay,
.lightboxPhoto {
    border-radius: 0 !important;
    -webkit-border-radius: 0 !important;
    -moz-border-radius: 0 !important;
}

/* Bootstrap and framework elements */
.rounded,
.rounded-sm,
.rounded-lg,
.rounded-xl,
.rounded-xxl,
.rounded-pill,
.rounded-circle,
.rounded-top,
.rounded-bottom,
.rounded-start,
.rounded-end,
.border-rounded,
.img-thumbnail {
    border-radius: 0 !important;
    -webkit-border-radius: 0 !important;
    -moz-border-radius: 0 !important;
}

/* Form elements */
.form-control,
.form-select,
.form-check-input,
.form-range,
input,
textarea,
select,
.input-group,
.input-group-text {
    border-radius: 0 !important;
    -webkit-border-radius: 0 !important;
    -moz-border-radius: 0 !important;
}

/* Navigation and menus */
.dropdown-menu,
.dropdown-item,
.dropdown-toggle,
.nav-pills .nav-link,
.nav-tabs .nav-link,
.navbar,
.navbar-nav,
.navbar-toggler,
.offcanvas,
.offcanvas-header,
.offcanvas-body {
    border-radius: 0 !important;
    -webkit-border-radius: 0 !important;
    -moz-border-radius: 0 !important;
}

/* Modals and overlays */
.modal,
.modal-dialog,
.modal-content,
.modal-header,
.modal-body,
.modal-footer,
.modal-backdrop,
.toast,
.tooltip,
.popover,
.popover-body,
.popover-header {
    border-radius: 0 !important;
    -webkit-border-radius: 0 !important;
    -moz-border-radius: 0 !important;
}

/* Alerts and badges */
.alert,
.badge,
.breadcrumb,
.breadcrumb-item,
.card,
.card-body,
.card-header,
.card-footer,
.card-img,
.card-img-top,
.card-img-bottom {
    border-radius: 0 !important;
    -webkit-border-radius: 0 !important;
    -moz-border-radius: 0 !important;
}

/* Pagination and navigation components */
.page-link,
.page-item,
.pagination,
.nav-item,
.tab-pane {
    border-radius: 0 !important;
    -webkit-border-radius: 0 !important;
    -moz-border-radius: 0 !important;
}

/* Progress bars and interactive elements */
.progress,
.progress-bar,
.spinner-border,
.spinner-grow,
.carousel,
.carousel-inner,
.carousel-item,
.carousel-control-prev,
.carousel-control-next {
    border-radius: 0 !important;
    -webkit-border-radius: 0 !important;
    -moz-border-radius: 0 !important;
}

/* Override for pseudo-elements */
*::before,
*::after {
    border-radius: 0 !important;
    -webkit-border-radius: 0 !important;
    -moz-border-radius: 0 !important;
}

/* Specific for Google Maps elements if present */
.gm-style div,
.gm-style button,
.gm-style-iw,
.gm-style-iw-c,
.gm-style-iw-d,
.gmnoprint div,
.gmnoprint button {
    border-radius: 0 !important;
    -webkit-border-radius: 0 !important;
    -moz-border-radius: 0 !important;
}

/* CSS Variables override */
:root {
    --bs-border-radius: 0 !important;
    --bs-border-radius-sm: 0 !important;
    --bs-border-radius-lg: 0 !important;
    --bs-border-radius-xl: 0 !important;
    --bs-border-radius-2xl: 0 !important;
    --bs-border-radius-pill: 0 !important;
}

/* OVERLAY GALLERY LINK ENHANCEMENTS */
/* Show zoom indicator when hovering over overlay */
.portfolio-item-enhanced .product-overlay::after {
    content: '🔍';
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px;
    border-radius: 50%;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 25;
}

.portfolio-item-enhanced:hover .product-overlay::after {
    opacity: 1;
}

/* Unified CTA button styling */
.product-button-container {
    margin-top: 0;
    padding: 0;
}

.product-ref {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.75rem;
    color: #6c757d;
    text-align: center;
    padding: 4px 0;
    letter-spacing: 1px;
    font-weight: 600;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.product-button-container .btn {
    width: 100%;
    background-color: #000000;
    color: #ffffff;
    border: none;
    border-radius: 0;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 12px 20px;
    transition: all 0.3s ease;
}

.product-button-container .btn:hover {
    background-color: var(--vixel-gold, #d4af37);
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.product-button-container .btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(212, 175, 55, 0.2);
}

/* Smooth hover effects */
.portfolio-item-enhanced {
    transition: box-shadow 0.3s ease;
}

.portfolio-item-enhanced:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Category Filter Buttons */
.category-filters,
.category-navigation {
    margin-bottom: 2rem;
}

.category-filter,
.category-navigation .btn {
    transition: all 0.3s ease;
    border: 2px solid;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin: 0.25rem;
    position: relative;
    overflow: hidden;
}

.category-filter:hover,
.category-navigation .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.category-filter.active {
    background-color: var(--vixel-primary, #1a4c3e) !important;
    border-color: var(--vixel-primary, #1a4c3e) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(26, 76, 62, 0.3);
}

.category-filter.active:hover {
    background-color: var(--vixel-primary-dark, #0f3027) !important;
    border-color: var(--vixel-primary-dark, #0f3027) !important;
}

/* GLOBAL OVERRIDES TO ELIMINATE ALL BORDER-RADIUS */
/* This rule ensures that any element across the entire site does not have rounded borders */
*,
*::before,
*::after,
.btn,
.card,
.modal,
.modal-content,
.modal-header,
.modal-body,
.modal-footer,
.form-control,
.form-select,
.dropdown-menu,
.dropdown-item,
.badge,
.alert,
.toast,
.tooltip,
.popover,
.carousel-item img,
.carousel-indicators button,
.carousel-control-prev,
.carousel-control-next,
.pagination .page-link,
.nav-tabs .nav-link,
.nav-pills .nav-link,
.navbar-toggler,
.breadcrumb-item,
.progress,
.progress-bar,
.spinner-border,
.spinner-grow,
.list-group-item,
.table th,
.table td,
.img-thumbnail,
kbd,
code,
pre,
blockquote,
.input-group-text,
.btn-group .btn,
.btn-toolbar .btn,
.close {
    border-radius: 0 !important;
    -webkit-border-radius: 0 !important;
    -moz-border-radius: 0 !important;
}