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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #0a0a0a;
    background: #ffffff;
    overflow-x: hidden;
}

/* Page Gradient Background - reusable for white background pages */
.page-gradient {
    position: relative;
    background: linear-gradient(180deg, #f1f5f9 0%, #ffffff 100%);
    overflow: hidden;
    width: 100%;
}

.page-gradient::before {
    content: '';
    position: absolute;
    left: -10%;
    right: -10%;
    top: 50%;
    transform: translateY(-50%);
    height: 70%;
    background: linear-gradient(135deg,
        rgba(59, 130, 246, 0.06) 0%,
        rgba(96, 165, 250, 0.08) 50%,
        rgba(59, 130, 246, 0.06) 100%);
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
}

.page-gradient > * {
    position: relative;
    z-index: 1;
}

/* Secondary Navigation */
.secondary-nav {
    background: #f1f5f9;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.secondary-nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.secondary-left {
    display: flex;
    gap: 24px;
}

.secondary-right {
    display: flex;
    gap: 16px;
    align-items: center;
}

.secondary-link {
    color: #64748b;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: color 0.3s;
}

.secondary-link:hover {
    color: #334155;
}

.phone-top, .email-top {
    color: #334155;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 5px;
    background: white;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.phone-top:hover, .email-top:hover {
    border-color: #cbd5e1;
    background: #fafafa;
}

.phone-icon {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* Main Navigation */
.main-nav {
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 110px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    height: 48px;
}

.nav-links {
    display: flex;
    gap: clamp(4px, 6vw - 40px, 40px);
    align-items: center;
    list-style: none;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.order-status-link {
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.order-status-link:hover {
    color: #1e40af;
}

.cart-btn {
    position: relative;
    color: #334155;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    background: white;
    border: 1px solid #e2e8f0;
}

.cart-btn:hover {
    border-color: #2e368f;
    color: #2e368f;
    background: #e8e9f5;
}

.cart-badge {
    background: #2e368f;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.nav-link {
    position: relative;
    color: #0a0a0a;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.3px;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #2e368f;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #2e368f, #972433);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::after {
    width: 100%;
}

.has-dropdown {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-arrow {
    width: 12px;
    height: 12px;
    transition: transform 0.3s;
}

.has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Mega Dropdown */
.mega-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.has-dropdown:hover .mega-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 48px 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.dropdown-section h3 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    margin-bottom: 20px;
}

.dropdown-links {
    list-style: none;
}

.dropdown-links li {
    margin-bottom: 12px;
}

.dropdown-links a {
    color: #0a0a0a;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
}

.dropdown-links a:hover {
    background: #e8e9f5;
    color: #2e368f;
    transform: translateX(4px);
}

/* Mobile Navigation Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.mobile-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: #0a0a0a;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

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

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

body.mobile-nav-open {
    overflow: hidden;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 10000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex-direction: column;
}

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

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 70px;
    min-height: 70px;
    border-bottom: 1px solid #e2e8f0;
}

.mobile-nav-logo img {
    height: 38px;
}

.mobile-nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    background: none;
    cursor: pointer;
    color: #334155;
    border-radius: 8px;
}

.mobile-nav-close:active {
    background: #f1f5f9;
}

.mobile-nav-links {
    list-style: none;
    padding: 12px 20px;
    flex: 1;
}

.mobile-nav-links li {
    border-bottom: 1px solid #f1f5f9;
}

.mobile-nav-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    color: #0a0a0a;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
}

.mobile-nav-links a svg {
    flex-shrink: 0;
}

.mobile-nav-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 8px 0;
}

.mobile-cart-link {
    background: #f8fafc;
    border-radius: 8px;
    margin: 0 -8px;
    padding-left: 24px !important;
}

.mobile-cart-badge {
    background: #2e368f;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
    margin-left: auto;
}

.mobile-phone-link {
    color: #1e40af !important;
}

.mobile-phone-link svg {
    color: #1e40af;
}

/* Featured Products Section */
.featured-section {
    padding: 48px 0 40px;
    background: linear-gradient(180deg, #f1f5f9 0%, #ffffff 100%);
    overflow: hidden;
    position: relative;
}

.featured-gradient {
    position: absolute;
    left: -10%;
    right: -10%;
    top: 50%;
    transform: translateY(-50%);
    height: 70%;
    background: linear-gradient(135deg,
        rgba(59, 130, 246, 0.06) 0%,
        rgba(96, 165, 250, 0.08) 50%,
        rgba(59, 130, 246, 0.06) 100%);
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
}

.featured-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

/* Featured title base styles */
.featured-title {
    font-size: 42px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0;
    letter-spacing: -1px;
    color: #0a0a0a;
}

/* Homepage featured title - hide ::before pseudo-element used on browser pages */
.homepage .featured-title::before {
    display: none;
}

/* Featured Products Carousel - Responsive flex layout, centered */
.featured-carousel-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    max-width: 100%;
    padding: 8px 0 0;
    position: relative;
}

/* Product display is controlled dynamically by JavaScript based on viewport width */

/* Featured product card - vertical flex layout with image on top, callouts below */
.featured-product {
    cursor: pointer;
    position: relative;
    height: 290px;
    width: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* Image container - centered in card, positioned first, fixed height for alignment */
.featured-product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 180px;
    padding: 10px 20px;
    order: 1;
}

.featured-product-image img {
    width: 100%;
    max-width: 180px;
    max-height: 160px;
    object-fit: contain;
    filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

/* Featured product name row with badge - centered */
.featured-product-name-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-left: 0;
    margin-top: 6px;
}

/* Featured product family badge - inline with product name */
.featured-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 4px;
}

.featured-badge img {
    height: 22px;
    width: auto;
}

.featured-badge span {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    letter-spacing: 0.3px;
    text-shadow: 0 0 6px white, 0 0 10px white;
    margin-left: -2px;
    margin-top: -1px;
}

.featured-product:hover .featured-product-image img {
    transform: scale(1.08);
}

/* Callout block - positioned below image, centered */
.featured-callout {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    padding: 0 10px;
    order: 2;
}

.featured-callout.above,
.featured-callout.below {
    /* Both positions now render below image */
}

/* Headline (upper callout) - blue color */
.featured-headline {
    display: inline-block;
    background: #4b7cd3;
    color: white;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: -0.5px;
    line-height: 1;
    text-transform: uppercase;
    padding: 7px 10px;
    transition: transform 0.3s ease;
}

/* Byline (lower callout) - green color, centered below headline */
.featured-byline {
    display: block;
    background: #4f9967;
    color: white;
    font-size: 14px;
    font-weight: 800;
    padding: 5px 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-left: 0;
    margin-top: 4px;
    width: fit-content;
    transition: transform 0.3s ease;
}

/* Product name - inline in name row */
.featured-product-name {
    font-size: 12px;
    font-weight: 700;
    color: #334155;
}

/* Grow labels on hover */
.featured-product:hover .featured-headline,
.featured-product:hover .featured-byline {
    transform: scale(1.03);
}

/* Featured Products Placeholders */
.featured-placeholder {
    pointer-events: none;
}

.featured-placeholder .placeholder-headline {
    width: 80px;
    height: 18px;
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 6px;
}

.featured-placeholder .placeholder-byline {
    width: 100px;
    height: 14px;
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 6px;
}

.featured-placeholder .placeholder-name {
    width: 60px;
    height: 12px;
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

/* Featured products carousel */
.featured-carousel {
    position: relative;
}

.featured-carousel-grid {
    transition: opacity 0.3s ease-in-out;
}

.featured-carousel-grid.fading {
    opacity: 0;
}

/* Featured products carousel indicators */
.featured-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
    padding-bottom: 8px;
}

.featured-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.25);
    cursor: pointer;
    transition: all 0.3s;
}

.featured-indicator:hover {
    background: rgba(59, 130, 246, 0.5);
}

.featured-indicator.active {
    background: #3d6be0;
    width: 32px;
    border-radius: 6px;
}

.featured-placeholder .placeholder-image {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

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

/* Featured Products Responsive */
@media (max-width: 900px) {
    .featured-title {
        font-size: 36px;
    }

    .featured-indicators {
        margin-top: 20px;
    }
}

@media (max-width: 640px) {
    .featured-section {
        padding: 40px 0;
    }

    .featured-container {
        padding: 0 24px;
    }

    .featured-carousel-grid {
        gap: 24px;
    }

    .featured-product {
        width: 140px;
        height: 210px;
    }

    .featured-title {
        font-size: 28px;
        margin-bottom: 24px;
    }

    .featured-headline {
        font-size: 14px;
        padding: 5px 8px;
    }

    .featured-byline {
        font-size: 12px;
        padding: 4px 6px;
        margin-left: 12px;
    }

    .featured-subtitle {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .featured-product-image {
        height: 120px;
        padding: 10px 12px;
    }

    .featured-product-image img {
        max-width: 100px;
        max-height: 100px;
    }

    .featured-product-name-row {
        margin-left: 10px;
        gap: 6px;
    }

    .featured-badge {
        margin-left: 2px;
    }

    .featured-badge img {
        height: 18px;
    }

    .featured-badge span {
        font-size: 10px;
        margin-left: -2px;
        margin-top: -1px;
    }

    .featured-product-name {
        font-size: 10px;
    }

    .featured-callout.above {
        top: 24px;
    }

    .featured-indicators {
        margin-top: 16px;
        gap: 8px;
    }

    .featured-indicator {
        width: 10px;
        height: 10px;
    }

    .featured-indicator.active {
        width: 26px;
    }

    .featured-callout.below {
        bottom: 6px;
    }

    .featured-product-name {
        font-size: 10px;
        margin-left: 10px;
    }
}

@media (max-width: 480px) {
    .featured-section {
        padding: 32px 0;
    }

    .featured-container {
        padding: 0 16px;
    }

    .featured-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
}

/* Hero Slideshow */
.hero {
    position: relative;
    height: 75vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

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

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.45) 100%);
    z-index: 1;
}

.hero-slide {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.35s ease-out;
}

.hero-bg.loaded {
    opacity: 1;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(46, 54, 143, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(151, 36, 51, 0.08) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
    z-index: 2;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.hero-grid {
    position: absolute;
    inset: 0;
    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: 80px 80px;
    animation: gridMove 20s linear infinite;
    z-index: 3;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(80px, 80px); }
}

.hero-content {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 4;
}

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

.hero-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.hero-indicator.active {
    background: white;
    width: 32px;
    border-radius: 6px;
}

.hero h1 {
    font-size: 72px;
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.hero-highlight {
    color: #4b7de6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), 0 4px 8px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
    line-height: 1.6;
    margin-bottom: 40px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-cta {
    display: flex;
    gap: 20px;
}

.hero-cta a {
    padding: 16px 40px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-cta-primary {
    background: linear-gradient(135deg, #3d6be0 0%, #2952c8 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(61, 107, 224, 0.3);
}

.hero-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(61, 107, 224, 0.4);
}

.hero-cta-secondary {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Info Section */
.info-section {
    background: white;
    padding: 0 40px 60px;
}

.info-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 48px;
}

.info-content img {
    margin-bottom: 32px;
}

/* Responsive */
@media (min-width: 1200px) {
    .nav-links {
        gap: 40px;
    }
}

@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .secondary-nav-container {
        padding: 8px 20px;
    }

    .nav-container {
        padding: 0 20px;
        height: 90px;
    }

    .nav-right {
        margin-left: auto;
        margin-right: 12px;
        gap: 12px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .logo {
        height: 42px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta a {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* Hide secondary nav on mobile */
    .secondary-nav {
        display: none;
    }

    .nav-container {
        padding: 0 16px;
        height: 70px;
    }

    .logo {
        height: 38px;
    }

    /* Compact nav-right */
    .nav-right {
        gap: 8px;
        margin-right: 8px;
    }

    /* Hide order status link on mobile */
    .order-status-link {
        display: none;
    }

    /* Compact cart button - icon only */
    .cart-btn {
        padding: 8px 10px;
        gap: 4px;
    }

    .cart-btn svg {
        width: 20px;
        height: 20px;
    }

    /* Hide "Cart" text on mobile */
    .cart-btn-text {
        display: none;
    }

    .cart-badge {
        font-size: 10px;
        padding: 1px 5px;
        min-width: 18px;
    }

    .mobile-toggle {
        padding: 6px;
    }

    .mobile-toggle span {
        width: 24px;
        height: 2px;
    }

    .hero {
        min-height: 500px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 12px;
    }

    .logo {
        height: 34px;
    }

    .cart-btn {
        padding: 6px 8px;
    }

    .hero {
        min-height: 400px;
        height: 60vh;
    }

    .hero h1 {
        font-size: 32px;
        letter-spacing: -1px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-content {
        padding: 0 20px;
    }

    .hero-cta a {
        padding: 12px 24px;
        font-size: 14px;
    }

    footer {
        padding: 32px 20px !important;
    }
}

/* Base button styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    font-family: inherit;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: #1e40af;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover:not(:disabled) {
    background: #1e3a8a;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: white;
    color: #334155;
    border: 2px solid #e2e8f0;
}

.btn-secondary:hover:not(:disabled) {
    border-color: #1e40af;
    color: #1e40af;
    background: #f8fafc;
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Link styling for router links */
a[data-link] {
    cursor: pointer;
}

/* Smooth transitions */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ensure content container has minimum height and fills width */
#app-content {
    min-height: calc(100vh - 143px - 200px);
    width: 100%;
}

/* Fix for iOS Safari viewport height */
@supports (-webkit-touch-callout: none) {
    #app-content {
        min-height: -webkit-fill-available;
    }
}

/* ===========================================
   SSR Homepage Styles
   =========================================== */

.homepage {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

/* Homepage hero uses standard slideshow styles - no overrides needed */

/* Section containers */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Quick Filter Links */
.quick-filters {
    padding: 48px 0;
    background: white;
}

.quick-filters h2 {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px;
    color: #0a0a0a;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.quick-link {
    padding: 10px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    color: #334155;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.quick-link:hover {
    background: #e0e7ff;
    border-color: #a5b4fc;
    color: #1e40af;
}

.quick-link-all {
    background: #1e40af;
    border-color: #1e40af;
    color: white;
}

.quick-link-all:hover {
    background: #1e3a8a;
    border-color: #1e3a8a;
    color: white;
}

/* Featured Products (SSR version) */
.featured-products,
.applications-preview {
    padding: 64px 0;
    background: #f8fafc;
}

.featured-products h2,
.applications-preview h2,
.value-props h2 {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: #0a0a0a;
}

.section-subtitle {
    text-align: center;
    color: #64748b;
    font-size: 16px;
    margin-bottom: 40px;
}

.section-cta {
    text-align: center;
    margin-top: 40px;
}

/* Featured Cards (Browser pages) */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.featured-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid #e2e8f0;
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.featured-image {
    background: #fafafa;
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.featured-image img {
    max-width: 160px;
    max-height: 140px;
    object-fit: contain;
}

.featured-info {
    padding: 20px;
}

.featured-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: #0a0a0a;
    margin-bottom: 8px;
}

.featured-callout {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 12px;
    line-height: 1.4;
}

.featured-price {
    font-size: 18px;
    font-weight: 700;
    color: #1e40af;
}

/* Value Propositions */
.value-props {
    padding: 64px 0;
    background: white;
}

.props-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.prop-card {
    text-align: center;
    padding: 32px 24px;
}

.prop-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: #e0e7ff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e40af;
}

.prop-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0a0a0a;
    margin-bottom: 12px;
}

.prop-card p {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
}

/* Applications Preview */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.app-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid #e2e8f0;
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.app-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.app-card h3 {
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    color: #0a0a0a;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    text-align: center;
    color: white;
}

.cta-section h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
}

.cta-section p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn-primary {
    background: white;
    color: #1e40af;
}

.cta-section .btn-primary:hover {
    background: #f8fafc;
}

.cta-section .btn-secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
}

.cta-section .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Homepage responsive */
@media (max-width: 768px) {
    .section-container {
        padding: 0 24px;
    }

    .quick-filters,
    .featured-products,
    .value-props,
    .applications-preview {
        padding: 40px 0;
    }

    .cta-section {
        padding: 60px 24px;
    }

    .cta-section h2 {
        font-size: 28px;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    footer {
        padding: 36px 24px !important;
    }
}

/* Alert Popups */
.alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: confirmFadeIn .15s ease;
}
.alert-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    max-width: 420px;
    width: 90%;
    padding: 24px;
    animation: confirmSlideIn .15s ease;
}
.alert-msg {
    font-size: 15px;
    color: #1e293b;
    line-height: 1.5;
    margin-bottom: 20px;
}
.alert-btns {
    display: flex;
    justify-content: flex-end;
}
.alert-ok {
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 500;
    background: #0f172a;
    color: #fff;
    border: 1px solid #0f172a;
    border-radius: 6px;
    cursor: pointer;
}
.alert-ok:hover {
    background: #1e293b;
}

/* Confirm Dialog */
.confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: confirmFadeIn .15s ease;
}
.confirm-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    max-width: 420px;
    width: 90%;
    padding: 24px;
    animation: confirmSlideIn .15s ease;
}
.confirm-msg {
    font-size: 15px;
    color: #1e293b;
    line-height: 1.5;
    margin-bottom: 20px;
}
.confirm-btns {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}
.confirm-btns button {
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
}
.confirm-btns .confirm-cancel {
    background: #fff;
    color: #374151;
}
.confirm-btns .confirm-cancel:hover {
    background: #f8fafc;
}
.confirm-btns .confirm-ok {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
}
.confirm-btns .confirm-ok:hover {
    background: #1e293b;
}
@keyframes confirmFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes confirmSlideIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
