/* ==========================================================================
   Taiyo Aquatics — storefront theme
   Look & feel only: colors, fonts, radii, shadows. Layout is Bootstrap's job.
   ========================================================================== */

:root {
    --deep:  #0B2E33;   /* deep ocean: headers, footer, dark text */
    --teal:  #17A2A6;   /* primary actions, links */
    --aqua:  #5EE6D0;   /* highlights, hover accents */
    --coral: #FF7B54;   /* secondary accent: badges, sale, CTAs */
    --sand:  #F6FBF9;   /* page background */
    --ink:   #16323A;   /* body text */

    --teal-dark:   #128387;
    --coral-dark:  #F0602F;
    --radius-card: 16px;
    --shadow-soft: 0 6px 24px rgba(11, 46, 51, 0.08);
    --shadow-lift: 0 14px 34px rgba(11, 46, 51, 0.16);
    --font-head: 'Fredoka', system-ui, sans-serif;
    --font-body: 'Nunito', system-ui, sans-serif;
}

/* ---------- Base ---------- */

body {
    background-color: var(--sand);
    color: var(--ink);
    font-family: var(--font-body);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: var(--font-head);
    color: var(--deep);
    letter-spacing: 0.2px;
}

a {
    color: var(--teal);
    text-decoration: none;
}

a:hover {
    color: var(--teal-dark);
}

::selection {
    background: var(--aqua);
    color: var(--deep);
}

/* ---------- Buttons (pill-shaped) ---------- */

.btn {
    border-radius: 50rem;
    font-family: var(--font-head);
    font-weight: 500;
    letter-spacing: 0.3px;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.btn-primary {
    --bs-btn-bg: var(--teal);
    --bs-btn-border-color: var(--teal);
    --bs-btn-hover-bg: var(--teal-dark);
    --bs-btn-hover-border-color: var(--teal-dark);
    --bs-btn-active-bg: var(--teal-dark);
    --bs-btn-active-border-color: var(--teal-dark);
    --bs-btn-disabled-bg: var(--teal);
    --bs-btn-disabled-border-color: var(--teal);
    --bs-btn-focus-shadow-rgb: 23, 162, 166;
}

.btn-outline-primary {
    --bs-btn-color: var(--teal);
    --bs-btn-border-color: var(--teal);
    --bs-btn-hover-bg: var(--teal);
    --bs-btn-hover-border-color: var(--teal);
    --bs-btn-active-bg: var(--teal-dark);
    --bs-btn-active-border-color: var(--teal-dark);
    --bs-btn-focus-shadow-rgb: 23, 162, 166;
}

.btn-coral {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--coral);
    --bs-btn-border-color: var(--coral);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--coral-dark);
    --bs-btn-hover-border-color: var(--coral-dark);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--coral-dark);
    --bs-btn-active-border-color: var(--coral-dark);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--coral);
    --bs-btn-disabled-border-color: var(--coral);
    --bs-btn-focus-shadow-rgb: 255, 123, 84;
}

.btn-outline-teal {
    --bs-btn-color: var(--teal);
    --bs-btn-border-color: var(--teal);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--teal);
    --bs-btn-hover-border-color: var(--teal);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--teal-dark);
    --bs-btn-active-border-color: var(--teal-dark);
    --bs-btn-focus-shadow-rgb: 23, 162, 166;
}

/* ---------- Navbar ---------- */

.taiyo-navbar {
    background-color: var(--deep);
    box-shadow: 0 2px 14px rgba(11, 46, 51, 0.25);
}

.taiyo-navbar .navbar-brand .brand-text {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.35rem;
    color: #fff;
}

.taiyo-navbar .navbar-brand .brand-accent {
    color: var(--aqua);
}

.taiyo-navbar .nav-link {
    font-family: var(--font-head);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.15s ease;
}

.taiyo-navbar .nav-link:hover,
.taiyo-navbar .nav-link:focus,
.taiyo-navbar .nav-link.active {
    color: var(--aqua);
}

.cart-badge {
    background-color: var(--coral);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.68rem;
    vertical-align: top;
    margin-left: 0.15rem;
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    background: linear-gradient(135deg, var(--deep) 0%, #114b50 45%, var(--teal) 100%);
    color: #fff;
    overflow: hidden;
    padding-bottom: 4.5rem;
}

.hero h1,
.hero h2,
.hero .display-1, .hero .display-2, .hero .display-3,
.hero .display-4, .hero .display-5, .hero .display-6 {
    color: #fff;
}

.hero .hero-accent {
    color: var(--aqua);
}

.hero .lead {
    color: rgba(255, 255, 255, 0.85);
}

/* wave bottom edge */
.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 60px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0,30 C240,60 480,0 720,20 C960,40 1200,10 1440,35 L1440,60 L0,60 Z' fill='%23F6FBF9'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    pointer-events: none;
}

/* ---------- Section titles ---------- */

.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 0.85rem;
    margin-bottom: 1rem;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 74px;
    height: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 74 10'%3E%3Cpath d='M1 6 C7 1 13 1 19 6 C25 11 31 11 37 6 C43 1 49 1 55 6 C61 11 67 11 73 6' fill='none' stroke='%2317A2A6' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

.text-center .section-title::after,
.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ---------- Cards / product cards ---------- */

.card {
    border: none;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
}

.product-card {
    border: none;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lift);
}

.product-card .product-img {
    background: linear-gradient(180deg, #eafaf5 0%, var(--sand) 100%);
    aspect-ratio: 1 / 1;
    object-fit: contain;
    width: 100%;
    padding: 1.25rem;
}

.product-card .card-title {
    font-family: var(--font-head);
    font-weight: 500;
}

.product-card .card-title a {
    color: var(--deep);
}

.product-card .card-title a:hover {
    color: var(--teal);
}

.product-price {
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--teal);
    font-size: 1.15rem;
}

.category-chip {
    display: inline-block;
    background: rgba(94, 230, 208, 0.22);
    color: var(--teal-dark);
    border-radius: 50rem;
    padding: 0.15rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
}

/* ---------- Forms ---------- */

.form-control,
.form-select {
    border-radius: 12px;
    border-color: #d6e8e2;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 0.25rem rgba(23, 162, 166, 0.15);
}

.form-label {
    font-weight: 700;
    color: var(--deep);
}

.input-group .form-control:first-child {
    border-top-left-radius: 50rem;
    border-bottom-left-radius: 50rem;
    padding-left: 1.15rem;
}

/* ---------- Order status badges ---------- */

.status-badge,
.status-pending, .status-confirmed, .status-shipped,
.status-delivered, .status-cancelled {
    display: inline-block;
    border-radius: 50rem;
    padding: 0.3rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.status-pending   { background: #FFF3CD; color: #8a6d1a; }
.status-confirmed { background: rgba(23, 162, 166, 0.14); color: var(--teal-dark); }
.status-shipped   { background: rgba(94, 230, 208, 0.30); color: #0d6b60; }
.status-delivered { background: #d9f5e7; color: #1c7c4f; }
.status-cancelled { background: rgba(255, 123, 84, 0.16); color: var(--coral-dark); }

/* ---------- Status timeline ---------- */

.timeline {
    display: flex;
    justify-content: space-between;
    list-style: none;
    margin: 0;
    padding: 0;
}

.timeline .step {
    flex: 1;
    position: relative;
    text-align: center;
    padding-top: 2.1rem;
}

/* dot */
.timeline .step::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #cfe3dd;
    z-index: 2;
    transition: background 0.2s ease, border-color 0.2s ease;
}

/* connecting line */
.timeline .step::after {
    content: "";
    position: absolute;
    top: 10px;
    left: -50%;
    width: 100%;
    height: 3px;
    background: #cfe3dd;
    z-index: 1;
}

.timeline .step:first-child::after {
    display: none;
}

.timeline .step .step-label {
    font-family: var(--font-head);
    font-weight: 500;
    font-size: 0.9rem;
    color: #7d9a94;
}

.timeline .step .step-date {
    display: block;
    font-size: 0.75rem;
    color: #9db5af;
}

/* completed steps */
.timeline .step.done::before {
    background: var(--teal);
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(23, 162, 166, 0.18);
}

.timeline .step.done::after {
    background: var(--teal);
}

.timeline .step.done .step-label {
    color: var(--deep);
}

/* cancelled */
.timeline .step.cancelled::before {
    background: var(--coral);
    border-color: var(--coral);
    box-shadow: 0 0 0 4px rgba(255, 123, 84, 0.2);
}

.timeline .step.cancelled::after {
    background: var(--coral);
}

.timeline .step.cancelled .step-label {
    color: var(--coral-dark);
}

/* ---------- Tables ---------- */

.table {
    --bs-table-hover-bg: rgba(94, 230, 208, 0.08);
}

.table thead th {
    font-family: var(--font-head);
    font-weight: 500;
    color: var(--deep);
    border-bottom-color: var(--aqua);
}

/* ---------- Toasts / alerts ---------- */

.toast {
    border-radius: 12px;
    border: none;
    box-shadow: var(--shadow-lift);
}

.alert {
    border-radius: 12px;
    border: none;
}

/* ---------- Footer ---------- */

.taiyo-footer {
    background-color: var(--deep);
    color: rgba(255, 255, 255, 0.78);
}

.taiyo-footer .footer-brand {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.2rem;
    color: #fff;
}

.taiyo-footer .footer-heading {
    font-family: var(--font-head);
    font-weight: 500;
    color: var(--aqua);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    margin-bottom: 0.85rem;
}

.taiyo-footer .footer-blurb {
    font-size: 0.92rem;
    line-height: 1.7;
}

.taiyo-footer .footer-links li {
    margin-bottom: 0.45rem;
    font-size: 0.92rem;
}

.taiyo-footer .footer-links a {
    color: rgba(255, 255, 255, 0.78);
    transition: color 0.15s ease;
}

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

.taiyo-footer .footer-bottom {
    background: rgba(0, 0, 0, 0.22);
    color: rgba(255, 255, 255, 0.55);
}

/* ---------- 404 ---------- */

.notfound-code {
    font-size: clamp(4rem, 12vw, 7rem);
    color: var(--teal);
    line-height: 1;
}

.notfound-art svg {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 24px rgba(11, 46, 51, 0.15));
}

/* ---------- Sticky checkout bar ---------- */

body.has-checkout-bar {
    padding-bottom: 4.5rem;
}

.sticky-checkout-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1035;
    background-color: var(--deep);
    color: #fff;
    box-shadow: 0 -8px 24px rgba(11, 46, 51, 0.28);
    padding-top: 0.65rem;
    padding-bottom: calc(0.65rem + env(safe-area-inset-bottom, 0px));
    transform: translateY(100%);
    transition: transform 0.28s ease;
}

.sticky-checkout-bar.d-none {
    transition: none;
}

.sticky-checkout-bar.is-visible {
    transform: translateY(0);
}

.sticky-checkout-count {
    display: block;
    font-family: var(--font-head);
    font-weight: 500;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.sticky-checkout-total {
    display: block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--aqua);
}

.sticky-checkout-btn {
    white-space: nowrap;
    flex-shrink: 0;
}

/* ---------- Misc ---------- */

.text-teal  { color: var(--teal) !important; }
.text-coral { color: var(--coral) !important; }
.text-deep  { color: var(--deep) !important; }
.bg-deep    { background-color: var(--deep) !important; }
.bg-sand    { background-color: var(--sand) !important; }

.rounded-taiyo {
    border-radius: var(--radius-card) !important;
}

.badge.bg-coral {
    background-color: var(--coral) !important;
}
