/* KRXN Website - Main Styles */

/* CSS Variables for Color Scheme */
:root {
    --primary-blue: #1e3a8a;
    --secondary-turquoise: #14b8a6;
    --accent-petrol: #0891b2;
    --dark-gray: #374151;
    --light-gray: #f3f4f6;
    --white: #ffffff;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --border-light: #e5e7eb;
    --success-green: #10b981;
    --warning-orange: #f59e0b;
    /* Design system additions */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
    --shadow-md: 0 8px 24px rgba(0,0,0,.10);
    --container-max: 1200px;
    --space-1: .25rem;  /* 4px */
    --space-2: .5rem;   /* 8px */
    --space-3: .75rem;  /* 12px */
    --space-4: 1rem;    /* 16px */
    --space-5: 1.5rem;  /* 24px */
    --space-6: 2rem;    /* 32px */
    --space-8: 3rem;    /* 48px */
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    color: var(--primary-blue);
}

h2 {
    font-size: 2rem;
    color: var(--primary-blue);
}

h3 {
    font-size: 1.5rem;
    color: var(--dark-gray);
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    color: var(--secondary-turquoise);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-petrol);
}

/* Header & Navigation */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: flex-start; /* keep groups tight; push menu via auto margin */
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 1rem 10px; /* tight gutters to edge */
}

/* Brand group: logo + motto */
.brand {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}
.motto {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1;
    white-space: nowrap;
    padding-bottom: 3px;
}
@media (max-width: 1024px) {
    .motto {
        display: block;
        font-size: 0.85rem;
        line-height: 1.2;
        white-space: normal;
        max-width: 55vw;
        color: var(--text-dark);
    }
}

/* Cart count bubble on hamburger (mobile only) */
.cart-bubble {
    position: absolute;
    top: -6px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: #e11d48;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
    display: none; /* toggled via .show */
}
@media (max-width: 1024px) {
    .cart-bubble.show { display: inline-block; }
}

.logo-img {
    height: 50px;
    width: auto;
    display: block;
}

/* Reduce perceived left gutter on larger screens */
@media (min-width: 1024px) {
    .logo-img { margin-left: 0; }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
    margin-left: auto; /* push navigation to the right */
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.nav-link:hover {
    color: var(--secondary-turquoise);
    background-color: var(--light-gray);
}

/* Cart icon-only nav link */
.cart-link .cart-icon {
    display: inline-block;
    font-size: 1.6rem; /* larger default */
    line-height: 1;
    vertical-align: middle;
    position: relative; /* anchor overlay */
    /* Preferred: text-style glyph colored by currentColor */
    color: currentColor;
    /* Fallback: reduce multicolor rendering for color emoji */
    filter: grayscale(1) contrast(1.2) brightness(0.9);
}
.cart-link .cart-icon::after {
    /* Overlay tint to force single-color look on platforms rendering color emoji */
    content: '';
    position: absolute;
    inset: 0;
    background: currentColor;
    mix-blend-mode: color; /* preserves luminance, applies hue/sat of currentColor */
    opacity: 0.9;
    pointer-events: none;
}
/* WebKit text fill technique (when supported) to fully solid-fill the glyph */
@supports (-webkit-background-clip: text) {
    .cart-link .cart-icon {
        background: currentColor;
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent; /* keep color intact so currentColor is available */
        /* do NOT set color: transparent; it breaks currentColor */
        filter: none; /* not needed with text-fill */
    }
    .cart-link .cart-icon::after { display: none; }
}
.cart-link:hover .cart-icon {
    color: var(--secondary-turquoise);
}

/* Give the cart link a touch more room */
.nav-link.cart-link {
    padding: 0.5rem 0.95rem;
    position: relative; /* anchor for count bubble */
    display: inline-flex;
    align-items: center;
    color: var(--primary-blue);
    font-weight: 700;
}

/* Header cart icon sits next to the hamburger (single source of truth) */
.header-cart { display: inline-flex; margin-left: 6px; }
/* Always hide the legacy cart link in the nav list to avoid duplicates */
.nav-menu .cart-link { display: none !important; }

/* Even larger on mobile for easier tapping */
@media (max-width: 1024px) {
    .cart-link .cart-icon { font-size: 1.9rem; }
}

/* Cart count bubble positioned over the icon */
.nav-link.cart-link .count-bubble {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(45%, -45%);
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #e11d48;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
    display: none; /* toggled via .show */
    z-index: 2;
}

.nav-link.cart-link .count-bubble.show { display: inline-block; }

@media (max-width: 1024px) {
    .nav-link.cart-link .count-bubble {
        min-width: 20px;
        height: 20px;
        line-height: 20px;
        font-size: 12px;
        transform: translate(40%, -50%);
    }
}

/* Skip link for accessibility */
.skip-link { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { left: 16px; top: 16px; width: auto; height: auto; background: #111827; color: #fff; padding: .5rem .75rem; border-radius: .5rem; z-index: 1100; }

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: relative; /* anchor for cart bubble */
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    min-height: 450px;
    position: relative;
    overflow: hidden;
    background-image: url('../images/products/clip-s-optimized.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    position: absolute;
    left: 4rem;
    top: 50%;
    transform: translateY(-50%);
    text-align: left;
    padding: 2rem 0;
    max-width: 50%;
    color: var(--white);
}

.hero-title {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--white);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

.cta-button {
    display: inline-block;
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    padding: 1rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-turquoise), var(--accent-petrol));
    transition: left 0.3s ease;
    z-index: 0;
}

.cta-button:hover::before {
    left: 0;
}

.cta-button:hover {
    color: var(--white);
    border-color: var(--secondary-turquoise);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(20, 184, 166, 0.3);
}

.cta-button span {
    position: relative;
    z-index: 1;
}


/* Products Overview Section */
.products-overview {
    padding: 4rem 0 6rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-turquoise), var(--accent-petrol));
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
    perspective: 1000px;
}

.product-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(20, 184, 166, 0.1);
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-12px) rotateX(5deg);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(20, 184, 166, 0.3);
    border-color: rgba(20, 184, 166, 0.3);
}

.product-card.coming-soon {
    opacity: 0.7;
}

.product-image {
    height: 280px;
    background: linear-gradient(135deg, var(--secondary-turquoise), var(--accent-petrol));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(20, 184, 166, 0.1) 0%, 
        rgba(30, 58, 138, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-image::after {
    opacity: 1;
}
.product-image img.product-card-img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: block; 
    transition: transform 0.4s ease;
}

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

.placeholder-img {
    font-size: 1.5rem;
    color: var(--text-light);
    font-weight: 600;
}

.product-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
}

.product-info h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-blue);
}

.product-info p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--secondary-turquoise), var(--accent-petrol));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 1.5rem 0;
    position: relative;
}

.price::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary-turquoise), var(--accent-petrol));
    border-radius: 1px;
}

.coming-soon-text {
    color: var(--warning-orange);
    font-weight: 600;
}

.product-link {
    display: inline-block;
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    margin-top: auto;
    align-self: center;
    position: relative;
    overflow: hidden;
}

.product-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-turquoise), var(--accent-petrol));
    transition: left 0.3s ease;
    z-index: 0;
}

.product-link:hover::before {
    left: 0;
}

.product-link:hover {
    color: var(--white);
    border-color: var(--secondary-turquoise);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(20, 184, 166, 0.3);
}

.product-link span {
    position: relative;
    z-index: 1;
}

.product-link.disabled {
    background-color: var(--text-light);
    cursor: not-allowed;
}

.product-link.disabled:hover {
    background-color: var(--text-light);
}

/* About Section */
.about {
    padding: 4rem 0;
    background-color: var(--white);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: left;
}

/* Roadmap card inside About section */
.roadmap {
    background: #f9fafb;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin: 1rem 0 0 0;
    box-shadow: var(--shadow-sm);
    text-align: left; /* ensure left alignment within the card */
}
.roadmap-header { display: flex; align-items: center; gap: .5rem; margin-bottom: .4rem; }
.roadmap-badge {
    display: inline-block;
    background: rgba(20, 184, 166, .12);
    color: var(--accent-petrol);
    padding: .25rem .5rem;
    border-radius: .5rem;
    font-weight: 700;
    font-size: .85rem;
}
.roadmap-title { color: var(--primary-blue); font-weight: 700; }
.roadmap-list { margin: .25rem 0; padding-left: 1.25rem; list-style-position: outside; }
.roadmap-list li { margin: .15rem 0; }
.roadmap-footnote { color: var(--text-light); margin-top: .35rem; }

/* Contact Section */
.contact {
    padding: 4rem 0;
    background-color: var(--light-gray);
}

.contact-info {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-content {
    display: flex;
    justify-content: center;
}

.contact-info p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Contact Form */
.contact-form {
    background-color: var(--white);
    padding: var(--space-6);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    max-width: 600px;
    width: 100%;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border-light);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-turquoise);
}

.submit-btn {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    padding: 1rem 2rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-turquoise), var(--accent-petrol));
    transition: left 0.3s ease;
    z-index: 0;
}

.submit-btn:hover::before {
    left: 0;
}

.submit-btn:hover {
    color: var(--white);
    border-color: var(--secondary-turquoise);
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(20, 184, 166, 0.3);
}

.submit-btn span {
    position: relative;
    z-index: 1;
}

/* Order Success Page */
.order-success {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e6f7f5 100%);
  border-radius: 12px;
  margin: 40px auto;
  max-width: 600px;
}

.order-success h2 {
  color: #22c55e;
  font-size: 2rem;
  margin-bottom: 20px;
}

.order-number {
  font-size: 1.1rem;
  color: #333;
  margin: 20px 0;
  padding: 15px;
  background: white;
  border-radius: 8px;
  border: 2px solid #40b4a2;
}

.order-number strong {
  color: #1a3d52;
  font-size: 1.2rem;
}

.order-success .order-actions {
  margin-top: 30px;
}

/* Footer */
.footer {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo-img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: underline;
}

.footer-links a:hover,
.footer-links a:focus {
    color: #ffffff;
    text-decoration-color: #ffffff;
}

.footer-credits {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.25rem;
}

.footer-credits a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: underline;
}

.footer-credits a:hover,
.footer-credits a:focus {
    color: #ffffff;
}

.footer-copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

.hidden {
    display: none;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Product Pages Styles */
.product-hero {
    margin-top: 80px;
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--border-light) 100%);
}

.breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--secondary-turquoise);
}

.product-title {
    margin-bottom: 0.5rem;
}

.product-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 0;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.product-images {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.main-image {
    height: 400px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.main-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.product-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

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

.placeholder-product-img {
    font-size: 2rem;
    color: var(--text-light);
    font-weight: 600;
}

.image-gallery {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.thumb-img {
    height: 80px;
    width: 80px;
    object-fit: cover;
    background: linear-gradient(135deg, #ffffff, #f3f4f6);
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.thumb-img:hover {
    border-color: var(--secondary-turquoise);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    color: var(--primary-dark-blue);
    background: linear-gradient(135deg, #ffffff, #e6fffa);
}

.thumb-img.active {
    border-color: var(--accent-petrol);
    border-width: 3px;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

.price-section {
    background-color: var(--light-gray);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    text-align: center;
}

.price-label {
    font-size: 1rem;
    color: var(--text-light);
    display: block;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-turquoise);
}

/* Reset gradient text inside price sections so prefix is readable */
.price-section .price {
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: currentColor !important;
}
.price-section .price::before {
    background: var(--secondary-turquoise);
}

/* Smaller, subtle prefix before price (e.g., "ab" / "from") */
.price .price-prefix {
    font-size: 0.6em;
    font-weight: 600;
    margin-right: .35rem;
    color: var(--secondary-turquoise); /* match price color */
    opacity: 1;
}

.specifications,
.weight-specs {
    margin: 2rem 0;
}

.spec-table,
.weight-table,
.tube-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.spec-table th,
.weight-table th,
.tube-table th {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.spec-table td,
.weight-table td,
.tube-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border-light);
}

.spec-table tr:hover,
.weight-table tr:hover,
.tube-table tr:hover {
    background-color: var(--light-gray);
}

.tube-table .highlight {
    background-color: rgba(20, 184, 166, 0.1);
    border-left: 4px solid var(--secondary-turquoise);
    transition: all 0.3s ease;
}

.tube-table .highlight:hover {
    background-color: rgba(20, 184, 166, 0.2);
}

/* Category transition effects */
.tube-category {
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.tube-category.hidden {
    display: none !important;
}

.order-section {
    background-color: var(--light-gray);
    padding: 2.5rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.order-section h3 {
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--primary-blue);
    font-size: 1.5rem;
}

.order-section p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    text-align: center;
}

.order-section ul {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.order-section li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    font-size: 1rem;
}

.order-section li:last-child {
    border-bottom: none;
}

.order-section li:before {
    content: "✓";
    color: var(--success-green);
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 1.5rem;
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background-color: rgba(16, 185, 129, 0.1);
    text-align: center;
    line-height: 1.5rem;
    flex-shrink: 0;
}

.order-btn {
    display: inline-block;
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-top: 1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.order-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-turquoise), var(--accent-petrol));
    transition: left 0.3s ease;
    z-index: 0;
}

.order-btn:hover::before {
    left: 0;
}

.order-btn:hover {
    color: var(--white);
    border-color: var(--secondary-turquoise);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(20, 184, 166, 0.3);
}

.order-btn span {
    position: relative;
    z-index: 1;
}

/* Tube Categories */
.tube-categories {
    margin: 2rem 0;
}

.tube-category {
    margin-bottom: 3rem;
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tube-category h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary-turquoise);
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.features-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-light);
    position: relative;
    padding-left: 2rem;
}

.features-list li:before {
    content: "→";
    color: var(--secondary-turquoise);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0.8rem;
}

/* Related Products */
.related-products {
    padding: 4rem 0;
    background-color: var(--light-gray);
}

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

.related-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.related-card:hover {
    transform: translateY(-5px);
}

.related-image {
    height: 150px;
    background: linear-gradient(135deg, var(--light-gray), var(--border-light));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.related-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-card h3 {
    padding: 1rem 1.5rem 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-blue);
}

.related-card p {
    padding: 0 1.5rem 1rem;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.related-link {
    display: block;
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    padding: 1rem 1.5rem;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.related-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-turquoise), var(--accent-petrol));
    transition: left 0.3s ease;
    z-index: 0;
}

.related-link:hover::before {
    left: 0;
}

.related-link:hover {
    color: var(--white);
    border-color: var(--secondary-turquoise);
}

.related-link span {
    position: relative;
    z-index: 1;
}

 

/* Coming Soon Styles */
.coming-soon-hero {
    background: linear-gradient(135deg, var(--warning-orange) 0%, #f97316 100%);
    color: var(--white);
}

.coming-soon-hero .product-title,
.coming-soon-hero .product-subtitle {
    color: var(--white);
}

.coming-soon-badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin-top: 1rem;
}

.coming-soon-badge span {
    font-weight: 600;
    font-size: 1.1rem;
}

.coming-soon-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.lead-text {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.development-status {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-light);
}

.status-item:last-child {
    border-bottom: none;
}

.status-label {
    font-weight: 500;
    color: var(--text-dark);
}

.status-value {
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
}

.status-value.in-progress {
    background-color: rgba(245, 158, 11, 0.2);
    color: #92400e;
}

.status-value.pending {
    background-color: rgba(107, 114, 128, 0.2);
    color: var(--text-dark);
}

.status-value.upcoming {
    background-color: rgba(20, 184, 166, 0.2);
    color: #065f46;
}

.planned-features {
    margin: 2rem 0;
}

.pre-order-info {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.benefits {
    margin: 1.5rem 0;
}

.benefits h4 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.benefits ul {
    list-style: none;
    padding: 0;
}

.benefits li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.benefits li:before {
    content: "★";
    color: var(--warning-orange);
    position: absolute;
    left: 0;
    top: 0.5rem;
}

.placeholder-large {
    height: 300px;
    background: linear-gradient(135deg, var(--light-gray), var(--border-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--text-light);
    margin-bottom: 2rem;
}

.placeholder-content {
    text-align: center;
    color: var(--text-light);
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.placeholder-content h4 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.timeline {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.timeline h4 {
    margin-bottom: 1.5rem;
    color: var(--primary-blue);
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
    position: relative;
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-item:before {
    content: "";
    position: absolute;
    left: -1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--text-light);
}

.timeline-item.completed:before {
    background-color: var(--success-green);
}

.timeline-item.current:before {
    background-color: var(--warning-orange);
}

.timeline-item.upcoming:before {
    background-color: var(--secondary-turquoise);
}

.timeline-date {
    font-weight: 600;
    color: var(--text-dark);
}

.timeline-event {
    color: var(--text-light);
}

.cart-link { position: relative; }
.cart-count {
    display: inline-block;
    min-width: 1.25rem;
    padding: 0 0.35rem;
    margin-left: 0.35rem;
    font-size: 0.8rem;
    line-height: 1.25rem;
    text-align: center;
    border-radius: 9999px;
    background: var(--primary-blue);
    color: #fff;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 14px; /* subtle spacing from previous item */
    padding-left: 0;   /* remove vertical bar spacing */
    border-left: none; /* remove the left vertical line */
}

.lang-switcher .nav-link {
    padding: 5px 8px;
    min-width: auto;
}

.lang-switcher .nav-link.active {
    font-weight: 700;
    color: var(--secondary-turquoise);
    background-color: rgba(64, 180, 162, 0.1);
    border-radius: 4px;
}

.lang-divider {
    color: #c4c9cf; /* lighter */
    font-size: 0.9em;
    line-height: 1;
}

.btn { 
    display: inline-flex; 
    align-items: center; 
    gap: .5rem; 
    padding: .65rem 1rem; 
    border-radius: .5rem; 
    border: 2px solid var(--primary-blue); 
    cursor: pointer; 
    font-weight: 600; 
    font-size: 1rem; 
    line-height: 1.2; 
    background: transparent;
    color: var(--primary-blue);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-turquoise), var(--accent-petrol));
    transition: left 0.3s ease;
    z-index: 0;
}

.btn:hover::before {
    left: 0;
}

.btn:hover {
    color: var(--white);
    border-color: var(--secondary-turquoise);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

.btn span {
    position: relative;
    z-index: 1;
}

.btn-primary { 
    border-color: var(--primary-blue);
}

.btn-outline { 
    border-color: var(--secondary-turquoise); 
    color: var(--secondary-turquoise);
}
.btn-link { background: transparent; color: #ef4444; border: none; text-decoration: underline; padding: .25rem .5rem; }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 1rem; background: rgba(0,0,0,.85); color: #fff; padding: .6rem .9rem; border-radius: .5rem; opacity: 0; transition: opacity .2s ease; z-index: 9999; }
.toast.show { opacity: 1; }

.cart-section { padding: 2rem 0; }
.cart-container { overflow-x: auto; background: #fff; border-radius: .75rem; box-shadow: 0 8px 20px rgba(0,0,0,.06); padding: 1rem; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { text-align: left; padding: .75rem; border-bottom: 1px solid #eee; }
.cart-line-name { font-weight: 600; }
.cart-line-sku { color: #6b7280; font-size: .85rem; }
.qty-input { width: 64px; padding: .4rem; border-radius: .4rem; border: 1px solid #d1d5db; }
.cart-summary { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; }
.cart-total-row { font-size: 1.1rem; font-weight: 700; display: flex; gap: 1rem; }
.cart-actions { display: flex; gap: .75rem; }

.shop-controls { display: grid; gap: .5rem; margin: 1rem 0; max-width: 360px; }
.shop-select { padding: .6rem .75rem; border-radius: .5rem; border: 1px solid #d1d5db; }

/* Quick add panel */
.quick-add-panel { margin-top: .75rem; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: .5rem; padding: .75rem; }
.quick-add-label { display: block; font-size: .9rem; color: #374151; margin-bottom: .35rem; }
.quick-add-actions { display: flex; gap: .5rem; margin-top: .5rem; }
.quick-qty { display: inline-flex; align-items: center; gap: .25rem; margin-top: .5rem; }
.btn-qty { width: 28px; height: 28px; border-radius: .35rem; border: 1px solid #d1d5db; background: #fff; cursor: pointer; }

/* Table cell controls for tubes page */
.tube-table .table-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tube-table .table-controls .qty-input {
    width: 64px;
    margin: 0;
}

.tube-table .table-controls .order-btn {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    white-space: nowrap;
}

.tube-table td:last-child {
    min-width: 0; /* remove enforced wide price column */
    white-space: nowrap;
    text-align: right;
}

/* Mini cart */
.mini-cart-panel { position: fixed; top: 64px; right: 16px; width: 320px; max-width: calc(100% - 16px); background: #fff; border: 1px solid #e5e7eb; border-radius: .75rem; box-shadow: 0 15px 40px rgba(0,0,0,.12); padding: .75rem; display: none; z-index: 2000; }
.mini-cart-panel.open { display: block; }
.mini-cart-empty { padding: .5rem; color: #6b7280; font-size: .95rem; }
.mini-cart-items { max-height: 240px; overflow-y: auto; display: grid; gap: .5rem; }
.mini-cart-item { display: grid; gap: .15rem; border-bottom: 1px dashed #eee; padding-bottom: .35rem; }
.mini-cart-item:last-child { border-bottom: none; }
.mini-cart-name { font-weight: 600; }
.mini-cart-meta { color: #6b7280; font-size: .9rem; }
.mini-cart-footer { display: grid; gap: .75rem; margin-top: .75rem; border-top: 1px solid #eef2f7; padding-top: .75rem; }
.mini-cart-total { display: flex; justify-content: space-between; font-weight: 700; }
.mini-cart-actions { display: grid; grid-template-columns: 1fr; gap: .5rem; }
.mini-cart-actions .btn { width: 100%; justify-content: center; font-size: 1rem; padding: .65rem 1rem; }
.btn-sm { padding: .45rem .75rem; font-size: .9rem; }

/* Order page */
.order-section.order-page { padding: 2rem 0; }

/* Center buttons in order sections */
.order-section .order-btn,
.order-section .btn {
    display: block;
    margin: 1.5rem auto 0 auto;
    text-align: center;
    max-width: 250px;
}

.order-section .shop-controls {
    max-width: 350px;
    margin: 1.5rem auto;
}
.order-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; }
.order-form .form-group { display: grid; gap: .35rem; margin-bottom: .9rem; }
.order-form input, .order-form textarea { padding: .6rem .75rem; border-radius: .5rem; border: 1px solid #d1d5db; }
.order-actions { display: flex; gap: .75rem; margin-top: .5rem; }

/* Add breathing room above the informational note under order buttons */
.cart-note { margin-top: 1.25rem; }

@media (max-width: 900px) {
  .order-layout { grid-template-columns: 1fr; }
}

/* --- Homepage tweaks for scoped design --- */
.section-subtitle { text-align: center; color: var(--text-light); margin-top: -0.75rem; }
.audience-banner { background: linear-gradient(135deg, var(--secondary-turquoise), var(--accent-petrol)); color: #fff; padding: 2.5rem 0; }
.audience-content { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.audience-text h2 { color: #fff; margin: .5rem 0; }
.audience-text p { color: rgba(255,255,255,.9); margin: 0; }
.audience-actions { display: flex; gap: .75rem; }
.audience-actions .btn { justify-content: center; text-align: center; }
/* Equalize hero buttons width on English homepage */
html[lang='en'] .audience-actions .btn { min-width: 12.5rem; }
@media (max-width: 920px) {
  html[lang='en'] .audience-actions .btn { min-width: 0; width: 100%; }
}
.badge { display: inline-block; background: rgba(255,255,255,.2); color: #fff; padding: .25rem .6rem; border-radius: 999px; font-weight: 600; font-size: .85rem; letter-spacing: .2px; }

@media (max-width: 920px) {
  .audience-content { flex-direction: column; align-items: flex-start; }
}

/* Make the hero CTA secondary button readable on teal gradient */
.audience-banner .btn-outline { 
  border-color: rgba(255,255,255,.9); 
  color: #fff; 
}
.audience-banner .btn-outline::before { 
  background: rgba(255,255,255,.18); 
}
.audience-banner .btn-outline:hover { 
  color: #fff; 
  border-color: #fff; 
}
