/* =====================================================================
   Pet Solutions Japan — single stylesheet (~9 KB minified, well under 50 KB)
   ---------------------------------------------------------------------
   Palette
       --orange   #FF6B35  (Neon Orange — primary CTA)
       --teal     #004E89  (Teal          — headings, links)
       --yellow   #FFD23F  (Sunny Yellow  — accents, chip)
       --ink      #1F2933  (body text)
       --paper    #FFFAF2  (background,  — extra whitespace vibe)
       --muted    #6B7280
   ===================================================================== */

:root {
    --orange: #FF6B35;
    --teal: #004E89;
    --yellow: #FFD23F;
    --ink: #1F2933;
    --paper: #FFFAF2;
    --muted: #6B7280;
    --card: #ffffff;
    --radius: 18px;
    --shadow: 0 6px 20px rgba(0, 0, 0, .08);
    --shadow-hover: 0 14px 32px rgba(0, 0, 0, .12);
    --maxw: 1140px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box
}

html,
body {
    margin: 0;
    padding: 0
}

img {
    max-width: 100%;
    display: block;
    height: auto
}

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

a:hover {
    text-decoration: underline
}

button {
    font: inherit;
    cursor: pointer;
    border: 0;
    background: none;
    color: inherit
}

input,
select,
textarea {
    font: inherit;
    color: inherit
}

/* ---------- Base ---------- */
body {
    font-family: 'Nunito', system-ui, -apple-system, Segoe UI, Roboto,
        "Hiragino Sans", "Yu Gothic", sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    color: var(--teal);
    margin: 0 0 .4em;
    line-height: 1.2
}

.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 1rem
}

/* ---------- Header / Nav ---------- */
.site-header {
    background: #fff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .05);
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .8rem 1rem
}

.brand {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--teal);
}

.brand:hover {
    text-decoration: none
}

.brand__paw {
    font-size: 1.6rem;
    transform: rotate(-12deg)
}

.nav__menu {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1rem
}

.nav__menu a {
    font-weight: 600;
    color: var(--ink)
}

.nav__cart {
    position: relative
}

.badge {
    display: inline-block;
    min-width: 1.4rem;
    padding: .1rem .45rem;
    background: var(--orange);
    color: #fff;
    border-radius: 999px;
    font-size: .75rem;
    text-align: center;
    margin-left: .2rem;
}

.nav__toggle {
    display: none;
    font-size: 1.6rem;
    color: var(--teal)
}

/* Mobile menu */
@media (max-width:680px) {
    .nav__toggle {
        display: block;
        margin-left: auto
    }

    .nav__menu {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        padding: 0 0 1rem;
    }

    .nav__menu.is-open {
        display: flex
    }

    .nav__menu a {
        padding: .5rem 0;
        border-top: 1px solid #f1eee5
    }
}

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(135deg, #FFD23F33 0%, #FF6B3522 100%),
        radial-gradient(circle at 20% 30%, #FFD23F55 0, transparent 60%);
    padding: 3.5rem 0 2rem;
    border-radius: 0 0 var(--radius) var(--radius);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.hero__inner {
    padding: 0 1.2rem;
    max-width: 760px;
    margin: 0 auto;
    text-align: center
}

.hero__title {
    font-size: clamp(2rem, 5vw, 3.4rem);
    margin: 0 0 .5rem
}

.hero__chip {
    display: inline-block;
    background: var(--yellow);
    padding: .15rem .7rem;
    border-radius: 999px;
    font-size: .9rem;
    color: var(--teal);
    font-weight: 800;
    transform: rotate(-2deg);
}

.hero__big {
    color: var(--orange);
    display: block;
    margin: .3rem 0
}

.hero__sub {
    font-size: 1.1rem;
    color: var(--ink);
    font-weight: 600;
    display: block;
    margin-top: .4rem
}

.hero__lead {
    margin: 1rem 0 1.4rem;
    font-size: 1.05rem;
    color: #374151
}

.hero__cta {
    display: flex;
    gap: .7rem;
    justify-content: center;
    flex-wrap: wrap
}

.hero__paws {
    position: absolute;
    right: -1rem;
    top: 1rem;
    font-size: 3rem;
    opacity: .25;
    letter-spacing: 1rem;
    pointer-events: none;
    user-select: none;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: .7rem 1.3rem;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: .01em;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
    border: 2px solid transparent;
}

.btn:hover {
    transform: translateY(-2px);
    text-decoration: none
}

.btn--primary {
    background: var(--orange);
    color: #fff;
    box-shadow: 0 4px 0 #c8481e
}

.btn--primary:hover {
    background: #ff7a4a;
    box-shadow: 0 6px 0 #c8481e
}

.btn--ghost {
    background: #fff;
    color: var(--teal);
    border-color: var(--teal)
}

.btn--ghost:hover {
    background: var(--teal);
    color: #fff
}

.btn--danger {
    background: #fff;
    color: #b91c1c;
    border-color: #b91c1c
}

.btn--danger:hover {
    background: #b91c1c;
    color: #fff
}

/* ---------- Sections ---------- */
.section-title {
    text-align: center;
    margin: 2.2rem 0 1rem;
    font-size: 1.5rem;
    color: var(--teal);
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: var(--yellow);
    border-radius: 2px;
    margin: .5rem auto 0;
}

/* ---------- Categories ---------- */
.cats__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.cat-card {
    background: #fff;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.2rem .5rem;
    font-weight: 700;
    color: var(--teal);
    box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s;
}

.cat-card:hover {
    transform: translateY(-4px) rotate(-1deg);
    box-shadow: var(--shadow-hover);
    text-decoration: none
}

.cat-card__emoji {
    font-size: 2.4rem;
    margin-bottom: .4rem
}

/* ---------- Product grid / card ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
}

.product-card {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: inherit;
    box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    text-decoration: none
}

.product-card__media {
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #f3efe6
}

.product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.product-card:hover .product-card__media img {
    transform: scale(1.06)
}

.product-card__body {
    padding: .9rem 1rem 1.1rem;
    flex: 1;
    display: flex;
    flex-direction: column
}

.product-card__title {
    font-size: 1rem;
    margin: 0 0 .3rem
}

.product-card__desc {
    font-size: .85rem;
    color: var(--muted);
    margin: 0 0 .7rem;
    flex: 1
}

.product-card__row {
    display: flex;
    align-items: center;
    justify-content: space-between
}

.price {
    font-weight: 800;
    color: var(--orange);
    font-size: 1.1rem
}

.product-card__cat {
    font-size: .7rem;
    text-transform: uppercase;
    color: var(--teal);
    letter-spacing: .05em
}

/* ---------- Shop filters ---------- */
.shop-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    align-items: center;
    background: #fff;
    padding: 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 1.4rem;
}

.shop-filters__search {
    flex: 1 1 220px;
    min-width: 0;
    padding: .55rem .9rem;
    border: 2px solid #e5e7eb;
    border-radius: 999px;
    outline: 0;
    transition: border-color .2s;
}

.shop-filters__search:focus {
    border-color: var(--orange)
}

.shop-filters__chips {
    display: flex;
    gap: .4rem;
    flex-wrap: wrap
}

.chip {
    display: inline-block;
    padding: .3rem .85rem;
    border-radius: 999px;
    background: #fff;
    border: 2px solid #e5e7eb;
    color: var(--ink);
    font-size: .85rem;
    font-weight: 600;
    transition: .2s;
}

.chip:hover {
    text-decoration: none;
    border-color: var(--teal);
    color: var(--teal)
}

.chip.is-active {
    background: var(--yellow);
    border-color: var(--yellow);
    color: var(--teal)
}

/* ---------- Product detail ---------- */
.product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.product__media {
    aspect-ratio: 1/1;
    border-radius: var(--radius);
    overflow: hidden;
    background: #f3efe6
}

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

.product__title {
    font-size: 1.8rem;
    margin: .6rem 0
}

.product__price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--orange);
    margin: .2rem 0 1rem
}

.product__desc {
    color: #374151;
    white-space: pre-line
}

.product__stock {
    margin: .8rem 0;
    font-weight: 600
}

.product__add {
    display: flex;
    gap: .7rem;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-top: 1rem
}

.qty {
    display: flex;
    flex-direction: column;
    font-size: .8rem;
    font-weight: 600;
    color: var(--muted)
}

.qty input,
.qty-input {
    width: 5rem;
    padding: .4rem .6rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    margin-top: .25rem;
    outline: 0;
}

.qty input:focus,
.qty-input:focus {
    border-color: var(--orange)
}

.product__assurance {
    margin-top: 1.2rem;
    font-size: .85rem;
    color: var(--muted);
    background: #fff8e6;
    padding: .6rem .9rem;
    border-radius: 10px;
}

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

/* ---------- Cart ---------- */
.cart {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow)
}

.cart th,
.cart td {
    padding: .8rem .9rem;
    text-align: left;
    vertical-align: middle
}

.cart thead {
    background: var(--teal);
    color: #fff
}

.cart tbody tr+tr {
    border-top: 1px solid #f1eee5
}

.cart__img img {
    border-radius: 8px;
    object-fit: cover
}

.cart__tot {
    text-align: right;
    color: var(--muted)
}

.cart__grand {
    font-weight: 800;
    color: var(--orange);
    font-size: 1.1rem
}

.cart__actions {
    display: flex;
    gap: .7rem;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin: 1.2rem 0 2rem;
}

.link {
    color: #b91c1c;
    text-decoration: underline;
    font-size: .9rem
}

/* ---------- Forms (contact, checkout) ---------- */
.contact,
.checkout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact__form,
.checkout__form {
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: .9rem;
}

.contact__info,
.checkout__summary {
    background: var(--yellow);
    color: var(--teal);
    padding: 1.4rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    align-self: start;
}

.contact__form label,
.checkout__form label {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    gap: .3rem;
}

.contact__form input,
.contact__form textarea,
.checkout__form input,
.checkout__form textarea {
    padding: .55rem .8rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    outline: 0;
    transition: border-color .2s;
}

.contact__form input:focus,
.contact__form textarea:focus,
.checkout__form input:focus,
.checkout__form textarea:focus {
    border-color: var(--orange)
}

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

.checkout__summary li {
    display: flex;
    justify-content: space-between;
    padding: .3rem 0;
    border-bottom: 1px dashed rgba(0, 0, 0, .1)
}

.checkout__summary .grand {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--orange);
    margin-top: .5rem
}

.checkout__payment-note {
    background: #fff8e6;
    padding: .7rem .9rem;
    border-radius: 10px;
    font-size: .9rem
}

@media (max-width:760px) {

    .contact,
    .checkout {
        grid-template-columns: 1fr
    }
}

/* ---------- Page heads / misc ---------- */
.page-head {
    text-align: center;
    padding: 1.5rem 0
}

.page-head h1 {
    font-size: 1.9rem
}

.empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--muted);
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.flash {
    padding: .8rem 1rem;
    border-radius: 10px;
    margin: 1rem 0;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.flash--error {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca
}

.flash ul {
    margin: 0;
    padding-left: 1.2rem
}

.trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1rem;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.trust__item {
    font-size: .9rem;
    color: var(--teal);
    font-weight: 600
}

/* ---------- Prose (long-form pages) ---------- */
.prose {
    background: #fff;
    padding: 1.6rem 1.8rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.prose h2 {
    margin-top: 1.4rem;
    font-size: 1.25rem
}

.prose ul {
    padding-left: 1.2rem
}

.prose blockquote {
    background: #fff8e6;
    border-left: 4px solid var(--yellow);
    padding: .8rem 1rem;
    border-radius: 0 10px 10px 0;
    margin: 1.2rem 0;
    font-style: italic;
}

.prose address {
    font-style: normal;
    color: var(--ink)
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--teal);
    color: #dbeafe;
    margin-top: 2rem;
    padding: 2.4rem 0 1rem;
}

.site-footer h3,
.site-footer h4 {
    color: #fff;
    margin-bottom: .5rem
}

.site-footer a {
    color: #FFD23F
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0
}

.site-footer li {
    padding: .15rem 0
}

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

.footer__hours {
    margin-top: .6rem;
    font-size: .85rem;
    opacity: .85
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1.6rem;
    padding-top: 1rem;
    border-top: 1px solid #ffffff22;
    font-size: .8rem;
    opacity: .85;
}

/* ---------- Thanks page ---------- */
.thanks {
    text-align: center;
    padding: 2rem 1rem;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem
}

.thanks h1 {
    color: var(--orange);
    font-size: 2rem
}