/* ============================================
   Big Country Aquatics - Stylesheet
   Ocean Gradient Theme: Light to Deep
   ============================================ */

/* CSS Custom Properties */
:root {
    /* Ocean Color Palette */
    --color-surface-light: #f0f9ff;
    --color-surface: #e0f4ff;
    --color-aqua-pale: #b8e6f7;
    --color-aqua-light: #7dd3e8;
    --color-aqua: #38bdf8;
    --color-teal: #14b8a6;
    --color-teal-deep: #0d9488;
    --color-ocean: #0891b2;
    --color-ocean-deep: #0369a1;
    --color-navy: #075985;
    --color-navy-deep: #0c4a6e;
    --color-abyss: #082f49;
    --color-midnight: #0a1929;

    /* Accent Colors */
    --color-coral: #fb923c;
    --color-coral-light: #fdba74;
    --color-gold: #fbbf24;

    /* Text Colors */
    --color-text-dark: #0c4a6e;
    --color-text-medium: #075985;
    --color-text-light: #f0f9ff;
    --color-text-muted: #64748b;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-bg-solid: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px rgba(8, 47, 73, 0.15);

    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --section-padding: 6rem;
    --container-width: 1200px;
    --border-radius: 16px;
    --border-radius-sm: 8px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.6s ease;
}

/* Skip Link (Accessibility) */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    padding: 0.75rem 1.5rem;
    background: var(--color-navy-deep);
    color: white;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 1rem;
    outline: 3px solid var(--color-coral);
    outline-offset: 2px;
}

/* Visually Hidden (screen reader only) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-dark);
    background: linear-gradient(180deg,
        var(--color-surface-light) 0%,
        var(--color-surface) 10%,
        var(--color-aqua-pale) 25%,
        var(--color-aqua-light) 40%,
        var(--color-ocean) 60%,
        var(--color-navy) 80%,
        var(--color-abyss) 95%,
        var(--color-midnight) 100%
    );
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-medium);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-coral), var(--color-coral-light));
    color: white;
    box-shadow: 0 4px 20px rgba(251, 146, 60, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(251, 146, 60, 0.5);
}

.btn-secondary {
    /* Improved contrast: more opaque background for better text readability (WCAG AA) */
    background: rgba(255, 255, 255, 0.75);
    color: var(--color-navy-deep);
    border-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(8, 47, 73, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(8, 47, 73, 0.15);
}

.btn-light {
    background: white;
    color: var(--color-ocean-deep);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.btn-nav {
    padding: 0.625rem 1.25rem;
    background: var(--color-coral);
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.btn-danger {
    background: rgba(220, 38, 38, 0.12);
    color: #b91c1c;
    border-color: rgba(220, 38, 38, 0.35);
    box-shadow: none;
}

.btn-danger:hover {
    background: rgba(220, 38, 38, 0.2);
    transform: translateY(-1px);
}

/* Skip to Top */
.skip-top {
    position: fixed;
    right: calc(1.5rem + env(safe-area-inset-right));
    bottom: calc(1.5rem + env(safe-area-inset-bottom));
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: linear-gradient(135deg, var(--color-ocean), var(--color-teal-deep));
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(8, 47, 73, 0.25);
    opacity: 0;
    transform: translateY(12px) scale(0.96);
    pointer-events: none;
    transition: opacity var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
    z-index: 1100;
}

.skip-top svg {
    width: 22px;
    height: 22px;
}

.skip-top.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.skip-top:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 16px 30px rgba(8, 47, 73, 0.3);
}

.skip-top:focus-visible {
    outline: 2px solid var(--color-coral-light);
    outline-offset: 3px;
}

/* Floating Bubbles */
.bubbles-container {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bubble {
    position: absolute;
    bottom: -100px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
    border-radius: 50%;
    animation: bubble-rise linear infinite;
    opacity: 0;
}

.bubble:nth-child(1) { left: 10%; width: 20px; height: 20px; animation-duration: 20s; animation-delay: 0s; }
.bubble:nth-child(2) { left: 25%; width: 35px; height: 35px; animation-duration: 25s; animation-delay: 2s; }
.bubble:nth-child(3) { left: 40%; width: 15px; height: 15px; animation-duration: 18s; animation-delay: 4s; }
.bubble:nth-child(4) { left: 55%; width: 25px; height: 25px; animation-duration: 22s; animation-delay: 1s; }
.bubble:nth-child(5) { left: 70%; width: 40px; height: 40px; animation-duration: 28s; animation-delay: 3s; }
.bubble:nth-child(6) { left: 85%; width: 18px; height: 18px; animation-duration: 19s; animation-delay: 5s; }
.bubble:nth-child(7) { left: 15%; width: 30px; height: 30px; animation-duration: 24s; animation-delay: 6s; }
.bubble:nth-child(8) { left: 60%; width: 22px; height: 22px; animation-duration: 21s; animation-delay: 7s; }

@keyframes bubble-rise {
    0% {
        transform: translateY(0) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-120vh) scale(1);
        opacity: 0;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(240, 249, 255, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    transition: all var(--transition-medium);
}

.navbar.scrolled {
    padding: 0.75rem 0;
    background: rgba(240, 249, 255, 0.95);
    box-shadow: 0 4px 30px rgba(8, 47, 73, 0.1);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-navy-deep);
}

.logo-text span {
    color: var(--color-ocean);
}

.nav-auth-btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.nav-auth-btn[aria-current="page"] {
    border-color: rgba(8, 145, 178, 0.35);
}

.nav-cart-btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.nav-cart-btn[aria-current="page"] {
    border-color: rgba(8, 145, 178, 0.35);
}

.nav-cart-count {
    min-width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    background: var(--color-ocean-deep);
    color: white;
    font-size: 0.72rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.1rem 0.35rem;
}

.nav-cart-count[hidden] {
    display: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    list-style: none;
}

/* Desktop nav layout:
   logo left, jump links centered, cart/sign-in pinned right */
@media (min-width: 769px) {
    .navbar .container {
        position: relative;
        justify-content: center;
        min-height: 66px;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .navbar .logo {
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 4;
    }

    .nav-links {
        position: relative;
        inset: auto;
        width: 100%;
        min-height: 56px;
        margin: 0;
        padding-left: clamp(19rem, 24vw, 24rem);
        padding-right: clamp(16rem, 21vw, 21rem);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: clamp(1rem, 1.5vw, 1.6rem);
    }

    .nav-links > li {
        display: flex;
        align-items: center;
    }

    #nav-cart-link,
    #nav-account-link {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        justify-content: center;
        z-index: 5;
        min-height: 44px;
        padding: 0.62rem 1.25rem;
        border-width: 1px;
        border-style: solid;
        color: white;
        font-weight: 600;
        text-shadow: 0 1px 2px rgba(8, 47, 73, 0.25);
        box-shadow: 0 8px 18px rgba(8, 47, 73, 0.22);
        transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
    }

    #nav-account-link {
        right: 1rem;
        min-width: 8.25rem;
        background: linear-gradient(135deg, var(--color-ocean-deep), var(--color-navy));
        border-color: rgba(255, 255, 255, 0.35);
    }

    #nav-cart-link {
        right: 10rem;
        min-width: 7.5rem;
        background: linear-gradient(135deg, var(--color-teal), var(--color-ocean));
        border-color: rgba(255, 255, 255, 0.4);
    }

    #nav-cart-link:hover,
    #nav-account-link:hover {
        transform: translateY(calc(-50% - 2px));
        box-shadow: 0 12px 24px rgba(8, 47, 73, 0.28);
        filter: saturate(1.08);
    }

    #nav-cart-link:focus-visible,
    #nav-account-link:focus-visible {
        outline: 2px solid rgba(255, 255, 255, 0.85);
        outline-offset: 2px;
    }

    #nav-cart-link[aria-current="page"],
    #nav-account-link[aria-current="page"] {
        box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7), 0 10px 20px rgba(8, 47, 73, 0.25);
    }

    #nav-cart-link .nav-cart-count {
        background: rgba(255, 255, 255, 0.95);
        color: var(--color-ocean-deep);
        font-weight: 700;
    }
}

.nav-links a {
    font-weight: 500;
    color: var(--color-text-dark);
    position: relative;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-ocean);
    transition: width var(--transition-fast);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-navy-deep);
    transition: all var(--transition-fast);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-light-rays {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, transparent 40%),
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 30% 10%, rgba(184, 230, 247, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 70% 10%, rgba(184, 230, 247, 0.4) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    /* Subtle backdrop for consistent text contrast across gradient variations */
    padding: 2rem;
    border-radius: var(--border-radius);
    background: radial-gradient(
        ellipse 100% 100% at 50% 50%,
        rgba(255, 255, 255, 0.5) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 70%
    );
}

.hero-title {
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.hero-logo {
    width: clamp(220px, 40vw, 420px);
    height: auto;
    display: block;
    margin: 0 auto;
}

.hero-title-line {
    display: block;
}

.hero-title-line.accent {
    color: var(--color-ocean);
    font-style: italic;
}

.hero-tagline {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    color: var(--color-navy-deep);
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.2s forwards;
    /* Improved contrast: darker text + subtle shadow for WCAG AA compliance */
    text-shadow:
        0 1px 2px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

.hero-cta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 0;
    opacity: 0;
    animation: fadeInUp 1s ease 0.4s forwards;
}

.hero-cta .btn {
    width: 100%;
}

/* Wave Separator */
.wave-separator {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 80px;
    color: var(--color-aqua-pale);
    pointer-events: none;
}

.wave-separator svg {
    width: 100%;
    height: 100%;
    display: block;
}

.wave-reverse {
    top: 0;
    bottom: auto;
}

/* Sections */
.section {
    position: relative;
    padding: var(--section-padding) 0;
}

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

.section-title {
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    background: var(--color-aqua-pale);
    padding-top: 8rem;
}

.about .section-title,
.about .section-subtitle {
    color: var(--color-navy-deep);
}

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

.about-card {
    text-align: center;
    padding: 2.5rem 2rem;
}

.about-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    color: var(--color-ocean);
}

.about-card h3 {
    margin-bottom: 1rem;
    color: var(--color-navy-deep);
}

.about-card p {
    color: var(--color-text-medium);
    margin-bottom: 0;
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg-solid);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(10px);
}

/* Offerings Section */
.offerings {
    background: linear-gradient(180deg, var(--color-aqua-light) 0%, var(--color-ocean) 100%);
    padding-top: 8rem;
}

.offerings .wave-separator {
    color: var(--color-teal);
}

.offerings .section-title,
.offerings .section-subtitle {
    color: var(--color-abyss);
}

.offerings .section-subtitle {
    color: rgba(7, 89, 133, 0.95);
    font-weight: 500;
}

.offerings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.offering-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.offering-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(8, 47, 73, 0.2);
}

.offering-card.featured {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--color-gold);
}

.offering-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--color-coral), var(--color-gold));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.offering-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    color: var(--color-ocean);
}

.offering-card h3 {
    margin-bottom: 0.75rem;
    color: var(--color-navy-deep);
}

.offering-card p {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    margin-bottom: 0;
}

/* Shop Discount Highlight */
.shop-discount {
    background: linear-gradient(135deg, var(--color-teal-deep), var(--color-ocean-deep));
    padding: 1.75rem 2rem;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
    margin-bottom: 1.75rem;
    box-shadow: 0 14px 30px rgba(8, 47, 73, 0.25);
}

.shop-discount::before {
    content: '';
    position: absolute;
    top: -60%;
    left: -20%;
    width: 140%;
    height: 220%;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.shop-discount-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.shop-discount-badge {
    width: 64px;
    height: 64px;
    color: var(--color-gold);
    flex-shrink: 0;
}

.shop-discount-text {
    max-width: 520px;
}

.shop-discount-text h3 {
    color: white;
    margin-bottom: 0.4rem;
    font-size: 1.25rem;
}

.shop-discount-text p {
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Shop Section */
.shop {
    background: linear-gradient(180deg, var(--color-surface-light) 0%, var(--color-aqua-pale) 100%);
    padding-top: 8rem;
}

.shop .section-title,
.shop .section-subtitle {
    color: var(--color-navy-deep);
}

.shop-panel {
    padding: 2rem;
    margin-bottom: 2rem;
}

.shop-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    align-items: end;
}

.shop-field label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin-bottom: 0.4rem;
}

.shop-field input,
.shop-field select,
.shop-select-trigger {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(12, 74, 110, 0.2);
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-navy-deep);
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.shop-field input:focus,
.shop-field select:focus,
.shop-select-trigger:focus-visible {
    outline: 2px solid rgba(8, 145, 178, 0.35);
    border-color: rgba(8, 145, 178, 0.45);
}

.shop-field input[aria-invalid="true"],
.shop-field select[aria-invalid="true"],
.shop-field textarea[aria-invalid="true"] {
    border-color: rgba(185, 28, 28, 0.62);
    outline: 2px solid rgba(185, 28, 28, 0.2);
}

.shop-select {
    position: relative;
}

.shop-select-trigger {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    text-align: left;
    cursor: pointer;
}

.shop-select-caret {
    color: var(--color-ocean-deep);
    font-size: 0.8rem;
}

.shop-select-options {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid rgba(12, 74, 110, 0.15);
    border-radius: var(--border-radius-sm);
    box-shadow: 0 10px 24px rgba(8, 47, 73, 0.12);
    padding: 0.35rem 0;
    list-style: none;
    margin: 0;
    z-index: 10;
    max-height: 240px;
    overflow-y: auto;
}

.shop-select.open .shop-select-options {
    display: block;
}

.shop-select-option {
    padding: 0.55rem 0.9rem;
    font-size: 0.9rem;
    color: var(--color-navy-deep);
    cursor: pointer;
}

.shop-select-option:hover,
.shop-select-option[aria-selected="true"] {
    background: rgba(8, 145, 178, 0.12);
}

.shop-summary {
    margin-top: 1.5rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
}

.shop-pagination {
    margin-top: 1.25rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.shop-page-btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.875rem;
}

.shop-page-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.shop-table-wrapper {
    padding: 1.5rem;
    overflow-x: auto;
}

.shop-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}

.shop-table th,
.shop-table td {
    text-align: left;
    padding: 0.85rem 0.75rem;
    border-bottom: 1px solid rgba(12, 74, 110, 0.1);
}

.shop-table th {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.shop-table td {
    color: var(--color-navy-deep);
    font-size: 0.95rem;
}

.shop-product-link {
    color: inherit;
    font-weight: 600;
    text-decoration: none;
}

.shop-product-link:hover {
    color: var(--color-ocean-deep);
    text-decoration: underline;
}

.shop-table tr:last-child td {
    border-bottom: none;
}

.shop-table tr.sold-out {
    /* Use color instead of opacity for better contrast (WCAG AA) */
    color: #4a6173;
    background: rgba(100, 116, 139, 0.08);
}

.availability-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    min-height: 28px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.1;
}

.availability-pill.in-stock {
    background: rgba(20, 184, 166, 0.15);
    color: var(--color-teal-deep);
}

.availability-pill.sold-out {
    background: rgba(180, 83, 9, 0.15);
    /* Darkened orange for WCAG AA contrast (4.5:1) */
    color: #b45309;
}

.price-cell {
    font-weight: 600;
    color: var(--color-abyss);
}

.shop-empty {
    text-align: center;
    padding: 2rem 0;
    color: var(--color-text-muted);
}

/* Product Detail Page */
.product-detail {
    background: linear-gradient(180deg, var(--color-surface-light) 0%, var(--color-aqua-pale) 100%);
    padding-top: 8rem;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.product-id {
    margin: 0 0 0.35rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
}

.product-title {
    margin: 0;
    color: var(--color-navy-deep);
    font-size: clamp(2rem, 3vw, 2.75rem);
}

.product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 2rem;
    align-items: start;
}

.product-gallery {
    padding: 1.5rem;
    display: grid;
    gap: 1rem;
}

.product-gallery-main {
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(12, 74, 110, 0.12);
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    text-align: center;
    padding: 1rem;
}

.product-gallery-main img,
.product-gallery-main video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 0.6rem;
}

.product-thumb {
    border: 1px solid rgba(12, 74, 110, 0.15);
    border-radius: var(--border-radius-sm);
    background: rgba(255, 255, 255, 0.9);
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.product-thumb img,
.product-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-thumb.is-active {
    border-color: rgba(8, 145, 178, 0.65);
    transform: translateY(-2px);
}

.product-info {
    display: grid;
    gap: 1.5rem;
}

.product-description,
.product-variants {
    padding: 1.5rem;
}

.product-description h2,
.product-variants h2 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: var(--color-navy-deep);
}

.product-description p {
    margin: 0;
    color: var(--color-text-medium);
}

.product-variants-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.product-variant-note {
    margin: 0 0 1rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.product-variant-list {
    display: grid;
    gap: 0.75rem;
}

.variant-card {
    border-radius: var(--border-radius);
    border: 1px solid rgba(12, 74, 110, 0.15);
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem 1.25rem;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.variant-card:hover {
    border-color: rgba(8, 145, 178, 0.35);
    box-shadow: 0 10px 24px rgba(8, 47, 73, 0.08);
}

.variant-card.is-active {
    border-color: rgba(8, 145, 178, 0.6);
    box-shadow: 0 12px 30px rgba(8, 47, 73, 0.12);
}

.variant-card.is-soldout {
    opacity: 0.7;
}

.variant-info {
    display: grid;
    gap: 0.3rem;
}

.variant-name {
    font-weight: 600;
    color: var(--color-navy-deep);
}

.variant-sku {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.variant-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
    font-size: 0.85rem;
    color: var(--color-text-medium);
}

.variant-price {
    font-weight: 600;
    color: var(--color-abyss);
}

.product-cart-panel {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(12, 74, 110, 0.12);
    display: grid;
    gap: 0.9rem;
}

.product-cart-quantity-field {
    max-width: 180px;
}

.product-cart-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.product-cart-selection {
    margin: 0;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.product-cart-selection[data-state="error"] {
    color: #b91c1c;
}

.product-cart-selection[data-state="success"] {
    color: #0f766e;
}

.product-status {
    font-size: 0.9rem;
    color: #b91c1c;
}

/* Cart Page */
.cart {
    background: linear-gradient(180deg, var(--color-surface-light) 0%, var(--color-aqua-pale) 100%);
    padding-top: 8rem;
}

.cart .section-title,
.cart .section-subtitle {
    color: var(--color-navy-deep);
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 1.5rem;
    align-items: start;
}

.cart-list-card,
.cart-summary-card {
    padding: 1.5rem;
}

.cart-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.cart-list-header h3,
.cart-summary-card h3 {
    margin: 0;
    color: var(--color-navy-deep);
}

.cart-table-wrapper {
    padding: 0;
}

.cart-table {
    min-width: 700px;
}

.cart-variant-meta {
    display: block;
    margin-top: 0.2rem;
    color: var(--color-text-muted);
    font-size: 0.78rem;
}

.cart-quantity-input {
    width: 92px;
    padding: 0.45rem 0.5rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(12, 74, 110, 0.2);
    font-size: 0.9rem;
}

.cart-line-total {
    font-weight: 600;
    color: var(--color-abyss);
}

.cart-table button[data-action="remove"] {
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
}

.cart-empty {
    margin: 0 0 1rem;
    color: var(--color-text-muted);
}

.cart-summary-list {
    margin: 1rem 0;
}

.cart-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.45rem 0;
    color: var(--color-text-medium);
}

.cart-summary-row dt,
.cart-summary-row dd {
    margin: 0;
}

.cart-summary-row-total {
    margin-top: 0.3rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(12, 74, 110, 0.12);
    font-weight: 600;
    color: var(--color-navy-deep);
}

.cart-summary-row#cart-discount-row dt,
.cart-summary-row#cart-discount-row dd {
    color: #0f766e;
    font-weight: 600;
}

.cart-summary-note {
    margin-bottom: 1rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.cart-summary-actions {
    display: grid;
    gap: 0.7rem;
}

.cart-summary-actions .btn {
    width: 100%;
}

.cart-feedback {
    margin-top: 0.9rem;
    min-height: 1.2rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.cart-feedback[data-state="error"] {
    color: #b91c1c;
}

.cart-feedback[data-state="success"] {
    color: #0f766e;
}

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

    .product-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .shop-account-wrapper {
        padding: 1.5rem;
    }

    .shop-auth-form {
        grid-template-columns: 1fr;
    }

    .shop-auth-submit {
        justify-content: flex-start;
        align-self: auto;
        padding-top: 0;
    }

    .shop-admin-access-note {
        padding: 0 1.5rem 1.25rem;
    }

    .cart-layout {
        grid-template-columns: 1fr;
    }
}

/* Shop Admin */
.shop-account-wrapper {
    margin-top: 2.5rem;
    padding: 2rem;
    display: grid;
    gap: 1rem;
}

.shop-account-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.shop-account-header h3 {
    margin: 0;
    font-size: 1.15rem;
    color: var(--color-navy-deep);
}

.shop-account-status {
    margin: 0;
    font-size: 0.92rem;
    color: var(--color-text-medium);
}

.shop-account-note {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text-medium);
}

.shop-auth-form {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr)
        auto;
    gap: 1rem 1.25rem;
    align-items: end;
}

.shop-auth-form .shop-field {
    min-width: 0;
}

.shop-field.has-popup {
    position: relative;
}

.auth-field-popup {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.5rem;
    min-height: 2.4rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid rgba(82, 82, 91, 0.55);
    border-radius: 8px;
    background: #f4f4f5;
    color: #18181b;
    font-size: 0.9rem;
    line-height: 1.2;
    box-shadow: 0 4px 10px rgba(2, 6, 23, 0.18);
}

.auth-field-popup::before {
    content: '!';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 0.2rem;
    background: #f59e0b;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
}

.auth-field-popup[hidden] {
    display: inline-flex;
    visibility: hidden;
    pointer-events: none;
}

.shop-auth-submit {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    align-self: start;
    padding-top: 1.55rem;
}

.shop-auth-submit .btn {
    white-space: nowrap;
    min-width: 130px;
}

.shop-auth-signup-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.shop-auth-signup-row[hidden] {
    display: none;
}

.shop-auth-signup-text {
    margin: 0;
    font-size: 0.92rem;
    color: var(--color-text-medium);
}

.shop-auth-password-hint {
    margin: 0;
    font-size: 0.84rem;
    color: var(--color-text-muted);
}

.shop-auth-feedback {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    min-height: 1.2rem;
}

.shop-auth-feedback[data-state="error"] {
    color: #b91c1c;
}

.shop-auth-feedback[data-state="success"] {
    color: #0f766e;
}

.account-auth {
    padding-top: calc(var(--section-padding) + 4rem);
}

.account-auth-layout {
    max-width: 900px;
    margin: 0 auto;
}

.account-auth-card {
    margin-top: 0;
}

.shop-admin-wrapper {
    margin-top: 2.5rem;
    padding: 1.5rem 0 0;
    overflow: hidden;
}

.shop-admin-panel {
    border: none;
}

.shop-admin-panel[hidden] {
    display: none;
}

.shop-admin-access-note {
    padding: 0 2rem 1.5rem;
}

.shop-admin-panel > summary {
    list-style: none;
    cursor: pointer;
    padding: 1.5rem 2rem;
    font-weight: 600;
    color: var(--color-navy-deep);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.shop-admin-panel > summary::-webkit-details-marker {
    display: none;
}

.shop-admin-panel[open] > summary {
    border-bottom: 1px solid rgba(12, 74, 110, 0.12);
}

.shop-admin-caret {
    transition: transform var(--transition-medium);
}

.shop-admin-panel[open] .shop-admin-caret {
    transform: rotate(180deg);
}

.shop-admin-content {
    padding: 2rem;
    display: grid;
    gap: 2rem;
}

.shop-admin-note {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text-medium);
}

.shop-admin-status {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    min-height: 1.2rem;
}

.shop-admin-status[data-state="error"] {
    color: #b91c1c;
}

.shop-admin-status[data-state="success"] {
    color: #0f766e;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem 1.5rem;
}

.admin-full {
    grid-column: 1 / -1;
}

.shop-admin-form textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(12, 74, 110, 0.2);
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-navy-deep);
    font-family: var(--font-body);
    font-size: 0.95rem;
    min-height: 90px;
    resize: vertical;
}

.admin-repeat {
    display: grid;
    gap: 1rem;
}

.admin-repeat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.admin-repeat-header h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--color-navy-deep);
}

.admin-repeat-list {
    display: grid;
    gap: 0.75rem;
}

.admin-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    align-items: start;
}

.admin-media-row {
    grid-template-columns:
        minmax(160px, 1fr)
        minmax(200px, 1.2fr)
        minmax(180px, 1fr)
        minmax(90px, 120px)
        auto;
}

.admin-row-actions {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    align-self: start;
}

.admin-hint {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin: 0;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.admin-sort-order input {
    max-width: 90px;
}

.admin-checkbox {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 110px;
    justify-self: start;
}

.admin-checkbox input[type="checkbox"] {
    width: auto;
    margin-top: 0.55rem;
}

.shop-admin-list {
    display: grid;
    gap: 1rem;
}

.shop-admin-section {
    padding: 1.25rem 1.4rem 1.35rem;
    border-radius: 14px;
    border: 1px solid rgba(12, 74, 110, 0.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(230, 247, 255, 0.62) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 10px 22px rgba(5, 80, 123, 0.12);
}

.admin-section-products-existing {
    border-top: 4px solid rgba(13, 116, 175, 0.6);
}

.admin-section-products-manage {
    border-top: 4px solid rgba(13, 148, 136, 0.55);
}

.admin-section-reviews-existing {
    border-top: 4px solid rgba(8, 127, 176, 0.56);
}

.admin-section-reviews-manage {
    border-top: 4px solid rgba(5, 132, 122, 0.54);
}

.admin-section-discounts-existing {
    border-top: 4px solid rgba(5, 150, 105, 0.56);
}

.admin-section-discounts-manage {
    border-top: 4px solid rgba(2, 132, 199, 0.54);
}

.shop-admin-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid rgba(12, 74, 110, 0.12);
}

.shop-admin-list-header h3 {
    margin: 0;
    color: var(--color-navy-deep);
    font-size: 1.05rem;
}

.shop-admin-table-wrapper {
    overflow-x: auto;
}

.admin-table {
    min-width: 720px;
}

.shop-admin-form {
    display: grid;
    gap: 1rem;
}

.admin-subsection {
    padding: 0.95rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(12, 74, 110, 0.13);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(226, 246, 255, 0.48) 100%);
}

.admin-subsection .admin-repeat-header {
    padding-bottom: 0.55rem;
    border-bottom: 1px solid rgba(12, 74, 110, 0.11);
}

.admin-subsection .admin-hint {
    margin-top: 0.15rem;
}

.admin-actions-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

@media (max-width: 960px) {
    .shop-admin-section {
        padding: 1rem;
    }

    .shop-admin-list-header {
        align-items: flex-start;
        flex-wrap: wrap;
    }
}

/* Policy Section */
.policy {
    background: linear-gradient(180deg, var(--color-teal) 0%, var(--color-navy) 100%);
    padding-top: 8rem;
}

.policy .wave-separator {
    color: var(--color-navy-deep);
}

.policy .section-title,
.policy .section-subtitle {
    color: white;
    text-shadow: 0 2px 12px rgba(3, 30, 55, 0.35);
}

.policy .section-subtitle {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
}

.policy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.policy-card {
    padding: 2rem;
    text-align: center;
}

.policy-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1.25rem;
    color: var(--color-ocean);
}

.policy-card h3 {
    margin-bottom: 0.75rem;
    color: var(--color-navy-deep);
    font-size: 1.125rem;
}

.policy-card p {
    color: var(--color-text-medium);
    font-size: 0.9375rem;
    margin-bottom: 0;
}

/* Handling time card (kept consistent with other policy cards) */
.policy-card-featured {
    position: relative;
    background: var(--glass-bg-solid);
    border: 2px solid var(--color-coral);
    padding-top: 2.75rem;
}

.policy-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: linear-gradient(135deg, var(--color-coral), var(--color-coral-light));
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.policy-highlight {
    margin-top: 0.75rem !important;
    padding: 0.75rem;
    background: rgba(251, 146, 60, 0.1);
    border-radius: var(--border-radius-sm);
    border-left: 3px solid var(--color-coral);
    color: var(--color-navy-deep) !important;
    font-size: 0.875rem !important;
}

/* Testimonials Section */
.testimonials {
    background: linear-gradient(180deg, var(--color-navy-deep) 0%, var(--color-abyss) 100%);
    padding-top: 8rem;
}

.testimonials .wave-separator {
    color: var(--color-abyss);
}

.testimonials .section-title {
    color: white;
    text-shadow: 0 2px 12px rgba(3, 30, 55, 0.35);
}

.testimonials .section-subtitle {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
    text-shadow: 0 2px 12px rgba(3, 30, 55, 0.35);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.review-policy-note {
    margin: 2rem auto 0;
    max-width: 720px;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
}

.review-policy-note a {
    color: var(--color-aqua-light);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.review-policy-note a:hover {
    color: var(--color-aqua);
}

.review-policy-note a:focus-visible {
    outline: 2px solid var(--color-aqua-light);
    outline-offset: 2px;
    border-radius: 2px;
}

.testimonial-card {
    padding: 2.5rem;
}

.testimonial-stars {
    margin-bottom: 1.25rem;
    color: var(--color-gold);
    font-size: 1.25rem;
    letter-spacing: 2px;
}

.testimonial-card blockquote {
    font-size: 1.0625rem;
    font-style: italic;
    color: var(--color-text-medium);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-info strong {
    color: var(--color-navy-deep);
}

.author-info span {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

/* Facebook Review Source Label */
.testimonial-source {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.375rem 0.75rem;
    background: rgba(24, 119, 242, 0.12);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    /* Darkened blue for WCAG AA contrast (4.5:1) */
    color: #1557b0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.testimonial-source-icon {
    width: 14px;
    height: 14px;
    filter: none;
}

/* Author Name Link */
.author-name-link {
    text-decoration: none;
    transition: color var(--transition-fast);
}

.author-name-link strong {
    color: var(--color-navy-deep);
}

.author-name-link:hover strong {
    color: var(--color-ocean);
}

.author-name-link:focus-visible {
    outline: 2px solid var(--color-ocean);
    outline-offset: 2px;
    border-radius: 2px;
}

/* View on Facebook Link */
.view-source-link {
    font-size: 0.8125rem;
    color: #1877f2;
    text-decoration: none;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.view-source-link:hover {
    color: #0d5bbf;
    text-decoration: underline;
}

.view-source-link:focus-visible {
    outline: 2px solid #1877f2;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Contact Section */
.contact {
    background: var(--color-abyss);
    padding-top: 8rem;
    padding-bottom: 4rem;
}

.contact .section-title {
    color: white;
    text-shadow: 0 2px 12px rgba(3, 30, 55, 0.35);
}

.contact .section-subtitle {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
    text-shadow: 0 2px 12px rgba(3, 30, 55, 0.35);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        "info cta"
        "social cta";
    gap: 3rem;
    align-items: start;
}

.contact-info {
    grid-area: info;
}

.contact-cta {
    grid-area: cta;
}

.contact-grid > .social-links {
    grid-area: social;
    margin-top: 0;
}

.contact-card {
    padding: 2.5rem;
}

.contact-card h3 {
    color: var(--color-navy-deep);
    margin-bottom: 1.5rem;
}

.contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 24px;
    height: 24px;
    color: var(--color-ocean);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.contact-list strong {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
    margin-bottom: 0.125rem;
}

.contact-list a {
    color: var(--color-ocean-deep);
    font-weight: 500;
}

.contact-list a:hover {
    color: var(--color-ocean);
}

.social-links {
    margin-top: 3rem;
}

.social-links h4 {
    color: white;
    margin-bottom: 1rem;
    font-family: var(--font-body);
    font-weight: 500;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all var(--transition-fast);
}

.social-icon svg,
.social-icon img {
    width: 20px;
    height: 20px;
}

.social-icon img {
    display: block;
    filter: brightness(0) invert(1);
}

.social-icon:hover {
    background: var(--color-ocean);
    transform: translateY(-3px);
}

.cta-card {
    padding: 2.5rem;
    text-align: center;
}

.cta-card h3 {
    color: var(--color-navy-deep);
    margin-bottom: 1rem;
}

.cta-card > p {
    color: var(--color-text-medium);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-note {
    margin-top: 1.5rem;
    color: var(--color-text-muted);
}

/* Footer */
.footer {
    background: var(--color-midnight);
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer-waves {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100px;
    pointer-events: none;
}

.footer-waves svg {
    width: 100%;
    height: 100%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.footer-brand .logo {
    margin-bottom: 0;
    position: static;
    top: auto;
    left: auto;
    transform: none;
    z-index: auto;
}

.footer-brand .logo-icon {
    border: 2px solid var(--color-aqua);
}

.footer-brand .logo-text {
    color: white;
}

.footer-brand .logo-text span {
    color: var(--color-aqua);
}

.footer-tagline {
    /* Increased opacity for WCAG AA contrast (4.5:1) */
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9375rem;
    margin: 0;
}

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

.footer-column h4 {
    color: white;
    margin-bottom: 1rem;
    font-family: var(--font-body);
    font-weight: 600;
}

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

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

.footer-column a {
    /* Increased opacity for WCAG AA contrast (4.5:1) */
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--color-aqua);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    /* Increased opacity for WCAG AA contrast (4.5:1) */
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.footer-message {
    color: var(--color-aqua) !important;
    font-size: 1rem !important;
}

.developer-attribution {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    /* Increased opacity for WCAG AA contrast (4.5:1) */
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.875rem;
}

.developer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.developer-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.developer-attribution a {
    /* Increased opacity for WCAG AA contrast (4.5:1) */
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.developer-attribution a:hover {
    color: var(--color-aqua);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.floating {
    animation: float 4s ease-in-out infinite;
}

.floating:nth-child(2) { animation-delay: 0.5s; }
.floating:nth-child(3) { animation-delay: 1s; }

/* Reveal Animation (JS controlled) */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered reveal */
.about-card.reveal:nth-child(1) { transition-delay: 0.1s; }
.about-card.reveal:nth-child(2) { transition-delay: 0.2s; }
.about-card.reveal:nth-child(3) { transition-delay: 0.3s; }

.offering-card.reveal:nth-child(1) { transition-delay: 0.1s; }
.offering-card.reveal:nth-child(2) { transition-delay: 0.15s; }
.offering-card.reveal:nth-child(3) { transition-delay: 0.2s; }
.offering-card.reveal:nth-child(4) { transition-delay: 0.25s; }
.offering-card.reveal:nth-child(5) { transition-delay: 0.3s; }
.offering-card.reveal:nth-child(6) { transition-delay: 0.35s; }

.policy-card.reveal:nth-child(1) { transition-delay: 0.1s; }
.policy-card.reveal:nth-child(2) { transition-delay: 0.15s; }
.policy-card.reveal:nth-child(3) { transition-delay: 0.2s; }
.policy-card.reveal:nth-child(4) { transition-delay: 0.25s; }
.policy-card.reveal:nth-child(5) { transition-delay: 0.3s; }

.testimonial-card.reveal:nth-child(1) { transition-delay: 0.1s; }
.testimonial-card.reveal:nth-child(2) { transition-delay: 0.2s; }

/* Responsive Design */
@media (max-width: 1024px) {
    :root {
        --section-padding: 5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "info"
            "cta"
            "social";
    }
}

@media (max-width: 768px) {
    :root {
        /* Mobile: reduced section padding for compact layout */
        --section-padding: 3rem;
    }

    .navbar {
        padding: 0.75rem 0;
    }

    .navbar .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
    }

    .logo-text {
        font-size: 1.06rem;
        line-height: 1.15;
    }

    .nav-auth-btn,
    .nav-cart-btn {
        padding: 0.55rem 1rem;
        font-size: 0.82rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        gap: 0.75rem;
        padding: 5.25rem 1.25rem 1.5rem;
        overflow-y: auto;
        transition: right var(--transition-medium);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }

    .nav-links > li {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .nav-links a:not(.btn) {
        width: 100%;
        max-width: 220px;
        min-height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.5rem 0.85rem;
        border: 1px solid rgba(8, 89, 133, 0.28);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.94);
        box-shadow: 0 2px 10px rgba(8, 47, 73, 0.08);
        font-weight: 600;
        color: var(--color-navy-deep);
        text-align: center;
    }

    .nav-links a:not(.btn):hover,
    .nav-links a:not(.btn):focus-visible {
        background: rgba(224, 244, 255, 0.95);
        border-color: rgba(8, 145, 178, 0.5);
        box-shadow: 0 4px 14px rgba(8, 47, 73, 0.12);
    }

    .nav-links a:not(.btn)::after {
        display: none;
    }

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

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

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

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

    /* Mobile hero: reduced padding for compact view */
    .hero {
        min-height: auto;
        padding: 6rem 0 4rem;
    }

    /* Mobile contrast: tighter backdrop for smaller screens */
    .hero-content {
        padding: 1.5rem 1rem;
        background: radial-gradient(
            ellipse 120% 100% at 50% 50%,
            rgba(255, 255, 255, 0.6) 0%,
            rgba(255, 255, 255, 0.3) 60%,
            transparent 80%
        );
    }

    .hero-cta {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 280px;
    }

    .shop-discount-content {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    /* Mobile: reduce wave separator height to prevent overlap */
    .wave-separator {
        height: 50px;
    }

    /* Mobile: reduce section header spacing */
    .section-header {
        margin-bottom: 2.5rem;
    }

    /* Mobile: reduce padding-top on sections that follow waves
       (waves are 50px, so 4rem ~64px is enough clearance) */
    .about,
    .offerings,
    .shop,
    .policy,
    .testimonials,
    .contact {
        padding-top: 4rem;
    }

    .about-grid,
    .offerings-grid,
    .policy-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    /* Mobile: reduce card padding */
    .about-card,
    .offering-card {
        padding: 1.75rem 1.5rem;
    }

    .testimonial-card {
        padding: 1.75rem;
    }

    .shop-panel {
        padding: 1.5rem;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(255, 255, 255, 0.95);
    }

    .shop-controls {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .shop-table-wrapper {
        padding: 1rem;
    }

    .shop-pagination {
        justify-content: center;
    }

    .shop-page .shop {
        padding-top: calc(var(--section-padding) + 4rem);
    }

    .account-auth {
        padding-top: calc(var(--section-padding) + 3.5rem);
    }

    .shop-account-wrapper {
        padding: 1.25rem;
    }

    .shop-auth-form {
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }

    .shop-auth-submit {
        width: 100%;
        justify-content: flex-start;
        align-self: auto;
        padding-top: 0;
    }

    .shop-auth-submit .btn {
        width: 100%;
        min-width: 0;
    }

    /* Mobile: reduce about icon size */
    .about-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }

    /* Mobile: compact shop discount highlight */
    .shop-discount {
        padding: 1.5rem;
    }

    .shop-discount-badge {
        width: 56px;
        height: 56px;
    }

    .shop-discount-text h3 {
        font-size: 1.2rem;
    }

    /* Mobile: reduce contact section padding */
    .contact {
        padding-bottom: 2.5rem;
    }

    .contact-grid {
        gap: 2rem;
    }

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

    .footer-brand {
        align-items: center;
    }

    /* Mobile: reduce footer padding */
    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-bottom {
        padding-top: 1.5rem;
    }

    .footer-links {
        gap: 2rem;
    }

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

@media (max-width: 640px) {
    /* Mobile: use custom select to keep dropdowns anchored in viewport */
    .shop-native-select {
        display: none;
    }

    .shop-select-trigger {
        display: flex;
    }

    .shop-table-wrapper {
        overflow-x: visible;
    }

    .shop-table {
        min-width: 0;
        border-collapse: separate;
        border-spacing: 0;
    }

    .shop-table thead {
        display: none;
    }

    .shop-table tr {
        display: block;
        margin-bottom: 1rem;
        padding: 0.85rem;
        border: 1px solid rgba(12, 74, 110, 0.12);
        border-radius: var(--border-radius-sm);
        background: rgba(255, 255, 255, 0.9);
    }

    .shop-table tr:last-child {
        margin-bottom: 0;
    }

    .shop-table td {
        display: grid;
        grid-template-columns: minmax(90px, 120px) 1fr;
        gap: 0.75rem;
        padding: 0.45rem 0;
        border-bottom: 1px solid rgba(12, 74, 110, 0.08);
        word-break: break-word;
    }

    .shop-table td::before {
        content: attr(data-label);
        font-size: 0.7rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--color-text-muted);
    }

    .shop-table td.shop-empty {
        display: block;
        padding: 1rem 0;
    }

    .shop-table td.shop-empty::before {
        display: none;
    }

    .shop-table td:last-child {
        border-bottom: none;
    }

    .shop-table td.price-cell {
        text-align: left;
    }

    .shop-admin-table-wrapper {
        overflow-x: visible;
    }

    .admin-table td {
        display: block;
        padding: 0.5rem 0;
    }

    .admin-table td::before {
        display: block;
        margin-bottom: 0.3rem;
        line-height: 1.25;
    }

    .admin-table td.admin-actions-cell::before {
        flex: 0 0 100%;
        margin-bottom: 0.4rem;
    }

    .admin-table td.admin-actions-cell {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        align-items: center;
        word-break: normal;
    }

    .admin-table .admin-actions-cell .btn {
        min-width: 88px;
        white-space: nowrap;
        word-break: normal;
        line-height: 1.2;
    }

    .admin-table .view-source-link {
        display: block;
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .admin-media-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-media-row .shop-field,
    .admin-media-row .admin-sort-order {
        min-width: 0;
    }

    .admin-media-row .admin-row-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    :root {
        /* Small mobile: even more compact layout */
        --section-padding: 2.5rem;
    }

    .container {
        padding: 0 1rem;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
    }

    .logo-text {
        font-size: 0.94rem;
    }

    .nav-auth-btn,
    .nav-cart-btn {
        padding: 0.5rem 0.9rem;
        font-size: 0.78rem;
    }

    /* Small mobile hero: tighter spacing */
    .hero {
        padding: 5.5rem 0 3rem;
    }

    .hero-logo {
        width: clamp(180px, 50vw, 280px);
    }

    .hero-tagline {
        margin-bottom: 1.5rem;
    }

    .shop-discount {
        padding: 1.25rem 1.5rem;
    }

    .shop-discount-text h3 {
        font-size: 1.125rem;
    }

    .shop-discount-text p {
        font-size: 0.9rem;
    }

    .skip-top {
        width: 46px;
        height: 46px;
        right: calc(1rem + env(safe-area-inset-right));
        bottom: calc(1rem + env(safe-area-inset-bottom));
    }

    .skip-top svg {
        width: 20px;
        height: 20px;
    }

    /* Small mobile: even smaller wave separators */
    .wave-separator {
        height: 40px;
    }

    /* Small mobile: tighter section tops */
    .about,
    .offerings,
    .shop,
    .policy,
    .testimonials,
    .contact {
        padding-top: 3rem;
    }

    /* Small mobile: reduce section header spacing */
    .section-header {
        margin-bottom: 2rem;
    }

    .section-title {
        margin-bottom: 0.75rem;
    }

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

    .review-policy-note {
        margin-top: 1.5rem;
        font-size: 0.875rem;
    }

    /* Mobile featured policy card adjustments */
    .policy-card-featured {
        padding-top: 2.5rem;
    }

    .policy-badge {
        top: 0.625rem;
        right: 0.75rem;
        font-size: 0.6875rem;
        padding: 0.2rem 0.5rem;
    }

    .policy-highlight {
        padding: 0.625rem;
        font-size: 0.8125rem !important;
    }

    .shop-panel {
        padding: 1.25rem;
    }

    .shop-field input,
    .shop-field select {
        padding: 0.65rem 0.75rem;
        font-size: 0.9rem;
    }

    .shop-table th,
    .shop-table td {
        padding: 0.65rem 0.5rem;
    }

    .availability-pill {
        font-size: 0.65rem;
    }

    /* Small mobile: compact card padding */
    .about-card,
    .offering-card,
    .policy-card,
    .testimonial-card,
    .contact-card,
    .cta-card {
        padding: 1.25rem;
    }

    .contact-card {
        padding: 1.5rem;
    }

    /* Small mobile: compact CTA card content */
    .cta-card > p {
        margin-bottom: 1.5rem;
    }

    .cta-note {
        margin-top: 1rem;
    }

    /* Small mobile: reduce about icon */
    .about-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 0.875rem;
    }

    /* Small mobile: reduce offering icon */
    .offering-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }

    /* Small mobile: testimonial compact */
    .testimonial-stars {
        margin-bottom: 1rem;
        font-size: 1.125rem;
    }

    .testimonial-card blockquote {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }

    /* Small mobile: footer compact */
    .footer {
        padding-top: 2.5rem;
    }

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

    .developer-attribution {
        flex-direction: column;
        gap: 0.35rem;
    }
}

/* Extra small screens (iPhone SE, older devices ≤375px) */
@media (max-width: 375px) {
    :root {
        /* Extra small: most compact layout */
        --section-padding: 2rem;
    }

    .hero {
        padding: 5rem 0 2.5rem;
    }

    .hero-content {
        padding: 1rem 0.5rem;
    }

    .hero-tagline {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }

    /* Extra small: smallest wave separators */
    .wave-separator {
        height: 30px;
    }

    /* Extra small: tightest section tops */
    .about,
    .offerings,
    .shop,
    .policy,
    .testimonials,
    .contact {
        padding-top: 2.5rem;
    }

    .section-header {
        margin-bottom: 1.5rem;
    }

    /* Extra small: reduce grid gaps */
    .about-grid,
    .offerings-grid,
    .policy-grid,
    .testimonials-grid {
        gap: 1rem;
    }

    /* Extra small: most compact cards */
    .about-card,
    .offering-card,
    .policy-card,
    .testimonial-card {
        padding: 1rem;
    }

    .contact-card,
    .cta-card {
        padding: 1.25rem;
    }

    /* Extra small: button sizing (maintain 44px min tap target) */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
        min-height: 44px;
    }

    .hero-cta .btn {
        max-width: 100%;
    }

    /* Extra small: footer most compact */
    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        margin-bottom: 1.5rem;
        gap: 1.5rem;
    }

    .footer-bottom {
        padding-top: 1rem;
    }

    .footer-tagline {
        font-size: 0.875rem;
    }

    .footer-column h4 {
        margin-bottom: 0.75rem;
    }

    /* Extra small: contact compact */
    .contact-grid {
        gap: 1.5rem;
    }

    .contact-list {
        gap: 1rem;
    }

    .social-links h4 {
        margin-bottom: 0.75rem;
    }
}

/* ============================================
   Experimental Theme - Frutiger Aero (Temporary)
   Remove this block to revert quickly.
   ============================================ */
:root {
    --color-surface-light: #f3feff;
    --color-surface: #dcf5ff;
    --color-aqua-pale: #b8ecff;
    --color-aqua-light: #7ed8ff;
    --color-aqua: #39c2ff;
    --color-teal: #35d8c3;
    --color-teal-deep: #12b0a6;
    --color-ocean: #2598e6;
    --color-ocean-deep: #1078c8;
    --color-navy: #075f9d;
    --color-navy-deep: #024f82;
    --color-abyss: #023c64;
    --color-midnight: #022c4a;

    --color-coral: #ff9250;
    --color-coral-light: #ffc883;
    --color-gold: #ffe36b;

    --color-text-dark: #0f3e65;
    --color-text-medium: #125983;
    --color-text-light: #f3fdff;
    --color-text-muted: #476d89;

    --glass-bg: rgba(255, 255, 255, 0.28);
    --glass-bg-solid: rgba(255, 255, 255, 0.76);
    --glass-border: rgba(255, 255, 255, 0.62);
    --glass-shadow: 0 16px 42px rgba(3, 57, 104, 0.22);

    --font-display: "Trebuchet MS", "Segoe UI", Tahoma, Geneva, sans-serif;
    --font-body: "Trebuchet MS", "Segoe UI", Tahoma, Geneva, sans-serif;
}

body {
    background:
        radial-gradient(120% 65% at 50% -8%, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.35) 36%, rgba(255, 255, 255, 0) 68%),
        radial-gradient(64% 42% at 8% 18%, rgba(166, 255, 232, 0.42) 0%, rgba(166, 255, 232, 0) 72%),
        radial-gradient(70% 44% at 90% 24%, rgba(146, 218, 255, 0.4) 0%, rgba(146, 218, 255, 0) 74%),
        linear-gradient(180deg, #f3feff 0%, #dcf5ff 17%, #a7e4ff 36%, #59c1ee 56%, #228acc 74%, #095f9c 88%, #024172 100%);
    background-attachment: fixed;
}

.bubble {
    border: 1px solid rgba(255, 255, 255, 0.58);
    background:
        radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.58) 28%, rgba(131, 208, 255, 0.35) 64%, rgba(131, 208, 255, 0.08) 100%);
    box-shadow:
        inset 0 10px 16px rgba(255, 255, 255, 0.75),
        0 12px 30px rgba(3, 64, 114, 0.2);
}

@keyframes bubble-rise {
    0% {
        transform: translate3d(0, 0, 0) scale(0.45);
        opacity: 0;
    }
    10% {
        opacity: 0.78;
    }
    90% {
        opacity: 0.78;
    }
    100% {
        transform: translate3d(18px, -124vh, 0) scale(1.06);
        opacity: 0;
    }
}

.navbar {
    background: linear-gradient(180deg, rgba(232, 250, 255, 0.78), rgba(218, 245, 255, 0.62));
    border-bottom: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 8px 28px rgba(3, 64, 114, 0.16);
    backdrop-filter: blur(18px) saturate(150%);
}

.navbar.scrolled {
    background: linear-gradient(180deg, rgba(236, 252, 255, 0.9), rgba(223, 247, 255, 0.78));
    box-shadow: 0 12px 30px rgba(3, 64, 114, 0.2);
}

.nav-links a:not(.btn) {
    font-weight: 600;
}

.nav-links a:not(.btn)::after {
    height: 3px;
    border-radius: 6px;
    background: linear-gradient(90deg, #7ee0ff 0%, #2fb7ff 100%);
}

.logo-icon {
    border: 2px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 0 0 4px rgba(126, 224, 255, 0.2), 0 8px 22px rgba(3, 64, 114, 0.25);
}

.logo-text {
    letter-spacing: 0.01em;
}

.hero-light-rays {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 42%),
        radial-gradient(ellipse 84% 52% at 50% 1%, rgba(255, 255, 255, 0.46) 0%, transparent 58%),
        radial-gradient(ellipse 68% 42% at 20% 8%, rgba(150, 248, 236, 0.34) 0%, transparent 60%),
        radial-gradient(ellipse 68% 42% at 80% 10%, rgba(145, 215, 255, 0.32) 0%, transparent 60%);
}

.hero-content {
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 24px 46px rgba(3, 64, 114, 0.22);
    backdrop-filter: blur(8px);
}

.hero-tagline {
    color: #0f4f80;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.82), 0 0 20px rgba(255, 255, 255, 0.45);
}

.skip-top {
    background: linear-gradient(180deg, #7ce1ff 0%, #2cb8ff 52%, #1788e1 100%);
    border-color: rgba(255, 255, 255, 0.74);
    box-shadow: 0 14px 30px rgba(3, 64, 114, 0.28);
}

.btn {
    border: 1px solid rgba(255, 255, 255, 0.64);
    font-weight: 600;
    letter-spacing: 0.01em;
    backdrop-filter: blur(10px) saturate(140%);
    box-shadow: 0 8px 22px rgba(3, 64, 114, 0.18);
}

.btn-primary {
    background: linear-gradient(180deg, #7ce1ff 0%, #2cb8ff 52%, #1788e1 100%);
    color: #f9fdff;
    border-color: rgba(255, 255, 255, 0.72);
    text-shadow: 0 1px 6px rgba(2, 53, 92, 0.42);
    box-shadow: 0 12px 26px rgba(23, 136, 225, 0.42);
}

.btn-primary:hover {
    box-shadow: 0 14px 34px rgba(23, 136, 225, 0.52);
}

.btn-secondary {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(224, 247, 255, 0.78));
    border-color: rgba(255, 255, 255, 0.75);
    color: #065389;
}

.btn-light {
    background: linear-gradient(180deg, #ffffff 0%, #ecfaff 100%);
    color: #076298;
}

.btn-nav {
    background: linear-gradient(180deg, #94ffc4 0%, #2dd8a5 58%, #0ca379 100%);
    color: #03384b;
    border-color: rgba(255, 255, 255, 0.7);
}

#nav-account-link {
    background: linear-gradient(180deg, #6fd8ff 0%, #2ea5f1 55%, #1576c4 100%);
    border-color: rgba(255, 255, 255, 0.64);
    color: #f7fdff;
}

#nav-cart-link {
    background: linear-gradient(180deg, #89f8d6 0%, #2cd7b0 55%, #0ea78a 100%);
    border-color: rgba(255, 255, 255, 0.64);
    color: #f3fffc;
}

#nav-cart-link .nav-cart-count {
    background: rgba(255, 255, 255, 0.94);
    color: #066ea7;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

@media (max-width: 768px) {
    .nav-links {
        background: linear-gradient(180deg, rgba(235, 251, 255, 0.96) 0%, rgba(214, 244, 255, 0.94) 100%);
        border-left: 1px solid rgba(255, 255, 255, 0.74);
        box-shadow: -18px 0 34px rgba(3, 64, 114, 0.2);
        backdrop-filter: blur(18px) saturate(150%);
    }

    .nav-links a:not(.btn) {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(225, 246, 255, 0.78));
        border-color: rgba(127, 207, 247, 0.5);
    }

    .nav-links a:not(.btn):hover,
    .nav-links a:not(.btn):focus-visible {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(232, 250, 255, 0.88));
        border-color: rgba(85, 182, 233, 0.58);
    }
}

.about,
.shop,
.product-detail,
.cart,
.account-auth {
    background: linear-gradient(180deg, rgba(240, 253, 255, 0.94) 0%, rgba(204, 239, 255, 0.95) 100%);
}

.offerings {
    background: linear-gradient(180deg, #89e1ff 0%, #31a7ea 100%);
}

.policy {
    background: linear-gradient(180deg, #3cc8ff 0%, #1462ad 100%);
}

.testimonials {
    background: linear-gradient(180deg, #07548f 0%, #02345a 100%);
}

.contact {
    background: linear-gradient(180deg, #034470 0%, #022d4d 100%);
}

.glass-card,
.offering-card,
.policy-card,
.testimonial-card,
.contact-card,
.cta-card,
.variant-card,
.product-gallery-main,
.product-thumb {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(233, 249, 255, 0.78) 100%);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 18px 38px rgba(3, 58, 104, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px) saturate(145%);
}

.offering-card,
.policy-card,
.testimonial-card,
.contact-card,
.cta-card,
.variant-card {
    position: relative;
    overflow: hidden;
}

.offering-card::before,
.policy-card::before,
.testimonial-card::before,
.contact-card::before,
.cta-card::before,
.variant-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 44%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.shop-field input,
.shop-field select,
.shop-select-trigger,
.shop-admin-form textarea,
.cart-quantity-input {
    border-color: rgba(112, 199, 240, 0.5);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(225, 246, 255, 0.82));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 6px 18px rgba(7, 92, 146, 0.14);
}

.shop-table th {
    background: linear-gradient(180deg, rgba(38, 157, 234, 0.28), rgba(38, 157, 234, 0.09));
    color: #0a4f81;
}

.shop-table tr:nth-child(even) td {
    background: rgba(225, 248, 255, 0.38);
}

.shop-discount {
    background: linear-gradient(160deg, #2ec0ff 0%, #1f95e1 42%, #0f6ebd 100%);
    border: 1px solid rgba(255, 255, 255, 0.62);
}

.shop-discount::before {
    background: radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0) 70%);
}

.availability-pill {
    border: 1px solid rgba(255, 255, 255, 0.66);
    box-shadow: 0 4px 12px rgba(3, 64, 114, 0.16);
}

.social-icon {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06));
    border: 1px solid rgba(255, 255, 255, 0.26);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.footer {
    background: linear-gradient(180deg, #023c65 0%, #022339 100%);
}

.footer-brand .logo-icon {
    box-shadow: 0 0 0 3px rgba(126, 224, 255, 0.22), 0 8px 20px rgba(0, 0, 0, 0.35);
}

.footer-column a:hover,
.footer-message,
.developer-brand a:hover {
    color: #7ee0ff !important;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .floating {
        animation: none;
    }

    .bubble {
        display: none;
    }
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-ocean);
    outline-offset: 2px;
}

/* Remove focus ring for programmatic focus targets (skip link, smooth scroll) */
[tabindex="-1"]:focus {
    outline: none;
}

/* Print styles */
@media print {
    .navbar,
    .bubbles-container,
    .wave-separator,
    .hero-light-rays,
    .footer-waves {
        display: none;
    }

    body {
        background: white;
    }

    .section {
        background: white !important;
        padding: 2rem 0;
    }

    .glass-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
