/* =====================================================
   FASTENING HOUSE - CANADIAN INDUSTRIAL SUPPLY
   Red, White & Gray Theme - No Animations
   ===================================================== */

/* Root Variables - Industrial Theme */
:root {
    --primary-color: #D72E2E;        /* Red - Brand color from logo */
    --primary-dark: #B02525;         /* Deep red */
    --secondary-color: #FF6B35;      /* Safety orange accent */
    --dark-color: #1A1A1A;           /* Charcoal black */
    --steel-gray: #2C3E50;           /* Steel blue-gray */
    --concrete-gray: #3A3A3A;        /* Dark concrete */
    --light-gray: #E8E8E8;           /* Light concrete */
    --light-color: #F5F5F5;          /* Light background */
    --white-color: #FFFFFF;
    --text-color: #333333;
    --border-color: #555555;         /* Industrial border */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.15);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.2);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.3);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.4);
    --blueprint-blue: #003D5C;
}

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

html {
    scroll-behavior: smooth;
    /* Fix for Edge/IE zoom issues */
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    /* Ensure minimum width */
    min-width: 320px;
    height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #F5F5F5;
    overflow-x: hidden;
    /* Fix for Edge rendering issues */
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    min-width: 320px;
    width: 100%;
    position: relative;
    /* Sticky footer layout */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Construction background with parallax scroll effect */
body {
    --bg-offset: 0%;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/static/images/construction-bg.webp');
    background-size: cover;
    background-position: center var(--bg-offset);
    background-repeat: no-repeat;
    opacity: 0.10;
    pointer-events: none;
    z-index: 0;
    will-change: background-position;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Main content wrapper - grows to fill space for sticky footer */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* Site Promotional Banner - appears below navbar, scrolls behind header */
.site-promo-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.site-promo-banner a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
}

.site-promo-banner a:hover {
    background: rgba(0, 0, 0, 0.1);
}

.site-promo-banner .banner-text {
    font-weight: 600;
    font-size: 0.9375rem;
}

.site-promo-banner .banner-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
}

.site-promo-banner .banner-link:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Adjust main content margin when banner is shown */
.site-promo-banner + .main-content {
    margin-top: 0;
}

/* Hide banner on pages that don't need it or on mobile if too cluttered */
@media (max-width: 480px) {
    .site-promo-banner a {
        flex-direction: column;
        gap: 8px;
        padding: 10px 16px;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--dark-color);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    z-index: 1001;
}

/* Navbar Search */
.nav-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 300px;
    flex: 0 0 300px;
}

.nav-search-input {
    width: 100%;
    padding: 8px 36px 8px 12px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    outline: none;
}

.nav-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.nav-search-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
}

.nav-search-wrapper i.fa-search {
    position: absolute;
    right: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    pointer-events: none;
}

.search-results-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    min-width: 300px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    max-height: 400px;
    overflow-y: auto;
    z-index: 2000;
}

.search-results-dropdown.show {
    display: block;
}

.nav-search-result-item {
    padding: 12px 16px;
    border-bottom: 1px solid #F3F4F6;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    display: block;
}

.nav-search-result-item:hover {
    background: #F9FAFB;
}

.nav-search-result-item:last-child {
    border-bottom: none;
}

.navbar.scrolled {
    background: var(--dark-color);
    box-shadow: var(--shadow-lg);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 20px;
    min-height: 80px;
}

.nav-logos {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white-color);
    text-decoration: none;
    cursor: pointer;
}

.nav-logo:hover {
    opacity: 0.9;
}

.nav-logo img {
    width: 180px;
    height: auto;
}

.nav-logo-sabre img {
    width: 180px;
    height: auto;
}

.logo-divider {
    width: 2px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
}

.nav-logo i {
    color: var(--primary-color);
}

.dev-indicator {
    display: none;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    height: 100%;
}

.nav-link {
    color: var(--light-gray);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    white-space: nowrap;
    transition: color 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.active {
    color: var(--primary-color);
}

/* Phone Number Link */
.nav-phone {
    display: flex;
    align-items: center;
}

.nav-phone-link {
    color: white;
    font-weight: 600;
    background: var(--primary-color);
    padding: 10px 18px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    white-space: nowrap;
}

.nav-phone-link:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.nav-phone-link i {
    font-size: 0.9rem;
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.nav-dropdown .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-dropdown .nav-link i.fa-chevron-down {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-link i.fa-chevron-down {
    transform: translateY(2px);
}

.nav-dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 0.5rem;
}

.dropdown-content {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 100;
}

.nav-dropdown:hover .dropdown-content,
.dropdown-content:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.dropdown-content a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

.dropdown-content a:first-child {
    border-radius: 8px 8px 0 0;
}

.dropdown-content a:last-child {
    border-radius: 0 0 8px 8px;
}

.dropdown-content a:hover {
    background: var(--light-color);
    color: var(--primary-color);
}

.btn-catalog {
    background: var(--primary-color);
    color: white !important;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
}

.btn-catalog:hover {
    background: var(--primary-dark);
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 15px;
    margin: -15px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
}

/* Hero Section */
.hero {
    padding: 0 0 40px;
    background: transparent;
    margin-top: 0; /* No space between nav and hero */
    position: relative;
    z-index: 1;
}

/* Main Welcome Card - Full Width with Carousel */
.hero-main-card {
    background-color: rgba(255, 255, 255, 0.98);
    padding: 0;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 480px;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

/* Carousel Container */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 480px;
    min-height: 480px;
    overflow: hidden;
}

/* Hero Slides */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 3rem;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    background-color: rgba(255, 255, 255, 0.98);
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

/* Default hero slide with trucks background */
.hero-slide:first-child:not(.hero-promo-slide) {
    background: url('/static/Two Trucks with space.webp');
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
}

.hero-slide.active {
    /* Active state handled by container transform */
}

/* Promo Slides - Full width images that replace hero entirely */
.hero-promo-slide {
    justify-content: center;
    align-items: center;
    padding: 0;
    background-color: #f5f5f5;
}

.hero-promo-slide a {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.hero-promo-slide a:hover {
    opacity: 0.95;
}

.hero-promo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    display: block;
}

/* Carousel Navigation Dots */
.hero-carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.carousel-dot.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(196, 30, 58, 0.6);
}

/* Content box with dark background and red accent */
.hero-content-box {
    background: linear-gradient(to top, rgba(26, 26, 26, 0.95) 0%, rgba(26, 26, 26, 0.85) 100%);
    padding: 2rem;
    border-radius: 16px;
    backdrop-filter: blur(8px);
    max-width: 40%;
    border-top: 3px solid var(--primary-color);
}

/* Thin banner mode for small screens - DISABLED, always hidden */
.hero-thin-banner {
    display: none !important;
}

.hero-content-box .hero-title {
    color: white;
}

.hero-content-box .hero-subtitle {
    color: white;
}

.hero-content-box .hero-title i {
    color: var(--primary-color);
}

/* Feature Cards Grid - 3 columns */
.hero-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.hero-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.text-highlight {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Feature Cards - Metal Plate Effect */
.hero-feature-card {
    background:
        linear-gradient(to bottom, rgba(255,255,255,0.4) 0%, transparent 20%, transparent 80%, rgba(0,0,0,0.1) 100%),
        linear-gradient(135deg, #E8E8E8 0%, #D0D0D0 100%);
    padding: 2rem 1.5rem;
    border-radius: 0;
    box-shadow:
        inset 0 2px 4px rgba(255,255,255,0.6),
        inset 0 -2px 4px rgba(0,0,0,0.3),
        0 4px 8px rgba(0,0,0,0.3),
        0 8px 16px rgba(0,0,0,0.15);
    border: none;
    border-left: 4px solid var(--primary-color);
    border-top: 1px solid rgba(255,255,255,0.5);
    border-bottom: 1px solid rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    z-index: 2;
}

/* Simple clean background for cards - opaque to hide scaffolding */
.hero-feature-card:nth-child(1),
.hero-feature-card:nth-child(2),
.hero-feature-card:nth-child(3) {
    background-color: rgba(245, 245, 245, 0.98);
    background-image: linear-gradient(135deg, rgba(248, 249, 250, 0.98) 0%, rgba(233, 236, 239, 0.98) 100%);
}

/* Content wrapper - no background or border */
.hero-feature-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.hero-feature-card-content {
    padding: 1rem;
    position: relative;
    z-index: 2;
    flex: 1;
}

/* Icon and title on same line */
.hero-feature-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.hero-feature-card .hero-feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 0;
    flex-shrink: 0;
}

.hero-feature-card h3 {
    margin: 0;
    flex: 1;
}

.hero-feature-card p {
    margin: 0 0 1rem 0;
}

.hero-feature-card .card-link {
    display: inline-flex;
    margin: 0;
}



.hero-feature-card:hover {
    transform: translateY(-4px);
    box-shadow:
        inset 0 2px 4px rgba(255,255,255,0.7),
        inset 0 -2px 4px rgba(0,0,0,0.4),
        0 6px 12px rgba(0,0,0,0.4),
        0 12px 24px rgba(0,0,0,0.2);
}

.hero-feature-icon {
    width: 60px;
    height: 60px;
    background: var(--dark-color);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    clip-path: polygon(10% 0%, 100% 0%, 100% 90%, 90% 100%, 0% 100%, 0% 10%);
}

.hero-feature-icon i {
    font-size: 1.75rem;
    color: var(--primary-color);
}

.hero-feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
}

.hero-feature-card p {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.card-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.card-link:hover {
    gap: 0.75rem;
}

.card-link i {
    font-size: 0.85rem;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
    transform: translateY(-2px);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
}

/* Solutions Showcase Section */
.solutions-showcase {
    padding: 80px 0;
    background: transparent;
    position: relative;
    z-index: 1;
}

/* Red line divider removed */
.solutions-showcase::before {
    display: none;
}

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

.section-title {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    position: relative;
    display: block;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    transform: none;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-color);
    max-width: 700px;
    margin: 1.5rem auto 0;
    line-height: 1.6;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.solution-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.solution-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.solution-card-link:hover .solution-card {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.solution-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.solution-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: smooth;
    -ms-interpolation-mode: bicubic;
}

.solution-card:hover .solution-image img {
    transform: scale(1.08);
}

.solution-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.solution-card:hover .solution-overlay {
    opacity: 1;
}

.overlay-btn {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.overlay-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.solution-content {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.98);
    position: relative;
    z-index: 2;
    flex: 1;
}

.solution-content h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
}

.solution-content p {
    color: var(--text-color);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 80px 0;
    background: transparent;
    position: relative;
    z-index: 1;
}

.why-choose-us .section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    margin-top: 2rem;
}

.feature-item {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 8px;
    background: rgba(232, 232, 232, 0.98);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-icon-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon-circle {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.5);
}

.feature-icon-circle i {
    font-size: 2rem;
    color: white;
}

.feature-item h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
}

.feature-item p {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
}



/* Categories Section */
.categories {
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.85);
    position: relative;
    z-index: 1;
}

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

.categories .section-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    display: block;
    width: 100%;
    text-shadow:
        2px 2px 0 rgba(0,0,0,0.1),
        4px 4px 0 rgba(0,0,0,0.05);
}

.categories .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-color);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.category-card {
    background:
        linear-gradient(to right, var(--primary-color) 0%, var(--primary-color) 4px, rgba(232, 232, 232, 0.98) 4px),
        repeating-linear-gradient(
            0deg,
            rgba(0,0,0,0.03),
            rgba(0,0,0,0.03) 1px,
            transparent 1px,
            transparent 2px
        ),
        linear-gradient(135deg, rgba(232, 232, 232, 0.98) 0%, rgba(208, 208, 208, 0.98) 100%);
    border-radius: 0;
    padding: 2rem;
    border: 4px solid #555;
    border-left: 10px solid var(--primary-color);
    cursor: pointer;
    position: relative;
    overflow: visible;
    box-shadow:
        inset 0 2px 0 rgba(255,255,255,0.4),
        inset 0 -2px 0 rgba(0,0,0,0.2),
        4px 4px 12px rgba(0,0,0,0.3);
    z-index: 2;
}

/* Rivets on category cards */
.category-card::before,
.category-card::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, #666 0%, #333 50%, #111 100%);
    border-radius: 50%;
    border: 2px solid #777;
    box-shadow:
        inset 1px 1px 1px rgba(255,255,255,0.4),
        inset -1px -1px 1px rgba(0,0,0,0.6),
        0 2px 3px rgba(0,0,0,0.4);
}

.category-card::before {
    top: 8px;
    left: 8px;
}

.category-card::after {
    bottom: 8px;
    left: 8px;
}

.category-card:hover {
    border-color: var(--primary-color);
    box-shadow:
        inset 0 2px 0 rgba(255,255,255,0.5),
        inset 0 -2px 0 rgba(0,0,0,0.3),
        6px 6px 20px rgba(0,0,0,0.4);
    transform: translateX(3px) translateY(-2px);
}

.category-icon {
    width: 70px;
    height: 70px;
    background:
        radial-gradient(circle at 15% 15%, rgba(255,255,255,0.3), transparent 30%),
        linear-gradient(135deg, #2C2C2C 0%, #1A1A1A 100%);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    clip-path: polygon(15% 0%, 100% 0%, 100% 85%, 85% 100%, 0% 100%, 0% 15%);
    border: 3px solid #444;
    box-shadow:
        inset 2px 2px 4px rgba(0,0,0,0.5),
        inset -2px -2px 4px rgba(255,255,255,0.1),
        4px 4px 8px rgba(0,0,0,0.4);
    position: relative;
}

/* Alternate icon styling */
.category-card:nth-child(2n) .category-icon {
    background:
        radial-gradient(circle at 15% 15%, rgba(255,255,255,0.3), transparent 30%),
        linear-gradient(135deg, var(--steel-gray) 0%, #1A1A1A 100%);
    color: var(--primary-color);
}

.category-card h3 {
    font-size: 1.25rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.category-card p {
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.category-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.category-link:hover {
    text-decoration: underline;
}

/* Features Section */
.features {
    padding: 60px 0;
    background: rgba(58, 58, 58, 0.80);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    position: relative;
    z-index: 1;
}

.features .section-title,
.features .section-subtitle {
    color: var(--white-color);
}

.features .section-title::after {
    background: var(--secondary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(245, 245, 245, 0.98) 0%, rgba(232, 232, 232, 0.98) 100%);
    backdrop-filter: blur(10px);
    border-radius: 0;
    border: 3px solid var(--border-color);
    border-top: 6px solid var(--secondary-color);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.8),
        inset 0 -1px 0 rgba(0,0,0,0.2),
        var(--shadow-lg);
    position: relative;
    overflow: visible;
    z-index: 2;
}

/* Add rivets to feature cards */
.feature-card::before,
.feature-card::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, #555 0%, #333 50%, #222 100%);
    border-radius: 50%;
    border: 2px solid #666;
    box-shadow:
        inset 1px 1px 2px rgba(255,255,255,0.3),
        inset -1px -1px 2px rgba(0,0,0,0.5),
        0 2px 4px rgba(0,0,0,0.3);
    z-index: 2;
}

.feature-card::before {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.feature-card::after {
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.feature-card h3 {
    color: var(--dark-color);
}

.feature-card p {
    color: var(--text-color);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background:
        radial-gradient(circle at 15% 15%, rgba(255,255,255,0.3), transparent 30%),
        linear-gradient(135deg, var(--secondary-color) 0%, #CC5529 100%);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--dark-color);
    clip-path: polygon(10% 0%, 100% 0%, 100% 90%, 90% 100%, 0% 100%, 0% 10%);
    border: 3px solid #444;
    box-shadow:
        inset 2px 2px 4px rgba(0,0,0,0.3),
        inset -2px -2px 4px rgba(255,255,255,0.2),
        4px 4px 8px rgba(0,0,0,0.4);
}

.feature-card h3 {
    font-size: 1.25rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-color);
}

/* CTA Section */
.cta-section {
    padding: 60px 0;
    background: var(--primary-color);
    color: white;
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cta-text h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.cta-text p {
    font-size: 1.125rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

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

.btn-white:hover {
    background: var(--light-color);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary-color);
}

/* Contact Section */
.contact {
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.85);
    position: relative;
    z-index: 1;
}

.contact-locations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.location-card {
    background: rgba(245, 245, 245, 0.98);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    position: relative;
    z-index: 2;
}

.location-card h3 {
    color: var(--dark-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item i {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-top: 0.25rem;
    min-width: 24px;
}

.contact-item p {
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-item a[href^="tel:"] {
    display: inline-block;
    padding: 8px 0;
    font-weight: 600;
    font-size: 1.0625rem;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 30px 0 15px;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.footer-logo-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.footer-logo i {
    color: var(--primary-color);
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-section p {
    color: white;
    margin-bottom: 1rem;
}

/* Footer Logos Wrapper */
.footer-logos-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.footer-tagline {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255,255,255,0.85);
    margin: 0;
}

.footer-65-years {
    height: 50px;
    width: auto;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    filter: contrast(1.1) brightness(1.05);
    background: white;
    padding: 8px 12px;
    border-radius: 8px;
}

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

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

.footer-section a {
    color: white;
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    background: var(--primary-color);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 16px;
    border: none;
    border-radius: 6px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 1rem;
    min-height: 44px;
}

.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.6);
}

.newsletter-form button {
    padding: 0.75rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
}

.newsletter-form button:hover {
    background: var(--primary-dark);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Page Hero (Image-based Banner) */
.page-hero {
    padding: 40px 0;
    min-height: 200px;
    background:
        linear-gradient(rgba(26, 26, 26, 0.7), rgba(26, 26, 26, 0.7)),
        url('/static/Two Trucks with space.webp');
    background-size: cover;
    background-position: center;
    color: white;
    margin-top: 0;
    text-align: center;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
}

.page-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.page-hero p {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    box-shadow: var(--shadow-lg);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
}

/* Responsive Design - Mobile Optimized */
@media (max-width: 768px) {
    /* Navigation Mobile - Compact, No Hamburger */
    .navbar {
        padding: 4px 0;
        min-height: auto;
    }

    .nav-container {
        padding: 4px 10px;
        min-height: auto;
        flex-wrap: wrap;
        gap: 6px;
    }

    /* Mobile: Hide bottom nav row visually but allow fixed children */
    .nav-bottom-row {
        position: fixed;
        top: -9999px;
        left: -9999px;
        height: 0;
        overflow: visible;
        background: transparent;
        border: none;
        padding: 0;
    }

    .nav-toggle {
        display: flex !important;
        z-index: 1001;
    }

    /* Mobile menu slide-out panel */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--dark-color);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 100px 30px 30px;
        gap: 0;
        transition: right 0.3s ease;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    /* Mobile nav toggle animation */
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* Mobile nav links styling */
    .nav-primary-group,
    .nav-secondary-group {
        width: 100%;
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
    }

    .nav-secondary-group {
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-link {
        width: 100%;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        color: white;
    }

    .nav-link-primary {
        font-size: 1.2rem;
        color: white;
    }

    .nav-link-secondary {
        font-size: 1rem;
        opacity: 0.85;
        color: white;
    }

    .nav-dropdown {
        width: 100%;
    }

    .dropdown-content {
        position: static;
        display: none;
        background: rgba(255, 255, 255, 0.05);
        box-shadow: none;
        border-radius: 0;
        margin-top: 10px;
        padding: 10px 0 10px 20px;
    }

    .nav-dropdown.active .dropdown-content {
        display: block;
    }

    .dropdown-content a {
        padding: 10px 0;
        color: rgba(255, 255, 255, 0.8);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .dropdown-content a:hover {
        background: transparent;
        color: var(--primary-color);
    }

    .nav-divider {
        display: none;
    }

    /* Page Hero Mobile */
    .page-hero {
        padding: 30px 0;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .page-hero p {
        font-size: 1.05rem;
    }

    /* Hero Section Mobile */
    .hero {
        margin-top: 60px;
    }

    .dev-indicator {
        font-size: 0.625rem;
        padding: 3px 8px;
        margin-left: 8px;
    }

    /* Hero Section */
    .hero {
        padding: 30px 0 20px;
        margin-top: 60px;
    }

    .hero-main-card {
        padding: 0;
        margin-bottom: 1.5rem;
        min-height: 450px;
        background-size: cover;
        background-position: center center;
        overflow: hidden;
    }

    .hero-carousel {
        height: 450px;
        min-height: 450px;
        margin-bottom: 0;
    }

    .hero-slide {
        padding: 1rem;
        display: flex;
        align-items: flex-end;
        justify-content: center;
    }

    .hero-promo-slide {
        padding: 0.5rem;
        align-items: center;
    }

    .hero-promo-image {
        max-width: 100%;
        max-height: 100%;
        width: 100%;
        border-radius: 8px;
    }

    .hero-carousel-dots {
        bottom: 8px;
        gap: 6px;
        z-index: 20;
    }

    .carousel-dot {
        width: 10px;
        height: 10px;
        border-width: 2px;
    }

    /* Hero content on mobile - overlay at bottom */
    .hero-content-box {
        display: block;
        position: relative;
        background: linear-gradient(to top, rgba(26, 26, 26, 0.95) 0%, rgba(26, 26, 26, 0.85) 100%);
        padding: 1.5rem 1.25rem;
        border-radius: 0;
        max-width: 100%;
        margin: 0;
        backdrop-filter: blur(8px);
        border-top: 3px solid var(--primary-color);
    }

    /* Hide thin banner on mobile */
    .hero-thin-banner {
        display: none;
    }

    /* Mobile: Stack feature cards vertically */
    .hero-features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        overflow-x: visible;
    }

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

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
        line-height: 1.5;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    /* Feature cards - full width, readable */
    .hero-feature-card {
        padding: 1.25rem;
        min-width: 0;
        border-left-width: 6px;
    }

    .hero-feature-card:nth-child(1),
    .hero-feature-card:nth-child(2),
    .hero-feature-card:nth-child(3) {
        background-size: cover !important;
        background-position: center !important;
    }

    .hero-feature-card-content {
        padding: 0;
    }

    .hero-feature-header {
        flex-direction: row;
        gap: 1rem;
        margin-bottom: 1rem;
        align-items: center;
    }

    /* Show icons on mobile */
    .hero-feature-icon {
        display: flex;
        width: 50px;
        height: 50px;
        flex-shrink: 0;
    }

    .hero-feature-icon i {
        font-size: 1.5rem;
    }

    .hero-feature-card h3 {
        font-size: 1.125rem;
        line-height: 1.3;
        text-align: left;
        margin: 0;
    }

    /* Show paragraphs on mobile */
    .hero-feature-card p {
        display: block;
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }

    .card-link {
        font-size: 0.9rem;
        font-weight: 600;
    }

    /* Remove expand/collapse on mobile - always show content */
    .expand-indicator {
        display: none;
    }

    /* Sections */
    .section-title {
        font-size: 2rem;
    }

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

    .category-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Solutions Showcase Mobile */
    .solutions-showcase {
        padding: 60px 0;
    }

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

    .solution-image {
        height: 220px;
    }

    .solution-content {
        padding: 1.25rem;
    }

    .solution-content h3 {
        font-size: 1.25rem;
    }

    /* Why Choose Us Mobile */
    .why-choose-us {
        padding: 60px 0;
    }

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

    .feature-item {
        padding: 1.5rem 1rem;
    }

    .feature-icon-circle {
        width: 60px;
        height: 60px;
    }

    .feature-icon-circle i {
        font-size: 1.5rem;
    }

    .feature-item h3 {
        font-size: 1rem;
    }

    .feature-item p {
        font-size: 0.875rem;
    }

    /* Contact */
    .contact-locations {
        grid-template-columns: 1fr;
    }

    .location-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .location-card h3 {
        font-size: 1.25rem;
    }

    /* CTA */
    .cta-content {
        flex-direction: column;
        text-align: center;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    /* Footer */
    .footer-logo {
        height: 50px;
        object-fit: contain;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-logo-section {
        align-items: center;
    }

    .footer-logos-wrapper {
        justify-content: center;
    }

    .footer-65-years {
        height: 35px;
    }

    .footer-social-section {
        display: flex;
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .social-links {
        justify-content: center;
    }

    /* Back to Top */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Small mobile devices (phones in portrait) */
@media (max-width: 480px) {
    .nav-logo img {
        height: 35px;
    }

    .dev-indicator {
        font-size: 0.5rem;
        padding: 2px 6px;
        margin-left: 6px;
    }

    .page-hero h1 {
        font-size: 1.75rem;
    }

    .page-hero p {
        font-size: 1rem;
    }

    .hero {
        padding: 40px 0 30px;
    }

    .hero-main-card {
        min-height: 400px;
    }

    .hero-carousel {
        height: 400px;
        min-height: 400px;
    }

    .hero-content-box {
        padding: 1.25rem 1rem;
        max-width: 100%;
    }

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

    .hero-subtitle {
        font-size: 0.9375rem;
        line-height: 1.5;
    }

    .hero-features-grid {
        gap: 0.875rem;
        grid-template-columns: 1fr;
    }

    .hero-feature-card {
        padding: 1rem;
    }

    .hero-feature-icon {
        width: 45px;
        height: 45px;
    }

    .hero-feature-icon i {
        font-size: 1.25rem;
    }

    .hero-feature-card h3 {
        font-size: 1rem;
    }

    .hero-feature-card p {
        font-size: 0.875rem;
    }

    .card-link {
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .category-card,
    .feature-card {
        padding: 1.5rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* =====================================================
   INSTAGRAM FEED SECTION
   ===================================================== */

.instagram-section {
    padding: 80px 0;
    background: var(--light-color);
}

#behold-instagram-feed {
    margin-top: 3rem;
}

.instagram-placeholder {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    border: 2px dashed var(--border-color);
    position: relative;
    z-index: 2;
}

.instagram-placeholder i.fab {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.instagram-placeholder p {
    font-size: 1.125rem;
    color: var(--text-color);
    margin-bottom: 2rem;
}

/* Behold Widget Styling Override */
figure[data-behold-id] {
    margin: 0 auto;
    max-width: 100%;
}

/* =====================================================
   PRODUCT DETAIL PAGE - IMAGE CONSTRAINTS
   ===================================================== */

/* Ensure product images never overflow their containers */
.product-image-container {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    position: relative;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Manufacturer logos - constrain size */
.manufacturer-logo {
    max-width: 200px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Thumbnail images - prevent layout shift */
.product-thumbnail {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    overflow: hidden;
}

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

/* Tables - ensure mobile responsiveness */
.table-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-wrapper table {
    width: 100%;
    min-width: 100%;
}

/* Video container - maintain aspect ratio */
.video-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* =====================================================
   ADMIN EDIT LINKS - Only visible to logged-in admins
   ===================================================== */
.admin-edit-link {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(33, 37, 41, 0.9);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    z-index: 100;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.admin-edit-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
}

.admin-edit-link i {
    font-size: 0.9rem;
}

/* Position adjustments for specific sections */
.hero-main-card {
    position: relative;
}

.vendors-section .container,
.coming-soon-section .container {
    position: relative;
}

@media (max-width: 768px) {
    .admin-edit-link {
        font-size: 0.75rem;
        padding: 6px 10px;
        top: 5px;
        right: 5px;
    }

    .admin-edit-link span {
        display: none;
    }
}

/* =====================================================
   COOKIE CONSENT BANNER
   ===================================================== */

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--dark-color);
    color: var(--white-color);
    padding: 1rem 1.5rem;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.cookie-consent-content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-consent-content p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    flex: 1;
    min-width: 280px;
}

.cookie-consent-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

.cookie-link {
    color: var(--light-gray);
    text-decoration: underline;
    font-size: 0.85rem;
    white-space: nowrap;
}

.cookie-link:hover {
    color: var(--white-color);
}

.cookie-accept-btn {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}

.cookie-accept-btn:hover {
    background-color: var(--primary-dark);
}

@media (max-width: 600px) {
    .cookie-consent {
        padding: 1rem;
    }

    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .cookie-consent-content p {
        font-size: 0.85rem;
        min-width: auto;
    }

    .cookie-consent-actions {
        width: 100%;
        justify-content: center;
    }
}
