/* Explain: App-specific component classes for styling various UI elements. - */
.tide-shell {
    width: min(1180px, calc(100% - 2rem));
    margin-inline: auto;
}

.tide-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid rgba(143, 227, 207, 0.45);
    background: rgba(143, 227, 207, 0.16);
    color: var(--primary-color);
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tide-btn-primary,
.tide-btn-secondary,
.tide-btn-ghost,
.tide-btn-orange {
    min-height: 3rem;
    border-radius: 999px;
    font-weight: 800;
    transition: all 220ms ease;
    cursor: pointer;
}

.tide-btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 14px 32px rgba(6, 43, 73, 0.22);
}

.tide-btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.tide-btn-secondary {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--primary-color);
}

.tide-btn-secondary:hover {
    filter: brightness(0.96);
    transform: translateY(-1px);
}

.tide-btn-orange {
    background: var(--safety-orange);
    border-color: var(--safety-orange);
    color: var(--primary-color);
}

.tide-btn-orange:hover {
    filter: brightness(0.97);
    transform: translateY(-1px);
}

.tide-btn-ghost {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--border-color);
    color: var(--primary-color);
}

.tide-btn-ghost:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.wave-card {
    border: 1px solid rgba(216, 231, 236, 0.9);
    border-radius: var(--radius-wave);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.product-card {
    position: relative;
    display: flex;
    min-height: 100%;
    flex-direction: column;
    border: 1px solid rgba(216, 231, 236, 0.95);
    border-radius: var(--radius-wave);
    background: var(--surface-color);
    box-shadow: 0 12px 34px rgba(6, 43, 73, 0.08);
    overflow: hidden;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 119, 182, 0.35);
    box-shadow: 0 22px 48px rgba(6, 43, 73, 0.14);
}

.product-image-frame {
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, rgba(6, 43, 73, 0.08), rgba(143, 227, 207, 0.22));
    overflow: hidden;
}

.product-image-frame img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}

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

.stock-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.3rem 0.65rem;
    background: rgba(143, 227, 207, 0.2);
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 800;
}

.wishlist-active {
    background: rgba(255, 138, 61, 0.16) !important;
    color: var(--safety-orange) !important;
    border-color: rgba(255, 138, 61, 0.4) !important;
}

.catalog-input {
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: white;
    color: var(--text-color);
}

.tide-toast {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 70;
    max-width: min(420px, calc(100vw - 2rem));
    border-radius: 1.25rem;
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-soft);
    padding: 1rem 1.1rem;
    transform: translateY(120%);
    opacity: 0;
    transition: all 220ms ease;
}

.tide-toast.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.spec-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
}

.spec-table td {
    border-bottom: 1px solid var(--border-color);
    padding: 0.9rem 1rem;
}

.spec-table tr:last-child td {
    border-bottom: 0;
}

.nav-btn-styled {
    background: linear-gradient(to bottom, #2643D5, #1E3A8A);
    color: white !important;
    border: 2px solid white;
    border-radius: 0.5rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 800;
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    cursor: pointer;
}
.nav-btn-styled:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0,0,0,0.2);
    filter: brightness(1.1);
}
